From aff47570839e3484f5109d0438514e14e6477ae8 Mon Sep 17 00:00:00 2001 From: Abstra Bot Date: Thu, 29 Aug 2024 21:31:27 +0000 Subject: [PATCH] Update abstra-lib --- ...ue_type_script_setup_true_lang.9e42abd4.js | 2 + ...ue_type_script_setup_true_lang.fc5c6e1f.js | 2 - ...384.js => AccessControlEditor.c8a08e74.js} | 4 +- .../dist/assets/ApiKeys.134defd6.js | 2 + .../dist/assets/ApiKeys.364c2cfa.js | 2 - abstra_statics/dist/assets/App.ba11635e.js | 2 + abstra_statics/dist/assets/App.e3fc5288.js | 2 - ...ue_vue_type_style_index_0_lang.b3029d8c.js | 2 - ...ue_vue_type_style_index_0_lang.f9e04732.js | 2 + ...{Avatar.6f67d038.js => Avatar.2107fa31.js} | 4 +- .../{Badge.49622b8e.js => Badge.bcc65740.js} | 4 +- .../dist/assets/BaseLayout.294a6887.js | 2 + .../dist/assets/BaseLayout.e1793d5b.js | 2 - .../dist/assets/Billing.274971a6.js | 2 + .../dist/assets/Billing.9a1094cc.js | 2 - ...d.a8460802.js => BookOutlined.5f7ad9dc.js} | 4 +- ...{Builds.6f48f61c.js => Builds.e336d48e.js} | 4 +- .../{Card.b3c66431.js => Card.0ce127d8.js} | 4 +- ...40e14c8.js => CircularLoading.b920c29a.js} | 4 +- .../assets/CloseCircleOutlined.6201ef3d.js | 2 - .../assets/CloseCircleOutlined.f8dfd09a.js | 2 + ....d6e0f903.js => CollapsePanel.87687b29.js} | 10 +- ...4437ad06.js => ConnectorsView.b63d2fed.js} | 4 +- .../dist/assets/ContentLayout.72beb65c.js | 2 + .../dist/assets/ContentLayout.f8da2f52.js | 2 - ...dView.e4956a79.js => CrudView.b65b5675.js} | 4 +- ...a943fe4d.js => DeleteOutlined.a95bba08.js} | 4 +- ...ue_type_script_setup_true_lang.07ba149c.js | 2 - ...ue_type_script_setup_true_lang.69b9fa5f.js | 2 + ...in.1b0a59e9.js => EditorLogin.744f4da1.js} | 4 +- ...ditors.ca763c86.js => Editors.7a187912.js} | 4 +- .../dist/assets/EnvVars.5c1c7fef.js | 2 - .../dist/assets/EnvVars.eccb5753.js | 2 + .../dist/assets/EnvVarsEditor.178020b9.js | 2 + .../dist/assets/EnvVarsEditor.a36c5b80.js | 2 - .../{Error.e3013f1e.js => Error.dc6fbe06.js} | 4 +- .../ExclamationCircleOutlined.379cd3ee.js | 2 + .../ExclamationCircleOutlined.e0ca00ea.js | 2 - ...e_type_script_setup_true_lang.19012e78.js} | 4 +- .../{Files.068a9c51.js => Files.e21d5aea.js} | 4 +- .../{Form.980b0323.js => Form.20bbf0bc.js} | 4 +- ...tor.ed04179f.js => FormEditor.9b532b4a.js} | 4 +- ...ner.2728cecd.js => FormRunner.7499affa.js} | 4 +- abstra_statics/dist/assets/Home.3f5e4a25.js | 2 + abstra_statics/dist/assets/Home.47154a4d.js | 2 - abstra_statics/dist/assets/Home.77051e79.js | 2 - abstra_statics/dist/assets/Home.a55cc38e.js | 2 + ...tor.3a1c3b35.js => HookEditor.be8024c5.js} | 4 +- ...itor.c222ee56.js => JobEditor.aaa65932.js} | 4 +- .../{Live.d7f6b0f3.js => Live.ba8612ae.js} | 4 +- .../dist/assets/LoadingContainer.01cf1024.js | 2 - .../dist/assets/LoadingContainer.cc61e2fd.js | 2 + .../dist/assets/LoadingOutlined.6c0b95d8.js | 2 - .../dist/assets/LoadingOutlined.dad6ee6e.js | 2 + abstra_statics/dist/assets/Login.b8c7860c.js | 2 + .../{Login.9d92c780.js => Login.cd84aff7.js} | 4 +- abstra_statics/dist/assets/Login.fe553e92.js | 2 - ...ue_type_script_setup_true_lang.8de09e2d.js | 2 + ...ue_type_script_setup_true_lang.8e55196d.js | 2 - abstra_statics/dist/assets/Logo.1a35ae4d.js | 2 - abstra_statics/dist/assets/Logo.6e947620.js | 2 + .../{Logs.a0ca7a88.js => Logs.aa5e409c.js} | 4 +- abstra_statics/dist/assets/Main.24927fff.js | 2 + abstra_statics/dist/assets/Main.5448238a.js | 2 - ...{Navbar.6541dc95.js => Navbar.6c76e332.js} | 4 +- ...651b74bd.js => NavbarControls.a8a61aa1.js} | 4 +- .../dist/assets/OidcLoginCallback.7806a966.js | 2 + .../dist/assets/OidcLoginCallback.f3d06c0a.js | 2 - .../assets/OidcLogoutCallback.475974f9.js | 2 - .../assets/OidcLogoutCallback.9b8e8cb8.js | 2 + ...n.92151ef1.js => Organization.b54acdcf.js} | 4 +- ....b183c9a7.js => Organizations.22d1126e.js} | 4 +- ...5c.js => PhArrowClockwise.vue.2725755a.js} | 4 +- ...> PhArrowCounterClockwise.vue.8fbc5885.js} | 4 +- ...aa.js => PhArrowSquareOut.vue.188b81dc.js} | 4 +- ....vue.e9805eb3.js => PhBug.vue.00bc4255.js} | 4 +- ...68b597.js => PhCaretRight.vue.f72488ac.js} | 4 +- ...ue.3f8c120c.js => PhChats.vue.aa1113d9.js} | 4 +- ...f3146.js => PhCheckCircle.vue.d8163a77.js} | 4 +- ...vue.300f48e4.js => PhCopy.vue.0ae3f8ab.js} | 4 +- ...f63820.js => PhCopySimple.vue.992b99ff.js} | 4 +- .../dist/assets/PhCube.vue.fdd2f92c.js | 2 - .../dist/assets/PhCube.vue.fe0d14c9.js | 2 + ...js => PhDotsThreeVertical.vue.c39db334.js} | 4 +- ...9c.js => PhDownloadSimple.vue.33128e79.js} | 4 +- ...45d2075.js => PhFlowArrow.vue.d1d247ee.js} | 4 +- ...ue.9df45e5b.js => PhGlobe.vue.69f38b7f.js} | 4 +- ... => PhIdentificationBadge.vue.8d7f4c19.js} | 4 +- ...e.b5dcf2c4.js => PhKanban.vue.b52985f0.js} | 4 +- ...e.f2283e7d.js => PhPencil.vue.a2604470.js} | 4 +- ...500e5a18.js => PhQuestion.vue.129febdc.js} | 4 +- ...bb41.js => PhRocketLaunch.vue.c412030e.js} | 4 +- ....e09114f0.js => PhSignOut.vue.154299d7.js} | 4 +- ...227c.js => PhWebhooksLogo.vue.73a10b16.js} | 4 +- ...63.js => PlayerConfigProvider.44427467.js} | 4 +- ...r.78adf027.js => PlayerNavbar.56197f01.js} | 4 +- ...6533a.js => PreferencesEditor.7f20a5ae.js} | 4 +- ...roject.46f8b889.js => Project.67a86e96.js} | 4 +- .../dist/assets/ProjectLogin.4854bcae.js | 2 + .../dist/assets/ProjectLogin.779c0cc6.js | 2 - ...2da1e77.js => ProjectSettings.ac6a1c2e.js} | 4 +- ...jects.4eeee049.js => Projects.299d796c.js} | 4 +- ...4715.js => RequirementsEditor.6fcb258b.js} | 4 +- ...e_type_script_setup_true_lang.e5bff228.js} | 4 +- .../dist/assets/SaveButton.6d0d3fb7.js | 2 + .../dist/assets/SaveButton.8d79c51b.js | 2 - .../dist/assets/ScriptEditor.2b50300d.js | 2 - .../dist/assets/ScriptEditor.85d9edf4.js | 2 + ...idebar.49f66f34.js => Sidebar.ffb10124.js} | 4 +- ...ode.493d1c63.js => SourceCode.db5c4074.js} | 8 +- .../{Sql.8398cc71.js => Sql.ce229c79.js} | 4 +- ...{Stages.e3fc0dff.js => Stages.41a6c387.js} | 4 +- abstra_statics/dist/assets/Steps.2273c005.js | 2 - abstra_statics/dist/assets/Steps.767c106d.js | 2 + ...abPane.9889f7a8.js => TabPane.d0ca7ad5.js} | 4 +- ...or.cd67b96d.js => TableEditor.c92c7404.js} | 4 +- abstra_statics/dist/assets/Tables.59d6d17e.js | 2 + abstra_statics/dist/assets/Tables.a777ebbe.js | 2 - .../dist/assets/ThreadSelector.23af8b2c.js | 2 + .../dist/assets/ThreadSelector.788dee18.js | 2 - .../dist/assets/Threads.265da970.js | 2 + .../dist/assets/Threads.455cb692.js | 2 - ...e.js => UnsavedChangesHandler.9562b93c.js} | 4 +- ...34f261.js => VSCodeConnection.e06697af.js} | 4 +- .../{View.5943aae3.js => View.7bf35c36.js} | 4 +- ...e_type_script_setup_true_lang.3ec7f61f.js} | 4 +- ...mark.31f43e38.js => Watermark.43182479.js} | 4 +- ....c21baaba.js => WidgetPreview.4e7b4c90.js} | 4 +- ...kflow.602b68d4.js => Workflow.c11e942b.js} | 4 +- ...9e62fb31.js => WorkflowEditor.4a125a3f.js} | 4 +- .../dist/assets/WorkflowThreads.7e5ba87a.js | 2 - .../dist/assets/WorkflowThreads.ff4ec453.js | 2 + ...w.11202833.js => WorkflowView.3fb1431f.js} | 4 +- ...pace.2fe00dc2.js => Workspace.5af8309f.js} | 4 +- ...ign.57cbe6fb.js => ant-design.38477595.js} | 4 +- .../{api.a5810267.js => api.854a5e4c.js} | 4 +- abstra_statics/dist/assets/apiKey.9088bccb.js | 2 + abstra_statics/dist/assets/apiKey.e5976c38.js | 2 - .../dist/assets/asyncComputed.295e9e03.js | 2 + .../dist/assets/asyncComputed.d0f14ed3.js | 2 - .../dist/assets/colorHelpers.c5724389.js | 2 - .../dist/assets/colorHelpers.f04087b3.js | 2 + ...onsole.a316fa27.js => console.6cdcbc4a.js} | 4 +- ...ssMode.02cc791c.js => cssMode.a76de97d.js} | 4 +- ...etime.269334b3.js => datetime.744b5391.js} | 4 +- abstra_statics/dist/assets/dayjs.86e1a5b6.js | 2 + abstra_statics/dist/assets/dayjs.c2ac9d43.js | 2 - abstra_statics/dist/assets/editor.49995faa.js | 2 - abstra_statics/dist/assets/editor.519c2dc1.js | 2 + .../dist/assets/editor.main.36d84e90.js | 2 - .../dist/assets/editor.main.aa5ba997.js | 2 + abstra_statics/dist/assets/fetch.492045fb.js | 2 - abstra_statics/dist/assets/fetch.8c5b12c2.js | 2 + .../{forms.4f960625.js => forms.665a9dac.js} | 4 +- ...r2.9c65c42f.js => freemarker2.3806a069.js} | 4 +- .../dist/assets/gateway.c564a1cf.js | 2 + .../dist/assets/gateway.e77556e5.js | 2 - ...ars.863cb9e2.js => handlebars.76a5e9e9.js} | 6 +- .../{html.8243278a.js => html.489aa539.js} | 6 +- ...lMode.e7157056.js => htmlMode.adc6d55e.js} | 4 +- .../{index.ec6b7808.js => index.063f7c9e.js} | 4 +- .../{index.431b228d.js => index.2c515076.js} | 4 +- .../{index.5cb791be.js => index.30885e4b.js} | 4 +- abstra_statics/dist/assets/index.3f22f3b8.js | 2 - abstra_statics/dist/assets/index.40c3f00c.js | 2 - .../{index.e5bdb21b.js => index.4fbbd10e.js} | 6 +- .../{index.c2d72be7.js => index.5ccdbcb7.js} | 4 +- abstra_statics/dist/assets/index.61e7dffa.js | 2 + .../{index.b16edfcc.js => index.66903cf4.js} | 4 +- .../{index.7ab41b83.js => index.78793691.js} | 4 +- .../{index.03e5f55c.js => index.82d1f1ac.js} | 6 +- abstra_statics/dist/assets/index.8321252a.js | 2 + .../{index.c9c8d27c.js => index.9c5136e0.js} | 4 +- abstra_statics/dist/assets/index.bb32f6bd.js | 2 - .../{index.52fae423.js => index.bd967757.js} | 4 +- abstra_statics/dist/assets/index.c2ef572b.js | 2 - abstra_statics/dist/assets/index.c6ce1c1c.js | 2 + .../{index.2d05e5d1.js => index.eafefd9b.js} | 4 +- abstra_statics/dist/assets/index.f6dcc8cb.js | 2 + ...ipt.802e4030.js => javascript.21420475.js} | 6 +- ...nMode.9a008227.js => jsonMode.d4351b14.js} | 4 +- ...{liquid.acb04b21.js => liquid.47ad104a.js} | 6 +- ...{member.557bc064.js => member.863895af.js} | 4 +- .../dist/assets/metadata.789df59c.js | 2 + .../dist/assets/metadata.d6f3a171.js | 2 - ...n.6af6e7be.js => organization.ed97e5a8.js} | 4 +- abstra_statics/dist/assets/player.1b337bfb.js | 2 + abstra_statics/dist/assets/player.9489fff5.js | 2 - ...min.da1521bf.js => plotly.min.c288951c.js} | 4 +- ...olling.ce5b4e64.js => polling.4e30c061.js} | 4 +- .../dist/assets/popupNotifcation.0e86d6a8.js | 2 + .../dist/assets/popupNotifcation.d2ca3d78.js | 2 - ...roject.7817fdd7.js => project.40b63ace.js} | 4 +- ...{python.7a521083.js => python.2fad7506.js} | 6 +- .../{razor.7f9ae009.js => razor.9516989f.js} | 6 +- ...{record.34d5b504.js => record.cbb43e89.js} | 4 +- ...ory.a59a08e6.js => repository.9283185a.js} | 4 +- abstra_statics/dist/assets/router.59916c0d.js | 2 + abstra_statics/dist/assets/router.87582bcc.js | 2 - ...cripts.709f5489.js => scripts.32887e06.js} | 4 +- ...{string.eaeb96c3.js => string.e75a34fd.js} | 4 +- ...{tables.e9d41f69.js => tables.3aa20dd6.js} | 4 +- ...b466.js => toggleHighContrast.db48a34e.js} | 98 +++++++++---------- ...{tsMode.30dc47d8.js => tsMode.079c19d5.js} | 4 +- ...ipt.902b12cd.js => typescript.e19112ef.js} | 6 +- abstra_statics/dist/assets/url.5959ae47.js | 2 + abstra_statics/dist/assets/url.c1b32560.js | 2 - abstra_statics/dist/assets/utils.4c5a1d76.js | 4 + abstra_statics/dist/assets/utils.b9d20cd5.js | 4 - abstra_statics/dist/assets/uuid.06ef1e24.js | 2 + abstra_statics/dist/assets/uuid.27635aee.js | 2 - ...ns.f7853e39.js => validations.0afef3f1.js} | 4 +- ...f.js => vue-quill.esm-bundler.f1f436e4.js} | 4 +- ...ter.4c13f3d4.js => vue-router.3fd92176.js} | 12 +-- ...ae240ce8.js => workspaceStore.411ef1fe.js} | 6 +- ...ces.1ee4ae8d.js => workspaces.b456ec6a.js} | 4 +- .../{xml.f90a8222.js => xml.fec6f77b.js} | 6 +- .../{yaml.a868c292.js => yaml.a1fd6845.js} | 6 +- abstra_statics/dist/console.html | 48 ++++----- abstra_statics/dist/editor.html | 12 +-- abstra_statics/dist/player.html | 16 +-- 221 files changed, 444 insertions(+), 444 deletions(-) create mode 100644 abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js delete mode 100644 abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js rename abstra_statics/dist/assets/{AccessControlEditor.c653e384.js => AccessControlEditor.c8a08e74.js} (61%) create mode 100644 abstra_statics/dist/assets/ApiKeys.134defd6.js delete mode 100644 abstra_statics/dist/assets/ApiKeys.364c2cfa.js create mode 100644 abstra_statics/dist/assets/App.ba11635e.js delete mode 100644 abstra_statics/dist/assets/App.e3fc5288.js delete mode 100644 abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.b3029d8c.js create mode 100644 abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.f9e04732.js rename abstra_statics/dist/assets/{Avatar.6f67d038.js => Avatar.2107fa31.js} (61%) rename abstra_statics/dist/assets/{Badge.49622b8e.js => Badge.bcc65740.js} (83%) create mode 100644 abstra_statics/dist/assets/BaseLayout.294a6887.js delete mode 100644 abstra_statics/dist/assets/BaseLayout.e1793d5b.js create mode 100644 abstra_statics/dist/assets/Billing.274971a6.js delete mode 100644 abstra_statics/dist/assets/Billing.9a1094cc.js rename abstra_statics/dist/assets/{BookOutlined.a8460802.js => BookOutlined.5f7ad9dc.js} (61%) rename abstra_statics/dist/assets/{Builds.6f48f61c.js => Builds.e336d48e.js} (91%) rename abstra_statics/dist/assets/{Card.b3c66431.js => Card.0ce127d8.js} (98%) rename abstra_statics/dist/assets/{CircularLoading.b40e14c8.js => CircularLoading.b920c29a.js} (99%) delete mode 100644 abstra_statics/dist/assets/CloseCircleOutlined.6201ef3d.js create mode 100644 abstra_statics/dist/assets/CloseCircleOutlined.f8dfd09a.js rename abstra_statics/dist/assets/{CollapsePanel.d6e0f903.js => CollapsePanel.87687b29.js} (65%) rename abstra_statics/dist/assets/{ConnectorsView.4437ad06.js => ConnectorsView.b63d2fed.js} (76%) create mode 100644 abstra_statics/dist/assets/ContentLayout.72beb65c.js delete mode 100644 abstra_statics/dist/assets/ContentLayout.f8da2f52.js rename abstra_statics/dist/assets/{CrudView.e4956a79.js => CrudView.b65b5675.js} (90%) rename abstra_statics/dist/assets/{DeleteOutlined.a943fe4d.js => DeleteOutlined.a95bba08.js} (51%) delete mode 100644 abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js create mode 100644 abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js rename abstra_statics/dist/assets/{EditorLogin.1b0a59e9.js => EditorLogin.744f4da1.js} (80%) rename abstra_statics/dist/assets/{Editors.ca763c86.js => Editors.7a187912.js} (57%) delete mode 100644 abstra_statics/dist/assets/EnvVars.5c1c7fef.js create mode 100644 abstra_statics/dist/assets/EnvVars.eccb5753.js create mode 100644 abstra_statics/dist/assets/EnvVarsEditor.178020b9.js delete mode 100644 abstra_statics/dist/assets/EnvVarsEditor.a36c5b80.js rename abstra_statics/dist/assets/{Error.e3013f1e.js => Error.dc6fbe06.js} (51%) create mode 100644 abstra_statics/dist/assets/ExclamationCircleOutlined.379cd3ee.js delete mode 100644 abstra_statics/dist/assets/ExclamationCircleOutlined.e0ca00ea.js rename abstra_statics/dist/assets/{ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.f2f9cb8f.js => ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.19012e78.js} (91%) rename abstra_statics/dist/assets/{Files.068a9c51.js => Files.e21d5aea.js} (60%) rename abstra_statics/dist/assets/{Form.980b0323.js => Form.20bbf0bc.js} (53%) rename abstra_statics/dist/assets/{FormEditor.ed04179f.js => FormEditor.9b532b4a.js} (87%) rename abstra_statics/dist/assets/{FormRunner.2728cecd.js => FormRunner.7499affa.js} (97%) create mode 100644 abstra_statics/dist/assets/Home.3f5e4a25.js delete mode 100644 abstra_statics/dist/assets/Home.47154a4d.js delete mode 100644 abstra_statics/dist/assets/Home.77051e79.js create mode 100644 abstra_statics/dist/assets/Home.a55cc38e.js rename abstra_statics/dist/assets/{HookEditor.3a1c3b35.js => HookEditor.be8024c5.js} (77%) rename abstra_statics/dist/assets/{JobEditor.c222ee56.js => JobEditor.aaa65932.js} (97%) rename abstra_statics/dist/assets/{Live.d7f6b0f3.js => Live.ba8612ae.js} (81%) delete mode 100644 abstra_statics/dist/assets/LoadingContainer.01cf1024.js create mode 100644 abstra_statics/dist/assets/LoadingContainer.cc61e2fd.js delete mode 100644 abstra_statics/dist/assets/LoadingOutlined.6c0b95d8.js create mode 100644 abstra_statics/dist/assets/LoadingOutlined.dad6ee6e.js create mode 100644 abstra_statics/dist/assets/Login.b8c7860c.js rename abstra_statics/dist/assets/{Login.9d92c780.js => Login.cd84aff7.js} (72%) delete mode 100644 abstra_statics/dist/assets/Login.fe553e92.js create mode 100644 abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8de09e2d.js delete mode 100644 abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8e55196d.js delete mode 100644 abstra_statics/dist/assets/Logo.1a35ae4d.js create mode 100644 abstra_statics/dist/assets/Logo.6e947620.js rename abstra_statics/dist/assets/{Logs.a0ca7a88.js => Logs.aa5e409c.js} (91%) create mode 100644 abstra_statics/dist/assets/Main.24927fff.js delete mode 100644 abstra_statics/dist/assets/Main.5448238a.js rename abstra_statics/dist/assets/{Navbar.6541dc95.js => Navbar.6c76e332.js} (71%) rename abstra_statics/dist/assets/{NavbarControls.651b74bd.js => NavbarControls.a8a61aa1.js} (92%) create mode 100644 abstra_statics/dist/assets/OidcLoginCallback.7806a966.js delete mode 100644 abstra_statics/dist/assets/OidcLoginCallback.f3d06c0a.js delete mode 100644 abstra_statics/dist/assets/OidcLogoutCallback.475974f9.js create mode 100644 abstra_statics/dist/assets/OidcLogoutCallback.9b8e8cb8.js rename abstra_statics/dist/assets/{Organization.92151ef1.js => Organization.b54acdcf.js} (87%) rename abstra_statics/dist/assets/{Organizations.b183c9a7.js => Organizations.22d1126e.js} (50%) rename abstra_statics/dist/assets/{PhArrowClockwise.vue.5c4db05c.js => PhArrowClockwise.vue.2725755a.js} (76%) rename abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.548df89b.js => PhArrowCounterClockwise.vue.8fbc5885.js} (69%) rename abstra_statics/dist/assets/{PhArrowSquareOut.vue.340970aa.js => PhArrowSquareOut.vue.188b81dc.js} (68%) rename abstra_statics/dist/assets/{PhBug.vue.e9805eb3.js => PhBug.vue.00bc4255.js} (82%) rename abstra_statics/dist/assets/{PhCaretRight.vue.d968b597.js => PhCaretRight.vue.f72488ac.js} (76%) rename abstra_statics/dist/assets/{PhChats.vue.3f8c120c.js => PhChats.vue.aa1113d9.js} (85%) rename abstra_statics/dist/assets/{PhCheckCircle.vue.aa5f3146.js => PhCheckCircle.vue.d8163a77.js} (71%) rename abstra_statics/dist/assets/{PhCopy.vue.300f48e4.js => PhCopy.vue.0ae3f8ab.js} (70%) rename abstra_statics/dist/assets/{PhCopySimple.vue.39f63820.js => PhCopySimple.vue.992b99ff.js} (60%) delete mode 100644 abstra_statics/dist/assets/PhCube.vue.fdd2f92c.js create mode 100644 abstra_statics/dist/assets/PhCube.vue.fe0d14c9.js rename abstra_statics/dist/assets/{PhDotsThreeVertical.vue.75f90272.js => PhDotsThreeVertical.vue.c39db334.js} (59%) rename abstra_statics/dist/assets/{PhDownloadSimple.vue.285a519c.js => PhDownloadSimple.vue.33128e79.js} (64%) rename abstra_statics/dist/assets/{PhFlowArrow.vue.d45d2075.js => PhFlowArrow.vue.d1d247ee.js} (66%) rename abstra_statics/dist/assets/{PhGlobe.vue.9df45e5b.js => PhGlobe.vue.69f38b7f.js} (86%) rename abstra_statics/dist/assets/{PhIdentificationBadge.vue.7047bcd0.js => PhIdentificationBadge.vue.8d7f4c19.js} (81%) rename abstra_statics/dist/assets/{PhKanban.vue.b5dcf2c4.js => PhKanban.vue.b52985f0.js} (77%) rename abstra_statics/dist/assets/{PhPencil.vue.f2283e7d.js => PhPencil.vue.a2604470.js} (76%) rename abstra_statics/dist/assets/{PhQuestion.vue.500e5a18.js => PhQuestion.vue.129febdc.js} (81%) rename abstra_statics/dist/assets/{PhRocketLaunch.vue.82bfbb41.js => PhRocketLaunch.vue.c412030e.js} (85%) rename abstra_statics/dist/assets/{PhSignOut.vue.e09114f0.js => PhSignOut.vue.154299d7.js} (58%) rename abstra_statics/dist/assets/{PhWebhooksLogo.vue.1b61227c.js => PhWebhooksLogo.vue.73a10b16.js} (87%) rename abstra_statics/dist/assets/{PlayerConfigProvider.8a3bab63.js => PlayerConfigProvider.44427467.js} (98%) rename abstra_statics/dist/assets/{PlayerNavbar.78adf027.js => PlayerNavbar.56197f01.js} (82%) rename abstra_statics/dist/assets/{PreferencesEditor.a206533a.js => PreferencesEditor.7f20a5ae.js} (98%) rename abstra_statics/dist/assets/{Project.46f8b889.js => Project.67a86e96.js} (88%) create mode 100644 abstra_statics/dist/assets/ProjectLogin.4854bcae.js delete mode 100644 abstra_statics/dist/assets/ProjectLogin.779c0cc6.js rename abstra_statics/dist/assets/{ProjectSettings.02da1e77.js => ProjectSettings.ac6a1c2e.js} (59%) rename abstra_statics/dist/assets/{Projects.4eeee049.js => Projects.299d796c.js} (57%) rename abstra_statics/dist/assets/{RequirementsEditor.c2fb4715.js => RequirementsEditor.6fcb258b.js} (90%) rename abstra_statics/dist/assets/{RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js => RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js} (58%) create mode 100644 abstra_statics/dist/assets/SaveButton.6d0d3fb7.js delete mode 100644 abstra_statics/dist/assets/SaveButton.8d79c51b.js delete mode 100644 abstra_statics/dist/assets/ScriptEditor.2b50300d.js create mode 100644 abstra_statics/dist/assets/ScriptEditor.85d9edf4.js rename abstra_statics/dist/assets/{Sidebar.49f66f34.js => Sidebar.ffb10124.js} (96%) rename abstra_statics/dist/assets/{SourceCode.493d1c63.js => SourceCode.db5c4074.js} (92%) rename abstra_statics/dist/assets/{Sql.8398cc71.js => Sql.ce229c79.js} (83%) rename abstra_statics/dist/assets/{Stages.e3fc0dff.js => Stages.41a6c387.js} (93%) delete mode 100644 abstra_statics/dist/assets/Steps.2273c005.js create mode 100644 abstra_statics/dist/assets/Steps.767c106d.js rename abstra_statics/dist/assets/{TabPane.9889f7a8.js => TabPane.d0ca7ad5.js} (99%) rename abstra_statics/dist/assets/{TableEditor.cd67b96d.js => TableEditor.c92c7404.js} (97%) create mode 100644 abstra_statics/dist/assets/Tables.59d6d17e.js delete mode 100644 abstra_statics/dist/assets/Tables.a777ebbe.js create mode 100644 abstra_statics/dist/assets/ThreadSelector.23af8b2c.js delete mode 100644 abstra_statics/dist/assets/ThreadSelector.788dee18.js create mode 100644 abstra_statics/dist/assets/Threads.265da970.js delete mode 100644 abstra_statics/dist/assets/Threads.455cb692.js rename abstra_statics/dist/assets/{UnsavedChangesHandler.5ab8a23e.js => UnsavedChangesHandler.9562b93c.js} (88%) rename abstra_statics/dist/assets/{VSCodeConnection.2f34f261.js => VSCodeConnection.e06697af.js} (79%) rename abstra_statics/dist/assets/{View.5943aae3.js => View.7bf35c36.js} (92%) rename abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.08004338.js => View.vue_vue_type_script_setup_true_lang.3ec7f61f.js} (89%) rename abstra_statics/dist/assets/{Watermark.31f43e38.js => Watermark.43182479.js} (86%) rename abstra_statics/dist/assets/{WidgetPreview.c21baaba.js => WidgetPreview.4e7b4c90.js} (83%) rename abstra_statics/dist/assets/{Workflow.602b68d4.js => Workflow.c11e942b.js} (99%) rename abstra_statics/dist/assets/{WorkflowEditor.9e62fb31.js => WorkflowEditor.4a125a3f.js} (77%) delete mode 100644 abstra_statics/dist/assets/WorkflowThreads.7e5ba87a.js create mode 100644 abstra_statics/dist/assets/WorkflowThreads.ff4ec453.js rename abstra_statics/dist/assets/{WorkflowView.11202833.js => WorkflowView.3fb1431f.js} (98%) rename abstra_statics/dist/assets/{Workspace.2fe00dc2.js => Workspace.5af8309f.js} (89%) rename abstra_statics/dist/assets/{ant-design.57cbe6fb.js => ant-design.38477595.js} (50%) rename abstra_statics/dist/assets/{api.a5810267.js => api.854a5e4c.js} (74%) create mode 100644 abstra_statics/dist/assets/apiKey.9088bccb.js delete mode 100644 abstra_statics/dist/assets/apiKey.e5976c38.js create mode 100644 abstra_statics/dist/assets/asyncComputed.295e9e03.js delete mode 100644 abstra_statics/dist/assets/asyncComputed.d0f14ed3.js delete mode 100644 abstra_statics/dist/assets/colorHelpers.c5724389.js create mode 100644 abstra_statics/dist/assets/colorHelpers.f04087b3.js rename abstra_statics/dist/assets/{console.a316fa27.js => console.6cdcbc4a.js} (99%) rename abstra_statics/dist/assets/{cssMode.02cc791c.js => cssMode.a76de97d.js} (99%) rename abstra_statics/dist/assets/{datetime.269334b3.js => datetime.744b5391.js} (66%) create mode 100644 abstra_statics/dist/assets/dayjs.86e1a5b6.js delete mode 100644 abstra_statics/dist/assets/dayjs.c2ac9d43.js delete mode 100644 abstra_statics/dist/assets/editor.49995faa.js create mode 100644 abstra_statics/dist/assets/editor.519c2dc1.js delete mode 100644 abstra_statics/dist/assets/editor.main.36d84e90.js create mode 100644 abstra_statics/dist/assets/editor.main.aa5ba997.js delete mode 100644 abstra_statics/dist/assets/fetch.492045fb.js create mode 100644 abstra_statics/dist/assets/fetch.8c5b12c2.js rename abstra_statics/dist/assets/{forms.4f960625.js => forms.665a9dac.js} (93%) rename abstra_statics/dist/assets/{freemarker2.9c65c42f.js => freemarker2.3806a069.js} (98%) create mode 100644 abstra_statics/dist/assets/gateway.c564a1cf.js delete mode 100644 abstra_statics/dist/assets/gateway.e77556e5.js rename abstra_statics/dist/assets/{handlebars.863cb9e2.js => handlebars.76a5e9e9.js} (91%) rename abstra_statics/dist/assets/{html.8243278a.js => html.489aa539.js} (91%) rename abstra_statics/dist/assets/{htmlMode.e7157056.js => htmlMode.adc6d55e.js} (99%) rename abstra_statics/dist/assets/{index.ec6b7808.js => index.063f7c9e.js} (61%) rename abstra_statics/dist/assets/{index.431b228d.js => index.2c515076.js} (73%) rename abstra_statics/dist/assets/{index.5cb791be.js => index.30885e4b.js} (94%) delete mode 100644 abstra_statics/dist/assets/index.3f22f3b8.js delete mode 100644 abstra_statics/dist/assets/index.40c3f00c.js rename abstra_statics/dist/assets/{index.e5bdb21b.js => index.4fbbd10e.js} (80%) rename abstra_statics/dist/assets/{index.c2d72be7.js => index.5ccdbcb7.js} (96%) create mode 100644 abstra_statics/dist/assets/index.61e7dffa.js rename abstra_statics/dist/assets/{index.b16edfcc.js => index.66903cf4.js} (55%) rename abstra_statics/dist/assets/{index.7ab41b83.js => index.78793691.js} (98%) rename abstra_statics/dist/assets/{index.03e5f55c.js => index.82d1f1ac.js} (79%) create mode 100644 abstra_statics/dist/assets/index.8321252a.js rename abstra_statics/dist/assets/{index.c9c8d27c.js => index.9c5136e0.js} (86%) delete mode 100644 abstra_statics/dist/assets/index.bb32f6bd.js rename abstra_statics/dist/assets/{index.52fae423.js => index.bd967757.js} (84%) delete mode 100644 abstra_statics/dist/assets/index.c2ef572b.js create mode 100644 abstra_statics/dist/assets/index.c6ce1c1c.js rename abstra_statics/dist/assets/{index.2d05e5d1.js => index.eafefd9b.js} (96%) create mode 100644 abstra_statics/dist/assets/index.f6dcc8cb.js rename abstra_statics/dist/assets/{javascript.802e4030.js => javascript.21420475.js} (64%) rename abstra_statics/dist/assets/{jsonMode.9a008227.js => jsonMode.d4351b14.js} (99%) rename abstra_statics/dist/assets/{liquid.acb04b21.js => liquid.47ad104a.js} (91%) rename abstra_statics/dist/assets/{member.557bc064.js => member.863895af.js} (78%) create mode 100644 abstra_statics/dist/assets/metadata.789df59c.js delete mode 100644 abstra_statics/dist/assets/metadata.d6f3a171.js rename abstra_statics/dist/assets/{organization.6af6e7be.js => organization.ed97e5a8.js} (69%) create mode 100644 abstra_statics/dist/assets/player.1b337bfb.js delete mode 100644 abstra_statics/dist/assets/player.9489fff5.js rename abstra_statics/dist/assets/{plotly.min.da1521bf.js => plotly.min.c288951c.js} (99%) rename abstra_statics/dist/assets/{polling.ce5b4e64.js => polling.4e30c061.js} (53%) create mode 100644 abstra_statics/dist/assets/popupNotifcation.0e86d6a8.js delete mode 100644 abstra_statics/dist/assets/popupNotifcation.d2ca3d78.js rename abstra_statics/dist/assets/{project.7817fdd7.js => project.40b63ace.js} (76%) rename abstra_statics/dist/assets/{python.7a521083.js => python.2fad7506.js} (90%) rename abstra_statics/dist/assets/{razor.7f9ae009.js => razor.9516989f.js} (92%) rename abstra_statics/dist/assets/{record.34d5b504.js => record.cbb43e89.js} (77%) rename abstra_statics/dist/assets/{repository.a59a08e6.js => repository.9283185a.js} (77%) create mode 100644 abstra_statics/dist/assets/router.59916c0d.js delete mode 100644 abstra_statics/dist/assets/router.87582bcc.js rename abstra_statics/dist/assets/{scripts.709f5489.js => scripts.32887e06.js} (95%) rename abstra_statics/dist/assets/{string.eaeb96c3.js => string.e75a34fd.js} (55%) rename abstra_statics/dist/assets/{tables.e9d41f69.js => tables.3aa20dd6.js} (94%) rename abstra_statics/dist/assets/{toggleHighContrast.017fb466.js => toggleHighContrast.db48a34e.js} (99%) rename abstra_statics/dist/assets/{tsMode.30dc47d8.js => tsMode.079c19d5.js} (98%) rename abstra_statics/dist/assets/{typescript.902b12cd.js => typescript.e19112ef.js} (91%) create mode 100644 abstra_statics/dist/assets/url.5959ae47.js delete mode 100644 abstra_statics/dist/assets/url.c1b32560.js create mode 100644 abstra_statics/dist/assets/utils.4c5a1d76.js delete mode 100644 abstra_statics/dist/assets/utils.b9d20cd5.js create mode 100644 abstra_statics/dist/assets/uuid.06ef1e24.js delete mode 100644 abstra_statics/dist/assets/uuid.27635aee.js rename abstra_statics/dist/assets/{validations.f7853e39.js => validations.0afef3f1.js} (72%) rename abstra_statics/dist/assets/{vue-quill.esm-bundler.7a334f9f.js => vue-quill.esm-bundler.f1f436e4.js} (99%) rename abstra_statics/dist/assets/{vue-router.4c13f3d4.js => vue-router.3fd92176.js} (99%) rename abstra_statics/dist/assets/{workspaceStore.ae240ce8.js => workspaceStore.411ef1fe.js} (93%) rename abstra_statics/dist/assets/{workspaces.1ee4ae8d.js => workspaces.b456ec6a.js} (90%) rename abstra_statics/dist/assets/{xml.f90a8222.js => xml.fec6f77b.js} (84%) rename abstra_statics/dist/assets/{yaml.a868c292.js => yaml.a1fd6845.js} (88%) diff --git a/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js b/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js new file mode 100644 index 000000000..a0c9e04dd --- /dev/null +++ b/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js @@ -0,0 +1,2 @@ +import{d as r,o as d,c as f,w as s,b as o,Z as c,u as n,df as u,ez as i,eC as l,bS as b}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c1f6b8db-cb0c-45a4-9fb1-3d8f4dcf847f",e._sentryDebugIdIdentifier="sentry-dbid-c1f6b8db-cb0c-45a4-9fb1-3d8f4dcf847f")}catch{}})();const _=r({__name:"AbstraButton",setup(e){return(t,a)=>(d(),f(n(b),i(l(t.$attrs)),{default:s(()=>[o(n(u),{style:{display:"flex","align-items":"center","justify-content":"center",gap:"5px"}},{default:s(()=>[c(t.$slots,"default")]),_:3})]),_:3},16))}});export{_}; +//# sourceMappingURL=AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js.map diff --git a/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js b/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js deleted file mode 100644 index f74bd1457..000000000 --- a/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as r,o,c as d,w as s,b as f,Z as u,u as n,df as i,ez as l,eC as c,bS as p}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6909052c-3fe7-49f5-b3a1-e7e4de399990",e._sentryDebugIdIdentifier="sentry-dbid-6909052c-3fe7-49f5-b3a1-e7e4de399990")}catch{}})();const b=r({__name:"AbstraButton",setup(e){return(t,a)=>(o(),d(n(p),l(c(t.$attrs)),{default:s(()=>[f(n(i),{style:{display:"flex","align-items":"center","justify-content":"center",gap:"5px"}},{default:s(()=>[u(t.$slots,"default")]),_:3})]),_:3},16))}});export{b as _}; -//# sourceMappingURL=AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js.map diff --git a/abstra_statics/dist/assets/AccessControlEditor.c653e384.js b/abstra_statics/dist/assets/AccessControlEditor.c8a08e74.js similarity index 61% rename from abstra_statics/dist/assets/AccessControlEditor.c653e384.js rename to abstra_statics/dist/assets/AccessControlEditor.c8a08e74.js index 6b1e31a92..d36f7c37f 100644 --- a/abstra_statics/dist/assets/AccessControlEditor.c653e384.js +++ b/abstra_statics/dist/assets/AccessControlEditor.c8a08e74.js @@ -1,2 +1,2 @@ -var T=Object.defineProperty;var D=(i,e,s)=>e in i?T(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var M=(i,e,s)=>(D(i,typeof e!="symbol"?e+"":e,s),s);import{C as E}from"./ContentLayout.f8da2f52.js";import{l as I}from"./fetch.492045fb.js";import{E as N}from"./record.34d5b504.js";import{d as C,B as A,f as b,o as n,X as y,Z as $,R as k,eb as O,a as _,c as v,ej as U,w as r,aF as f,b as a,u as t,bS as z,ee as S,cS as L,ec as P,aR as H,cR as F,aA as G,ef as J,aV as Q,d7 as W,cQ as X,cP as Z,df as w,da as Y,d3 as K,db as ee,d9 as j,d8 as te,E as se}from"./vue-router.4c13f3d4.js";import{E as oe}from"./repository.a59a08e6.js";import{a as q}from"./asyncComputed.d0f14ed3.js";import{S as re}from"./SaveButton.8d79c51b.js";import{I as ae}from"./PhGlobe.vue.9df45e5b.js";import{u as x}from"./editor.49995faa.js";import{F as le}from"./PhArrowSquareOut.vue.340970aa.js";import{A as ne}from"./index.c2ef572b.js";import{i as ie}from"./metadata.d6f3a171.js";import{A as B}from"./index.e5bdb21b.js";import"./gateway.e77556e5.js";import"./popupNotifcation.d2ca3d78.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="f1915aea-ef5e-40c2-90c4-f49b5d4993c0",i._sentryDebugIdIdentifier="sentry-dbid-f1915aea-ef5e-40c2-90c4-f49b5d4993c0")}catch{}})();const ce=["width","height","fill","transform"],ue={key:0},de=_("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),pe=[de],he={key:1},fe=_("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),ge=_("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),me=[fe,ge],ye={key:2},ve=_("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),be=[ve],_e={key:3},Ce=_("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),we=[Ce],Ve={key:4},Ae=_("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),He=[Ae],ke={key:5},Se=_("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),Pe=[Se],Re={name:"PhLockSimple"},Me=C({...Re,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,s=A("weight","regular"),c=A("size","1em"),g=A("color","currentColor"),m=A("mirrored",!1),o=b(()=>{var l;return(l=e.weight)!=null?l:s}),h=b(()=>{var l;return(l=e.size)!=null?l:c}),d=b(()=>{var l;return(l=e.color)!=null?l:g}),u=b(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(l,p)=>(n(),y("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:u.value},l.$attrs),[$(l.$slots,"default"),o.value==="bold"?(n(),y("g",ue,pe)):o.value==="duotone"?(n(),y("g",he,me)):o.value==="fill"?(n(),y("g",ye,be)):o.value==="light"?(n(),y("g",_e,we)):o.value==="regular"?(n(),y("g",Ve,He)):o.value==="thin"?(n(),y("g",ke,Pe)):k("",!0)],16,ce))}});class R{constructor(e){M(this,"record");this.record=N.from(e)}get id(){return this.record.get("id")}get type(){return this.record.get("type")}get title(){return this.record.get("title")}get isPublic(){return this.record.get("is_public")}set isPublic(e){e&&this.record.set("required_roles",[]),this.record.set("is_public",e)}get requiredRoles(){return this.record.get("required_roles")}set requiredRoles(e){e.length!==0&&this.record.set("is_public",!1),this.record.set("required_roles",e)}makePublic(){this.isPublic=!0}makeProtected(){this.isPublic=!1,this.requiredRoles=[]}require(e){e.length!==0&&(this.isPublic=!1),this.requiredRoles=e}get visibility(){return this.isPublic?"public":"private"}hasChanges(){return this.record.hasChanges("is_public")||this.record.hasChangesDeep("required_roles")}get changes(){return this.record.changes}get initialState(){return this.record.initialState}toUpdateDTO(){return{id:this.id,is_public:this.isPublic,required_roles:this.requiredRoles}}commit(){this.record.commit()}static from(e){return new R(e)}}class Ze{constructor(e=I){this.fetch=e}async list(){return(await(await this.fetch("/_editor/api/access-control",{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(R.from)}async update(e){const s=e.reduce((g,m)=>(m.hasChanges()&&g.push({id:m.id,...m.changes}),g),[]);return await(await fetch("/_editor/api/access-control",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).json()}}const je=_("span",null," Project Roles ",-1),qe=C({__name:"RoleSelector",props:{value:{},roleOptions:{},disabled:{type:Boolean}},emits:["update:value"],setup(i,{emit:e}){const s=i,c=x(),g=o=>{e("update:value",o)},m=C({props:{vnodes:{type:Object,required:!0}},render(){return this.vnodes}});return(o,h)=>(n(),v(t(G),{value:o.value,mode:"multiple",disabled:o.disabled,"show-arrow":"","onUpdate:value":g},U({dropdownRender:r(({menuNode:d})=>[a(t(m),{vnodes:d},null,8,["vnodes"]),a(t(ne),{style:{margin:"4px 0"}}),t(c).links?(n(),v(t(z),{key:0,type:"default",style:{display:"flex","align-items":"center","justify-content":"center",width:"100%",gap:"4px"},href:t(c).links.roles,target:"abstra_project"},{default:r(()=>[a(t(le),{size:"16"}),f(" Manage roles in Cloud Console ")]),_:1},8,["href"])):k("",!0)]),default:r(()=>[a(t(F),null,{label:r(()=>[je]),default:r(()=>[(n(!0),y(H,null,S(o.roleOptions,d=>(n(),v(t(L),{key:d,value:d},{default:r(()=>[f(P(d),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:2},[s.disabled?void 0:{name:"placeholder",fn:r(()=>[f(" Leave empty to allow all listed users ")]),key:"0"}]),1032,["value","disabled"]))}}),xe=C({__name:"AccessControlItem",props:{accessControl:{},roles:{}},emits:["update:access-control"],setup(i,{emit:e}){const s=i,c=b(()=>s.roles.map(o=>o.name)),g=o=>{o?s.accessControl.makePublic():s.accessControl.makeProtected(),e("update:access-control",s.accessControl)},m=o=>{s.accessControl.require(o),o.length!==0&&(s.accessControl.isPublic=!1),e("update:access-control",s.accessControl)};return(o,h)=>(n(),v(t(w),{justify:"space-between",align:"center",gap:"small"},{default:r(()=>[(n(),v(J(t(ie)(o.accessControl.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),a(t(W),{style:{width:"300px","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},{default:r(()=>[a(t(Q),{title:o.accessControl.title,placement:"left",open:o.accessControl.title.length>36?void 0:!1},{default:r(()=>[f(P(o.accessControl.title),1)]),_:1},8,["title","open"])]),_:1}),a(t(w),{gap:"large",align:"center"},{default:r(()=>[a(qe,{disabled:o.accessControl.visibility==="public",style:{width:"320px"},value:o.accessControl.requiredRoles||[],"role-options":c.value||[],"onUpdate:value":h[0]||(h[0]=d=>m(d))},null,8,["disabled","value","role-options"]),a(t(X),{value:o.accessControl.visibility},{default:r(()=>[a(t(Z),{value:"public",onChange:h[1]||(h[1]=d=>g(!0))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[f(" Public "),a(t(ae),{size:14})]),_:1})]),_:1}),a(t(Z),{value:"private",onChange:h[2]||(h[2]=d=>g(!1))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[f(" Private "),a(t(Me),{size:14})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}))}}),Be=C({__name:"DanglingRolesAlert",props:{danglingRoles:{}},setup(i){return(e,s)=>(n(),v(t(B),{type:"warning","show-icon":"",closable:"",style:{margin:"5px"}},{description:r(()=>[a(t(Y),null,{default:r(()=>[f("The following roles are not defined in the Cloud Console:")]),_:1}),(n(!0),y(H,null,S(e.danglingRoles,c=>(n(),v(t(K),{key:c,style:{margin:"2px"},color:"red"},{default:r(()=>[f(P(c),1)]),_:2},1024))),128))]),_:1}))}}),Te=C({__name:"View",props:{accessControls:{},roles:{},loading:{type:Boolean}},emits:["update:access-controls","save"],setup(i,{emit:e}){const s=i,c=u=>{const l=s.accessControls.findIndex(p=>p.id===u.id);l!==-1&&(s.accessControls[l]=u,e("update:access-controls",[...s.accessControls]))},g=b(()=>{var u;return((u=s.accessControls)==null?void 0:u.filter(l=>l.hasChanges()))||[]}),m=b(()=>g.value.length>0),h={save:async()=>{e("save")},hasChanges:()=>m.value},d=b(()=>{const u=[...new Set(s.accessControls.flatMap(p=>p.requiredRoles)||[])],l=s.roles.map(p=>p.name)||[];return(u==null?void 0:u.filter(p=>!l.includes(p)))||[]});return(u,l)=>(n(),y(H,null,[!u.loading&&d.value.length>0?(n(),v(Be,{key:0,"dangling-roles":d.value},null,8,["dangling-roles"])):k("",!0),a(re,{model:h}),a(t(w),{vertical:"",gap:"small",style:{"margin-top":"10px"}},{default:r(()=>[(n(!0),y(H,null,S(u.accessControls,p=>(n(),v(t(w),{key:p.id},{default:r(()=>[a(xe,{"access-control":p,roles:u.roles,"onUpdate:accessControl":c},null,8,["access-control","roles"])]),_:2},1024))),128))]),_:1})],64))}}),it=C({__name:"AccessControlEditor",setup(i){const e=x(),s=new Ze,{result:c,refetch:g}=q(async()=>await s.list()),m=b(()=>{var l;return((l=c.value)==null?void 0:l.filter(p=>p.hasChanges()))||[]}),o=async()=>{await s.update(m.value),await g()},h=new oe,{result:d,loading:u}=q(()=>h.list(100,0));return(l,p)=>(n(),v(E,null,{default:r(()=>[a(t(ee),null,{default:r(()=>[f("Access Control")]),_:1}),a(t(j),null,{default:r(()=>[f(" Set your project\u2019s pages as public, accessible to all users, or restricted to users with specific roles. ")]),_:1}),a(t(j),null,{default:r(()=>{var V;return[f(" Manage users and roles on the cloud's "),a(t(te),{href:(V=t(e).links)==null?void 0:V.users,target:"abstra_project"},{default:r(()=>[f("Access Control tab")]),_:1},8,["href"]),f(". Settings applied here will be enforced only in the cloud environment. ")]}),_:1}),a(t(B),{style:{width:"fit-content","margin-bottom":"24px"}},{message:r(()=>[f(" You may need to refresh this page to sync the roles with the cloud environment ")]),_:1}),t(c)?(n(),v(Te,{key:0,"access-controls":t(c),"onUpdate:accessControls":p[0]||(p[0]=V=>se(c)?c.value=V:null),roles:t(d)||[],loading:t(u),onSave:o},null,8,["access-controls","roles","loading"])):k("",!0)]),_:1}))}});export{it as default}; -//# sourceMappingURL=AccessControlEditor.c653e384.js.map +var T=Object.defineProperty;var D=(i,e,s)=>e in i?T(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var M=(i,e,s)=>(D(i,typeof e!="symbol"?e+"":e,s),s);import{C as E}from"./ContentLayout.72beb65c.js";import{l as I}from"./fetch.8c5b12c2.js";import{E as N}from"./record.cbb43e89.js";import{d as C,B as A,f as b,o as n,X as y,Z as $,R as k,eb as O,a as _,c as v,ej as U,w as r,aF as g,b as a,u as t,bS as z,ee as S,cS as L,ec as P,aR as H,cR as F,aA as G,ef as J,aV as Q,d7 as W,cQ as X,cP as Z,df as w,da as Y,d3 as K,db as ee,d9 as j,d8 as te,E as se}from"./vue-router.3fd92176.js";import{E as oe}from"./repository.9283185a.js";import{a as q}from"./asyncComputed.295e9e03.js";import{S as re}from"./SaveButton.6d0d3fb7.js";import{I as ae}from"./PhGlobe.vue.69f38b7f.js";import{u as x}from"./editor.519c2dc1.js";import{F as le}from"./PhArrowSquareOut.vue.188b81dc.js";import{A as ne}from"./index.c6ce1c1c.js";import{i as ie}from"./metadata.789df59c.js";import{A as B}from"./index.4fbbd10e.js";import"./gateway.c564a1cf.js";import"./popupNotifcation.0e86d6a8.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="6ea70d30-f490-4b5b-b247-d3c74ad140ca",i._sentryDebugIdIdentifier="sentry-dbid-6ea70d30-f490-4b5b-b247-d3c74ad140ca")}catch{}})();const ce=["width","height","fill","transform"],de={key:0},ue=_("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),pe=[ue],he={key:1},ge=_("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),fe=_("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),me=[ge,fe],ye={key:2},ve=_("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),be=[ve],_e={key:3},Ce=_("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),we=[Ce],Ve={key:4},Ae=_("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),He=[Ae],ke={key:5},Se=_("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),Pe=[Se],Re={name:"PhLockSimple"},Me=C({...Re,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,s=A("weight","regular"),c=A("size","1em"),f=A("color","currentColor"),m=A("mirrored",!1),o=b(()=>{var l;return(l=e.weight)!=null?l:s}),h=b(()=>{var l;return(l=e.size)!=null?l:c}),u=b(()=>{var l;return(l=e.color)!=null?l:f}),d=b(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(l,p)=>(n(),y("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:u.value,transform:d.value},l.$attrs),[$(l.$slots,"default"),o.value==="bold"?(n(),y("g",de,pe)):o.value==="duotone"?(n(),y("g",he,me)):o.value==="fill"?(n(),y("g",ye,be)):o.value==="light"?(n(),y("g",_e,we)):o.value==="regular"?(n(),y("g",Ve,He)):o.value==="thin"?(n(),y("g",ke,Pe)):k("",!0)],16,ce))}});class R{constructor(e){M(this,"record");this.record=N.from(e)}get id(){return this.record.get("id")}get type(){return this.record.get("type")}get title(){return this.record.get("title")}get isPublic(){return this.record.get("is_public")}set isPublic(e){e&&this.record.set("required_roles",[]),this.record.set("is_public",e)}get requiredRoles(){return this.record.get("required_roles")}set requiredRoles(e){e.length!==0&&this.record.set("is_public",!1),this.record.set("required_roles",e)}makePublic(){this.isPublic=!0}makeProtected(){this.isPublic=!1,this.requiredRoles=[]}require(e){e.length!==0&&(this.isPublic=!1),this.requiredRoles=e}get visibility(){return this.isPublic?"public":"private"}hasChanges(){return this.record.hasChanges("is_public")||this.record.hasChangesDeep("required_roles")}get changes(){return this.record.changes}get initialState(){return this.record.initialState}toUpdateDTO(){return{id:this.id,is_public:this.isPublic,required_roles:this.requiredRoles}}commit(){this.record.commit()}static from(e){return new R(e)}}class Ze{constructor(e=I){this.fetch=e}async list(){return(await(await this.fetch("/_editor/api/access-control",{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(R.from)}async update(e){const s=e.reduce((f,m)=>(m.hasChanges()&&f.push({id:m.id,...m.changes}),f),[]);return await(await fetch("/_editor/api/access-control",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).json()}}const je=_("span",null," Project Roles ",-1),qe=C({__name:"RoleSelector",props:{value:{},roleOptions:{},disabled:{type:Boolean}},emits:["update:value"],setup(i,{emit:e}){const s=i,c=x(),f=o=>{e("update:value",o)},m=C({props:{vnodes:{type:Object,required:!0}},render(){return this.vnodes}});return(o,h)=>(n(),v(t(G),{value:o.value,mode:"multiple",disabled:o.disabled,"show-arrow":"","onUpdate:value":f},U({dropdownRender:r(({menuNode:u})=>[a(t(m),{vnodes:u},null,8,["vnodes"]),a(t(ne),{style:{margin:"4px 0"}}),t(c).links?(n(),v(t(z),{key:0,type:"default",style:{display:"flex","align-items":"center","justify-content":"center",width:"100%",gap:"4px"},href:t(c).links.roles,target:"abstra_project"},{default:r(()=>[a(t(le),{size:"16"}),g(" Manage roles in Cloud Console ")]),_:1},8,["href"])):k("",!0)]),default:r(()=>[a(t(F),null,{label:r(()=>[je]),default:r(()=>[(n(!0),y(H,null,S(o.roleOptions,u=>(n(),v(t(L),{key:u,value:u},{default:r(()=>[g(P(u),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:2},[s.disabled?void 0:{name:"placeholder",fn:r(()=>[g(" Leave empty to allow all listed users ")]),key:"0"}]),1032,["value","disabled"]))}}),xe=C({__name:"AccessControlItem",props:{accessControl:{},roles:{}},emits:["update:access-control"],setup(i,{emit:e}){const s=i,c=b(()=>s.roles.map(o=>o.name)),f=o=>{o?s.accessControl.makePublic():s.accessControl.makeProtected(),e("update:access-control",s.accessControl)},m=o=>{s.accessControl.require(o),o.length!==0&&(s.accessControl.isPublic=!1),e("update:access-control",s.accessControl)};return(o,h)=>(n(),v(t(w),{justify:"space-between",align:"center",gap:"small"},{default:r(()=>[(n(),v(J(t(ie)(o.accessControl.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),a(t(W),{style:{width:"300px","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},{default:r(()=>[a(t(Q),{title:o.accessControl.title,placement:"left",open:o.accessControl.title.length>36?void 0:!1},{default:r(()=>[g(P(o.accessControl.title),1)]),_:1},8,["title","open"])]),_:1}),a(t(w),{gap:"large",align:"center"},{default:r(()=>[a(qe,{disabled:o.accessControl.visibility==="public",style:{width:"320px"},value:o.accessControl.requiredRoles||[],"role-options":c.value||[],"onUpdate:value":h[0]||(h[0]=u=>m(u))},null,8,["disabled","value","role-options"]),a(t(X),{value:o.accessControl.visibility},{default:r(()=>[a(t(Z),{value:"public",onChange:h[1]||(h[1]=u=>f(!0))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[g(" Public "),a(t(ae),{size:14})]),_:1})]),_:1}),a(t(Z),{value:"private",onChange:h[2]||(h[2]=u=>f(!1))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[g(" Private "),a(t(Me),{size:14})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}))}}),Be=C({__name:"DanglingRolesAlert",props:{danglingRoles:{}},setup(i){return(e,s)=>(n(),v(t(B),{type:"warning","show-icon":"",closable:"",style:{margin:"5px"}},{description:r(()=>[a(t(Y),null,{default:r(()=>[g("The following roles are not defined in the Cloud Console:")]),_:1}),(n(!0),y(H,null,S(e.danglingRoles,c=>(n(),v(t(K),{key:c,style:{margin:"2px"},color:"red"},{default:r(()=>[g(P(c),1)]),_:2},1024))),128))]),_:1}))}}),Te=C({__name:"View",props:{accessControls:{},roles:{},loading:{type:Boolean}},emits:["update:access-controls","save"],setup(i,{emit:e}){const s=i,c=d=>{const l=s.accessControls.findIndex(p=>p.id===d.id);l!==-1&&(s.accessControls[l]=d,e("update:access-controls",[...s.accessControls]))},f=b(()=>{var d;return((d=s.accessControls)==null?void 0:d.filter(l=>l.hasChanges()))||[]}),m=b(()=>f.value.length>0),h={save:async()=>{e("save")},hasChanges:()=>m.value},u=b(()=>{const d=[...new Set(s.accessControls.flatMap(p=>p.requiredRoles)||[])],l=s.roles.map(p=>p.name)||[];return(d==null?void 0:d.filter(p=>!l.includes(p)))||[]});return(d,l)=>(n(),y(H,null,[!d.loading&&u.value.length>0?(n(),v(Be,{key:0,"dangling-roles":u.value},null,8,["dangling-roles"])):k("",!0),a(re,{model:h}),a(t(w),{vertical:"",gap:"small",style:{"margin-top":"10px"}},{default:r(()=>[(n(!0),y(H,null,S(d.accessControls,p=>(n(),v(t(w),{key:p.id},{default:r(()=>[a(xe,{"access-control":p,roles:d.roles,"onUpdate:accessControl":c},null,8,["access-control","roles"])]),_:2},1024))),128))]),_:1})],64))}}),it=C({__name:"AccessControlEditor",setup(i){const e=x(),s=new Ze,{result:c,refetch:f}=q(async()=>await s.list()),m=b(()=>{var l;return((l=c.value)==null?void 0:l.filter(p=>p.hasChanges()))||[]}),o=async()=>{await s.update(m.value),await f()},h=new oe,{result:u,loading:d}=q(()=>h.list(100,0));return(l,p)=>(n(),v(E,null,{default:r(()=>[a(t(ee),null,{default:r(()=>[g("Access Control")]),_:1}),a(t(j),null,{default:r(()=>[g(" Set your project\u2019s pages as public, accessible to all users, or restricted to users with specific roles. ")]),_:1}),a(t(j),null,{default:r(()=>{var V;return[g(" Manage users and roles on the cloud's "),a(t(te),{href:(V=t(e).links)==null?void 0:V.users,target:"abstra_project"},{default:r(()=>[g("Access Control tab")]),_:1},8,["href"]),g(". Settings applied here will be enforced only in the cloud environment. ")]}),_:1}),a(t(B),{style:{width:"fit-content","margin-bottom":"24px"}},{message:r(()=>[g(" You may need to refresh this page to sync the roles with the cloud environment ")]),_:1}),t(c)?(n(),v(Te,{key:0,"access-controls":t(c),"onUpdate:accessControls":p[0]||(p[0]=V=>se(c)?c.value=V:null),roles:t(u)||[],loading:t(d),onSave:o},null,8,["access-controls","roles","loading"])):k("",!0)]),_:1}))}});export{it as default}; +//# sourceMappingURL=AccessControlEditor.c8a08e74.js.map diff --git a/abstra_statics/dist/assets/ApiKeys.134defd6.js b/abstra_statics/dist/assets/ApiKeys.134defd6.js new file mode 100644 index 000000000..62a60a25f --- /dev/null +++ b/abstra_statics/dist/assets/ApiKeys.134defd6.js @@ -0,0 +1,2 @@ +import{d as w,e as A,ed as _,f as k,X as x,b as l,u as i,w as d,aR as C,o as v,d9 as P,aF as y,da as h,ec as D,cK as M,eJ as j,er as K}from"./vue-router.3fd92176.js";import{a as N}from"./asyncComputed.295e9e03.js";import{A as c}from"./apiKey.9088bccb.js";import"./gateway.c564a1cf.js";import{M as T}from"./member.863895af.js";import{P as V}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import{C as B}from"./CrudView.b65b5675.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./router.59916c0d.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="8be65711-c773-4d4c-ab0c-4ef812d73728",n._sentryDebugIdIdentifier="sentry-dbid-8be65711-c773-4d4c-ab0c-4ef812d73728")}catch{}})();const ee=w({__name:"ApiKeys",setup(n){const o=A(null),p=[{key:"name",label:"API key name"}],s=_().params.projectId,{loading:f,result:g,refetch:u}=N(async()=>Promise.all([c.list(s),V.get(s).then(e=>T.list(e.organizationId))]).then(([e,t])=>e.map(a=>({apiKey:a,member:t.find(r=>r.authorId===a.ownerId)})))),I=async e=>{const t=await c.create({projectId:s,name:e.name});u(),o.value=t.value},b=k(()=>{var e,t;return{columns:[{name:"Name"},{name:"Creation date"},{name:"Owner"},{name:"",align:"right"}],rows:(t=(e=g.value)==null?void 0:e.map(({apiKey:a,member:r})=>{var m;return{key:a.id,cells:[{type:"text",text:a.name},{type:"text",text:j(a.createdAt)},{type:"text",text:(m=r==null?void 0:r.email)!=null?m:"Unknown"},{type:"actions",actions:[{label:"Delete",icon:K,dangerous:!0,onClick:async()=>{await c.delete(s,a.id),u()}}]}]}}))!=null?t:[]}});return(e,t)=>(v(),x(C,null,[l(B,{"entity-name":"API key","create-button-text":"Create API Key",loading:i(f),title:"API Keys",description:"API Keys are used to deploy your project from the local editor.","empty-title":"No API keys here yet",table:b.value,fields:p,onCreate:I},null,8,["loading","table"]),l(i(M),{open:!!o.value,title:"Api key generated",onCancel:t[0]||(t[0]=a=>o.value=null)},{footer:d(()=>[]),default:d(()=>[l(i(P),null,{default:d(()=>[y("Your API key was successfully generated. Use this code to login on your local development environment or deploy using CI")]),_:1}),l(i(h),{code:"",copyable:""},{default:d(()=>[y(D(o.value),1)]),_:1})]),_:1},8,["open"])],64))}});export{ee as default}; +//# sourceMappingURL=ApiKeys.134defd6.js.map diff --git a/abstra_statics/dist/assets/ApiKeys.364c2cfa.js b/abstra_statics/dist/assets/ApiKeys.364c2cfa.js deleted file mode 100644 index 45907639a..000000000 --- a/abstra_statics/dist/assets/ApiKeys.364c2cfa.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as w,e as A,ed as _,f as k,X as x,b as l,u as d,w as i,aR as C,o as v,d9 as P,aF as y,da as h,ec as D,cK as M,eJ as j,er as K}from"./vue-router.4c13f3d4.js";import{a as N}from"./asyncComputed.d0f14ed3.js";import{A as c}from"./apiKey.e5976c38.js";import"./gateway.e77556e5.js";import{M as T}from"./member.557bc064.js";import{P as V}from"./project.7817fdd7.js";import"./tables.e9d41f69.js";import{C as B}from"./CrudView.e4956a79.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./router.87582bcc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="80702b1b-ede1-40a5-9bf2-d5e638553d5d",n._sentryDebugIdIdentifier="sentry-dbid-80702b1b-ede1-40a5-9bf2-d5e638553d5d")}catch{}})();const ee=w({__name:"ApiKeys",setup(n){const o=A(null),p=[{key:"name",label:"API key name"}],s=_().params.projectId,{loading:f,result:g,refetch:u}=N(async()=>Promise.all([c.list(s),V.get(s).then(e=>T.list(e.organizationId))]).then(([e,t])=>e.map(a=>({apiKey:a,member:t.find(r=>r.authorId===a.ownerId)})))),b=async e=>{const t=await c.create({projectId:s,name:e.name});u(),o.value=t.value},I=k(()=>{var e,t;return{columns:[{name:"Name"},{name:"Creation date"},{name:"Owner"},{name:"",align:"right"}],rows:(t=(e=g.value)==null?void 0:e.map(({apiKey:a,member:r})=>{var m;return{key:a.id,cells:[{type:"text",text:a.name},{type:"text",text:j(a.createdAt)},{type:"text",text:(m=r==null?void 0:r.email)!=null?m:"Unknown"},{type:"actions",actions:[{label:"Delete",icon:K,dangerous:!0,onClick:async()=>{await c.delete(s,a.id),u()}}]}]}}))!=null?t:[]}});return(e,t)=>(v(),x(C,null,[l(B,{"entity-name":"API key","create-button-text":"Create API Key",loading:d(f),title:"API Keys",description:"API Keys are used to deploy your project from the local editor.","empty-title":"No API keys here yet",table:I.value,fields:p,onCreate:b},null,8,["loading","table"]),l(d(M),{open:!!o.value,title:"Api key generated",onCancel:t[0]||(t[0]=a=>o.value=null)},{footer:i(()=>[]),default:i(()=>[l(d(P),null,{default:i(()=>[y("Your API key was successfully generated. Use this code to login on your local development environment or deploy using CI")]),_:1}),l(d(h),{code:"",copyable:""},{default:i(()=>[y(D(o.value),1)]),_:1})]),_:1},8,["open"])],64))}});export{ee as default}; -//# sourceMappingURL=ApiKeys.364c2cfa.js.map diff --git a/abstra_statics/dist/assets/App.ba11635e.js b/abstra_statics/dist/assets/App.ba11635e.js new file mode 100644 index 000000000..c6f67ef20 --- /dev/null +++ b/abstra_statics/dist/assets/App.ba11635e.js @@ -0,0 +1,2 @@ +import"./App.vue_vue_type_style_index_0_lang.f9e04732.js";import{_ as m}from"./App.vue_vue_type_style_index_0_lang.f9e04732.js";import"./workspaceStore.411ef1fe.js";import"./vue-router.3fd92176.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./PlayerConfigProvider.44427467.js";import"./index.bd967757.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3c7ea685-c3fe-4de4-8b8b-674c054624d5",e._sentryDebugIdIdentifier="sentry-dbid-3c7ea685-c3fe-4de4-8b8b-674c054624d5")}catch{}})();export{m as default}; +//# sourceMappingURL=App.ba11635e.js.map diff --git a/abstra_statics/dist/assets/App.e3fc5288.js b/abstra_statics/dist/assets/App.e3fc5288.js deleted file mode 100644 index a8b9f2414..000000000 --- a/abstra_statics/dist/assets/App.e3fc5288.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./App.vue_vue_type_style_index_0_lang.b3029d8c.js";import{_ as m}from"./App.vue_vue_type_style_index_0_lang.b3029d8c.js";import"./workspaceStore.ae240ce8.js";import"./vue-router.4c13f3d4.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./PlayerConfigProvider.8a3bab63.js";import"./index.52fae423.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3f7c8676-cd95-4f50-a3be-15bc0370e545",e._sentryDebugIdIdentifier="sentry-dbid-3f7c8676-cd95-4f50-a3be-15bc0370e545")}catch{}})();export{m as default}; -//# sourceMappingURL=App.e3fc5288.js.map diff --git a/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.b3029d8c.js b/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.b3029d8c.js deleted file mode 100644 index c6129e535..000000000 --- a/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.b3029d8c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as r,u as n}from"./workspaceStore.ae240ce8.js";import{W as c}from"./PlayerConfigProvider.8a3bab63.js";import{d as i,g as d,r as u,u as o,c as f,w as p,R as l,o as _,b as m}from"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="1f563c20-a479-4dc3-999b-7eb8194e9b06",t._sentryDebugIdIdentifier="sentry-dbid-1f563c20-a479-4dc3-999b-7eb8194e9b06")}catch{}})();const h=i({__name:"App",setup(t){const a=r(),e=n();return e.actions.fetch(),d(()=>a.user,e.actions.fetch),(b,w)=>{const s=u("RouterView");return o(e).state.workspace?(_(),f(c,{key:0,"main-color":o(e).state.workspace.mainColor,background:o(e).state.workspace.theme,"font-family":o(e).state.workspace.fontFamily,locale:o(e).state.workspace.language},{default:p(()=>[m(s,{style:{height:"100vh",width:"100%"}})]),_:1},8,["main-color","background","font-family","locale"])):l("",!0)}}});export{h as _}; -//# sourceMappingURL=App.vue_vue_type_style_index_0_lang.b3029d8c.js.map diff --git a/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.f9e04732.js b/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.f9e04732.js new file mode 100644 index 000000000..55ded426e --- /dev/null +++ b/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.f9e04732.js @@ -0,0 +1,2 @@ +import{b as r,u as n}from"./workspaceStore.411ef1fe.js";import{W as c}from"./PlayerConfigProvider.44427467.js";import{d as f,g as i,r as d,u as o,c as u,w as p,R as l,o as _,b}from"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="c477bf4d-9b7e-434c-93bb-ee6fbf85af59",t._sentryDebugIdIdentifier="sentry-dbid-c477bf4d-9b7e-434c-93bb-ee6fbf85af59")}catch{}})();const h=f({__name:"App",setup(t){const a=r(),e=n();return e.actions.fetch(),i(()=>a.user,e.actions.fetch),(m,w)=>{const s=d("RouterView");return o(e).state.workspace?(_(),u(c,{key:0,"main-color":o(e).state.workspace.mainColor,background:o(e).state.workspace.theme,"font-family":o(e).state.workspace.fontFamily,locale:o(e).state.workspace.language},{default:p(()=>[b(s,{style:{height:"100vh",width:"100%"}})]),_:1},8,["main-color","background","font-family","locale"])):l("",!0)}}});export{h as _}; +//# sourceMappingURL=App.vue_vue_type_style_index_0_lang.f9e04732.js.map diff --git a/abstra_statics/dist/assets/Avatar.6f67d038.js b/abstra_statics/dist/assets/Avatar.2107fa31.js similarity index 61% rename from abstra_statics/dist/assets/Avatar.6f67d038.js rename to abstra_statics/dist/assets/Avatar.2107fa31.js index 346ee8a9f..c3bdd621c 100644 --- a/abstra_statics/dist/assets/Avatar.6f67d038.js +++ b/abstra_statics/dist/assets/Avatar.2107fa31.js @@ -1,2 +1,2 @@ -import{ac as X,ad as N,S as g,ao as K,B as V,V as q,d as J,Q as $,ah as Q,f as U,aO as Y,dL as Z,g as _,W as ee,J as B,bT as te,b as z,al as re,ak as F,au as ae,dI as ne}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9a5bc6e2-52c6-4929-95e1-2d6cc5de0f96",e._sentryDebugIdIdentifier="sentry-dbid-9a5bc6e2-52c6-4929-95e1-2d6cc5de0f96")}catch{}})();const oe=e=>{const{antCls:r,componentCls:a,iconCls:n,avatarBg:i,avatarColor:S,containerSize:l,containerSizeLG:c,containerSizeSM:v,textFontSize:h,textFontSizeLG:m,textFontSizeSM:w,borderRadius:C,borderRadiusLG:s,borderRadiusSM:A,lineWidth:u,lineType:k}=e,f=(y,t,o)=>({width:y,height:y,lineHeight:`${y-u*2}px`,borderRadius:"50%",[`&${a}-square`]:{borderRadius:o},[`${a}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${a}-icon`]:{fontSize:t,[`> ${n}`]:{margin:0}}});return{[a]:g(g(g(g({},K(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:S,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${u}px ${k} transparent`,["&-image"]:{background:"transparent"},[`${r}-image-img`]:{display:"block"}}),f(l,h,C)),{["&-lg"]:g({},f(c,m,s)),["&-sm"]:g({},f(v,w,A)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},se=e=>{const{componentCls:r,groupBorderColor:a,groupOverlapping:n,groupSpace:i}=e;return{[`${r}-group`]:{display:"inline-flex",[`${r}`]:{borderColor:a},["> *:not(:first-child)"]:{marginInlineStart:n}},[`${r}-group-popover`]:{[`${r} + ${r}`]:{marginInlineStart:i}}}},ie=X("Avatar",e=>{const{colorTextLightSolid:r,colorTextPlaceholder:a}=e,n=N(e,{avatarBg:a,avatarColor:r});return[oe(n),se(n)]},e=>{const{controlHeight:r,controlHeightLG:a,controlHeightSM:n,fontSize:i,fontSizeLG:S,fontSizeXL:l,fontSizeHeading3:c,marginXS:v,marginXXS:h,colorBorderBg:m}=e;return{containerSize:r,containerSizeLG:a,containerSizeSM:n,textFontSize:Math.round((S+l)/2),textFontSizeLG:c,textFontSizeSM:i,groupSpace:h,groupOverlapping:-v,groupBorderColor:m}}),M=Symbol("AvatarContextKey"),le=()=>V(M,{}),ge=e=>q(M,e),ce=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:ae.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),ue=J({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:ce(),slots:Object,setup(e,r){let{slots:a,attrs:n}=r;const i=$(!0),S=$(!1),l=$(1),c=$(null),v=$(null),{prefixCls:h}=Q("avatar",e),[m,w]=ie(h),C=le(),s=U(()=>e.size==="default"?C.size:e.size),A=Y(),u=Z(()=>{if(typeof e.size!="object")return;const t=ne.find(p=>A.value[p]);return e.size[t]}),k=t=>u.value?{width:`${u.value}px`,height:`${u.value}px`,lineHeight:`${u.value}px`,fontSize:`${t?u.value/2:18}px`}:{},f=()=>{if(!c.value||!v.value)return;const t=c.value.offsetWidth,o=v.value.offsetWidth;if(t!==0&&o!==0){const{gap:p=4}=e;p*2{const{loadError:t}=e;(t==null?void 0:t())!==!1&&(i.value=!1)};return _(()=>e.src,()=>{B(()=>{i.value=!0,l.value=1})}),_(()=>e.gap,()=>{B(()=>{f()})}),ee(()=>{B(()=>{f(),S.value=!0})}),()=>{var t,o;const{shape:p,src:I,alt:O,srcset:T,draggable:H,crossOrigin:j}=e,G=(t=C.shape)!==null&&t!==void 0?t:p,b=te(a,e,"icon"),d=h.value,E={[`${n.class}`]:!!n.class,[d]:!0,[`${d}-lg`]:s.value==="large",[`${d}-sm`]:s.value==="small",[`${d}-${G}`]:!0,[`${d}-image`]:I&&i.value,[`${d}-icon`]:b,[w.value]:!0},W=typeof s.value=="number"?{width:`${s.value}px`,height:`${s.value}px`,lineHeight:`${s.value}px`,fontSize:b?`${s.value/2}px`:"18px"}:{},L=(o=a.default)===null||o===void 0?void 0:o.call(a);let x;if(I&&i.value)x=z("img",{draggable:H,src:I,srcset:T,onError:y,alt:O,crossorigin:j},null);else if(b)x=b;else if(S.value||l.value!==1){const R=`scale(${l.value}) translateX(-50%)`,P={msTransform:R,WebkitTransform:R,transform:R},D=typeof s.value=="number"?{lineHeight:`${s.value}px`}:{};x=z(re,{onResize:f},{default:()=>[z("span",{class:`${d}-string`,ref:c,style:g(g({},D),P)},[L])]})}else x=z("span",{class:`${d}-string`,ref:c,style:{opacity:0}},[L]);return m(z("span",F(F({},n),{},{ref:v,class:E,style:[W,k(!!b),n.style]}),[x]))}}}),ve=ue;export{ve as A,ge as a,ie as u}; -//# sourceMappingURL=Avatar.6f67d038.js.map +import{ac as X,ad as N,S as g,ao as K,B as V,V as q,d as J,Q as $,ah as Q,f as U,aO as Y,dL as Z,g as _,W as ee,J as B,bT as te,b as z,al as ae,ak as F,au as re,dI as ne}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="52606d86-086d-4c9d-9d86-c8faa04eb37a",e._sentryDebugIdIdentifier="sentry-dbid-52606d86-086d-4c9d-9d86-c8faa04eb37a")}catch{}})();const oe=e=>{const{antCls:a,componentCls:r,iconCls:n,avatarBg:i,avatarColor:S,containerSize:l,containerSizeLG:c,containerSizeSM:v,textFontSize:h,textFontSizeLG:m,textFontSizeSM:w,borderRadius:C,borderRadiusLG:s,borderRadiusSM:A,lineWidth:u,lineType:k}=e,f=(y,t,o)=>({width:y,height:y,lineHeight:`${y-u*2}px`,borderRadius:"50%",[`&${r}-square`]:{borderRadius:o},[`${r}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${r}-icon`]:{fontSize:t,[`> ${n}`]:{margin:0}}});return{[r]:g(g(g(g({},K(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:S,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${u}px ${k} transparent`,["&-image"]:{background:"transparent"},[`${a}-image-img`]:{display:"block"}}),f(l,h,C)),{["&-lg"]:g({},f(c,m,s)),["&-sm"]:g({},f(v,w,A)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},se=e=>{const{componentCls:a,groupBorderColor:r,groupOverlapping:n,groupSpace:i}=e;return{[`${a}-group`]:{display:"inline-flex",[`${a}`]:{borderColor:r},["> *:not(:first-child)"]:{marginInlineStart:n}},[`${a}-group-popover`]:{[`${a} + ${a}`]:{marginInlineStart:i}}}},ie=X("Avatar",e=>{const{colorTextLightSolid:a,colorTextPlaceholder:r}=e,n=N(e,{avatarBg:r,avatarColor:a});return[oe(n),se(n)]},e=>{const{controlHeight:a,controlHeightLG:r,controlHeightSM:n,fontSize:i,fontSizeLG:S,fontSizeXL:l,fontSizeHeading3:c,marginXS:v,marginXXS:h,colorBorderBg:m}=e;return{containerSize:a,containerSizeLG:r,containerSizeSM:n,textFontSize:Math.round((S+l)/2),textFontSizeLG:c,textFontSizeSM:i,groupSpace:h,groupOverlapping:-v,groupBorderColor:m}}),M=Symbol("AvatarContextKey"),le=()=>V(M,{}),ge=e=>q(M,e),ce=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:re.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),ue=J({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:ce(),slots:Object,setup(e,a){let{slots:r,attrs:n}=a;const i=$(!0),S=$(!1),l=$(1),c=$(null),v=$(null),{prefixCls:h}=Q("avatar",e),[m,w]=ie(h),C=le(),s=U(()=>e.size==="default"?C.size:e.size),A=Y(),u=Z(()=>{if(typeof e.size!="object")return;const t=ne.find(p=>A.value[p]);return e.size[t]}),k=t=>u.value?{width:`${u.value}px`,height:`${u.value}px`,lineHeight:`${u.value}px`,fontSize:`${t?u.value/2:18}px`}:{},f=()=>{if(!c.value||!v.value)return;const t=c.value.offsetWidth,o=v.value.offsetWidth;if(t!==0&&o!==0){const{gap:p=4}=e;p*2{const{loadError:t}=e;(t==null?void 0:t())!==!1&&(i.value=!1)};return _(()=>e.src,()=>{B(()=>{i.value=!0,l.value=1})}),_(()=>e.gap,()=>{B(()=>{f()})}),ee(()=>{B(()=>{f(),S.value=!0})}),()=>{var t,o;const{shape:p,src:I,alt:O,srcset:T,draggable:H,crossOrigin:j}=e,G=(t=C.shape)!==null&&t!==void 0?t:p,b=te(r,e,"icon"),d=h.value,E={[`${n.class}`]:!!n.class,[d]:!0,[`${d}-lg`]:s.value==="large",[`${d}-sm`]:s.value==="small",[`${d}-${G}`]:!0,[`${d}-image`]:I&&i.value,[`${d}-icon`]:b,[w.value]:!0},W=typeof s.value=="number"?{width:`${s.value}px`,height:`${s.value}px`,lineHeight:`${s.value}px`,fontSize:b?`${s.value/2}px`:"18px"}:{},L=(o=r.default)===null||o===void 0?void 0:o.call(r);let x;if(I&&i.value)x=z("img",{draggable:H,src:I,srcset:T,onError:y,alt:O,crossorigin:j},null);else if(b)x=b;else if(S.value||l.value!==1){const R=`scale(${l.value}) translateX(-50%)`,P={msTransform:R,WebkitTransform:R,transform:R},D=typeof s.value=="number"?{lineHeight:`${s.value}px`}:{};x=z(ae,{onResize:f},{default:()=>[z("span",{class:`${d}-string`,ref:c,style:g(g({},D),P)},[L])]})}else x=z("span",{class:`${d}-string`,ref:c,style:{opacity:0}},[L]);return m(z("span",F(F({},n),{},{ref:v,class:E,style:[W,k(!!b),n.style]}),[x]))}}}),ve=ue;export{ve as A,ge as a,ie as u}; +//# sourceMappingURL=Avatar.2107fa31.js.map diff --git a/abstra_statics/dist/assets/Badge.49622b8e.js b/abstra_statics/dist/assets/Badge.bcc65740.js similarity index 83% rename from abstra_statics/dist/assets/Badge.49622b8e.js rename to abstra_statics/dist/assets/Badge.bcc65740.js index 11e7d7ca5..024ca41a3 100644 --- a/abstra_statics/dist/assets/Badge.49622b8e.js +++ b/abstra_statics/dist/assets/Badge.bcc65740.js @@ -1,2 +1,2 @@ -import{d as F,f,D as at,e as R,g as Q,ag as rt,S as i,b as v,ai as _,ah as M,aQ as lt,aE as q,au as B,ac as it,aT as O,ad as st,dS as U,ao as Y,ak as D,dT as G,bT as ut,aC as ct,aX as dt,aY as gt,aZ as bt,a_ as mt}from"./vue-router.4c13f3d4.js";import{i as ft}from"./isNumeric.75337b1e.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7ed82536-6312-4f41-8ed5-5fead35e5ab0",t._sentryDebugIdIdentifier="sentry-dbid-7ed82536-6312-4f41-8ed5-5fead35e5ab0")}catch{}})();function K(t){let{prefixCls:e,value:a,current:o,offset:n=0}=t,c;return n&&(c={position:"absolute",top:`${n}00%`,left:0}),v("p",{style:c,class:_(`${e}-only-unit`,{current:o})},[a])}function vt(t,e,a){let o=t,n=0;for(;(o+10)%10!==e;)o+=a,n+=a;return n}const pt=F({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(t){const e=f(()=>Number(t.value)),a=f(()=>Math.abs(t.count)),o=at({prevValue:e.value,prevCount:a.value}),n=()=>{o.prevValue=e.value,o.prevCount=a.value},c=R();return Q(e,()=>{clearTimeout(c.value),c.value=setTimeout(()=>{n()},1e3)},{flush:"post"}),rt(()=>{clearTimeout(c.value)}),()=>{let d,p={};const s=e.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))d=[K(i(i({},t),{current:!0}))],p={transition:"none"};else{d=[];const h=s+10,g=[];for(let r=s;r<=h;r+=1)g.push(r);const l=g.findIndex(r=>r%10===o.prevValue);d=g.map((r,S)=>{const y=r%10;return K(i(i({},t),{value:y,offset:S-l,current:S===l}))});const u=o.prevCountn()},[d])}}});var ht=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n{var c;const d=i(i({},t),a),{prefixCls:p,count:s,title:h,show:g,component:l="sup",class:u,style:r}=d,S=ht(d,["prefixCls","count","title","show","component","class","style"]),y=i(i({},S),{style:r,"data-show":t.show,class:_(n.value,u),title:h});let b=s;if(s&&Number(s)%1===0){const m=String(s).split("");b=m.map((T,I)=>v(pt,{prefixCls:n.value,count:Number(s),value:T,key:m.length-I},null))}r&&r.borderColor&&(y.style=i(i({},r),{boxShadow:`0 0 0 1px ${r.borderColor} inset`}));const $=lt((c=o.default)===null||c===void 0?void 0:c.call(o));return $&&$.length?q($,{class:_(`${n.value}-custom-component`)},!1):v(l,y,{default:()=>[b]})}}}),St=new O("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Ct=new O("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),wt=new O("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),xt=new O("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Nt=new O("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ot=new O("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Tt=t=>{const{componentCls:e,iconCls:a,antCls:o,badgeFontHeight:n,badgeShadowSize:c,badgeHeightSm:d,motionDurationSlow:p,badgeStatusSize:s,marginXS:h,badgeRibbonOffset:g}=t,l=`${o}-scroll-number`,u=`${o}-ribbon`,r=`${o}-ribbon-wrapper`,S=U(t,(b,$)=>{let{darkColor:m}=$;return{[`&${e} ${e}-color-${b}`]:{background:m,[`&:not(${e}-count)`]:{color:m}}}}),y=U(t,(b,$)=>{let{darkColor:m}=$;return{[`&${u}-color-${b}`]:{background:m,color:m}}});return{[e]:i(i(i(i({},Y(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{zIndex:t.badgeZIndex,minWidth:t.badgeHeight,height:t.badgeHeight,color:t.badgeTextColor,fontWeight:t.badgeFontWeight,fontSize:t.badgeFontSize,lineHeight:`${t.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:t.badgeHeight/2,boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:d,height:d,fontSize:t.badgeFontSizeSm,lineHeight:`${d}px`,borderRadius:d/2},[`${e}-multiple-words`]:{padding:`0 ${t.paddingXS}px`},[`${e}-dot`]:{zIndex:t.badgeZIndex,width:t.badgeDotSize,minWidth:t.badgeDotSize,height:t.badgeDotSize,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`},[`${e}-dot${l}`]:{transition:`background ${p}`},[`${e}-count, ${e}-dot, ${l}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${a}-spin`]:{animationName:Ot,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:c,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:St,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:h,color:t.colorText,fontSize:t.fontSize}}}),S),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:Ct,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:wt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:xt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:Nt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${l}-custom-component, ${e}-count`]:{transform:"none"},[`${l}-custom-component, ${l}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${l}`]:{overflow:"hidden",[`${l}-only`]:{position:"relative",display:"inline-block",height:t.badgeHeight,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${l}-only-unit`]:{height:t.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${l}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${l}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${r}`]:{position:"relative"},[`${u}`]:i(i(i(i({},Y(t)),{position:"absolute",top:h,padding:`0 ${t.paddingXS}px`,color:t.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${u}-text`]:{color:t.colorTextLightSolid},[`${u}-corner`]:{position:"absolute",top:"100%",width:g,height:g,color:"currentcolor",border:`${g/2}px solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),y),{[`&${u}-placement-end`]:{insetInlineEnd:-g,borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:-g,borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},J=it("Badge",t=>{const{fontSize:e,lineHeight:a,fontSizeSM:o,lineWidth:n,marginXS:c,colorBorderBg:d}=t,p=Math.round(e*a),s=n,h="auto",g=p-2*s,l=t.colorBgContainer,u="normal",r=o,S=t.colorError,y=t.colorErrorHover,b=e,$=o/2,m=o,T=o/2,I=st(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:g,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:S,badgeColorHover:y,badgeShadowColor:d,badgeHeightSm:b,badgeDotSize:$,badgeFontSizeSm:m,badgeStatusSize:T,badgeProcessingDuration:"1.2s",badgeRibbonOffset:c,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[Tt(I)]});var It=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n({prefix:String,color:{type:String},text:B.any,placement:{type:String,default:"end"}}),Dt=F({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:Pt(),slots:Object,setup(t,e){let{attrs:a,slots:o}=e;const{prefixCls:n,direction:c}=M("ribbon",t),[d,p]=J(n),s=f(()=>G(t.color,!1)),h=f(()=>[n.value,`${n.value}-placement-${t.placement}`,{[`${n.value}-rtl`]:c.value==="rtl",[`${n.value}-color-${t.color}`]:s.value}]);return()=>{var g,l;const{class:u,style:r}=a,S=It(a,["class","style"]),y={},b={};return t.color&&!s.value&&(y.background=t.color,b.color=t.color),d(v("div",D({class:`${n.value}-wrapper ${p.value}`},S),[(g=o.default)===null||g===void 0?void 0:g.call(o),v("div",{class:[h.value,u,p.value],style:i(i({},y),r)},[v("span",{class:`${n.value}-text`},[t.text||((l=o.text)===null||l===void 0?void 0:l.call(o))]),v("div",{class:`${n.value}-corner`,style:b},null)])]))}}}),Bt=()=>({count:B.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:B.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Ht=F({compatConfig:{MODE:3},name:"ABadge",Ribbon:Dt,inheritAttrs:!1,props:Bt(),slots:Object,setup(t,e){let{slots:a,attrs:o}=e;const{prefixCls:n,direction:c}=M("badge",t),[d,p]=J(n),s=f(()=>t.count>t.overflowCount?`${t.overflowCount}+`:t.count),h=f(()=>s.value==="0"||s.value===0),g=f(()=>t.count===null||h.value&&!t.showZero),l=f(()=>(t.status!==null&&t.status!==void 0||t.color!==null&&t.color!==void 0)&&g.value),u=f(()=>t.dot&&!h.value),r=f(()=>u.value?"":s.value),S=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),y=R(t.count),b=R(r.value),$=R(u.value);Q([()=>t.count,r,u],()=>{S.value||(y.value=t.count,b.value=r.value,$.value=u.value)},{immediate:!0});const m=f(()=>G(t.color,!1)),T=f(()=>({[`${n.value}-status-dot`]:l.value,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value})),I=f(()=>t.color&&!m.value?{background:t.color,color:t.color}:{}),k=f(()=>({[`${n.value}-dot`]:$.value,[`${n.value}-count`]:!$.value,[`${n.value}-count-sm`]:t.size==="small",[`${n.value}-multiple-words`]:!$.value&&b.value&&b.value.toString().length>1,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value}));return()=>{var z,W;const{offset:N,title:Z,color:V}=t,L=o.style,j=ut(a,t,"text"),w=n.value,C=y.value;let x=ct((z=a.default)===null||z===void 0?void 0:z.call(a));x=x.length?x:null;const A=!!(!S.value||a.count),E=(()=>{if(!N)return i({},L);const P={marginTop:ft(N[1])?`${N[1]}px`:N[1]};return c.value==="rtl"?P.left=`${parseInt(N[0],10)}px`:P.right=`${-parseInt(N[0],10)}px`,i(i({},P),L)})(),tt=Z!=null?Z:typeof C=="string"||typeof C=="number"?C:void 0,et=A||!j?null:v("span",{class:`${w}-status-text`},[j]),ot=typeof C=="object"||C===void 0&&a.count?q(C!=null?C:(W=a.count)===null||W===void 0?void 0:W.call(a),{style:E},!1):null,X=_(w,{[`${w}-status`]:l.value,[`${w}-not-a-wrapper`]:!x,[`${w}-rtl`]:c.value==="rtl"},o.class,p.value);if(!x&&l.value){const P=E.color;return d(v("span",D(D({},o),{},{class:X,style:E}),[v("span",{class:T.value,style:I.value},null),v("span",{style:{color:P},class:`${w}-status-text`},[j])]))}const nt=dt(x?`${w}-zoom`:"",{appear:!1});let H=i(i({},E),t.numberStyle);return V&&!m.value&&(H=H||{},H.background=V),d(v("span",D(D({},o),{},{class:X}),[x,v(gt,nt,{default:()=>[bt(v($t,{prefixCls:t.scrollNumberPrefixCls,show:A,class:k.value,count:b.value,title:tt,style:H,key:"scrollNumber"},{default:()=>[ot]}),[[mt,A]])]}),et]))}}});export{Ht as B,Dt as R}; -//# sourceMappingURL=Badge.49622b8e.js.map +import{d as F,f,D as at,e as R,g as Q,ag as rt,S as i,b as v,ai as _,ah as M,aQ as lt,aE as q,au as B,ac as it,aT as O,ad as st,dS as U,ao as Y,ak as D,dT as G,bT as ut,aC as ct,aX as dt,aY as bt,aZ as gt,a_ as mt}from"./vue-router.3fd92176.js";import{i as ft}from"./isNumeric.75337b1e.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="908c63d1-64bb-404a-b132-b9838d097d71",t._sentryDebugIdIdentifier="sentry-dbid-908c63d1-64bb-404a-b132-b9838d097d71")}catch{}})();function K(t){let{prefixCls:e,value:a,current:o,offset:n=0}=t,c;return n&&(c={position:"absolute",top:`${n}00%`,left:0}),v("p",{style:c,class:_(`${e}-only-unit`,{current:o})},[a])}function vt(t,e,a){let o=t,n=0;for(;(o+10)%10!==e;)o+=a,n+=a;return n}const pt=F({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(t){const e=f(()=>Number(t.value)),a=f(()=>Math.abs(t.count)),o=at({prevValue:e.value,prevCount:a.value}),n=()=>{o.prevValue=e.value,o.prevCount=a.value},c=R();return Q(e,()=>{clearTimeout(c.value),c.value=setTimeout(()=>{n()},1e3)},{flush:"post"}),rt(()=>{clearTimeout(c.value)}),()=>{let d,p={};const s=e.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))d=[K(i(i({},t),{current:!0}))],p={transition:"none"};else{d=[];const h=s+10,b=[];for(let r=s;r<=h;r+=1)b.push(r);const l=b.findIndex(r=>r%10===o.prevValue);d=b.map((r,S)=>{const y=r%10;return K(i(i({},t),{value:y,offset:S-l,current:S===l}))});const u=o.prevCountn()},[d])}}});var ht=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n{var c;const d=i(i({},t),a),{prefixCls:p,count:s,title:h,show:b,component:l="sup",class:u,style:r}=d,S=ht(d,["prefixCls","count","title","show","component","class","style"]),y=i(i({},S),{style:r,"data-show":t.show,class:_(n.value,u),title:h});let g=s;if(s&&Number(s)%1===0){const m=String(s).split("");g=m.map((T,I)=>v(pt,{prefixCls:n.value,count:Number(s),value:T,key:m.length-I},null))}r&&r.borderColor&&(y.style=i(i({},r),{boxShadow:`0 0 0 1px ${r.borderColor} inset`}));const $=lt((c=o.default)===null||c===void 0?void 0:c.call(o));return $&&$.length?q($,{class:_(`${n.value}-custom-component`)},!1):v(l,y,{default:()=>[g]})}}}),St=new O("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Ct=new O("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),wt=new O("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),xt=new O("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Nt=new O("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ot=new O("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Tt=t=>{const{componentCls:e,iconCls:a,antCls:o,badgeFontHeight:n,badgeShadowSize:c,badgeHeightSm:d,motionDurationSlow:p,badgeStatusSize:s,marginXS:h,badgeRibbonOffset:b}=t,l=`${o}-scroll-number`,u=`${o}-ribbon`,r=`${o}-ribbon-wrapper`,S=U(t,(g,$)=>{let{darkColor:m}=$;return{[`&${e} ${e}-color-${g}`]:{background:m,[`&:not(${e}-count)`]:{color:m}}}}),y=U(t,(g,$)=>{let{darkColor:m}=$;return{[`&${u}-color-${g}`]:{background:m,color:m}}});return{[e]:i(i(i(i({},Y(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{zIndex:t.badgeZIndex,minWidth:t.badgeHeight,height:t.badgeHeight,color:t.badgeTextColor,fontWeight:t.badgeFontWeight,fontSize:t.badgeFontSize,lineHeight:`${t.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:t.badgeHeight/2,boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:d,height:d,fontSize:t.badgeFontSizeSm,lineHeight:`${d}px`,borderRadius:d/2},[`${e}-multiple-words`]:{padding:`0 ${t.paddingXS}px`},[`${e}-dot`]:{zIndex:t.badgeZIndex,width:t.badgeDotSize,minWidth:t.badgeDotSize,height:t.badgeDotSize,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`},[`${e}-dot${l}`]:{transition:`background ${p}`},[`${e}-count, ${e}-dot, ${l}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${a}-spin`]:{animationName:Ot,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:c,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:St,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:h,color:t.colorText,fontSize:t.fontSize}}}),S),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:Ct,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:wt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:xt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:Nt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${l}-custom-component, ${e}-count`]:{transform:"none"},[`${l}-custom-component, ${l}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${l}`]:{overflow:"hidden",[`${l}-only`]:{position:"relative",display:"inline-block",height:t.badgeHeight,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${l}-only-unit`]:{height:t.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${l}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${l}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${r}`]:{position:"relative"},[`${u}`]:i(i(i(i({},Y(t)),{position:"absolute",top:h,padding:`0 ${t.paddingXS}px`,color:t.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${u}-text`]:{color:t.colorTextLightSolid},[`${u}-corner`]:{position:"absolute",top:"100%",width:b,height:b,color:"currentcolor",border:`${b/2}px solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),y),{[`&${u}-placement-end`]:{insetInlineEnd:-b,borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:-b,borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},J=it("Badge",t=>{const{fontSize:e,lineHeight:a,fontSizeSM:o,lineWidth:n,marginXS:c,colorBorderBg:d}=t,p=Math.round(e*a),s=n,h="auto",b=p-2*s,l=t.colorBgContainer,u="normal",r=o,S=t.colorError,y=t.colorErrorHover,g=e,$=o/2,m=o,T=o/2,I=st(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:b,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:S,badgeColorHover:y,badgeShadowColor:d,badgeHeightSm:g,badgeDotSize:$,badgeFontSizeSm:m,badgeStatusSize:T,badgeProcessingDuration:"1.2s",badgeRibbonOffset:c,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[Tt(I)]});var It=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n({prefix:String,color:{type:String},text:B.any,placement:{type:String,default:"end"}}),Dt=F({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:Pt(),slots:Object,setup(t,e){let{attrs:a,slots:o}=e;const{prefixCls:n,direction:c}=M("ribbon",t),[d,p]=J(n),s=f(()=>G(t.color,!1)),h=f(()=>[n.value,`${n.value}-placement-${t.placement}`,{[`${n.value}-rtl`]:c.value==="rtl",[`${n.value}-color-${t.color}`]:s.value}]);return()=>{var b,l;const{class:u,style:r}=a,S=It(a,["class","style"]),y={},g={};return t.color&&!s.value&&(y.background=t.color,g.color=t.color),d(v("div",D({class:`${n.value}-wrapper ${p.value}`},S),[(b=o.default)===null||b===void 0?void 0:b.call(o),v("div",{class:[h.value,u,p.value],style:i(i({},y),r)},[v("span",{class:`${n.value}-text`},[t.text||((l=o.text)===null||l===void 0?void 0:l.call(o))]),v("div",{class:`${n.value}-corner`,style:g},null)])]))}}}),Bt=()=>({count:B.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:B.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Ht=F({compatConfig:{MODE:3},name:"ABadge",Ribbon:Dt,inheritAttrs:!1,props:Bt(),slots:Object,setup(t,e){let{slots:a,attrs:o}=e;const{prefixCls:n,direction:c}=M("badge",t),[d,p]=J(n),s=f(()=>t.count>t.overflowCount?`${t.overflowCount}+`:t.count),h=f(()=>s.value==="0"||s.value===0),b=f(()=>t.count===null||h.value&&!t.showZero),l=f(()=>(t.status!==null&&t.status!==void 0||t.color!==null&&t.color!==void 0)&&b.value),u=f(()=>t.dot&&!h.value),r=f(()=>u.value?"":s.value),S=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),y=R(t.count),g=R(r.value),$=R(u.value);Q([()=>t.count,r,u],()=>{S.value||(y.value=t.count,g.value=r.value,$.value=u.value)},{immediate:!0});const m=f(()=>G(t.color,!1)),T=f(()=>({[`${n.value}-status-dot`]:l.value,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value})),I=f(()=>t.color&&!m.value?{background:t.color,color:t.color}:{}),k=f(()=>({[`${n.value}-dot`]:$.value,[`${n.value}-count`]:!$.value,[`${n.value}-count-sm`]:t.size==="small",[`${n.value}-multiple-words`]:!$.value&&g.value&&g.value.toString().length>1,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value}));return()=>{var z,W;const{offset:N,title:Z,color:V}=t,L=o.style,j=ut(a,t,"text"),w=n.value,C=y.value;let x=ct((z=a.default)===null||z===void 0?void 0:z.call(a));x=x.length?x:null;const A=!!(!S.value||a.count),E=(()=>{if(!N)return i({},L);const P={marginTop:ft(N[1])?`${N[1]}px`:N[1]};return c.value==="rtl"?P.left=`${parseInt(N[0],10)}px`:P.right=`${-parseInt(N[0],10)}px`,i(i({},P),L)})(),tt=Z!=null?Z:typeof C=="string"||typeof C=="number"?C:void 0,et=A||!j?null:v("span",{class:`${w}-status-text`},[j]),ot=typeof C=="object"||C===void 0&&a.count?q(C!=null?C:(W=a.count)===null||W===void 0?void 0:W.call(a),{style:E},!1):null,X=_(w,{[`${w}-status`]:l.value,[`${w}-not-a-wrapper`]:!x,[`${w}-rtl`]:c.value==="rtl"},o.class,p.value);if(!x&&l.value){const P=E.color;return d(v("span",D(D({},o),{},{class:X,style:E}),[v("span",{class:T.value,style:I.value},null),v("span",{style:{color:P},class:`${w}-status-text`},[j])]))}const nt=dt(x?`${w}-zoom`:"",{appear:!1});let H=i(i({},E),t.numberStyle);return V&&!m.value&&(H=H||{},H.background=V),d(v("span",D(D({},o),{},{class:X}),[x,v(bt,nt,{default:()=>[gt(v($t,{prefixCls:t.scrollNumberPrefixCls,show:A,class:k.value,count:g.value,title:tt,style:H,key:"scrollNumber"},{default:()=>[ot]}),[[mt,A]])]}),et]))}}});export{Ht as B,Dt as R}; +//# sourceMappingURL=Badge.bcc65740.js.map diff --git a/abstra_statics/dist/assets/BaseLayout.294a6887.js b/abstra_statics/dist/assets/BaseLayout.294a6887.js new file mode 100644 index 000000000..377e6d84d --- /dev/null +++ b/abstra_statics/dist/assets/BaseLayout.294a6887.js @@ -0,0 +1,2 @@ +import{$ as n,o as d,X as o,Z as s,a,R as r}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9a61e5de-7df9-4ed0-a1de-f967f8dffa4e",e._sentryDebugIdIdentifier="sentry-dbid-9a61e5de-7df9-4ed0-a1de-f967f8dffa4e")}catch{}})();const f={},c={class:"base-layout"},i={class:"base-middle"},u={key:0,class:"base-footer"};function _(e,t){return d(),o("div",c,[s(e.$slots,"sidebar",{},void 0,!0),a("section",i,[s(e.$slots,"navbar",{},void 0,!0),s(e.$slots,"content",{},void 0,!0),e.$slots.footer?(d(),o("section",u,[s(e.$slots,"footer",{},void 0,!0)])):r("",!0)])])}const b=n(f,[["render",_],["__scopeId","data-v-9ad5be20"]]);export{b as B}; +//# sourceMappingURL=BaseLayout.294a6887.js.map diff --git a/abstra_statics/dist/assets/BaseLayout.e1793d5b.js b/abstra_statics/dist/assets/BaseLayout.e1793d5b.js deleted file mode 100644 index 55b9c844d..000000000 --- a/abstra_statics/dist/assets/BaseLayout.e1793d5b.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as d,o,X as n,Z as s,a,R as r}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e0c1900b-aa1b-4d9e-88cc-6823234a3d98",e._sentryDebugIdIdentifier="sentry-dbid-e0c1900b-aa1b-4d9e-88cc-6823234a3d98")}catch{}})();const c={},i={class:"base-layout"},u={class:"base-middle"},_={key:0,class:"base-footer"};function f(e,t){return o(),n("div",i,[s(e.$slots,"sidebar",{},void 0,!0),a("section",u,[s(e.$slots,"navbar",{},void 0,!0),s(e.$slots,"content",{},void 0,!0),e.$slots.footer?(o(),n("section",_,[s(e.$slots,"footer",{},void 0,!0)])):r("",!0)])])}const y=d(c,[["render",f],["__scopeId","data-v-9ad5be20"]]);export{y as B}; -//# sourceMappingURL=BaseLayout.e1793d5b.js.map diff --git a/abstra_statics/dist/assets/Billing.274971a6.js b/abstra_statics/dist/assets/Billing.274971a6.js new file mode 100644 index 000000000..ba3cb7bde --- /dev/null +++ b/abstra_statics/dist/assets/Billing.274971a6.js @@ -0,0 +1,2 @@ +import{a as g}from"./asyncComputed.295e9e03.js";import{d as y,ed as _,W as b,u as e,c as w,X as x,b as a,w as o,o as l,db as C,aF as c,df as h,bS as I,a as k,ec as v}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{O as B}from"./organization.ed97e5a8.js";import"./tables.3aa20dd6.js";import{C as p}from"./router.59916c0d.js";import{L as D}from"./LoadingContainer.cc61e2fd.js";import{A as N}from"./index.c6ce1c1c.js";import{C as z}from"./Card.0ce127d8.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./TabPane.d0ca7ad5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="b8051050-45d5-4f1b-94c6-cdf3eec5c8a8",t._sentryDebugIdIdentifier="sentry-dbid-b8051050-45d5-4f1b-94c6-cdf3eec5c8a8")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},H=y({__name:"Billing",setup(t){const s=_().params.organizationId,{loading:f,result:u}=g(()=>B.get(s));b(()=>{location.search.includes("upgrade")&&p.showNewMessage("I want to upgrade my plan")});const m=()=>p.showNewMessage("I want to upgrade my plan");return(V,j)=>e(f)?(l(),w(D,{key:0})):(l(),x("div",M,[a(e(h),{justify:"space-between",align:"center"},{default:o(()=>[a(e(C),{level:3},{default:o(()=>[c("Current plan")]),_:1})]),_:1}),a(e(N),{style:{"margin-top":"0"}}),a(e(z),{style:{width:"300px"},title:"Plan"},{extra:o(()=>[a(e(I),{onClick:m},{default:o(()=>[c("Upgrade")]),_:1})]),default:o(()=>{var r,i,d;return[k("div",A,v((d=(i=(r=e(u))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{H as default}; +//# sourceMappingURL=Billing.274971a6.js.map diff --git a/abstra_statics/dist/assets/Billing.9a1094cc.js b/abstra_statics/dist/assets/Billing.9a1094cc.js deleted file mode 100644 index 2b10769b1..000000000 --- a/abstra_statics/dist/assets/Billing.9a1094cc.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as g}from"./asyncComputed.d0f14ed3.js";import{d as y,ed as _,W as b,u as e,c as w,X as x,b as a,w as o,o as l,db as C,aF as f,df as h,bS as I,a as k,ec as v}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{O as B}from"./organization.6af6e7be.js";import"./tables.e9d41f69.js";import{C as p}from"./router.87582bcc.js";import{L as D}from"./LoadingContainer.01cf1024.js";import{A as N}from"./index.c2ef572b.js";import{C as z}from"./Card.b3c66431.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./TabPane.9889f7a8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="a974bfad-f98b-4464-919e-fff969c080a3",t._sentryDebugIdIdentifier="sentry-dbid-a974bfad-f98b-4464-919e-fff969c080a3")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},H=y({__name:"Billing",setup(t){const s=_().params.organizationId,{loading:c,result:u}=g(()=>B.get(s));b(()=>{location.search.includes("upgrade")&&p.showNewMessage("I want to upgrade my plan")});const m=()=>p.showNewMessage("I want to upgrade my plan");return(V,j)=>e(c)?(l(),w(D,{key:0})):(l(),x("div",M,[a(e(h),{justify:"space-between",align:"center"},{default:o(()=>[a(e(C),{level:3},{default:o(()=>[f("Current plan")]),_:1})]),_:1}),a(e(N),{style:{"margin-top":"0"}}),a(e(z),{style:{width:"300px"},title:"Plan"},{extra:o(()=>[a(e(I),{onClick:m},{default:o(()=>[f("Upgrade")]),_:1})]),default:o(()=>{var r,i,d;return[k("div",A,v((d=(i=(r=e(u))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{H as default}; -//# sourceMappingURL=Billing.9a1094cc.js.map diff --git a/abstra_statics/dist/assets/BookOutlined.a8460802.js b/abstra_statics/dist/assets/BookOutlined.5f7ad9dc.js similarity index 61% rename from abstra_statics/dist/assets/BookOutlined.a8460802.js rename to abstra_statics/dist/assets/BookOutlined.5f7ad9dc.js index 64563f24b..a0041eae2 100644 --- a/abstra_statics/dist/assets/BookOutlined.a8460802.js +++ b/abstra_statics/dist/assets/BookOutlined.5f7ad9dc.js @@ -1,2 +1,2 @@ -import{b as i,eh as c}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe11f25a-f112-4627-a5db-7798ff4a94dc",e._sentryDebugIdIdentifier="sentry-dbid-fe11f25a-f112-4627-a5db-7798ff4a94dc")}catch{}})();var d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};const u=d;function f(e){for(var t=1;t{var m;return(m=e.weight)!=null?m:l}),w=_(()=>{var m;return(m=e.size)!=null?m:p}),h=_(()=>{var m;return(m=e.color)!=null?m:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(m,S)=>(n(),f("svg",T({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},m.$attrs),[G(m.$slots,"default"),s.value==="bold"?(n(),f("g",Be,He)):s.value==="duotone"?(n(),f("g",Le,Fe)):s.value==="fill"?(n(),f("g",Ge,Re)):s.value==="light"?(n(),f("g",qe,We)):s.value==="regular"?(n(),f("g",Qe,Je)):s.value==="thin"?(n(),f("g",Xe,et)):C("",!0)],16,ze))}}),lt=["width","height","fill","transform"],rt={key:0},nt=v("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),ot=[nt],it={key:1},st=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ut=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),ct=[st,ut],dt={key:2},pt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),mt=[pt],gt={key:3},ft=v("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),vt=[ft],ht={key:4},yt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),bt=[yt],At={key:5},Ct=v("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),kt=[Ct],_t={name:"PhDotsThreeCircle"},wt=P({..._t,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,l=x("weight","regular"),p=x("size","1em"),i=x("color","currentColor"),$=x("mirrored",!1),s=_(()=>{var m;return(m=e.weight)!=null?m:l}),w=_(()=>{var m;return(m=e.size)!=null?m:p}),h=_(()=>{var m;return(m=e.color)!=null?m:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(m,S)=>(n(),f("svg",T({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},m.$attrs),[G(m.$slots,"default"),s.value==="bold"?(n(),f("g",rt,ot)):s.value==="duotone"?(n(),f("g",it,ct)):s.value==="fill"?(n(),f("g",dt,mt)):s.value==="light"?(n(),f("g",gt,vt)):s.value==="regular"?(n(),f("g",ht,bt)):s.value==="thin"?(n(),f("g",At,kt)):C("",!0)],16,lt))}});function N(r){for(var e=1;e{l.push({name:"logs",params:{projectId:e.buildSpec.projectId},query:i.logQuery})};return(i,$)=>i.buildSpec.runtimes.length>0?(n(),g(a($e),{key:0,"item-layout":"horizontal","data-source":i.buildSpec.runtimes},{renderItem:c(({item:s})=>[d(a(xe),null,{actions:c(()=>[d(a(Y),null,{overlay:c(()=>[d(a(J),null,{default:c(()=>[d(a(X),{onClick:w=>p(s)},{default:c(()=>[v("div",Pt,[d(a(at)),d(a(O),null,{default:c(()=>[b(" View Logs")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:c(()=>[d(a(wt),{style:{cursor:"pointer"}})]),_:2},1024)]),default:c(()=>[s.type=="form"?(n(),g(a(M),{key:0,size:"large"},{default:c(()=>[d(a(ke)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="job"?(n(),g(a(M),{key:1,size:"large"},{default:c(()=>[d(a(_e)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b(A(s.schedule),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="hook"?(n(),g(a(M),{key:2,size:"large"},{default:c(()=>[d(a(we)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/_hooks/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="script"?(n(),g(a(M),{key:3,size:"large"},{default:c(()=>[d(a(Oe)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024)]),_:2},1024)):C("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(n(),f("div",Vt,[d(a(K),{description:"No runtimes found. Make sure your project has forms, hooks or jobs before deploying it"})]))}}),It=P({__name:"Builds",setup(r){const l=ee().params.projectId,{loading:p,result:i,refetch:$}=L(async()=>{const[t,u]=await Promise.all([ge.list(l),Ce.getStatus(l)]);return{b:t.map(y=>({build:y,status:u.filter(Z=>Z.buildId==y.id).map(Z=>Z.status)})),status:u}}),{startPolling:s,endPolling:w}=he({task:$,interval:1e4});te(()=>s()),ae(()=>w());const h=le(null),k=L(async()=>h.value?await fe.get(h.value):null),m=()=>{var o;const t=(o=i.value)==null?void 0:o.b.find(y=>y.build.id===h.value);return`Build ${t==null?void 0:t.build.id.slice(0,8)} - ${t==null?void 0:t.build.createdAt.toLocaleString()}`},S=[{text:"Deploying",tagColor:"blue",check:t=>{var u,o;return(o=t.build.latest&&t.status.some(y=>y=="Running")&&((u=i.value)==null?void 0:u.status.some(y=>y.buildId!==t.build.id)))!=null?o:!1},loading:!0},{text:"Deactivating",tagColor:"orange",check:t=>t.build.status==="success"&&!t.build.latest&&t.status.some(u=>u=="Running"),loading:!0},{text:"Live",tagColor:"green",check:t=>t.build.latest&&t.status.some(u=>u=="Running")},{text:"Sleeping",tagColor:"cyan",check:t=>t.build.latest&&t.status.length===0},{text:"Failed",tagColor:"red",check:t=>t.build.latest&&t.status.some(u=>u=="Failed")},{text:"Inactive",tagColor:"default",check:t=>t.build.status==="success"},{text:"Aborted",tagColor:"default",check:t=>t.build.status==="aborted"||t.build.status==="aborted-by-user"},{text:"Failed",tagColor:"orange",check:t=>t.build.status==="failure"},{text:"Deploying",tagColor:"blue",check:t=>t.build.status==="in-progress",loading:!0},{text:"Uploading",tagColor:"yellow",check:t=>t.build.status==="pending"}];function R(t){var u,o,y,Z,H;return{text:(o=(u=S.find(V=>V.check(t)))==null?void 0:u.text)!=null?o:"unknown",tagColor:(Z=(y=S.find(V=>V.check(t)))==null?void 0:y.tagColor)!=null?Z:"default",hover:(H=t.build.log)!=null?H:void 0}}const q=_(()=>{const t=[{name:"Id"},{name:"Date"},{name:"Abstra Version"},{name:"Status"},{name:"",align:"right"}];return i.value?{columns:t,rows:i.value.b.map(u=>{var o;return{key:u.build.id,cells:[{type:"text",text:u.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:ve(u.build.createdAt,{weekday:void 0}),distance:pe(u.build.createdAt)}},{type:"text",text:(o=u.build.abstraVersion)!=null?o:"-"},{key:"status",type:"slot",payload:R(u)},{type:"actions",actions:[{icon:be,label:"Inspect build",onClick:async()=>{h.value=u.build.id,k.refetch()}},{icon:ye,label:"View application logs",onClick:()=>Ze.push({name:"logs",params:{projectId:l},query:{buildId:u.build.id}})},{icon:Ae,label:"Download files",onClick:()=>u.build.download()}]}]}})}:{columns:t,rows:[]}});return(t,u)=>(n(),f(re,null,[d(U,{"entity-name":"build",loading:a(p),title:"Builds",description:"Each build is a version of your project. You can create a new build by deploying your project from the local editor.","empty-title":"No builds here yet",table:q.value,live:""},{date:c(({payload:o})=>[d(a(ne),null,{title:c(()=>[b(A(o.distance),1)]),default:c(()=>[b(A(o.date)+" ",1)]),_:2},1024)]),status:c(({payload:o})=>[d(a(oe),{open:o.hover?void 0:!1},{content:c(()=>[d(a(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:o.hover,copyable:""},null,8,["content"])]),default:c(()=>[o.text!=="unknown"?(n(),g(a(ue),{key:0,color:o.tagColor,style:se({cursor:o.hover?"pointer":"default"})},{default:c(()=>[o.text==="Live"?(n(),g(a(xt),{key:0})):o.text==="Inactive"?(n(),g(a(Zt),{key:1})):o.text==="Failed"?(n(),g(a(Se),{key:2})):o.text==="Aborted"?(n(),g(a(Me),{key:3})):o.text==="Sleeping"?(n(),g(a(Mt),{key:4})):o.text==="Uploading"?(n(),g(a(j),{key:5})):o.text==="Deploying"?(n(),g(a(j),{key:6})):o.text==="Deactivating"?(n(),g(a(j),{key:7})):C("",!0),b(" "+A(o.text),1)]),_:2},1032,["color","style"])):C("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","table"]),h.value?(n(),g(a(de),{key:0,footer:null,open:!!h.value,size:"large",width:"80%",title:m(),onCancel:u[0]||(u[0]=o=>h.value=null)},{default:c(()=>[!a(k).result.value||a(k).loading.value?(n(),g(a(ce),{key:0})):a(k).result.value?(n(),g(jt,{key:1,"build-spec":a(k).result.value},null,8,["build-spec"])):C("",!0)]),_:1},8,["open","title"])):C("",!0)],64))}});const o1=me(It,[["__scopeId","data-v-9a434420"]]);export{o1 as default}; -//# sourceMappingURL=Builds.6f48f61c.js.map +import{C as U}from"./CrudView.b65b5675.js";import{d as P,B as x,f as _,o as n,X as f,Z as G,R as C,eb as T,a as v,b as d,eh as I,f4 as W,eq as Q,c as g,w as c,u as a,bQ as Y,by as J,bw as X,da as O,aF as b,ec as A,cw as K,ed as ee,W as te,ag as ae,e as le,aR as re,aV as ne,cN as oe,d9 as ie,Y as se,d3 as ue,bx as ce,cK as de,eJ as pe,$ as me}from"./vue-router.3fd92176.js";import{a as L}from"./asyncComputed.295e9e03.js";import{B as ge,a as fe,g as ve}from"./datetime.744b5391.js";import{u as he}from"./polling.4e30c061.js";import{G as ye}from"./PhArrowCounterClockwise.vue.8fbc5885.js";import{H as be}from"./PhCube.vue.fe0d14c9.js";import{G as Ae}from"./PhDownloadSimple.vue.33128e79.js";import"./gateway.c564a1cf.js";import{P as Ce}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import{F as ke,a as _e,G as we,I as Oe}from"./PhWebhooksLogo.vue.73a10b16.js";import{A as M}from"./index.063f7c9e.js";import{a as xe,A as $e}from"./index.eafefd9b.js";import{r as Ze}from"./router.59916c0d.js";import{E as Se}from"./ExclamationCircleOutlined.379cd3ee.js";import{C as Me}from"./CloseCircleOutlined.f8dfd09a.js";import{L as j}from"./LoadingOutlined.dad6ee6e.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="b581e566-c2ab-4fa0-ac2b-cac43788fa97",r._sentryDebugIdIdentifier="sentry-dbid-b581e566-c2ab-4fa0-ac2b-cac43788fa97")}catch{}})();var Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const Ve=Pe;var je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};const Ie=je,ze=["width","height","fill","transform"],Be={key:0},De=v("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"},null,-1),He=[De],Le={key:1},Ne=v("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Ee=v("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"},null,-1),Fe=[Ne,Ee],Ge={key:2},Te=v("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"},null,-1),Re=[Te],qe={key:3},Ue=v("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"},null,-1),We=[Ue],Qe={key:4},Ye=v("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"},null,-1),Je=[Ye],Xe={key:5},Ke=v("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"},null,-1),et=[Ke],tt={name:"PhClockCounterClockwise"},at=P({...tt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,l=x("weight","regular"),p=x("size","1em"),i=x("color","currentColor"),$=x("mirrored",!1),s=_(()=>{var m;return(m=e.weight)!=null?m:l}),w=_(()=>{var m;return(m=e.size)!=null?m:p}),h=_(()=>{var m;return(m=e.color)!=null?m:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(m,S)=>(n(),f("svg",T({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},m.$attrs),[G(m.$slots,"default"),s.value==="bold"?(n(),f("g",Be,He)):s.value==="duotone"?(n(),f("g",Le,Fe)):s.value==="fill"?(n(),f("g",Ge,Re)):s.value==="light"?(n(),f("g",qe,We)):s.value==="regular"?(n(),f("g",Qe,Je)):s.value==="thin"?(n(),f("g",Xe,et)):C("",!0)],16,ze))}}),lt=["width","height","fill","transform"],rt={key:0},nt=v("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),ot=[nt],it={key:1},st=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ut=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),ct=[st,ut],dt={key:2},pt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),mt=[pt],gt={key:3},ft=v("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),vt=[ft],ht={key:4},yt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),bt=[yt],At={key:5},Ct=v("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),kt=[Ct],_t={name:"PhDotsThreeCircle"},wt=P({..._t,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,l=x("weight","regular"),p=x("size","1em"),i=x("color","currentColor"),$=x("mirrored",!1),s=_(()=>{var m;return(m=e.weight)!=null?m:l}),w=_(()=>{var m;return(m=e.size)!=null?m:p}),h=_(()=>{var m;return(m=e.color)!=null?m:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(m,S)=>(n(),f("svg",T({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},m.$attrs),[G(m.$slots,"default"),s.value==="bold"?(n(),f("g",rt,ot)):s.value==="duotone"?(n(),f("g",it,ct)):s.value==="fill"?(n(),f("g",dt,mt)):s.value==="light"?(n(),f("g",gt,vt)):s.value==="regular"?(n(),f("g",ht,bt)):s.value==="thin"?(n(),f("g",At,kt)):C("",!0)],16,lt))}});function N(r){for(var e=1;e{l.push({name:"logs",params:{projectId:e.buildSpec.projectId},query:i.logQuery})};return(i,$)=>i.buildSpec.runtimes.length>0?(n(),g(a($e),{key:0,"item-layout":"horizontal","data-source":i.buildSpec.runtimes},{renderItem:c(({item:s})=>[d(a(xe),null,{actions:c(()=>[d(a(Y),null,{overlay:c(()=>[d(a(J),null,{default:c(()=>[d(a(X),{onClick:w=>p(s)},{default:c(()=>[v("div",Pt,[d(a(at)),d(a(O),null,{default:c(()=>[b(" View Logs")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:c(()=>[d(a(wt),{style:{cursor:"pointer"}})]),_:2},1024)]),default:c(()=>[s.type=="form"?(n(),g(a(M),{key:0,size:"large"},{default:c(()=>[d(a(ke)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="job"?(n(),g(a(M),{key:1,size:"large"},{default:c(()=>[d(a(_e)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b(A(s.schedule),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="hook"?(n(),g(a(M),{key:2,size:"large"},{default:c(()=>[d(a(we)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/_hooks/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="script"?(n(),g(a(M),{key:3,size:"large"},{default:c(()=>[d(a(Oe)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024)]),_:2},1024)):C("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(n(),f("div",Vt,[d(a(K),{description:"No runtimes found. Make sure your project has forms, hooks or jobs before deploying it"})]))}}),It=P({__name:"Builds",setup(r){const l=ee().params.projectId,{loading:p,result:i,refetch:$}=L(async()=>{const[t,u]=await Promise.all([ge.list(l),Ce.getStatus(l)]);return{b:t.map(y=>({build:y,status:u.filter(Z=>Z.buildId==y.id).map(Z=>Z.status)})),status:u}}),{startPolling:s,endPolling:w}=he({task:$,interval:1e4});te(()=>s()),ae(()=>w());const h=le(null),k=L(async()=>h.value?await fe.get(h.value):null),m=()=>{var o;const t=(o=i.value)==null?void 0:o.b.find(y=>y.build.id===h.value);return`Build ${t==null?void 0:t.build.id.slice(0,8)} - ${t==null?void 0:t.build.createdAt.toLocaleString()}`},S=[{text:"Deploying",tagColor:"blue",check:t=>{var u,o;return(o=t.build.latest&&t.status.some(y=>y=="Running")&&((u=i.value)==null?void 0:u.status.some(y=>y.buildId!==t.build.id)))!=null?o:!1},loading:!0},{text:"Deactivating",tagColor:"orange",check:t=>t.build.status==="success"&&!t.build.latest&&t.status.some(u=>u=="Running"),loading:!0},{text:"Live",tagColor:"green",check:t=>t.build.latest&&t.status.some(u=>u=="Running")},{text:"Sleeping",tagColor:"cyan",check:t=>t.build.latest&&t.status.length===0},{text:"Failed",tagColor:"red",check:t=>t.build.latest&&t.status.some(u=>u=="Failed")},{text:"Inactive",tagColor:"default",check:t=>t.build.status==="success"},{text:"Aborted",tagColor:"default",check:t=>t.build.status==="aborted"||t.build.status==="aborted-by-user"},{text:"Failed",tagColor:"orange",check:t=>t.build.status==="failure"},{text:"Deploying",tagColor:"blue",check:t=>t.build.status==="in-progress",loading:!0},{text:"Uploading",tagColor:"yellow",check:t=>t.build.status==="pending"}];function R(t){var u,o,y,Z,H;return{text:(o=(u=S.find(V=>V.check(t)))==null?void 0:u.text)!=null?o:"unknown",tagColor:(Z=(y=S.find(V=>V.check(t)))==null?void 0:y.tagColor)!=null?Z:"default",hover:(H=t.build.log)!=null?H:void 0}}const q=_(()=>{const t=[{name:"Id"},{name:"Date"},{name:"Abstra Version"},{name:"Status"},{name:"",align:"right"}];return i.value?{columns:t,rows:i.value.b.map(u=>{var o;return{key:u.build.id,cells:[{type:"text",text:u.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:ve(u.build.createdAt,{weekday:void 0}),distance:pe(u.build.createdAt)}},{type:"text",text:(o=u.build.abstraVersion)!=null?o:"-"},{key:"status",type:"slot",payload:R(u)},{type:"actions",actions:[{icon:be,label:"Inspect build",onClick:async()=>{h.value=u.build.id,k.refetch()}},{icon:ye,label:"View application logs",onClick:()=>Ze.push({name:"logs",params:{projectId:l},query:{buildId:u.build.id}})},{icon:Ae,label:"Download files",onClick:()=>u.build.download()}]}]}})}:{columns:t,rows:[]}});return(t,u)=>(n(),f(re,null,[d(U,{"entity-name":"build",loading:a(p),title:"Builds",description:"Each build is a version of your project. You can create a new build by deploying your project from the local editor.","empty-title":"No builds here yet",table:q.value,live:""},{date:c(({payload:o})=>[d(a(ne),null,{title:c(()=>[b(A(o.distance),1)]),default:c(()=>[b(A(o.date)+" ",1)]),_:2},1024)]),status:c(({payload:o})=>[d(a(oe),{open:o.hover?void 0:!1},{content:c(()=>[d(a(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:o.hover,copyable:""},null,8,["content"])]),default:c(()=>[o.text!=="unknown"?(n(),g(a(ue),{key:0,color:o.tagColor,style:se({cursor:o.hover?"pointer":"default"})},{default:c(()=>[o.text==="Live"?(n(),g(a(xt),{key:0})):o.text==="Inactive"?(n(),g(a(Zt),{key:1})):o.text==="Failed"?(n(),g(a(Se),{key:2})):o.text==="Aborted"?(n(),g(a(Me),{key:3})):o.text==="Sleeping"?(n(),g(a(Mt),{key:4})):o.text==="Uploading"?(n(),g(a(j),{key:5})):o.text==="Deploying"?(n(),g(a(j),{key:6})):o.text==="Deactivating"?(n(),g(a(j),{key:7})):C("",!0),b(" "+A(o.text),1)]),_:2},1032,["color","style"])):C("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","table"]),h.value?(n(),g(a(de),{key:0,footer:null,open:!!h.value,size:"large",width:"80%",title:m(),onCancel:u[0]||(u[0]=o=>h.value=null)},{default:c(()=>[!a(k).result.value||a(k).loading.value?(n(),g(a(ce),{key:0})):a(k).result.value?(n(),g(jt,{key:1,"build-spec":a(k).result.value},null,8,["build-spec"])):C("",!0)]),_:1},8,["open","title"])):C("",!0)],64))}});const o1=me(It,[["__scopeId","data-v-9a434420"]]);export{o1 as default}; +//# sourceMappingURL=Builds.e336d48e.js.map diff --git a/abstra_statics/dist/assets/Card.b3c66431.js b/abstra_statics/dist/assets/Card.0ce127d8.js similarity index 98% rename from abstra_statics/dist/assets/Card.b3c66431.js rename to abstra_statics/dist/assets/Card.0ce127d8.js index a99d36426..263ba0195 100644 --- a/abstra_statics/dist/assets/Card.b3c66431.js +++ b/abstra_statics/dist/assets/Card.0ce127d8.js @@ -1,4 +1,4 @@ -import{ac as ge,ad as pe,S as o,dM as _,ao as Ae,an as $e,d as C,b as r,ai as y,aT as Pe,ap as ee,ah as P,f as O,ak as x,aj as he,dN as L,aC as ze,c7 as Re,Z as Me,au as D,dO as ce,dK as Ee,dP as Le}from"./vue-router.4c13f3d4.js";import{T as H,A as Y}from"./TabPane.9889f7a8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ebf42eb0-c344-4bdb-92d6-a4c41af695b3",e._sentryDebugIdIdentifier="sentry-dbid-ebf42eb0-c344-4bdb-92d6-a4c41af695b3")}catch{}})();H.TabPane=Y;H.install=function(e){return e.component(H.name,H),e.component(Y.name,Y),e};const De=e=>{const{antCls:t,componentCls:n,cardHeadHeight:a,cardPaddingBase:i,cardHeadTabsMarginBottom:s}=e;return o(o({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},_()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":o(o({display:"inline-block",flex:1},$e),{[` +import{ac as ge,ad as pe,S as o,dM as _,ao as Ae,an as $e,d as C,b as r,ai as y,aT as Pe,ap as ee,ah as P,f as O,ak as x,aj as he,dN as L,aC as ze,c7 as Re,Z as Me,au as D,dO as ce,dK as Ee,dP as Le}from"./vue-router.3fd92176.js";import{T as H,A as Y}from"./TabPane.d0ca7ad5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9e6c2bbe-d81a-4d8b-9653-2daf447a81ba",e._sentryDebugIdIdentifier="sentry-dbid-9e6c2bbe-d81a-4d8b-9653-2daf447a81ba")}catch{}})();H.TabPane=Y;H.install=function(e){return e.component(H.name,H),e.component(Y.name,Y),e};const De=e=>{const{antCls:t,componentCls:n,cardHeadHeight:a,cardPaddingBase:i,cardHeadTabsMarginBottom:s}=e;return o(o({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},_()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":o(o({display:"inline-block",flex:1},$e),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},ke=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -15,4 +15,4 @@ import{ac as ge,ad as pe,S as o,dM as _,ao as Ae,an as $e,d as C,b as r,ai as y, ${d}, ${h} `]:o({},Je(e))}}},k=ge("Skeleton",e=>{const{componentCls:t}=e,n=pe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[nt(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),at=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function Q(e){return e&&typeof e=="object"?e:{}}function ot(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function it(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function rt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const lt=C({compatConfig:{MODE:3},name:"ASkeleton",props:ee(at(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:a,direction:i}=P("skeleton",e),[s,d]=k(a);return()=>{var h;const{loading:z,avatar:w,title:v,paragraph:f,active:g,round:u}=e,l=a.value;if(z||e.loading===void 0){const $=!!w||w==="",m=!!v||v==="",b=!!f||f==="";let B;if($){const T=o(o({prefixCls:`${l}-avatar`},ot(m,b)),Q(w));B=r("div",{class:`${l}-header`},[r(N,T,null)])}let I;if(m||b){let T;if(m){const S=o(o({prefixCls:`${l}-title`},it($,b)),Q(v));T=r(te,S,null)}let R;if(b){const S=o(o({prefixCls:`${l}-paragraph`},rt($,m)),Q(f));R=r(Ue,S,null)}I=r("div",{class:`${l}-content`},[T,R])}const W=y(l,{[`${l}-with-avatar`]:$,[`${l}-active`]:g,[`${l}-rtl`]:i.value==="rtl",[`${l}-round`]:u,[d.value]:!0});return s(r("div",{class:W},[B,I]))}return(h=n.default)===null||h===void 0?void 0:h.call(n)}}}),p=lt,st=()=>o(o({},j()),{size:String,block:Boolean}),dt=C({compatConfig:{MODE:3},name:"ASkeletonButton",props:ee(st(),{size:"default"}),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(N,x(x({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),be=dt,ct=C({compatConfig:{MODE:3},name:"ASkeletonInput",props:o(o({},he(j(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(N,x(x({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),fe=ct,ut="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",gt=C({compatConfig:{MODE:3},name:"ASkeletonImage",props:he(j(),["size","shape","active"]),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,a.value));return()=>n(r("div",{class:i.value},[r("div",{class:`${t.value}-image`},[r("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[r("path",{d:ut,class:`${t.value}-image-path`},null)])])]))}}),Se=gt,pt=()=>o(o({},j()),{shape:String}),$t=C({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:ee(pt(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},a.value));return()=>n(r("div",{class:i.value},[r(N,x(x({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),ve=$t;p.Button=be;p.Avatar=ve;p.Input=fe;p.Image=Se;p.Title=te;p.install=function(e){return e.component(p.name,p),e.component(p.Button.name,be),e.component(p.Avatar.name,ve),e.component(p.Input.name,fe),e.component(p.Image.name,Se),e.component(p.Title.name,te),e};const{TabPane:ht}=H,mt=()=>({prefixCls:String,title:D.any,extra:D.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:D.any,tabList:{type:Array},tabBarExtraContent:D.any,activeTabKey:String,defaultActiveTabKey:String,cover:D.any,onTabChange:{type:Function}}),bt=C({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:mt(),slots:Object,setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:i,direction:s,size:d}=P("card",e),[h,z]=qe(i),w=g=>g.map((l,$)=>ce(l)&&!Ee(l)||!ce(l)?r("li",{style:{width:`${100/g.length}%`},key:`action-${$}`},[r("span",null,[l])]):null),v=g=>{var u;(u=e.onTabChange)===null||u===void 0||u.call(e,g)},f=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u;return g.forEach(l=>{l&&Le(l.type)&&l.type.__ANT_CARD_GRID&&(u=!0)}),u};return()=>{var g,u,l,$,m,b;const{headStyle:B={},bodyStyle:I={},loading:W,bordered:T=!0,type:R,tabList:S,hoverable:ye,activeTabKey:ne,defaultActiveTabKey:xe,tabBarExtraContent:ae=L((g=n.tabBarExtraContent)===null||g===void 0?void 0:g.call(n)),title:K=L((u=n.title)===null||u===void 0?void 0:u.call(n)),extra:X=L((l=n.extra)===null||l===void 0?void 0:l.call(n)),actions:F=L(($=n.actions)===null||$===void 0?void 0:$.call(n)),cover:oe=L((m=n.cover)===null||m===void 0?void 0:m.call(n))}=e,M=ze((b=n.default)===null||b===void 0?void 0:b.call(n)),c=i.value,Ce={[`${c}`]:!0,[z.value]:!0,[`${c}-loading`]:W,[`${c}-bordered`]:T,[`${c}-hoverable`]:!!ye,[`${c}-contain-grid`]:f(M),[`${c}-contain-tabs`]:S&&S.length,[`${c}-${d.value}`]:d.value,[`${c}-type-${R}`]:!!R,[`${c}-rtl`]:s.value==="rtl"},we=r(p,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[M]}),ie=ne!==void 0,Be={size:"large",[ie?"activeKey":"defaultActiveKey"]:ie?ne:xe,onChange:v,class:`${c}-head-tabs`};let re;const le=S&&S.length?r(H,Be,{default:()=>[S.map(E=>{const{tab:se,slots:G}=E,de=G==null?void 0:G.tab;Re(!G,"Card","tabList slots is deprecated, Please use `customTab` instead.");let V=se!==void 0?se:n[de]?n[de](E):null;return V=Me(n,"customTab",E,()=>[V]),r(ht,{tab:V,key:E.key,disabled:E.disabled},null)})],rightExtra:ae?()=>ae:null}):null;(K||X||le)&&(re=r("div",{class:`${c}-head`,style:B},[r("div",{class:`${c}-head-wrapper`},[K&&r("div",{class:`${c}-head-title`},[K]),X&&r("div",{class:`${c}-extra`},[X])]),le]));const Ie=oe?r("div",{class:`${c}-cover`},[oe]):null,Te=r("div",{class:`${c}-body`,style:I},[W?we:M]),He=F&&F.length?r("ul",{class:`${c}-actions`},[w(F)]):null;return h(r("div",x(x({ref:"cardContainerRef"},a),{},{class:[Ce,a.class]}),[re,Ie,M&&M.length?Te:null,He]))}}}),vt=bt;export{be as A,vt as C,p as S,ve as a,fe as b,Se as c,te as d}; -//# sourceMappingURL=Card.b3c66431.js.map +//# sourceMappingURL=Card.0ce127d8.js.map diff --git a/abstra_statics/dist/assets/CircularLoading.b40e14c8.js b/abstra_statics/dist/assets/CircularLoading.b920c29a.js similarity index 99% rename from abstra_statics/dist/assets/CircularLoading.b40e14c8.js rename to abstra_statics/dist/assets/CircularLoading.b920c29a.js index d222648df..bdb62e98e 100644 --- a/abstra_statics/dist/assets/CircularLoading.b40e14c8.js +++ b/abstra_statics/dist/assets/CircularLoading.b920c29a.js @@ -1,4 +1,4 @@ -import{eH as commonjsGlobal,d as defineComponent,e as ref,W as onMounted,f as computed,o as openBlock,X as createElementBlock,a as createBaseVNode,Y as normalizeStyle,Z as renderSlot,$ as _export_sfc}from"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="9feedaee-69df-4853-82ec-98b2f9d57e82",t._sentryDebugIdIdentifier="sentry-dbid-9feedaee-69df-4853-82ec-98b2f9d57e82")}catch{}})();var lottie={exports:{}};(function(module,exports){typeof navigator<"u"&&function(t,e){module.exports=e()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i=t.length,s;for(r=0;r1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+t[i]+t[s]+t[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(t)}var dataManager=function(){var t=1,e=[],r,i,s={onmessage:function(){},postMessage:function(P){r({data:P})}},a={postMessage:function(P){s.onmessage({data:P})}};function n(c){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",c.toString()],{type:"text/javascript"}),v=URL.createObjectURL(P);return new Worker(v)}return r=c,s}function p(){i||(i=n(function(P){function v(){function x(w,M){var A,S,T=w.length,V,F,G,N;for(S=0;S=0;M-=1)if(w[M].ty==="sh")if(w[M].ks.k.i)g(w[M].ks.k);else for(T=w[M].ks.k.length,S=0;SA[0]?!0:A[0]>w[0]?!1:w[1]>A[1]?!0:A[1]>w[1]?!1:w[2]>A[2]?!0:A[2]>w[2]?!1:null}var E=function(){var w=[4,4,14];function M(S){var T=S.t.d;S.t.d={k:[{s:T,t:0}]}}function A(S){var T,V=S.length;for(T=0;T=0;T-=1)if(S[T].ty==="sh")if(S[T].ks.k.i)S[T].ks.k.c=S[T].closed;else for(G=S[T].ks.k.length,F=0;F500)&&(this._imageLoaded(),clearInterval(l)),u+=1}.bind(this),50)}function a(o){var u=i(o,this.assetsPath,this.path),l=createNS("image");isSafari?this.testImageLoaded(l):l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(l):this._elementHelper.appendChild(l);var h={img:l,assetData:o};return h}function n(o){var u=i(o,this.assetsPath,this.path),l=createTag("img");l.crossOrigin="anonymous",l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.src=u;var h={img:l,assetData:o};return h}function p(o){var u={assetData:o},l=i(o,this.assetsPath,this.path);return dataManager.loadData(l,function(h){u.img=h,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function f(o,u){this.imagesLoadedCb=u;var l,h=o.length;for(l=0;l1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+t[i]+t[s]+t[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(t)}var dataManager=function(){var t=1,e=[],r,i,s={onmessage:function(){},postMessage:function(P){r({data:P})}},a={postMessage:function(P){s.onmessage({data:P})}};function n(c){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",c.toString()],{type:"text/javascript"}),v=URL.createObjectURL(P);return new Worker(v)}return r=c,s}function p(){i||(i=n(function(P){function v(){function x(w,M){var A,S,T=w.length,V,F,G,N;for(S=0;S=0;M-=1)if(w[M].ty==="sh")if(w[M].ks.k.i)g(w[M].ks.k);else for(T=w[M].ks.k.length,S=0;SA[0]?!0:A[0]>w[0]?!1:w[1]>A[1]?!0:A[1]>w[1]?!1:w[2]>A[2]?!0:A[2]>w[2]?!1:null}var E=function(){var w=[4,4,14];function M(S){var T=S.t.d;S.t.d={k:[{s:T,t:0}]}}function A(S){var T,V=S.length;for(T=0;T=0;T-=1)if(S[T].ty==="sh")if(S[T].ks.k.i)S[T].ks.k.c=S[T].closed;else for(G=S[T].ks.k.length,F=0;F500)&&(this._imageLoaded(),clearInterval(l)),u+=1}.bind(this),50)}function a(o){var u=i(o,this.assetsPath,this.path),l=createNS("image");isSafari?this.testImageLoaded(l):l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(l):this._elementHelper.appendChild(l);var h={img:l,assetData:o};return h}function n(o){var u=i(o,this.assetsPath,this.path),l=createTag("img");l.crossOrigin="anonymous",l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.src=u;var h={img:l,assetData:o};return h}function p(o){var u={assetData:o},l=i(o,this.assetsPath,this.path);return dataManager.loadData(l,function(h){u.img=h,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function f(o,u){this.imagesLoadedCb=u;var l,h=o.length;for(l=0;lthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,r,i=e.length,s=t.layers,a,n=s.length;for(a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,e=0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r=0;A-=1)e[A].animation.destroy(M)}function _(M,A,S){var T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),V,F=T.length;for(V=0;V0?h=_:l=_;while(Math.abs(E)>a&&++k=s?x(l,L,h,g):I===0?L:d(l,E,E+f,h,g)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return{double:t}}(),poolFactory=function(){return function(t,e,r){var i=0,s=t,a=createSizedArray(s),n={newElement:p,release:f};function p(){var m;return i?(i-=1,m=a[i]):m=e(),m}function f(m){i===s&&(a=pooling.double(a),s*=2),r&&r(m),a[i]=m,i+=1}return n}}(),bezierLengthPool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return{lengths:[],totalLength:0}}function e(r){var i,s=r.lengths.length;for(i=0;i-.001&&u<.001}function r(c,P,v,d,x,o,u,l,h){if(v===0&&o===0&&h===0)return e(c,P,d,x,u,l);var g=t.sqrt(t.pow(d-c,2)+t.pow(x-P,2)+t.pow(o-v,2)),b=t.sqrt(t.pow(u-c,2)+t.pow(l-P,2)+t.pow(h-v,2)),E=t.sqrt(t.pow(u-d,2)+t.pow(l-x,2)+t.pow(h-o,2)),_;return g>b?g>E?_=g-b-E:_=E-b-g:E>b?_=E-b-g:_=b-g-E,_>-1e-4&&_<1e-4}var i=function(){return function(c,P,v,d){var x=getDefaultCurveSegments(),o,u,l,h,g,b=0,E,_=[],k=[],R=bezierLengthPool.newElement();for(l=v.length,o=0;ou?-1:1,g=!0;g;)if(d[o]<=u&&d[o+1]>u?(l=(u-d[o])/(d[o+1]-d[o]),g=!1):o+=h,o<0||o>=x-1){if(o===x-1)return v[o];g=!1}return v[o]+(v[o+1]-v[o])*l}function m(c,P,v,d,x,o){var u=f(x,o),l=1-u,h=t.round((l*l*l*c[0]+(u*l*l+l*u*l+l*l*u)*v[0]+(u*u*l+l*u*u+u*l*u)*d[0]+u*u*u*P[0])*1e3)/1e3,g=t.round((l*l*l*c[1]+(u*l*l+l*u*l+l*l*u)*v[1]+(u*u*l+l*u*u+u*l*u)*d[1]+u*u*u*P[1])*1e3)/1e3;return[h,g]}var y=createTypedArray("float32",8);function C(c,P,v,d,x,o,u){x<0?x=0:x>1&&(x=1);var l=f(x,u);o=o>1?1:o;var h=f(o,u),g,b=c.length,E=1-l,_=1-h,k=E*E*E,R=l*E*E*3,L=l*l*E*3,I=l*l*l,B=E*E*_,D=l*E*_+E*l*_+E*E*h,w=l*l*_+E*l*h+l*E*h,M=l*l*h,A=E*_*_,S=l*_*_+E*h*_+E*_*h,T=l*h*_+E*h*h+l*_*h,V=l*h*h,F=_*_*_,G=h*_*_+_*h*_+_*_*h,N=h*h*_+_*h*h+h*_*h,O=h*h*h;for(g=0;g=k.t-u){_.h&&(_=k),h=0;break}if(k.t-u>x){h=g;break}g=A||x=A?V.points.length-1:0;for(I=V.points[F].point.length,L=0;L=O&&G=A)l[0]=T[0],l[1]=T[1],l[2]=T[2];else if(x<=S)l[0]=_.s[0],l[1]=_.s[1],l[2]=_.s[2];else{var $=a(_.s),W=a(T),X=(x-S)/(A-S);s(l,i($,W,X))}else for(g=0;g=A?B=1:x1e-6?(I=Math.acos(B),D=Math.sin(I),w=Math.sin((1-u)*I)/D,M=Math.sin(u*I)/D):(w=1-u,M=u),l[0]=w*h+M*_,l[1]=w*g+M*k,l[2]=w*b+M*R,l[3]=w*E+M*L,l}function s(x,o){var u=o[0],l=o[1],h=o[2],g=o[3],b=Math.atan2(2*l*g-2*u*h,1-2*l*l-2*h*h),E=Math.asin(2*u*l+2*h*g),_=Math.atan2(2*u*g-2*l*h,1-2*u*u-2*h*h);x[0]=b/degToRads,x[1]=E/degToRads,x[2]=_/degToRads}function a(x){var o=x[0]*degToRads,u=x[1]*degToRads,l=x[2]*degToRads,h=Math.cos(o/2),g=Math.cos(u/2),b=Math.cos(l/2),E=Math.sin(o/2),_=Math.sin(u/2),k=Math.sin(l/2),R=h*g*b-E*_*k,L=E*_*b+h*g*k,I=E*g*b+h*_*k,B=h*_*b-E*g*k;return[L,I,B,R]}function n(){var x=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,u=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(x===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=u&&x>=u||this._caching.lastFrame=x&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(x,this._caching);this.pv=l}return this._caching.lastFrame=x,this.pv}function p(x){var o;if(this.propType==="unidimensional")o=x*this.mult,e(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var u=0,l=this.v.length;u1e-5&&(this.v[u]=o,this._mdf=!0),u+=1}function f(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var x,o=this.effectsSequence.length,u=this.kf?this.pv:this.data.k;for(x=0;x=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,n,p){this.setXYAt(t,e,"v",n,p),this.setXYAt(r,i,"o",n,p),this.setXYAt(s,a,"i",n,p)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,n=this._length,p;for(p=s;p=D[D.length-1].t-this.offsetTime)g=D[D.length-1].s?D[D.length-1].s[0]:D[D.length-2].e[0],E=!0;else{for(var w=h,M=D.length-1,A=!0,S,T,V;A&&(S=D[w],T=D[w+1],!(T.t-this.offsetTime>o));)w=T.t-this.offsetTime)I=1;else if(ol&&o>l)||(this._caching.lastIndex=h0||A>-1e-6&&A<0?i(A*S)/S:A}function M(){var A=this.props,S=w(A[0]),T=w(A[1]),V=w(A[4]),F=w(A[5]),G=w(A[12]),N=w(A[13]);return"matrix("+S+","+T+","+V+","+F+","+G+","+N+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=p,this.rotateZ=f,this.skew=y,this.skewFromAxis=C,this.shear=m,this.scale=c,this.setTransform=P,this.translate=v,this.transform=d,this.applyToPoint=h,this.applyToX=g,this.applyToY=b,this.applyToZ=E,this.applyToPointArray=I,this.applyToTriplePoints=L,this.applyToPointStringified=B,this.toCSS=D,this.to2dCSS=M,this.clone=u,this.cloneFromProps=l,this.equals=o,this.inversePoints=R,this.inversePoint=k,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=x,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n=[],p,f=a.length,m;for(p=0;pi+r)){var y,C;m.s*s<=i?y=0:y=(m.s*s-i)/r,m.e*s>=i+r?C=1:C=(m.e*s-i)/r,n.push([y,C])}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e1?e=1+i:this.s.v<0?e=0+i:e=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,e>r){var s=e;e=r,r=s}e=Math.round(e*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,n,p=this.shapes.length,f,m,y,C,c,P=0;if(r===e)for(n=0;n=0;n-=1)if(d=this.shapes[n],d.shape._mdf){for(x=d.localShapeCollection,x.releaseShapes(),this.m===2&&p>1?(h=this.calculateShapeEdges(e,r,d.totalShapeLength,l,P),l+=d.totalShapeLength):h=[[o,u]],m=h.length,f=0;f=1?v.push({s:d.totalShapeLength*(o-1),e:d.totalShapeLength*(u-1)}):(v.push({s:d.totalShapeLength*o,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(u-1)}));var g=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var b=d.shape.paths.shapes[d.shape.paths._length-1];if(b.c){var E=g.pop();this.addPaths(g,x),g=this.addShapes(d,v[1],E)}else this.addPaths(g,x),g=this.addShapes(d,v[1])}this.addPaths(g,x)}}d.shape.paths=x}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;re.e){r.c=!1;break}else e.s<=m&&e.e>=m+y.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],r,C,x),x=!1):(P=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-m)/y.addedLength,(e.e-m)/y.addedLength,c[p-1]),this.addSegmentFromArray(P,r,C,x),x=!1,r.c=!1),m+=y.addedLength,C+=1;if(s[a].c&&c.length){if(y=c[p-1],m<=e.e){var o=c[p-1].addedLength;e.s<=m&&e.e>=m+o?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],r,C,x),x=!1):(P=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-m)/o,(e.e-m)/o,c[p-1]),this.addSegmentFromArray(P,r,C,x),x=!1,r.c=!1)}else r.c=!1;m+=y.addedLength,C+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(y=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/m,0),C=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/m,0)):(y=this.p.pv,C=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/m,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){y=[],C=[];var c=this.px,P=this.py;c._caching.lastFrame+c.offsetTime<=c.keyframes[0].t?(y[0]=c.getValueAtTime((c.keyframes[0].t+.01)/m,0),y[1]=P.getValueAtTime((P.keyframes[0].t+.01)/m,0),C[0]=c.getValueAtTime(c.keyframes[0].t/m,0),C[1]=P.getValueAtTime(P.keyframes[0].t/m,0)):c._caching.lastFrame+c.offsetTime>=c.keyframes[c.keyframes.length-1].t?(y[0]=c.getValueAtTime(c.keyframes[c.keyframes.length-1].t/m,0),y[1]=P.getValueAtTime(P.keyframes[P.keyframes.length-1].t/m,0),C[0]=c.getValueAtTime((c.keyframes[c.keyframes.length-1].t-.01)/m,0),C[1]=P.getValueAtTime((P.keyframes[P.keyframes.length-1].t-.01)/m,0)):(y=[c.pv,P.pv],C[0]=c.getValueAtTime((c._caching.lastFrame+c.offsetTime-.01)/m,c.offsetTime),C[1]=P.getValueAtTime((P._caching.lastFrame+P.offsetTime-.01)/m,P.offsetTime))}else C=t,y=C;this.v.rotate(-Math.atan2(y[1]-C[1],y[0]-C[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function n(f,m,y){if(this.elem=f,this.frameId=-1,this.propType="transform",this.data=m,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(y||f),m.p&&m.p.s?(this.px=PropertyFactory.getProp(f,m.p.x,0,0,this),this.py=PropertyFactory.getProp(f,m.p.y,0,0,this),m.p.z&&(this.pz=PropertyFactory.getProp(f,m.p.z,0,0,this))):this.p=PropertyFactory.getProp(f,m.p||{k:[0,0,0]},1,0,this),m.rx){if(this.rx=PropertyFactory.getProp(f,m.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(f,m.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(f,m.rz,0,degToRads,this),m.or.k[0].ti){var C,c=m.or.k.length;for(C=0;C0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),d=this.pMatrix.props,x=this.rMatrix.props,o=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(c>0){for(;uv;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;P&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-P,!0),u-=P)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var l,h;a;){if(e=this.elemsData[i].it,r=e[e.length-1].transform.mProps.v.props,h=r.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),u!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),l=0;l0&&i<1?[e]:[]:[e-i,e+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,r,t),a=lerpPoint(r,i,t),n=lerpPoint(s,a,t);return[new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,i,this.points[3],!0)]};function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var s=i;i=r,r=s}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var p=t.point(a[n])[e];pi&&(i=p)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i){s.push([t.t,e.t]);return}var n=splitData(t),p=splitData(e);intersectsImpl(n[0],p[0],r+1,i,s,a),intersectsImpl(n[0],p[1],r+1,i,s,a),intersectsImpl(n[1],p[0],r+1,i,s,a),intersectsImpl(n[1],p[1],r+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(t,e,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)};function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[r[0],r[1],1],p=[i[0],i[1],1],f=crossProduct(crossProduct(s,a),crossProduct(n,p));return floatZero(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,e,r,i,s,a,n){var p=r-Math.PI/2,f=r+Math.PI/2,m=e[0]+Math.cos(r)*i*s,y=e[1]-Math.sin(r)*i*s;t.setTripleAt(m,y,m+Math.cos(p)*a,y-Math.sin(p)*a,m+Math.cos(f)*n,y-Math.sin(f)*n,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),s=t.v[r],a=t.v[i],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,s,a,n){var p=getProjectingAngle(e,r),f=e.v[r%e._length],m=e.v[r===0?e._length-1:r-1],y=e.v[(r+1)%e._length],C=a===2?Math.sqrt(Math.pow(f[0]-m[0],2)+Math.pow(f[1]-m[1],2)):0,c=a===2?Math.sqrt(Math.pow(f[0]-y[0],2)+Math.pow(f[1]-y[1],2)):0;setPoint(t,e.v[r%e._length],p,n,i,c/((s+1)*2),C/((s+1)*2))}function zigZagSegment(t,e,r,i,s,a){for(var n=0;n1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r=t.inflectionPoints(),i,s,a,n;if(r.length===0)return[offsetSegment(t,e)];if(r.length===1||floatEqual(r[1],1))return a=t.split(r[0]),i=a[0],s=a[1],[offsetSegment(i,e),offsetSegment(s,e)];a=t.split(r[0]),i=a[0];var p=(r[1]-r[0])/(1-r[0]);return a=a[1].split(p),n=a[0],s=a[1],[offsetSegment(i,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var n,p,f,m=[];for(n=0;n=0;n-=1)f=PolynomialBezier.shapeSegmentInverted(t,n),m.push(offsetSegmentSplit(f,e));m=pruneIntersections(m);var y=null,C=null;for(n=0;n0&&(R=!1),R){var B=createTag("style");B.setAttribute("f-forigin",b[E].fOrigin),B.setAttribute("f-origin",b[E].origin),B.setAttribute("f-family",b[E].fFamily),B.type="text/css",B.innerText="@font-face {font-family: "+b[E].fFamily+"; font-style: normal; src: url('"+b[E].fPath+"');}",g.appendChild(B)}}else if(b[E].fOrigin==="g"||b[E].origin===1){for(L=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),I=0;Ie?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,r=this.renderableComponents.length;for(e=0;e.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,r=this.layers.length,i;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e],i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+c+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r1&&(i+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==i){var n="";r.elem&&(e.c&&(n=t.inv?this.solidPath+i:i),r.elem.setAttribute("d",n)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=r;function e(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r="SourceGraphic",i=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[e].processShapes(this._isFirstFrame),!i);e-=1);}},searchProcessedElement:function(e){for(var r=this.processedElements,i=0,s=r.length;i.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)o=c.transformers[R].mProps._mdf||o,k-=1,R-=1;if(o)for(k=g-c.styles[l].lvl,R=c.transformers.length-1;k>0;)_=c.transformers[R].mProps.v.props,E.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),k-=1,R-=1}else E=t;if(b=c.sh.paths,d=b._length,o){for(x="",v=0;v=1?B=.99:B<=-1&&(B=-.99);var D=L*B,w=Math.cos(I+c.a.v)*D+x[0],M=Math.sin(I+c.a.v)*D+x[1];v.setAttribute("fx",w),v.setAttribute("fy",M),d&&!c.g._collapsable&&(c.of.setAttribute("fx",w),c.of.setAttribute("fy",M))}}}function y(C,c,P){var v=c.style,d=c.d;d&&(d._mdf||P)&&d.dashStr&&(v.pElem.setAttribute("stroke-dasharray",d.dashStr),v.pElem.setAttribute("stroke-dashoffset",d.dashoffset[0])),c.c&&(c.c._mdf||P)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||P)&&v.pElem.setAttribute("stroke-opacity",c.o.v),(c.w._mdf||P)&&(v.pElem.setAttribute("stroke-width",c.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",c.w.v))}return r}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,r,i,s=this.stylesList.length,a,n=[],p=!1;for(i=0;i1&&p&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e=0;f-=1){if(x=this.searchProcessedElement(t[f]),x?e[f]=r[x-1]:t[f]._render=n,t[f].ty==="fl"||t[f].ty==="st"||t[f].ty==="gf"||t[f].ty==="gs"||t[f].ty==="no")x?e[f].style.closed=!1:e[f]=this.createStyleElement(t[f],s),t[f]._render&&e[f].style.pElem.parentNode!==i&&i.appendChild(e[f].style.pElem),c.push(e[f].style);else if(t[f].ty==="gr"){if(!x)e[f]=this.createGroupElement(t[f]);else for(C=e[f].it.length,y=0;y1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;ie);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],r=0,i=t.length,s,a,n=!1;r=55296&&s<=56319?(a=t.charCodeAt(r+1),a>=56320&&a<=57343?(n||FontManager.isModifier(s,a)?(e[e.length-1]+=t.substr(r,2),n=!1):e.push(t.substr(r,2)),r+=1):e.push(t.charAt(r))):s>56319?(a=t.charCodeAt(r+1),FontManager.isZeroWidthJoiner(s,a)?(n=!0,e[e.length-1]+=t.substr(r,2),r+=1):e.push(t.charAt(r))):FontManager.isZeroWidthJoiner(s)?(e[e.length-1]+=t.charAt(r),n=!0):e.push(t.charAt(r)),r+=1;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,r=this.data,i=[],s,a,n,p=0,f,m=r.m.g,y=0,C=0,c=0,P=[],v=0,d=0,x,o,u=e.getFontByName(t.f),l,h=0,g=getFontProperties(u);t.fWeight=g.weight,t.fStyle=g.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var b=t.tr/1e3*t.finalSize,E;if(t.sz)for(var _=!0,k=t.sz[0],R=t.sz[1],L,I;_;){I=this.buildFinalText(t.t),L=0,v=0,a=I.length,b=t.tr/1e3*t.finalSize;var B=-1;for(s=0;sk&&I[s]!==" "?(B===-1?a+=1:s=B,L+=t.finalLineHeight||t.finalSize*1.2,I.splice(s,B===s?1:0,"\r"),B=-1,v=0):(v+=h,v+=b);L+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Rd?v:d,v=-2*b,f="",n=!0,c+=1):f=w,e.chars?(l=e.getCharData(w,u.fStyle,e.getFontByName(t.f).fFamily),h=n?0:l.w*t.finalSize/100):h=e.measureText(f,t.f,t.finalSize),w===" "?D+=h+b:(v+=h+b+D,D=0),i.push({l:h,an:h,add:y,n,anIndexes:[],val:f,line:c,animatorJustifyOffset:0}),m==2){if(y+=h,f===""||f===" "||s===a-1){for((f===""||f===" ")&&(y-=h);C<=s;)i[C].an=y,i[C].ind=p,i[C].extra=h,C+=1;p+=1,y=0}}else if(m==3){if(y+=h,f===""||s===a-1){for(f===""&&(y-=h);C<=s;)i[C].an=y,i[C].ind=p,i[C].extra=h,C+=1;y=0,p+=1}}else i[p].ind=p,i[p].extra=0,p+=1;if(t.l=i,d=v>d?v:d,P.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=P;var M=r.a,A,S;o=M.length;var T,V,F=[];for(x=0;x0?p=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?m=1-this.xe.v/100:y=1+this.xe.v/100;var C=BezierFactory.getBezierEasing(p,f,m,y).get,c=0,P=this.finalS,v=this.finalE,d=this.data.sh;if(d===2)v===P?c=n>=v?1:0:c=t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c=C(c);else if(d===3)v===P?c=n>=v?0:1:c=1-t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c=C(c);else if(d===4)v===P?c=0:(c=t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c<.5?c*=2:c=1-2*(c-.5)),c=C(c);else if(d===5){if(v===P)c=0;else{var x=v-P;n=e(t(0,n+.5-P),v-P);var o=-x/2+n,u=x/2;c=Math.sqrt(1-o*o/(u*u))}c=C(c)}else d===6?(v===P?c=0:(n=e(t(0,n+.5-P),v-P),c=(1+Math.cos(Math.PI+Math.PI*2*n/(v-P)))/2),c=C(c)):(n>=r(P)&&(n-P<0?c=t(0,e(e(v,1)-(P-n),1)):c=t(0,e(v-n,1))),c=C(c));if(this.sm.v!==100){var l=this.sm.v*.01;l===0&&(l=1e-8);var h=.5-l*.5;c1&&(c=1))}return c*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var p=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/p,m=this.s.v/p+f,y=this.e.v/p+f;if(m>y){var C=m;m=y,y=C}this.finalS=m,this.finalE=y}},extendPrototype([DynamicPropertyContainer],i);function s(a,n,p){return new i(a,n)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,r):i,rx:a.rx?s(t,a.rx,0,degToRads,r):i,ry:a.ry?s(t,a.ry,0,degToRads,r):i,sk:a.sk?s(t,a.sk,0,degToRads,r):i,sa:a.sa?s(t,a.sa,0,degToRads,r):i,s:a.s?s(t,a.s,1,.01,r):i,a:a.a?s(t,a.a,1,0,r):i,o:a.o?s(t,a.o,0,.01,r):i,p:a.p?s(t,a.p,1,0,r):i,sw:a.sw?s(t,a.sw,0,0,r):i,sc:a.sc?s(t,a.sc,1,0,r):i,fc:a.fc?s(t,a.fc,1,0,r):i,fh:a.fh?s(t,a.fh,0,0,r):i,fs:a.fs?s(t,a.fs,0,.01,r):i,fb:a.fb?s(t,a.fb,0,.01,r):i,t:a.t?s(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,r,i=PropertyFactory.getProp;for(t=0;t=v+Q||!g?(k=(v+Q-x)/d.partialLength,O=h.point[0]+(d.point[0]-h.point[0])*k,q=h.point[1]+(d.point[1]-h.point[1])*k,a.translate(-r[0]*c[y].an*.005,-(r[1]*D)*.01),o=!1):g&&(x+=d.partialLength,u+=1,u>=g.length&&(u=0,l+=1,b[l]?g=b[l].points:L.v.c?(u=0,l=0,g=b[l].points):(x-=d.partialLength,g=null)),g&&(h=d,d=g[u],E=d.partialLength));N=c[y].an/2-c[y].add,a.translate(-N,0,0)}else N=c[y].an/2-c[y].add,a.translate(-N,0,0),a.translate(-r[0]*c[y].an*.005,-r[1]*D*.01,0);for(S=0;St?this.textSpans[t].span:createNS(p?"g":"text"),l<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,p){var g=createNS("g");f.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(m.reset(),C&&(n[t].n&&(c=-d,P+=r.yOffset,P+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(r,m,n[t].line,c,P),c+=n[t].l||0,c+=d),p){h=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var b;if(h.t===1)b=new SVGCompElement(h.data,this.globalData,this);else{var E=emptyShapeData;h.data&&h.data.shapes&&(E=this.buildShapeData(h.data,r.finalSize)),b=new SVGShapeElement(E,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),h.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else C&&f.setAttribute("transform","translate("+m.props[12]+","+m.props[13]+")"),f.textContent=n[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}C&&f&&f.setAttribute("d",y)}for(;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0;i-=1)n=e.transforms[i].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}e._mdf=a},processSequences:function(e){var r,i=this.sequenceList.length;for(r=0;r=1){this.buffers=[];var e=this.globalData.canvasContext,r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!e)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,n=r.length,p;for(a=0;a=0;a-=1){if(C=this.searchProcessedElement(t[a]),C?e[a]=r[C-1]:t[a]._shouldRender=i,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")C?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],v),m.push(e[a].style);else if(t[a].ty==="gr"){if(!C)e[a]=this.createGroupElement(t[a]);else for(f=e[a].it.length,p=0;p=0;s-=1)e[s].ty==="tr"?(n=r[s].transform,this.renderShapeTransform(t,n)):e[s].ty==="sh"||e[s].ty==="el"||e[s].ty==="rc"||e[s].ty==="sr"?this.renderPath(e[s],r[s]):e[s].ty==="fl"?this.renderFill(e[s],r[s],n):e[s].ty==="st"?this.renderStroke(e[s],r[s],n):e[s].ty==="gf"||e[s].ty==="gs"?this.renderGradientFill(e[s],r[s],n):e[s].ty==="gr"?this.renderShape(n,e[s].it,r[s].it):e[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r=t.trNodes,i=e.paths,s,a,n,p=i._length;r.length=0;var f=t.transforms.finalTransform;for(n=0;n=1?y=.99:y<=-1&&(y=-.99);var C=f*y,c=Math.cos(m+e.a.v)*C+n[0],P=Math.sin(m+e.a.v)*C+n[1];s=a.createRadialGradient(c,P,0,n[0],n[1],f)}var v,d=t.g.p,x=e.g.c,o=1;for(v=0;va&&f==="xMidYMid slice"||ss&&p==="meet"||as&&p==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:m==="xMax"&&(as&&p==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,y==="YMid"&&(a>s&&p==="meet"||as&&p==="meet"||a=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,r=this.layers.length;for(e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();e.transform=r,e.webkitTransform=r}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r0&&f<1&&s[c].push(this.calculateF(f,t,e,r,i,c))):(m=n*n-4*p*a,m>=0&&(y=(-n+bmSqrt(m))/(2*a),y>0&&y<1&&s[c].push(this.calculateF(y,t,e,r,i,c)),C=(-n-bmSqrt(m))/(2*a),C>0&&C<1&&s[c].push(this.calculateF(C,t,e,r,i,c)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*r[a]+3*(1-t)*bmPow(t,2)*i[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;rr&&(r=s)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],p=Math.sqrt(n[2]*n[2]+n[0]*n[0]),f=Math.atan2(n[1],p),m=Math.atan2(n[0],-n[2]);this.mat.rotateY(m).rotateX(-f)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var y=!this._prevMat.equals(this.mat);if((y||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var C,c,P;for(e=0;e=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r=createTag("div"),i,s;styleDiv(r);var a=createTag("div");if(styleDiv(a),e==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var n="50% 50%";i.webkitTransformOrigin=n,i.mozTransformOrigin=n,i.transformOrigin=n,s=a.style;var p="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=p,s.webkitTransform=p}r.appendChild(a);var f={container:a,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(f),f},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,r,i="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;rr?(s=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,n=0,p=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(s=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,n=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,p=0);var f=this.resizerElem.style;f.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+p+",0,1)",f.transform=f.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t=this.globalData.compSize.w,e=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r=m;)L/=2,I/=2,B>>>=1;return(L+B)/I};return k.int32=function(){return _.g(4)|0},k.quick=function(){return _.g(4)/4294967296},k.double=k,x(u(_.S),t),(h.pass||g||function(R,L,I,B){return B&&(B.S&&v(B,_),R.state=function(){return v(_,{})}),I?(e[n]=R,L):R})(k,E,"global"in h?h.global:this==e,h.state)}e["seed"+n]=c;function P(l){var h,g=l.length,b=this,E=0,_=b.i=b.j=0,k=b.S=[];for(g||(l=[g++]);Er){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,i=Math.min(t.length,e.length),s=0;for(r=0;r.5?m/(2-s-a):m/(s+a),s){case e:n=(r-i)/m+(r1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e=t[0],r=t[1],i=t[2],s,a,n;if(r===0)s=i,n=i,a=i;else{var p=i<.5?i*(1+r):i+r-i*r,f=2*i-p;s=hue2rgb(f,p,e+1/3),a=hue2rgb(f,p,e),n=hue2rgb(f,p,e-1/3)}return[s,a,n,t[3]]}function linear(t,e,r,i,s){if((i===void 0||s===void 0)&&(i=e,s=r,e=0,r=1),r=r)return s;var n=r===e?0:(t-e)/(r-e);if(!i.length)return i+(s-i)*n;var p,f=i.length,m=createTypedArray("float32",f);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var p,f=s.length,m=createTypedArray("float32",f);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,s=data.k[e+1].t):(i=e+1,s=data.k[e].t);break}i===-1&&(i=e+1,s=data.k[e].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=s.length,r=0;rx.length-1)&&(P=x.length-1),l=x[x.length-1-P].t,u=o-l);var h,g,b;if(c==="pingpong"){var E=Math.floor((d-l)/u);if(E%2!==0)return this.getValueAtTime((u-(d-l)%u+l)/this.comp.globalData.frameRate,0)}else if(c==="offset"){var _=this.getValueAtTime(l/this.comp.globalData.frameRate,0),k=this.getValueAtTime(o/this.comp.globalData.frameRate,0),R=this.getValueAtTime(((d-l)%u+l)/this.comp.globalData.frameRate,0),L=Math.floor((d-l)/u);if(this.pv.length){for(b=new Array(_.length),g=b.length,h=0;h=o)return this.pv;var u,l;v?(P?u=Math.abs(this.elem.comp.globalData.frameRate*P):u=Math.max(0,this.elem.data.op-o),l=o+u):((!P||P>x.length-1)&&(P=x.length-1),l=x[P].t,u=l-o);var h,g,b;if(c==="pingpong"){var E=Math.floor((o-d)/u);if(E%2===0)return this.getValueAtTime(((o-d)%u+o)/this.comp.globalData.frameRate,0)}else if(c==="offset"){var _=this.getValueAtTime(o/this.comp.globalData.frameRate,0),k=this.getValueAtTime(l/this.comp.globalData.frameRate,0),R=this.getValueAtTime((u-(o-d)%u+o)/this.comp.globalData.frameRate,0),L=Math.floor((o-d)/u)+1;if(this.pv.length){for(b=new Array(_.length),g=b.length,h=0;h1?(x-d)/(P-1):1,u=0,l=0,h;this.pv.length?h=createTypedArray("float32",this.pv.length):h=0;for(var g;uu){var E=l,_=d.c&&l===h-1?0:l+1,k=(u-g)/o[l].addedLength;b=bez.getPointInSegment(d.v[E],d.v[_],d.o[E],d.i[_],k,o[l]);break}else g+=o[l].addedLength;l+=1}return b||(b=d.c?[d.v[0][0],d.v[0][1]]:[d.v[d._length-1][0],d.v[d._length-1][1]]),b},vectorOnPath:function(P,v,d){P==1?P=this.v.c:P==0&&(P=.999);var x=this.pointOnPath(P,v),o=this.pointOnPath(P+.001,v),u=o[0]-x[0],l=o[1]-x[1],h=Math.sqrt(Math.pow(u,2)+Math.pow(l,2));if(h===0)return[0,0];var g=d==="tangent"?[u/h,l/h]:[-l/h,u/h];return g},tangentOnPath:function(P,v){return this.vectorOnPath(P,v,"tangent")},normalOnPath:function(P,v){return this.vectorOnPath(P,v,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([y],f),extendPrototype([y],m),m.prototype.getValueAtTime=p,m.prototype.initiateExpression=ExpressionManager.initiateExpression;var C=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(c,P,v,d,x){var o=C(c,P,v,d,x);return o.propertyIndex=P.ix,o.lock=!1,v===3?expressionHelpers.searchExpressions(c,P.pt,o):v===4&&expressionHelpers.searchExpressions(c,P.ks,o),o.k&&c.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,r){var i=this.calculateExpression(r);if(e.t!==i){var s={};return this.copyData(s,e),s.t=i.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),r=this.searchExpressions();return this.kf=e||r,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,r){var i=createNS("feMerge");i.setAttribute("result",e);var s,a;for(a=0;a=m?C=v<0?i:s:C=i+P*Math.pow((p-t)/v,1/r),y[c]=C,c+=1,a+=256/(n-1);return y.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}};function SVGDropShadowEffect(t,e,r,i,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",i+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var f=createNS("feOffset");f.setAttribute("dx","25"),f.setAttribute("dy","0"),f.setAttribute("in",i+"_drop_shadow_1"),f.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=f,t.appendChild(f);var m=createNS("feFlood");m.setAttribute("flood-color","#00ff00"),m.setAttribute("flood-opacity","1"),m.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=m,t.appendChild(m);var y=createNS("feComposite");y.setAttribute("in",i+"_drop_shadow_3"),y.setAttribute("in2",i+"_drop_shadow_2"),y.setAttribute("operator","in"),y.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(y);var C=this.createMergeNode(i,[i+"_drop_shadow_4",s]);t.appendChild(C)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e{!r.value||Lottie.loadAnimation({container:r.value,renderer:"svg",loop:!0,autoplay:!0,path:"/circularLoading.json"})});const i=computed(()=>{const{direction:a="row",justify:n="space-between"}=e;return{flexDirection:a,justifyContent:n}}),s=computed(()=>{const{size:a="40"}=e;return{width:`${a}px`,height:`${a}px`}});return(a,n)=>(openBlock(),createElementBlock("div",{class:"container",style:normalizeStyle(i.value)},[createBaseVNode("div",{ref_key:"loading",ref:r,style:normalizeStyle(s.value)},null,4),renderSlot(a.$slots,"default",{},void 0,!0)],4))}}),CircularLoading_vue_vue_type_style_index_0_scoped_39c4420a_lang="",LoadingIndicator=_export_sfc(_sfc_main,[["__scopeId","data-v-39c4420a"]]);export{LoadingIndicator as L}; -//# sourceMappingURL=CircularLoading.b40e14c8.js.map +//# sourceMappingURL=CircularLoading.b920c29a.js.map diff --git a/abstra_statics/dist/assets/CloseCircleOutlined.6201ef3d.js b/abstra_statics/dist/assets/CloseCircleOutlined.6201ef3d.js deleted file mode 100644 index 76733c22f..000000000 --- a/abstra_statics/dist/assets/CloseCircleOutlined.6201ef3d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as o,eh as u,en as c}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b8babae6-3a29-4dcb-96f1-3878eea7662b",e._sentryDebugIdIdentifier="sentry-dbid-b8babae6-3a29-4dcb-96f1-3878eea7662b")}catch{}})();function l(e){for(var t=1;t({prefixCls:String,activeKey:O([Array,Number,String]),defaultActiveKey:O([Array,Number,String]),accordion:v(),destroyInactivePanel:v(),bordered:v(),expandIcon:S(),openAnimation:k.object,expandIconPosition:j(),collapsible:j(),ghost:v(),onChange:S(),"onUpdate:activeKey":S()}),L=()=>({openAnimation:k.object,prefixCls:String,header:k.any,headerClass:String,showArrow:v(),isActive:v(),destroyInactivePanel:v(),disabled:v(),accordion:v(),forceRender:v(),expandIcon:S(),extra:k.any,panelKey:O(),collapsible:j(),role:String,onItemClick:S()}),ye=n=>{const{componentCls:e,collapseContentBg:o,padding:p,collapseContentPaddingHorizontal:i,collapseHeaderBg:d,collapseHeaderPadding:l,collapsePanelBorderRadius:u,lineWidth:b,lineType:$,colorBorder:h,colorText:x,colorTextHeading:g,colorTextDisabled:m,fontSize:C,lineHeight:y,marginSM:A,paddingSM:a,motionDurationSlow:t,fontSizeIcon:s}=n,r=`${b}px ${$} ${h}`;return{[e]:w(w({},ne(n)),{backgroundColor:d,border:r,borderBottom:0,borderRadius:`${u}px`,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:r,["&:last-child"]:{[` +import{b6 as O,aM as v,aN as S,au as k,aL as j,ac as Z,ad as q,dU as J,S as w,bh as ee,ao as ne,d as z,ap as X,e as oe,dV as ae,g as te,ah as G,f as le,ai as E,b as f,ak as R,dW as se,aC as re,dK as ie,dX as de,aE as W,bu as ce,az as pe,Q as ue,aK as fe,c7 as be,aZ as ve,aY as ge,a_ as $e}from"./vue-router.3fd92176.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="7c52ecdd-d72c-4f94-8cbf-5c16ebfc0fff",n._sentryDebugIdIdentifier="sentry-dbid-7c52ecdd-d72c-4f94-8cbf-5c16ebfc0fff")}catch{}})();const me=()=>({prefixCls:String,activeKey:O([Array,Number,String]),defaultActiveKey:O([Array,Number,String]),accordion:v(),destroyInactivePanel:v(),bordered:v(),expandIcon:S(),openAnimation:k.object,expandIconPosition:j(),collapsible:j(),ghost:v(),onChange:S(),"onUpdate:activeKey":S()}),L=()=>({openAnimation:k.object,prefixCls:String,header:k.any,headerClass:String,showArrow:v(),isActive:v(),destroyInactivePanel:v(),disabled:v(),accordion:v(),forceRender:v(),expandIcon:S(),extra:k.any,panelKey:O(),collapsible:j(),role:String,onItemClick:S()}),ye=n=>{const{componentCls:e,collapseContentBg:a,padding:p,collapseContentPaddingHorizontal:i,collapseHeaderBg:d,collapseHeaderPadding:l,collapsePanelBorderRadius:u,lineWidth:b,lineType:$,colorBorder:h,colorText:x,colorTextHeading:g,colorTextDisabled:m,fontSize:C,lineHeight:y,marginSM:A,paddingSM:o,motionDurationSlow:t,fontSizeIcon:s}=n,r=`${b}px ${$} ${h}`;return{[e]:w(w({},ne(n)),{backgroundColor:d,border:r,borderBottom:0,borderRadius:`${u}px`,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:r,["&:last-child"]:{[` &, - & > ${e}-header`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:g,lineHeight:y,cursor:"pointer",transition:`all ${t}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:C*y,display:"flex",alignItems:"center",paddingInlineEnd:A},[`${e}-arrow`]:w(w({},ee()),{fontSize:s,svg:{transition:`transform ${t}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"},[`${e}-expand-icon`]:{cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}},[`&${e}-no-arrow`]:{[`> ${e}-header`]:{paddingInlineStart:a}}},[`${e}-content`]:{color:x,backgroundColor:o,borderTop:r,[`& > ${e}-content-box`]:{padding:`${p}px ${i}px`},["&-hidden"]:{display:"none"}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`& ${e}-item-disabled > ${e}-header`]:{[` + & > ${e}-header`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:g,lineHeight:y,cursor:"pointer",transition:`all ${t}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:C*y,display:"flex",alignItems:"center",paddingInlineEnd:A},[`${e}-arrow`]:w(w({},ee()),{fontSize:s,svg:{transition:`transform ${t}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"},[`${e}-expand-icon`]:{cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}},[`&${e}-no-arrow`]:{[`> ${e}-header`]:{paddingInlineStart:o}}},[`${e}-content`]:{color:x,backgroundColor:a,borderTop:r,[`& > ${e}-content-box`]:{padding:`${p}px ${i}px`},["&-hidden"]:{display:"none"}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`& ${e}-item-disabled > ${e}-header`]:{[` &, & > .arrow - `]:{color:m,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:A}}}}})}},he=n=>{const{componentCls:e}=n,o=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},xe=n=>{const{componentCls:e,collapseHeaderBg:o,paddingXXS:p,colorBorder:i}=n;return{[`${e}-borderless`]:{backgroundColor:o,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${i}`},[` + `]:{color:m,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:A}}}}})}},he=n=>{const{componentCls:e}=n,a=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[a]:{transform:"rotate(180deg)"}}}},xe=n=>{const{componentCls:e,collapseHeaderBg:a,paddingXXS:p,colorBorder:i}=n;return{[`${e}-borderless`]:{backgroundColor:a,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${i}`},[` > ${e}-item:last-child, > ${e}-item:last-child ${e}-header - `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:p}}}},Ce=n=>{const{componentCls:e,paddingSM:o}=n;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:o}}}}}},Ae=Z("Collapse",n=>{const e=q(n,{collapseContentBg:n.colorBgContainer,collapseHeaderBg:n.colorFillAlter,collapseHeaderPadding:`${n.paddingSM}px ${n.padding}px`,collapsePanelBorderRadius:n.borderRadiusLG,collapseContentPaddingHorizontal:16});return[ye(e),xe(e),Ce(e),he(e),J(e)]});function U(n){let e=n;if(!Array.isArray(e)){const o=typeof e;e=o==="number"||o==="string"?[e]:[]}return e.map(o=>String(o))}const Se=z({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:X(me(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(n,e){let{attrs:o,slots:p,emit:i}=e;const d=ae(U(oe([n.activeKey,n.defaultActiveKey])));te(()=>n.activeKey,()=>{d.value=U(n.activeKey)},{deep:!0});const{prefixCls:l,direction:u,rootPrefixCls:b}=G("collapse",n),[$,h]=Ae(l),x=le(()=>{const{expandIconPosition:a}=n;return a!==void 0?a:u.value==="rtl"?"end":"start"}),g=a=>{const{expandIcon:t=p.expandIcon}=n,s=t?t(a):f(ce,{rotate:a.isActive?90:void 0},null);return f("div",{class:[`${l.value}-expand-icon`,h.value],onClick:()=>["header","icon"].includes(n.collapsible)&&C(a.panelKey)},[pe(Array.isArray(t)?s[0]:s)?W(s,{class:`${l.value}-arrow`},!1):s])},m=a=>{n.activeKey===void 0&&(d.value=a);const t=n.accordion?a[0]:a;i("update:activeKey",t),i("change",t)},C=a=>{let t=d.value;if(n.accordion)t=t[0]===a?[]:[a];else{t=[...t];const s=t.indexOf(a);s>-1?t.splice(s,1):t.push(a)}m(t)},y=(a,t)=>{var s,r,I;if(ie(a))return;const c=d.value,{accordion:P,destroyInactivePanel:T,collapsible:K,openAnimation:_}=n,D=_||de(`${b.value}-motion-collapse`),B=String((s=a.key)!==null&&s!==void 0?s:t),{header:F=(I=(r=a.children)===null||r===void 0?void 0:r.header)===null||I===void 0?void 0:I.call(r),headerClass:Q,collapsible:H,disabled:V}=a.props||{};let M=!1;P?M=c[0]===B:M=c.indexOf(B)>-1;let N=H!=null?H:K;(V||V==="")&&(N="disabled");const Y={key:B,panelKey:B,header:F,headerClass:Q,isActive:M,prefixCls:l.value,destroyInactivePanel:T,openAnimation:D,accordion:P,onItemClick:N==="disabled"?null:C,expandIcon:g,collapsible:N};return W(a,Y)},A=()=>{var a;return re((a=p.default)===null||a===void 0?void 0:a.call(p)).map(y)};return()=>{const{accordion:a,bordered:t,ghost:s}=n,r=E(l.value,{[`${l.value}-borderless`]:!t,[`${l.value}-icon-position-${x.value}`]:!0,[`${l.value}-rtl`]:u.value==="rtl",[`${l.value}-ghost`]:!!s,[o.class]:!!o.class},h.value);return $(f("div",R(R({class:r},se(o)),{},{style:o.style,role:a?"tablist":null}),[A()]))}}}),Ie=z({compatConfig:{MODE:3},name:"PanelContent",props:L(),setup(n,e){let{slots:o}=e;const p=ue(!1);return fe(()=>{(n.isActive||n.forceRender)&&(p.value=!0)}),()=>{var i;if(!p.value)return null;const{prefixCls:d,isActive:l,role:u}=n;return f("div",{class:E(`${d}-content`,{[`${d}-content-active`]:l,[`${d}-content-inactive`]:!l}),role:u},[f("div",{class:`${d}-content-box`},[(i=o.default)===null||i===void 0?void 0:i.call(o)])])}}}),Pe=z({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:X(L(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(n,e){let{slots:o,emit:p,attrs:i}=e;be(n.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:d}=G("collapse",n),l=()=>{p("itemClick",n.panelKey)},u=b=>{(b.key==="Enter"||b.keyCode===13||b.which===13)&&l()};return()=>{var b,$;const{header:h=(b=o.header)===null||b===void 0?void 0:b.call(o),headerClass:x,isActive:g,showArrow:m,destroyInactivePanel:C,accordion:y,forceRender:A,openAnimation:a,expandIcon:t=o.expandIcon,extra:s=($=o.extra)===null||$===void 0?void 0:$.call(o),collapsible:r}=n,I=r==="disabled",c=d.value,P=E(`${c}-header`,{[x]:x,[`${c}-header-collapsible-only`]:r==="header",[`${c}-icon-collapsible-only`]:r==="icon"}),T=E({[`${c}-item`]:!0,[`${c}-item-active`]:g,[`${c}-item-disabled`]:I,[`${c}-no-arrow`]:!m,[`${i.class}`]:!!i.class});let K=f("i",{class:"arrow"},null);m&&typeof t=="function"&&(K=t(n));const _=ve(f(Ie,{prefixCls:c,isActive:g,forceRender:A,role:y?"tabpanel":null},{default:o.default}),[[$e,g]]),D=w({appear:!1,css:!1},a);return f("div",R(R({},i),{},{class:T}),[f("div",{class:P,onClick:()=>!["header","icon"].includes(r)&&l(),role:y?"tab":"button",tabindex:I?-1:0,"aria-expanded":g,onKeypress:u},[m&&K,f("span",{onClick:()=>r==="header"&&l(),class:`${c}-header-text`},[h]),s&&f("div",{class:`${c}-extra`},[s])]),f(ge,D,{default:()=>[!C||g?_:null]})])}}});export{Pe as A,Se as C}; -//# sourceMappingURL=CollapsePanel.d6e0f903.js.map + `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:p}}}},Ce=n=>{const{componentCls:e,paddingSM:a}=n;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:a}}}}}},Ae=Z("Collapse",n=>{const e=q(n,{collapseContentBg:n.colorBgContainer,collapseHeaderBg:n.colorFillAlter,collapseHeaderPadding:`${n.paddingSM}px ${n.padding}px`,collapsePanelBorderRadius:n.borderRadiusLG,collapseContentPaddingHorizontal:16});return[ye(e),xe(e),Ce(e),he(e),J(e)]});function U(n){let e=n;if(!Array.isArray(e)){const a=typeof e;e=a==="number"||a==="string"?[e]:[]}return e.map(a=>String(a))}const Se=z({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:X(me(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(n,e){let{attrs:a,slots:p,emit:i}=e;const d=oe(U(ae([n.activeKey,n.defaultActiveKey])));te(()=>n.activeKey,()=>{d.value=U(n.activeKey)},{deep:!0});const{prefixCls:l,direction:u,rootPrefixCls:b}=G("collapse",n),[$,h]=Ae(l),x=le(()=>{const{expandIconPosition:o}=n;return o!==void 0?o:u.value==="rtl"?"end":"start"}),g=o=>{const{expandIcon:t=p.expandIcon}=n,s=t?t(o):f(ce,{rotate:o.isActive?90:void 0},null);return f("div",{class:[`${l.value}-expand-icon`,h.value],onClick:()=>["header","icon"].includes(n.collapsible)&&C(o.panelKey)},[pe(Array.isArray(t)?s[0]:s)?W(s,{class:`${l.value}-arrow`},!1):s])},m=o=>{n.activeKey===void 0&&(d.value=o);const t=n.accordion?o[0]:o;i("update:activeKey",t),i("change",t)},C=o=>{let t=d.value;if(n.accordion)t=t[0]===o?[]:[o];else{t=[...t];const s=t.indexOf(o);s>-1?t.splice(s,1):t.push(o)}m(t)},y=(o,t)=>{var s,r,I;if(ie(o))return;const c=d.value,{accordion:P,destroyInactivePanel:T,collapsible:K,openAnimation:_}=n,D=_||de(`${b.value}-motion-collapse`),B=String((s=o.key)!==null&&s!==void 0?s:t),{header:F=(I=(r=o.children)===null||r===void 0?void 0:r.header)===null||I===void 0?void 0:I.call(r),headerClass:Q,collapsible:H,disabled:V}=o.props||{};let M=!1;P?M=c[0]===B:M=c.indexOf(B)>-1;let N=H!=null?H:K;(V||V==="")&&(N="disabled");const Y={key:B,panelKey:B,header:F,headerClass:Q,isActive:M,prefixCls:l.value,destroyInactivePanel:T,openAnimation:D,accordion:P,onItemClick:N==="disabled"?null:C,expandIcon:g,collapsible:N};return W(o,Y)},A=()=>{var o;return re((o=p.default)===null||o===void 0?void 0:o.call(p)).map(y)};return()=>{const{accordion:o,bordered:t,ghost:s}=n,r=E(l.value,{[`${l.value}-borderless`]:!t,[`${l.value}-icon-position-${x.value}`]:!0,[`${l.value}-rtl`]:u.value==="rtl",[`${l.value}-ghost`]:!!s,[a.class]:!!a.class},h.value);return $(f("div",R(R({class:r},se(a)),{},{style:a.style,role:o?"tablist":null}),[A()]))}}}),Ie=z({compatConfig:{MODE:3},name:"PanelContent",props:L(),setup(n,e){let{slots:a}=e;const p=ue(!1);return fe(()=>{(n.isActive||n.forceRender)&&(p.value=!0)}),()=>{var i;if(!p.value)return null;const{prefixCls:d,isActive:l,role:u}=n;return f("div",{class:E(`${d}-content`,{[`${d}-content-active`]:l,[`${d}-content-inactive`]:!l}),role:u},[f("div",{class:`${d}-content-box`},[(i=a.default)===null||i===void 0?void 0:i.call(a)])])}}}),Pe=z({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:X(L(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(n,e){let{slots:a,emit:p,attrs:i}=e;be(n.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:d}=G("collapse",n),l=()=>{p("itemClick",n.panelKey)},u=b=>{(b.key==="Enter"||b.keyCode===13||b.which===13)&&l()};return()=>{var b,$;const{header:h=(b=a.header)===null||b===void 0?void 0:b.call(a),headerClass:x,isActive:g,showArrow:m,destroyInactivePanel:C,accordion:y,forceRender:A,openAnimation:o,expandIcon:t=a.expandIcon,extra:s=($=a.extra)===null||$===void 0?void 0:$.call(a),collapsible:r}=n,I=r==="disabled",c=d.value,P=E(`${c}-header`,{[x]:x,[`${c}-header-collapsible-only`]:r==="header",[`${c}-icon-collapsible-only`]:r==="icon"}),T=E({[`${c}-item`]:!0,[`${c}-item-active`]:g,[`${c}-item-disabled`]:I,[`${c}-no-arrow`]:!m,[`${i.class}`]:!!i.class});let K=f("i",{class:"arrow"},null);m&&typeof t=="function"&&(K=t(n));const _=ve(f(Ie,{prefixCls:c,isActive:g,forceRender:A,role:y?"tabpanel":null},{default:a.default}),[[$e,g]]),D=w({appear:!1,css:!1},o);return f("div",R(R({},i),{},{class:T}),[f("div",{class:P,onClick:()=>!["header","icon"].includes(r)&&l(),role:y?"tab":"button",tabindex:I?-1:0,"aria-expanded":g,onKeypress:u},[m&&K,f("span",{onClick:()=>r==="header"&&l(),class:`${c}-header-text`},[h]),s&&f("div",{class:`${c}-extra`},[s])]),f(ge,D,{default:()=>[!C||g?_:null]})])}}});export{Pe as A,Se as C}; +//# sourceMappingURL=CollapsePanel.87687b29.js.map diff --git a/abstra_statics/dist/assets/ConnectorsView.4437ad06.js b/abstra_statics/dist/assets/ConnectorsView.b63d2fed.js similarity index 76% rename from abstra_statics/dist/assets/ConnectorsView.4437ad06.js rename to abstra_statics/dist/assets/ConnectorsView.b63d2fed.js index c73a50d02..4ef423f80 100644 --- a/abstra_statics/dist/assets/ConnectorsView.4437ad06.js +++ b/abstra_statics/dist/assets/ConnectorsView.b63d2fed.js @@ -1,2 +1,2 @@ -var V=Object.defineProperty;var E=(c,e,o)=>e in c?V(c,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[e]=o;var f=(c,e,o)=>(E(c,typeof e!="symbol"?e+"":e,o),o);import{_ as L}from"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import{_ as B}from"./AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js";import{G as M}from"./PhDotsThreeVertical.vue.75f90272.js";import{e as R,f as q,cK as b,d as T,o as d,c as g,w as a,b as i,u as t,df as u,d3 as z,aF as l,R as _,da as C,ec as w,ea as O,$ as N,ed as F,X as m,aR as y,db as I,d9 as A,ee as k,bQ as P,by as G,bw as S,a as x,bK as K,cV as Q,el as X,em as Y}from"./vue-router.4c13f3d4.js";import{C as v}from"./gateway.e77556e5.js";import{A as D}from"./Avatar.6f67d038.js";import{C as U}from"./Card.b3c66431.js";import{A as H}from"./index.ec6b7808.js";import"./BookOutlined.a8460802.js";import"./popupNotifcation.d2ca3d78.js";import"./TabPane.9889f7a8.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[e]="14d9ac47-684c-41e2-a415-417f82ab5a8b",c._sentryDebugIdIdentifier="sentry-dbid-14d9ac47-684c-41e2-a415-417f82ab5a8b")}catch{}})();class J{async getLoginUrl(e,o,n,p){return v.get(`projects/${e}/connectors/${n}/connections/${o}/login-url`,{scopeIds:p.join(",")})}async listConnectors(e){return v.get(`projects/${e}/connectors`)}async listConnections(e){return v.get(`projects/${e}/connections`)}async deleteConnection(e){const{projectId:o,connectionName:n,connectorType:p}=e;return v.delete(`projects/${o}/connectors/${p}/connections/${n}`)}async renameConnection(e){const{projectId:o,connectionName:n,connectorType:p,newConnectionName:r}=e;return v.patch(`projects/${o}/connectors/${p}/connections/${n}`,{newConnectionName:r})}}class W{constructor(e,o){f(this,"state");f(this,"hasChanges",q(()=>!!this.state.value.editingConnection&&this.state.value.editingConnection.name!==this.state.value.editingConnection.newName));f(this,"handleDeletionClick",async e=>{b.confirm({title:"Delete connection",content:"Are you sure you want to delete this connection?",onOk:()=>this.handleDeleteConnection(e)})});f(this,"handleDeleteConnection",async e=>{await this.api.deleteConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType}),this.state.value.editingConnection=null,await this.refetchConnections()});f(this,"handleAddConnectionSubmit",async()=>{var p,r;const e=(p=this.state.value.addingConnection)==null?void 0:p.connector.type,o=(r=this.state.value.addingConnection)==null?void 0:r.selectedScopeIds;if(!e||!o)throw new Error("No connector or scope selected");const{url:n}=await this.getLoginUrl(e,this.getUniqueName(e),o);window.location.href=n});f(this,"renameConnection",async()=>{const{editingConnection:e}=this.state.value;if(!e)throw new Error("No connection is being edited");const o=async()=>{await this.api.renameConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType,newConnectionName:e.newName}),await this.refetchConnections(),this.state.value.editingConnection=null};b.confirm({title:"Rename connection",content:"Are you sure you want to rename this connection? This will break any existing references to the old name.",onOk:o})});f(this,"showAddConfirmationModal",e=>{this.state.value.addingConnection={selectedScopeIds:e.scopes.map(o=>o.id),connector:e}});f(this,"handleScopeToggle",(e,o)=>{o?this.state.value.addingConnection.selectedScopeIds.push(e):this.state.value.addingConnection.selectedScopeIds=this.state.value.addingConnection.selectedScopeIds.filter(n=>n!==e)});this.projectId=e,this.api=o,this.state=R({connectors:[],connections:[],addingConnection:null,editingConnection:null})}async fetchConnectors(){this.state.value.connectors=await this.api.listConnectors(this.projectId)}async fetchInitialState(){await this.fetchConnectors(),await this.refetchConnections()}async refetchConnections(){this.state.value.connections=(await this.api.listConnections(this.projectId)).map(e=>{const o=this.state.value.connectors.find(n=>n.type===e.connectorType);if(!o)throw new Error(`Unknown connector type: ${e.connectorType}`);return{name:e.name,connectorTitle:o.title,connectorType:e.connectorType,icon:o.logoUrl}})}handleEditConnectionClick(e){this.state.value.editingConnection={...e,newName:e.name}}async getLoginUrl(e,o,n){return this.api.getLoginUrl(this.projectId,o,e,n)}slugify(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-")}getUniqueName(e){const o=this.state.value.connections.filter(n=>n.connectorType===e).length;return o===0?e:`${e}-${o}`}}const Z=T({__name:"ConnectorCard",props:{title:{},logoUrl:{},description:{},unavailable:{type:Boolean}},setup(c){return(e,o)=>(d(),g(t(U),{class:O({"connector-card":!0,unavailable:e.unavailable})},{default:a(()=>[i(t(u),{style:{width:"100%"},vertical:"",gap:12},{default:a(()=>[i(t(u),{justify:"space-between"},{default:a(()=>[i(t(D),{src:e.logoUrl,shape:"square",size:"large"},null,8,["src"]),e.unavailable?(d(),g(t(z),{key:0,style:{height:"fit-content"}},{default:a(()=>[l("Coming Soon")]),_:1})):_("",!0)]),_:1}),i(t(u),{vertical:""},{default:a(()=>[i(t(C),{strong:""},{default:a(()=>[l(w(e.title),1)]),_:1}),i(t(C),{type:"secondary"},{default:a(()=>[l(w(e.description),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}});const ee=N(Z,[["__scopeId","data-v-d00fdb70"]]),te=c=>(X("data-v-efd73617"),c=c(),Y(),c),ne=te(()=>x("div",{style:{"flex-grow":"1"}},null,-1)),oe={class:"connectors-grid"},ae=T({__name:"ConnectorsView",setup(c){const o=F().params.projectId,n=new W(o,new J);return n.fetchInitialState(),(p,r)=>{var $,j;return d(),m(y,null,[i(t(H),{direction:"vertical",style:{width:"100%","margin-bottom":"30px"}},{default:a(()=>[i(t(u),{align:"center",justify:"space-between"},{default:a(()=>[i(t(I),null,{default:a(()=>[l("Connectors")]),_:1})]),_:1}),i(t(A),null,{default:a(()=>[l(" Add and manage external integrations to your project. "),i(L)]),_:1}),t(n).state.value.connections.length?(d(),g(t(u),{key:0,vertical:""},{default:a(()=>[i(t(I),{level:2},{default:a(()=>[l("Installed")]),_:1}),i(t(u),{vertical:"",gap:10},{default:a(()=>[(d(!0),m(y,null,k(t(n).state.value.connections,s=>(d(),g(t(U),{key:s.name},{default:a(()=>[i(t(u),{align:"center",gap:20},{default:a(()=>[i(t(D),{src:s.icon,height:"40px",shape:"square"},null,8,["src"]),i(t(C),{strong:""},{default:a(()=>[l(w(s.connectorTitle),1)]),_:2},1024),ne,i(t(C),{content:s.name,copyable:"",code:""},null,8,["content"]),i(t(P),null,{overlay:a(()=>[i(t(G),null,{default:a(()=>[i(t(S),{onClick:h=>t(n).handleEditConnectionClick(s)},{default:a(()=>[l(" Rename ")]),_:2},1032,["onClick"]),i(t(S),{danger:"",onClick:h=>t(n).handleDeletionClick(s)},{default:a(()=>[l(" Delete ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:a(()=>[i(t(M))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):_("",!0),i(t(u),{vertical:""},{default:a(()=>[t(n).state.value.connections.length?(d(),g(t(I),{key:0,level:2},{default:a(()=>[l("Available")]),_:1})):_("",!0),x("div",oe,[(d(!0),m(y,null,k(t(n).state.value.connectors.sort((s,h)=>s.unavailable?1:-1),s=>(d(),g(ee,{key:s.type,title:s.title,"logo-url":s.logoUrl,description:s.description,unavailable:s.unavailable,onClick:h=>t(n).showAddConfirmationModal(s)},null,8,["title","logo-url","description","unavailable","onClick"]))),128))])]),_:1})]),_:1}),i(t(b),{open:!!t(n).state.value.editingConnection,title:`${($=t(n).state.value.editingConnection)==null?void 0:$.connectorTitle} Connection`,onCancel:r[2]||(r[2]=s=>t(n).state.value.editingConnection=null)},{footer:a(()=>[i(t(u),{justify:"end"},{default:a(()=>[i(B,{disabled:!t(n).hasChanges.value,onClick:r[1]||(r[1]=s=>t(n).renameConnection())},{default:a(()=>[l(" Save ")]),_:1},8,["disabled"])]),_:1})]),default:a(()=>[t(n).state.value.editingConnection?(d(),g(t(K),{key:0,value:t(n).state.value.editingConnection.newName,"onUpdate:value":r[0]||(r[0]=s=>t(n).state.value.editingConnection.newName=s)},null,8,["value"])):_("",!0)]),_:1},8,["open","title"]),i(t(b),{open:!!t(n).state.value.addingConnection,title:`Add ${(j=t(n).state.value.addingConnection)==null?void 0:j.connector.title} Connection`,"ok-text":"Authorize","wrap-class-name":"full-modal",onCancel:r[3]||(r[3]=s=>t(n).state.value.addingConnection=null),onOk:t(n).handleAddConnectionSubmit},{default:a(()=>[t(n).state.value.addingConnection?(d(),m(y,{key:0},[i(t(A),null,{default:a(()=>[l(" Please select the scopes you want to authorize for this connection. You can change these later by deleting and re-adding the connection. ")]),_:1}),i(t(u),{vertical:"",gap:"10",style:{margin:"30px 0px"}},{default:a(()=>[(d(!0),m(y,null,k(t(n).state.value.addingConnection.connector.scopes,s=>(d(),g(t(u),{key:s.id,justify:"space-between",align:"center"},{default:a(()=>[i(t(u),{vertical:""},{default:a(()=>[i(t(C),null,{default:a(()=>[l(w(s.description),1)]),_:2},1024),i(t(C),{type:"secondary"},{default:a(()=>[l(w(s.id),1)]),_:2},1024)]),_:2},1024),i(t(Q),{checked:t(n).state.value.addingConnection.selectedScopeIds.includes(s.id),onChange:h=>t(n).handleScopeToggle(s.id,h)},null,8,["checked","onChange"])]),_:2},1024))),128))]),_:1})],64)):_("",!0)]),_:1},8,["open","title","onOk"])],64)}}});const me=N(ae,[["__scopeId","data-v-efd73617"]]);export{me as default}; -//# sourceMappingURL=ConnectorsView.4437ad06.js.map +var V=Object.defineProperty;var E=(l,e,o)=>e in l?V(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o;var f=(l,e,o)=>(E(l,typeof e!="symbol"?e+"":e,o),o);import{_ as L}from"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import{_ as B}from"./AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js";import{G as M}from"./PhDotsThreeVertical.vue.c39db334.js";import{e as R,f as q,cK as b,d as T,o as d,c as g,w as a,b as i,u as t,df as u,d3 as z,aF as c,R as _,da as C,ec as w,ea as O,$ as N,ed as F,X as m,aR as y,db as I,d9 as A,ee as k,bQ as P,by as G,bw as S,a as x,bK as K,cV as Q,el as X,em as Y}from"./vue-router.3fd92176.js";import{C as v}from"./gateway.c564a1cf.js";import{A as D}from"./Avatar.2107fa31.js";import{C as U}from"./Card.0ce127d8.js";import{A as H}from"./index.063f7c9e.js";import"./BookOutlined.5f7ad9dc.js";import"./popupNotifcation.0e86d6a8.js";import"./TabPane.d0ca7ad5.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="8175aaa7-0f53-44fb-bfdd-bfcb4d36f4e1",l._sentryDebugIdIdentifier="sentry-dbid-8175aaa7-0f53-44fb-bfdd-bfcb4d36f4e1")}catch{}})();class J{async getLoginUrl(e,o,n,p){return v.get(`projects/${e}/connectors/${n}/connections/${o}/login-url`,{scopeIds:p.join(",")})}async listConnectors(e){return v.get(`projects/${e}/connectors`)}async listConnections(e){return v.get(`projects/${e}/connections`)}async deleteConnection(e){const{projectId:o,connectionName:n,connectorType:p}=e;return v.delete(`projects/${o}/connectors/${p}/connections/${n}`)}async renameConnection(e){const{projectId:o,connectionName:n,connectorType:p,newConnectionName:r}=e;return v.patch(`projects/${o}/connectors/${p}/connections/${n}`,{newConnectionName:r})}}class W{constructor(e,o){f(this,"state");f(this,"hasChanges",q(()=>!!this.state.value.editingConnection&&this.state.value.editingConnection.name!==this.state.value.editingConnection.newName));f(this,"handleDeletionClick",async e=>{b.confirm({title:"Delete connection",content:"Are you sure you want to delete this connection?",onOk:()=>this.handleDeleteConnection(e)})});f(this,"handleDeleteConnection",async e=>{await this.api.deleteConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType}),this.state.value.editingConnection=null,await this.refetchConnections()});f(this,"handleAddConnectionSubmit",async()=>{var p,r;const e=(p=this.state.value.addingConnection)==null?void 0:p.connector.type,o=(r=this.state.value.addingConnection)==null?void 0:r.selectedScopeIds;if(!e||!o)throw new Error("No connector or scope selected");const{url:n}=await this.getLoginUrl(e,this.getUniqueName(e),o);window.location.href=n});f(this,"renameConnection",async()=>{const{editingConnection:e}=this.state.value;if(!e)throw new Error("No connection is being edited");const o=async()=>{await this.api.renameConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType,newConnectionName:e.newName}),await this.refetchConnections(),this.state.value.editingConnection=null};b.confirm({title:"Rename connection",content:"Are you sure you want to rename this connection? This will break any existing references to the old name.",onOk:o})});f(this,"showAddConfirmationModal",e=>{this.state.value.addingConnection={selectedScopeIds:e.scopes.map(o=>o.id),connector:e}});f(this,"handleScopeToggle",(e,o)=>{o?this.state.value.addingConnection.selectedScopeIds.push(e):this.state.value.addingConnection.selectedScopeIds=this.state.value.addingConnection.selectedScopeIds.filter(n=>n!==e)});this.projectId=e,this.api=o,this.state=R({connectors:[],connections:[],addingConnection:null,editingConnection:null})}async fetchConnectors(){this.state.value.connectors=await this.api.listConnectors(this.projectId)}async fetchInitialState(){await this.fetchConnectors(),await this.refetchConnections()}async refetchConnections(){this.state.value.connections=(await this.api.listConnections(this.projectId)).map(e=>{const o=this.state.value.connectors.find(n=>n.type===e.connectorType);if(!o)throw new Error(`Unknown connector type: ${e.connectorType}`);return{name:e.name,connectorTitle:o.title,connectorType:e.connectorType,icon:o.logoUrl}})}handleEditConnectionClick(e){this.state.value.editingConnection={...e,newName:e.name}}async getLoginUrl(e,o,n){return this.api.getLoginUrl(this.projectId,o,e,n)}slugify(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-")}getUniqueName(e){const o=this.state.value.connections.filter(n=>n.connectorType===e).length;return o===0?e:`${e}-${o}`}}const Z=T({__name:"ConnectorCard",props:{title:{},logoUrl:{},description:{},unavailable:{type:Boolean}},setup(l){return(e,o)=>(d(),g(t(U),{class:O({"connector-card":!0,unavailable:e.unavailable})},{default:a(()=>[i(t(u),{style:{width:"100%"},vertical:"",gap:12},{default:a(()=>[i(t(u),{justify:"space-between"},{default:a(()=>[i(t(D),{src:e.logoUrl,shape:"square",size:"large"},null,8,["src"]),e.unavailable?(d(),g(t(z),{key:0,style:{height:"fit-content"}},{default:a(()=>[c("Coming Soon")]),_:1})):_("",!0)]),_:1}),i(t(u),{vertical:""},{default:a(()=>[i(t(C),{strong:""},{default:a(()=>[c(w(e.title),1)]),_:1}),i(t(C),{type:"secondary"},{default:a(()=>[c(w(e.description),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}});const ee=N(Z,[["__scopeId","data-v-d00fdb70"]]),te=l=>(X("data-v-efd73617"),l=l(),Y(),l),ne=te(()=>x("div",{style:{"flex-grow":"1"}},null,-1)),oe={class:"connectors-grid"},ae=T({__name:"ConnectorsView",setup(l){const o=F().params.projectId,n=new W(o,new J);return n.fetchInitialState(),(p,r)=>{var $,j;return d(),m(y,null,[i(t(H),{direction:"vertical",style:{width:"100%","margin-bottom":"30px"}},{default:a(()=>[i(t(u),{align:"center",justify:"space-between"},{default:a(()=>[i(t(I),null,{default:a(()=>[c("Connectors")]),_:1})]),_:1}),i(t(A),null,{default:a(()=>[c(" Add and manage external integrations to your project. "),i(L)]),_:1}),t(n).state.value.connections.length?(d(),g(t(u),{key:0,vertical:""},{default:a(()=>[i(t(I),{level:2},{default:a(()=>[c("Installed")]),_:1}),i(t(u),{vertical:"",gap:10},{default:a(()=>[(d(!0),m(y,null,k(t(n).state.value.connections,s=>(d(),g(t(U),{key:s.name},{default:a(()=>[i(t(u),{align:"center",gap:20},{default:a(()=>[i(t(D),{src:s.icon,height:"40px",shape:"square"},null,8,["src"]),i(t(C),{strong:""},{default:a(()=>[c(w(s.connectorTitle),1)]),_:2},1024),ne,i(t(C),{content:s.name,copyable:"",code:""},null,8,["content"]),i(t(P),null,{overlay:a(()=>[i(t(G),null,{default:a(()=>[i(t(S),{onClick:h=>t(n).handleEditConnectionClick(s)},{default:a(()=>[c(" Rename ")]),_:2},1032,["onClick"]),i(t(S),{danger:"",onClick:h=>t(n).handleDeletionClick(s)},{default:a(()=>[c(" Delete ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:a(()=>[i(t(M))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):_("",!0),i(t(u),{vertical:""},{default:a(()=>[t(n).state.value.connections.length?(d(),g(t(I),{key:0,level:2},{default:a(()=>[c("Available")]),_:1})):_("",!0),x("div",oe,[(d(!0),m(y,null,k(t(n).state.value.connectors.sort((s,h)=>s.unavailable?1:-1),s=>(d(),g(ee,{key:s.type,title:s.title,"logo-url":s.logoUrl,description:s.description,unavailable:s.unavailable,onClick:h=>t(n).showAddConfirmationModal(s)},null,8,["title","logo-url","description","unavailable","onClick"]))),128))])]),_:1})]),_:1}),i(t(b),{open:!!t(n).state.value.editingConnection,title:`${($=t(n).state.value.editingConnection)==null?void 0:$.connectorTitle} Connection`,onCancel:r[2]||(r[2]=s=>t(n).state.value.editingConnection=null)},{footer:a(()=>[i(t(u),{justify:"end"},{default:a(()=>[i(B,{disabled:!t(n).hasChanges.value,onClick:r[1]||(r[1]=s=>t(n).renameConnection())},{default:a(()=>[c(" Save ")]),_:1},8,["disabled"])]),_:1})]),default:a(()=>[t(n).state.value.editingConnection?(d(),g(t(K),{key:0,value:t(n).state.value.editingConnection.newName,"onUpdate:value":r[0]||(r[0]=s=>t(n).state.value.editingConnection.newName=s)},null,8,["value"])):_("",!0)]),_:1},8,["open","title"]),i(t(b),{open:!!t(n).state.value.addingConnection,title:`Add ${(j=t(n).state.value.addingConnection)==null?void 0:j.connector.title} Connection`,"ok-text":"Authorize","wrap-class-name":"full-modal",onCancel:r[3]||(r[3]=s=>t(n).state.value.addingConnection=null),onOk:t(n).handleAddConnectionSubmit},{default:a(()=>[t(n).state.value.addingConnection?(d(),m(y,{key:0},[i(t(A),null,{default:a(()=>[c(" Please select the scopes you want to authorize for this connection. You can change these later by deleting and re-adding the connection. ")]),_:1}),i(t(u),{vertical:"",gap:"10",style:{margin:"30px 0px"}},{default:a(()=>[(d(!0),m(y,null,k(t(n).state.value.addingConnection.connector.scopes,s=>(d(),g(t(u),{key:s.id,justify:"space-between",align:"center"},{default:a(()=>[i(t(u),{vertical:""},{default:a(()=>[i(t(C),null,{default:a(()=>[c(w(s.description),1)]),_:2},1024),i(t(C),{type:"secondary"},{default:a(()=>[c(w(s.id),1)]),_:2},1024)]),_:2},1024),i(t(Q),{checked:t(n).state.value.addingConnection.selectedScopeIds.includes(s.id),onChange:h=>t(n).handleScopeToggle(s.id,h)},null,8,["checked","onChange"])]),_:2},1024))),128))]),_:1})],64)):_("",!0)]),_:1},8,["open","title","onOk"])],64)}}});const me=N(ae,[["__scopeId","data-v-efd73617"]]);export{me as default}; +//# sourceMappingURL=ConnectorsView.b63d2fed.js.map diff --git a/abstra_statics/dist/assets/ContentLayout.72beb65c.js b/abstra_statics/dist/assets/ContentLayout.72beb65c.js new file mode 100644 index 000000000..c0560e743 --- /dev/null +++ b/abstra_statics/dist/assets/ContentLayout.72beb65c.js @@ -0,0 +1,2 @@ +import{d as o,X as n,a as s,Z as d,ea as r,o as l,$ as _}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="17d1a05a-ad06-433f-aee5-88bbf4cba693",e._sentryDebugIdIdentifier="sentry-dbid-17d1a05a-ad06-433f-aee5-88bbf4cba693")}catch{}})();const c={class:"content-layout"},u=o({__name:"ContentLayout",props:{fullWidth:{type:Boolean}},setup(e){return(t,a)=>(l(),n("div",c,[s("div",{class:r(["centered-layout",{"full-width":t.fullWidth}])},[d(t.$slots,"default",{},void 0,!0)],2)]))}});const i=_(u,[["__scopeId","data-v-6397d501"]]);export{i as C}; +//# sourceMappingURL=ContentLayout.72beb65c.js.map diff --git a/abstra_statics/dist/assets/ContentLayout.f8da2f52.js b/abstra_statics/dist/assets/ContentLayout.f8da2f52.js deleted file mode 100644 index 224070e0a..000000000 --- a/abstra_statics/dist/assets/ContentLayout.f8da2f52.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as n,X as a,a as s,Z as d,ea as r,o as l,$ as f}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="08c1e25f-487d-44b1-ac9a-d592f8dfa5f4",e._sentryDebugIdIdentifier="sentry-dbid-08c1e25f-487d-44b1-ac9a-d592f8dfa5f4")}catch{}})();const c={class:"content-layout"},_=n({__name:"ContentLayout",props:{fullWidth:{type:Boolean}},setup(e){return(t,o)=>(l(),a("div",c,[s("div",{class:r(["centered-layout",{"full-width":t.fullWidth}])},[d(t.$slots,"default",{},void 0,!0)],2)]))}});const i=f(_,[["__scopeId","data-v-6397d501"]]);export{i as C}; -//# sourceMappingURL=ContentLayout.f8da2f52.js.map diff --git a/abstra_statics/dist/assets/CrudView.e4956a79.js b/abstra_statics/dist/assets/CrudView.b65b5675.js similarity index 90% rename from abstra_statics/dist/assets/CrudView.e4956a79.js rename to abstra_statics/dist/assets/CrudView.b65b5675.js index a2d7afbde..683b620c8 100644 --- a/abstra_statics/dist/assets/CrudView.e4956a79.js +++ b/abstra_statics/dist/assets/CrudView.b65b5675.js @@ -1,2 +1,2 @@ -import{A as x,a as P,r as z}from"./router.87582bcc.js";import{_ as O}from"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import{i as L}from"./url.c1b32560.js";import{G as j}from"./PhDotsThreeVertical.vue.75f90272.js";import{d as M,D as E,e as N,c as r,w as l,u as n,o as s,b as i,aF as c,ec as y,d9 as D,X as B,ee as R,cy as Y,bK as G,cD as Q,aA as W,aR as I,cS as X,R as m,cx as Z,cK as q,f as H,r as J,df as F,db as K,Z as A,bS as ee,cW as te,Y as ae,da as V,d3 as le,bQ as ne,by as se,bw as oe,a as ue,ef as re,cN as pe,bx as ie,$ as ce}from"./vue-router.4c13f3d4.js";import{A as ye}from"./index.ec6b7808.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},b=new Error().stack;b&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[b]="03254f6a-ea8c-46b1-bbf5-b216813a2d25",v._sentryDebugIdIdentifier="sentry-dbid-03254f6a-ea8c-46b1-bbf5-b216813a2d25")}catch{}})();const de=M({__name:"CreationModal",props:{entityName:{},fields:{}},emits:["create"],setup(v,{expose:b,emit:g}){const k=v,T=`Create a new ${k.entityName}`,p=E({inputValue:{}}),h=N(!1),S=()=>h.value=!0,C=()=>h.value=!1,t=()=>{g("create",p.inputValue),p.inputValue={},C()},w=(d,a)=>{const e=d.target.value,u=k.fields.find(f=>f.key===a);u!=null&&u.format?p.inputValue[a]=u.format(e):p.inputValue[a]=e},_=(d,a)=>{const e=d.target.value,u=k.fields.find(f=>f.key===a);u!=null&&u.blur?p.inputValue[a]=u.blur(e):p.inputValue[a]=e};return b({open:S,close:C}),(d,a)=>(s(),r(n(q),{open:h.value,title:T,onCancel:C,onOk:t},{default:l(()=>[i(n(D),null,{default:l(()=>[c(" You may edit the "+y(d.entityName)+" name afterwards at Settings. ",1)]),_:1}),i(n(Z),{layout:"vertical"},{default:l(()=>[(s(!0),B(I,null,R(d.fields,e=>{var u;return s(),r(n(Y),{key:e.key,label:e.label,help:(u=e.hint)==null?void 0:u.call(e,p.inputValue[e.key])},{default:l(()=>{var f,$,U;return[!e.type||e.type==="text"||e.type==="password"?(s(),r(n(G),{key:0,value:p.inputValue[e.key],"onUpdate:value":o=>p.inputValue[e.key]=o,placeholder:(f=e.placeholder)!=null?f:"",type:($=e.type)!=null?$:"text",onInput:o=>w(o,e.key),onBlur:o=>_(o,e.key)},null,8,["value","onUpdate:value","placeholder","type","onInput","onBlur"])):e.type==="multiline-text"?(s(),r(n(Q),{key:1,value:p.inputValue[e.key],"onUpdate:value":o=>p.inputValue[e.key]=o,placeholder:(U=e.placeholder)!=null?U:"",onInput:o=>w(o,e.key),onBlur:o=>_(o,e.key)},null,8,["value","onUpdate:value","placeholder","onInput","onBlur"])):Array.isArray(e.type)?(s(),r(n(W),{key:2,value:p.inputValue[e.key],"onUpdate:value":o=>p.inputValue[e.key]=o},{default:l(()=>[(s(!0),B(I,null,R(e.type,o=>(s(),r(n(X),{key:typeof o=="string"?o:o.value,value:typeof o=="string"?o:o.value},{default:l(()=>[c(y(typeof o=="string"?o:o.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):m("",!0)]}),_:2},1032,["label","help"])}),128))]),_:1})]),_:1},8,["open"]))}}),fe={class:"action-item"},me=M({__name:"CrudView",props:{table:{},loading:{type:Boolean},title:{},emptyTitle:{},entityName:{},description:{},createButtonText:{},docsPath:{},live:{type:Boolean},fields:{}},emits:["create"],setup(v,{emit:b}){const g=v,k=N(null),T=()=>{var t;g.fields?(t=k.value)==null||t.open():b("create",{})},p=N(!1);async function h(t,w){var _;if(!p.value){p.value=!0;try{"onClick"in t?await((_=t.onClick)==null?void 0:_.call(t,{key:w.key})):"link"in t&&(typeof t.link=="string"&&L(t.link)?open(t.link,"_blank"):z.push(t.link))}finally{p.value=!1}}}async function S(t){b("create",t)}const C=H(()=>({"--columnCount":`${g.table.columns.length}`}));return(t,w)=>{const _=J("RouterLink");return s(),B(I,null,[i(n(ye),{direction:"vertical",class:"crud-view"},{default:l(()=>{var d;return[i(n(F),{align:"center",justify:"space-between"},{default:l(()=>[t.title?(s(),r(n(K),{key:0},{default:l(()=>[c(y(t.title),1)]),_:1})):m("",!0),A(t.$slots,"more",{},void 0,!0)]),_:3}),t.description?(s(),r(n(D),{key:0},{default:l(()=>[c(y(t.description)+" ",1),A(t.$slots,"description",{},void 0,!0),t.docsPath?(s(),r(O,{key:0,path:t.docsPath},null,8,["path"])):m("",!0)]),_:3})):m("",!0),i(n(F),{gap:"middle"},{default:l(()=>[t.createButtonText?(s(),r(n(ee),{key:0,type:"primary",onClick:T},{default:l(()=>[c(y(t.createButtonText),1)]),_:1})):m("",!0),A(t.$slots,"secondary",{},void 0,!0)]),_:3}),A(t.$slots,"extra",{},void 0,!0),i(n(te),{size:"small",style:ae(C.value),"data-source":t.table.rows,loading:p.value||t.loading&&!t.live,height:400,columns:(d=t.table.columns)==null?void 0:d.map(({name:a,align:e},u,f)=>({title:a,key:u,align:e!=null?e:"center"}))},{emptyText:l(()=>[c(y(t.emptyTitle),1)]),headerCell:l(a=>[c(y(a.title),1)]),bodyCell:l(({column:{key:a},record:e})=>[e.cells[a].type==="slot"?A(t.$slots,e.cells[a].key,{key:0,payload:e.cells[a].payload},void 0,!0):(s(),r(n(pe),{key:1,open:e.cells[a].hover?void 0:!1},{content:l(()=>[i(n(D),{style:{width:"300px",overflow:"auto","font-family":"monospace"},copyable:"",content:e.cells[a].hover},null,8,["content"])]),default:l(()=>[e.cells[a].type==="text"?(s(),r(n(V),{key:0,secondary:e.cells[a].secondary,type:e.cells[a].contentType,code:e.cells[a].code},{default:l(()=>[c(y(e.cells[a].text),1)]),_:2},1032,["secondary","type","code"])):e.cells[a].type==="secret"?(s(),r(n(V),{key:1,copyable:{text:e.cells[a].text}},{default:l(()=>[c(" ******** ")]),_:2},1032,["copyable"])):e.cells[a].type==="tag"?(s(),r(n(le),{key:2,color:e.cells[a].tagColor},{default:l(()=>[c(y(e.cells[a].text),1)]),_:2},1032,["color"])):e.cells[a].type==="link"?(s(),r(_,{key:3,to:e.cells[a].to},{default:l(()=>[c(y(e.cells[a].text),1)]),_:2},1032,["to"])):e.cells[a].type==="actions"?(s(),r(n(ne),{key:4},{overlay:l(()=>[i(n(se),{disabled:p.value},{default:l(()=>[(s(!0),B(I,null,R(e.cells[a].actions.filter(u=>!u.hide),(u,f)=>(s(),r(n(oe),{key:f,danger:u.dangerous,onClick:$=>h(u,e)},{default:l(()=>[ue("div",fe,[u.icon?(s(),r(re(u.icon),{key:0})):m("",!0),i(n(V),null,{default:l(()=>[c(y(u.label),1)]),_:2},1024)])]),_:2},1032,["danger","onClick"]))),128))]),_:2},1032,["disabled"])]),default:l(()=>[i(n(j),{style:{cursor:"pointer"},size:"25px"})]),_:2},1024)):m("",!0)]),_:2},1032,["open"]))]),footer:l(()=>[t.live?(s(),r(n(P),{key:0,justify:"end",gutter:10},{default:l(()=>[i(n(x),null,{default:l(()=>[i(n(ie),{size:"small"})]),_:1}),i(n(x),null,{default:l(()=>[i(n(V),null,{default:l(()=>[c(" auto updating ")]),_:1})]),_:1})]),_:1})):m("",!0)]),_:3},8,["style","data-source","loading","columns"])]}),_:3}),t.fields?(s(),r(de,{key:0,ref_key:"modalRef",ref:k,fields:t.fields,"entity-name":t.entityName,onCreate:S},null,8,["fields","entity-name"])):m("",!0)],64)}}});const Ce=ce(me,[["__scopeId","data-v-90603a23"]]);export{Ce as C}; -//# sourceMappingURL=CrudView.e4956a79.js.map +import{A as x,a as P,r as z}from"./router.59916c0d.js";import{_ as O}from"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import{i as L}from"./url.5959ae47.js";import{G as j}from"./PhDotsThreeVertical.vue.c39db334.js";import{d as M,D as E,e as N,c as r,w as l,u as n,o as s,b as i,aF as c,ec as y,d9 as D,X as B,ee as R,cy as Y,bK as G,cD as Q,aA as W,aR as I,cS as X,R as m,cx as Z,cK as q,f as H,r as J,df as F,db as K,Z as A,bS as ee,cW as te,Y as ae,da as V,d3 as le,bQ as ne,by as se,bw as oe,a as ue,ef as re,cN as pe,bx as ie,$ as ce}from"./vue-router.3fd92176.js";import{A as ye}from"./index.063f7c9e.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},b=new Error().stack;b&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[b]="e2fe5a23-1544-4c41-96ab-b5f754f61d00",v._sentryDebugIdIdentifier="sentry-dbid-e2fe5a23-1544-4c41-96ab-b5f754f61d00")}catch{}})();const de=M({__name:"CreationModal",props:{entityName:{},fields:{}},emits:["create"],setup(v,{expose:b,emit:g}){const k=v,T=`Create a new ${k.entityName}`,p=E({inputValue:{}}),h=N(!1),S=()=>h.value=!0,C=()=>h.value=!1,t=()=>{g("create",p.inputValue),p.inputValue={},C()},w=(d,a)=>{const e=d.target.value,u=k.fields.find(f=>f.key===a);u!=null&&u.format?p.inputValue[a]=u.format(e):p.inputValue[a]=e},_=(d,a)=>{const e=d.target.value,u=k.fields.find(f=>f.key===a);u!=null&&u.blur?p.inputValue[a]=u.blur(e):p.inputValue[a]=e};return b({open:S,close:C}),(d,a)=>(s(),r(n(q),{open:h.value,title:T,onCancel:C,onOk:t},{default:l(()=>[i(n(D),null,{default:l(()=>[c(" You may edit the "+y(d.entityName)+" name afterwards at Settings. ",1)]),_:1}),i(n(Z),{layout:"vertical"},{default:l(()=>[(s(!0),B(I,null,R(d.fields,e=>{var u;return s(),r(n(Y),{key:e.key,label:e.label,help:(u=e.hint)==null?void 0:u.call(e,p.inputValue[e.key])},{default:l(()=>{var f,$,U;return[!e.type||e.type==="text"||e.type==="password"?(s(),r(n(G),{key:0,value:p.inputValue[e.key],"onUpdate:value":o=>p.inputValue[e.key]=o,placeholder:(f=e.placeholder)!=null?f:"",type:($=e.type)!=null?$:"text",onInput:o=>w(o,e.key),onBlur:o=>_(o,e.key)},null,8,["value","onUpdate:value","placeholder","type","onInput","onBlur"])):e.type==="multiline-text"?(s(),r(n(Q),{key:1,value:p.inputValue[e.key],"onUpdate:value":o=>p.inputValue[e.key]=o,placeholder:(U=e.placeholder)!=null?U:"",onInput:o=>w(o,e.key),onBlur:o=>_(o,e.key)},null,8,["value","onUpdate:value","placeholder","onInput","onBlur"])):Array.isArray(e.type)?(s(),r(n(W),{key:2,value:p.inputValue[e.key],"onUpdate:value":o=>p.inputValue[e.key]=o},{default:l(()=>[(s(!0),B(I,null,R(e.type,o=>(s(),r(n(X),{key:typeof o=="string"?o:o.value,value:typeof o=="string"?o:o.value},{default:l(()=>[c(y(typeof o=="string"?o:o.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):m("",!0)]}),_:2},1032,["label","help"])}),128))]),_:1})]),_:1},8,["open"]))}}),fe={class:"action-item"},me=M({__name:"CrudView",props:{table:{},loading:{type:Boolean},title:{},emptyTitle:{},entityName:{},description:{},createButtonText:{},docsPath:{},live:{type:Boolean},fields:{}},emits:["create"],setup(v,{emit:b}){const g=v,k=N(null),T=()=>{var t;g.fields?(t=k.value)==null||t.open():b("create",{})},p=N(!1);async function h(t,w){var _;if(!p.value){p.value=!0;try{"onClick"in t?await((_=t.onClick)==null?void 0:_.call(t,{key:w.key})):"link"in t&&(typeof t.link=="string"&&L(t.link)?open(t.link,"_blank"):z.push(t.link))}finally{p.value=!1}}}async function S(t){b("create",t)}const C=H(()=>({"--columnCount":`${g.table.columns.length}`}));return(t,w)=>{const _=J("RouterLink");return s(),B(I,null,[i(n(ye),{direction:"vertical",class:"crud-view"},{default:l(()=>{var d;return[i(n(F),{align:"center",justify:"space-between"},{default:l(()=>[t.title?(s(),r(n(K),{key:0},{default:l(()=>[c(y(t.title),1)]),_:1})):m("",!0),A(t.$slots,"more",{},void 0,!0)]),_:3}),t.description?(s(),r(n(D),{key:0},{default:l(()=>[c(y(t.description)+" ",1),A(t.$slots,"description",{},void 0,!0),t.docsPath?(s(),r(O,{key:0,path:t.docsPath},null,8,["path"])):m("",!0)]),_:3})):m("",!0),i(n(F),{gap:"middle"},{default:l(()=>[t.createButtonText?(s(),r(n(ee),{key:0,type:"primary",onClick:T},{default:l(()=>[c(y(t.createButtonText),1)]),_:1})):m("",!0),A(t.$slots,"secondary",{},void 0,!0)]),_:3}),A(t.$slots,"extra",{},void 0,!0),i(n(te),{size:"small",style:ae(C.value),"data-source":t.table.rows,loading:p.value||t.loading&&!t.live,height:400,columns:(d=t.table.columns)==null?void 0:d.map(({name:a,align:e},u,f)=>({title:a,key:u,align:e!=null?e:"center"}))},{emptyText:l(()=>[c(y(t.emptyTitle),1)]),headerCell:l(a=>[c(y(a.title),1)]),bodyCell:l(({column:{key:a},record:e})=>[e.cells[a].type==="slot"?A(t.$slots,e.cells[a].key,{key:0,payload:e.cells[a].payload},void 0,!0):(s(),r(n(pe),{key:1,open:e.cells[a].hover?void 0:!1},{content:l(()=>[i(n(D),{style:{width:"300px",overflow:"auto","font-family":"monospace"},copyable:"",content:e.cells[a].hover},null,8,["content"])]),default:l(()=>[e.cells[a].type==="text"?(s(),r(n(V),{key:0,secondary:e.cells[a].secondary,type:e.cells[a].contentType,code:e.cells[a].code},{default:l(()=>[c(y(e.cells[a].text),1)]),_:2},1032,["secondary","type","code"])):e.cells[a].type==="secret"?(s(),r(n(V),{key:1,copyable:{text:e.cells[a].text}},{default:l(()=>[c(" ******** ")]),_:2},1032,["copyable"])):e.cells[a].type==="tag"?(s(),r(n(le),{key:2,color:e.cells[a].tagColor},{default:l(()=>[c(y(e.cells[a].text),1)]),_:2},1032,["color"])):e.cells[a].type==="link"?(s(),r(_,{key:3,to:e.cells[a].to},{default:l(()=>[c(y(e.cells[a].text),1)]),_:2},1032,["to"])):e.cells[a].type==="actions"?(s(),r(n(ne),{key:4},{overlay:l(()=>[i(n(se),{disabled:p.value},{default:l(()=>[(s(!0),B(I,null,R(e.cells[a].actions.filter(u=>!u.hide),(u,f)=>(s(),r(n(oe),{key:f,danger:u.dangerous,onClick:$=>h(u,e)},{default:l(()=>[ue("div",fe,[u.icon?(s(),r(re(u.icon),{key:0})):m("",!0),i(n(V),null,{default:l(()=>[c(y(u.label),1)]),_:2},1024)])]),_:2},1032,["danger","onClick"]))),128))]),_:2},1032,["disabled"])]),default:l(()=>[i(n(j),{style:{cursor:"pointer"},size:"25px"})]),_:2},1024)):m("",!0)]),_:2},1032,["open"]))]),footer:l(()=>[t.live?(s(),r(n(P),{key:0,justify:"end",gutter:10},{default:l(()=>[i(n(x),null,{default:l(()=>[i(n(ie),{size:"small"})]),_:1}),i(n(x),null,{default:l(()=>[i(n(V),null,{default:l(()=>[c(" auto updating ")]),_:1})]),_:1})]),_:1})):m("",!0)]),_:3},8,["style","data-source","loading","columns"])]}),_:3}),t.fields?(s(),r(de,{key:0,ref_key:"modalRef",ref:k,fields:t.fields,"entity-name":t.entityName,onCreate:S},null,8,["fields","entity-name"])):m("",!0)],64)}}});const Ce=ce(me,[["__scopeId","data-v-90603a23"]]);export{Ce as C}; +//# sourceMappingURL=CrudView.b65b5675.js.map diff --git a/abstra_statics/dist/assets/DeleteOutlined.a943fe4d.js b/abstra_statics/dist/assets/DeleteOutlined.a95bba08.js similarity index 51% rename from abstra_statics/dist/assets/DeleteOutlined.a943fe4d.js rename to abstra_statics/dist/assets/DeleteOutlined.a95bba08.js index fb7621d2b..b5d9813f5 100644 --- a/abstra_statics/dist/assets/DeleteOutlined.a943fe4d.js +++ b/abstra_statics/dist/assets/DeleteOutlined.a95bba08.js @@ -1,2 +1,2 @@ -import{b as u,eh as f,eP as d}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="985aec8f-6ba3-4a11-9164-514d5c445041",e._sentryDebugIdIdentifier="sentry-dbid-985aec8f-6ba3-4a11-9164-514d5c445041")}catch{}})();function l(e){for(var t=1;t{var s;return a(),f(n(y),{class:"docs-button",href:`https://docs.abstra.io/${(s=e.path)!=null?s:""}`,target:"_blank",type:"text",size:"small"},{icon:o(()=>[l(n(d))]),default:o(()=>[e.$slots.default?u(e.$slots,"default",{key:0}):(a(),i(b,{key:1},[p("Docs")],64))]),_:3},8,["href"])}}});export{g as _}; -//# sourceMappingURL=DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js.map diff --git a/abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js b/abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js new file mode 100644 index 000000000..07ce0fccb --- /dev/null +++ b/abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js @@ -0,0 +1,2 @@ +import{B as r}from"./BookOutlined.5f7ad9dc.js";import{d as c,o as s,c as f,w as o,b as l,u as n,Z as u,X as i,aF as p,aR as b,bS as y}from"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ca14c3dd-ccbd-4f0b-a5e3-01eaa8fa3de9",t._sentryDebugIdIdentifier="sentry-dbid-ca14c3dd-ccbd-4f0b-a5e3-01eaa8fa3de9")}catch{}})();const g=c({__name:"DocsButton",props:{path:{}},setup(t){return(e,d)=>{var a;return s(),f(n(y),{class:"docs-button",href:`https://docs.abstra.io/${(a=e.path)!=null?a:""}`,target:"_blank",type:"text",size:"small"},{icon:o(()=>[l(n(r))]),default:o(()=>[e.$slots.default?u(e.$slots,"default",{key:0}):(s(),i(b,{key:1},[p("Docs")],64))]),_:3},8,["href"])}}});export{g as _}; +//# sourceMappingURL=DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js.map diff --git a/abstra_statics/dist/assets/EditorLogin.1b0a59e9.js b/abstra_statics/dist/assets/EditorLogin.744f4da1.js similarity index 80% rename from abstra_statics/dist/assets/EditorLogin.1b0a59e9.js rename to abstra_statics/dist/assets/EditorLogin.744f4da1.js index 425e71619..36802b04d 100644 --- a/abstra_statics/dist/assets/EditorLogin.1b0a59e9.js +++ b/abstra_statics/dist/assets/EditorLogin.744f4da1.js @@ -1,2 +1,2 @@ -import{N as Q}from"./Navbar.6541dc95.js";import{a as A}from"./asyncComputed.d0f14ed3.js";import{m as X}from"./url.c1b32560.js";import{d as $,f as y,e as k,ed as H,X as h,b as c,a as ee,u as a,c as s,w as i,o as r,bx as K,aF as u,ec as p,eV as l,db as ae,aA as C,cR as f,cS as m,aR as R,ee as V,R as z,cy as g,bK as D,ej as te,bS as ne,cx as oe,$ as ie}from"./vue-router.4c13f3d4.js";import{A as re}from"./apiKey.e5976c38.js";import"./gateway.e77556e5.js";import{O as T}from"./organization.6af6e7be.js";import{P as B}from"./project.7817fdd7.js";import"./tables.e9d41f69.js";import"./PhChats.vue.3f8c120c.js";import"./PhSignOut.vue.e09114f0.js";import"./router.87582bcc.js";import"./index.ec6b7808.js";import"./Avatar.6f67d038.js";import"./index.c2d72be7.js";import"./index.b16edfcc.js";import"./BookOutlined.a8460802.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[_]="1adcffda-7a7b-4d27-831f-d7d554d792ad",d._sentryDebugIdIdentifier="sentry-dbid-1adcffda-7a7b-4d27-831f-d7d554d792ad")}catch{}})();const le={class:"container"},se={class:"content"},N="NEW_ORGANIZATION_KEY",I="NEW_PROJECT_KEY",ce=$({__name:"EditorLogin",setup(d){const{result:_,loading:x}=A(()=>T.list()),{result:F,loading:j,refetch:L}=A(async()=>{const t=e.value;return t.type!=="selected-organization"?[]:B.list(t.organizationId)}),E=y(()=>{var t,n;return(n=(t=_.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),O=y(()=>{var t,n;return(n=(t=F.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),U=y(()=>e.value.type==="initial"?!0:e.value.type==="new-organization"?!e.value.organizationName||!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="new"?!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="initial"),W=async t=>await T.create(t.name),S=async(t,n)=>await B.create({organizationId:n,name:t.name}),w=async t=>await re.create({projectId:t,name:"default"}),e=k({type:"initial"}),Y=y(()=>{if(e.value.type!=="initial")return e.value.type==="new-organization"?N:e.value.organizationId}),G=y(()=>e.value.type==="selected-organization"&&e.value.project.type==="new"?I:e.value.type==="selected-organization"&&e.value.project.type==="selected"?e.value.project.projectId:void 0);function M(t){t||(e.value={type:"initial"}),t===N?e.value={type:"new-organization",organizationName:"",project:{type:"new",projectName:""}}:(e.value={type:"selected-organization",organizationId:String(t),project:{type:"initial"}},L())}function q(t){e.value.type==="selected-organization"&&(t||(e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"initial"}}),t===I?e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"new",projectName:""}}:e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"selected",projectId:String(t)}})}const v=k(!1);async function J(){if(!v.value){v.value=!0;try{if(e.value.type==="initial")return;if(e.value.type==="new-organization"){const t=await W({name:e.value.organizationName}),n=await S({name:e.value.project.projectName},t.id),o=await w(n.id);o.value&&b(o.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="new"){const t=await S({name:e.value.project.projectName},e.value.organizationId),n=await w(t.id);n.value&&b(n.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="selected"){const t=await w(e.value.project.projectId);t.value&&b(t.value)}}finally{v.value=!1}}}const P=H(),Z=k(null);async function b(t){if(P.query.redirect){const n=P.query.redirect;if(!n.match(/http:\/\/localhost:\d+/))throw new Error("Invalid redirect");const o=decodeURIComponent(n);location.href=X(o,{"api-key":t})}else Z.value=t}return(t,n)=>(r(),h("div",le,[c(Q),ee("div",se,[a(x)||!a(_)?(r(),s(a(K),{key:0})):(r(),s(a(oe),{key:1,layout:"vertical",class:"card"},{default:i(()=>[c(a(ae),{level:3,style:{padding:"0px",margin:"0px","margin-bottom":"30px"}},{default:i(()=>[u(p(a(l).translate("i18n_create_or_choose_project")),1)]),_:1}),c(a(g),{label:a(l).translate("i18n_get_api_key_organization")},{default:i(()=>[c(a(C),{style:{width:"100%"},placeholder:a(l).translate("i18n_get_api_key_choose_organization"),size:"large",value:Y.value,"onUpdate:value":M},{default:i(()=>[c(a(f),{label:a(l).translate("i18n_get_api_key_new_organization")},{default:i(()=>[(r(),s(a(m),{key:N},{default:i(()=>[u(p(a(l).translate("i18n_get_api_key_create_new_organization")),1)]),_:1}))]),_:1},8,["label"]),E.value.length>0?(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_existing_organizations")},{default:i(()=>[(r(!0),h(R,null,V(E.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[u(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:1},8,["placeholder","value"])]),_:1},8,["label"]),e.value.type=="new-organization"?(r(),s(a(g),{key:0,label:a(l).translate("i18n_get_api_key_organization_name")},{default:i(()=>[c(a(D),{value:e.value.organizationName,"onUpdate:value":n[0]||(n[0]=o=>e.value.organizationName=o),placeholder:a(l).translate("i18n_get_api_key_choose_organization_name"),size:"large"},null,8,["value","placeholder"])]),_:1},8,["label"])):(r(),s(a(g),{key:1,label:a(l).translate("i18n_get_api_key_project")},{default:i(()=>[c(a(C),{style:{width:"100%"},disabled:e.value.type!="selected-organization",placeholder:a(l).translate("i18n_get_api_key_choose_project"),size:"large",value:G.value,"onUpdate:value":q},te({default:i(()=>[a(j)?z("",!0):(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_new_project")},{default:i(()=>[(r(),s(a(m),{key:I},{default:i(()=>[u(p(a(l).translate("i18n_get_api_key_create_new_project")),1)]),_:1}))]),_:1},8,["label"])),O.value.length>0&&!a(j)?(r(),s(a(f),{key:1,label:a(l).translate("i18n_get_api_key_existing_projects")},{default:i(()=>[(r(!0),h(R,null,V(O.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[u(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:2},[a(j)?{name:"notFoundContent",fn:i(()=>[c(a(K),{size:"small"})]),key:"0"}:void 0]),1032,["disabled","placeholder","value"])]),_:1},8,["label"])),(e.value.type=="new-organization"||e.value.type=="selected-organization")&&e.value.project.type=="new"?(r(),s(a(g),{key:2,label:"Project name"},{default:i(()=>[c(a(D),{value:e.value.project.projectName,"onUpdate:value":n[1]||(n[1]=o=>e.value.project.projectName=o),placeholder:a(l).translate("i18n_get_api_key_choose_project_name"),size:"large"},null,8,["value","placeholder"])]),_:1})):z("",!0),c(a(g),{style:{"margin-top":"40px"}},{default:i(()=>[c(a(ne),{type:"primary",disabled:U.value,loading:v.value,style:{width:"100%"},onClick:J},{default:i(()=>[u(p(a(l).translate("i18n_login_with_this_project")),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}))])]))}});const Se=ie(ce,[["__scopeId","data-v-11f078da"]]);export{Se as default}; -//# sourceMappingURL=EditorLogin.1b0a59e9.js.map +import{N as Q}from"./Navbar.6c76e332.js";import{a as A}from"./asyncComputed.295e9e03.js";import{m as X}from"./url.5959ae47.js";import{d as $,f as y,e as k,ed as H,X as h,b as c,a as ee,u as a,c as s,w as i,o as r,bx as K,aF as u,ec as p,eV as l,db as ae,aA as C,cR as f,cS as m,aR as R,ee as V,R as z,cy as g,bK as D,ej as te,bS as ne,cx as oe,$ as ie}from"./vue-router.3fd92176.js";import{A as re}from"./apiKey.9088bccb.js";import"./gateway.c564a1cf.js";import{O as T}from"./organization.ed97e5a8.js";import{P as B}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import"./PhChats.vue.aa1113d9.js";import"./PhSignOut.vue.154299d7.js";import"./router.59916c0d.js";import"./index.063f7c9e.js";import"./Avatar.2107fa31.js";import"./index.5ccdbcb7.js";import"./index.66903cf4.js";import"./BookOutlined.5f7ad9dc.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[_]="11c64dc0-dcd0-42cb-a3e3-ce2d5b847e84",d._sentryDebugIdIdentifier="sentry-dbid-11c64dc0-dcd0-42cb-a3e3-ce2d5b847e84")}catch{}})();const le={class:"container"},se={class:"content"},N="NEW_ORGANIZATION_KEY",I="NEW_PROJECT_KEY",ce=$({__name:"EditorLogin",setup(d){const{result:_,loading:x}=A(()=>T.list()),{result:F,loading:j,refetch:L}=A(async()=>{const t=e.value;return t.type!=="selected-organization"?[]:B.list(t.organizationId)}),E=y(()=>{var t,n;return(n=(t=_.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),O=y(()=>{var t,n;return(n=(t=F.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),U=y(()=>e.value.type==="initial"?!0:e.value.type==="new-organization"?!e.value.organizationName||!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="new"?!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="initial"),W=async t=>await T.create(t.name),S=async(t,n)=>await B.create({organizationId:n,name:t.name}),b=async t=>await re.create({projectId:t,name:"default"}),e=k({type:"initial"}),Y=y(()=>{if(e.value.type!=="initial")return e.value.type==="new-organization"?N:e.value.organizationId}),G=y(()=>e.value.type==="selected-organization"&&e.value.project.type==="new"?I:e.value.type==="selected-organization"&&e.value.project.type==="selected"?e.value.project.projectId:void 0);function M(t){t||(e.value={type:"initial"}),t===N?e.value={type:"new-organization",organizationName:"",project:{type:"new",projectName:""}}:(e.value={type:"selected-organization",organizationId:String(t),project:{type:"initial"}},L())}function q(t){e.value.type==="selected-organization"&&(t||(e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"initial"}}),t===I?e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"new",projectName:""}}:e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"selected",projectId:String(t)}})}const v=k(!1);async function J(){if(!v.value){v.value=!0;try{if(e.value.type==="initial")return;if(e.value.type==="new-organization"){const t=await W({name:e.value.organizationName}),n=await S({name:e.value.project.projectName},t.id),o=await b(n.id);o.value&&w(o.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="new"){const t=await S({name:e.value.project.projectName},e.value.organizationId),n=await b(t.id);n.value&&w(n.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="selected"){const t=await b(e.value.project.projectId);t.value&&w(t.value)}}finally{v.value=!1}}}const P=H(),Z=k(null);async function w(t){if(P.query.redirect){const n=P.query.redirect;if(!n.match(/http:\/\/localhost:\d+/))throw new Error("Invalid redirect");const o=decodeURIComponent(n);location.href=X(o,{"api-key":t})}else Z.value=t}return(t,n)=>(r(),h("div",le,[c(Q),ee("div",se,[a(x)||!a(_)?(r(),s(a(K),{key:0})):(r(),s(a(oe),{key:1,layout:"vertical",class:"card"},{default:i(()=>[c(a(ae),{level:3,style:{padding:"0px",margin:"0px","margin-bottom":"30px"}},{default:i(()=>[u(p(a(l).translate("i18n_create_or_choose_project")),1)]),_:1}),c(a(g),{label:a(l).translate("i18n_get_api_key_organization")},{default:i(()=>[c(a(C),{style:{width:"100%"},placeholder:a(l).translate("i18n_get_api_key_choose_organization"),size:"large",value:Y.value,"onUpdate:value":M},{default:i(()=>[c(a(f),{label:a(l).translate("i18n_get_api_key_new_organization")},{default:i(()=>[(r(),s(a(m),{key:N},{default:i(()=>[u(p(a(l).translate("i18n_get_api_key_create_new_organization")),1)]),_:1}))]),_:1},8,["label"]),E.value.length>0?(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_existing_organizations")},{default:i(()=>[(r(!0),h(R,null,V(E.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[u(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:1},8,["placeholder","value"])]),_:1},8,["label"]),e.value.type=="new-organization"?(r(),s(a(g),{key:0,label:a(l).translate("i18n_get_api_key_organization_name")},{default:i(()=>[c(a(D),{value:e.value.organizationName,"onUpdate:value":n[0]||(n[0]=o=>e.value.organizationName=o),placeholder:a(l).translate("i18n_get_api_key_choose_organization_name"),size:"large"},null,8,["value","placeholder"])]),_:1},8,["label"])):(r(),s(a(g),{key:1,label:a(l).translate("i18n_get_api_key_project")},{default:i(()=>[c(a(C),{style:{width:"100%"},disabled:e.value.type!="selected-organization",placeholder:a(l).translate("i18n_get_api_key_choose_project"),size:"large",value:G.value,"onUpdate:value":q},te({default:i(()=>[a(j)?z("",!0):(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_new_project")},{default:i(()=>[(r(),s(a(m),{key:I},{default:i(()=>[u(p(a(l).translate("i18n_get_api_key_create_new_project")),1)]),_:1}))]),_:1},8,["label"])),O.value.length>0&&!a(j)?(r(),s(a(f),{key:1,label:a(l).translate("i18n_get_api_key_existing_projects")},{default:i(()=>[(r(!0),h(R,null,V(O.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[u(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:2},[a(j)?{name:"notFoundContent",fn:i(()=>[c(a(K),{size:"small"})]),key:"0"}:void 0]),1032,["disabled","placeholder","value"])]),_:1},8,["label"])),(e.value.type=="new-organization"||e.value.type=="selected-organization")&&e.value.project.type=="new"?(r(),s(a(g),{key:2,label:"Project name"},{default:i(()=>[c(a(D),{value:e.value.project.projectName,"onUpdate:value":n[1]||(n[1]=o=>e.value.project.projectName=o),placeholder:a(l).translate("i18n_get_api_key_choose_project_name"),size:"large"},null,8,["value","placeholder"])]),_:1})):z("",!0),c(a(g),{style:{"margin-top":"40px"}},{default:i(()=>[c(a(ne),{type:"primary",disabled:U.value,loading:v.value,style:{width:"100%"},onClick:J},{default:i(()=>[u(p(a(l).translate("i18n_login_with_this_project")),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}))])]))}});const Se=ie(ce,[["__scopeId","data-v-11f078da"]]);export{Se as default}; +//# sourceMappingURL=EditorLogin.744f4da1.js.map diff --git a/abstra_statics/dist/assets/Editors.ca763c86.js b/abstra_statics/dist/assets/Editors.7a187912.js similarity index 57% rename from abstra_statics/dist/assets/Editors.ca763c86.js rename to abstra_statics/dist/assets/Editors.7a187912.js index 73380ad06..3cab911a0 100644 --- a/abstra_statics/dist/assets/Editors.ca763c86.js +++ b/abstra_statics/dist/assets/Editors.7a187912.js @@ -1,2 +1,2 @@ -import{C as b}from"./CrudView.e4956a79.js";import{a as l}from"./ant-design.57cbe6fb.js";import{a as g}from"./asyncComputed.d0f14ed3.js";import{d as w,ed as _,eq as h,f as I,c as k,u as v,o as x,er as C}from"./vue-router.4c13f3d4.js";import{a as z}from"./gateway.e77556e5.js";import{M as n}from"./member.557bc064.js";import"./tables.e9d41f69.js";import"./router.87582bcc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="ba253532-7be3-4304-84b3-fe589bc24160",o._sentryDebugIdIdentifier="sentry-dbid-ba253532-7be3-4304-84b3-fe589bc24160")}catch{}})();const K=w({__name:"Editors",setup(o){const a=_(),s=h(),r=a.params.organizationId,m=[{key:"email",label:"Email"}],d=async e=>{await n.create(r,e.email),c()};async function u(e){var t;if(((t=z.getAuthor())==null?void 0:t.claims.email)===e.email&&await l("You are about to remove your own access. You won't be able to access this organization anymore. Are you sure?")){await n.delete(r,e.authorId),await s.push({name:"organizations"});return}await l("Are you sure you want to remove this member's access?")&&(await n.delete(r,e.authorId),c())}const{loading:f,result:p,refetch:c}=g(()=>n.list(r)),y=I(()=>{var e,i;return{columns:[{name:"Email",align:"left"},{name:"Role"},{name:"",align:"right"}],rows:(i=(e=p.value)==null?void 0:e.map(t=>({key:t.email,cells:[{type:"text",text:t.email},{type:"text",text:t.role},{type:"actions",actions:[{icon:C,label:"Remove access",onClick:()=>u(t),dangerous:!0}]}]})))!=null?i:[]}});return(e,i)=>(x(),k(b,{"entity-name":"editors",loading:v(f),title:"Organization editors",description:"List all organization editors.","empty-title":"No editors yet",table:y.value,"create-button-text":"Add editors",fields:m,onCreate:d},null,8,["loading","table"]))}});export{K as default}; -//# sourceMappingURL=Editors.ca763c86.js.map +import{C as b}from"./CrudView.b65b5675.js";import{a as l}from"./ant-design.38477595.js";import{a as g}from"./asyncComputed.295e9e03.js";import{d as w,ed as _,eq as h,f as I,c as k,u as v,o as x,er as C}from"./vue-router.3fd92176.js";import{a as z}from"./gateway.c564a1cf.js";import{M as n}from"./member.863895af.js";import"./tables.3aa20dd6.js";import"./router.59916c0d.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="e5c9eba2-a712-4e7a-bdee-2eb6ef19abc8",o._sentryDebugIdIdentifier="sentry-dbid-e5c9eba2-a712-4e7a-bdee-2eb6ef19abc8")}catch{}})();const K=w({__name:"Editors",setup(o){const a=_(),s=h(),r=a.params.organizationId,m=[{key:"email",label:"Email"}],d=async e=>{await n.create(r,e.email),c()};async function u(e){var t;if(((t=z.getAuthor())==null?void 0:t.claims.email)===e.email&&await l("You are about to remove your own access. You won't be able to access this organization anymore. Are you sure?")){await n.delete(r,e.authorId),await s.push({name:"organizations"});return}await l("Are you sure you want to remove this member's access?")&&(await n.delete(r,e.authorId),c())}const{loading:f,result:p,refetch:c}=g(()=>n.list(r)),y=I(()=>{var e,i;return{columns:[{name:"Email",align:"left"},{name:"Role"},{name:"",align:"right"}],rows:(i=(e=p.value)==null?void 0:e.map(t=>({key:t.email,cells:[{type:"text",text:t.email},{type:"text",text:t.role},{type:"actions",actions:[{icon:C,label:"Remove access",onClick:()=>u(t),dangerous:!0}]}]})))!=null?i:[]}});return(e,i)=>(x(),k(b,{"entity-name":"editors",loading:v(f),title:"Organization editors",description:"List all organization editors.","empty-title":"No editors yet",table:y.value,"create-button-text":"Add editors",fields:m,onCreate:d},null,8,["loading","table"]))}});export{K as default}; +//# sourceMappingURL=Editors.7a187912.js.map diff --git a/abstra_statics/dist/assets/EnvVars.5c1c7fef.js b/abstra_statics/dist/assets/EnvVars.5c1c7fef.js deleted file mode 100644 index 856a1d713..000000000 --- a/abstra_statics/dist/assets/EnvVars.5c1c7fef.js +++ /dev/null @@ -1,2 +0,0 @@ -import{_ as n,C as p}from"./View.vue_vue_type_script_setup_true_lang.08004338.js";import{d as i,ed as s,c as a,u as m,o as d}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import"./popupNotifcation.d2ca3d78.js";import"./fetch.492045fb.js";import"./record.34d5b504.js";import"./SaveButton.8d79c51b.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./CrudView.e4956a79.js";import"./router.87582bcc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";import"./PhRocketLaunch.vue.82bfbb41.js";import"./asyncComputed.d0f14ed3.js";import"./polling.ce5b4e64.js";import"./PhPencil.vue.f2283e7d.js";import"./index.e5bdb21b.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="6668716e-fc30-4bb3-80a6-fd76a4842808",o._sentryDebugIdIdentifier="sentry-dbid-6668716e-fc30-4bb3-80a6-fd76a4842808")}catch{}})();const z=i({__name:"EnvVars",setup(o){const e=s().params.projectId,t=new p(e);return(c,f)=>(d(),a(n,{"env-var-repository":m(t),mode:"console"},null,8,["env-var-repository"]))}});export{z as default}; -//# sourceMappingURL=EnvVars.5c1c7fef.js.map diff --git a/abstra_statics/dist/assets/EnvVars.eccb5753.js b/abstra_statics/dist/assets/EnvVars.eccb5753.js new file mode 100644 index 000000000..dda4712da --- /dev/null +++ b/abstra_statics/dist/assets/EnvVars.eccb5753.js @@ -0,0 +1,2 @@ +import{_ as n,C as p}from"./View.vue_vue_type_script_setup_true_lang.3ec7f61f.js";import{d as i,ed as s,c as m,u as a,o as f}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import"./popupNotifcation.0e86d6a8.js";import"./fetch.8c5b12c2.js";import"./record.cbb43e89.js";import"./SaveButton.6d0d3fb7.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./CrudView.b65b5675.js";import"./router.59916c0d.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";import"./PhRocketLaunch.vue.c412030e.js";import"./asyncComputed.295e9e03.js";import"./polling.4e30c061.js";import"./PhPencil.vue.a2604470.js";import"./index.4fbbd10e.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="0476fe04-6e74-4394-8605-fe75859afff8",o._sentryDebugIdIdentifier="sentry-dbid-0476fe04-6e74-4394-8605-fe75859afff8")}catch{}})();const z=i({__name:"EnvVars",setup(o){const r=s().params.projectId,t=new p(r);return(d,c)=>(f(),m(n,{"env-var-repository":a(t),mode:"console"},null,8,["env-var-repository"]))}});export{z as default}; +//# sourceMappingURL=EnvVars.eccb5753.js.map diff --git a/abstra_statics/dist/assets/EnvVarsEditor.178020b9.js b/abstra_statics/dist/assets/EnvVarsEditor.178020b9.js new file mode 100644 index 000000000..915aa5709 --- /dev/null +++ b/abstra_statics/dist/assets/EnvVarsEditor.178020b9.js @@ -0,0 +1,2 @@ +import{d as i,c as p,w as n,o as d,b as m,u as t}from"./vue-router.3fd92176.js";import"./editor.519c2dc1.js";import{W as s}from"./workspaces.b456ec6a.js";import{C as a}from"./ContentLayout.72beb65c.js";import{_ as f,E as c}from"./View.vue_vue_type_script_setup_true_lang.3ec7f61f.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./asyncComputed.295e9e03.js";import"./record.cbb43e89.js";import"./gateway.c564a1cf.js";import"./popupNotifcation.0e86d6a8.js";import"./fetch.8c5b12c2.js";import"./SaveButton.6d0d3fb7.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./CrudView.b65b5675.js";import"./router.59916c0d.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";import"./PhRocketLaunch.vue.c412030e.js";import"./polling.4e30c061.js";import"./PhPencil.vue.a2604470.js";import"./index.4fbbd10e.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="1f4dbb8e-4cfd-4f44-9bc5-e467bdf4db04",o._sentryDebugIdIdentifier="sentry-dbid-1f4dbb8e-4cfd-4f44-9bc5-e467bdf4db04")}catch{}})();const F=i({__name:"EnvVarsEditor",setup(o){const r=new c;return(e,b)=>(d(),p(a,null,{default:n(()=>[m(f,{"env-var-repository":t(r),mode:"editor","file-opender":t(s)},null,8,["env-var-repository","file-opender"])]),_:1}))}});export{F as default}; +//# sourceMappingURL=EnvVarsEditor.178020b9.js.map diff --git a/abstra_statics/dist/assets/EnvVarsEditor.a36c5b80.js b/abstra_statics/dist/assets/EnvVarsEditor.a36c5b80.js deleted file mode 100644 index bab1c6d94..000000000 --- a/abstra_statics/dist/assets/EnvVarsEditor.a36c5b80.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as i,c as p,w as n,o as m,b as s,u as e}from"./vue-router.4c13f3d4.js";import"./editor.49995faa.js";import{W as a}from"./workspaces.1ee4ae8d.js";import{C as d}from"./ContentLayout.f8da2f52.js";import{_ as f,E as c}from"./View.vue_vue_type_script_setup_true_lang.08004338.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./asyncComputed.d0f14ed3.js";import"./record.34d5b504.js";import"./gateway.e77556e5.js";import"./popupNotifcation.d2ca3d78.js";import"./fetch.492045fb.js";import"./SaveButton.8d79c51b.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./CrudView.e4956a79.js";import"./router.87582bcc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";import"./PhRocketLaunch.vue.82bfbb41.js";import"./polling.ce5b4e64.js";import"./PhPencil.vue.f2283e7d.js";import"./index.e5bdb21b.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="7581e227-338e-48b5-9f2c-81a33dfe5880",o._sentryDebugIdIdentifier="sentry-dbid-7581e227-338e-48b5-9f2c-81a33dfe5880")}catch{}})();const F=i({__name:"EnvVarsEditor",setup(o){const r=new c;return(t,u)=>(m(),p(d,null,{default:n(()=>[s(f,{"env-var-repository":e(r),mode:"editor","file-opender":e(a)},null,8,["env-var-repository","file-opender"])]),_:1}))}});export{F as default}; -//# sourceMappingURL=EnvVarsEditor.a36c5b80.js.map diff --git a/abstra_statics/dist/assets/Error.e3013f1e.js b/abstra_statics/dist/assets/Error.dc6fbe06.js similarity index 51% rename from abstra_statics/dist/assets/Error.e3013f1e.js rename to abstra_statics/dist/assets/Error.dc6fbe06.js index ce20be0de..b66c8731e 100644 --- a/abstra_statics/dist/assets/Error.e3013f1e.js +++ b/abstra_statics/dist/assets/Error.dc6fbe06.js @@ -1,2 +1,2 @@ -import{L as k}from"./Logo.1a35ae4d.js";import{d as v,ed as A,eq as x,f as w,X as I,b as c,w as a,u as e,c as f,R as p,o as l,aF as s,ec as i,db as C,d7 as m,bS as N,a as B,d8 as D,eV as o,$ as T}from"./vue-router.4c13f3d4.js";import{u as V}from"./workspaceStore.ae240ce8.js";import{C as E}from"./Card.b3c66431.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./TabPane.9889f7a8.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new H().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="5fd4cff1-c67e-4b5c-823a-fbe6aac74f0e",r._sentryDebugIdIdentifier="sentry-dbid-5fd4cff1-c67e-4b5c-823a-fbe6aac74f0e")}catch{}})();const S={class:"inner-content"},L={class:"card-content"},R=v({__name:"Error",setup(r){const d=A(),g=x(),u=V(),b=w(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=w(()=>{const{status:t}=d.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,title:o.translate("i18n_access_denied"),message:o.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:o.translate("i18n_internal_error"),message:o.translate("i18n_internal_error_message"),showAd:!1}}}),h=()=>{g.push({name:"playerHome"})};return(t,_)=>(l(),I("div",S,[c(e(C),null,{default:a(()=>[s(i(n.value.title),1)]),_:1}),c(e(m),{class:"message"},{default:a(()=>[s(i(n.value.message),1)]),_:1}),n.value.action?(l(),f(e(N),{key:0,type:"link",onClick:h},{default:a(()=>[s(i(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(l(),f(e(E),{key:1,bordered:!1,class:"card"},{default:a(()=>[B("div",L,[c(k,{style:{"margin-bottom":"10px"}}),c(e(m),null,{default:a(()=>[s("This page is part of "+i(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(l(),f(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),c(e(D),{href:"https://abstra.io"},{default:a(()=>[s("here")]),_:1}),s(".")]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}});const H=T(R,[["__scopeId","data-v-623dafe1"]]);export{H as default}; -//# sourceMappingURL=Error.e3013f1e.js.map +import{L as k}from"./Logo.6e947620.js";import{d as v,ed as A,eq as x,f as w,X as I,b as d,w as a,u as e,c as f,R as p,o as l,aF as s,ec as i,db as C,d7 as m,bS as N,a as B,d8 as D,eV as o,$ as T}from"./vue-router.3fd92176.js";import{u as V}from"./workspaceStore.411ef1fe.js";import{C as E}from"./Card.0ce127d8.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./TabPane.d0ca7ad5.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new H().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="77ddadb7-f327-4fe7-89a7-5a6983bb2b88",r._sentryDebugIdIdentifier="sentry-dbid-77ddadb7-f327-4fe7-89a7-5a6983bb2b88")}catch{}})();const S={class:"inner-content"},L={class:"card-content"},R=v({__name:"Error",setup(r){const c=A(),b=x(),u=V(),g=w(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=w(()=>{const{status:t}=c.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,title:o.translate("i18n_access_denied"),message:o.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:o.translate("i18n_internal_error"),message:o.translate("i18n_internal_error_message"),showAd:!1}}}),h=()=>{b.push({name:"playerHome"})};return(t,_)=>(l(),I("div",S,[d(e(C),null,{default:a(()=>[s(i(n.value.title),1)]),_:1}),d(e(m),{class:"message"},{default:a(()=>[s(i(n.value.message),1)]),_:1}),n.value.action?(l(),f(e(N),{key:0,type:"link",onClick:h},{default:a(()=>[s(i(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(l(),f(e(E),{key:1,bordered:!1,class:"card"},{default:a(()=>[B("div",L,[d(k,{style:{"margin-bottom":"10px"}}),d(e(m),null,{default:a(()=>[s("This page is part of "+i(g.value?`the ${g.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(l(),f(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),d(e(D),{href:"https://abstra.io"},{default:a(()=>[s("here")]),_:1}),s(".")]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}});const H=T(R,[["__scopeId","data-v-623dafe1"]]);export{H as default}; +//# sourceMappingURL=Error.dc6fbe06.js.map diff --git a/abstra_statics/dist/assets/ExclamationCircleOutlined.379cd3ee.js b/abstra_statics/dist/assets/ExclamationCircleOutlined.379cd3ee.js new file mode 100644 index 000000000..b80fca386 --- /dev/null +++ b/abstra_statics/dist/assets/ExclamationCircleOutlined.379cd3ee.js @@ -0,0 +1,2 @@ +import{b as l,eh as o,eE as f}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="495e4cc2-fca4-40de-a2b9-26be378b3f57",e._sentryDebugIdIdentifier="sentry-dbid-495e4cc2-fca4-40de-a2b9-26be378b3f57")}catch{}})();function c(e){for(var t=1;tn[s]===void 0&&delete n[s]);const i=await y.get(`projects/${e}/executions`,n);return{executions:i.executions.map(s=>m.from(s)),totalCount:i.totalCount}}async fetchLogs(e,t){const n=await y.get(`projects/${e}/executions/${t}/logs`);return p.from(n)}}class p{constructor(e){this.dto=e}static from(e){return new p(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class m{constructor(e){this.dto=e}static from(e){return new m(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){return this.dto.buildId}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}const z=j({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(o(),a(c(D),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(o(),a(c(k),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(o(),a(c(x),{key:2,style:{color:"#f69220"}})):e.status==="running"?(o(),a(c(P),{key:3})):S("",!0)}});export{L as E,z as _,B as e}; -//# sourceMappingURL=ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.f2f9cb8f.js.map +import{C as y}from"./gateway.c564a1cf.js";import{b as l,eh as u,f2 as w,f3 as I,d as j,o,c as a,u as c,R as S}from"./vue-router.3fd92176.js";import{L as P}from"./LoadingOutlined.dad6ee6e.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="d78d2b1f-2daa-4089-a247-87873282fa3c",r._sentryDebugIdIdentifier="sentry-dbid-d78d2b1f-2daa-4089-a247-87873282fa3c")}catch{}})();var F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const _=F;function C(r){for(var e=1;en[s]===void 0&&delete n[s]);const i=await y.get(`projects/${e}/executions`,n);return{executions:i.executions.map(s=>m.from(s)),totalCount:i.totalCount}}async fetchLogs(e,t){const n=await y.get(`projects/${e}/executions/${t}/logs`);return p.from(n)}}class p{constructor(e){this.dto=e}static from(e){return new p(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class m{constructor(e){this.dto=e}static from(e){return new m(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){return this.dto.buildId}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}const z=j({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(o(),a(c(D),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(o(),a(c(k),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(o(),a(c(x),{key:2,style:{color:"#f69220"}})):e.status==="running"?(o(),a(c(P),{key:3})):S("",!0)}});export{L as E,z as _,B as e}; +//# sourceMappingURL=ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.19012e78.js.map diff --git a/abstra_statics/dist/assets/Files.068a9c51.js b/abstra_statics/dist/assets/Files.e21d5aea.js similarity index 60% rename from abstra_statics/dist/assets/Files.068a9c51.js rename to abstra_statics/dist/assets/Files.e21d5aea.js index 1646cd9a3..8f8c98d75 100644 --- a/abstra_statics/dist/assets/Files.068a9c51.js +++ b/abstra_statics/dist/assets/Files.e21d5aea.js @@ -1,2 +1,2 @@ -import{_ as q}from"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import{C as Q}from"./ContentLayout.f8da2f52.js";import{p as W}from"./popupNotifcation.d2ca3d78.js";import{a as X}from"./ant-design.57cbe6fb.js";import{a as J}from"./asyncComputed.d0f14ed3.js";import{d as R,B as I,f as A,o as c,X as g,Z as T,R as w,eb as Y,a as f,b as i,eh as L,f5 as K,ed as ee,e as te,c as _,w as s,aF as b,u as o,db as ae,d9 as x,bS as $,ec as M,d2 as ne,bQ as oe,by as re,bw as z,da as B,cw as le,el as ie,em as se,$ as ce}from"./vue-router.4c13f3d4.js";import{C as k}from"./gateway.e77556e5.js";import"./tables.e9d41f69.js";import{D as N}from"./DeleteOutlined.a943fe4d.js";import{C as ue}from"./Card.b3c66431.js";import"./BookOutlined.a8460802.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./TabPane.9889f7a8.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="bbea9439-c6ca-4c55-81e8-5b3e83ea7c55",a._sentryDebugIdIdentifier="sentry-dbid-bbea9439-c6ca-4c55-81e8-5b3e83ea7c55")}catch{}})();var de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const pe=de,fe=["width","height","fill","transform"],me={key:0},ye=f("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"},null,-1),he=[ye],ge={key:1},ve=f("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"},null,-1),be=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),_e=[ve,be],we={key:2},Ae=f("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"},null,-1),Oe=[Ae],ke={key:3},Ce=f("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"},null,-1),je=[Ce],Ie={key:4},Ze=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),$e=[Ze],Me={key:5},De=f("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"},null,-1),Se=[De],Pe={name:"PhDotsThree"},Ue=R({...Pe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,n=I("weight","regular"),r=I("size","1em"),p=I("color","currentColor"),Z=I("mirrored",!1),m=A(()=>{var u;return(u=e.weight)!=null?u:n}),O=A(()=>{var u;return(u=e.size)!=null?u:r}),y=A(()=>{var u;return(u=e.color)!=null?u:p}),C=A(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:Z?"scale(-1, 1)":void 0);return(u,j)=>(c(),g("svg",Y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:O.value,height:O.value,fill:y.value,transform:C.value},u.$attrs),[T(u.$slots,"default"),m.value==="bold"?(c(),g("g",me,he)):m.value==="duotone"?(c(),g("g",ge,_e)):m.value==="fill"?(c(),g("g",we,Oe)):m.value==="light"?(c(),g("g",ke,je)):m.value==="regular"?(c(),g("g",Ie,$e)):m.value==="thin"?(c(),g("g",Me,Se)):w("",!0)],16,fe))}});function V(a){for(var e=1;e(ie("data-v-a3a8b085"),a=a(),se(),a),Ne=Be(()=>f("br",null,null,-1)),Ve={key:0},Ee={key:0,class:"file-size"},He={class:"action-item"},Re={class:"action-item"},Te=R({__name:"Files",setup(a){const n=ee().params.projectId,r=P.fromProjectId(n),{loading:p,result:Z,refetch:m}=J(()=>r.list());function O(t){var l,d;return{key:t.path,title:t.name,isLeaf:t.type==="file",file:t,children:t.type==="file"?[]:(d=(l=t.children)==null?void 0:l.map(O))!=null?d:[]}}const y=A(()=>{var t;return(t=Z.value)==null?void 0:t.map(O)}),C=t=>{var l,d;return t.isLeaf?1:(d=(l=t.children)==null?void 0:l.reduce((h,v)=>h+C(v),0))!=null?d:0},u=A(()=>y.value?y==null?void 0:y.value.reduce((t,l)=>t+C(l),0):0),j=te(!1);function U(t){if(t&&t.type==="file")return;const l=document.createElement("input");l.type="file",l.onchange=async()=>{var h;const d=(h=l.files)==null?void 0:h[0];if(!!d)try{j.value=!0,await r.upload(d,t==null?void 0:t.path),await m()}catch{W("Failed to upload file","File already exists")}finally{j.value=!1}},l.click()}async function G(t){if(!t)return;const l=await r.download(t.path),d=document.createElement("a");d.href=URL.createObjectURL(l),d.download=t.name,d.click()}async function F(t){if(!t)return;const l="Are you sure you want to delete this "+(t.type==="file"?"file":"directory and all its contents")+"?";await X(l)&&(await r.delete(t.path),await m())}return(t,l)=>(c(),_(Q,null,{default:s(()=>[i(o(ae),null,{default:s(()=>[b("Files")]),_:1}),i(o(x),null,{default:s(()=>[b(" Here you can upload, download and delete files in your persistent dir."),Ne,b(" Files can be used in your scripts. "),i(q,{path:"cloud/files"}),T(t.$slots,"description",{},void 0,!0)]),_:3}),i(o($),{type:"primary",loading:j.value,onClick:l[0]||(l[0]=d=>U())},{default:s(()=>[i(o(H)),b(" Upload ")]),_:1},8,["loading"]),i(o(ue),null,{default:s(()=>[u.value>0?(c(),_(o(x),{key:0},{default:s(()=>[f("b",null,[b(M(u.value)+" file",1),u.value!==1?(c(),g("span",Ve,"s")):w("",!0)])]),_:1})):w("",!0),y.value&&y.value.length>0?(c(),_(o(ne),{key:1,"tree-data":y.value,selectable:!1},{title:s(({title:d,isLeaf:h,file:v})=>[f("span",null,[b(M(d)+" ",1),h?(c(),g("span",Ee,"("+M(v.size)+")",1)):w("",!0)]),h?(c(),_(o($),{key:0,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>G(v)},{default:s(()=>[i(o(xe))]),_:2},1032,["onClick"])):w("",!0),h?(c(),_(o($),{key:1,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>F(v)},{default:s(()=>[i(o(N))]),_:2},1032,["onClick"])):w("",!0),h?w("",!0):(c(),_(o(oe),{key:2},{overlay:s(()=>[i(o(re),{disabled:o(p)},{default:s(()=>[i(o(z),{danger:!1,onClick:()=>U(v)},{default:s(()=>[f("div",He,[i(o(H)),i(o(B),null,{default:s(()=>[b(" Upload ")]),_:1})])]),_:2},1032,["onClick"]),i(o(z),{danger:!1,onClick:()=>F(v)},{default:s(()=>[f("div",Re,[i(o(N)),i(o(B),null,{default:s(()=>[b(" Delete ")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1032,["disabled"])]),default:s(()=>[i(o(Ue),{style:{cursor:"pointer",float:"inline-end"},size:"25px"})]),_:2},1024))]),_:1},8,["tree-data"])):(c(),_(o(le),{key:2,description:o(p)?"Loading...":"No files"},null,8,["description"]))]),_:1})]),_:3}))}});const rt=ce(Te,[["__scopeId","data-v-a3a8b085"]]);export{rt as default}; -//# sourceMappingURL=Files.068a9c51.js.map +import{_ as q}from"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import{C as Q}from"./ContentLayout.72beb65c.js";import{p as W}from"./popupNotifcation.0e86d6a8.js";import{a as X}from"./ant-design.38477595.js";import{a as J}from"./asyncComputed.295e9e03.js";import{d as R,B as I,f as A,o as d,X as g,Z as T,R as w,eb as Y,a as f,b as i,eh as L,f5 as K,ed as ee,e as te,c as b,w as s,aF as _,u as o,db as ae,d9 as x,bS as $,ec as M,d2 as ne,bQ as oe,by as re,bw as z,da as B,cw as le,el as ie,em as se,$ as de}from"./vue-router.3fd92176.js";import{C as k}from"./gateway.c564a1cf.js";import"./tables.3aa20dd6.js";import{D as N}from"./DeleteOutlined.a95bba08.js";import{C as ce}from"./Card.0ce127d8.js";import"./BookOutlined.5f7ad9dc.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./TabPane.d0ca7ad5.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="c391f136-d313-4ab1-9d5c-ed1f2c9caeb0",a._sentryDebugIdIdentifier="sentry-dbid-c391f136-d313-4ab1-9d5c-ed1f2c9caeb0")}catch{}})();var ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const pe=ue,fe=["width","height","fill","transform"],me={key:0},ye=f("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"},null,-1),he=[ye],ge={key:1},ve=f("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"},null,-1),_e=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),be=[ve,_e],we={key:2},Ae=f("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"},null,-1),Oe=[Ae],ke={key:3},Ce=f("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"},null,-1),je=[Ce],Ie={key:4},Ze=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),$e=[Ze],Me={key:5},De=f("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"},null,-1),Se=[De],Pe={name:"PhDotsThree"},Ue=R({...Pe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,n=I("weight","regular"),r=I("size","1em"),p=I("color","currentColor"),Z=I("mirrored",!1),m=A(()=>{var c;return(c=e.weight)!=null?c:n}),O=A(()=>{var c;return(c=e.size)!=null?c:r}),y=A(()=>{var c;return(c=e.color)!=null?c:p}),C=A(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:Z?"scale(-1, 1)":void 0);return(c,j)=>(d(),g("svg",Y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:O.value,height:O.value,fill:y.value,transform:C.value},c.$attrs),[T(c.$slots,"default"),m.value==="bold"?(d(),g("g",me,he)):m.value==="duotone"?(d(),g("g",ge,be)):m.value==="fill"?(d(),g("g",we,Oe)):m.value==="light"?(d(),g("g",ke,je)):m.value==="regular"?(d(),g("g",Ie,$e)):m.value==="thin"?(d(),g("g",Me,Se)):w("",!0)],16,fe))}});function V(a){for(var e=1;e(ie("data-v-a3a8b085"),a=a(),se(),a),Ne=Be(()=>f("br",null,null,-1)),Ve={key:0},Ee={key:0,class:"file-size"},He={class:"action-item"},Re={class:"action-item"},Te=R({__name:"Files",setup(a){const n=ee().params.projectId,r=P.fromProjectId(n),{loading:p,result:Z,refetch:m}=J(()=>r.list());function O(t){var l,u;return{key:t.path,title:t.name,isLeaf:t.type==="file",file:t,children:t.type==="file"?[]:(u=(l=t.children)==null?void 0:l.map(O))!=null?u:[]}}const y=A(()=>{var t;return(t=Z.value)==null?void 0:t.map(O)}),C=t=>{var l,u;return t.isLeaf?1:(u=(l=t.children)==null?void 0:l.reduce((h,v)=>h+C(v),0))!=null?u:0},c=A(()=>y.value?y==null?void 0:y.value.reduce((t,l)=>t+C(l),0):0),j=te(!1);function U(t){if(t&&t.type==="file")return;const l=document.createElement("input");l.type="file",l.onchange=async()=>{var h;const u=(h=l.files)==null?void 0:h[0];if(!!u)try{j.value=!0,await r.upload(u,t==null?void 0:t.path),await m()}catch{W("Failed to upload file","File already exists")}finally{j.value=!1}},l.click()}async function G(t){if(!t)return;const l=await r.download(t.path),u=document.createElement("a");u.href=URL.createObjectURL(l),u.download=t.name,u.click()}async function F(t){if(!t)return;const l="Are you sure you want to delete this "+(t.type==="file"?"file":"directory and all its contents")+"?";await X(l)&&(await r.delete(t.path),await m())}return(t,l)=>(d(),b(Q,null,{default:s(()=>[i(o(ae),null,{default:s(()=>[_("Files")]),_:1}),i(o(x),null,{default:s(()=>[_(" Here you can upload, download and delete files in your persistent dir."),Ne,_(" Files can be used in your scripts. "),i(q,{path:"cloud/files"}),T(t.$slots,"description",{},void 0,!0)]),_:3}),i(o($),{type:"primary",loading:j.value,onClick:l[0]||(l[0]=u=>U())},{default:s(()=>[i(o(H)),_(" Upload ")]),_:1},8,["loading"]),i(o(ce),null,{default:s(()=>[c.value>0?(d(),b(o(x),{key:0},{default:s(()=>[f("b",null,[_(M(c.value)+" file",1),c.value!==1?(d(),g("span",Ve,"s")):w("",!0)])]),_:1})):w("",!0),y.value&&y.value.length>0?(d(),b(o(ne),{key:1,"tree-data":y.value,selectable:!1},{title:s(({title:u,isLeaf:h,file:v})=>[f("span",null,[_(M(u)+" ",1),h?(d(),g("span",Ee,"("+M(v.size)+")",1)):w("",!0)]),h?(d(),b(o($),{key:0,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>G(v)},{default:s(()=>[i(o(xe))]),_:2},1032,["onClick"])):w("",!0),h?(d(),b(o($),{key:1,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>F(v)},{default:s(()=>[i(o(N))]),_:2},1032,["onClick"])):w("",!0),h?w("",!0):(d(),b(o(oe),{key:2},{overlay:s(()=>[i(o(re),{disabled:o(p)},{default:s(()=>[i(o(z),{danger:!1,onClick:()=>U(v)},{default:s(()=>[f("div",He,[i(o(H)),i(o(B),null,{default:s(()=>[_(" Upload ")]),_:1})])]),_:2},1032,["onClick"]),i(o(z),{danger:!1,onClick:()=>F(v)},{default:s(()=>[f("div",Re,[i(o(N)),i(o(B),null,{default:s(()=>[_(" Delete ")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1032,["disabled"])]),default:s(()=>[i(o(Ue),{style:{cursor:"pointer",float:"inline-end"},size:"25px"})]),_:2},1024))]),_:1},8,["tree-data"])):(d(),b(o(le),{key:2,description:o(p)?"Loading...":"No files"},null,8,["description"]))]),_:1})]),_:3}))}});const rt=de(Te,[["__scopeId","data-v-a3a8b085"]]);export{rt as default}; +//# sourceMappingURL=Files.e21d5aea.js.map diff --git a/abstra_statics/dist/assets/Form.980b0323.js b/abstra_statics/dist/assets/Form.20bbf0bc.js similarity index 53% rename from abstra_statics/dist/assets/Form.980b0323.js rename to abstra_statics/dist/assets/Form.20bbf0bc.js index e7c1dd54d..4f9c67679 100644 --- a/abstra_statics/dist/assets/Form.980b0323.js +++ b/abstra_statics/dist/assets/Form.20bbf0bc.js @@ -1,2 +1,2 @@ -import{A as S}from"./api.a5810267.js";import{b as I,j as U}from"./workspaceStore.ae240ce8.js";import{b as A,r as T,c as x,d as W}from"./FormRunner.2728cecd.js";import{d as L,ed as V,eq as K,D as N,e as w,g as B,f as q,aK as M,W as j,ag as G,u as t,X as P,b as p,c as D,w as y,R as X,o as _,aF as R,db as $,d7 as z,df as H,$ as J}from"./vue-router.4c13f3d4.js";import{a as O}from"./asyncComputed.d0f14ed3.js";import{u as k}from"./uuid.27635aee.js";import{L as Q}from"./CircularLoading.b40e14c8.js";import"./fetch.492045fb.js";import"./metadata.d6f3a171.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./Login.vue_vue_type_script_setup_true_lang.8e55196d.js";import"./index.e5bdb21b.js";import"./PhArrowClockwise.vue.5c4db05c.js";import"./Steps.2273c005.js";import"./Watermark.31f43e38.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[o]="c9031671-90a6-4cfc-ac62-45010522b1c0",l._sentryDebugIdIdentifier="sentry-dbid-c9031671-90a6-4cfc-ac62-45010522b1c0")}catch{}})();const Y={key:0,class:"loading"},Z=L({__name:"Form",setup(l){const o=V(),u=K(),h=N({playerKey:k()}),E=I(),c=w(null),v=w(!1);B(o,()=>{o.name==="form"&&C()});const{loading:m,result:r,error:g,refetch:C}=O(async()=>{h.playerKey=k();const a=o.path.slice(1),e=await U(a);if(!e){u.push({name:"error",params:{status:"404"}});return}const n=o.query[S];if(!e.isInitial&&!n){v.value=!0;return}const s=new x({formRunnerData:e,logService:null,connectionManager:new W(e.id,"player",o.query),onRedirect:b,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:d=>c.value=d}),i=s.getState();return c.value=i.formState,{runnerData:e,controller:s}}),F=q(()=>{const a=!m,e=!!g,n=!r||c.value===null;return a&&(e||n)});M(()=>{var a,e,n,s,i;F.value&&u.push({name:"error",params:{status:"500"}}),!!((a=r.value)!=null&&a.runnerData)&&(e=r.value)!=null&&e.runnerData&&(document.title=(i=(n=r.value)==null?void 0:n.runnerData.welcomeTitle)!=null?i:(s=r.value)==null?void 0:s.runnerData.title)});function b(a,e){window.removeEventListener("beforeunload",f),T("player",u,a,e)}j(async()=>{window.addEventListener("beforeunload",f)}),G(()=>{window.removeEventListener("beforeunload",f)});const f=a=>{var e;if((e=r.value)!=null&&e.controller.handleCloseAttempt())return a.preventDefault(),""};return(a,e)=>{var n,s,i,d;return t(m)?(_(),P("div",Y,[p(Q)])):v.value?(_(),D(t(H),{key:1,class:"unset-thread-container",vertical:""},{default:y(()=>[p(t($),null,{default:y(()=>[R("Cannot open this link directly")]),_:1}),p(t(z),{class:"message"},{default:y(()=>[R(" This form must be accessed within a thread, either by clicking on it by notification email or the Kanban board ")]),_:1})]),_:1})):t(r)&&t(r).runnerData&&c.value&&!t(g)&&!t(m)?(_(),D(A,{key:h.playerKey,"form-runner-data":t(r).runnerData,"form-state":c.value,"is-preview":!1,"user-email":(n=t(E).user)==null?void 0:n.claims.email,onRedirect:b,onActionClicked:(s=t(r))==null?void 0:s.controller.handleActionClick,onUpdateWidgetErrors:(i=t(r))==null?void 0:i.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(d=t(r))==null?void 0:d.controller.updateWidgetValue},null,8,["form-runner-data","form-state","user-email","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue"])):X("",!0)}}});const be=J(Z,[["__scopeId","data-v-bd0f6275"]]);export{be as default}; -//# sourceMappingURL=Form.980b0323.js.map +import{A as S}from"./api.854a5e4c.js";import{b as I,j as U}from"./workspaceStore.411ef1fe.js";import{b as A,r as T,c as x,d as W}from"./FormRunner.7499affa.js";import{d as L,ed as V,eq as K,D as N,e as w,g as B,f as q,aK as M,W as j,ag as G,u as t,X as P,b as p,c as D,w as y,R as X,o as _,aF as R,db as $,d7 as z,df as H,$ as J}from"./vue-router.3fd92176.js";import{a as O}from"./asyncComputed.295e9e03.js";import{u as k}from"./uuid.06ef1e24.js";import{L as Q}from"./CircularLoading.b920c29a.js";import"./fetch.8c5b12c2.js";import"./metadata.789df59c.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./Login.vue_vue_type_script_setup_true_lang.8de09e2d.js";import"./index.4fbbd10e.js";import"./PhArrowClockwise.vue.2725755a.js";import"./Steps.767c106d.js";import"./Watermark.43182479.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[o]="c799b524-0c92-4aa7-861f-8e6edc84ebfe",l._sentryDebugIdIdentifier="sentry-dbid-c799b524-0c92-4aa7-861f-8e6edc84ebfe")}catch{}})();const Y={key:0,class:"loading"},Z=L({__name:"Form",setup(l){const o=V(),c=K(),h=N({playerKey:k()}),E=I(),u=w(null),v=w(!1);B(o,()=>{o.name==="form"&&C()});const{loading:m,result:r,error:g,refetch:C}=O(async()=>{h.playerKey=k();const a=o.path.slice(1),e=await U(a);if(!e){c.push({name:"error",params:{status:"404"}});return}const n=o.query[S];if(!e.isInitial&&!n){v.value=!0;return}const s=new x({formRunnerData:e,logService:null,connectionManager:new W(e.id,"player",o.query),onRedirect:b,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:d=>u.value=d}),i=s.getState();return u.value=i.formState,{runnerData:e,controller:s}}),F=q(()=>{const a=!m,e=!!g,n=!r||u.value===null;return a&&(e||n)});M(()=>{var a,e,n,s,i;F.value&&c.push({name:"error",params:{status:"500"}}),!!((a=r.value)!=null&&a.runnerData)&&(e=r.value)!=null&&e.runnerData&&(document.title=(i=(n=r.value)==null?void 0:n.runnerData.welcomeTitle)!=null?i:(s=r.value)==null?void 0:s.runnerData.title)});function b(a,e){window.removeEventListener("beforeunload",f),T("player",c,a,e)}j(async()=>{window.addEventListener("beforeunload",f)}),G(()=>{window.removeEventListener("beforeunload",f)});const f=a=>{var e;if((e=r.value)!=null&&e.controller.handleCloseAttempt())return a.preventDefault(),""};return(a,e)=>{var n,s,i,d;return t(m)?(_(),P("div",Y,[p(Q)])):v.value?(_(),D(t(H),{key:1,class:"unset-thread-container",vertical:""},{default:y(()=>[p(t($),null,{default:y(()=>[R("Cannot open this link directly")]),_:1}),p(t(z),{class:"message"},{default:y(()=>[R(" This form must be accessed within a thread, either by clicking on it by notification email or the Kanban board ")]),_:1})]),_:1})):t(r)&&t(r).runnerData&&u.value&&!t(g)&&!t(m)?(_(),D(A,{key:h.playerKey,"form-runner-data":t(r).runnerData,"form-state":u.value,"is-preview":!1,"user-email":(n=t(E).user)==null?void 0:n.claims.email,onRedirect:b,onActionClicked:(s=t(r))==null?void 0:s.controller.handleActionClick,onUpdateWidgetErrors:(i=t(r))==null?void 0:i.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(d=t(r))==null?void 0:d.controller.updateWidgetValue},null,8,["form-runner-data","form-state","user-email","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue"])):X("",!0)}}});const be=J(Z,[["__scopeId","data-v-bd0f6275"]]);export{be as default}; +//# sourceMappingURL=Form.20bbf0bc.js.map diff --git a/abstra_statics/dist/assets/FormEditor.ed04179f.js b/abstra_statics/dist/assets/FormEditor.9b532b4a.js similarity index 87% rename from abstra_statics/dist/assets/FormEditor.ed04179f.js rename to abstra_statics/dist/assets/FormEditor.9b532b4a.js index fe9722d6e..64589f24f 100644 --- a/abstra_statics/dist/assets/FormEditor.ed04179f.js +++ b/abstra_statics/dist/assets/FormEditor.9b532b4a.js @@ -1,2 +1,2 @@ -import{A as q}from"./api.a5810267.js";import{P as Fe}from"./PlayerNavbar.78adf027.js";import{b as Ae,u as Te}from"./workspaceStore.ae240ce8.js";import{B as Me}from"./BaseLayout.e1793d5b.js";import{R as Ie,S as Re,E as Ue,a as Ee,I as Ve,L as Le}from"./SourceCode.493d1c63.js";import{S as Be}from"./SaveButton.8d79c51b.js";import{F as $,a as Ne,b as $e,c as He,d as De,r as Pe}from"./FormRunner.2728cecd.js";import{d as B,B as H,f as U,o as d,X as F,Z as We,R as w,eb as Ze,a as T,W as ze,D as Oe,c as b,w as t,b as a,u as e,cK as re,$ as W,e as S,db as N,aF as v,cV as ne,d7 as L,cy as C,bK as A,cx as se,aR as ue,el as ie,em as de,bN as le,bS as I,ee as je,df as P,eq as Qe,ed as qe,aK as Ke,g as oe,L as Ge,N as Je,ej as Xe,y as Ye,ec as j,bx as ea,cN as aa,d8 as ta,aV as D,eS as la}from"./vue-router.4c13f3d4.js";import{a as oa}from"./asyncComputed.d0f14ed3.js";import{W as ra}from"./PlayerConfigProvider.8a3bab63.js";import{F as na}from"./PhArrowSquareOut.vue.340970aa.js";import{G as sa}from"./PhFlowArrow.vue.d45d2075.js";import{F as ua}from"./metadata.d6f3a171.js";import{F as ia}from"./forms.4f960625.js";import"./editor.49995faa.js";import{W as K}from"./workspaces.1ee4ae8d.js";import{T as da}from"./ThreadSelector.788dee18.js";import{A as pa}from"./index.e5bdb21b.js";import{A as ca}from"./index.ec6b7808.js";import{N as ma}from"./NavbarControls.651b74bd.js";import{b as va}from"./index.c2d72be7.js";import{A as Q,T as fa}from"./TabPane.9889f7a8.js";import{B as ga}from"./Badge.49622b8e.js";import{A as ha}from"./index.c2ef572b.js";import{C as ya}from"./Card.b3c66431.js";import"./fetch.492045fb.js";import"./PhSignOut.vue.e09114f0.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./uuid.27635aee.js";import"./scripts.709f5489.js";import"./record.34d5b504.js";import"./validations.f7853e39.js";import"./string.eaeb96c3.js";import"./PhCopy.vue.300f48e4.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhCopySimple.vue.39f63820.js";import"./PhCaretRight.vue.d968b597.js";import"./PhBug.vue.e9805eb3.js";import"./PhQuestion.vue.500e5a18.js";import"./LoadingOutlined.6c0b95d8.js";import"./polling.ce5b4e64.js";import"./PhPencil.vue.f2283e7d.js";import"./toggleHighContrast.017fb466.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./Login.vue_vue_type_script_setup_true_lang.8e55196d.js";import"./CircularLoading.b40e14c8.js";import"./PhArrowClockwise.vue.5c4db05c.js";import"./Steps.2273c005.js";import"./Watermark.31f43e38.js";import"./index.52fae423.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./index.3f22f3b8.js";import"./CloseCircleOutlined.6201ef3d.js";import"./popupNotifcation.d2ca3d78.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./PhChats.vue.3f8c120c.js";import"./isNumeric.75337b1e.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[h]="d12dced6-5254-4aca-829f-09a8c390d48d",g._sentryDebugIdIdentifier="sentry-dbid-d12dced6-5254-4aca-829f-09a8c390d48d")}catch{}})();const _a=["width","height","fill","transform"],ba={key:0},ka=T("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"},null,-1),wa=[ka],Sa={key:1},xa=T("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Ca=T("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Fa=[xa,Ca],Aa={key:2},Ta=T("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Ma=[Ta],Ia={key:3},Ra=T("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"},null,-1),Ua=[Ra],Ea={key:4},Va=T("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),La=[Va],Ba={key:5},Na=T("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"},null,-1),$a=[Na],Ha={name:"PhArrowsClockwise"},Da=B({...Ha,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(g){const h=g,o=H("weight","regular"),k=H("size","1em"),n=H("color","currentColor"),l=H("mirrored",!1),f=U(()=>{var c;return(c=h.weight)!=null?c:o}),x=U(()=>{var c;return(c=h.size)!=null?c:k}),_=U(()=>{var c;return(c=h.color)!=null?c:n}),p=U(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(c,y)=>(d(),F("svg",Ze({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:x.value,height:x.value,fill:_.value,transform:p.value},c.$attrs),[We(c.$slots,"default"),f.value==="bold"?(d(),F("g",ba,wa)):f.value==="duotone"?(d(),F("g",Sa,Fa)):f.value==="fill"?(d(),F("g",Aa,Ma)):f.value==="light"?(d(),F("g",Ia,Ua)):f.value==="regular"?(d(),F("g",Ea,La)):f.value==="thin"?(d(),F("g",Ba,$a)):w("",!0)],16,_a))}}),Pa=B({__name:"ThreadSelectorModal",props:{showThreadModal:{type:Boolean},stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(g,{emit:h}){const o=()=>{h("update:show-thread-modal",!1),K.writeTestData(k.threadData)};ze(async()=>k.threadData=await K.readTestData());const k=Oe({threadData:"{}"});return(n,l)=>(d(),b(e(re),{open:n.showThreadModal,footer:null,onCancel:o},{default:t(()=>[a(da,{stage:n.stage,"execution-config":n.executionConfig,"onUpdate:executionConfig":l[0]||(l[0]=f=>h("update:execution-config",f)),"onUpdate:showThreadModal":l[1]||(l[1]=f=>h("update:show-thread-modal",f)),onFixInvalidJson:l[2]||(l[2]=f=>h("fix-invalid-json",f,f))},null,8,["stage","execution-config"])]),_:1},8,["open"]))}});const Wa=W(Pa,[["__scopeId","data-v-24845f55"]]),pe=g=>(ie("data-v-b2ed6a6d"),g=g(),de(),g),Za=pe(()=>T("i",null,"string",-1)),za=pe(()=>T("i",null,"string list",-1)),Oa=B({__name:"FormNotificationSettings",props:{form:{}},setup(g){const o=S(g.form);return(k,n)=>(d(),F(ue,null,[a(e(se),{layout:"vertical"},{default:t(()=>[a(e(N),{level:4,width:"100%",height:"30px",style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0px"}},{default:t(()=>[v(" Thread waiting "),a(e(ne),{checked:o.value.notificationTrigger.enabled,"onUpdate:checked":n[0]||(n[0]=l=>o.value.notificationTrigger.enabled=l)},{default:t(()=>[v(" Enabled ")]),_:1},8,["checked"])]),_:1}),a(e(L),{class:"description",style:{fontStyle:"italic",marginBottom:"20px"}},{default:t(()=>[v(" Send emails when the thread is waiting for the form to be filled ")]),_:1}),a(e(C),{label:"Variable name"},{default:t(()=>[a(e(A),{value:o.value.notificationTrigger.variable_name,"onUpdate:value":n[1]||(n[1]=l=>o.value.notificationTrigger.variable_name=l),disabled:!o.value.notificationTrigger.enabled,type:"text",placeholder:"variable_name"},null,8,["value","disabled"])]),_:1})]),_:1}),a(e(pa),{type:"info"},{message:t(()=>[a(e(L),null,{default:t(()=>[v(" Notifications are sent to the emails specified in the thread variables set here. The variables should contain a "),Za,v(" or a "),za,v(". ")]),_:1})]),_:1})],64))}});const ja=W(Oa,[["__scopeId","data-v-b2ed6a6d"]]),Qa=B({__name:"FormSettings",props:{form:{}},setup(g){const o=S(g.form);return(k,n)=>(d(),b(e(se),{layout:"vertical",class:"form-settings"},{default:t(()=>[a(Ie,{runtime:o.value},null,8,["runtime"]),a(e(C),{label:"Form name"},{default:t(()=>[a(e(A),{value:o.value.title,"onUpdate:value":n[0]||(n[0]=l=>o.value.title=l),type:"text",onChange:n[1]||(n[1]=l=>{var f;return o.value.title=(f=l.target.value)!=null?f:""})},null,8,["value"])]),_:1}),a(e(N),{level:3},{default:t(()=>[v(" Texts ")]),_:1}),a(e(N),{level:4},{default:t(()=>[v(" Welcome Screen ")]),_:1}),a(e(C),{label:"Title"},{default:t(()=>[a(e(A),{value:o.value.welcomeTitle,"onUpdate:value":n[2]||(n[2]=l=>o.value.welcomeTitle=l),type:"text",placeholder:o.value.title,disabled:o.value.autoStart},null,8,["value","placeholder","disabled"])]),_:1}),a(e(C),{label:"Description"},{default:t(()=>[a(e(A),{value:o.value.startMessage,"onUpdate:value":n[3]||(n[3]=l=>o.value.startMessage=l),type:"text",disabled:o.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(C),{label:"Start button label"},{default:t(()=>[a(e(A),{value:o.value.startButtonText,"onUpdate:value":n[4]||(n[4]=l=>o.value.startButtonText=l),type:"text",placeholder:"Start",disabled:o.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(C),null,{default:t(()=>[a(e(le),{checked:o.value.autoStart,"onUpdate:checked":n[5]||(n[5]=l=>o.value.autoStart=l)},{default:t(()=>[v("Skip welcome screen")]),_:1},8,["checked"])]),_:1}),a(e(N),{level:4},{default:t(()=>[v(" End Screen ")]),_:1}),a(e(C),{label:"End text"},{default:t(()=>[a(e(A),{value:o.value.endMessage,"onUpdate:value":n[6]||(n[6]=l=>o.value.endMessage=l),type:"text",placeholder:"Thank you"},null,8,["value"])]),_:1}),a(e(C),{label:"Restart button label"},{default:t(()=>[a(e(A),{value:o.value.restartButtonText,"onUpdate:value":n[7]||(n[7]=l=>o.value.restartButtonText=l),placeholder:"Restart",type:"text",disabled:!o.value.allowRestart},null,8,["value","disabled"])]),_:1}),a(e(C),{help:!o.value.isInitial&&"Only initial forms can be restarted"},{default:t(()=>[a(e(le),{checked:o.value.allowRestart,"onUpdate:checked":n[8]||(n[8]=l=>o.value.allowRestart=l),disabled:!o.value.isInitial},{default:t(()=>[v("Show restart button at the end")]),_:1},8,["checked","disabled"])]),_:1},8,["help"]),a(e(N),{level:4},{default:t(()=>[v(" Alert Messages ")]),_:1}),a(e(C),{label:"Error message"},{default:t(()=>[a(e(A),{value:o.value.errorMessage,"onUpdate:value":n[9]||(n[9]=l=>o.value.errorMessage=l),type:"text",placeholder:"Something went wrong"},null,8,["value"])]),_:1})]),_:1}))}});const qa=W(Qa,[["__scopeId","data-v-aff64cb2"]]),Ka=B({__name:"QueryParamsModal",props:{open:{type:Boolean},close:{type:Function},queryParams:{}},emits:["update:query-params"],setup(g,{emit:h}){const k=S(n(g.queryParams));function n(p){return Object.entries(p).map(([c,y])=>({key:c,value:y,id:Math.random().toString()}))}function l(){const p={};return k.value.forEach(({key:c,value:y})=>{p[c]=y}),p}const f=(p,c,y)=>{k.value[p]={key:c,value:y},h("update:query-params",l())},x=()=>{const p=k.value.length;k.value.push({key:`param-${p}`,value:"value"}),h("update:query-params",l())},_=p=>{k.value.splice(p,1),h("update:query-params",l())};return(p,c)=>(d(),b(e(re),{open:p.open,onCancel:p.close},{footer:t(()=>[a(e(I),{type:"primary",onClick:p.close},{default:t(()=>[v("OK")]),_:1},8,["onClick"])]),default:t(()=>[a(e(P),{vertical:"",gap:"20"},{default:t(()=>[a(e(L),null,{default:t(()=>[v("Query params")]),_:1}),(d(!0),F(ue,null,je(k.value,(y,E)=>(d(),b(e(C),{key:E},{default:t(()=>[a(e(ca),null,{default:t(()=>[a(e(A),{value:y.key,"onUpdate:value":i=>y.key=i,type:"text",placeholder:"name",onChange:()=>f(E,y.key,y.value)},null,8,["value","onUpdate:value","onChange"]),a(e(A),{value:y.value,"onUpdate:value":i=>y.value=i,type:"text",placeholder:"value",disabled:y.key===e(q),onChange:()=>f(E,y.key,y.value)},null,8,["value","onUpdate:value","disabled","onChange"]),a(e(I),{danger:"",onClick:i=>_(E)},{default:t(()=>[v("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(C),null,{default:t(()=>[a(e(I),{type:"dashed",style:{width:"100%"},onClick:x},{default:t(()=>[v(" Add Query Param ")]),_:1})]),_:1})]),_:1})]),_:1},8,["open","onCancel"]))}}),Ga=g=>(ie("data-v-962e8c7c"),g=g(),de(),g),Ja={key:0},Xa={key:1},Ya=Ga(()=>T("br",null,null,-1)),et={class:"form-preview-container"},at=B({__name:"FormEditor",setup(g){var ee;const h=Qe(),o=qe(),k=Ae(),n=Te(),l=S(null),f=S("source-code"),x=S(null),_=S(null),p=S(null),c=S({}),y=S(!1),E=s=>i.value={...i.value,attached:!!s},i=S({attached:!1,stageRunId:null,pendingFork:!1,isInitial:!1}),V=U(()=>{var s;return(s=m.value)!=null&&s.form.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:i.value.attached&&i.value.pendingFork?{title:"Past thread selected",message:"Fork the selected thread to run the workflow"}:!i.value.isInitial&&i.value.attached&&!i.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),ce=(s,r)=>{var u;(u=l.value)==null||u.setHighlight(s,r)},me=()=>{var s,r;(s=l.value)==null||s.restartEditor(),(r=l.value)==null||r.startPreviewMode()},ve=U(()=>!i.value.isInitial&&i.value.attached&&!!(i.value.pendingFork||!i.value.stageRunId));Ke(()=>i.value.stageRunId?c.value={...c.value,[q]:i.value.stageRunId}:null);const{result:m,loading:fe,refetch:ge}=oa(async()=>{const[s,r]=await Promise.all([ia.get(o.params.id),K.get()]);return i.value.isInitial=s.isInitial,Ye({form:s,workspace:r})});oe([()=>i.value.attached,c,m],()=>{G()});function he(){var r;if(!m.value)return;const s=m.value.form.codeContent;(r=l.value)==null||r.updateLocalEditorCode(s),G()}function G(){if(!m.value)return;const s=!i.value.attached;p.value=m.value.form.makeRunnerData(m.value.workspace),x.value=new He({formRunnerData:p.value,logService:X,connectionManager:new De(m.value.form.id,"editor",c.value,s),onFormStart:me,onFormEnd:ye,onRedirect:we,onStateUpdate:u=>_.value=u,onStackTraceUpdate:ce});const r=x.value.getState();_.value=r.formState}const ye=()=>{var s,r,u;i.value={attached:!1,stageRunId:null,pendingFork:!1,isInitial:(r=(s=m.value)==null?void 0:s.form.isInitial)!=null?r:!1},(u=l.value)==null||u.restartEditor()};function _e(){var s,r;(s=Z.value)==null||s.closeConsole(),(r=x.value)==null||r.start()}function J(){var s,r;(s=l.value)==null||s.restartEditor(),(r=x.value)==null||r.resetForm()}function be(){h.push({name:"stages"})}const Z=S(null),ke=s=>{!m.value||(m.value.form.file=s)},X=Le.create();function we(s,r){Pe("editor",h,s,r)}const Se=()=>{var u;let s=`/${(u=m.value)==null?void 0:u.form.path}`;const r=new URLSearchParams(c.value);i.value.attached&&i.value.stageRunId&&r.set(q,i.value.stageRunId),window.open(`${s}?${r.toString()}`,"_blank")},z=S(!1),xe=U(()=>{if(!p.value)return"";const s=Object.entries(c.value),r="?"+s.map(([M,R])=>`${M}=${R}`).join("&"),u=s.length?r:"";return`/${p.value.path}${u}`}),Y=new Ge(Je.boolean(),"dontShowReloadHelper"),O=S((ee=Y.get())!=null?ee:!1),Ce=()=>{Y.set(!0),O.value=!0};return oe(()=>o.params.id,()=>{ge()}),(s,r)=>(d(),b(Me,null,Xe({navbar:t(()=>[e(m)?(d(),b(e(va),{key:0,title:e(m).form.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:be},{extra:t(()=>[a(ma,{"docs-path":"concepts/forms","editing-model":e(m).form},null,8,["editing-model"])]),_:1},8,["title"])):w("",!0)]),content:t(()=>[e(m)?(d(),b(Ue,{key:0},{left:t(()=>[a(e(fa),{"active-key":f.value,"onUpdate:activeKey":r[0]||(r[0]=u=>f.value=u)},{rightExtra:t(()=>[a(Be,{model:e(m).form,onSave:he},null,8,["model"])]),default:t(()=>[a(e(Q),{key:"source-code",tab:"Source code"}),a(e(Q),{key:"settings",tab:"Settings"}),a(e(Q),{key:"notifications",tab:"Notifications"})]),_:1},8,["active-key"]),f.value==="source-code"?(d(),b(Ee,{key:0,ref_key:"code",ref:l,script:e(m).form,workspace:e(m).workspace,onUpdateFile:ke},null,8,["script","workspace"])):w("",!0),f.value==="settings"?(d(),b(qa,{key:1,form:e(m).form},null,8,["form"])):w("",!0),f.value==="notifications"?(d(),b(ja,{key:2,form:e(m).form},null,8,["form"])):w("",!0),y.value?(d(),b(Wa,{key:3,"execution-config":i.value,"onUpdate:executionConfig":r[1]||(r[1]=u=>i.value=u),"show-thread-modal":y.value,"onUpdate:showThreadModal":r[2]||(r[2]=u=>y.value=u),stage:e(m).form,onFixInvalidJson:r[3]||(r[3]=(u,M)=>{var R;return(R=Z.value)==null?void 0:R.fixJson(u,M)})},null,8,["execution-config","show-thread-modal","stage"])):w("",!0)]),right:t(()=>[a(e(P),{gap:"10",align:"center",justify:"right",style:{"margin-top":"6px"}},{default:t(()=>{var u;return[a(e(L),null,{default:t(()=>[v(j(i.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(ne),{disabled:!!_.value&&e($).includes((u=_.value)==null?void 0:u.type),checked:i.value.attached,"onUpdate:checked":E},null,8,["disabled","checked"]),a(e(ga),{dot:ve.value},{default:t(()=>{var M;return[a(e(I),{disabled:!!_.value&&e($).includes((M=_.value)==null?void 0:M.type),style:{display:"flex",gap:"5px"},onClick:r[4]||(r[4]=R=>y.value=!0)},{icon:t(()=>[a(e(sa),{size:"20"})]),default:t(()=>[v("Thread")]),_:1},8,["disabled"])]}),_:1},8,["dot"])]}),_:1}),a(e(ha),{style:{margin:"7px 0px 16px"}}),e(fe)||!p.value||!_.value?(d(),b(e(ea),{key:0})):w("",!0),_.value&&p.value?(d(),b(e(P),{key:1,vertical:"",gap:"10",style:{height:"100%",overflow:"hidden"}},{default:t(()=>[a(e(P),{gap:"small"},{default:t(()=>[_.value.type&&e(Ne).includes(_.value.type)?(d(),b(e(aa),{key:0,placement:"bottom",open:O.value?void 0:!0},{content:t(()=>[O.value?(d(),F("span",Ja,"Reload form")):(d(),F("span",Xa,[v(" You can reload the form here"),Ya,a(e(ta),{onClick:Ce},{default:t(()=>[v("Don't show this again")]),_:1})]))]),default:t(()=>[a(e(I),{disabled:!!V.value,onClick:J},{default:t(()=>[a(e(Da),{size:"20"})]),_:1},8,["disabled"])]),_:1},8,["open"])):w("",!0),e($).includes(_.value.type)?(d(),b(e(D),{key:1,placement:"bottom"},{title:t(()=>[v("Stop form")]),default:t(()=>[a(e(I),{onClick:J},{default:t(()=>[a(e(Ve),{size:"20"})]),_:1})]),_:1})):w("",!0),_.value.type==="waiting"?(d(),b(e(D),{key:2,placement:"bottom"},{title:t(()=>[v("Start form")]),default:t(()=>[a(e(I),{disabled:!!V.value,onClick:_e},{default:t(()=>[a(e(la),{size:"20"})]),_:1},8,["disabled"])]),_:1})):w("",!0),a(e(A),{disabled:"",value:xe.value},null,8,["value"]),a(e(D),{placement:"bottom"},{title:t(()=>[v("Edit query params")]),default:t(()=>{var u;return[a(e(I),{disabled:!!_.value&&e($).includes((u=_.value)==null?void 0:u.type),onClick:r[5]||(r[5]=M=>z.value=!0)},{default:t(()=>[a(e(ua),{size:"20"})]),_:1},8,["disabled"])]}),_:1}),a(e(D),{placement:"bottom"},{title:t(()=>[v("Open in Full Screen")]),default:t(()=>[a(e(I),{target:"_blank","aria-label":"Open in Full Screen","aria-describedby":"sss",disabled:!i.value.attached,onClick:Se},{default:t(()=>[a(e(na),{size:"20"})]),_:1},8,["disabled"])]),_:1})]),_:1}),T("div",et,[V.value?(d(),b(e(ya),{key:0,class:"unsaved-changes"},{default:t(()=>[a(e(L),{style:{"font-size":"18px","font-weight":"500"}},{default:t(()=>[v(j(V.value.title),1)]),_:1}),a(e(L),{style:{"margin-bottom":"6px"}},{default:t(()=>[v(j(V.value.message),1)]),_:1})]),_:1})):w("",!0),a(ra,{class:"center","main-color":p.value.mainColor,background:p.value.theme,"font-family":p.value.fontFamily,locale:p.value.language},{default:t(()=>{var u,M,R,ae,te;return[e(n).state.workspace?(d(),b(Fe,{key:0,"current-path":e(m).form.path,"hide-login":!0,"runner-data":e(n).state.workspace},null,8,["current-path","runner-data"])):w("",!0),a($e,{"is-preview":"",class:"runner","form-runner-data":p.value,"form-state":_.value,disabled:!!V.value,"user-email":(u=e(k).user)==null?void 0:u.claims.email,onUpdateWidgetErrors:(M=x.value)==null?void 0:M.updateWidgetFrontendErrors,onUpdateWidgetValue:(R=x.value)==null?void 0:R.updateWidgetValue,onActionClicked:(ae=x.value)==null?void 0:ae.handleActionClick,onAutoFillClicked:(te=x.value)==null?void 0:te.handleAutofillClick},null,8,["form-runner-data","form-state","disabled","user-email","onUpdateWidgetErrors","onUpdateWidgetValue","onActionClicked","onAutoFillClicked"])]}),_:1},8,["main-color","background","font-family","locale"])])]),_:1})):w("",!0),a(Ka,{"query-params":c.value,"onUpdate:queryParams":r[6]||(r[6]=u=>c.value=u),open:z.value,close:()=>z.value=!1},null,8,["query-params","open","close"])]),_:1})):w("",!0)]),_:2},[e(m)?{name:"footer",fn:t(()=>[a(Re,{ref_key:"smartConsole",ref:Z,"stage-type":"forms",stage:e(m).form,"log-service":e(X),workspace:e(m).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});const pl=W(at,[["__scopeId","data-v-962e8c7c"]]);export{pl as default}; -//# sourceMappingURL=FormEditor.ed04179f.js.map +import{A as q}from"./api.854a5e4c.js";import{P as Fe}from"./PlayerNavbar.56197f01.js";import{b as Ae,u as Te}from"./workspaceStore.411ef1fe.js";import{B as Me}from"./BaseLayout.294a6887.js";import{R as Ie,S as Re,E as Ue,a as Ee,I as Ve,L as Le}from"./SourceCode.db5c4074.js";import{S as Be}from"./SaveButton.6d0d3fb7.js";import{F as $,a as Ne,b as $e,c as He,d as De,r as Pe}from"./FormRunner.7499affa.js";import{d as B,B as H,f as U,o as d,X as F,Z as We,R as w,eb as Ze,a as T,W as ze,D as Oe,c as b,w as t,b as a,u as e,cK as re,$ as W,e as S,db as N,aF as v,cV as ne,d7 as L,cy as C,bK as A,cx as se,aR as ue,el as ie,em as de,bN as le,bS as I,ee as je,df as P,eq as Qe,ed as qe,aK as Ke,g as oe,L as Ge,N as Je,ej as Xe,y as Ye,ec as j,bx as ea,cN as aa,d8 as ta,aV as D,eS as la}from"./vue-router.3fd92176.js";import{a as oa}from"./asyncComputed.295e9e03.js";import{W as ra}from"./PlayerConfigProvider.44427467.js";import{F as na}from"./PhArrowSquareOut.vue.188b81dc.js";import{G as sa}from"./PhFlowArrow.vue.d1d247ee.js";import{F as ua}from"./metadata.789df59c.js";import{F as ia}from"./forms.665a9dac.js";import"./editor.519c2dc1.js";import{W as K}from"./workspaces.b456ec6a.js";import{T as da}from"./ThreadSelector.23af8b2c.js";import{A as pa}from"./index.4fbbd10e.js";import{A as ca}from"./index.063f7c9e.js";import{N as ma}from"./NavbarControls.a8a61aa1.js";import{b as va}from"./index.5ccdbcb7.js";import{A as Q,T as fa}from"./TabPane.d0ca7ad5.js";import{B as ga}from"./Badge.bcc65740.js";import{A as ha}from"./index.c6ce1c1c.js";import{C as ya}from"./Card.0ce127d8.js";import"./fetch.8c5b12c2.js";import"./PhSignOut.vue.154299d7.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./uuid.06ef1e24.js";import"./scripts.32887e06.js";import"./record.cbb43e89.js";import"./validations.0afef3f1.js";import"./string.e75a34fd.js";import"./PhCopy.vue.0ae3f8ab.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhCopySimple.vue.992b99ff.js";import"./PhCaretRight.vue.f72488ac.js";import"./PhBug.vue.00bc4255.js";import"./PhQuestion.vue.129febdc.js";import"./LoadingOutlined.dad6ee6e.js";import"./polling.4e30c061.js";import"./PhPencil.vue.a2604470.js";import"./toggleHighContrast.db48a34e.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./Login.vue_vue_type_script_setup_true_lang.8de09e2d.js";import"./CircularLoading.b920c29a.js";import"./PhArrowClockwise.vue.2725755a.js";import"./Steps.767c106d.js";import"./Watermark.43182479.js";import"./index.bd967757.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./index.61e7dffa.js";import"./CloseCircleOutlined.f8dfd09a.js";import"./popupNotifcation.0e86d6a8.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./PhChats.vue.aa1113d9.js";import"./isNumeric.75337b1e.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[h]="b7763c4e-2f5c-4c4d-990d-0fed9e8660a1",g._sentryDebugIdIdentifier="sentry-dbid-b7763c4e-2f5c-4c4d-990d-0fed9e8660a1")}catch{}})();const _a=["width","height","fill","transform"],ba={key:0},ka=T("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"},null,-1),wa=[ka],Sa={key:1},xa=T("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Ca=T("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Fa=[xa,Ca],Aa={key:2},Ta=T("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Ma=[Ta],Ia={key:3},Ra=T("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"},null,-1),Ua=[Ra],Ea={key:4},Va=T("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),La=[Va],Ba={key:5},Na=T("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"},null,-1),$a=[Na],Ha={name:"PhArrowsClockwise"},Da=B({...Ha,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(g){const h=g,o=H("weight","regular"),k=H("size","1em"),n=H("color","currentColor"),l=H("mirrored",!1),f=U(()=>{var c;return(c=h.weight)!=null?c:o}),x=U(()=>{var c;return(c=h.size)!=null?c:k}),_=U(()=>{var c;return(c=h.color)!=null?c:n}),p=U(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(c,y)=>(d(),F("svg",Ze({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:x.value,height:x.value,fill:_.value,transform:p.value},c.$attrs),[We(c.$slots,"default"),f.value==="bold"?(d(),F("g",ba,wa)):f.value==="duotone"?(d(),F("g",Sa,Fa)):f.value==="fill"?(d(),F("g",Aa,Ma)):f.value==="light"?(d(),F("g",Ia,Ua)):f.value==="regular"?(d(),F("g",Ea,La)):f.value==="thin"?(d(),F("g",Ba,$a)):w("",!0)],16,_a))}}),Pa=B({__name:"ThreadSelectorModal",props:{showThreadModal:{type:Boolean},stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(g,{emit:h}){const o=()=>{h("update:show-thread-modal",!1),K.writeTestData(k.threadData)};ze(async()=>k.threadData=await K.readTestData());const k=Oe({threadData:"{}"});return(n,l)=>(d(),b(e(re),{open:n.showThreadModal,footer:null,onCancel:o},{default:t(()=>[a(da,{stage:n.stage,"execution-config":n.executionConfig,"onUpdate:executionConfig":l[0]||(l[0]=f=>h("update:execution-config",f)),"onUpdate:showThreadModal":l[1]||(l[1]=f=>h("update:show-thread-modal",f)),onFixInvalidJson:l[2]||(l[2]=f=>h("fix-invalid-json",f,f))},null,8,["stage","execution-config"])]),_:1},8,["open"]))}});const Wa=W(Pa,[["__scopeId","data-v-24845f55"]]),pe=g=>(ie("data-v-b2ed6a6d"),g=g(),de(),g),Za=pe(()=>T("i",null,"string",-1)),za=pe(()=>T("i",null,"string list",-1)),Oa=B({__name:"FormNotificationSettings",props:{form:{}},setup(g){const o=S(g.form);return(k,n)=>(d(),F(ue,null,[a(e(se),{layout:"vertical"},{default:t(()=>[a(e(N),{level:4,width:"100%",height:"30px",style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0px"}},{default:t(()=>[v(" Thread waiting "),a(e(ne),{checked:o.value.notificationTrigger.enabled,"onUpdate:checked":n[0]||(n[0]=l=>o.value.notificationTrigger.enabled=l)},{default:t(()=>[v(" Enabled ")]),_:1},8,["checked"])]),_:1}),a(e(L),{class:"description",style:{fontStyle:"italic",marginBottom:"20px"}},{default:t(()=>[v(" Send emails when the thread is waiting for the form to be filled ")]),_:1}),a(e(C),{label:"Variable name"},{default:t(()=>[a(e(A),{value:o.value.notificationTrigger.variable_name,"onUpdate:value":n[1]||(n[1]=l=>o.value.notificationTrigger.variable_name=l),disabled:!o.value.notificationTrigger.enabled,type:"text",placeholder:"variable_name"},null,8,["value","disabled"])]),_:1})]),_:1}),a(e(pa),{type:"info"},{message:t(()=>[a(e(L),null,{default:t(()=>[v(" Notifications are sent to the emails specified in the thread variables set here. The variables should contain a "),Za,v(" or a "),za,v(". ")]),_:1})]),_:1})],64))}});const ja=W(Oa,[["__scopeId","data-v-b2ed6a6d"]]),Qa=B({__name:"FormSettings",props:{form:{}},setup(g){const o=S(g.form);return(k,n)=>(d(),b(e(se),{layout:"vertical",class:"form-settings"},{default:t(()=>[a(Ie,{runtime:o.value},null,8,["runtime"]),a(e(C),{label:"Form name"},{default:t(()=>[a(e(A),{value:o.value.title,"onUpdate:value":n[0]||(n[0]=l=>o.value.title=l),type:"text",onChange:n[1]||(n[1]=l=>{var f;return o.value.title=(f=l.target.value)!=null?f:""})},null,8,["value"])]),_:1}),a(e(N),{level:3},{default:t(()=>[v(" Texts ")]),_:1}),a(e(N),{level:4},{default:t(()=>[v(" Welcome Screen ")]),_:1}),a(e(C),{label:"Title"},{default:t(()=>[a(e(A),{value:o.value.welcomeTitle,"onUpdate:value":n[2]||(n[2]=l=>o.value.welcomeTitle=l),type:"text",placeholder:o.value.title,disabled:o.value.autoStart},null,8,["value","placeholder","disabled"])]),_:1}),a(e(C),{label:"Description"},{default:t(()=>[a(e(A),{value:o.value.startMessage,"onUpdate:value":n[3]||(n[3]=l=>o.value.startMessage=l),type:"text",disabled:o.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(C),{label:"Start button label"},{default:t(()=>[a(e(A),{value:o.value.startButtonText,"onUpdate:value":n[4]||(n[4]=l=>o.value.startButtonText=l),type:"text",placeholder:"Start",disabled:o.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(C),null,{default:t(()=>[a(e(le),{checked:o.value.autoStart,"onUpdate:checked":n[5]||(n[5]=l=>o.value.autoStart=l)},{default:t(()=>[v("Skip welcome screen")]),_:1},8,["checked"])]),_:1}),a(e(N),{level:4},{default:t(()=>[v(" End Screen ")]),_:1}),a(e(C),{label:"End text"},{default:t(()=>[a(e(A),{value:o.value.endMessage,"onUpdate:value":n[6]||(n[6]=l=>o.value.endMessage=l),type:"text",placeholder:"Thank you"},null,8,["value"])]),_:1}),a(e(C),{label:"Restart button label"},{default:t(()=>[a(e(A),{value:o.value.restartButtonText,"onUpdate:value":n[7]||(n[7]=l=>o.value.restartButtonText=l),placeholder:"Restart",type:"text",disabled:!o.value.allowRestart},null,8,["value","disabled"])]),_:1}),a(e(C),{help:!o.value.isInitial&&"Only initial forms can be restarted"},{default:t(()=>[a(e(le),{checked:o.value.allowRestart,"onUpdate:checked":n[8]||(n[8]=l=>o.value.allowRestart=l),disabled:!o.value.isInitial},{default:t(()=>[v("Show restart button at the end")]),_:1},8,["checked","disabled"])]),_:1},8,["help"]),a(e(N),{level:4},{default:t(()=>[v(" Alert Messages ")]),_:1}),a(e(C),{label:"Error message"},{default:t(()=>[a(e(A),{value:o.value.errorMessage,"onUpdate:value":n[9]||(n[9]=l=>o.value.errorMessage=l),type:"text",placeholder:"Something went wrong"},null,8,["value"])]),_:1})]),_:1}))}});const qa=W(Qa,[["__scopeId","data-v-aff64cb2"]]),Ka=B({__name:"QueryParamsModal",props:{open:{type:Boolean},close:{type:Function},queryParams:{}},emits:["update:query-params"],setup(g,{emit:h}){const k=S(n(g.queryParams));function n(p){return Object.entries(p).map(([c,y])=>({key:c,value:y,id:Math.random().toString()}))}function l(){const p={};return k.value.forEach(({key:c,value:y})=>{p[c]=y}),p}const f=(p,c,y)=>{k.value[p]={key:c,value:y},h("update:query-params",l())},x=()=>{const p=k.value.length;k.value.push({key:`param-${p}`,value:"value"}),h("update:query-params",l())},_=p=>{k.value.splice(p,1),h("update:query-params",l())};return(p,c)=>(d(),b(e(re),{open:p.open,onCancel:p.close},{footer:t(()=>[a(e(I),{type:"primary",onClick:p.close},{default:t(()=>[v("OK")]),_:1},8,["onClick"])]),default:t(()=>[a(e(P),{vertical:"",gap:"20"},{default:t(()=>[a(e(L),null,{default:t(()=>[v("Query params")]),_:1}),(d(!0),F(ue,null,je(k.value,(y,E)=>(d(),b(e(C),{key:E},{default:t(()=>[a(e(ca),null,{default:t(()=>[a(e(A),{value:y.key,"onUpdate:value":i=>y.key=i,type:"text",placeholder:"name",onChange:()=>f(E,y.key,y.value)},null,8,["value","onUpdate:value","onChange"]),a(e(A),{value:y.value,"onUpdate:value":i=>y.value=i,type:"text",placeholder:"value",disabled:y.key===e(q),onChange:()=>f(E,y.key,y.value)},null,8,["value","onUpdate:value","disabled","onChange"]),a(e(I),{danger:"",onClick:i=>_(E)},{default:t(()=>[v("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(C),null,{default:t(()=>[a(e(I),{type:"dashed",style:{width:"100%"},onClick:x},{default:t(()=>[v(" Add Query Param ")]),_:1})]),_:1})]),_:1})]),_:1},8,["open","onCancel"]))}}),Ga=g=>(ie("data-v-962e8c7c"),g=g(),de(),g),Ja={key:0},Xa={key:1},Ya=Ga(()=>T("br",null,null,-1)),et={class:"form-preview-container"},at=B({__name:"FormEditor",setup(g){var ee;const h=Qe(),o=qe(),k=Ae(),n=Te(),l=S(null),f=S("source-code"),x=S(null),_=S(null),p=S(null),c=S({}),y=S(!1),E=s=>i.value={...i.value,attached:!!s},i=S({attached:!1,stageRunId:null,pendingFork:!1,isInitial:!1}),V=U(()=>{var s;return(s=m.value)!=null&&s.form.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:i.value.attached&&i.value.pendingFork?{title:"Past thread selected",message:"Fork the selected thread to run the workflow"}:!i.value.isInitial&&i.value.attached&&!i.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),ce=(s,r)=>{var u;(u=l.value)==null||u.setHighlight(s,r)},me=()=>{var s,r;(s=l.value)==null||s.restartEditor(),(r=l.value)==null||r.startPreviewMode()},ve=U(()=>!i.value.isInitial&&i.value.attached&&!!(i.value.pendingFork||!i.value.stageRunId));Ke(()=>i.value.stageRunId?c.value={...c.value,[q]:i.value.stageRunId}:null);const{result:m,loading:fe,refetch:ge}=oa(async()=>{const[s,r]=await Promise.all([ia.get(o.params.id),K.get()]);return i.value.isInitial=s.isInitial,Ye({form:s,workspace:r})});oe([()=>i.value.attached,c,m],()=>{G()});function he(){var r;if(!m.value)return;const s=m.value.form.codeContent;(r=l.value)==null||r.updateLocalEditorCode(s),G()}function G(){if(!m.value)return;const s=!i.value.attached;p.value=m.value.form.makeRunnerData(m.value.workspace),x.value=new He({formRunnerData:p.value,logService:X,connectionManager:new De(m.value.form.id,"editor",c.value,s),onFormStart:me,onFormEnd:ye,onRedirect:we,onStateUpdate:u=>_.value=u,onStackTraceUpdate:ce});const r=x.value.getState();_.value=r.formState}const ye=()=>{var s,r,u;i.value={attached:!1,stageRunId:null,pendingFork:!1,isInitial:(r=(s=m.value)==null?void 0:s.form.isInitial)!=null?r:!1},(u=l.value)==null||u.restartEditor()};function _e(){var s,r;(s=Z.value)==null||s.closeConsole(),(r=x.value)==null||r.start()}function J(){var s,r;(s=l.value)==null||s.restartEditor(),(r=x.value)==null||r.resetForm()}function be(){h.push({name:"stages"})}const Z=S(null),ke=s=>{!m.value||(m.value.form.file=s)},X=Le.create();function we(s,r){Pe("editor",h,s,r)}const Se=()=>{var u;let s=`/${(u=m.value)==null?void 0:u.form.path}`;const r=new URLSearchParams(c.value);i.value.attached&&i.value.stageRunId&&r.set(q,i.value.stageRunId),window.open(`${s}?${r.toString()}`,"_blank")},z=S(!1),xe=U(()=>{if(!p.value)return"";const s=Object.entries(c.value),r="?"+s.map(([M,R])=>`${M}=${R}`).join("&"),u=s.length?r:"";return`/${p.value.path}${u}`}),Y=new Ge(Je.boolean(),"dontShowReloadHelper"),O=S((ee=Y.get())!=null?ee:!1),Ce=()=>{Y.set(!0),O.value=!0};return oe(()=>o.params.id,()=>{ge()}),(s,r)=>(d(),b(Me,null,Xe({navbar:t(()=>[e(m)?(d(),b(e(va),{key:0,title:e(m).form.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:be},{extra:t(()=>[a(ma,{"docs-path":"concepts/forms","editing-model":e(m).form},null,8,["editing-model"])]),_:1},8,["title"])):w("",!0)]),content:t(()=>[e(m)?(d(),b(Ue,{key:0},{left:t(()=>[a(e(fa),{"active-key":f.value,"onUpdate:activeKey":r[0]||(r[0]=u=>f.value=u)},{rightExtra:t(()=>[a(Be,{model:e(m).form,onSave:he},null,8,["model"])]),default:t(()=>[a(e(Q),{key:"source-code",tab:"Source code"}),a(e(Q),{key:"settings",tab:"Settings"}),a(e(Q),{key:"notifications",tab:"Notifications"})]),_:1},8,["active-key"]),f.value==="source-code"?(d(),b(Ee,{key:0,ref_key:"code",ref:l,script:e(m).form,workspace:e(m).workspace,onUpdateFile:ke},null,8,["script","workspace"])):w("",!0),f.value==="settings"?(d(),b(qa,{key:1,form:e(m).form},null,8,["form"])):w("",!0),f.value==="notifications"?(d(),b(ja,{key:2,form:e(m).form},null,8,["form"])):w("",!0),y.value?(d(),b(Wa,{key:3,"execution-config":i.value,"onUpdate:executionConfig":r[1]||(r[1]=u=>i.value=u),"show-thread-modal":y.value,"onUpdate:showThreadModal":r[2]||(r[2]=u=>y.value=u),stage:e(m).form,onFixInvalidJson:r[3]||(r[3]=(u,M)=>{var R;return(R=Z.value)==null?void 0:R.fixJson(u,M)})},null,8,["execution-config","show-thread-modal","stage"])):w("",!0)]),right:t(()=>[a(e(P),{gap:"10",align:"center",justify:"right",style:{"margin-top":"6px"}},{default:t(()=>{var u;return[a(e(L),null,{default:t(()=>[v(j(i.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(ne),{disabled:!!_.value&&e($).includes((u=_.value)==null?void 0:u.type),checked:i.value.attached,"onUpdate:checked":E},null,8,["disabled","checked"]),a(e(ga),{dot:ve.value},{default:t(()=>{var M;return[a(e(I),{disabled:!!_.value&&e($).includes((M=_.value)==null?void 0:M.type),style:{display:"flex",gap:"5px"},onClick:r[4]||(r[4]=R=>y.value=!0)},{icon:t(()=>[a(e(sa),{size:"20"})]),default:t(()=>[v("Thread")]),_:1},8,["disabled"])]}),_:1},8,["dot"])]}),_:1}),a(e(ha),{style:{margin:"7px 0px 16px"}}),e(fe)||!p.value||!_.value?(d(),b(e(ea),{key:0})):w("",!0),_.value&&p.value?(d(),b(e(P),{key:1,vertical:"",gap:"10",style:{height:"100%",overflow:"hidden"}},{default:t(()=>[a(e(P),{gap:"small"},{default:t(()=>[_.value.type&&e(Ne).includes(_.value.type)?(d(),b(e(aa),{key:0,placement:"bottom",open:O.value?void 0:!0},{content:t(()=>[O.value?(d(),F("span",Ja,"Reload form")):(d(),F("span",Xa,[v(" You can reload the form here"),Ya,a(e(ta),{onClick:Ce},{default:t(()=>[v("Don't show this again")]),_:1})]))]),default:t(()=>[a(e(I),{disabled:!!V.value,onClick:J},{default:t(()=>[a(e(Da),{size:"20"})]),_:1},8,["disabled"])]),_:1},8,["open"])):w("",!0),e($).includes(_.value.type)?(d(),b(e(D),{key:1,placement:"bottom"},{title:t(()=>[v("Stop form")]),default:t(()=>[a(e(I),{onClick:J},{default:t(()=>[a(e(Ve),{size:"20"})]),_:1})]),_:1})):w("",!0),_.value.type==="waiting"?(d(),b(e(D),{key:2,placement:"bottom"},{title:t(()=>[v("Start form")]),default:t(()=>[a(e(I),{disabled:!!V.value,onClick:_e},{default:t(()=>[a(e(la),{size:"20"})]),_:1},8,["disabled"])]),_:1})):w("",!0),a(e(A),{disabled:"",value:xe.value},null,8,["value"]),a(e(D),{placement:"bottom"},{title:t(()=>[v("Edit query params")]),default:t(()=>{var u;return[a(e(I),{disabled:!!_.value&&e($).includes((u=_.value)==null?void 0:u.type),onClick:r[5]||(r[5]=M=>z.value=!0)},{default:t(()=>[a(e(ua),{size:"20"})]),_:1},8,["disabled"])]}),_:1}),a(e(D),{placement:"bottom"},{title:t(()=>[v("Open in Full Screen")]),default:t(()=>[a(e(I),{target:"_blank","aria-label":"Open in Full Screen","aria-describedby":"sss",disabled:!i.value.attached,onClick:Se},{default:t(()=>[a(e(na),{size:"20"})]),_:1},8,["disabled"])]),_:1})]),_:1}),T("div",et,[V.value?(d(),b(e(ya),{key:0,class:"unsaved-changes"},{default:t(()=>[a(e(L),{style:{"font-size":"18px","font-weight":"500"}},{default:t(()=>[v(j(V.value.title),1)]),_:1}),a(e(L),{style:{"margin-bottom":"6px"}},{default:t(()=>[v(j(V.value.message),1)]),_:1})]),_:1})):w("",!0),a(ra,{class:"center","main-color":p.value.mainColor,background:p.value.theme,"font-family":p.value.fontFamily,locale:p.value.language},{default:t(()=>{var u,M,R,ae,te;return[e(n).state.workspace?(d(),b(Fe,{key:0,"current-path":e(m).form.path,"hide-login":!0,"runner-data":e(n).state.workspace},null,8,["current-path","runner-data"])):w("",!0),a($e,{"is-preview":"",class:"runner","form-runner-data":p.value,"form-state":_.value,disabled:!!V.value,"user-email":(u=e(k).user)==null?void 0:u.claims.email,onUpdateWidgetErrors:(M=x.value)==null?void 0:M.updateWidgetFrontendErrors,onUpdateWidgetValue:(R=x.value)==null?void 0:R.updateWidgetValue,onActionClicked:(ae=x.value)==null?void 0:ae.handleActionClick,onAutoFillClicked:(te=x.value)==null?void 0:te.handleAutofillClick},null,8,["form-runner-data","form-state","disabled","user-email","onUpdateWidgetErrors","onUpdateWidgetValue","onActionClicked","onAutoFillClicked"])]}),_:1},8,["main-color","background","font-family","locale"])])]),_:1})):w("",!0),a(Ka,{"query-params":c.value,"onUpdate:queryParams":r[6]||(r[6]=u=>c.value=u),open:z.value,close:()=>z.value=!1},null,8,["query-params","open","close"])]),_:1})):w("",!0)]),_:2},[e(m)?{name:"footer",fn:t(()=>[a(Re,{ref_key:"smartConsole",ref:Z,"stage-type":"forms",stage:e(m).form,"log-service":e(X),workspace:e(m).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});const pl=W(at,[["__scopeId","data-v-962e8c7c"]]);export{pl as default}; +//# sourceMappingURL=FormEditor.9b532b4a.js.map diff --git a/abstra_statics/dist/assets/FormRunner.2728cecd.js b/abstra_statics/dist/assets/FormRunner.7499affa.js similarity index 97% rename from abstra_statics/dist/assets/FormRunner.2728cecd.js rename to abstra_statics/dist/assets/FormRunner.7499affa.js index 12e76a562..c291a1b1f 100644 --- a/abstra_statics/dist/assets/FormRunner.2728cecd.js +++ b/abstra_statics/dist/assets/FormRunner.7499affa.js @@ -1,2 +1,2 @@ -var M=Object.defineProperty;var F=(n,e,t)=>e in n?M(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var r=(n,e,t)=>(F(n,typeof e!="symbol"?e+"":e,t),t);import{i as isUrl}from"./url.c1b32560.js";import{d as defineComponent,B as inject,f as computed,o as openBlock,X as createElementBlock,Z as renderSlot,R as createCommentVNode,eb as mergeProps,a as createBaseVNode,g as watch,eo as lodash,eV as i18nProvider,ec as toDisplayString,u as unref,c as createBlock,ef as resolveDynamicComponent,$ as _export_sfc,w as withCtx,aF as createTextVNode,e as ref,b as createVNode,ea as normalizeClass,eW as StartWidget,eX as EndWidget,eY as ErrorWidget,aR as Fragment,ee as renderList,eZ as StyleProvider,eU as withKeys,bS as Button}from"./vue-router.4c13f3d4.js";import{b as useUserStore}from"./workspaceStore.ae240ce8.js";import{_ as _sfc_main$4}from"./Login.vue_vue_type_script_setup_true_lang.8e55196d.js";import{L as LoadingIndicator}from"./CircularLoading.b40e14c8.js";import{S as Steps}from"./Steps.2273c005.js";import{W as Watermark}from"./Watermark.31f43e38.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="d3c906ee-18fe-4dca-9d5d-5c995d47a4d4",n._sentryDebugIdIdentifier="sentry-dbid-d3c906ee-18fe-4dca-9d5d-5c995d47a4d4")}catch{}})();const Z=["width","height","fill","transform"],g={key:0},m=createBaseVNode("path",{d:"M112,36a12,12,0,0,0-12,12V60H24A20,20,0,0,0,4,80v96a20,20,0,0,0,20,20h76v12a12,12,0,0,0,24,0V48A12,12,0,0,0,112,36ZM28,172V84h72v88ZM252,80v96a20,20,0,0,1-20,20H152a12,12,0,0,1,0-24h76V84H152a12,12,0,0,1,0-24h80A20,20,0,0,1,252,80ZM88,112a12,12,0,0,1-12,12v20a12,12,0,0,1-24,0V124a12,12,0,0,1,0-24H76A12,12,0,0,1,88,112Z"},null,-1),y=[m],f={key:1},w=createBaseVNode("path",{d:"M240,80v96a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H232A8,8,0,0,1,240,80Z",opacity:"0.2"},null,-1),k=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),x=[w,k],S={key:2},z=createBaseVNode("path",{d:"M248,80v96a16,16,0,0,1-16,16H140a4,4,0,0,1-4-4V68a4,4,0,0,1,4-4h92A16,16,0,0,1,248,80ZM120,48V208a8,8,0,0,1-16,0V192H24A16,16,0,0,1,8,176V80A16,16,0,0,1,24,64h80V48a8,8,0,0,1,16,0ZM88,112a8,8,0,0,0-8-8H48a8,8,0,0,0,0,16h8v24a8,8,0,0,0,16,0V120h8A8,8,0,0,0,88,112Z"},null,-1),C=[z],B={key:3},b=createBaseVNode("path",{d:"M112,42a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80v96a14,14,0,0,0,14,14h82v18a6,6,0,0,0,12,0V48A6,6,0,0,0,112,42ZM24,178a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h82V178ZM246,80v96a14,14,0,0,1-14,14H144a6,6,0,0,1,0-12h88a2,2,0,0,0,2-2V80a2,2,0,0,0-2-2H144a6,6,0,0,1,0-12h88A14,14,0,0,1,246,80ZM86,112a6,6,0,0,1-6,6H70v26a6,6,0,0,1-12,0V118H48a6,6,0,0,1,0-12H80A6,6,0,0,1,86,112Z"},null,-1),N=[b],E={key:4},P=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),W=[P],$={key:5},j=createBaseVNode("path",{d:"M112,44a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80v96a12,12,0,0,0,12,12h84v20a4,4,0,0,0,8,0V48A4,4,0,0,0,112,44ZM24,180a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h84V180ZM244,80v96a12,12,0,0,1-12,12H144a4,4,0,0,1,0-8h88a4,4,0,0,0,4-4V80a4,4,0,0,0-4-4H144a4,4,0,0,1,0-8h88A12,12,0,0,1,244,80ZM84,112a4,4,0,0,1-4,4H68v28a4,4,0,0,1-8,0V116H48a4,4,0,0,1,0-8H80A4,4,0,0,1,84,112Z"},null,-1),T=[j],q={name:"PhTextbox"},G=defineComponent({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const e=n,t=inject("weight","regular"),a=inject("size","1em"),o=inject("color","currentColor"),l=inject("mirrored",!1),c=computed(()=>{var u;return(u=e.weight)!=null?u:t}),s=computed(()=>{var u;return(u=e.size)!=null?u:a}),d=computed(()=>{var u;return(u=e.color)!=null?u:o}),h=computed(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(u,i)=>(openBlock(),createElementBlock("svg",mergeProps({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:d.value,transform:h.value},u.$attrs),[renderSlot(u.$slots,"default"),c.value==="bold"?(openBlock(),createElementBlock("g",g,y)):c.value==="duotone"?(openBlock(),createElementBlock("g",f,x)):c.value==="fill"?(openBlock(),createElementBlock("g",S,C)):c.value==="light"?(openBlock(),createElementBlock("g",B,N)):c.value==="regular"?(openBlock(),createElementBlock("g",E,W)):c.value==="thin"?(openBlock(),createElementBlock("g",$,T)):createCommentVNode("",!0)],16,Z))}});function normalizePath(n){return n.startsWith("/")?n.slice(1):n}async function redirect(n,e,t,a={}){if(isUrl(t)){const o=new URLSearchParams(a),l=new URL(t);l.search=o.toString(),window.location.href=l.toString()}else{const o=t.replace(/\/$/,"");if(n==="player")await e.push({path:"/"+normalizePath(o),query:a});else if(n==="editor")await e.push({name:"formEditor",params:{formPath:normalizePath(o)},query:a});else if(n==="preview")await e.push({name:"formPreview",params:{formPath:normalizePath(o)},query:a});else throw new Error("Invalid routing")}}const WS_CLOSING_STATES=[WebSocket.CLOSING,WebSocket.CLOSED],WS_CUSTOM_CLOSING_REASONS={FRONTEND_FORM_RESTART:4e3};class FormConnectionManager{constructor(e,t,a,o){r(this,"ws",null);r(this,"heartbeatInterval");r(this,"onOpen",null);r(this,"onMessage",null);r(this,"onClose",null);this.formId=e,this.environment=t,this.userQueryParams=a,this._detached=o}set detached(e){this._detached=e}get url(){const e=location.protocol==="https:"?"wss:":"ws:",t=this.environment=="editor"?"_editor/api/forms/socket":"_socket",a=new URLSearchParams({id:this.formId,detached:this._detached?"true":"false",...this.userQueryParams});return`${e}//${location.host}/${t}?${a}`}handleOpen(e){if(!this.onOpen)throw new Error("onOpen is not set");this.onOpen(),e()}handleClose(e){(e.code===1006||!e.wasClean)&&clearInterval(this.heartbeatInterval),this.onClose&&this.onClose(e)}handleMessage(e){if(!this.onMessage)throw new Error("onMessage is not set");const t=JSON.parse(e.data);this.onMessage(t)}sendHeartbeat(){!this.ws||this.ws.readyState!==this.ws.OPEN||this.send({type:"execution:heartbeat"})}async send(e){if(!this.ws)throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not connected`);WS_CLOSING_STATES.includes(this.ws.readyState)&&await this.newConnection(),this.ws.send(JSON.stringify(e))}async close(e){this.ws&&this.ws.close(WS_CUSTOM_CLOSING_REASONS[e],e)}async newConnection(e=3,t){if(e!=0)return new Promise(a=>{clearInterval(this.heartbeatInterval),this.ws=new WebSocket(this.url,t),this.ws.onopen=()=>this.handleOpen(a),this.ws.onclose=o=>this.handleClose(o),this.ws.onmessage=o=>this.handleMessage(o),this.heartbeatInterval=setInterval(()=>this.sendHeartbeat(),2e3)}).catch(()=>{this.newConnection(e-1)})}}function isInputWidget(n){return"key"in n&&"value"in n&&"errors"in n}const executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(n){throw console.error(`[Error: execute_js]: ${n.message}, context: ${$context}`),n}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(n){return{type:"execute-js:response",value:await executeCode(n.context,n.code)}}const isSerializable=n=>{try{return JSON.stringify(n),!0}catch{return!1}},FORM_END_STATES=["default-end","page-end","error","lock-failed"],FORM_RUNNING_STATES=["authenticating","page","loading"];class FormRunnerController{constructor({formRunnerData:e,logService:t,connectionManager:a,onFormStart:o,onFormEnd:l,onRedirect:c,onStateUpdate:s,onStackTraceUpdate:d}){r(this,"connectionManager");r(this,"logService");r(this,"formRunnerData");r(this,"formState");r(this,"messageSeq",0);r(this,"executionId",null);r(this,"onFormStart");r(this,"onFormEnd");r(this,"onRedirect");r(this,"onStackTraceUpdate");r(this,"onStateUpdate");r(this,"userStore");r(this,"responseHistory",[]);r(this,"lastResponseHistory",[]);r(this,"handlers",{"execution:lock-failed":[e=>this.handleExecutionLockFailedMessage(e)],"execution:started":[e=>this.handleExecutionStartedMessage(e)],"execution:ended":[e=>this.handleExecutionEndedMessage(e)],"form:mount-page":[e=>this.handleMountPageMessage(e)],"form:update-page":[e=>this.handleUpdatePageMessage(e)],"auth:require-info":[e=>this.handleAuthRequireInfoMessage(e)],"auth:invalid-jwt":[e=>this.handleAuthInvalidJWTMessage(e)],"auth:valid-jwt":[e=>this.handleAuthValidTokenMessage(e)],"redirect:request":[e=>this.handleRedirectRequestMessage(e)],"execute-js:request":[e=>this.handleExecuteJSRequestMessage(e)]});r(this,"start",async()=>{this.setFormState({type:"loading"}),await this.connectionManager.newConnection(3,this.userStore.wsAuthHeaders)});r(this,"resetForm",async()=>{var e;(e=this.logService)==null||e.log({type:"stdout",log:"[Form reloaded]"}),await this.connectionManager.close("FRONTEND_FORM_RESTART"),this.resetState()});r(this,"reconnect",async()=>{this.resetState(),await this.start()});r(this,"resetState",()=>{this.messageSeq=0,this.setFormState({type:"waiting",actions:[this.getStartAction()]})});r(this,"startPageLoading",()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.formState.actions.some(e=>e.loading)||this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!0}))})});r(this,"debouncedFinishPageLoading",lodash.exports.debounce(()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!1}))})},500));r(this,"handleAuthEvent",e=>{if(!e){this.resetForm();return}this.formState.type==="authenticating"&&this.sendAuthSavedJWT(e)});r(this,"getStartAction",()=>this.actionFromMessage(this.formRunnerData.startButtonText||i18nProvider.translateIfFound("i18n_start_action",this.formRunnerData.language)));r(this,"getEndStateActions",()=>{const e=this.formRunnerData.restartButtonText||i18nProvider.translateIfFound("i18n_restart_action",this.formRunnerData.language);return this.formRunnerData.allowRestart?[this.actionFromMessage(e)]:[]});r(this,"getState",()=>({formState:this.formState,passwordlessUser:this.userStore.user}));r(this,"handleConnectionOpen",()=>{this.connectionManager.send({type:"execution:start"})});r(this,"widgetFromMessage",(e,t)=>{if(isInputWidget(e)){const a=e.errors.map(o=>i18nProvider.translateIfFound(o,this.formRunnerData.language,e));return{...e,input:!0,_pythonErrors:a,errors:a}}return{...e,input:!1,_pythonErrors:[],errors:[],key:e.type+t}});r(this,"actionFromMessage",e=>({name:e,label:i18nProvider.translateIfFound(e,this.formRunnerData.language,this.formRunnerData),disabled:!1,loading:!1}));r(this,"getAutofillVisibilty",e=>this.lastResponseHistory.length===0?!1:this.lastResponseHistory[0].some(t=>e.find(a=>a.key===t.key&&a.type===t.type&&"value"in a)));r(this,"handleAutofillClick",()=>{!this.lastResponseHistory[0]||this.formState.type==="page"&&(this.lastResponseHistory[0].forEach(t=>{!("widgets"in this.formState&&this.formState.widgets.find(o=>o.key===t.key&&o.type===t.type))||"value"in t&&this.updateWidgetValue(t.key,t.value)}),this.setFormState({...this.formState,showAutofill:!1}))});r(this,"handleMessageReceived",e=>{const t=this.handlers[e.type];if(!t)throw new Error(`No handler for message type ${e.type}`);if(t.forEach(a=>a(e)),e.debug&&this.onStackTraceUpdate){const a=e.type==="execution:ended";this.onStackTraceUpdate(e.debug.stack,a)}});r(this,"handleActionClick",e=>{if(this.formState.type==="waiting")return this.start();if(this.formState.type==="page"){const t=e.name==="i18n_back_action";return this.hasErrors()&&!t?void 0:(this.setFormState({...this.formState,actions:this.formState.actions.map(a=>a.label===e.label?{...a,loading:!0}:a)}),this.lastResponseHistory.shift(),this.responseHistory.push(this.formState.widgets),this.sendFormPageResponse(this.getWidgetValues(),e))}if(this.formState.type==="default-end"||this.formState.type==="page-end")return this.setFormState({...this.formState,actions:[{...this.getStartAction(),loading:!0}]}),this.start()});r(this,"updateWidgetValue",(e,t)=>{if(this.formState.type!=="page")return;const a=this.formState.widgets.find(l=>"key"in l&&l.key===e);if(!a||!isInputWidget(a))return;const o=this.formState.widgets.map(l=>l.key===e?{...l,value:t}:l);this.setFormState({...this.formState,widgets:o}),this.sendFormUserEvent(this.getWidgetValues(),this.getSecrets())});r(this,"updateWidgetFrontendErrors",(e,t)=>{if(this.formState.type!=="page"||!this.formState.widgets.find(l=>l.key===e))return;const o=this.formState.widgets.map(l=>l.key===e?{...l,errors:l._pythonErrors.concat(t.map(c=>i18nProvider.translateIfFound(c,this.formRunnerData.language,l)))}:l);this.setFormState({...this.formState,widgets:o})});if(this.formRunnerData=e,this.logService=t,this.connectionManager=a,this.onFormStart=o,this.onFormEnd=l,this.onRedirect=c,this.onStateUpdate=s,this.onStackTraceUpdate=d,this.userStore=useUserStore(),this.connectionManager.onOpen=()=>this.handleConnectionOpen(),this.connectionManager.onMessage=h=>this.handleMessageReceived(h),this.connectionManager.onClose=h=>this.handleConnectionClose(h),watch(()=>this.userStore.user,this.handleAuthEvent),this.formRunnerData.autoStart){this.formState={type:"loading"},this.start();return}this.formState={type:"waiting",actions:[this.getStartAction()]}}set detached(e){this.connectionManager.detached=e}fullWidthFromMessage(e){return e.some(t=>"fullWidth"in t&&t.fullWidth)}async handleExecutionStartedMessage(e){this.executionId=e.executionId,this.onFormStart()}handleMountPageMessage(e){var a,o;const t=e.widgets.map(this.widgetFromMessage);if(e.endProgram){this.setFormState({type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)});return}this.setFormState({type:"page",widgets:t,actions:(o=(a=e.actions)==null?void 0:a.map(this.actionFromMessage))!=null?o:[],fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)})}async handleExecuteJSRequestMessage(e){const t=await executeJs(e);this.connectionManager.send(t)}async handleAuthRequireInfoMessage(e){this.userStore.loadSavedToken();const t=this.userStore.user;if(t&&!e.refresh){this.sendAuthSavedJWT(t);return}this.userStore.logout(),this.setFormState({type:"authenticating"})}async handleAuthInvalidJWTMessage(e){this.userStore.logout(),this.setFormState({type:"authenticating"})}async handleAuthValidTokenMessage(e){}async handleExecutionLockFailedMessage(e){this.setFormState({type:"lock-failed"})}async handleRedirectRequestMessage(e){this.onRedirect(e.url,e.queryParams)}async handleUpdatePageMessage(e){if(e.seq===this.messageSeq){if(this.formState.type!=="page")throw new Error("Received form:update-page message while not in render-page state");this.setFormState({...this.formState,error:{message:e.validation.message,status:e.validation.status},widgets:e.widgets.map(this.widgetFromMessage),actions:this.formState.actions.map(t=>({...t,disabled:this.shouldDisableAction(t,e)}))}),this.debouncedFinishPageLoading()}}shouldDisableAction(e,t){if(e.name==="i18n_back_action"||this.formState.type!=="page")return!1;const o=t.widgets.map(this.widgetFromMessage).some(c=>c.errors.length>0),l=t.validation.status===!1||Boolean(t.validation.message);return o||l}async handleExecutionEndedMessage(e){var t;this.lastResponseHistory=[...this.responseHistory],this.responseHistory=[],!FORM_END_STATES.includes(this.formState.type)&&(e.exitStatus==="SUCCESS"&&(this.setFormState({type:"default-end",actions:this.getEndStateActions()}),(t=this.logService)==null||t.log({type:"stdout",log:"[Form run finished]"})),e.exitStatus==="EXCEPTION"&&this.setFormState({type:"error",message:e.exception,executionId:this.executionId}),this.onFormEnd())}sendFormPageResponse(e,t,a){this.connectionManager.send({type:"form:page-response",payload:e,secrets:a,action:t==null?void 0:t.name,seq:++this.messageSeq})}sendFormUserEvent(e,t){this.startPageLoading(),this.connectionManager.send({type:"form:user-event",payload:e,secrets:t,seq:++this.messageSeq})}sendAuthSavedJWT(e){this.connectionManager.send({type:"auth:saved-jwt",jwt:e.rawJwt})}handleCloseAttempt(){return FORM_END_STATES.includes(this.formState.type)||this.formState.type==="waiting"?!1:(this.connectionManager.send({type:"debug:close-attempt"}),!0)}handleConnectionClose(e){e.code!==WS_CUSTOM_CLOSING_REASONS.FRONTEND_FORM_RESTART&&FORM_RUNNING_STATES.includes(this.formState.type)&&this.reconnect()}setFormState(e){this.formState=Object.freeze(e),this.onStateUpdate(e)}getSecrets(){return this.formState.type!=="page"?[]:this.formState.widgets.filter(e=>"secret"in e).reduce((e,t)=>"key"in t&&"secret"in t?[...e,{key:t.key,secret:t.secret}]:e,[])}setWidgetValidationFunction(e,t){if(this.formState.type!=="page")return;const a=this.formState.widgets.find(o=>"key"in o&&o.key===e);!a||!isInputWidget(a)||(a.validationFunction=t)}hasErrors(){var e;return this.formState.type!=="page"?!1:((e=this.formState.error)==null?void 0:e.status)===!1||this.formState.widgets.some(t=>t.errors.length>0)}getWidgetValue(e){if(this.formState.type!=="page")return null;const t=this.formState.widgets.find(a=>"key"in a&&a.key===e);if(!t||!isInputWidget(t))return null}getWidgetValues(){return this.formState.type!=="page"?{}:this.formState.widgets.reduce((e,t)=>("value"in t&&(e[t.key]=t.value),e),{})}}const _hoisted_1$2={class:"text"},_sfc_main$3=defineComponent({__name:"component",props:{locale:{}},setup(n){return(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$2,toDisplayString(unref(i18nProvider).translate("i18n_lock_failed_not_running",e.locale)),1))}}),_hoisted_1$1={class:"outline-button"},_sfc_main$2=defineComponent({__name:"OutlineButton",props:{icon:{},noShadow:{type:Boolean},status:{}},setup(n){return(e,t)=>(openBlock(),createElementBlock("button",_hoisted_1$1,[e.icon?(openBlock(),createBlock(resolveDynamicComponent(e.icon),{key:0,class:"icon",color:"#fff"})):createCommentVNode("",!0),renderSlot(e.$slots,"default",{},void 0,!0)]))}}),OutlineButton_vue_vue_type_style_index_0_scoped_2d3b9e41_lang="",OutlineButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-2d3b9e41"]]),_sfc_main$1=defineComponent({__name:"FormAutoFill",emits:["click"],setup(n,{emit:e}){return(t,a)=>(openBlock(),createBlock(OutlineButton,{icon:unref(G),class:"form-auto-fill-btn",onClick:a[0]||(a[0]=o=>e("click"))},{default:withCtx(()=>[createTextVNode(" Repeat last answer ")]),_:1},8,["icon"]))}}),FormAutoFill_vue_vue_type_style_index_0_scoped_39354e61_lang="",FormAutoFill=_export_sfc(_sfc_main$1,[["__scopeId","data-v-39354e61"]]),_hoisted_1={class:"center"},_hoisted_2={key:0,class:"loading-wrapper"},_hoisted_3={class:"form-wrapper"},_hoisted_4=["id"],_hoisted_5={key:5,class:"span-error"},_hoisted_6={key:0,class:"buttons"},_sfc_main=defineComponent({__name:"FormRunner",props:{formRunnerData:{},formState:{},isPreview:{type:Boolean},disabled:{type:Boolean}},emits:["action-clicked","auto-fill-clicked","update-widget-value","update-widget-errors"],setup(n,{emit:e}){const t=n,a=ref(null),o=ref({}),l=()=>{!a.value||(a.value.scrollTop=0)};watch(()=>t.formState,(s,d)=>{s.type==="page"&&(d==null?void 0:d.type)==="page"&&s.refreshKey!==d.refreshKey&&l()});const c=()=>{var s,d;return((s=t.formState)==null?void 0:s.type)==="page"?t.formState.fullWidth:((d=t.formState)==null?void 0:d.type)==="page-end"?t.formState.fullWidth&&t.formState.widgets.length>0:!1};return(s,d)=>{var h,u;return openBlock(),createElementBlock("div",_hoisted_1,[s.isPreview&&((h=s.formState)==null?void 0:h.type)==="page"&&s.formState.showAutofill?(openBlock(),createBlock(FormAutoFill,{key:0,class:"auto-fill-btn",form:s.formRunnerData,style:{"z-index":1},onClick:d[0]||(d[0]=i=>e("auto-fill-clicked"))},null,8,["form"])):createCommentVNode("",!0),((u=s.formState)==null?void 0:u.type)==="page"?(openBlock(),createBlock(Steps,{key:1,class:"steps","steps-info":s.formState.steps},null,8,["steps-info"])):createCommentVNode("",!0),createBaseVNode("main",{ref_key:"scrollableContainer",ref:a,class:normalizeClass([{disabled:s.disabled}]),style:{padding:"50px 0px","box-sizing":"border-box"}},[!s.formState||s.formState.type=="loading"?(openBlock(),createElementBlock("div",_hoisted_2,[createVNode(LoadingIndicator)])):s.formState.type==="authenticating"?(openBlock(),createBlock(_sfc_main$4,{key:1,class:"form-auth",locale:s.formRunnerData.language},null,8,["locale"])):(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["form",{"full-width":c()}])},[createBaseVNode("div",_hoisted_3,[s.formState.type==="waiting"?(openBlock(),createBlock(StartWidget,{key:0,form:s.formRunnerData},null,8,["form"])):s.formState.type==="default-end"?(openBlock(),createBlock(EndWidget,{key:1,"end-message":s.formRunnerData.endMessage,locale:s.formRunnerData.language},null,8,["end-message","locale"])):s.formState.type==="error"?(openBlock(),createBlock(ErrorWidget,{key:2,"error-message":s.formRunnerData.errorMessage,"execution-id":s.formState.executionId,locale:s.formRunnerData.language},null,8,["error-message","execution-id","locale"])):s.formState.type==="lock-failed"?(openBlock(),createBlock(_sfc_main$3,{key:3,locale:s.formRunnerData.language},null,8,["locale"])):(openBlock(!0),createElementBlock(Fragment,{key:4},renderList(s.formState.widgets,(i,_)=>{var v;return openBlock(),createElementBlock("div",{id:i.type+_,key:(v=i.key)!=null?v:i.type+_,class:"widget"},[(openBlock(),createBlock(resolveDynamicComponent(i.type),{ref_for:!0,ref:p=>"key"in i?o.value[i.key]=p:null,key:i.key+"_"+s.formState.refreshKey,value:unref(isInputWidget)(i)&&i.value,errors:i.errors,"user-props":i,locale:s.formRunnerData.language,"onUpdate:value":p=>e("update-widget-value",i.key,p),"onUpdate:errors":p=>e("update-widget-errors",i.key,p)},null,40,["value","errors","user-props","locale","onUpdate:value","onUpdate:errors"])),(openBlock(!0),createElementBlock(Fragment,null,renderList(i.errors,p=>(openBlock(),createElementBlock("span",{key:p,class:"span-error"},toDisplayString(p),1))),128))],8,_hoisted_4)}),128)),s.formState.type==="page"&&s.formState.error&&s.formState.error.status===!1?(openBlock(),createElementBlock("span",_hoisted_5,toDisplayString(s.formState.error.message||unref(i18nProvider).translateIfFound("i18n_generic_validation_error",s.formRunnerData.language)),1)):createCommentVNode("",!0)]),"actions"in s.formState?(openBlock(),createElementBlock("div",_hoisted_6,[createVNode(unref(StyleProvider),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.formState.actions,i=>(openBlock(),createBlock(unref(Button),{key:i.name,class:normalizeClass(["next-button",{"next-button__disabled":i.disabled||i.loading}]),loading:i.loading,disabled:i.disabled||i.loading,onClick:_=>e("action-clicked",i),onKeydown:withKeys(_=>e("action-clicked",i),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(i.label),1)]),_:2},1032,["class","loading","disabled","onClick","onKeydown"]))),128))]),_:1})])):createCommentVNode("",!0)],2))],2),createVNode(Watermark,{"page-id":s.formRunnerData.id,locale:s.formRunnerData.language},null,8,["page-id","locale"])])}}}),FormRunner_vue_vue_type_style_index_0_scoped_5fa806c4_lang="",FormRunner=_export_sfc(_sfc_main,[["__scopeId","data-v-5fa806c4"]]);export{FORM_RUNNING_STATES as F,FORM_END_STATES as a,FormRunner as b,FormRunnerController as c,FormConnectionManager as d,redirect as r}; -//# sourceMappingURL=FormRunner.2728cecd.js.map +var M=Object.defineProperty;var F=(n,e,t)=>e in n?M(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var r=(n,e,t)=>(F(n,typeof e!="symbol"?e+"":e,t),t);import{i as isUrl}from"./url.5959ae47.js";import{d as defineComponent,B as inject,f as computed,o as openBlock,X as createElementBlock,Z as renderSlot,R as createCommentVNode,eb as mergeProps,a as createBaseVNode,g as watch,eo as lodash,eV as i18nProvider,ec as toDisplayString,u as unref,c as createBlock,ef as resolveDynamicComponent,$ as _export_sfc,w as withCtx,aF as createTextVNode,e as ref,b as createVNode,ea as normalizeClass,eW as StartWidget,eX as EndWidget,eY as ErrorWidget,aR as Fragment,ee as renderList,eZ as StyleProvider,eU as withKeys,bS as Button}from"./vue-router.3fd92176.js";import{b as useUserStore}from"./workspaceStore.411ef1fe.js";import{_ as _sfc_main$4}from"./Login.vue_vue_type_script_setup_true_lang.8de09e2d.js";import{L as LoadingIndicator}from"./CircularLoading.b920c29a.js";import{S as Steps}from"./Steps.767c106d.js";import{W as Watermark}from"./Watermark.43182479.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="ab82376a-a83e-4527-8acc-6a185fbb7d57",n._sentryDebugIdIdentifier="sentry-dbid-ab82376a-a83e-4527-8acc-6a185fbb7d57")}catch{}})();const Z=["width","height","fill","transform"],g={key:0},m=createBaseVNode("path",{d:"M112,36a12,12,0,0,0-12,12V60H24A20,20,0,0,0,4,80v96a20,20,0,0,0,20,20h76v12a12,12,0,0,0,24,0V48A12,12,0,0,0,112,36ZM28,172V84h72v88ZM252,80v96a20,20,0,0,1-20,20H152a12,12,0,0,1,0-24h76V84H152a12,12,0,0,1,0-24h80A20,20,0,0,1,252,80ZM88,112a12,12,0,0,1-12,12v20a12,12,0,0,1-24,0V124a12,12,0,0,1,0-24H76A12,12,0,0,1,88,112Z"},null,-1),y=[m],f={key:1},w=createBaseVNode("path",{d:"M240,80v96a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H232A8,8,0,0,1,240,80Z",opacity:"0.2"},null,-1),k=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),x=[w,k],S={key:2},z=createBaseVNode("path",{d:"M248,80v96a16,16,0,0,1-16,16H140a4,4,0,0,1-4-4V68a4,4,0,0,1,4-4h92A16,16,0,0,1,248,80ZM120,48V208a8,8,0,0,1-16,0V192H24A16,16,0,0,1,8,176V80A16,16,0,0,1,24,64h80V48a8,8,0,0,1,16,0ZM88,112a8,8,0,0,0-8-8H48a8,8,0,0,0,0,16h8v24a8,8,0,0,0,16,0V120h8A8,8,0,0,0,88,112Z"},null,-1),C=[z],B={key:3},b=createBaseVNode("path",{d:"M112,42a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80v96a14,14,0,0,0,14,14h82v18a6,6,0,0,0,12,0V48A6,6,0,0,0,112,42ZM24,178a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h82V178ZM246,80v96a14,14,0,0,1-14,14H144a6,6,0,0,1,0-12h88a2,2,0,0,0,2-2V80a2,2,0,0,0-2-2H144a6,6,0,0,1,0-12h88A14,14,0,0,1,246,80ZM86,112a6,6,0,0,1-6,6H70v26a6,6,0,0,1-12,0V118H48a6,6,0,0,1,0-12H80A6,6,0,0,1,86,112Z"},null,-1),N=[b],E={key:4},P=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),W=[P],$={key:5},j=createBaseVNode("path",{d:"M112,44a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80v96a12,12,0,0,0,12,12h84v20a4,4,0,0,0,8,0V48A4,4,0,0,0,112,44ZM24,180a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h84V180ZM244,80v96a12,12,0,0,1-12,12H144a4,4,0,0,1,0-8h88a4,4,0,0,0,4-4V80a4,4,0,0,0-4-4H144a4,4,0,0,1,0-8h88A12,12,0,0,1,244,80ZM84,112a4,4,0,0,1-4,4H68v28a4,4,0,0,1-8,0V116H48a4,4,0,0,1,0-8H80A4,4,0,0,1,84,112Z"},null,-1),T=[j],q={name:"PhTextbox"},G=defineComponent({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const e=n,t=inject("weight","regular"),a=inject("size","1em"),o=inject("color","currentColor"),l=inject("mirrored",!1),c=computed(()=>{var u;return(u=e.weight)!=null?u:t}),s=computed(()=>{var u;return(u=e.size)!=null?u:a}),d=computed(()=>{var u;return(u=e.color)!=null?u:o}),h=computed(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(u,i)=>(openBlock(),createElementBlock("svg",mergeProps({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:d.value,transform:h.value},u.$attrs),[renderSlot(u.$slots,"default"),c.value==="bold"?(openBlock(),createElementBlock("g",g,y)):c.value==="duotone"?(openBlock(),createElementBlock("g",f,x)):c.value==="fill"?(openBlock(),createElementBlock("g",S,C)):c.value==="light"?(openBlock(),createElementBlock("g",B,N)):c.value==="regular"?(openBlock(),createElementBlock("g",E,W)):c.value==="thin"?(openBlock(),createElementBlock("g",$,T)):createCommentVNode("",!0)],16,Z))}});function normalizePath(n){return n.startsWith("/")?n.slice(1):n}async function redirect(n,e,t,a={}){if(isUrl(t)){const o=new URLSearchParams(a),l=new URL(t);l.search=o.toString(),window.location.href=l.toString()}else{const o=t.replace(/\/$/,"");if(n==="player")await e.push({path:"/"+normalizePath(o),query:a});else if(n==="editor")await e.push({name:"formEditor",params:{formPath:normalizePath(o)},query:a});else if(n==="preview")await e.push({name:"formPreview",params:{formPath:normalizePath(o)},query:a});else throw new Error("Invalid routing")}}const WS_CLOSING_STATES=[WebSocket.CLOSING,WebSocket.CLOSED],WS_CUSTOM_CLOSING_REASONS={FRONTEND_FORM_RESTART:4e3};class FormConnectionManager{constructor(e,t,a,o){r(this,"ws",null);r(this,"heartbeatInterval");r(this,"onOpen",null);r(this,"onMessage",null);r(this,"onClose",null);this.formId=e,this.environment=t,this.userQueryParams=a,this._detached=o}set detached(e){this._detached=e}get url(){const e=location.protocol==="https:"?"wss:":"ws:",t=this.environment=="editor"?"_editor/api/forms/socket":"_socket",a=new URLSearchParams({id:this.formId,detached:this._detached?"true":"false",...this.userQueryParams});return`${e}//${location.host}/${t}?${a}`}handleOpen(e){if(!this.onOpen)throw new Error("onOpen is not set");this.onOpen(),e()}handleClose(e){(e.code===1006||!e.wasClean)&&clearInterval(this.heartbeatInterval),this.onClose&&this.onClose(e)}handleMessage(e){if(!this.onMessage)throw new Error("onMessage is not set");const t=JSON.parse(e.data);this.onMessage(t)}sendHeartbeat(){!this.ws||this.ws.readyState!==this.ws.OPEN||this.send({type:"execution:heartbeat"})}async send(e){if(!this.ws)throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not connected`);WS_CLOSING_STATES.includes(this.ws.readyState)&&await this.newConnection(),this.ws.send(JSON.stringify(e))}async close(e){this.ws&&this.ws.close(WS_CUSTOM_CLOSING_REASONS[e],e)}async newConnection(e=3,t){if(e!=0)return new Promise(a=>{clearInterval(this.heartbeatInterval),this.ws=new WebSocket(this.url,t),this.ws.onopen=()=>this.handleOpen(a),this.ws.onclose=o=>this.handleClose(o),this.ws.onmessage=o=>this.handleMessage(o),this.heartbeatInterval=setInterval(()=>this.sendHeartbeat(),2e3)}).catch(()=>{this.newConnection(e-1)})}}function isInputWidget(n){return"key"in n&&"value"in n&&"errors"in n}const executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(n){throw console.error(`[Error: execute_js]: ${n.message}, context: ${$context}`),n}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(n){return{type:"execute-js:response",value:await executeCode(n.context,n.code)}}const isSerializable=n=>{try{return JSON.stringify(n),!0}catch{return!1}},FORM_END_STATES=["default-end","page-end","error","lock-failed"],FORM_RUNNING_STATES=["authenticating","page","loading"];class FormRunnerController{constructor({formRunnerData:e,logService:t,connectionManager:a,onFormStart:o,onFormEnd:l,onRedirect:c,onStateUpdate:s,onStackTraceUpdate:d}){r(this,"connectionManager");r(this,"logService");r(this,"formRunnerData");r(this,"formState");r(this,"messageSeq",0);r(this,"executionId",null);r(this,"onFormStart");r(this,"onFormEnd");r(this,"onRedirect");r(this,"onStackTraceUpdate");r(this,"onStateUpdate");r(this,"userStore");r(this,"responseHistory",[]);r(this,"lastResponseHistory",[]);r(this,"handlers",{"execution:lock-failed":[e=>this.handleExecutionLockFailedMessage(e)],"execution:started":[e=>this.handleExecutionStartedMessage(e)],"execution:ended":[e=>this.handleExecutionEndedMessage(e)],"form:mount-page":[e=>this.handleMountPageMessage(e)],"form:update-page":[e=>this.handleUpdatePageMessage(e)],"auth:require-info":[e=>this.handleAuthRequireInfoMessage(e)],"auth:invalid-jwt":[e=>this.handleAuthInvalidJWTMessage(e)],"auth:valid-jwt":[e=>this.handleAuthValidTokenMessage(e)],"redirect:request":[e=>this.handleRedirectRequestMessage(e)],"execute-js:request":[e=>this.handleExecuteJSRequestMessage(e)]});r(this,"start",async()=>{this.setFormState({type:"loading"}),await this.connectionManager.newConnection(3,this.userStore.wsAuthHeaders)});r(this,"resetForm",async()=>{var e;(e=this.logService)==null||e.log({type:"stdout",log:"[Form reloaded]"}),await this.connectionManager.close("FRONTEND_FORM_RESTART"),this.resetState()});r(this,"reconnect",async()=>{this.resetState(),await this.start()});r(this,"resetState",()=>{this.messageSeq=0,this.setFormState({type:"waiting",actions:[this.getStartAction()]})});r(this,"startPageLoading",()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.formState.actions.some(e=>e.loading)||this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!0}))})});r(this,"debouncedFinishPageLoading",lodash.exports.debounce(()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!1}))})},500));r(this,"handleAuthEvent",e=>{if(!e){this.resetForm();return}this.formState.type==="authenticating"&&this.sendAuthSavedJWT(e)});r(this,"getStartAction",()=>this.actionFromMessage(this.formRunnerData.startButtonText||i18nProvider.translateIfFound("i18n_start_action",this.formRunnerData.language)));r(this,"getEndStateActions",()=>{const e=this.formRunnerData.restartButtonText||i18nProvider.translateIfFound("i18n_restart_action",this.formRunnerData.language);return this.formRunnerData.allowRestart?[this.actionFromMessage(e)]:[]});r(this,"getState",()=>({formState:this.formState,passwordlessUser:this.userStore.user}));r(this,"handleConnectionOpen",()=>{this.connectionManager.send({type:"execution:start"})});r(this,"widgetFromMessage",(e,t)=>{if(isInputWidget(e)){const a=e.errors.map(o=>i18nProvider.translateIfFound(o,this.formRunnerData.language,e));return{...e,input:!0,_pythonErrors:a,errors:a}}return{...e,input:!1,_pythonErrors:[],errors:[],key:e.type+t}});r(this,"actionFromMessage",e=>({name:e,label:i18nProvider.translateIfFound(e,this.formRunnerData.language,this.formRunnerData),disabled:!1,loading:!1}));r(this,"getAutofillVisibilty",e=>this.lastResponseHistory.length===0?!1:this.lastResponseHistory[0].some(t=>e.find(a=>a.key===t.key&&a.type===t.type&&"value"in a)));r(this,"handleAutofillClick",()=>{!this.lastResponseHistory[0]||this.formState.type==="page"&&(this.lastResponseHistory[0].forEach(t=>{!("widgets"in this.formState&&this.formState.widgets.find(o=>o.key===t.key&&o.type===t.type))||"value"in t&&this.updateWidgetValue(t.key,t.value)}),this.setFormState({...this.formState,showAutofill:!1}))});r(this,"handleMessageReceived",e=>{const t=this.handlers[e.type];if(!t)throw new Error(`No handler for message type ${e.type}`);if(t.forEach(a=>a(e)),e.debug&&this.onStackTraceUpdate){const a=e.type==="execution:ended";this.onStackTraceUpdate(e.debug.stack,a)}});r(this,"handleActionClick",e=>{if(this.formState.type==="waiting")return this.start();if(this.formState.type==="page"){const t=e.name==="i18n_back_action";return this.hasErrors()&&!t?void 0:(this.setFormState({...this.formState,actions:this.formState.actions.map(a=>a.label===e.label?{...a,loading:!0}:a)}),this.lastResponseHistory.shift(),this.responseHistory.push(this.formState.widgets),this.sendFormPageResponse(this.getWidgetValues(),e))}if(this.formState.type==="default-end"||this.formState.type==="page-end")return this.setFormState({...this.formState,actions:[{...this.getStartAction(),loading:!0}]}),this.start()});r(this,"updateWidgetValue",(e,t)=>{if(this.formState.type!=="page")return;const a=this.formState.widgets.find(l=>"key"in l&&l.key===e);if(!a||!isInputWidget(a))return;const o=this.formState.widgets.map(l=>l.key===e?{...l,value:t}:l);this.setFormState({...this.formState,widgets:o}),this.sendFormUserEvent(this.getWidgetValues(),this.getSecrets())});r(this,"updateWidgetFrontendErrors",(e,t)=>{if(this.formState.type!=="page"||!this.formState.widgets.find(l=>l.key===e))return;const o=this.formState.widgets.map(l=>l.key===e?{...l,errors:l._pythonErrors.concat(t.map(c=>i18nProvider.translateIfFound(c,this.formRunnerData.language,l)))}:l);this.setFormState({...this.formState,widgets:o})});if(this.formRunnerData=e,this.logService=t,this.connectionManager=a,this.onFormStart=o,this.onFormEnd=l,this.onRedirect=c,this.onStateUpdate=s,this.onStackTraceUpdate=d,this.userStore=useUserStore(),this.connectionManager.onOpen=()=>this.handleConnectionOpen(),this.connectionManager.onMessage=h=>this.handleMessageReceived(h),this.connectionManager.onClose=h=>this.handleConnectionClose(h),watch(()=>this.userStore.user,this.handleAuthEvent),this.formRunnerData.autoStart){this.formState={type:"loading"},this.start();return}this.formState={type:"waiting",actions:[this.getStartAction()]}}set detached(e){this.connectionManager.detached=e}fullWidthFromMessage(e){return e.some(t=>"fullWidth"in t&&t.fullWidth)}async handleExecutionStartedMessage(e){this.executionId=e.executionId,this.onFormStart()}handleMountPageMessage(e){var a,o;const t=e.widgets.map(this.widgetFromMessage);if(e.endProgram){this.setFormState({type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)});return}this.setFormState({type:"page",widgets:t,actions:(o=(a=e.actions)==null?void 0:a.map(this.actionFromMessage))!=null?o:[],fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)})}async handleExecuteJSRequestMessage(e){const t=await executeJs(e);this.connectionManager.send(t)}async handleAuthRequireInfoMessage(e){this.userStore.loadSavedToken();const t=this.userStore.user;if(t&&!e.refresh){this.sendAuthSavedJWT(t);return}this.userStore.logout(),this.setFormState({type:"authenticating"})}async handleAuthInvalidJWTMessage(e){this.userStore.logout(),this.setFormState({type:"authenticating"})}async handleAuthValidTokenMessage(e){}async handleExecutionLockFailedMessage(e){this.setFormState({type:"lock-failed"})}async handleRedirectRequestMessage(e){this.onRedirect(e.url,e.queryParams)}async handleUpdatePageMessage(e){if(e.seq===this.messageSeq){if(this.formState.type!=="page")throw new Error("Received form:update-page message while not in render-page state");this.setFormState({...this.formState,error:{message:e.validation.message,status:e.validation.status},widgets:e.widgets.map(this.widgetFromMessage),actions:this.formState.actions.map(t=>({...t,disabled:this.shouldDisableAction(t,e)}))}),this.debouncedFinishPageLoading()}}shouldDisableAction(e,t){if(e.name==="i18n_back_action"||this.formState.type!=="page")return!1;const o=t.widgets.map(this.widgetFromMessage).some(c=>c.errors.length>0),l=t.validation.status===!1||Boolean(t.validation.message);return o||l}async handleExecutionEndedMessage(e){var t;this.lastResponseHistory=[...this.responseHistory],this.responseHistory=[],!FORM_END_STATES.includes(this.formState.type)&&(e.exitStatus==="SUCCESS"&&(this.setFormState({type:"default-end",actions:this.getEndStateActions()}),(t=this.logService)==null||t.log({type:"stdout",log:"[Form run finished]"})),e.exitStatus==="EXCEPTION"&&this.setFormState({type:"error",message:e.exception,executionId:this.executionId}),this.onFormEnd())}sendFormPageResponse(e,t,a){this.connectionManager.send({type:"form:page-response",payload:e,secrets:a,action:t==null?void 0:t.name,seq:++this.messageSeq})}sendFormUserEvent(e,t){this.startPageLoading(),this.connectionManager.send({type:"form:user-event",payload:e,secrets:t,seq:++this.messageSeq})}sendAuthSavedJWT(e){this.connectionManager.send({type:"auth:saved-jwt",jwt:e.rawJwt})}handleCloseAttempt(){return FORM_END_STATES.includes(this.formState.type)||this.formState.type==="waiting"?!1:(this.connectionManager.send({type:"debug:close-attempt"}),!0)}handleConnectionClose(e){e.code!==WS_CUSTOM_CLOSING_REASONS.FRONTEND_FORM_RESTART&&FORM_RUNNING_STATES.includes(this.formState.type)&&this.reconnect()}setFormState(e){this.formState=Object.freeze(e),this.onStateUpdate(e)}getSecrets(){return this.formState.type!=="page"?[]:this.formState.widgets.filter(e=>"secret"in e).reduce((e,t)=>"key"in t&&"secret"in t?[...e,{key:t.key,secret:t.secret}]:e,[])}setWidgetValidationFunction(e,t){if(this.formState.type!=="page")return;const a=this.formState.widgets.find(o=>"key"in o&&o.key===e);!a||!isInputWidget(a)||(a.validationFunction=t)}hasErrors(){var e;return this.formState.type!=="page"?!1:((e=this.formState.error)==null?void 0:e.status)===!1||this.formState.widgets.some(t=>t.errors.length>0)}getWidgetValue(e){if(this.formState.type!=="page")return null;const t=this.formState.widgets.find(a=>"key"in a&&a.key===e);if(!t||!isInputWidget(t))return null}getWidgetValues(){return this.formState.type!=="page"?{}:this.formState.widgets.reduce((e,t)=>("value"in t&&(e[t.key]=t.value),e),{})}}const _hoisted_1$2={class:"text"},_sfc_main$3=defineComponent({__name:"component",props:{locale:{}},setup(n){return(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$2,toDisplayString(unref(i18nProvider).translate("i18n_lock_failed_not_running",e.locale)),1))}}),_hoisted_1$1={class:"outline-button"},_sfc_main$2=defineComponent({__name:"OutlineButton",props:{icon:{},noShadow:{type:Boolean},status:{}},setup(n){return(e,t)=>(openBlock(),createElementBlock("button",_hoisted_1$1,[e.icon?(openBlock(),createBlock(resolveDynamicComponent(e.icon),{key:0,class:"icon",color:"#fff"})):createCommentVNode("",!0),renderSlot(e.$slots,"default",{},void 0,!0)]))}}),OutlineButton_vue_vue_type_style_index_0_scoped_2d3b9e41_lang="",OutlineButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-2d3b9e41"]]),_sfc_main$1=defineComponent({__name:"FormAutoFill",emits:["click"],setup(n,{emit:e}){return(t,a)=>(openBlock(),createBlock(OutlineButton,{icon:unref(G),class:"form-auto-fill-btn",onClick:a[0]||(a[0]=o=>e("click"))},{default:withCtx(()=>[createTextVNode(" Repeat last answer ")]),_:1},8,["icon"]))}}),FormAutoFill_vue_vue_type_style_index_0_scoped_39354e61_lang="",FormAutoFill=_export_sfc(_sfc_main$1,[["__scopeId","data-v-39354e61"]]),_hoisted_1={class:"center"},_hoisted_2={key:0,class:"loading-wrapper"},_hoisted_3={class:"form-wrapper"},_hoisted_4=["id"],_hoisted_5={key:5,class:"span-error"},_hoisted_6={key:0,class:"buttons"},_sfc_main=defineComponent({__name:"FormRunner",props:{formRunnerData:{},formState:{},isPreview:{type:Boolean},disabled:{type:Boolean}},emits:["action-clicked","auto-fill-clicked","update-widget-value","update-widget-errors"],setup(n,{emit:e}){const t=n,a=ref(null),o=ref({}),l=()=>{!a.value||(a.value.scrollTop=0)};watch(()=>t.formState,(s,d)=>{s.type==="page"&&(d==null?void 0:d.type)==="page"&&s.refreshKey!==d.refreshKey&&l()});const c=()=>{var s,d;return((s=t.formState)==null?void 0:s.type)==="page"?t.formState.fullWidth:((d=t.formState)==null?void 0:d.type)==="page-end"?t.formState.fullWidth&&t.formState.widgets.length>0:!1};return(s,d)=>{var h,u;return openBlock(),createElementBlock("div",_hoisted_1,[s.isPreview&&((h=s.formState)==null?void 0:h.type)==="page"&&s.formState.showAutofill?(openBlock(),createBlock(FormAutoFill,{key:0,class:"auto-fill-btn",form:s.formRunnerData,style:{"z-index":1},onClick:d[0]||(d[0]=i=>e("auto-fill-clicked"))},null,8,["form"])):createCommentVNode("",!0),((u=s.formState)==null?void 0:u.type)==="page"?(openBlock(),createBlock(Steps,{key:1,class:"steps","steps-info":s.formState.steps},null,8,["steps-info"])):createCommentVNode("",!0),createBaseVNode("main",{ref_key:"scrollableContainer",ref:a,class:normalizeClass([{disabled:s.disabled}]),style:{padding:"50px 0px","box-sizing":"border-box"}},[!s.formState||s.formState.type=="loading"?(openBlock(),createElementBlock("div",_hoisted_2,[createVNode(LoadingIndicator)])):s.formState.type==="authenticating"?(openBlock(),createBlock(_sfc_main$4,{key:1,class:"form-auth",locale:s.formRunnerData.language},null,8,["locale"])):(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["form",{"full-width":c()}])},[createBaseVNode("div",_hoisted_3,[s.formState.type==="waiting"?(openBlock(),createBlock(StartWidget,{key:0,form:s.formRunnerData},null,8,["form"])):s.formState.type==="default-end"?(openBlock(),createBlock(EndWidget,{key:1,"end-message":s.formRunnerData.endMessage,locale:s.formRunnerData.language},null,8,["end-message","locale"])):s.formState.type==="error"?(openBlock(),createBlock(ErrorWidget,{key:2,"error-message":s.formRunnerData.errorMessage,"execution-id":s.formState.executionId,locale:s.formRunnerData.language},null,8,["error-message","execution-id","locale"])):s.formState.type==="lock-failed"?(openBlock(),createBlock(_sfc_main$3,{key:3,locale:s.formRunnerData.language},null,8,["locale"])):(openBlock(!0),createElementBlock(Fragment,{key:4},renderList(s.formState.widgets,(i,_)=>{var v;return openBlock(),createElementBlock("div",{id:i.type+_,key:(v=i.key)!=null?v:i.type+_,class:"widget"},[(openBlock(),createBlock(resolveDynamicComponent(i.type),{ref_for:!0,ref:p=>"key"in i?o.value[i.key]=p:null,key:i.key+"_"+s.formState.refreshKey,value:unref(isInputWidget)(i)&&i.value,errors:i.errors,"user-props":i,locale:s.formRunnerData.language,"onUpdate:value":p=>e("update-widget-value",i.key,p),"onUpdate:errors":p=>e("update-widget-errors",i.key,p)},null,40,["value","errors","user-props","locale","onUpdate:value","onUpdate:errors"])),(openBlock(!0),createElementBlock(Fragment,null,renderList(i.errors,p=>(openBlock(),createElementBlock("span",{key:p,class:"span-error"},toDisplayString(p),1))),128))],8,_hoisted_4)}),128)),s.formState.type==="page"&&s.formState.error&&s.formState.error.status===!1?(openBlock(),createElementBlock("span",_hoisted_5,toDisplayString(s.formState.error.message||unref(i18nProvider).translateIfFound("i18n_generic_validation_error",s.formRunnerData.language)),1)):createCommentVNode("",!0)]),"actions"in s.formState?(openBlock(),createElementBlock("div",_hoisted_6,[createVNode(unref(StyleProvider),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.formState.actions,i=>(openBlock(),createBlock(unref(Button),{key:i.name,class:normalizeClass(["next-button",{"next-button__disabled":i.disabled||i.loading}]),loading:i.loading,disabled:i.disabled||i.loading,onClick:_=>e("action-clicked",i),onKeydown:withKeys(_=>e("action-clicked",i),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(i.label),1)]),_:2},1032,["class","loading","disabled","onClick","onKeydown"]))),128))]),_:1})])):createCommentVNode("",!0)],2))],2),createVNode(Watermark,{"page-id":s.formRunnerData.id,locale:s.formRunnerData.language},null,8,["page-id","locale"])])}}}),FormRunner_vue_vue_type_style_index_0_scoped_5fa806c4_lang="",FormRunner=_export_sfc(_sfc_main,[["__scopeId","data-v-5fa806c4"]]);export{FORM_RUNNING_STATES as F,FORM_END_STATES as a,FormRunner as b,FormRunnerController as c,FormConnectionManager as d,redirect as r}; +//# sourceMappingURL=FormRunner.7499affa.js.map diff --git a/abstra_statics/dist/assets/Home.3f5e4a25.js b/abstra_statics/dist/assets/Home.3f5e4a25.js new file mode 100644 index 000000000..714ad3bd0 --- /dev/null +++ b/abstra_statics/dist/assets/Home.3f5e4a25.js @@ -0,0 +1,2 @@ +import{i as g}from"./metadata.789df59c.js";import{W as h}from"./Watermark.43182479.js";import{F as k}from"./PhArrowSquareOut.vue.188b81dc.js";import{d as b,eq as w,f as x,u as e,X as l,b as o,w as r,R as v,o as s,c as d,aF as m,d7 as u,aR as C,ee as D,df as _,ef as I,ec as F,$ as T}from"./vue-router.3fd92176.js";import{u as z}from"./workspaceStore.411ef1fe.js";import"./index.8321252a.js";import{C as B}from"./Card.0ce127d8.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./TabPane.d0ca7ad5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="3a0df636-d184-4d96-a5c1-cfbffd980b2d",t._sentryDebugIdIdentifier="sentry-dbid-3a0df636-d184-4d96-a5c1-cfbffd980b2d")}catch{}})();const H={key:0,class:"home-container"},N=b({__name:"Home",setup(t){const n=w(),c=z(),p=x(()=>{var a;return((a=c.state.workspace)==null?void 0:a.sidebar.filter(f=>f.id!=="home"))||[]}),y=a=>{n.push({path:`/${a}`})};return(a,f)=>e(c).state.workspace?(s(),l("div",H,[o(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[p.value.length===0?(s(),d(e(u),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(s(!0),l(C,{key:1},D(p.value,i=>(s(),d(e(B),{key:i.id,class:"form-card",onClick:R=>y(i.path)},{default:r(()=>[o(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(s(),d(I(e(g)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),o(e(u),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(i.name),1)]),_:2},1024),o(e(k),{size:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),o(h,{class:"watermark","page-id":"home",locale:e(c).state.workspace.language},null,8,["locale"])])):v("",!0)}});const M=T(N,[["__scopeId","data-v-a0bfe546"]]);export{M as default}; +//# sourceMappingURL=Home.3f5e4a25.js.map diff --git a/abstra_statics/dist/assets/Home.47154a4d.js b/abstra_statics/dist/assets/Home.47154a4d.js deleted file mode 100644 index cf00aadb4..000000000 --- a/abstra_statics/dist/assets/Home.47154a4d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{i as g}from"./metadata.d6f3a171.js";import{W as h}from"./Watermark.31f43e38.js";import{F as k}from"./PhArrowSquareOut.vue.340970aa.js";import{d as b,eq as w,f as x,u as e,X as f,b as o,w as r,R as v,o as s,c as p,aF as m,d7 as u,aR as C,ee as D,df as _,ef as I,ec as F,$ as T}from"./vue-router.4c13f3d4.js";import{u as z}from"./workspaceStore.ae240ce8.js";import"./index.bb32f6bd.js";import{C as B}from"./Card.b3c66431.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./TabPane.9889f7a8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="821adc6c-ae18-41d5-b41b-3af2cca8c369",t._sentryDebugIdIdentifier="sentry-dbid-821adc6c-ae18-41d5-b41b-3af2cca8c369")}catch{}})();const H={key:0,class:"home-container"},N=b({__name:"Home",setup(t){const n=w(),c=z(),l=x(()=>{var a;return((a=c.state.workspace)==null?void 0:a.sidebar.filter(d=>d.id!=="home"))||[]}),y=a=>{n.push({path:`/${a}`})};return(a,d)=>e(c).state.workspace?(s(),f("div",H,[o(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[l.value.length===0?(s(),p(e(u),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(s(!0),f(C,{key:1},D(l.value,i=>(s(),p(e(B),{key:i.id,class:"form-card",onClick:R=>y(i.path)},{default:r(()=>[o(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(s(),p(I(e(g)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),o(e(u),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(i.name),1)]),_:2},1024),o(e(k),{size:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),o(h,{class:"watermark","page-id":"home",locale:e(c).state.workspace.language},null,8,["locale"])])):v("",!0)}});const M=T(N,[["__scopeId","data-v-a0bfe546"]]);export{M as default}; -//# sourceMappingURL=Home.47154a4d.js.map diff --git a/abstra_statics/dist/assets/Home.77051e79.js b/abstra_statics/dist/assets/Home.77051e79.js deleted file mode 100644 index 09eee09ca..000000000 --- a/abstra_statics/dist/assets/Home.77051e79.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,e8 as v,D as m,X as d,a as c,u as g,Y as r,Z as p,R as w,e9 as h,ea as S,o as l,$ as b,e as k,r as C,b as u,w as I,aR as D}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="35cc251a-b3e1-421f-8ac8-53dfd5c2bfee",e._sentryDebugIdIdentifier="sentry-dbid-35cc251a-b3e1-421f-8ac8-53dfd5c2bfee")}catch{}})();const V=y({__name:"Modal",props:{containerStyle:{},headerStyle:{},contentStyle:{}},emits:["open","close"],setup(e,{expose:s,emit:o}){const i=v(),_=()=>{a.isOpened=!0,o("open")},n=()=>{a.isOpened=!1,o("close")};s({open:_,close:n});const a=m({isOpened:!1});return(t,f)=>(l(),d("div",{class:S(["background",a.isOpened&&"visible"]),onClick:n},[c("div",{class:"container",style:r(t.containerStyle),onClick:f[0]||(f[0]=h(()=>{},["stop"]))},[g(i).header?(l(),d("div",{key:0,class:"header",style:r(t.headerStyle)},[p(t.$slots,"header",{},void 0,!0)],4)):w("",!0),c("div",{class:"content",style:r(t.contentStyle)},[p(t.$slots,"content",{},void 0,!0)],4)],4)],2))}});const M=b(V,[["__scopeId","data-v-4d878495"]]),O=["src"],R=y({__name:"Home",setup(e){const s=m({onboardingForm:""}),o=k(null);return(i,_)=>{const n=C("RouterView");return l(),d(D,null,[u(n,{class:"router"}),u(M,{ref_key:"modal",ref:o},{content:I(()=>[c("iframe",{class:"form",src:s.onboardingForm},null,8,O)]),_:1},512)],64)}}});const x=b(R,[["__scopeId","data-v-f5f64833"]]);export{x as default}; -//# sourceMappingURL=Home.77051e79.js.map diff --git a/abstra_statics/dist/assets/Home.a55cc38e.js b/abstra_statics/dist/assets/Home.a55cc38e.js new file mode 100644 index 000000000..c4c6e6d72 --- /dev/null +++ b/abstra_statics/dist/assets/Home.a55cc38e.js @@ -0,0 +1,2 @@ +import{d as y,e8 as v,D as m,X as d,a as l,u as g,Y as r,Z as u,R as w,e9 as h,ea as S,o as c,$ as b,e as k,r as C,b as f,w as I,aR as D}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="b74a7603-c051-45d8-9250-2e47c430d4b9",e._sentryDebugIdIdentifier="sentry-dbid-b74a7603-c051-45d8-9250-2e47c430d4b9")}catch{}})();const V=y({__name:"Modal",props:{containerStyle:{},headerStyle:{},contentStyle:{}},emits:["open","close"],setup(e,{expose:s,emit:o}){const i=v(),_=()=>{a.isOpened=!0,o("open")},n=()=>{a.isOpened=!1,o("close")};s({open:_,close:n});const a=m({isOpened:!1});return(t,p)=>(c(),d("div",{class:S(["background",a.isOpened&&"visible"]),onClick:n},[l("div",{class:"container",style:r(t.containerStyle),onClick:p[0]||(p[0]=h(()=>{},["stop"]))},[g(i).header?(c(),d("div",{key:0,class:"header",style:r(t.headerStyle)},[u(t.$slots,"header",{},void 0,!0)],4)):w("",!0),l("div",{class:"content",style:r(t.contentStyle)},[u(t.$slots,"content",{},void 0,!0)],4)],4)],2))}});const M=b(V,[["__scopeId","data-v-4d878495"]]),O=["src"],R=y({__name:"Home",setup(e){const s=m({onboardingForm:""}),o=k(null);return(i,_)=>{const n=C("RouterView");return c(),d(D,null,[f(n,{class:"router"}),f(M,{ref_key:"modal",ref:o},{content:I(()=>[l("iframe",{class:"form",src:s.onboardingForm},null,8,O)]),_:1},512)],64)}}});const x=b(R,[["__scopeId","data-v-f5f64833"]]);export{x as default}; +//# sourceMappingURL=Home.a55cc38e.js.map diff --git a/abstra_statics/dist/assets/HookEditor.3a1c3b35.js b/abstra_statics/dist/assets/HookEditor.be8024c5.js similarity index 77% rename from abstra_statics/dist/assets/HookEditor.3a1c3b35.js rename to abstra_statics/dist/assets/HookEditor.be8024c5.js index c3c67b06b..3bd6ae815 100644 --- a/abstra_statics/dist/assets/HookEditor.3a1c3b35.js +++ b/abstra_statics/dist/assets/HookEditor.be8024c5.js @@ -1,2 +1,2 @@ -import{B as Q}from"./BaseLayout.e1793d5b.js";import{R as G,S as j,E as K,a as J,L as X}from"./SourceCode.493d1c63.js";import{S as z}from"./SaveButton.8d79c51b.js";import{a as Y}from"./asyncComputed.d0f14ed3.js";import{d as E,o as d,c as m,w as o,b as a,u as e,bK as w,cy as v,cx as W,f as M,D as Z,e as y,g as ee,aA as te,X as S,ee as H,bS as A,aF as g,aR as B,cD as N,R as b,da as V,a as ae,ec as F,d3 as oe,eq as re,ed as le,ej as ne,y as se,df as $,cV as ue}from"./vue-router.4c13f3d4.js";import{H as ie}from"./scripts.709f5489.js";import"./editor.49995faa.js";import{W as de}from"./workspaces.1ee4ae8d.js";import{_ as pe}from"./RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js";import{A as C}from"./api.a5810267.js";import{T as ce}from"./ThreadSelector.788dee18.js";import{D as me,A as fe}from"./index.431b228d.js";import{C as ve,A as P}from"./CollapsePanel.d6e0f903.js";import{A as L}from"./index.ec6b7808.js";import{B as ge}from"./Badge.49622b8e.js";import{A as ke}from"./index.c2ef572b.js";import{N as he}from"./NavbarControls.651b74bd.js";import{b as ye}from"./index.c2d72be7.js";import{A as D,T as O}from"./TabPane.9889f7a8.js";import"./uuid.27635aee.js";import"./validations.f7853e39.js";import"./string.eaeb96c3.js";import"./PhCopy.vue.300f48e4.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhCopySimple.vue.39f63820.js";import"./PhCaretRight.vue.d968b597.js";import"./PhBug.vue.e9805eb3.js";import"./PhQuestion.vue.500e5a18.js";import"./LoadingOutlined.6c0b95d8.js";import"./polling.ce5b4e64.js";import"./PhPencil.vue.f2283e7d.js";import"./toggleHighContrast.017fb466.js";import"./index.e5bdb21b.js";import"./Card.b3c66431.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./record.34d5b504.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./fetch.492045fb.js";import"./metadata.d6f3a171.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./index.3f22f3b8.js";import"./isNumeric.75337b1e.js";import"./CloseCircleOutlined.6201ef3d.js";import"./popupNotifcation.d2ca3d78.js";import"./PhArrowSquareOut.vue.340970aa.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./PhChats.vue.3f8c120c.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";(function(){try{var k=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(k._sentryDebugIds=k._sentryDebugIds||{},k._sentryDebugIds[f]="83c244bd-6f35-47bf-beb8-2981748470e5",k._sentryDebugIdIdentifier="sentry-dbid-83c244bd-6f35-47bf-beb8-2981748470e5")}catch{}})();const be=E({__name:"HookSettings",props:{hook:{}},setup(k){return(f,h)=>(d(),m(e(W),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:o(()=>[a(e(v),{label:"Name",required:""},{default:o(()=>[a(e(w),{value:f.hook.title,"onUpdate:value":h[0]||(h[0]=p=>f.hook.title=p)},null,8,["value"])]),_:1}),a(G,{runtime:f.hook},null,8,["runtime"])]),_:1}))}}),_e={style:{display:"flex","flex-direction":"column",gap:"10px"}},Ce={key:0},we=E({__name:"HookTester",props:{hook:{},disabledWarning:{},executionConfig:{}},emits:["update:stage-run-id","update:execution-config"],setup(k,{expose:f,emit:h}){const p=k,T=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"}],_=M(()=>{var l;if((l=r.response)!=null&&l.status)return r.response.status>=500?"red":r.response.status>=400?"orange":r.response.status>=200?"green":"blue"}),r=Z({shouldSelectStageRun:!p.hook.isInitial,stageRunId:p.executionConfig.stageRunId,queryParams:[],headers:[{key:"Content-Type",value:"application/json"}],method:"POST",body:JSON.stringify({foo:123,bar:"abc"},null,4)}),I=r.queryParams.find(l=>l.name===C);p.executionConfig.stageRunId&&!I&&r.queryParams.push({name:C,value:p.executionConfig.stageRunId});const i=y(!1),x=async()=>{i.value=!0;try{const l={method:r.method,query:r.queryParams.reduce((t,{name:n,value:c})=>(n&&c&&(t[n]=c),t),{}),body:r.body,headers:r.headers.reduce((t,{key:n,value:c})=>(n&&c&&(t[n]=c),t),{})},s=p.executionConfig.attached?await p.hook.run(l):await p.hook.test(l);r.response=s}finally{i.value=!1,h("update:execution-config",{attached:!1,stageRunId:null,pendingFork:!1,isInitial:p.hook.isInitial})}};ee([()=>p.executionConfig.stageRunId,()=>r.queryParams],([l,s])=>{const t=s.find(n=>n.name===C);if(l&&!t){r.queryParams.push({name:C,value:l});return}if(!l&&t){r.queryParams=r.queryParams.filter(n=>n.name!==C);return}l&&t&&l!==t.value&&(t.value=l)});const U=()=>{r.queryParams.push({name:"",value:""})},R=l=>{r.queryParams=r.queryParams.filter((s,t)=>t!==l)},q=()=>{r.headers.push({key:"",value:""})},u=l=>{r.headers=r.headers.filter((s,t)=>t!==l)};return f({runHook:x}),(l,s)=>(d(),m(e(W),{layout:"vertical",style:{overflow:"auto"}},{default:o(()=>[a(e(v),{label:"Method"},{default:o(()=>[a(e(te),{value:r.method,options:T,onSelect:s[0]||(s[0]=t=>r.method=t)},null,8,["value"])]),_:1}),a(e(v),null,{default:o(()=>[a(e(ve),{ghost:""},{default:o(()=>[a(e(P),{header:`Query Params (${r.queryParams.length})`},{default:o(()=>[(d(!0),S(B,null,H(r.queryParams,(t,n)=>(d(),m(e(v),{key:n},{default:o(()=>[a(e(L),null,{default:o(()=>[a(e(w),{value:t.name,"onUpdate:value":c=>t.name=c,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(w),{value:t.value,"onUpdate:value":c=>t.value=c,type:"text",placeholder:"value",disabled:t.name===e(C)},null,8,["value","onUpdate:value","disabled"]),a(e(A),{danger:"",onClick:c=>R(n)},{default:o(()=>[g("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(v),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:U},{default:o(()=>[g(" Add Query Param ")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:`Headers (${r.headers.length})`},{default:o(()=>[(d(!0),S(B,null,H(r.headers,(t,n)=>(d(),m(e(v),{key:n,label:n===0?"Headers":void 0},{default:o(()=>[a(e(L),null,{default:o(()=>[a(e(w),{value:t.key,"onUpdate:value":c=>t.key=c,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(w),{value:t.value,"onUpdate:value":c=>t.value=c,type:"text",placeholder:"value"},null,8,["value","onUpdate:value"]),a(e(A),{danger:"",onClick:c=>u(n)},{default:o(()=>[g("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["label"]))),128)),a(e(v),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:q},{default:o(()=>[g("Add Header")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:"Body"},{default:o(()=>[r.method!=="GET"?(d(),m(e(v),{key:0},{default:o(()=>[a(e(N),{value:r.body,"onUpdate:value":s[1]||(s[1]=t=>r.body=t)},null,8,["value"])]),_:1})):b("",!0)]),_:1}),a(e(P),null,{header:o(()=>[a(e(ge),{dot:l.executionConfig.attached&&!!(l.executionConfig.pendingFork||!l.executionConfig.stageRunId)},{default:o(()=>[a(e(V),null,{default:o(()=>[g("Thread")]),_:1})]),_:1},8,["dot"])]),default:o(()=>[a(ce,{stage:l.hook,"execution-config":p.executionConfig,"onUpdate:executionConfig":s[2]||(s[2]=t=>h("update:execution-config",t))},null,8,["stage","execution-config"])]),_:1})]),_:1})]),_:1}),a(e(v),null,{default:o(()=>[ae("div",_e,[a(pe,{loading:i.value,disabled:l.disabledWarning,onClick:x,onSave:s[3]||(s[3]=t=>l.hook.save())},null,8,["loading","disabled"])])]),_:1}),a(e(ke),{orientation:"left"},{default:o(()=>[g("Response")]),_:1}),r.response?(d(),S("div",Ce,[a(e(oe),{color:_.value},{default:o(()=>[g(F(r.response.status),1)]),_:1},8,["color"]),a(e(fe),null,{default:o(()=>[(d(!0),S(B,null,H(r.response.headers,(t,n)=>(d(),m(e(me),{key:n,label:n},{default:o(()=>[g(F(t),1)]),_:2},1032,["label"]))),128))]),_:1}),a(e(N),{value:r.response.body},null,8,["value"])])):b("",!0)]),_:1}))}}),xt=E({__name:"HookEditor",setup(k){const f=re(),h=le(),p=y(null),T=y(null),_=y("source-code"),r=y("preview");function I(){var t;if(!u.value)return;const s=u.value.hook.codeContent;(t=p.value)==null||t.updateLocalEditorCode(s)}const i=y({attached:!1,stageRunId:null,pendingFork:!1,isInitial:!1}),x=s=>i.value={...i.value,attached:!!s},U=M(()=>{var s;return(s=u.value)!=null&&s.hook.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:i.value.attached&&i.value.pendingFork?{title:"Past thread selected",message:"Fork the selected thread to run the workflow"}:!i.value.isInitial&&i.value.attached&&!i.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null});function R(){f.push({name:"stages"})}const q=y(null),{result:u}=Y(async()=>{const[s,t]=await Promise.all([de.get(),ie.get(h.params.id)]);return i.value.isInitial=t.isInitial,se({workspace:s,hook:t})}),l=X.create();return(s,t)=>(d(),m(Q,null,ne({navbar:o(()=>[e(u)?(d(),m(e(ye),{key:0,title:e(u).hook.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:R},{extra:o(()=>[a(he,{"docs-path":"concepts/hooks","editing-model":e(u).hook},null,8,["editing-model"])]),_:1},8,["title"])):b("",!0)]),content:o(()=>[e(u)?(d(),m(K,{key:0},{left:o(()=>[a(e(O),{"active-key":_.value,"onUpdate:activeKey":t[0]||(t[0]=n=>_.value=n)},{rightExtra:o(()=>[a(z,{model:e(u).hook,onSave:I},null,8,["model"])]),default:o(()=>[a(e(D),{key:"source-code",tab:"Source code"}),a(e(D),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"]),_.value==="source-code"?(d(),m(J,{key:0,ref_key:"code",ref:p,script:e(u).hook,workspace:e(u).workspace},null,8,["script","workspace"])):b("",!0),e(u).hook&&_.value==="settings"?(d(),m(be,{key:1,hook:e(u).hook},null,8,["hook"])):b("",!0)]),right:o(()=>[a(e(O),{"active-key":r.value,"onUpdate:activeKey":t[1]||(t[1]=n=>r.value=n)},{rightExtra:o(()=>[a(e($),{align:"center",gap:"middle"},{default:o(()=>[a(e($),{gap:"small"},{default:o(()=>[a(e(V),null,{default:o(()=>[g(F(i.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(ue),{checked:i.value.attached,"onUpdate:checked":x},null,8,["checked"])]),_:1})]),_:1})]),default:o(()=>[a(e(D),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(u).hook&&r.value==="preview"?(d(),m(we,{key:0,ref_key:"tester",ref:T,"execution-config":i.value,"onUpdate:executionConfig":t[2]||(t[2]=n=>i.value=n),hook:e(u).hook,"disabled-warning":U.value},null,8,["execution-config","hook","disabled-warning"])):b("",!0)]),_:1})):b("",!0)]),_:2},[e(u)?{name:"footer",fn:o(()=>[a(j,{ref_key:"smartConsole",ref:q,"stage-type":"hooks",stage:e(u).hook,"log-service":e(l),workspace:e(u).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{xt as default}; -//# sourceMappingURL=HookEditor.3a1c3b35.js.map +import{B as Q}from"./BaseLayout.294a6887.js";import{R as G,S as j,E as K,a as J,L as X}from"./SourceCode.db5c4074.js";import{S as z}from"./SaveButton.6d0d3fb7.js";import{a as Y}from"./asyncComputed.295e9e03.js";import{d as E,o as d,c as m,w as o,b as a,u as e,bK as w,cy as v,cx as W,f as M,D as Z,e as y,g as ee,aA as te,X as S,ee as H,bS as A,aF as g,aR as B,cD as N,R as b,da as V,a as ae,ec as F,d3 as oe,eq as re,ed as le,ej as ne,y as se,df as $,cV as ue}from"./vue-router.3fd92176.js";import{H as ie}from"./scripts.32887e06.js";import"./editor.519c2dc1.js";import{W as de}from"./workspaces.b456ec6a.js";import{_ as pe}from"./RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js";import{A as C}from"./api.854a5e4c.js";import{T as ce}from"./ThreadSelector.23af8b2c.js";import{D as me,A as fe}from"./index.2c515076.js";import{C as ve,A as P}from"./CollapsePanel.87687b29.js";import{A as L}from"./index.063f7c9e.js";import{B as ge}from"./Badge.bcc65740.js";import{A as ke}from"./index.c6ce1c1c.js";import{N as he}from"./NavbarControls.a8a61aa1.js";import{b as ye}from"./index.5ccdbcb7.js";import{A as D,T as O}from"./TabPane.d0ca7ad5.js";import"./uuid.06ef1e24.js";import"./validations.0afef3f1.js";import"./string.e75a34fd.js";import"./PhCopy.vue.0ae3f8ab.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhCopySimple.vue.992b99ff.js";import"./PhCaretRight.vue.f72488ac.js";import"./PhBug.vue.00bc4255.js";import"./PhQuestion.vue.129febdc.js";import"./LoadingOutlined.dad6ee6e.js";import"./polling.4e30c061.js";import"./PhPencil.vue.a2604470.js";import"./toggleHighContrast.db48a34e.js";import"./index.4fbbd10e.js";import"./Card.0ce127d8.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./record.cbb43e89.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./fetch.8c5b12c2.js";import"./metadata.789df59c.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./index.61e7dffa.js";import"./isNumeric.75337b1e.js";import"./CloseCircleOutlined.f8dfd09a.js";import"./popupNotifcation.0e86d6a8.js";import"./PhArrowSquareOut.vue.188b81dc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./PhChats.vue.aa1113d9.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";(function(){try{var k=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(k._sentryDebugIds=k._sentryDebugIds||{},k._sentryDebugIds[f]="8b457f93-cf74-4037-abdd-00540caca2cc",k._sentryDebugIdIdentifier="sentry-dbid-8b457f93-cf74-4037-abdd-00540caca2cc")}catch{}})();const be=E({__name:"HookSettings",props:{hook:{}},setup(k){return(f,h)=>(d(),m(e(W),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:o(()=>[a(e(v),{label:"Name",required:""},{default:o(()=>[a(e(w),{value:f.hook.title,"onUpdate:value":h[0]||(h[0]=p=>f.hook.title=p)},null,8,["value"])]),_:1}),a(G,{runtime:f.hook},null,8,["runtime"])]),_:1}))}}),_e={style:{display:"flex","flex-direction":"column",gap:"10px"}},Ce={key:0},we=E({__name:"HookTester",props:{hook:{},disabledWarning:{},executionConfig:{}},emits:["update:stage-run-id","update:execution-config"],setup(k,{expose:f,emit:h}){const p=k,T=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"}],_=M(()=>{var l;if((l=r.response)!=null&&l.status)return r.response.status>=500?"red":r.response.status>=400?"orange":r.response.status>=200?"green":"blue"}),r=Z({shouldSelectStageRun:!p.hook.isInitial,stageRunId:p.executionConfig.stageRunId,queryParams:[],headers:[{key:"Content-Type",value:"application/json"}],method:"POST",body:JSON.stringify({foo:123,bar:"abc"},null,4)}),I=r.queryParams.find(l=>l.name===C);p.executionConfig.stageRunId&&!I&&r.queryParams.push({name:C,value:p.executionConfig.stageRunId});const i=y(!1),x=async()=>{i.value=!0;try{const l={method:r.method,query:r.queryParams.reduce((t,{name:n,value:c})=>(n&&c&&(t[n]=c),t),{}),body:r.body,headers:r.headers.reduce((t,{key:n,value:c})=>(n&&c&&(t[n]=c),t),{})},s=p.executionConfig.attached?await p.hook.run(l):await p.hook.test(l);r.response=s}finally{i.value=!1,h("update:execution-config",{attached:!1,stageRunId:null,pendingFork:!1,isInitial:p.hook.isInitial})}};ee([()=>p.executionConfig.stageRunId,()=>r.queryParams],([l,s])=>{const t=s.find(n=>n.name===C);if(l&&!t){r.queryParams.push({name:C,value:l});return}if(!l&&t){r.queryParams=r.queryParams.filter(n=>n.name!==C);return}l&&t&&l!==t.value&&(t.value=l)});const U=()=>{r.queryParams.push({name:"",value:""})},R=l=>{r.queryParams=r.queryParams.filter((s,t)=>t!==l)},q=()=>{r.headers.push({key:"",value:""})},u=l=>{r.headers=r.headers.filter((s,t)=>t!==l)};return f({runHook:x}),(l,s)=>(d(),m(e(W),{layout:"vertical",style:{overflow:"auto"}},{default:o(()=>[a(e(v),{label:"Method"},{default:o(()=>[a(e(te),{value:r.method,options:T,onSelect:s[0]||(s[0]=t=>r.method=t)},null,8,["value"])]),_:1}),a(e(v),null,{default:o(()=>[a(e(ve),{ghost:""},{default:o(()=>[a(e(P),{header:`Query Params (${r.queryParams.length})`},{default:o(()=>[(d(!0),S(B,null,H(r.queryParams,(t,n)=>(d(),m(e(v),{key:n},{default:o(()=>[a(e(L),null,{default:o(()=>[a(e(w),{value:t.name,"onUpdate:value":c=>t.name=c,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(w),{value:t.value,"onUpdate:value":c=>t.value=c,type:"text",placeholder:"value",disabled:t.name===e(C)},null,8,["value","onUpdate:value","disabled"]),a(e(A),{danger:"",onClick:c=>R(n)},{default:o(()=>[g("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(v),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:U},{default:o(()=>[g(" Add Query Param ")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:`Headers (${r.headers.length})`},{default:o(()=>[(d(!0),S(B,null,H(r.headers,(t,n)=>(d(),m(e(v),{key:n,label:n===0?"Headers":void 0},{default:o(()=>[a(e(L),null,{default:o(()=>[a(e(w),{value:t.key,"onUpdate:value":c=>t.key=c,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(w),{value:t.value,"onUpdate:value":c=>t.value=c,type:"text",placeholder:"value"},null,8,["value","onUpdate:value"]),a(e(A),{danger:"",onClick:c=>u(n)},{default:o(()=>[g("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["label"]))),128)),a(e(v),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:q},{default:o(()=>[g("Add Header")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:"Body"},{default:o(()=>[r.method!=="GET"?(d(),m(e(v),{key:0},{default:o(()=>[a(e(N),{value:r.body,"onUpdate:value":s[1]||(s[1]=t=>r.body=t)},null,8,["value"])]),_:1})):b("",!0)]),_:1}),a(e(P),null,{header:o(()=>[a(e(ge),{dot:l.executionConfig.attached&&!!(l.executionConfig.pendingFork||!l.executionConfig.stageRunId)},{default:o(()=>[a(e(V),null,{default:o(()=>[g("Thread")]),_:1})]),_:1},8,["dot"])]),default:o(()=>[a(ce,{stage:l.hook,"execution-config":p.executionConfig,"onUpdate:executionConfig":s[2]||(s[2]=t=>h("update:execution-config",t))},null,8,["stage","execution-config"])]),_:1})]),_:1})]),_:1}),a(e(v),null,{default:o(()=>[ae("div",_e,[a(pe,{loading:i.value,disabled:l.disabledWarning,onClick:x,onSave:s[3]||(s[3]=t=>l.hook.save())},null,8,["loading","disabled"])])]),_:1}),a(e(ke),{orientation:"left"},{default:o(()=>[g("Response")]),_:1}),r.response?(d(),S("div",Ce,[a(e(oe),{color:_.value},{default:o(()=>[g(F(r.response.status),1)]),_:1},8,["color"]),a(e(fe),null,{default:o(()=>[(d(!0),S(B,null,H(r.response.headers,(t,n)=>(d(),m(e(me),{key:n,label:n},{default:o(()=>[g(F(t),1)]),_:2},1032,["label"]))),128))]),_:1}),a(e(N),{value:r.response.body},null,8,["value"])])):b("",!0)]),_:1}))}}),xt=E({__name:"HookEditor",setup(k){const f=re(),h=le(),p=y(null),T=y(null),_=y("source-code"),r=y("preview");function I(){var t;if(!u.value)return;const s=u.value.hook.codeContent;(t=p.value)==null||t.updateLocalEditorCode(s)}const i=y({attached:!1,stageRunId:null,pendingFork:!1,isInitial:!1}),x=s=>i.value={...i.value,attached:!!s},U=M(()=>{var s;return(s=u.value)!=null&&s.hook.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:i.value.attached&&i.value.pendingFork?{title:"Past thread selected",message:"Fork the selected thread to run the workflow"}:!i.value.isInitial&&i.value.attached&&!i.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null});function R(){f.push({name:"stages"})}const q=y(null),{result:u}=Y(async()=>{const[s,t]=await Promise.all([de.get(),ie.get(h.params.id)]);return i.value.isInitial=t.isInitial,se({workspace:s,hook:t})}),l=X.create();return(s,t)=>(d(),m(Q,null,ne({navbar:o(()=>[e(u)?(d(),m(e(ye),{key:0,title:e(u).hook.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:R},{extra:o(()=>[a(he,{"docs-path":"concepts/hooks","editing-model":e(u).hook},null,8,["editing-model"])]),_:1},8,["title"])):b("",!0)]),content:o(()=>[e(u)?(d(),m(K,{key:0},{left:o(()=>[a(e(O),{"active-key":_.value,"onUpdate:activeKey":t[0]||(t[0]=n=>_.value=n)},{rightExtra:o(()=>[a(z,{model:e(u).hook,onSave:I},null,8,["model"])]),default:o(()=>[a(e(D),{key:"source-code",tab:"Source code"}),a(e(D),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"]),_.value==="source-code"?(d(),m(J,{key:0,ref_key:"code",ref:p,script:e(u).hook,workspace:e(u).workspace},null,8,["script","workspace"])):b("",!0),e(u).hook&&_.value==="settings"?(d(),m(be,{key:1,hook:e(u).hook},null,8,["hook"])):b("",!0)]),right:o(()=>[a(e(O),{"active-key":r.value,"onUpdate:activeKey":t[1]||(t[1]=n=>r.value=n)},{rightExtra:o(()=>[a(e($),{align:"center",gap:"middle"},{default:o(()=>[a(e($),{gap:"small"},{default:o(()=>[a(e(V),null,{default:o(()=>[g(F(i.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(ue),{checked:i.value.attached,"onUpdate:checked":x},null,8,["checked"])]),_:1})]),_:1})]),default:o(()=>[a(e(D),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(u).hook&&r.value==="preview"?(d(),m(we,{key:0,ref_key:"tester",ref:T,"execution-config":i.value,"onUpdate:executionConfig":t[2]||(t[2]=n=>i.value=n),hook:e(u).hook,"disabled-warning":U.value},null,8,["execution-config","hook","disabled-warning"])):b("",!0)]),_:1})):b("",!0)]),_:2},[e(u)?{name:"footer",fn:o(()=>[a(j,{ref_key:"smartConsole",ref:q,"stage-type":"hooks",stage:e(u).hook,"log-service":e(l),workspace:e(u).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{xt as default}; +//# sourceMappingURL=HookEditor.be8024c5.js.map diff --git a/abstra_statics/dist/assets/JobEditor.c222ee56.js b/abstra_statics/dist/assets/JobEditor.aaa65932.js similarity index 97% rename from abstra_statics/dist/assets/JobEditor.c222ee56.js rename to abstra_statics/dist/assets/JobEditor.aaa65932.js index 1f8d039dc..a4538ebdc 100644 --- a/abstra_statics/dist/assets/JobEditor.c222ee56.js +++ b/abstra_statics/dist/assets/JobEditor.aaa65932.js @@ -1,3 +1,3 @@ -import{B as _n}from"./BaseLayout.e1793d5b.js";import{R as Mn,S as In,E as bn,a as xn,L as Cn}from"./SourceCode.493d1c63.js";import{S as Fn}from"./SaveButton.8d79c51b.js";import{a as Vn}from"./asyncComputed.d0f14ed3.js";import{eF as Wn,d as We,f as ge,e as te,Q as Ln,o as x,X as ye,b as M,w as E,u as w,aA as at,aF as W,aR as Ie,ee as Pe,c as L,ec as Ce,cS as ot,cy as St,bK as Tt,d5 as ut,cA as lt,R as oe,e$ as $t,db as wr,D as $n,cx as An,eq as Un,ed as Zn,ej as zn,y as Rn,df as At,da as Hn,cV as qn}from"./vue-router.4c13f3d4.js";import{J as Yn}from"./scripts.709f5489.js";import"./editor.49995faa.js";import{W as Pn}from"./workspaces.1ee4ae8d.js";import{A as jn,a as Jn}from"./index.2d05e5d1.js";import{A as Gn}from"./index.ec6b7808.js";import{_ as Bn}from"./RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js";import{N as Qn}from"./NavbarControls.651b74bd.js";import{b as Kn}from"./index.c2d72be7.js";import{A as ct,T as Ut}from"./TabPane.9889f7a8.js";import"./uuid.27635aee.js";import"./validations.f7853e39.js";import"./string.eaeb96c3.js";import"./PhCopy.vue.300f48e4.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhCopySimple.vue.39f63820.js";import"./PhCaretRight.vue.d968b597.js";import"./Badge.49622b8e.js";import"./isNumeric.75337b1e.js";import"./PhBug.vue.e9805eb3.js";import"./PhQuestion.vue.500e5a18.js";import"./LoadingOutlined.6c0b95d8.js";import"./polling.ce5b4e64.js";import"./PhPencil.vue.f2283e7d.js";import"./toggleHighContrast.017fb466.js";import"./index.e5bdb21b.js";import"./Card.b3c66431.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./record.34d5b504.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./CloseCircleOutlined.6201ef3d.js";import"./popupNotifcation.d2ca3d78.js";import"./PhArrowSquareOut.vue.340970aa.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./PhChats.vue.3f8c120c.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="07269e90-5542-4641-ad68-a9e88f69b38c",t._sentryDebugIdIdentifier="sentry-dbid-07269e90-5542-4641-ad68-a9e88f69b38c")}catch{}})();const dt={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},Xn=["hourly","daily","weekly","monthly","custom"],es={custom:{minute:"*",hour:"*",day:"*",month:"*",weekday:"*"},hourly:{minute:"0",hour:"*",day:"*",month:"*",weekday:"*"},daily:{minute:"0",hour:"6",day:"*",month:"*",weekday:"*"},weekly:{minute:"0",hour:"6",day:"*",month:"*",weekday:"1"},monthly:{minute:"0",hour:"6",day:"1",month:"*",weekday:"*"}};var z={};Object.defineProperty(z,"__esModule",{value:!0});class fe extends Error{}class ts extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class rs extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ns extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class pe extends fe{}class vr extends fe{constructor(e){super(`Invalid unit ${e}`)}}class U extends fe{}class K extends fe{constructor(){super("Zone is an abstract class")}}const h="numeric",G="short",Z="long",Ge={year:h,month:h,day:h},kr={year:h,month:G,day:h},ss={year:h,month:G,day:h,weekday:G},Sr={year:h,month:Z,day:h},Tr={year:h,month:Z,day:h,weekday:Z},Or={hour:h,minute:h},Dr={hour:h,minute:h,second:h},Nr={hour:h,minute:h,second:h,timeZoneName:G},Er={hour:h,minute:h,second:h,timeZoneName:Z},_r={hour:h,minute:h,hourCycle:"h23"},Mr={hour:h,minute:h,second:h,hourCycle:"h23"},Ir={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:G},br={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Z},xr={year:h,month:h,day:h,hour:h,minute:h},Cr={year:h,month:h,day:h,hour:h,minute:h,second:h},Fr={year:h,month:G,day:h,hour:h,minute:h},Vr={year:h,month:G,day:h,hour:h,minute:h,second:h},is={year:h,month:G,day:h,weekday:G,hour:h,minute:h},Wr={year:h,month:Z,day:h,hour:h,minute:h,timeZoneName:G},Lr={year:h,month:Z,day:h,hour:h,minute:h,second:h,timeZoneName:G},$r={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,timeZoneName:Z},Ar={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,second:h,timeZoneName:Z};class Se{get type(){throw new K}get name(){throw new K}get ianaName(){return this.name}get isUniversal(){throw new K}offsetName(e,r){throw new K}formatOffset(e,r){throw new K}offset(e){throw new K}equals(e){throw new K}get isValid(){throw new K}}let ft=null;class Le extends Se{static get instance(){return ft===null&&(ft=new Le),ft}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Jr(e,r,n)}formatOffset(e,r){return Fe(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let je={};function as(t){return je[t]||(je[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),je[t]}const os={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function us(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,u,o,l,c]=n;return[a,s,i,u,o,l,c]}function ls(t,e){const r=t.formatToParts(e),n=[];for(let s=0;s=0?p:1e3+p,(m-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Zt={};function cs(t,e={}){const r=JSON.stringify([t,e]);let n=Zt[r];return n||(n=new Intl.ListFormat(t,e),Zt[r]=n),n}let Ot={};function Dt(t,e={}){const r=JSON.stringify([t,e]);let n=Ot[r];return n||(n=new Intl.DateTimeFormat(t,e),Ot[r]=n),n}let Nt={};function ds(t,e={}){const r=JSON.stringify([t,e]);let n=Nt[r];return n||(n=new Intl.NumberFormat(t,e),Nt[r]=n),n}let Et={};function fs(t,e={}){const{base:r,...n}=e,s=JSON.stringify([t,n]);let i=Et[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Et[s]=i),i}let be=null;function hs(){return be||(be=new Intl.DateTimeFormat().resolvedOptions().locale,be)}let zt={};function ms(t){let e=zt[t];if(!e){const r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,zt[t]=e}return e}function ys(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let n,s;try{n=Dt(t).resolvedOptions(),s=t}catch{const o=t.substring(0,r);n=Dt(o).resolvedOptions(),s=o}const{numberingSystem:i,calendar:a}=n;return[s,i,a]}}function ps(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function gs(t){const e=[];for(let r=1;r<=12;r++){const n=O.utc(2009,r,1);e.push(t(n))}return e}function ws(t){const e=[];for(let r=1;r<=7;r++){const n=O.utc(2016,11,13+r);e.push(t(n))}return e}function ze(t,e,r,n){const s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}function vs(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class ks{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:i,...a}=n;if(!r||Object.keys(a).length>0){const u={useGrouping:!1,...n};n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=ds(e,u)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Ct(e,3);return F(r,this.padTo)}}}class Ss{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),u=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&B.create(u).valid?(s=u,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Dt(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ts{constructor(e,r,n){this.opts={style:"long",...n},!r&&Pr()&&(this.rtf=fs(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):zs(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Os={firstDay:1,minimalDays:4,weekend:[6,7]};class I{static fromOpts(e){return I.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=!1){const a=e||C.defaultLocale,u=a||(i?"en-US":hs()),o=r||C.defaultNumberingSystem,l=n||C.defaultOutputCalendar,c=_t(s)||C.defaultWeekSettings;return new I(u,o,l,c,a)}static resetCache(){be=null,Ot={},Nt={},Et={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return I.create(e,r,n,s)}constructor(e,r,n,s,i){const[a,u,o]=ys(e);this.locale=a,this.numberingSystem=r||u||null,this.outputCalendar=n||o||null,this.weekSettings=s,this.intl=ps(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=vs(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:I.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,_t(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return ze(this,e,Qr,()=>{const n=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=gs(i=>this.extract(i,n,"month"))),this.monthsCache[s][e]})}weekdays(e,r=!1){return ze(this,e,en,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=ws(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return ze(this,void 0,()=>tn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[O.utc(2016,11,13,9),O.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ze(this,e,rn,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[O.utc(-40,1,1),O.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const s=this.dtFormatter(e,r),i=s.formatToParts(),a=i.find(u=>u.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new ks(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Ss(e,this.intl,r)}relFormatter(e={}){return new Ts(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cs(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:jr()?ms(this.locale):Os}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ht=null;class A extends Se{static get utcInstance(){return ht===null&&(ht=new A(0)),ht}static instance(e){return e===0?A.utcInstance:new A(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new A(nt(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Fe(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Fe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Fe(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Ur extends Se{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function re(t,e){if(S(t)||t===null)return e;if(t instanceof Se)return t;if(Es(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Le.instance:r==="utc"||r==="gmt"?A.utcInstance:A.parseSpecifier(r)||B.create(t)}else return ce(t)?A.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ur(t)}let Rt=()=>Date.now(),Ht="system",qt=null,Yt=null,Pt=null,jt=60,Jt,Gt=null;class C{static get now(){return Rt}static set now(e){Rt=e}static set defaultZone(e){Ht=e}static get defaultZone(){return re(Ht,Le.instance)}static get defaultLocale(){return qt}static set defaultLocale(e){qt=e}static get defaultNumberingSystem(){return Yt}static set defaultNumberingSystem(e){Yt=e}static get defaultOutputCalendar(){return Pt}static set defaultOutputCalendar(e){Pt=e}static get defaultWeekSettings(){return Gt}static set defaultWeekSettings(e){Gt=_t(e)}static get twoDigitCutoffYear(){return jt}static set twoDigitCutoffYear(e){jt=e%100}static get throwOnInvalid(){return Jt}static set throwOnInvalid(e){Jt=e}static resetCaches(){I.resetCache(),B.resetCache()}}class J{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zr=[0,31,59,90,120,151,181,212,243,273,304,334],zr=[0,31,60,91,121,152,182,213,244,274,305,335];function H(t,e){return new J("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function It(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function Rr(t,e,r){return r+($e(t)?zr:Zr)[e-1]}function Hr(t,e){const r=$e(t)?zr:Zr,n=r.findIndex(i=>iVe(n,e,r)?(l=n+1,o=1):l=n,{weekYear:l,weekNumber:o,weekday:u,...st(t)}}function Bt(t,e=4,r=1){const{weekYear:n,weekNumber:s,weekday:i}=t,a=bt(It(n,1,e),r),u=we(n);let o=s*7+i-a-7+e,l;o<1?(l=n-1,o+=we(l)):o>u?(l=n+1,o-=we(n)):l=n;const{month:c,day:g}=Hr(l,o);return{year:l,month:c,day:g,...st(t)}}function mt(t){const{year:e,month:r,day:n}=t,s=Rr(e,r,n);return{year:e,ordinal:s,...st(t)}}function Qt(t){const{year:e,ordinal:r}=t,{month:n,day:s}=Hr(e,r);return{year:e,month:n,day:s,...st(t)}}function Kt(t,e){if(!S(t.localWeekday)||!S(t.localWeekNumber)||!S(t.localWeekYear)){if(!S(t.weekday)||!S(t.weekNumber)||!S(t.weekYear))throw new pe("Cannot mix locale-based week fields with ISO-based week fields");return S(t.localWeekday)||(t.weekday=t.localWeekday),S(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),S(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Ds(t,e=4,r=1){const n=tt(t.weekYear),s=q(t.weekNumber,1,Ve(t.weekYear,e,r)),i=q(t.weekday,1,7);return n?s?i?!1:H("weekday",t.weekday):H("week",t.weekNumber):H("weekYear",t.weekYear)}function Ns(t){const e=tt(t.year),r=q(t.ordinal,1,we(t.year));return e?r?!1:H("ordinal",t.ordinal):H("year",t.year)}function qr(t){const e=tt(t.year),r=q(t.month,1,12),n=q(t.day,1,Qe(t.year,t.month));return e?r?n?!1:H("day",t.day):H("month",t.month):H("year",t.year)}function Yr(t){const{hour:e,minute:r,second:n,millisecond:s}=t,i=q(e,0,23)||e===24&&r===0&&n===0&&s===0,a=q(r,0,59),u=q(n,0,59),o=q(s,0,999);return i?a?u?o?!1:H("millisecond",s):H("second",n):H("minute",r):H("hour",e)}function S(t){return typeof t>"u"}function ce(t){return typeof t=="number"}function tt(t){return typeof t=="number"&&t%1===0}function Es(t){return typeof t=="string"}function _s(t){return Object.prototype.toString.call(t)==="[object Date]"}function Pr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function jr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ms(t){return Array.isArray(t)?t:[t]}function Xt(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{const i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Is(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ke(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function _t(t){if(t==null)return null;if(typeof t!="object")throw new U("Week settings must be an object");if(!q(t.firstDay,1,7)||!q(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!q(e,1,7)))throw new U("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function q(t,e,r){return tt(t)&&t>=e&&t<=r}function bs(t,e){return t-e*Math.floor(t/e)}function F(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function ee(t){if(!(S(t)||t===null||t===""))return parseInt(t,10)}function se(t){if(!(S(t)||t===null||t===""))return parseFloat(t)}function xt(t){if(!(S(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ct(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function $e(t){return t%4===0&&(t%100!==0||t%400===0)}function we(t){return $e(t)?366:365}function Qe(t,e){const r=bs(e-1,12)+1,n=t+(e-r)/12;return r===2?$e(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function rt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function er(t,e,r){return-bt(It(t,1,e),r)+e-1}function Ve(t,e=4,r=1){const n=er(t,e,r),s=er(t+1,e,r);return(we(t)-n+s)/7}function Mt(t){return t>99?t:t>C.twoDigitCutoffYear?1900+t:2e3+t}function Jr(t,e,r,n=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a={timeZoneName:e,...i},u=new Intl.DateTimeFormat(r,a).formatToParts(s).find(o=>o.type.toLowerCase()==="timezonename");return u?u.value:null}function nt(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function Gr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new U(`Invalid unit value ${t}`);return e}function Ke(t,e){const r={};for(const n in t)if(ke(t,n)){const s=t[n];if(s==null)continue;r[e(n)]=Gr(s)}return r}function Fe(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${F(r,2)}:${F(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${F(r,2)}${F(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function st(t){return Is(t,["hour","minute","second","millisecond"])}const xs=["January","February","March","April","May","June","July","August","September","October","November","December"],Br=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Cs=["J","F","M","A","M","J","J","A","S","O","N","D"];function Qr(t){switch(t){case"narrow":return[...Cs];case"short":return[...Br];case"long":return[...xs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Kr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fs=["M","T","W","T","F","S","S"];function en(t){switch(t){case"narrow":return[...Fs];case"short":return[...Xr];case"long":return[...Kr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const tn=["AM","PM"],Vs=["Before Christ","Anno Domini"],Ws=["BC","AD"],Ls=["B","A"];function rn(t){switch(t){case"narrow":return[...Ls];case"short":return[...Ws];case"long":return[...Vs];default:return null}}function $s(t){return tn[t.hour<12?0:1]}function As(t,e){return en(e)[t.weekday-1]}function Us(t,e){return Qr(e)[t.month-1]}function Zs(t,e){return rn(e)[t.year<0?0:1]}function zs(t,e,r="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${s[t][0]}`;case-1:return g?"yesterday":`last ${s[t][0]}`;case 0:return g?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,u=Math.abs(e),o=u===1,l=s[t],c=n?o?l[1]:l[2]||l[1]:o?s[t][0]:t;return a?`${u} ${c} ago`:`in ${u} ${c}`}function tr(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const Rs={D:Ge,DD:kr,DDD:Sr,DDDD:Tr,t:Or,tt:Dr,ttt:Nr,tttt:Er,T:_r,TT:Mr,TTT:Ir,TTTT:br,f:xr,ff:Fr,fff:Wr,ffff:$r,F:Cr,FF:Vr,FFF:Lr,FFFF:Ar};class ${static create(e,r={}){return new $(e,r)}static parseFormat(e){let r=null,n="",s=!1;const i=[];for(let a=0;a0&&i.push({literal:s||/^\s+$/.test(n),val:n}),r=null,n="",s=!s):s||u===r?n+=u:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=u,r=u)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Rs[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return F(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(f,p)=>this.loc.extract(e,f,p),a=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",u=()=>n?$s(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(f,p)=>n?Us(e,f):i(p?{month:f}:{month:f,day:"numeric"},"month"),l=(f,p)=>n?As(e,f):i(p?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),c=f=>{const p=$.macroTokenToFormatOpts(f);return p?this.formatWithSystemDefault(e,p):f},g=f=>n?Zs(e,f):i({era:f},"era"),m=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(f)}};return tr($.parseFormat(r),m)}formatDurationFromString(e,r){const n=o=>{switch(o[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=o=>l=>{const c=n(l);return c?this.num(o.get(c),l.length):l},i=$.parseFormat(r),a=i.reduce((o,{literal:l,val:c})=>l?o:o.concat(c),[]),u=e.shiftTo(...a.map(n).filter(o=>o));return tr(i,s(u))}}const nn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Te(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Oe(...t){return e=>t.reduce(([r,n,s],i)=>{const[a,u,o]=i(e,s);return[{...r,...a},u||n,o]},[{},null,1]).slice(0,2)}function De(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const s=r.exec(t);if(s)return n(s)}return[null,null]}function sn(...t){return(e,r)=>{const n={};let s;for(s=0;sf!==void 0&&(p||f&&c)?-f:f;return[{years:m(se(r)),months:m(se(n)),weeks:m(se(s)),days:m(se(i)),hours:m(se(a)),minutes:m(se(u)),seconds:m(se(o),o==="-0"),milliseconds:m(xt(l),g)}]}const ti={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wt(t,e,r,n,s,i,a){const u={year:e.length===2?Mt(ee(e)):ee(e),month:Br.indexOf(r)+1,day:ee(n),hour:ee(s),minute:ee(i)};return a&&(u.second=ee(a)),t&&(u.weekday=t.length>3?Kr.indexOf(t)+1:Xr.indexOf(t)+1),u}const ri=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ni(t){const[,e,r,n,s,i,a,u,o,l,c,g]=t,m=Wt(e,s,n,r,i,a,u);let f;return o?f=ti[o]:l?f=0:f=nt(c,g),[m,new A(f)]}function si(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ai=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,oi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function rr(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,s,n,r,i,a,u),A.utcInstance]}function ui(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,u,r,n,s,i,a),A.utcInstance]}const li=Te(qs,Vt),ci=Te(Ys,Vt),di=Te(Ps,Vt),fi=Te(on),ln=Oe(Qs,Ne,Ae,Ue),hi=Oe(js,Ne,Ae,Ue),mi=Oe(Js,Ne,Ae,Ue),yi=Oe(Ne,Ae,Ue);function pi(t){return De(t,[li,ln],[ci,hi],[di,mi],[fi,yi])}function gi(t){return De(si(t),[ri,ni])}function wi(t){return De(t,[ii,rr],[ai,rr],[oi,ui])}function vi(t){return De(t,[Xs,ei])}const ki=Oe(Ne);function Si(t){return De(t,[Ks,ki])}const Ti=Te(Gs,Bs),Oi=Te(un),Di=Oe(Ne,Ae,Ue);function Ni(t){return De(t,[Ti,ln],[Oi,Di])}const nr="Invalid Duration",cn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ei={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...cn},R=146097/400,he=146097/4800,_i={years:{quarters:4,months:12,weeks:R/7,days:R,hours:R*24,minutes:R*24*60,seconds:R*24*60*60,milliseconds:R*24*60*60*1e3},quarters:{months:3,weeks:R/28,days:R/4,hours:R*24/4,minutes:R*24*60/4,seconds:R*24*60*60/4,milliseconds:R*24*60*60*1e3/4},months:{weeks:he/7,days:he,hours:he*24,minutes:he*24*60,seconds:he*24*60*60,milliseconds:he*24*60*60*1e3},...cn},le=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Mi=le.slice(0).reverse();function X(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new N(n)}function dn(t,e){var r;let n=(r=e.milliseconds)!=null?r:0;for(const s of Mi.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function sr(t,e){const r=dn(t,e)<0?-1:1;le.reduceRight((n,s)=>{if(S(e[s]))return n;if(n){const i=e[n]*r,a=t[s][n],u=Math.floor(i/a);e[s]+=u*r,e[n]-=u*a*r}return s},null),le.reduce((n,s)=>{if(S(e[s]))return n;if(n){const i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s]}return s},null)}function Ii(t){const e={};for(const[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}class N{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?_i:Ei;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||I.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return N.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new U(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new N({values:Ke(e,N.normalizeUnit),loc:I.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(ce(e))return N.fromMillis(e);if(N.isDuration(e))return e;if(typeof e=="object")return N.fromObject(e);throw new U(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=vi(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=Si(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the Duration is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ns(n);return new N({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new vr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?$.create(this.loc,n).formatDurationFromString(this,e):nr}toHuman(e={}){if(!this.isValid)return nr;const r=le.map(n=>{const s=this.values[n];return S(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(s)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ct(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},O.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?dn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e),n={};for(const s of le)(ke(r.values,s)||ke(this.values,s))&&(n[s]=r.get(s)+this.get(s));return X(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=Gr(e(this.values[n],n));return X(this,{values:r},!0)}get(e){return this[N.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...Ke(e,N.normalizeUnit)};return X(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return X(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return sr(this.matrix,e),X(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Ii(this.normalize().shiftToAll().toObject());return X(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>N.normalizeUnit(a));const r={},n={},s=this.toObject();let i;for(const a of le)if(e.indexOf(a)>=0){i=a;let u=0;for(const l in n)u+=this.matrix[l][a]*n[l],n[l]=0;ce(s[a])&&(u+=s[a]);const o=Math.trunc(u);r[a]=o,n[a]=(u*1e3-o*1e3)/1e3}else ce(s[a])&&(n[a]=s[a]);for(const a in n)n[a]!==0&&(r[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return sr(this.matrix,r),X(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return X(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of le)if(!r(this.values[n],e.values[n]))return!1;return!0}}const me="Invalid Interval";function bi(t,e){return!t||!t.isValid?b.invalid("missing or invalid start"):!e||!e.isValid?b.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?b.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(Me).filter(a=>this.contains(a)).sort((a,u)=>a.toMillis()-u.toMillis()),n=[];let{s}=this,i=0;for(;s+this.e?this.e:a;n.push(b.fromDateTimes(s,u)),s=u,i+=1}return n}splitBy(e){const r=N.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;const a=[];for(;no*s));i=+u>+this.e?this.e:u,a.push(b.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e=n?null:b.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.se.e?this.e:e.e;return b.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const s=[],i=e.map(o=>[{time:o.s,type:"s"},{time:o.e,type:"e"}]),a=Array.prototype.concat(...i),u=a.sort((o,l)=>o.time-l.time);for(const o of u)n+=o.type==="s"?1:-1,n===1?r=o.time:(r&&+r!=+o.time&&s.push(b.fromDateTimes(r,o.time)),r=null);return b.merge(s)}difference(...e){return b.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:me}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ge,r={}){return this.isValid?$.create(this.s.loc.clone(r),e).formatInterval(this):me}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:me}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:me}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:me}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:me}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):N.invalid(this.invalidReason)}mapEndpoints(e){return b.fromDateTimes(e(this.s),e(this.e))}}class xe{static hasDST(e=C.defaultZone){const r=O.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return B.isValidZone(e)}static normalizeZone(e){return re(e,C.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||I.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||I.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||I.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||I.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||I.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||I.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||I.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return I.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return I.create(r,null,"gregory").eras(e)}static features(){return{relative:Pr(),localeWeek:jr()}}}function ir(t,e){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(N.fromMillis(n).as("days"))}function xi(t,e,r){const n=[["years",(o,l)=>l.year-o.year],["quarters",(o,l)=>l.quarter-o.quarter+(l.year-o.year)*4],["months",(o,l)=>l.month-o.month+(l.year-o.year)*12],["weeks",(o,l)=>{const c=ir(o,l);return(c-c%7)/7}],["days",ir]],s={},i=t;let a,u;for(const[o,l]of n)r.indexOf(o)>=0&&(a=o,s[o]=l(t,e),u=i.plus(s),u>e?(s[o]--,t=i.plus(s),t>e&&(u=t,s[o]--,t=i.plus(s))):t=u);return[t,s,u,a]}function Ci(t,e,r,n){let[s,i,a,u]=xi(t,e,r);const o=e-s,l=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);l.length===0&&(a0?N.fromMillis(o,n).shiftTo(...l).plus(c):c}const Lt={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},ar={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Fi=Lt.hanidec.replace(/[\[|\]]/g,"").split("");function Vi(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}function P({numberingSystem:t},e=""){return new RegExp(`${Lt[t||"latn"]}${e}`)}const Wi="missing Intl.DateTimeFormat.formatToParts support";function _(t,e=r=>r){return{regex:t,deser:([r])=>e(Vi(r))}}const Li=String.fromCharCode(160),fn=`[ ${Li}]`,hn=new RegExp(fn,"g");function $i(t){return t.replace(/\./g,"\\.?").replace(hn,fn)}function or(t){return t.replace(/\./g,"").replace(hn," ").toLowerCase()}function j(t,e){return t===null?null:{regex:RegExp(t.map($i).join("|")),deser:([r])=>t.findIndex(n=>or(r)===or(n))+e}}function ur(t,e){return{regex:t,deser:([,r,n])=>nt(r,n),groups:e}}function Re(t){return{regex:t,deser:([e])=>e}}function Ai(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ui(t,e){const r=P(e),n=P(e,"{2}"),s=P(e,"{3}"),i=P(e,"{4}"),a=P(e,"{6}"),u=P(e,"{1,2}"),o=P(e,"{1,3}"),l=P(e,"{1,6}"),c=P(e,"{1,9}"),g=P(e,"{2,4}"),m=P(e,"{4,6}"),f=T=>({regex:RegExp(Ai(T.val)),deser:([v])=>v,literal:!0}),d=(T=>{if(t.literal)return f(T);switch(T.val){case"G":return j(e.eras("short"),0);case"GG":return j(e.eras("long"),0);case"y":return _(l);case"yy":return _(g,Mt);case"yyyy":return _(i);case"yyyyy":return _(m);case"yyyyyy":return _(a);case"M":return _(u);case"MM":return _(n);case"MMM":return j(e.months("short",!0),1);case"MMMM":return j(e.months("long",!0),1);case"L":return _(u);case"LL":return _(n);case"LLL":return j(e.months("short",!1),1);case"LLLL":return j(e.months("long",!1),1);case"d":return _(u);case"dd":return _(n);case"o":return _(o);case"ooo":return _(s);case"HH":return _(n);case"H":return _(u);case"hh":return _(n);case"h":return _(u);case"mm":return _(n);case"m":return _(u);case"q":return _(u);case"qq":return _(n);case"s":return _(u);case"ss":return _(n);case"S":return _(o);case"SSS":return _(s);case"u":return Re(c);case"uu":return Re(u);case"uuu":return _(r);case"a":return j(e.meridiems(),0);case"kkkk":return _(i);case"kk":return _(g,Mt);case"W":return _(u);case"WW":return _(n);case"E":case"c":return _(r);case"EEE":return j(e.weekdays("short",!1),1);case"EEEE":return j(e.weekdays("long",!1),1);case"ccc":return j(e.weekdays("short",!0),1);case"cccc":return j(e.weekdays("long",!0),1);case"Z":case"ZZ":return ur(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return ur(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return Re(/[a-z_+-/]{1,256}?/i);case" ":return Re(/[^\S\n\r]/);default:return f(T)}})(t)||{invalidReason:Wi};return d.token=t,d}const Zi={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function zi(t,e,r){const{type:n,value:s}=t;if(n==="literal"){const o=/^\s+$/.test(s);return{literal:!o,val:o?" ":s}}const i=e[n];let a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=r.hour12?"hour12":"hour24");let u=Zi[a];if(typeof u=="object"&&(u=u[i]),u)return{literal:!1,val:u}}function Ri(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function Hi(t,e,r){const n=t.match(e);if(n){const s={};let i=1;for(const a in r)if(ke(r,a)){const u=r[a],o=u.groups?u.groups+1:1;!u.literal&&u.token&&(s[u.token.val[0]]=u.deser(n.slice(i,i+o))),i+=o}return[n,s]}else return[n,{}]}function qi(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return S(t.z)||(r=B.create(t.z)),S(t.Z)||(r||(r=new A(t.Z)),n=t.Z),S(t.q)||(t.M=(t.q-1)*3+1),S(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),S(t.u)||(t.S=xt(t.u)),[Object.keys(t).reduce((i,a)=>{const u=e(a);return u&&(i[u]=t[a]),i},{}),r,n]}let yt=null;function Yi(){return yt||(yt=O.fromMillis(1555555555555)),yt}function Pi(t,e){if(t.literal)return t;const r=$.macroTokenToFormatOpts(t.val),n=pn(r,e);return n==null||n.includes(void 0)?t:n}function mn(t,e){return Array.prototype.concat(...t.map(r=>Pi(r,e)))}function yn(t,e,r){const n=mn($.parseFormat(r),t),s=n.map(a=>Ui(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[a,u]=Ri(s),o=RegExp(a,"i"),[l,c]=Hi(e,o,u),[g,m,f]=c?qi(c):[null,null,void 0];if(ke(c,"a")&&ke(c,"H"))throw new pe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:o,rawMatches:l,matches:c,result:g,zone:m,specificOffset:f}}}function ji(t,e,r){const{result:n,zone:s,specificOffset:i,invalidReason:a}=yn(t,e,r);return[n,s,i,a]}function pn(t,e){if(!t)return null;const n=$.create(e,t).dtFormatter(Yi()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>zi(a,t,i))}const pt="Invalid DateTime",lr=864e13;function He(t){return new J("unsupported zone",`the zone "${t.name}" is not supported`)}function gt(t){return t.weekData===null&&(t.weekData=Be(t.c)),t.weekData}function wt(t){return t.localWeekData===null&&(t.localWeekData=Be(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ie(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new O({...r,...e,old:r})}function gn(t,e,r){let n=t-e*60*1e3;const s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function qe(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Je(t,e,r){return gn(rt(t),e,r)}function cr(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:s,day:Math.min(t.c.day,Qe(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=N.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=rt(i);let[o,l]=gn(u,r,t.zone);return a!==0&&(o+=a,l=t.zone.offset(o)),{ts:o,o:l}}function _e(t,e,r,n,s,i){const{setZone:a,zone:u}=r;if(t&&Object.keys(t).length!==0||e){const o=e||u,l=O.fromObject(t,{...r,zone:o,specificOffset:i});return a?l:l.setZone(u)}else return O.invalid(new J("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Ye(t,e,r=!0){return t.isValid?$.create(I.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function vt(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=F(t.c.year,r?6:4),e?(n+="-",n+=F(t.c.month),n+="-",n+=F(t.c.day)):(n+=F(t.c.month),n+=F(t.c.day)),n}function dr(t,e,r,n,s,i){let a=F(t.c.hour);return e?(a+=":",a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=":")):a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=F(t.c.second),(t.c.millisecond!==0||!n)&&(a+=".",a+=F(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=F(Math.trunc(-t.o/60)),a+=":",a+=F(Math.trunc(-t.o%60))):(a+="+",a+=F(Math.trunc(t.o/60)),a+=":",a+=F(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const wn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ji={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Gi={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vn=["year","month","day","hour","minute","second","millisecond"],Bi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qi=["year","ordinal","hour","minute","second","millisecond"];function Ki(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new vr(t);return e}function fr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ki(t)}}function hr(t,e){const r=re(e.zone,C.defaultZone),n=I.fromObject(e),s=C.now();let i,a;if(S(t.year))i=s;else{for(const l of vn)S(t[l])&&(t[l]=wn[l]);const u=qr(t)||Yr(t);if(u)return O.invalid(u);const o=r.offset(s);[i,a]=Je(t,o,r)}return new O({ts:i,zone:r,loc:n,o:a})}function mr(t,e,r){const n=S(r.round)?!0:r.round,s=(a,u)=>(a=Ct(a,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(a,u)),i=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(i(r.unit),r.unit);for(const a of r.units){const u=i(a);if(Math.abs(u)>=1)return s(u,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function yr(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class O{constructor(e){const r=e.zone||C.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new J("invalid input"):null)||(r.isValid?null:He(r));this.ts=S(e.ts)?C.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else{const u=r.offset(this.ts);s=qe(this.ts,u),n=Number.isNaN(s.year)?new J("invalid input"):null,s=n?null:s,i=n?null:u}this._zone=r,this.loc=e.loc||I.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new O({})}static local(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static utc(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return e.zone=A.utcInstance,hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static fromJSDate(e,r={}){const n=_s(e)?e.valueOf():NaN;if(Number.isNaN(n))return O.invalid("invalid input");const s=re(r.zone,C.defaultZone);return s.isValid?new O({ts:n,zone:s,loc:I.fromObject(r)}):O.invalid(He(s))}static fromMillis(e,r={}){if(ce(e))return e<-lr||e>lr?O.invalid("Timestamp out of range"):new O({ts:e,zone:re(r.zone,C.defaultZone),loc:I.fromObject(r)});throw new U(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(ce(e))return new O({ts:e*1e3,zone:re(r.zone,C.defaultZone),loc:I.fromObject(r)});throw new U("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=re(r.zone,C.defaultZone);if(!n.isValid)return O.invalid(He(n));const s=I.fromObject(r),i=Ke(e,fr),{minDaysInFirstWeek:a,startOfWeek:u}=Kt(i,s),o=C.now(),l=S(r.specificOffset)?n.offset(o):r.specificOffset,c=!S(i.ordinal),g=!S(i.year),m=!S(i.month)||!S(i.day),f=g||m,p=i.weekYear||i.weekNumber;if((f||c)&&p)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&c)throw new pe("Can't mix ordinal dates with month/day");const d=p||i.weekday&&!f;let T,v,D=qe(o,l);d?(T=Bi,v=Ji,D=Be(D,a,u)):c?(T=Qi,v=Gi,D=mt(D)):(T=vn,v=wn);let V=!1;for(const Ee of T){const En=i[Ee];S(En)?V?i[Ee]=v[Ee]:i[Ee]=D[Ee]:V=!0}const Y=d?Ds(i,a,u):c?Ns(i):qr(i),Q=Y||Yr(i);if(Q)return O.invalid(Q);const On=d?Bt(i,a,u):c?Qt(i):i,[Dn,Nn]=Je(On,l,n),it=new O({ts:Dn,zone:n,o:Nn,loc:s});return i.weekday&&f&&e.weekday!==it.weekday?O.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${it.toISO()}`):it}static fromISO(e,r={}){const[n,s]=pi(e);return _e(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,s]=gi(e);return _e(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,s]=wi(e);return _e(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(S(e)||S(r))throw new U("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,a=I.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[u,o,l,c]=ji(a,e,r);return c?O.invalid(c):_e(u,o,n,`format ${r}`,e,l)}static fromString(e,r,n={}){return O.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,s]=Ni(e);return _e(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the DateTime is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ts(n);return new O({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=pn(e,I.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return mn($.parseFormat(e),I.fromObject(r)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?gt(this).weekYear:NaN}get weekNumber(){return this.isValid?gt(this).weekNumber:NaN}get weekday(){return this.isValid?gt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wt(this).weekday:NaN}get localWeekNumber(){return this.isValid?wt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wt(this).weekYear:NaN}get ordinal(){return this.isValid?mt(this.c).ordinal:NaN}get monthShort(){return this.isValid?xe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=rt(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*r),u=this.zone.offset(n-i*r);if(a===u)return[this];const o=n-a*r,l=n-u*r,c=qe(o,a),g=qe(l,u);return c.hour===g.hour&&c.minute===g.minute&&c.second===g.second&&c.millisecond===g.millisecond?[ie(this,{ts:o}),ie(this,{ts:l})]:[this]}get isInLeapYear(){return $e(this.year)}get daysInMonth(){return Qe(this.year,this.month)}get daysInYear(){return this.isValid?we(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ve(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ve(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:s}=$.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(A.instance(e),r)}toLocal(){return this.setZone(C.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=re(e,C.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){const i=e.offset(this.ts),a=this.toObject();[s]=Je(a,i,e)}return ie(this,{ts:s,zone:e})}else return O.invalid(He(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return ie(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=Ke(e,fr),{minDaysInFirstWeek:n,startOfWeek:s}=Kt(r,this.loc),i=!S(r.weekYear)||!S(r.weekNumber)||!S(r.weekday),a=!S(r.ordinal),u=!S(r.year),o=!S(r.month)||!S(r.day),l=u||o,c=r.weekYear||r.weekNumber;if((l||a)&&c)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new pe("Can't mix ordinal dates with month/day");let g;i?g=Bt({...Be(this.c,n,s),...r},n,s):S(r.ordinal)?(g={...this.toObject(),...r},S(r.day)&&(g.day=Math.min(Qe(g.year,g.month),g.day))):g=Qt({...mt(this.c),...r});const[m,f]=Je(g,this.o,this.zone);return ie(this,{ts:m,o:f})}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return ie(this,cr(this,r))}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e).negate();return ie(this,cr(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},s=N.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),u=a?this:e,o=a?e:this,l=Ci(u,o,i,s);return a?l.negate():l}diffNow(e="milliseconds",r={}){return this.diff(O.now(),e,r)}until(e){return this.isValid?b.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=s&&s<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||O.fromObject({},{zone:this.zone}),n=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(O.isDateTime))throw new U("max requires all arguments be DateTimes");return Xt(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:s=null,numberingSystem:i=null}=n,a=I.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return yn(a,e,r)}static fromStringExplain(e,r,n={}){return O.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return Ge}static get DATE_MED(){return kr}static get DATE_MED_WITH_WEEKDAY(){return ss}static get DATE_FULL(){return Sr}static get DATE_HUGE(){return Tr}static get TIME_SIMPLE(){return Or}static get TIME_WITH_SECONDS(){return Dr}static get TIME_WITH_SHORT_OFFSET(){return Nr}static get TIME_WITH_LONG_OFFSET(){return Er}static get TIME_24_SIMPLE(){return _r}static get TIME_24_WITH_SECONDS(){return Mr}static get TIME_24_WITH_SHORT_OFFSET(){return Ir}static get TIME_24_WITH_LONG_OFFSET(){return br}static get DATETIME_SHORT(){return xr}static get DATETIME_SHORT_WITH_SECONDS(){return Cr}static get DATETIME_MED(){return Fr}static get DATETIME_MED_WITH_SECONDS(){return Vr}static get DATETIME_MED_WITH_WEEKDAY(){return is}static get DATETIME_FULL(){return Wr}static get DATETIME_FULL_WITH_SECONDS(){return Lr}static get DATETIME_HUGE(){return $r}static get DATETIME_HUGE_WITH_SECONDS(){return Ar}}function Me(t){if(O.isDateTime(t))return t;if(t&&t.valueOf&&ce(t.valueOf()))return O.fromJSDate(t);if(t&&typeof t=="object")return O.fromObject(t);throw new U(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Xi="3.4.4";z.DateTime=O;z.Duration=N;z.FixedOffsetZone=A;z.IANAZone=B;z.Info=xe;z.Interval=b;z.InvalidZone=Ur;z.Settings=C;z.SystemZone=Le;z.VERSION=Xi;z.Zone=Se;var ae=z;k.prototype.addYear=function(){this._date=this._date.plus({years:1})};k.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")};k.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")};k.prototype.addHour=function(){var t=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=t&&(this._date=this._date.plus({hours:1}))};k.prototype.addMinute=function(){var t=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=t&&(this._date=this._date.minus({hours:1}))};k.prototype.subtractMinute=function(){var t=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};k.prototype.subtractSecond=function(){var t=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};k.prototype.getDate=function(){return this._date.day};k.prototype.getFullYear=function(){return this._date.year};k.prototype.getDay=function(){var t=this._date.weekday;return t==7?0:t};k.prototype.getMonth=function(){return this._date.month-1};k.prototype.getHours=function(){return this._date.hour};k.prototype.getMinutes=function(){return this._date.minute};k.prototype.getSeconds=function(){return this._date.second};k.prototype.getMilliseconds=function(){return this._date.millisecond};k.prototype.getTime=function(){return this._date.valueOf()};k.prototype.getUTCDate=function(){return this._getUTC().day};k.prototype.getUTCFullYear=function(){return this._getUTC().year};k.prototype.getUTCDay=function(){var t=this._getUTC().weekday;return t==7?0:t};k.prototype.getUTCMonth=function(){return this._getUTC().month-1};k.prototype.getUTCHours=function(){return this._getUTC().hour};k.prototype.getUTCMinutes=function(){return this._getUTC().minute};k.prototype.getUTCSeconds=function(){return this._getUTC().second};k.prototype.toISOString=function(){return this._date.toUTC().toISO()};k.prototype.toJSON=function(){return this._date.toJSON()};k.prototype.setDate=function(t){this._date=this._date.set({day:t})};k.prototype.setFullYear=function(t){this._date=this._date.set({year:t})};k.prototype.setDay=function(t){this._date=this._date.set({weekday:t})};k.prototype.setMonth=function(t){this._date=this._date.set({month:t+1})};k.prototype.setHours=function(t){this._date=this._date.set({hour:t})};k.prototype.setMinutes=function(t){this._date=this._date.set({minute:t})};k.prototype.setSeconds=function(t){this._date=this._date.set({second:t})};k.prototype.setMilliseconds=function(t){this._date=this._date.set({millisecond:t})};k.prototype._getUTC=function(){return this._date.toUTC()};k.prototype.toString=function(){return this.toDate().toString()};k.prototype.toDate=function(){return this._date.toJSDate()};k.prototype.isLastDayOfMonth=function(){var t=this._date.plus({days:1}).startOf("day");return this._date.month!==t.month};k.prototype.isLastWeekdayOfMonth=function(){var t=this._date.plus({days:7}).startOf("day");return this._date.month!==t.month};function k(t,e){var r={zone:e};if(t?t instanceof k?this._date=t._date:t instanceof Date?this._date=ae.DateTime.fromJSDate(t,r):typeof t=="number"?this._date=ae.DateTime.fromMillis(t,r):typeof t=="string"&&(this._date=ae.DateTime.fromISO(t,r),this._date.isValid||(this._date=ae.DateTime.fromRFC2822(t,r)),this._date.isValid||(this._date=ae.DateTime.fromSQL(t,r)),this._date.isValid||(this._date=ae.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=ae.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(t));e&&e!==this._date.zoneName&&(this._date=this._date.setZone(e))}var ea=k;function ue(t){return{start:t,count:1}}function pr(t,e){t.end=e,t.step=e-t.start,t.count=2}function kt(t,e,r){e&&(e.count===2?(t.push(ue(e.start)),t.push(ue(e.end))):t.push(e)),r&&t.push(r)}function ta(t){for(var e=[],r=void 0,n=0;nl.end?a=a.concat(Array.from({length:l.end-l.start+1}).map(function(m,f){var p=l.start+f;return(p-l.start)%l.step===0?p:null}).filter(function(m){return m!=null})):l.end===r-l.step+1?a.push(l.start+"/"+l.step):a.push(l.start+"-"+l.end+"/"+l.step)}return a.join(",")}var ia=sa,de=ea,aa=ia,gr=1e4;function y(t,e){this._options=e,this._utc=e.utc||!1,this._tz=this._utc?"UTC":e.tz,this._currentDate=new de(e.currentDate,this._tz),this._startDate=e.startDate?new de(e.startDate,this._tz):null,this._endDate=e.endDate?new de(e.endDate,this._tz):null,this._isIterator=e.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=e.nthDayOfWeek||0,this.fields=y._freezeFields(t)}y.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"];y.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"};y.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}];y.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31];y.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}};y.parseDefaults=["0","*","*","*","*","*"];y.standardValidCharacters=/^[,*\d/-]+$/;y.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/;y.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/;y.validCharacters={second:y.standardValidCharacters,minute:y.standardValidCharacters,hour:y.standardValidCharacters,dayOfMonth:y.dayOfMonthValidCharacters,month:y.standardValidCharacters,dayOfWeek:y.dayOfWeekValidCharacters};y._isValidConstraintChar=function(e,r){return typeof r!="string"?!1:e.chars.some(function(n){return r.indexOf(n)>-1})};y._parseField=function(e,r,n){switch(e){case"month":case"dayOfWeek":var s=y.aliases[e];r=r.replace(/[a-z]{3}/gi,function(o){if(o=o.toLowerCase(),typeof s[o]<"u")return s[o];throw new Error('Validation error, cannot resolve alias "'+o+'"')});break}if(!y.validCharacters[e].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(o){var l=[];function c(p){if(p instanceof Array)for(var d=0,T=p.length;dn.max)throw new Error("Constraint error, got value "+v+" expected range "+n.min+"-"+n.max);l.push(v)}else{if(y._isValidConstraintChar(n,p)){l.push(p);return}var D=+p;if(Number.isNaN(D)||Dn.max)throw new Error("Constraint error, got value "+p+" expected range "+n.min+"-"+n.max);e==="dayOfWeek"&&(D=D%7),l.push(D)}}var g=o.split(",");if(!g.every(function(p){return p.length>0}))throw new Error("Invalid list value format");if(g.length>1)for(var m=0,f=g.length;m2)throw new Error("Invalid repeat: "+o);return c.length>1?(c[0]==+c[0]&&(c=[c[0]+"-"+n.max,c[1]]),u(c[0],c[c.length-1])):u(o,l)}function u(o,l){var c=[],g=o.split("-");if(g.length>1){if(g.length<2)return+o;if(!g[0].length){if(!g[1].length)throw new Error("Invalid range: "+o);return+o}var m=+g[0],f=+g[1];if(Number.isNaN(m)||Number.isNaN(f)||mn.max)throw new Error("Constraint error, got range "+m+"-"+f+" expected range "+n.min+"-"+n.max);if(m>f)throw new Error("Invalid range: "+o);var p=+l;if(Number.isNaN(p)||p<=0)throw new Error("Constraint error, cannot repeat at every "+p+" time.");e==="dayOfWeek"&&f%7===0&&c.push(0);for(var d=m,T=f;d<=T;d++){var v=c.indexOf(d)!==-1;!v&&p>0&&p%l===0?(p=1,c.push(d)):p++}return c}return Number.isNaN(+o)?o:+o}return i(r)};y._sortCompareFn=function(t,e){var r=typeof t=="number",n=typeof e=="number";return r&&n?t-e:!r&&n?1:r&&!n?-1:t.localeCompare(e)};y._handleMaxDaysInMonth=function(t){if(t.month.length===1){var e=y.daysInMonth[t.month[0]-1];if(t.dayOfMonth[0]>e)throw new Error("Invalid explicit day of month definition");return t.dayOfMonth.filter(function(r){return r==="L"?!0:r<=e}).sort(y._sortCompareFn)}};y._freezeFields=function(t){for(var e=0,r=y.map.length;e=v)return D[V]===v;return D[0]===v}function n(v,D){if(D<6){if(v.getDate()<8&&D===1)return!0;var V=v.getDate()%7?1:0,Y=v.getDate()-v.getDate()%7,Q=Math.floor(Y/7)+V;return Q===D}return!1}function s(v){return v.length>0&&v.some(function(D){return typeof D=="string"&&D.indexOf("L")>=0})}e=e||!1;var i=e?"subtract":"add",a=new de(this._currentDate,this._tz),u=this._startDate,o=this._endDate,l=a.getTime(),c=0;function g(v){return v.some(function(D){if(!s([D]))return!1;var V=Number.parseInt(D[0])%7;if(Number.isNaN(V))throw new Error("Invalid last weekday of the month expression: "+D);return a.getDay()===V&&a.isLastWeekdayOfMonth()})}for(;c=y.daysInMonth[a.getMonth()],d=this.fields.dayOfWeek.length===y.constraints[5].max-y.constraints[5].min+1,T=a.getHours();if(!m&&(!f||d)){this._applyTimezoneShift(a,i,"Day");continue}if(!p&&d&&!m){this._applyTimezoneShift(a,i,"Day");continue}if(p&&!d&&!f){this._applyTimezoneShift(a,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(a,this._nthDayOfWeek)){this._applyTimezoneShift(a,i,"Day");continue}if(!r(a.getMonth()+1,this.fields.month)){this._applyTimezoneShift(a,i,"Month");continue}if(r(T,this.fields.hour)){if(this._dstEnd===T&&!e){this._dstEnd=null,this._applyTimezoneShift(a,"add","Hour");continue}}else if(this._dstStart!==T){this._dstStart=null,this._applyTimezoneShift(a,i,"Hour");continue}else if(!r(T-1,this.fields.hour)){a[i+"Hour"]();continue}if(!r(a.getMinutes(),this.fields.minute)){this._applyTimezoneShift(a,i,"Minute");continue}if(!r(a.getSeconds(),this.fields.second)){this._applyTimezoneShift(a,i,"Second");continue}if(l===a.getTime()){i==="add"||a.getMilliseconds()===0?this._applyTimezoneShift(a,i,"Second"):a.setMilliseconds(0);continue}break}if(c>=gr)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new de(a,this._tz),this._hasIterated=!0,a};y.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e};y.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e};y.prototype.hasNext=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};y.prototype.hasPrev=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(!0),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};y.prototype.iterate=function(e,r){var n=[];if(e>=0)for(var s=0,i=e;si;s--)try{var a=this.prev();n.push(a),r&&r(a,s)}catch{break}return n};y.prototype.reset=function(e){this._currentDate=new de(e||this._options.currentDate)};y.prototype.stringify=function(e){for(var r=[],n=e?0:1,s=y.map.length;n"u"&&(a.currentDate=new de(void 0,n._tz)),y.predefined[i]&&(i=y.predefined[i]);var u=[],o=(i+"").trim().split(/\s+/);if(o.length>6)throw new Error("Invalid cron expression");for(var l=y.map.length-o.length,c=0,g=y.map.length;cg?c:c-l];if(c1){var Q=+Y[Y.length-1];if(/,/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(Y.length>2||Number.isNaN(Q)||Q<1||Q>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return a.nthDayOfWeek=Q,Y[0]}return V}}return s(e,r)};y.fieldsToExpression=function(e,r){function n(m,f,p){if(!f)throw new Error("Validation error, Field "+m+" is missing");if(f.length===0)throw new Error("Validation error, Field "+m+" contains no values");for(var d=0,T=f.length;dp.max))throw new Error("Constraint error, got value "+v+" expected range "+p.min+"-"+p.max)}}for(var s={},i=0,a=y.map.length;i6)return{interval:Xe.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+e)};ne.parseExpression=function(e,r){return Xe.parse(e,r)};ne.fieldsToExpression=function(e,r){return Xe.fieldsToExpression(e,r)};ne.parseString=function(e){for(var r=e.split(` +import{B as _n}from"./BaseLayout.294a6887.js";import{R as Mn,S as In,E as bn,a as xn,L as Cn}from"./SourceCode.db5c4074.js";import{S as Fn}from"./SaveButton.6d0d3fb7.js";import{a as Vn}from"./asyncComputed.295e9e03.js";import{eF as Wn,d as We,f as ge,e as te,Q as Ln,o as x,X as ye,b as M,w as E,u as w,aA as at,aF as W,aR as Ie,ee as Pe,c as L,ec as Ce,cS as ot,cy as St,bK as Tt,d5 as ut,cA as lt,R as oe,e$ as $t,db as wr,D as $n,cx as An,eq as Un,ed as Zn,ej as zn,y as Rn,df as At,da as Hn,cV as qn}from"./vue-router.3fd92176.js";import{J as Yn}from"./scripts.32887e06.js";import"./editor.519c2dc1.js";import{W as Pn}from"./workspaces.b456ec6a.js";import{A as jn,a as Jn}from"./index.eafefd9b.js";import{A as Gn}from"./index.063f7c9e.js";import{_ as Bn}from"./RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js";import{N as Qn}from"./NavbarControls.a8a61aa1.js";import{b as Kn}from"./index.5ccdbcb7.js";import{A as ct,T as Ut}from"./TabPane.d0ca7ad5.js";import"./uuid.06ef1e24.js";import"./validations.0afef3f1.js";import"./string.e75a34fd.js";import"./PhCopy.vue.0ae3f8ab.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhCopySimple.vue.992b99ff.js";import"./PhCaretRight.vue.f72488ac.js";import"./Badge.bcc65740.js";import"./isNumeric.75337b1e.js";import"./PhBug.vue.00bc4255.js";import"./PhQuestion.vue.129febdc.js";import"./LoadingOutlined.dad6ee6e.js";import"./polling.4e30c061.js";import"./PhPencil.vue.a2604470.js";import"./toggleHighContrast.db48a34e.js";import"./index.4fbbd10e.js";import"./Card.0ce127d8.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./record.cbb43e89.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./CloseCircleOutlined.f8dfd09a.js";import"./popupNotifcation.0e86d6a8.js";import"./PhArrowSquareOut.vue.188b81dc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./PhChats.vue.aa1113d9.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1ea33d9b-e46f-4cc3-8255-7323754cf05e",t._sentryDebugIdIdentifier="sentry-dbid-1ea33d9b-e46f-4cc3-8255-7323754cf05e")}catch{}})();const dt={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},Xn=["hourly","daily","weekly","monthly","custom"],es={custom:{minute:"*",hour:"*",day:"*",month:"*",weekday:"*"},hourly:{minute:"0",hour:"*",day:"*",month:"*",weekday:"*"},daily:{minute:"0",hour:"6",day:"*",month:"*",weekday:"*"},weekly:{minute:"0",hour:"6",day:"*",month:"*",weekday:"1"},monthly:{minute:"0",hour:"6",day:"1",month:"*",weekday:"*"}};var z={};Object.defineProperty(z,"__esModule",{value:!0});class fe extends Error{}class ts extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class rs extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ns extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class pe extends fe{}class vr extends fe{constructor(e){super(`Invalid unit ${e}`)}}class U extends fe{}class K extends fe{constructor(){super("Zone is an abstract class")}}const h="numeric",G="short",Z="long",Ge={year:h,month:h,day:h},kr={year:h,month:G,day:h},ss={year:h,month:G,day:h,weekday:G},Sr={year:h,month:Z,day:h},Tr={year:h,month:Z,day:h,weekday:Z},Or={hour:h,minute:h},Dr={hour:h,minute:h,second:h},Nr={hour:h,minute:h,second:h,timeZoneName:G},Er={hour:h,minute:h,second:h,timeZoneName:Z},_r={hour:h,minute:h,hourCycle:"h23"},Mr={hour:h,minute:h,second:h,hourCycle:"h23"},Ir={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:G},br={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Z},xr={year:h,month:h,day:h,hour:h,minute:h},Cr={year:h,month:h,day:h,hour:h,minute:h,second:h},Fr={year:h,month:G,day:h,hour:h,minute:h},Vr={year:h,month:G,day:h,hour:h,minute:h,second:h},is={year:h,month:G,day:h,weekday:G,hour:h,minute:h},Wr={year:h,month:Z,day:h,hour:h,minute:h,timeZoneName:G},Lr={year:h,month:Z,day:h,hour:h,minute:h,second:h,timeZoneName:G},$r={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,timeZoneName:Z},Ar={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,second:h,timeZoneName:Z};class Se{get type(){throw new K}get name(){throw new K}get ianaName(){return this.name}get isUniversal(){throw new K}offsetName(e,r){throw new K}formatOffset(e,r){throw new K}offset(e){throw new K}equals(e){throw new K}get isValid(){throw new K}}let ft=null;class Le extends Se{static get instance(){return ft===null&&(ft=new Le),ft}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Jr(e,r,n)}formatOffset(e,r){return Fe(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let je={};function as(t){return je[t]||(je[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),je[t]}const os={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function us(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,u,o,l,c]=n;return[a,s,i,u,o,l,c]}function ls(t,e){const r=t.formatToParts(e),n=[];for(let s=0;s=0?p:1e3+p,(m-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Zt={};function cs(t,e={}){const r=JSON.stringify([t,e]);let n=Zt[r];return n||(n=new Intl.ListFormat(t,e),Zt[r]=n),n}let Ot={};function Dt(t,e={}){const r=JSON.stringify([t,e]);let n=Ot[r];return n||(n=new Intl.DateTimeFormat(t,e),Ot[r]=n),n}let Nt={};function ds(t,e={}){const r=JSON.stringify([t,e]);let n=Nt[r];return n||(n=new Intl.NumberFormat(t,e),Nt[r]=n),n}let Et={};function fs(t,e={}){const{base:r,...n}=e,s=JSON.stringify([t,n]);let i=Et[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Et[s]=i),i}let be=null;function hs(){return be||(be=new Intl.DateTimeFormat().resolvedOptions().locale,be)}let zt={};function ms(t){let e=zt[t];if(!e){const r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,zt[t]=e}return e}function ys(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let n,s;try{n=Dt(t).resolvedOptions(),s=t}catch{const o=t.substring(0,r);n=Dt(o).resolvedOptions(),s=o}const{numberingSystem:i,calendar:a}=n;return[s,i,a]}}function ps(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function gs(t){const e=[];for(let r=1;r<=12;r++){const n=O.utc(2009,r,1);e.push(t(n))}return e}function ws(t){const e=[];for(let r=1;r<=7;r++){const n=O.utc(2016,11,13+r);e.push(t(n))}return e}function ze(t,e,r,n){const s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}function vs(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class ks{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:i,...a}=n;if(!r||Object.keys(a).length>0){const u={useGrouping:!1,...n};n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=ds(e,u)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Ct(e,3);return F(r,this.padTo)}}}class Ss{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),u=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&B.create(u).valid?(s=u,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Dt(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ts{constructor(e,r,n){this.opts={style:"long",...n},!r&&Pr()&&(this.rtf=fs(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):zs(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Os={firstDay:1,minimalDays:4,weekend:[6,7]};class I{static fromOpts(e){return I.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=!1){const a=e||C.defaultLocale,u=a||(i?"en-US":hs()),o=r||C.defaultNumberingSystem,l=n||C.defaultOutputCalendar,c=_t(s)||C.defaultWeekSettings;return new I(u,o,l,c,a)}static resetCache(){be=null,Ot={},Nt={},Et={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return I.create(e,r,n,s)}constructor(e,r,n,s,i){const[a,u,o]=ys(e);this.locale=a,this.numberingSystem=r||u||null,this.outputCalendar=n||o||null,this.weekSettings=s,this.intl=ps(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=vs(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:I.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,_t(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return ze(this,e,Qr,()=>{const n=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=gs(i=>this.extract(i,n,"month"))),this.monthsCache[s][e]})}weekdays(e,r=!1){return ze(this,e,en,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=ws(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return ze(this,void 0,()=>tn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[O.utc(2016,11,13,9),O.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ze(this,e,rn,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[O.utc(-40,1,1),O.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const s=this.dtFormatter(e,r),i=s.formatToParts(),a=i.find(u=>u.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new ks(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Ss(e,this.intl,r)}relFormatter(e={}){return new Ts(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cs(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:jr()?ms(this.locale):Os}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ht=null;class A extends Se{static get utcInstance(){return ht===null&&(ht=new A(0)),ht}static instance(e){return e===0?A.utcInstance:new A(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new A(nt(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Fe(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Fe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Fe(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Ur extends Se{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function re(t,e){if(S(t)||t===null)return e;if(t instanceof Se)return t;if(Es(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Le.instance:r==="utc"||r==="gmt"?A.utcInstance:A.parseSpecifier(r)||B.create(t)}else return ce(t)?A.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ur(t)}let Rt=()=>Date.now(),Ht="system",qt=null,Yt=null,Pt=null,jt=60,Jt,Gt=null;class C{static get now(){return Rt}static set now(e){Rt=e}static set defaultZone(e){Ht=e}static get defaultZone(){return re(Ht,Le.instance)}static get defaultLocale(){return qt}static set defaultLocale(e){qt=e}static get defaultNumberingSystem(){return Yt}static set defaultNumberingSystem(e){Yt=e}static get defaultOutputCalendar(){return Pt}static set defaultOutputCalendar(e){Pt=e}static get defaultWeekSettings(){return Gt}static set defaultWeekSettings(e){Gt=_t(e)}static get twoDigitCutoffYear(){return jt}static set twoDigitCutoffYear(e){jt=e%100}static get throwOnInvalid(){return Jt}static set throwOnInvalid(e){Jt=e}static resetCaches(){I.resetCache(),B.resetCache()}}class J{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zr=[0,31,59,90,120,151,181,212,243,273,304,334],zr=[0,31,60,91,121,152,182,213,244,274,305,335];function H(t,e){return new J("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function It(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function Rr(t,e,r){return r+($e(t)?zr:Zr)[e-1]}function Hr(t,e){const r=$e(t)?zr:Zr,n=r.findIndex(i=>iVe(n,e,r)?(l=n+1,o=1):l=n,{weekYear:l,weekNumber:o,weekday:u,...st(t)}}function Bt(t,e=4,r=1){const{weekYear:n,weekNumber:s,weekday:i}=t,a=bt(It(n,1,e),r),u=we(n);let o=s*7+i-a-7+e,l;o<1?(l=n-1,o+=we(l)):o>u?(l=n+1,o-=we(n)):l=n;const{month:c,day:g}=Hr(l,o);return{year:l,month:c,day:g,...st(t)}}function mt(t){const{year:e,month:r,day:n}=t,s=Rr(e,r,n);return{year:e,ordinal:s,...st(t)}}function Qt(t){const{year:e,ordinal:r}=t,{month:n,day:s}=Hr(e,r);return{year:e,month:n,day:s,...st(t)}}function Kt(t,e){if(!S(t.localWeekday)||!S(t.localWeekNumber)||!S(t.localWeekYear)){if(!S(t.weekday)||!S(t.weekNumber)||!S(t.weekYear))throw new pe("Cannot mix locale-based week fields with ISO-based week fields");return S(t.localWeekday)||(t.weekday=t.localWeekday),S(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),S(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Ds(t,e=4,r=1){const n=tt(t.weekYear),s=q(t.weekNumber,1,Ve(t.weekYear,e,r)),i=q(t.weekday,1,7);return n?s?i?!1:H("weekday",t.weekday):H("week",t.weekNumber):H("weekYear",t.weekYear)}function Ns(t){const e=tt(t.year),r=q(t.ordinal,1,we(t.year));return e?r?!1:H("ordinal",t.ordinal):H("year",t.year)}function qr(t){const e=tt(t.year),r=q(t.month,1,12),n=q(t.day,1,Qe(t.year,t.month));return e?r?n?!1:H("day",t.day):H("month",t.month):H("year",t.year)}function Yr(t){const{hour:e,minute:r,second:n,millisecond:s}=t,i=q(e,0,23)||e===24&&r===0&&n===0&&s===0,a=q(r,0,59),u=q(n,0,59),o=q(s,0,999);return i?a?u?o?!1:H("millisecond",s):H("second",n):H("minute",r):H("hour",e)}function S(t){return typeof t>"u"}function ce(t){return typeof t=="number"}function tt(t){return typeof t=="number"&&t%1===0}function Es(t){return typeof t=="string"}function _s(t){return Object.prototype.toString.call(t)==="[object Date]"}function Pr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function jr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ms(t){return Array.isArray(t)?t:[t]}function Xt(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{const i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Is(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ke(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function _t(t){if(t==null)return null;if(typeof t!="object")throw new U("Week settings must be an object");if(!q(t.firstDay,1,7)||!q(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!q(e,1,7)))throw new U("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function q(t,e,r){return tt(t)&&t>=e&&t<=r}function bs(t,e){return t-e*Math.floor(t/e)}function F(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function ee(t){if(!(S(t)||t===null||t===""))return parseInt(t,10)}function se(t){if(!(S(t)||t===null||t===""))return parseFloat(t)}function xt(t){if(!(S(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ct(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function $e(t){return t%4===0&&(t%100!==0||t%400===0)}function we(t){return $e(t)?366:365}function Qe(t,e){const r=bs(e-1,12)+1,n=t+(e-r)/12;return r===2?$e(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function rt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function er(t,e,r){return-bt(It(t,1,e),r)+e-1}function Ve(t,e=4,r=1){const n=er(t,e,r),s=er(t+1,e,r);return(we(t)-n+s)/7}function Mt(t){return t>99?t:t>C.twoDigitCutoffYear?1900+t:2e3+t}function Jr(t,e,r,n=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a={timeZoneName:e,...i},u=new Intl.DateTimeFormat(r,a).formatToParts(s).find(o=>o.type.toLowerCase()==="timezonename");return u?u.value:null}function nt(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function Gr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new U(`Invalid unit value ${t}`);return e}function Ke(t,e){const r={};for(const n in t)if(ke(t,n)){const s=t[n];if(s==null)continue;r[e(n)]=Gr(s)}return r}function Fe(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${F(r,2)}:${F(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${F(r,2)}${F(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function st(t){return Is(t,["hour","minute","second","millisecond"])}const xs=["January","February","March","April","May","June","July","August","September","October","November","December"],Br=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Cs=["J","F","M","A","M","J","J","A","S","O","N","D"];function Qr(t){switch(t){case"narrow":return[...Cs];case"short":return[...Br];case"long":return[...xs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Kr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fs=["M","T","W","T","F","S","S"];function en(t){switch(t){case"narrow":return[...Fs];case"short":return[...Xr];case"long":return[...Kr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const tn=["AM","PM"],Vs=["Before Christ","Anno Domini"],Ws=["BC","AD"],Ls=["B","A"];function rn(t){switch(t){case"narrow":return[...Ls];case"short":return[...Ws];case"long":return[...Vs];default:return null}}function $s(t){return tn[t.hour<12?0:1]}function As(t,e){return en(e)[t.weekday-1]}function Us(t,e){return Qr(e)[t.month-1]}function Zs(t,e){return rn(e)[t.year<0?0:1]}function zs(t,e,r="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${s[t][0]}`;case-1:return g?"yesterday":`last ${s[t][0]}`;case 0:return g?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,u=Math.abs(e),o=u===1,l=s[t],c=n?o?l[1]:l[2]||l[1]:o?s[t][0]:t;return a?`${u} ${c} ago`:`in ${u} ${c}`}function tr(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const Rs={D:Ge,DD:kr,DDD:Sr,DDDD:Tr,t:Or,tt:Dr,ttt:Nr,tttt:Er,T:_r,TT:Mr,TTT:Ir,TTTT:br,f:xr,ff:Fr,fff:Wr,ffff:$r,F:Cr,FF:Vr,FFF:Lr,FFFF:Ar};class ${static create(e,r={}){return new $(e,r)}static parseFormat(e){let r=null,n="",s=!1;const i=[];for(let a=0;a0&&i.push({literal:s||/^\s+$/.test(n),val:n}),r=null,n="",s=!s):s||u===r?n+=u:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=u,r=u)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Rs[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return F(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(f,p)=>this.loc.extract(e,f,p),a=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",u=()=>n?$s(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(f,p)=>n?Us(e,f):i(p?{month:f}:{month:f,day:"numeric"},"month"),l=(f,p)=>n?As(e,f):i(p?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),c=f=>{const p=$.macroTokenToFormatOpts(f);return p?this.formatWithSystemDefault(e,p):f},g=f=>n?Zs(e,f):i({era:f},"era"),m=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(f)}};return tr($.parseFormat(r),m)}formatDurationFromString(e,r){const n=o=>{switch(o[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=o=>l=>{const c=n(l);return c?this.num(o.get(c),l.length):l},i=$.parseFormat(r),a=i.reduce((o,{literal:l,val:c})=>l?o:o.concat(c),[]),u=e.shiftTo(...a.map(n).filter(o=>o));return tr(i,s(u))}}const nn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Te(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Oe(...t){return e=>t.reduce(([r,n,s],i)=>{const[a,u,o]=i(e,s);return[{...r,...a},u||n,o]},[{},null,1]).slice(0,2)}function De(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const s=r.exec(t);if(s)return n(s)}return[null,null]}function sn(...t){return(e,r)=>{const n={};let s;for(s=0;sf!==void 0&&(p||f&&c)?-f:f;return[{years:m(se(r)),months:m(se(n)),weeks:m(se(s)),days:m(se(i)),hours:m(se(a)),minutes:m(se(u)),seconds:m(se(o),o==="-0"),milliseconds:m(xt(l),g)}]}const ti={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wt(t,e,r,n,s,i,a){const u={year:e.length===2?Mt(ee(e)):ee(e),month:Br.indexOf(r)+1,day:ee(n),hour:ee(s),minute:ee(i)};return a&&(u.second=ee(a)),t&&(u.weekday=t.length>3?Kr.indexOf(t)+1:Xr.indexOf(t)+1),u}const ri=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ni(t){const[,e,r,n,s,i,a,u,o,l,c,g]=t,m=Wt(e,s,n,r,i,a,u);let f;return o?f=ti[o]:l?f=0:f=nt(c,g),[m,new A(f)]}function si(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ai=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,oi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function rr(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,s,n,r,i,a,u),A.utcInstance]}function ui(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,u,r,n,s,i,a),A.utcInstance]}const li=Te(qs,Vt),ci=Te(Ys,Vt),di=Te(Ps,Vt),fi=Te(on),ln=Oe(Qs,Ne,Ae,Ue),hi=Oe(js,Ne,Ae,Ue),mi=Oe(Js,Ne,Ae,Ue),yi=Oe(Ne,Ae,Ue);function pi(t){return De(t,[li,ln],[ci,hi],[di,mi],[fi,yi])}function gi(t){return De(si(t),[ri,ni])}function wi(t){return De(t,[ii,rr],[ai,rr],[oi,ui])}function vi(t){return De(t,[Xs,ei])}const ki=Oe(Ne);function Si(t){return De(t,[Ks,ki])}const Ti=Te(Gs,Bs),Oi=Te(un),Di=Oe(Ne,Ae,Ue);function Ni(t){return De(t,[Ti,ln],[Oi,Di])}const nr="Invalid Duration",cn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ei={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...cn},R=146097/400,he=146097/4800,_i={years:{quarters:4,months:12,weeks:R/7,days:R,hours:R*24,minutes:R*24*60,seconds:R*24*60*60,milliseconds:R*24*60*60*1e3},quarters:{months:3,weeks:R/28,days:R/4,hours:R*24/4,minutes:R*24*60/4,seconds:R*24*60*60/4,milliseconds:R*24*60*60*1e3/4},months:{weeks:he/7,days:he,hours:he*24,minutes:he*24*60,seconds:he*24*60*60,milliseconds:he*24*60*60*1e3},...cn},le=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Mi=le.slice(0).reverse();function X(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new N(n)}function dn(t,e){var r;let n=(r=e.milliseconds)!=null?r:0;for(const s of Mi.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function sr(t,e){const r=dn(t,e)<0?-1:1;le.reduceRight((n,s)=>{if(S(e[s]))return n;if(n){const i=e[n]*r,a=t[s][n],u=Math.floor(i/a);e[s]+=u*r,e[n]-=u*a*r}return s},null),le.reduce((n,s)=>{if(S(e[s]))return n;if(n){const i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s]}return s},null)}function Ii(t){const e={};for(const[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}class N{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?_i:Ei;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||I.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return N.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new U(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new N({values:Ke(e,N.normalizeUnit),loc:I.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(ce(e))return N.fromMillis(e);if(N.isDuration(e))return e;if(typeof e=="object")return N.fromObject(e);throw new U(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=vi(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=Si(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the Duration is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ns(n);return new N({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new vr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?$.create(this.loc,n).formatDurationFromString(this,e):nr}toHuman(e={}){if(!this.isValid)return nr;const r=le.map(n=>{const s=this.values[n];return S(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(s)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ct(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},O.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?dn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e),n={};for(const s of le)(ke(r.values,s)||ke(this.values,s))&&(n[s]=r.get(s)+this.get(s));return X(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=Gr(e(this.values[n],n));return X(this,{values:r},!0)}get(e){return this[N.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...Ke(e,N.normalizeUnit)};return X(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return X(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return sr(this.matrix,e),X(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Ii(this.normalize().shiftToAll().toObject());return X(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>N.normalizeUnit(a));const r={},n={},s=this.toObject();let i;for(const a of le)if(e.indexOf(a)>=0){i=a;let u=0;for(const l in n)u+=this.matrix[l][a]*n[l],n[l]=0;ce(s[a])&&(u+=s[a]);const o=Math.trunc(u);r[a]=o,n[a]=(u*1e3-o*1e3)/1e3}else ce(s[a])&&(n[a]=s[a]);for(const a in n)n[a]!==0&&(r[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return sr(this.matrix,r),X(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return X(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of le)if(!r(this.values[n],e.values[n]))return!1;return!0}}const me="Invalid Interval";function bi(t,e){return!t||!t.isValid?b.invalid("missing or invalid start"):!e||!e.isValid?b.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?b.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(Me).filter(a=>this.contains(a)).sort((a,u)=>a.toMillis()-u.toMillis()),n=[];let{s}=this,i=0;for(;s+this.e?this.e:a;n.push(b.fromDateTimes(s,u)),s=u,i+=1}return n}splitBy(e){const r=N.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;const a=[];for(;no*s));i=+u>+this.e?this.e:u,a.push(b.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e=n?null:b.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.se.e?this.e:e.e;return b.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const s=[],i=e.map(o=>[{time:o.s,type:"s"},{time:o.e,type:"e"}]),a=Array.prototype.concat(...i),u=a.sort((o,l)=>o.time-l.time);for(const o of u)n+=o.type==="s"?1:-1,n===1?r=o.time:(r&&+r!=+o.time&&s.push(b.fromDateTimes(r,o.time)),r=null);return b.merge(s)}difference(...e){return b.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:me}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ge,r={}){return this.isValid?$.create(this.s.loc.clone(r),e).formatInterval(this):me}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:me}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:me}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:me}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:me}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):N.invalid(this.invalidReason)}mapEndpoints(e){return b.fromDateTimes(e(this.s),e(this.e))}}class xe{static hasDST(e=C.defaultZone){const r=O.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return B.isValidZone(e)}static normalizeZone(e){return re(e,C.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||I.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||I.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||I.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||I.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||I.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||I.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||I.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return I.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return I.create(r,null,"gregory").eras(e)}static features(){return{relative:Pr(),localeWeek:jr()}}}function ir(t,e){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(N.fromMillis(n).as("days"))}function xi(t,e,r){const n=[["years",(o,l)=>l.year-o.year],["quarters",(o,l)=>l.quarter-o.quarter+(l.year-o.year)*4],["months",(o,l)=>l.month-o.month+(l.year-o.year)*12],["weeks",(o,l)=>{const c=ir(o,l);return(c-c%7)/7}],["days",ir]],s={},i=t;let a,u;for(const[o,l]of n)r.indexOf(o)>=0&&(a=o,s[o]=l(t,e),u=i.plus(s),u>e?(s[o]--,t=i.plus(s),t>e&&(u=t,s[o]--,t=i.plus(s))):t=u);return[t,s,u,a]}function Ci(t,e,r,n){let[s,i,a,u]=xi(t,e,r);const o=e-s,l=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);l.length===0&&(a0?N.fromMillis(o,n).shiftTo(...l).plus(c):c}const Lt={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},ar={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Fi=Lt.hanidec.replace(/[\[|\]]/g,"").split("");function Vi(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}function P({numberingSystem:t},e=""){return new RegExp(`${Lt[t||"latn"]}${e}`)}const Wi="missing Intl.DateTimeFormat.formatToParts support";function _(t,e=r=>r){return{regex:t,deser:([r])=>e(Vi(r))}}const Li=String.fromCharCode(160),fn=`[ ${Li}]`,hn=new RegExp(fn,"g");function $i(t){return t.replace(/\./g,"\\.?").replace(hn,fn)}function or(t){return t.replace(/\./g,"").replace(hn," ").toLowerCase()}function j(t,e){return t===null?null:{regex:RegExp(t.map($i).join("|")),deser:([r])=>t.findIndex(n=>or(r)===or(n))+e}}function ur(t,e){return{regex:t,deser:([,r,n])=>nt(r,n),groups:e}}function Re(t){return{regex:t,deser:([e])=>e}}function Ai(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ui(t,e){const r=P(e),n=P(e,"{2}"),s=P(e,"{3}"),i=P(e,"{4}"),a=P(e,"{6}"),u=P(e,"{1,2}"),o=P(e,"{1,3}"),l=P(e,"{1,6}"),c=P(e,"{1,9}"),g=P(e,"{2,4}"),m=P(e,"{4,6}"),f=T=>({regex:RegExp(Ai(T.val)),deser:([v])=>v,literal:!0}),d=(T=>{if(t.literal)return f(T);switch(T.val){case"G":return j(e.eras("short"),0);case"GG":return j(e.eras("long"),0);case"y":return _(l);case"yy":return _(g,Mt);case"yyyy":return _(i);case"yyyyy":return _(m);case"yyyyyy":return _(a);case"M":return _(u);case"MM":return _(n);case"MMM":return j(e.months("short",!0),1);case"MMMM":return j(e.months("long",!0),1);case"L":return _(u);case"LL":return _(n);case"LLL":return j(e.months("short",!1),1);case"LLLL":return j(e.months("long",!1),1);case"d":return _(u);case"dd":return _(n);case"o":return _(o);case"ooo":return _(s);case"HH":return _(n);case"H":return _(u);case"hh":return _(n);case"h":return _(u);case"mm":return _(n);case"m":return _(u);case"q":return _(u);case"qq":return _(n);case"s":return _(u);case"ss":return _(n);case"S":return _(o);case"SSS":return _(s);case"u":return Re(c);case"uu":return Re(u);case"uuu":return _(r);case"a":return j(e.meridiems(),0);case"kkkk":return _(i);case"kk":return _(g,Mt);case"W":return _(u);case"WW":return _(n);case"E":case"c":return _(r);case"EEE":return j(e.weekdays("short",!1),1);case"EEEE":return j(e.weekdays("long",!1),1);case"ccc":return j(e.weekdays("short",!0),1);case"cccc":return j(e.weekdays("long",!0),1);case"Z":case"ZZ":return ur(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return ur(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return Re(/[a-z_+-/]{1,256}?/i);case" ":return Re(/[^\S\n\r]/);default:return f(T)}})(t)||{invalidReason:Wi};return d.token=t,d}const Zi={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function zi(t,e,r){const{type:n,value:s}=t;if(n==="literal"){const o=/^\s+$/.test(s);return{literal:!o,val:o?" ":s}}const i=e[n];let a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=r.hour12?"hour12":"hour24");let u=Zi[a];if(typeof u=="object"&&(u=u[i]),u)return{literal:!1,val:u}}function Ri(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function Hi(t,e,r){const n=t.match(e);if(n){const s={};let i=1;for(const a in r)if(ke(r,a)){const u=r[a],o=u.groups?u.groups+1:1;!u.literal&&u.token&&(s[u.token.val[0]]=u.deser(n.slice(i,i+o))),i+=o}return[n,s]}else return[n,{}]}function qi(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return S(t.z)||(r=B.create(t.z)),S(t.Z)||(r||(r=new A(t.Z)),n=t.Z),S(t.q)||(t.M=(t.q-1)*3+1),S(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),S(t.u)||(t.S=xt(t.u)),[Object.keys(t).reduce((i,a)=>{const u=e(a);return u&&(i[u]=t[a]),i},{}),r,n]}let yt=null;function Yi(){return yt||(yt=O.fromMillis(1555555555555)),yt}function Pi(t,e){if(t.literal)return t;const r=$.macroTokenToFormatOpts(t.val),n=pn(r,e);return n==null||n.includes(void 0)?t:n}function mn(t,e){return Array.prototype.concat(...t.map(r=>Pi(r,e)))}function yn(t,e,r){const n=mn($.parseFormat(r),t),s=n.map(a=>Ui(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[a,u]=Ri(s),o=RegExp(a,"i"),[l,c]=Hi(e,o,u),[g,m,f]=c?qi(c):[null,null,void 0];if(ke(c,"a")&&ke(c,"H"))throw new pe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:o,rawMatches:l,matches:c,result:g,zone:m,specificOffset:f}}}function ji(t,e,r){const{result:n,zone:s,specificOffset:i,invalidReason:a}=yn(t,e,r);return[n,s,i,a]}function pn(t,e){if(!t)return null;const n=$.create(e,t).dtFormatter(Yi()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>zi(a,t,i))}const pt="Invalid DateTime",lr=864e13;function He(t){return new J("unsupported zone",`the zone "${t.name}" is not supported`)}function gt(t){return t.weekData===null&&(t.weekData=Be(t.c)),t.weekData}function wt(t){return t.localWeekData===null&&(t.localWeekData=Be(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ie(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new O({...r,...e,old:r})}function gn(t,e,r){let n=t-e*60*1e3;const s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function qe(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Je(t,e,r){return gn(rt(t),e,r)}function cr(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:s,day:Math.min(t.c.day,Qe(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=N.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=rt(i);let[o,l]=gn(u,r,t.zone);return a!==0&&(o+=a,l=t.zone.offset(o)),{ts:o,o:l}}function _e(t,e,r,n,s,i){const{setZone:a,zone:u}=r;if(t&&Object.keys(t).length!==0||e){const o=e||u,l=O.fromObject(t,{...r,zone:o,specificOffset:i});return a?l:l.setZone(u)}else return O.invalid(new J("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Ye(t,e,r=!0){return t.isValid?$.create(I.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function vt(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=F(t.c.year,r?6:4),e?(n+="-",n+=F(t.c.month),n+="-",n+=F(t.c.day)):(n+=F(t.c.month),n+=F(t.c.day)),n}function dr(t,e,r,n,s,i){let a=F(t.c.hour);return e?(a+=":",a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=":")):a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=F(t.c.second),(t.c.millisecond!==0||!n)&&(a+=".",a+=F(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=F(Math.trunc(-t.o/60)),a+=":",a+=F(Math.trunc(-t.o%60))):(a+="+",a+=F(Math.trunc(t.o/60)),a+=":",a+=F(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const wn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ji={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Gi={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vn=["year","month","day","hour","minute","second","millisecond"],Bi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qi=["year","ordinal","hour","minute","second","millisecond"];function Ki(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new vr(t);return e}function fr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ki(t)}}function hr(t,e){const r=re(e.zone,C.defaultZone),n=I.fromObject(e),s=C.now();let i,a;if(S(t.year))i=s;else{for(const l of vn)S(t[l])&&(t[l]=wn[l]);const u=qr(t)||Yr(t);if(u)return O.invalid(u);const o=r.offset(s);[i,a]=Je(t,o,r)}return new O({ts:i,zone:r,loc:n,o:a})}function mr(t,e,r){const n=S(r.round)?!0:r.round,s=(a,u)=>(a=Ct(a,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(a,u)),i=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(i(r.unit),r.unit);for(const a of r.units){const u=i(a);if(Math.abs(u)>=1)return s(u,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function yr(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class O{constructor(e){const r=e.zone||C.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new J("invalid input"):null)||(r.isValid?null:He(r));this.ts=S(e.ts)?C.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else{const u=r.offset(this.ts);s=qe(this.ts,u),n=Number.isNaN(s.year)?new J("invalid input"):null,s=n?null:s,i=n?null:u}this._zone=r,this.loc=e.loc||I.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new O({})}static local(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static utc(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return e.zone=A.utcInstance,hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static fromJSDate(e,r={}){const n=_s(e)?e.valueOf():NaN;if(Number.isNaN(n))return O.invalid("invalid input");const s=re(r.zone,C.defaultZone);return s.isValid?new O({ts:n,zone:s,loc:I.fromObject(r)}):O.invalid(He(s))}static fromMillis(e,r={}){if(ce(e))return e<-lr||e>lr?O.invalid("Timestamp out of range"):new O({ts:e,zone:re(r.zone,C.defaultZone),loc:I.fromObject(r)});throw new U(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(ce(e))return new O({ts:e*1e3,zone:re(r.zone,C.defaultZone),loc:I.fromObject(r)});throw new U("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=re(r.zone,C.defaultZone);if(!n.isValid)return O.invalid(He(n));const s=I.fromObject(r),i=Ke(e,fr),{minDaysInFirstWeek:a,startOfWeek:u}=Kt(i,s),o=C.now(),l=S(r.specificOffset)?n.offset(o):r.specificOffset,c=!S(i.ordinal),g=!S(i.year),m=!S(i.month)||!S(i.day),f=g||m,p=i.weekYear||i.weekNumber;if((f||c)&&p)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&c)throw new pe("Can't mix ordinal dates with month/day");const d=p||i.weekday&&!f;let T,v,D=qe(o,l);d?(T=Bi,v=Ji,D=Be(D,a,u)):c?(T=Qi,v=Gi,D=mt(D)):(T=vn,v=wn);let V=!1;for(const Ee of T){const En=i[Ee];S(En)?V?i[Ee]=v[Ee]:i[Ee]=D[Ee]:V=!0}const Y=d?Ds(i,a,u):c?Ns(i):qr(i),Q=Y||Yr(i);if(Q)return O.invalid(Q);const On=d?Bt(i,a,u):c?Qt(i):i,[Dn,Nn]=Je(On,l,n),it=new O({ts:Dn,zone:n,o:Nn,loc:s});return i.weekday&&f&&e.weekday!==it.weekday?O.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${it.toISO()}`):it}static fromISO(e,r={}){const[n,s]=pi(e);return _e(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,s]=gi(e);return _e(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,s]=wi(e);return _e(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(S(e)||S(r))throw new U("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,a=I.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[u,o,l,c]=ji(a,e,r);return c?O.invalid(c):_e(u,o,n,`format ${r}`,e,l)}static fromString(e,r,n={}){return O.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,s]=Ni(e);return _e(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the DateTime is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ts(n);return new O({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=pn(e,I.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return mn($.parseFormat(e),I.fromObject(r)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?gt(this).weekYear:NaN}get weekNumber(){return this.isValid?gt(this).weekNumber:NaN}get weekday(){return this.isValid?gt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wt(this).weekday:NaN}get localWeekNumber(){return this.isValid?wt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wt(this).weekYear:NaN}get ordinal(){return this.isValid?mt(this.c).ordinal:NaN}get monthShort(){return this.isValid?xe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=rt(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*r),u=this.zone.offset(n-i*r);if(a===u)return[this];const o=n-a*r,l=n-u*r,c=qe(o,a),g=qe(l,u);return c.hour===g.hour&&c.minute===g.minute&&c.second===g.second&&c.millisecond===g.millisecond?[ie(this,{ts:o}),ie(this,{ts:l})]:[this]}get isInLeapYear(){return $e(this.year)}get daysInMonth(){return Qe(this.year,this.month)}get daysInYear(){return this.isValid?we(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ve(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ve(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:s}=$.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(A.instance(e),r)}toLocal(){return this.setZone(C.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=re(e,C.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){const i=e.offset(this.ts),a=this.toObject();[s]=Je(a,i,e)}return ie(this,{ts:s,zone:e})}else return O.invalid(He(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return ie(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=Ke(e,fr),{minDaysInFirstWeek:n,startOfWeek:s}=Kt(r,this.loc),i=!S(r.weekYear)||!S(r.weekNumber)||!S(r.weekday),a=!S(r.ordinal),u=!S(r.year),o=!S(r.month)||!S(r.day),l=u||o,c=r.weekYear||r.weekNumber;if((l||a)&&c)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new pe("Can't mix ordinal dates with month/day");let g;i?g=Bt({...Be(this.c,n,s),...r},n,s):S(r.ordinal)?(g={...this.toObject(),...r},S(r.day)&&(g.day=Math.min(Qe(g.year,g.month),g.day))):g=Qt({...mt(this.c),...r});const[m,f]=Je(g,this.o,this.zone);return ie(this,{ts:m,o:f})}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return ie(this,cr(this,r))}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e).negate();return ie(this,cr(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},s=N.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),u=a?this:e,o=a?e:this,l=Ci(u,o,i,s);return a?l.negate():l}diffNow(e="milliseconds",r={}){return this.diff(O.now(),e,r)}until(e){return this.isValid?b.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=s&&s<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||O.fromObject({},{zone:this.zone}),n=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(O.isDateTime))throw new U("max requires all arguments be DateTimes");return Xt(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:s=null,numberingSystem:i=null}=n,a=I.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return yn(a,e,r)}static fromStringExplain(e,r,n={}){return O.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return Ge}static get DATE_MED(){return kr}static get DATE_MED_WITH_WEEKDAY(){return ss}static get DATE_FULL(){return Sr}static get DATE_HUGE(){return Tr}static get TIME_SIMPLE(){return Or}static get TIME_WITH_SECONDS(){return Dr}static get TIME_WITH_SHORT_OFFSET(){return Nr}static get TIME_WITH_LONG_OFFSET(){return Er}static get TIME_24_SIMPLE(){return _r}static get TIME_24_WITH_SECONDS(){return Mr}static get TIME_24_WITH_SHORT_OFFSET(){return Ir}static get TIME_24_WITH_LONG_OFFSET(){return br}static get DATETIME_SHORT(){return xr}static get DATETIME_SHORT_WITH_SECONDS(){return Cr}static get DATETIME_MED(){return Fr}static get DATETIME_MED_WITH_SECONDS(){return Vr}static get DATETIME_MED_WITH_WEEKDAY(){return is}static get DATETIME_FULL(){return Wr}static get DATETIME_FULL_WITH_SECONDS(){return Lr}static get DATETIME_HUGE(){return $r}static get DATETIME_HUGE_WITH_SECONDS(){return Ar}}function Me(t){if(O.isDateTime(t))return t;if(t&&t.valueOf&&ce(t.valueOf()))return O.fromJSDate(t);if(t&&typeof t=="object")return O.fromObject(t);throw new U(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Xi="3.4.4";z.DateTime=O;z.Duration=N;z.FixedOffsetZone=A;z.IANAZone=B;z.Info=xe;z.Interval=b;z.InvalidZone=Ur;z.Settings=C;z.SystemZone=Le;z.VERSION=Xi;z.Zone=Se;var ae=z;k.prototype.addYear=function(){this._date=this._date.plus({years:1})};k.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")};k.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")};k.prototype.addHour=function(){var t=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=t&&(this._date=this._date.plus({hours:1}))};k.prototype.addMinute=function(){var t=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=t&&(this._date=this._date.minus({hours:1}))};k.prototype.subtractMinute=function(){var t=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};k.prototype.subtractSecond=function(){var t=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};k.prototype.getDate=function(){return this._date.day};k.prototype.getFullYear=function(){return this._date.year};k.prototype.getDay=function(){var t=this._date.weekday;return t==7?0:t};k.prototype.getMonth=function(){return this._date.month-1};k.prototype.getHours=function(){return this._date.hour};k.prototype.getMinutes=function(){return this._date.minute};k.prototype.getSeconds=function(){return this._date.second};k.prototype.getMilliseconds=function(){return this._date.millisecond};k.prototype.getTime=function(){return this._date.valueOf()};k.prototype.getUTCDate=function(){return this._getUTC().day};k.prototype.getUTCFullYear=function(){return this._getUTC().year};k.prototype.getUTCDay=function(){var t=this._getUTC().weekday;return t==7?0:t};k.prototype.getUTCMonth=function(){return this._getUTC().month-1};k.prototype.getUTCHours=function(){return this._getUTC().hour};k.prototype.getUTCMinutes=function(){return this._getUTC().minute};k.prototype.getUTCSeconds=function(){return this._getUTC().second};k.prototype.toISOString=function(){return this._date.toUTC().toISO()};k.prototype.toJSON=function(){return this._date.toJSON()};k.prototype.setDate=function(t){this._date=this._date.set({day:t})};k.prototype.setFullYear=function(t){this._date=this._date.set({year:t})};k.prototype.setDay=function(t){this._date=this._date.set({weekday:t})};k.prototype.setMonth=function(t){this._date=this._date.set({month:t+1})};k.prototype.setHours=function(t){this._date=this._date.set({hour:t})};k.prototype.setMinutes=function(t){this._date=this._date.set({minute:t})};k.prototype.setSeconds=function(t){this._date=this._date.set({second:t})};k.prototype.setMilliseconds=function(t){this._date=this._date.set({millisecond:t})};k.prototype._getUTC=function(){return this._date.toUTC()};k.prototype.toString=function(){return this.toDate().toString()};k.prototype.toDate=function(){return this._date.toJSDate()};k.prototype.isLastDayOfMonth=function(){var t=this._date.plus({days:1}).startOf("day");return this._date.month!==t.month};k.prototype.isLastWeekdayOfMonth=function(){var t=this._date.plus({days:7}).startOf("day");return this._date.month!==t.month};function k(t,e){var r={zone:e};if(t?t instanceof k?this._date=t._date:t instanceof Date?this._date=ae.DateTime.fromJSDate(t,r):typeof t=="number"?this._date=ae.DateTime.fromMillis(t,r):typeof t=="string"&&(this._date=ae.DateTime.fromISO(t,r),this._date.isValid||(this._date=ae.DateTime.fromRFC2822(t,r)),this._date.isValid||(this._date=ae.DateTime.fromSQL(t,r)),this._date.isValid||(this._date=ae.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=ae.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(t));e&&e!==this._date.zoneName&&(this._date=this._date.setZone(e))}var ea=k;function ue(t){return{start:t,count:1}}function pr(t,e){t.end=e,t.step=e-t.start,t.count=2}function kt(t,e,r){e&&(e.count===2?(t.push(ue(e.start)),t.push(ue(e.end))):t.push(e)),r&&t.push(r)}function ta(t){for(var e=[],r=void 0,n=0;nl.end?a=a.concat(Array.from({length:l.end-l.start+1}).map(function(m,f){var p=l.start+f;return(p-l.start)%l.step===0?p:null}).filter(function(m){return m!=null})):l.end===r-l.step+1?a.push(l.start+"/"+l.step):a.push(l.start+"-"+l.end+"/"+l.step)}return a.join(",")}var ia=sa,de=ea,aa=ia,gr=1e4;function y(t,e){this._options=e,this._utc=e.utc||!1,this._tz=this._utc?"UTC":e.tz,this._currentDate=new de(e.currentDate,this._tz),this._startDate=e.startDate?new de(e.startDate,this._tz):null,this._endDate=e.endDate?new de(e.endDate,this._tz):null,this._isIterator=e.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=e.nthDayOfWeek||0,this.fields=y._freezeFields(t)}y.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"];y.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"};y.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}];y.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31];y.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}};y.parseDefaults=["0","*","*","*","*","*"];y.standardValidCharacters=/^[,*\d/-]+$/;y.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/;y.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/;y.validCharacters={second:y.standardValidCharacters,minute:y.standardValidCharacters,hour:y.standardValidCharacters,dayOfMonth:y.dayOfMonthValidCharacters,month:y.standardValidCharacters,dayOfWeek:y.dayOfWeekValidCharacters};y._isValidConstraintChar=function(e,r){return typeof r!="string"?!1:e.chars.some(function(n){return r.indexOf(n)>-1})};y._parseField=function(e,r,n){switch(e){case"month":case"dayOfWeek":var s=y.aliases[e];r=r.replace(/[a-z]{3}/gi,function(o){if(o=o.toLowerCase(),typeof s[o]<"u")return s[o];throw new Error('Validation error, cannot resolve alias "'+o+'"')});break}if(!y.validCharacters[e].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(o){var l=[];function c(p){if(p instanceof Array)for(var d=0,T=p.length;dn.max)throw new Error("Constraint error, got value "+v+" expected range "+n.min+"-"+n.max);l.push(v)}else{if(y._isValidConstraintChar(n,p)){l.push(p);return}var D=+p;if(Number.isNaN(D)||Dn.max)throw new Error("Constraint error, got value "+p+" expected range "+n.min+"-"+n.max);e==="dayOfWeek"&&(D=D%7),l.push(D)}}var g=o.split(",");if(!g.every(function(p){return p.length>0}))throw new Error("Invalid list value format");if(g.length>1)for(var m=0,f=g.length;m2)throw new Error("Invalid repeat: "+o);return c.length>1?(c[0]==+c[0]&&(c=[c[0]+"-"+n.max,c[1]]),u(c[0],c[c.length-1])):u(o,l)}function u(o,l){var c=[],g=o.split("-");if(g.length>1){if(g.length<2)return+o;if(!g[0].length){if(!g[1].length)throw new Error("Invalid range: "+o);return+o}var m=+g[0],f=+g[1];if(Number.isNaN(m)||Number.isNaN(f)||mn.max)throw new Error("Constraint error, got range "+m+"-"+f+" expected range "+n.min+"-"+n.max);if(m>f)throw new Error("Invalid range: "+o);var p=+l;if(Number.isNaN(p)||p<=0)throw new Error("Constraint error, cannot repeat at every "+p+" time.");e==="dayOfWeek"&&f%7===0&&c.push(0);for(var d=m,T=f;d<=T;d++){var v=c.indexOf(d)!==-1;!v&&p>0&&p%l===0?(p=1,c.push(d)):p++}return c}return Number.isNaN(+o)?o:+o}return i(r)};y._sortCompareFn=function(t,e){var r=typeof t=="number",n=typeof e=="number";return r&&n?t-e:!r&&n?1:r&&!n?-1:t.localeCompare(e)};y._handleMaxDaysInMonth=function(t){if(t.month.length===1){var e=y.daysInMonth[t.month[0]-1];if(t.dayOfMonth[0]>e)throw new Error("Invalid explicit day of month definition");return t.dayOfMonth.filter(function(r){return r==="L"?!0:r<=e}).sort(y._sortCompareFn)}};y._freezeFields=function(t){for(var e=0,r=y.map.length;e=v)return D[V]===v;return D[0]===v}function n(v,D){if(D<6){if(v.getDate()<8&&D===1)return!0;var V=v.getDate()%7?1:0,Y=v.getDate()-v.getDate()%7,Q=Math.floor(Y/7)+V;return Q===D}return!1}function s(v){return v.length>0&&v.some(function(D){return typeof D=="string"&&D.indexOf("L")>=0})}e=e||!1;var i=e?"subtract":"add",a=new de(this._currentDate,this._tz),u=this._startDate,o=this._endDate,l=a.getTime(),c=0;function g(v){return v.some(function(D){if(!s([D]))return!1;var V=Number.parseInt(D[0])%7;if(Number.isNaN(V))throw new Error("Invalid last weekday of the month expression: "+D);return a.getDay()===V&&a.isLastWeekdayOfMonth()})}for(;c=y.daysInMonth[a.getMonth()],d=this.fields.dayOfWeek.length===y.constraints[5].max-y.constraints[5].min+1,T=a.getHours();if(!m&&(!f||d)){this._applyTimezoneShift(a,i,"Day");continue}if(!p&&d&&!m){this._applyTimezoneShift(a,i,"Day");continue}if(p&&!d&&!f){this._applyTimezoneShift(a,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(a,this._nthDayOfWeek)){this._applyTimezoneShift(a,i,"Day");continue}if(!r(a.getMonth()+1,this.fields.month)){this._applyTimezoneShift(a,i,"Month");continue}if(r(T,this.fields.hour)){if(this._dstEnd===T&&!e){this._dstEnd=null,this._applyTimezoneShift(a,"add","Hour");continue}}else if(this._dstStart!==T){this._dstStart=null,this._applyTimezoneShift(a,i,"Hour");continue}else if(!r(T-1,this.fields.hour)){a[i+"Hour"]();continue}if(!r(a.getMinutes(),this.fields.minute)){this._applyTimezoneShift(a,i,"Minute");continue}if(!r(a.getSeconds(),this.fields.second)){this._applyTimezoneShift(a,i,"Second");continue}if(l===a.getTime()){i==="add"||a.getMilliseconds()===0?this._applyTimezoneShift(a,i,"Second"):a.setMilliseconds(0);continue}break}if(c>=gr)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new de(a,this._tz),this._hasIterated=!0,a};y.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e};y.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e};y.prototype.hasNext=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};y.prototype.hasPrev=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(!0),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};y.prototype.iterate=function(e,r){var n=[];if(e>=0)for(var s=0,i=e;si;s--)try{var a=this.prev();n.push(a),r&&r(a,s)}catch{break}return n};y.prototype.reset=function(e){this._currentDate=new de(e||this._options.currentDate)};y.prototype.stringify=function(e){for(var r=[],n=e?0:1,s=y.map.length;n"u"&&(a.currentDate=new de(void 0,n._tz)),y.predefined[i]&&(i=y.predefined[i]);var u=[],o=(i+"").trim().split(/\s+/);if(o.length>6)throw new Error("Invalid cron expression");for(var l=y.map.length-o.length,c=0,g=y.map.length;cg?c:c-l];if(c1){var Q=+Y[Y.length-1];if(/,/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(Y.length>2||Number.isNaN(Q)||Q<1||Q>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return a.nthDayOfWeek=Q,Y[0]}return V}}return s(e,r)};y.fieldsToExpression=function(e,r){function n(m,f,p){if(!f)throw new Error("Validation error, Field "+m+" is missing");if(f.length===0)throw new Error("Validation error, Field "+m+" contains no values");for(var d=0,T=f.length;dp.max))throw new Error("Constraint error, got value "+v+" expected range "+p.min+"-"+p.max)}}for(var s={},i=0,a=y.map.length;i6)return{interval:Xe.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+e)};ne.parseExpression=function(e,r){return Xe.parse(e,r)};ne.fieldsToExpression=function(e,r){return Xe.fieldsToExpression(e,r)};ne.parseString=function(e){for(var r=e.split(` `),n={variables:{},expressions:[],errors:{}},s=0,i=r.length;s0){if(o.match(/^#/))continue;if(u=o.match(/^(.*)=(.*)$/))n.variables[u[1]]=u[2];else{var l=null;try{l=ne._parseEntry("0 "+o),n.expressions.push(l.interval)}catch(c){n.errors[o]=c}}}}return n};ne.parseFile=function(e,r){ca.readFile(e,function(n,s){if(n){r(n);return}return r(null,ne.parseString(s.toString()))})};var kn=ne;function et(t){return`${t.minute} ${t.hour} ${t.day} ${t.month} ${t.weekday}`}function Sn(t){const[e,r,n,s,i]=t.split(" ");return{minute:e||"*",hour:r||"*",day:n||"*",month:s||"*",weekday:i||"*"}}const da=t=>t.some(e=>e.includes("-")||e.includes(",")||e.includes("/"));function fa(t){const{hour:e,day:r,weekday:n,month:s,minute:i}=t;return da([s,r,n,e,i])||s!=="*"?"custom":n!=="*"?r==="*"?"weekly":"custom":r!=="*"?"monthly":e!=="*"?"daily":i!=="*"?"hourly":"custom"}function ha(t){return t.split(" ").length===5}function Tn(t){try{return kn.parseExpression(t,{}),!0}catch{return!1}}const ma=We({__name:"CronEditor",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){const r=t,n=ge(()=>{const d=r.value.hour,T=r.value.minute;return $t(`${d}:${T}`,"HH:mm")}),s=te(!1),i=ge(()=>o.value.periodicity!="custom"?{message:"",status:"success"}:s.value&&ha(o.value.crontabStr)||Tn(o.value.crontabStr)?{message:"",status:"success"}:{message:"Invalid expression",status:"error"});function a(d){switch(fa(d)){case"custom":return{periodicity:"custom",crontabStr:et(d)};case"hourly":return{periodicity:"hourly",minute:d.minute};case"daily":return{periodicity:"daily",hour:d.hour,minute:d.minute};case"weekly":return{periodicity:"weekly",weekday:d.weekday,hour:d.hour,minute:d.minute};case"monthly":return{periodicity:"monthly",day:d.day,hour:d.hour,minute:d.minute}}}function u(d){switch(d.periodicity){case"custom":return Sn(d.crontabStr);case"hourly":return{minute:d.minute,hour:"*",day:"*",month:"*",weekday:"*"};case"daily":return{minute:d.minute,hour:d.hour,day:"*",month:"*",weekday:"*"};case"weekly":return{minute:d.minute,hour:d.hour,day:"*",month:"*",weekday:d.weekday};case"monthly":return{minute:d.minute,hour:d.hour,day:d.day,month:"*",weekday:"*"}}}const o=Ln(a(r.value));function l(d){o.value={periodicity:"custom",crontabStr:d},e("update:value",u(o.value))}const c=d=>{o.value=a(es[d]),e("update:value",u(o.value))},g=d=>{parseInt(d)>59||(o.value={periodicity:"hourly",minute:d.length?d:"0"},e("update:value",u(o.value)))},m=d=>{const T=$t(d);switch(o.value.periodicity){case"daily":o.value={periodicity:o.value.periodicity,hour:T.hour().toString(),minute:T.minute().toString()};break;case"weekly":o.value={periodicity:o.value.periodicity,weekday:o.value.weekday,hour:T.hour().toString(),minute:T.minute().toString()};break;case"monthly":o.value={periodicity:o.value.periodicity,day:o.value.day,hour:T.hour().toString(),minute:T.minute().toString()};break}e("update:value",u(o.value))},f=d=>{o.value={periodicity:"weekly",weekday:d,hour:"0",minute:"0"},e("update:value",u(o.value))},p=d=>{o.value={periodicity:"monthly",day:d,hour:"0",minute:"0"},e("update:value",u(o.value))};return(d,T)=>(x(),ye(Ie,null,[M(w(St),{title:"Recurrence"},{default:E(()=>[M(w(at),{placeholder:"Choose a periodicity",value:o.value.periodicity,"onUpdate:value":c},{default:E(()=>[W(" > "),(x(!0),ye(Ie,null,Pe(w(Xn),(v,D)=>(x(),L(w(ot),{key:D,value:v},{default:E(()=>[W(Ce(v),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),M(w(St),{help:i.value.message,"validate-status":i.value.status},{default:E(()=>[o.value.periodicity==="custom"?(x(),L(w(Tt),{key:0,value:o.value.crontabStr,"onUpdate:value":l,onBlur:T[0]||(T[0]=v=>s.value=!1),onFocus:T[1]||(T[1]=v=>s.value=!0)},null,8,["value"])):o.value.periodicity==="hourly"?(x(),L(w(Tt),{key:1,value:parseInt(d.value.minute),"onUpdate:value":g},{addonBefore:E(()=>[W(" at ")]),addonAfter:E(()=>[W(" minutes ")]),_:1},8,["value"])):o.value.periodicity==="daily"?(x(),L(w(lt),{key:2},{default:E(()=>[W(" on "),M(w(ut),{value:n.value,format:"HH:mm","allow-clear":!1,"onUpdate:value":m},null,8,["value"]),W(" UTC ")]),_:1})):o.value.periodicity==="weekly"?(x(),L(w(lt),{key:3},{default:E(()=>[W(" on "),M(w(at),{style:{width:"200px"},value:Object.values(w(dt))[parseInt(o.value.weekday)],"onUpdate:value":f},{default:E(()=>[(x(!0),ye(Ie,null,Pe(w(dt),(v,D)=>(x(),L(w(ot),{key:D,value:D,selected:v===Object.values(w(dt))[parseInt(d.value.weekday)]},{default:E(()=>[W(Ce(v),1)]),_:2},1032,["value","selected"]))),128))]),_:1},8,["value"]),W(" at "),M(w(ut),{value:n.value,format:"HH:mm","allow-clear":!1,"onUpdate:value":m},null,8,["value"]),W(" UTC ")]),_:1})):o.value.periodicity==="monthly"?(x(),L(w(lt),{key:4},{default:E(()=>[W(" on "),M(w(at),{style:{width:"60px"},value:o.value.day,"onUpdate:value":p},{default:E(()=>[(x(),ye(Ie,null,Pe(31,v=>M(w(ot),{key:v,value:v},{default:E(()=>[W(Ce(v),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"]),W(" at "),M(w(ut),{value:n.value,format:"HH:mm","allow-clear":!1,"onUpdate:value":m},null,8,["value"]),W(" UTC ")]),_:1})):oe("",!0)]),_:1},8,["help","validate-status"])],64))}}),ya=We({__name:"NextRuns",props:{crontab:{}},setup(t){const e=t,r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=ge(()=>new Intl.DateTimeFormat("en-US",{dateStyle:"full",timeStyle:"long",timeZone:r})),s=ge(()=>{const a=kn.parseExpression(et(e.crontab),{tz:"UTC"}),u=[];for(let o=0;o<8;o++)u.push(a.next().toDate());return u}),i=ge(()=>Tn(et(e.crontab)));return(a,u)=>(x(),L(w(Gn),{direction:"vertical",style:{width:"100%"}},{default:E(()=>[M(w(wr),{level:3},{default:E(()=>[W("Next Runs")]),_:1}),i.value?(x(),L(w(jn),{key:0,size:"small",bordered:""},{default:E(()=>[(x(!0),ye(Ie,null,Pe(s.value,(o,l)=>(x(),L(w(Jn),{key:l},{default:E(()=>[W(Ce(n.value.format(o)),1)]),_:2},1024))),128))]),_:1})):oe("",!0)]),_:1}))}}),pa=We({__name:"JobSettings",props:{job:{}},setup(t){const r=te(t.job),n=$n(Sn(r.value.schedule)),s=i=>{n.minute==i.minute&&n.hour==i.hour&&n.day==i.day&&n.month==i.month&&n.weekday==i.weekday||(n.minute=i.minute,n.hour=i.hour,n.day=i.day,n.month=i.month,n.weekday=i.weekday,r.value.schedule=et(n))};return(i,a)=>(x(),L(w(An),{class:"schedule-editor",layout:"vertical",style:{"padding-bottom":"50px"}},{default:E(()=>[M(w(St),{label:"Name",required:""},{default:E(()=>[M(w(Tt),{value:r.value.title,"onUpdate:value":a[0]||(a[0]=u=>r.value.title=u)},null,8,["value"])]),_:1}),M(Mn,{runtime:r.value},null,8,["runtime"]),M(w(wr),{level:3},{default:E(()=>[W("Schedule")]),_:1}),M(ma,{value:n,"onUpdate:value":s},null,8,["value"]),M(ya,{crontab:n},null,8,["crontab"])]),_:1}))}}),ga={style:{width:"100%",display:"flex","flex-direction":"column"}},wa=We({__name:"JobTester",props:{job:{},executionConfig:{},disabledWarning:{}},setup(t,{expose:e}){const r=t,n=te(!1);async function s(){n.value=!0;try{r.executionConfig.attached?await r.job.run():await r.job.test()}finally{n.value=!1}}return e({test:s}),(i,a)=>(x(),ye("div",ga,[M(Bn,{loading:n.value,style:{"max-width":"350px"},disabled:i.disabledWarning,onClick:s,onSave:a[0]||(a[0]=u=>i.job.save())},null,8,["loading","disabled"])]))}}),co=We({__name:"JobEditor",setup(t){const e=Un(),r=Zn(),n=te(null);function s(){e.push({name:"stages"})}const i=te(null),a=te("source-code"),u=te("preview");function o(){var d;if(!m.value)return;const p=m.value.job.codeContent;(d=i.value)==null||d.updateLocalEditorCode(p)}const l=te({attached:!1,stageRunId:null,pendingFork:!1,isInitial:!0}),c=p=>l.value={...l.value,attached:!!p},g=ge(()=>{var p;return(p=m.value)!=null&&p.job.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:null}),{result:m}=Vn(()=>Promise.all([Pn.get(),Yn.get(r.params.id)]).then(([p,d])=>Rn({workspace:p,job:d}))),f=Cn.create();return(p,d)=>(x(),L(_n,null,zn({navbar:E(()=>[w(m)?(x(),L(w(Kn),{key:0,title:w(m).job.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:s},{extra:E(()=>[M(Qn,{"editing-model":w(m).job},null,8,["editing-model"])]),_:1},8,["title"])):oe("",!0)]),content:E(()=>[w(m)?(x(),L(bn,{key:0},{left:E(()=>[M(w(Ut),{"active-key":a.value,"onUpdate:activeKey":d[0]||(d[0]=T=>a.value=T)},{rightExtra:E(()=>[M(Fn,{model:w(m).job,onSave:o},null,8,["model"])]),default:E(()=>[M(w(ct),{key:"source-code",tab:"Source code"}),M(w(ct),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"]),a.value==="source-code"?(x(),L(xn,{key:0,script:w(m).job,workspace:w(m).workspace},null,8,["script","workspace"])):oe("",!0),w(m).job&&a.value==="settings"?(x(),L(pa,{key:1,job:w(m).job},null,8,["job"])):oe("",!0)]),right:E(()=>[M(w(Ut),{"active-key":u.value,"onUpdate:activeKey":d[1]||(d[1]=T=>u.value=T)},{rightExtra:E(()=>[M(w(At),{align:"center",gap:"middle"},{default:E(()=>[M(w(At),{gap:"small"},{default:E(()=>[M(w(Hn),null,{default:E(()=>[W(Ce(l.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),M(w(qn),{checked:l.value.attached,"onUpdate:checked":c},null,8,["checked"])]),_:1})]),_:1})]),default:E(()=>[M(w(ct),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),w(m).job?(x(),L(wa,{key:0,ref_key:"tester",ref:n,"execution-config":l.value,job:w(m).job,"disabled-warning":g.value},null,8,["execution-config","job","disabled-warning"])):oe("",!0)]),_:1})):oe("",!0)]),_:2},[w(m)?{name:"footer",fn:E(()=>[M(In,{"stage-type":"jobs",stage:w(m).job,"log-service":w(f),workspace:w(m).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{co as default}; -//# sourceMappingURL=JobEditor.c222ee56.js.map +//# sourceMappingURL=JobEditor.aaa65932.js.map diff --git a/abstra_statics/dist/assets/Live.d7f6b0f3.js b/abstra_statics/dist/assets/Live.ba8612ae.js similarity index 81% rename from abstra_statics/dist/assets/Live.d7f6b0f3.js rename to abstra_statics/dist/assets/Live.ba8612ae.js index d52955179..d1c5fce11 100644 --- a/abstra_statics/dist/assets/Live.d7f6b0f3.js +++ b/abstra_statics/dist/assets/Live.ba8612ae.js @@ -1,2 +1,2 @@ -import{C as P}from"./CrudView.e4956a79.js";import{a as U}from"./asyncComputed.d0f14ed3.js";import{d as D,W as F,aq as V,u as t,o as u,X as C,aR as z,ee as L,c as I,w as s,b as o,aF as l,ec as x,d9 as k,cN as G,bx as M,$ as E,ed as q,f as H,a as A,bS as N,df as W,da as S,d8 as T,R as X,d3 as Y,f1 as J,db as K,cG as O}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{g as Q,B as Z,a as tt}from"./datetime.269334b3.js";import{P as et}from"./project.7817fdd7.js";import"./tables.e9d41f69.js";import{C as st,r as B}from"./router.87582bcc.js";import{u as ot}from"./polling.ce5b4e64.js";import{_ as at,E as rt}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.f2f9cb8f.js";import{G as it}from"./PhArrowCounterClockwise.vue.548df89b.js";import{F as R}from"./PhArrowSquareOut.vue.340970aa.js";import{G as nt}from"./PhChats.vue.3f8c120c.js";import{I as lt}from"./PhCopySimple.vue.39f63820.js";import{F as dt}from"./PhRocketLaunch.vue.82bfbb41.js";import{A as ct}from"./index.5cb791be.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./LoadingOutlined.6c0b95d8.js";(function(){try{var _=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[i]="ae9ad19d-7806-4912-87d5-12ae8892fd0a",_._sentryDebugIdIdentifier="sentry-dbid-ae9ad19d-7806-4912-87d5-12ae8892fd0a")}catch{}})();class g{constructor(i,d,f,m){this.major=i,this.minor=d,this.patch=f,this.dev=m}static from(i){if(i===null)return new g(0,0,0);const d=/^(\d+\.\d+\.\d+)(.dev(\d+))?$/,f=i.match(d);if(!f)return new g(0,0,0);const[,m,,w]=f,[h,c,v]=m.split(".").map(Number),y=w?Number(w):void 0;return isNaN(h)||isNaN(c)||isNaN(v)?new g(0,0,0):y&&isNaN(y)?new g(0,0,0):new g(h,c,v,y)}gte(i){return this.major!==i.major?this.major>=i.major:this.minor!==i.minor?this.minor>=i.minor:this.patch>=i.patch}get version(){const i=this.dev?`.dev${this.dev}`:"";return`${this.major}.${this.minor}.${this.patch}${i}`}}const pt=g.from("2.16.10"),ut={key:0,class:"flex-row"},ft={key:1,class:"flex-row"},mt={key:2,class:"flex-row"},gt=D({__name:"ExecutionsShort",props:{stageId:{},projectId:{}},emits:["select"],setup(_,{emit:i}){const d=_,f=new rt,{result:m,refetch:w,loading:h}=U(async()=>{const{executions:e}=await f.list({projectId:d.projectId,stageId:d.stageId,limit:6});return e}),c=e=>{i("select",e)},v=e=>Q(e,{weekday:void 0}),{startPolling:y,endPolling:$}=ot({task:w,interval:15e3});return F(()=>y()),V(()=>$()),(e,n)=>t(m)?(u(),C("div",ut,[(u(!0),C(z,null,L(t(m),r=>(u(),I(t(G),{key:r.id,title:v(r.createdAt),onClick:a=>c(r)},{content:s(()=>[o(t(k),null,{default:s(()=>[l("Status: "+x(r.status),1)]),_:2},1024),o(t(k),null,{default:s(()=>[l("Duration: "+x(r.duration_seconds),1)]),_:2},1024),o(t(k),null,{default:s(()=>[l("Build: "+x(r.buildId.slice(0,6)),1)]),_:2},1024)]),default:s(()=>[o(at,{status:r.status},null,8,["status"])]),_:2},1032,["title","onClick"]))),128))])):t(h)?(u(),C("div",ft,[o(t(M))])):(u(),C("div",mt,"None"))}});const _t=E(gt,[["__scopeId","data-v-9d19fd00"]]),ht={style:{"max-width":"250px",overflow:"hidden","text-overflow":"ellipsis ellipsis","white-space":"nowrap"}},yt={key:1},bt={class:"desc",style:{"margin-bottom":"80px",padding:"10px 30px","background-color":"#f6f6f6","border-radius":"5px"}},kt=D({__name:"Live",setup(_){const d=q().params.projectId,f=()=>{var n;const e=(n=c.value)==null?void 0:n.project.getUrl();e&&window.open(e,"_blank")},m=()=>{var b,p,j;const e=(p=(b=c.value)==null?void 0:b.buildSpec)==null?void 0:p.abstraVersion;if(!e)return;let n="threads";g.from(e).gte(pt)||(n="_player/"+n);const a=((j=c.value)==null?void 0:j.project.getUrl())+n;window.open(a,"_blank")},w=e=>{B.push({name:"logs",params:{projectId:d},query:{stageId:e.stageId,executionId:e.id}})},{loading:h,result:c}=U(async()=>{const n=(await Z.list(d)).find(b=>b.latest);if(!n)return null;const[r,a]=await Promise.all([tt.get(n.id),et.get(d)]);return{buildSpec:r,project:a}}),v=e=>{var a;if(!("path"in e)||!e.path)return;const n=e.type==="form"?`/${e.path}`:`/_hooks/${e.path}`,r=(a=c.value)==null?void 0:a.project.getUrl(n);!r||(navigator.clipboard.writeText(r),O.success("Copied URL to clipboard"))},y=e=>e.type=="form"?`/${e.path}`:e.type=="hook"?`/_hooks/${e.path}`:e.type=="job"?`${e.schedule}`:"",$=H(()=>{var r;const e=[{name:"Type",align:"left"},{name:"Title",align:"left"},{name:"Trigger",align:"left"},{name:"Last Runs"},{name:"",align:"right"}],n=(r=c.value)==null?void 0:r.buildSpec;return n?{columns:e,rows:n.runtimes.map(a=>({key:a.id,cells:[{type:"tag",text:a.type.charAt(0).toUpperCase()+a.type.slice(1),tagColor:"default"},{type:"slot",key:"title",payload:{runtime:a}},{type:"slot",key:"trigger",payload:{runtime:a}},{type:"slot",key:"last-runs",payload:{runtime:a}},{type:"actions",actions:[{icon:it,label:"View script logs",onClick:()=>B.push({name:"logs",params:{projectId:d},query:{stageId:a.id}})},{icon:lt,label:"Copy URL",onClick:()=>v(a),hide:!["form","hook"].includes(a.type)}]}]}))}:{columns:e,rows:[]}});return(e,n)=>{var r,a,b;return t(h)||((b=(a=(r=t(c))==null?void 0:r.buildSpec)==null?void 0:a.runtimes.length)!=null?b:0)>0?(u(),I(P,{key:0,"empty-title":"","entity-name":"build",description:"Access and monitor your project's current scripts here.",table:$.value,loading:t(h),title:"Live View"},{description:s(()=>[o(t(W),{gap:"middle",style:{"margin-top":"12px"}},{default:s(()=>[o(t(N),{onClick:f},{default:s(()=>[l(" Home"),o(t(R),{class:"icon",size:16})]),_:1}),o(t(N),{onClick:m},{default:s(()=>[l(" Threads"),o(t(R),{class:"icon",size:16})]),_:1})]),_:1})]),title:s(({payload:p})=>{var j;return[A("div",ht,[p.runtime.type!="form"?(u(),I(t(S),{key:0},{default:s(()=>[l(x(p.runtime.title),1)]),_:2},1024)):p.runtime.type=="form"?(u(),I(t(T),{key:1,href:(j=t(c))==null?void 0:j.project.getUrl(p.runtime.path),target:"_blank"},{default:s(()=>[l(x(p.runtime.title),1)]),_:2},1032,["href"])):X("",!0)])]}),"last-runs":s(({payload:p})=>[o(_t,{"stage-id":p.runtime.id,"project-id":t(d),onSelect:w},null,8,["stage-id","project-id"])]),trigger:s(({payload:p})=>[o(t(Y),{color:"default",class:"ellipsis"},{default:s(()=>[l(x(y(p.runtime)),1)]),_:2},1024)]),_:1},8,["table","loading"])):(u(),C("section",yt,[A("div",bt,[o(t(K),{style:{display:"flex","align-items":"center",gap:"5px"},level:3},{default:s(()=>[o(t(J),{size:"30"}),l(" Getting started ")]),_:1}),o(t(k),null,{default:s(()=>[l(" Check out the documentation: "),o(t(T),{href:"https://docs.abstra.app",target:"_blank"},{default:s(()=>[l("Abstra Docs")]),_:1})]),_:1}),o(t(k),null,{default:s(()=>[l(" Install the editor using pip: "),o(t(S),{code:"",copyable:""},{default:s(()=>[l("pip install abstra")]),_:1})]),_:1}),o(t(k),null,{default:s(()=>[l(" Run the editor: "),o(t(S),{code:"",copyable:""},{default:s(()=>[l("abstra editor my-new-project")]),_:1})]),_:1}),o(t(k),null,{default:s(()=>[l(" Feeling lost? "),o(t(N),{target:"_blank",type:"default",size:"small",onClick:n[0]||(n[0]=()=>t(st).showNewMessage("I need help getting started with Abstra"))},{default:s(()=>[o(t(nt))]),_:1})]),_:1})]),o(t(ct),{status:"info",title:"Waiting for your first deploy!","sub-title":"Your live stages will appear here once you make your first deploy"},{icon:s(()=>[o(t(dt),{size:"100",color:"#d14056"})]),_:1})]))}}});const Wt=E(kt,[["__scopeId","data-v-89f52d8b"]]);export{Wt as default}; -//# sourceMappingURL=Live.d7f6b0f3.js.map +import{C as P}from"./CrudView.b65b5675.js";import{a as U}from"./asyncComputed.295e9e03.js";import{d as D,W as F,aq as V,u as t,o as u,X as C,aR as z,ee as L,c as I,w as s,b as o,aF as l,ec as x,d9 as k,cN as G,bx as M,$ as E,ed as q,f as H,a as A,bS as N,df as W,da as S,d8 as T,R as X,d3 as Y,f1 as J,db as K,cG as O}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{g as Q,B as Z,a as tt}from"./datetime.744b5391.js";import{P as et}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import{C as st,r as B}from"./router.59916c0d.js";import{u as ot}from"./polling.4e30c061.js";import{_ as at,E as rt}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.19012e78.js";import{G as it}from"./PhArrowCounterClockwise.vue.8fbc5885.js";import{F as R}from"./PhArrowSquareOut.vue.188b81dc.js";import{G as nt}from"./PhChats.vue.aa1113d9.js";import{I as lt}from"./PhCopySimple.vue.992b99ff.js";import{F as dt}from"./PhRocketLaunch.vue.c412030e.js";import{A as ct}from"./index.30885e4b.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./LoadingOutlined.dad6ee6e.js";(function(){try{var _=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[i]="3212e4d0-9c7d-4605-afac-8ca8feb192dd",_._sentryDebugIdIdentifier="sentry-dbid-3212e4d0-9c7d-4605-afac-8ca8feb192dd")}catch{}})();class g{constructor(i,d,f,m){this.major=i,this.minor=d,this.patch=f,this.dev=m}static from(i){if(i===null)return new g(0,0,0);const d=/^(\d+\.\d+\.\d+)(.dev(\d+))?$/,f=i.match(d);if(!f)return new g(0,0,0);const[,m,,w]=f,[h,c,v]=m.split(".").map(Number),y=w?Number(w):void 0;return isNaN(h)||isNaN(c)||isNaN(v)?new g(0,0,0):y&&isNaN(y)?new g(0,0,0):new g(h,c,v,y)}gte(i){return this.major!==i.major?this.major>=i.major:this.minor!==i.minor?this.minor>=i.minor:this.patch>=i.patch}get version(){const i=this.dev?`.dev${this.dev}`:"";return`${this.major}.${this.minor}.${this.patch}${i}`}}const pt=g.from("2.16.10"),ut={key:0,class:"flex-row"},ft={key:1,class:"flex-row"},mt={key:2,class:"flex-row"},gt=D({__name:"ExecutionsShort",props:{stageId:{},projectId:{}},emits:["select"],setup(_,{emit:i}){const d=_,f=new rt,{result:m,refetch:w,loading:h}=U(async()=>{const{executions:e}=await f.list({projectId:d.projectId,stageId:d.stageId,limit:6});return e}),c=e=>{i("select",e)},v=e=>Q(e,{weekday:void 0}),{startPolling:y,endPolling:$}=ot({task:w,interval:15e3});return F(()=>y()),V(()=>$()),(e,n)=>t(m)?(u(),C("div",ut,[(u(!0),C(z,null,L(t(m),r=>(u(),I(t(G),{key:r.id,title:v(r.createdAt),onClick:a=>c(r)},{content:s(()=>[o(t(k),null,{default:s(()=>[l("Status: "+x(r.status),1)]),_:2},1024),o(t(k),null,{default:s(()=>[l("Duration: "+x(r.duration_seconds),1)]),_:2},1024),o(t(k),null,{default:s(()=>[l("Build: "+x(r.buildId.slice(0,6)),1)]),_:2},1024)]),default:s(()=>[o(at,{status:r.status},null,8,["status"])]),_:2},1032,["title","onClick"]))),128))])):t(h)?(u(),C("div",ft,[o(t(M))])):(u(),C("div",mt,"None"))}});const _t=E(gt,[["__scopeId","data-v-9d19fd00"]]),ht={style:{"max-width":"250px",overflow:"hidden","text-overflow":"ellipsis ellipsis","white-space":"nowrap"}},yt={key:1},bt={class:"desc",style:{"margin-bottom":"80px",padding:"10px 30px","background-color":"#f6f6f6","border-radius":"5px"}},kt=D({__name:"Live",setup(_){const d=q().params.projectId,f=()=>{var n;const e=(n=c.value)==null?void 0:n.project.getUrl();e&&window.open(e,"_blank")},m=()=>{var b,p,j;const e=(p=(b=c.value)==null?void 0:b.buildSpec)==null?void 0:p.abstraVersion;if(!e)return;let n="threads";g.from(e).gte(pt)||(n="_player/"+n);const a=((j=c.value)==null?void 0:j.project.getUrl())+n;window.open(a,"_blank")},w=e=>{B.push({name:"logs",params:{projectId:d},query:{stageId:e.stageId,executionId:e.id}})},{loading:h,result:c}=U(async()=>{const n=(await Z.list(d)).find(b=>b.latest);if(!n)return null;const[r,a]=await Promise.all([tt.get(n.id),et.get(d)]);return{buildSpec:r,project:a}}),v=e=>{var a;if(!("path"in e)||!e.path)return;const n=e.type==="form"?`/${e.path}`:`/_hooks/${e.path}`,r=(a=c.value)==null?void 0:a.project.getUrl(n);!r||(navigator.clipboard.writeText(r),O.success("Copied URL to clipboard"))},y=e=>e.type=="form"?`/${e.path}`:e.type=="hook"?`/_hooks/${e.path}`:e.type=="job"?`${e.schedule}`:"",$=H(()=>{var r;const e=[{name:"Type",align:"left"},{name:"Title",align:"left"},{name:"Trigger",align:"left"},{name:"Last Runs"},{name:"",align:"right"}],n=(r=c.value)==null?void 0:r.buildSpec;return n?{columns:e,rows:n.runtimes.map(a=>({key:a.id,cells:[{type:"tag",text:a.type.charAt(0).toUpperCase()+a.type.slice(1),tagColor:"default"},{type:"slot",key:"title",payload:{runtime:a}},{type:"slot",key:"trigger",payload:{runtime:a}},{type:"slot",key:"last-runs",payload:{runtime:a}},{type:"actions",actions:[{icon:it,label:"View script logs",onClick:()=>B.push({name:"logs",params:{projectId:d},query:{stageId:a.id}})},{icon:lt,label:"Copy URL",onClick:()=>v(a),hide:!["form","hook"].includes(a.type)}]}]}))}:{columns:e,rows:[]}});return(e,n)=>{var r,a,b;return t(h)||((b=(a=(r=t(c))==null?void 0:r.buildSpec)==null?void 0:a.runtimes.length)!=null?b:0)>0?(u(),I(P,{key:0,"empty-title":"","entity-name":"build",description:"Access and monitor your project's current scripts here.",table:$.value,loading:t(h),title:"Live View"},{description:s(()=>[o(t(W),{gap:"middle",style:{"margin-top":"12px"}},{default:s(()=>[o(t(N),{onClick:f},{default:s(()=>[l(" Home"),o(t(R),{class:"icon",size:16})]),_:1}),o(t(N),{onClick:m},{default:s(()=>[l(" Threads"),o(t(R),{class:"icon",size:16})]),_:1})]),_:1})]),title:s(({payload:p})=>{var j;return[A("div",ht,[p.runtime.type!="form"?(u(),I(t(S),{key:0},{default:s(()=>[l(x(p.runtime.title),1)]),_:2},1024)):p.runtime.type=="form"?(u(),I(t(T),{key:1,href:(j=t(c))==null?void 0:j.project.getUrl(p.runtime.path),target:"_blank"},{default:s(()=>[l(x(p.runtime.title),1)]),_:2},1032,["href"])):X("",!0)])]}),"last-runs":s(({payload:p})=>[o(_t,{"stage-id":p.runtime.id,"project-id":t(d),onSelect:w},null,8,["stage-id","project-id"])]),trigger:s(({payload:p})=>[o(t(Y),{color:"default",class:"ellipsis"},{default:s(()=>[l(x(y(p.runtime)),1)]),_:2},1024)]),_:1},8,["table","loading"])):(u(),C("section",yt,[A("div",bt,[o(t(K),{style:{display:"flex","align-items":"center",gap:"5px"},level:3},{default:s(()=>[o(t(J),{size:"30"}),l(" Getting started ")]),_:1}),o(t(k),null,{default:s(()=>[l(" Check out the documentation: "),o(t(T),{href:"https://docs.abstra.app",target:"_blank"},{default:s(()=>[l("Abstra Docs")]),_:1})]),_:1}),o(t(k),null,{default:s(()=>[l(" Install the editor using pip: "),o(t(S),{code:"",copyable:""},{default:s(()=>[l("pip install abstra")]),_:1})]),_:1}),o(t(k),null,{default:s(()=>[l(" Run the editor: "),o(t(S),{code:"",copyable:""},{default:s(()=>[l("abstra editor my-new-project")]),_:1})]),_:1}),o(t(k),null,{default:s(()=>[l(" Feeling lost? "),o(t(N),{target:"_blank",type:"default",size:"small",onClick:n[0]||(n[0]=()=>t(st).showNewMessage("I need help getting started with Abstra"))},{default:s(()=>[o(t(nt))]),_:1})]),_:1})]),o(t(ct),{status:"info",title:"Waiting for your first deploy!","sub-title":"Your live stages will appear here once you make your first deploy"},{icon:s(()=>[o(t(dt),{size:"100",color:"#d14056"})]),_:1})]))}}});const Wt=E(kt,[["__scopeId","data-v-89f52d8b"]]);export{Wt as default}; +//# sourceMappingURL=Live.ba8612ae.js.map diff --git a/abstra_statics/dist/assets/LoadingContainer.01cf1024.js b/abstra_statics/dist/assets/LoadingContainer.01cf1024.js deleted file mode 100644 index d4e240789..000000000 --- a/abstra_statics/dist/assets/LoadingContainer.01cf1024.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as a,o,X as s,b as c,u as d,bx as r,$ as _}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3290ce8e-110f-4afc-a0cc-155e81cde56e",e._sentryDebugIdIdentifier="sentry-dbid-3290ce8e-110f-4afc-a0cc-155e81cde56e")}catch{}})();const i={class:"centered"},f=a({__name:"LoadingContainer",setup(e){return(n,t)=>(o(),s("div",i,[c(d(r))]))}});const u=_(f,[["__scopeId","data-v-52e6209a"]]);export{u as L}; -//# sourceMappingURL=LoadingContainer.01cf1024.js.map diff --git a/abstra_statics/dist/assets/LoadingContainer.cc61e2fd.js b/abstra_statics/dist/assets/LoadingContainer.cc61e2fd.js new file mode 100644 index 000000000..8eb1de287 --- /dev/null +++ b/abstra_statics/dist/assets/LoadingContainer.cc61e2fd.js @@ -0,0 +1,2 @@ +import{d,o as t,X as o,b as s,u as r,bx as _,$ as c}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="adbdc246-4a36-4d9e-ae37-e63ad92fe8b8",e._sentryDebugIdIdentifier="sentry-dbid-adbdc246-4a36-4d9e-ae37-e63ad92fe8b8")}catch{}})();const i={class:"centered"},f=d({__name:"LoadingContainer",setup(e){return(n,a)=>(t(),o("div",i,[s(r(_))]))}});const u=c(f,[["__scopeId","data-v-52e6209a"]]);export{u as L}; +//# sourceMappingURL=LoadingContainer.cc61e2fd.js.map diff --git a/abstra_statics/dist/assets/LoadingOutlined.6c0b95d8.js b/abstra_statics/dist/assets/LoadingOutlined.6c0b95d8.js deleted file mode 100644 index cae7e37cd..000000000 --- a/abstra_statics/dist/assets/LoadingOutlined.6c0b95d8.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as o,eh as d,eM as u}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ee4e1352-1214-438f-902f-f00a42851f57",e._sentryDebugIdIdentifier="sentry-dbid-ee4e1352-1214-438f-902f-f00a42851f57")}catch{}})();function f(e){for(var t=1;t{await n.signUp();const{redirect:s,...r}=o.query;if(s){await t.push({path:s,query:r,params:o.params});return}t.push({name:"playerHome",query:r})};return(s,r)=>(b(),u("div",y,[f(c,{onDone:a})]))}});const q=m(l,[["__scopeId","data-v-5b8c1f5f"]]);export{q as default}; +//# sourceMappingURL=Login.b8c7860c.js.map diff --git a/abstra_statics/dist/assets/Login.9d92c780.js b/abstra_statics/dist/assets/Login.cd84aff7.js similarity index 72% rename from abstra_statics/dist/assets/Login.9d92c780.js rename to abstra_statics/dist/assets/Login.cd84aff7.js index 1bd0827c2..33f992deb 100644 --- a/abstra_statics/dist/assets/Login.9d92c780.js +++ b/abstra_statics/dist/assets/Login.cd84aff7.js @@ -1,2 +1,2 @@ -import{L as T}from"./CircularLoading.b40e14c8.js";import{d as x,e as q,o as c,X as m,a as _,b as t,ec as s,u as a,eV as n,c as w,w as u,bK as b,eU as I,cy as L,aF as f,bS as p,cx as R,R as B,$ as A,eq as C,ed as D,f as K,dH as U}from"./vue-router.4c13f3d4.js";import{L as E}from"./Logo.1a35ae4d.js";import{T as M}from"./router.87582bcc.js";import{a as h,E as S}from"./gateway.e77556e5.js";import{M as V}from"./member.557bc064.js";import"./tables.e9d41f69.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[o]="8736a7c6-490e-43bd-ad78-044699143a51",l._sentryDebugIdIdentifier="sentry-dbid-8736a7c6-490e-43bd-ad78-044699143a51")}catch{}})();const $={class:"form"},F={class:"header"},N={class:"description"},O={class:"description"},j={class:"footer"},z={key:2,class:"loading"},H=x({__name:"Passwordless",emits:["done"],setup(l,{emit:o}){const e=q({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0});let i;const r=async()=>{e.value.stage="loading";try{await h.authenticate(e.value.info.email),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(i),i=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(i)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}},y=async()=>{var v;if(!!((v=e.value.info)!=null&&v.email)){e.value.stage="loading";try{const d=await h.verify(e.value.info.email,e.value.token);if(!d)throw new Error("[Passwordless] Login did not return an user");M.trackSession(),o("done",d),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},k=()=>{e.value.info&&r()},P=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(v,d)=>(c(),m("div",$,[_("div",F,[t(E,{"hide-text":"",size:"large"}),_("h2",null,s(a(n).translate("i18n_auth_validate_your_email_login")),1)]),e.value.stage==="collect-info"?(c(),w(a(R),{key:0,class:"section"},{default:u(()=>[_("div",N,s(a(n).translate("i18n_auth_info_description")),1),t(a(L),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(n).translate("i18n_auth_info_invalid_email"):""},{default:u(()=>[t(a(b),{value:e.value.info.email,"onUpdate:value":d[0]||(d[0]=g=>e.value.info.email=g),placeholder:"Work email address",onKeyup:I(r,["enter"])},null,8,["value","onKeyup"])]),_:1},8,["validate-status","help"]),t(a(p),{type:"primary",onClick:r},{default:u(()=>[f(s(a(n).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(c(),w(a(R),{key:1,class:"section"},{default:u(()=>[_("div",O,s(a(n).translate("i18n_auth_token_label",null,e.value.info)),1),t(a(L),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(n).translate("i18n_auth_token_invalid"):""},{default:u(()=>[t(a(b),{value:e.value.token,"onUpdate:value":d[1]||(d[1]=g=>e.value.token=g),type:"text",placeholder:"Type your verification code",onKeyup:I(y,["enter"])},null,8,["value","onKeyup"])]),_:1},8,["validate-status","help"]),t(a(p),{type:"primary",onClick:y},{default:u(()=>[f(s(a(n).translate("i18n_auth_token_verify_email")),1)]),_:1}),t(a(p),{onClick:P},{default:u(()=>[f(s(a(n).translate("i18n_auth_edit_email")),1)]),_:1}),t(a(p),{disabled:!!e.value.secsToAllowResend,onClick:k},{default:u(()=>[f(s(a(n).translate("i18n_auth_token_resend_email"))+" ("+s(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),_("div",j,s(a(n).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(c(),m("div",z,[t(T)])):B("",!0)]))}});const W=A(H,[["__scopeId","data-v-0a23904b"]]),X=async()=>{const l=await V.onboarding(),o=h.getAuthor();if(l.shouldBeOnboarded&&o){const e=`${S.onboarding}/schedule`,i=new URLSearchParams({token:o.jwt}),r=e+"?"+i;window.location.replace(r)}},G={key:0,class:"login"},J={key:1,class:"loading"},Q=x({__name:"Login",setup(l){const o=C(),e=D();async function i(){await X(),e.query.redirect?await o.push({path:e.query.redirect,query:{...e.query,redirect:e.query["prev-redirect"],"prev-redirect":void 0}}):o.push({name:"home"})}const r=K(()=>!h.getAuthor());return U(()=>{r.value||i()}),(y,k)=>r.value?(c(),m("div",G,[t(W,{onDone:i})])):(c(),m("div",J,[t(T)]))}});const re=A(Q,[["__scopeId","data-v-e4e9b925"]]);export{re as default}; -//# sourceMappingURL=Login.9d92c780.js.map +import{L as T}from"./CircularLoading.b920c29a.js";import{d as x,e as q,o as c,X as m,a as _,b as t,ec as s,u as a,eV as n,c as k,w as u,bK as w,eU as I,cy as L,aF as f,bS as p,cx as R,R as B,$ as A,eq as C,ed as D,f as K,dH as U}from"./vue-router.3fd92176.js";import{L as E}from"./Logo.6e947620.js";import{T as M}from"./router.59916c0d.js";import{a as h,E as S}from"./gateway.c564a1cf.js";import{M as V}from"./member.863895af.js";import"./tables.3aa20dd6.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[o]="e0fd65a4-e8a4-4dfa-8218-16b1f7b5bb43",l._sentryDebugIdIdentifier="sentry-dbid-e0fd65a4-e8a4-4dfa-8218-16b1f7b5bb43")}catch{}})();const $={class:"form"},F={class:"header"},N={class:"description"},O={class:"description"},j={class:"footer"},z={key:2,class:"loading"},H=x({__name:"Passwordless",emits:["done"],setup(l,{emit:o}){const e=q({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0});let i;const r=async()=>{e.value.stage="loading";try{await h.authenticate(e.value.info.email),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(i),i=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(i)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}},y=async()=>{var v;if(!!((v=e.value.info)!=null&&v.email)){e.value.stage="loading";try{const d=await h.verify(e.value.info.email,e.value.token);if(!d)throw new Error("[Passwordless] Login did not return an user");M.trackSession(),o("done",d),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},b=()=>{e.value.info&&r()},P=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(v,d)=>(c(),m("div",$,[_("div",F,[t(E,{"hide-text":"",size:"large"}),_("h2",null,s(a(n).translate("i18n_auth_validate_your_email_login")),1)]),e.value.stage==="collect-info"?(c(),k(a(R),{key:0,class:"section"},{default:u(()=>[_("div",N,s(a(n).translate("i18n_auth_info_description")),1),t(a(L),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(n).translate("i18n_auth_info_invalid_email"):""},{default:u(()=>[t(a(w),{value:e.value.info.email,"onUpdate:value":d[0]||(d[0]=g=>e.value.info.email=g),placeholder:"Work email address",onKeyup:I(r,["enter"])},null,8,["value","onKeyup"])]),_:1},8,["validate-status","help"]),t(a(p),{type:"primary",onClick:r},{default:u(()=>[f(s(a(n).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(c(),k(a(R),{key:1,class:"section"},{default:u(()=>[_("div",O,s(a(n).translate("i18n_auth_token_label",null,e.value.info)),1),t(a(L),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(n).translate("i18n_auth_token_invalid"):""},{default:u(()=>[t(a(w),{value:e.value.token,"onUpdate:value":d[1]||(d[1]=g=>e.value.token=g),type:"text",placeholder:"Type your verification code",onKeyup:I(y,["enter"])},null,8,["value","onKeyup"])]),_:1},8,["validate-status","help"]),t(a(p),{type:"primary",onClick:y},{default:u(()=>[f(s(a(n).translate("i18n_auth_token_verify_email")),1)]),_:1}),t(a(p),{onClick:P},{default:u(()=>[f(s(a(n).translate("i18n_auth_edit_email")),1)]),_:1}),t(a(p),{disabled:!!e.value.secsToAllowResend,onClick:b},{default:u(()=>[f(s(a(n).translate("i18n_auth_token_resend_email"))+" ("+s(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),_("div",j,s(a(n).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(c(),m("div",z,[t(T)])):B("",!0)]))}});const W=A(H,[["__scopeId","data-v-0a23904b"]]),X=async()=>{const l=await V.onboarding(),o=h.getAuthor();if(l.shouldBeOnboarded&&o){const e=`${S.onboarding}/schedule`,i=new URLSearchParams({token:o.jwt}),r=e+"?"+i;window.location.replace(r)}},G={key:0,class:"login"},J={key:1,class:"loading"},Q=x({__name:"Login",setup(l){const o=C(),e=D();async function i(){await X(),e.query.redirect?await o.push({path:e.query.redirect,query:{...e.query,redirect:e.query["prev-redirect"],"prev-redirect":void 0}}):o.push({name:"home"})}const r=K(()=>!h.getAuthor());return U(()=>{r.value||i()}),(y,b)=>r.value?(c(),m("div",G,[t(W,{onDone:i})])):(c(),m("div",J,[t(T)]))}});const re=A(Q,[["__scopeId","data-v-e4e9b925"]]);export{re as default}; +//# sourceMappingURL=Login.cd84aff7.js.map diff --git a/abstra_statics/dist/assets/Login.fe553e92.js b/abstra_statics/dist/assets/Login.fe553e92.js deleted file mode 100644 index 0185295f7..000000000 --- a/abstra_statics/dist/assets/Login.fe553e92.js +++ /dev/null @@ -1,2 +0,0 @@ -import{_ as c}from"./Login.vue_vue_type_script_setup_true_lang.8e55196d.js";import{b as d}from"./workspaceStore.ae240ce8.js";import{d as i,eq as _,ed as p,X as u,b as f,o as m,$ as b}from"./vue-router.4c13f3d4.js";import"./CircularLoading.b40e14c8.js";import"./index.e5bdb21b.js";import"./PhArrowClockwise.vue.5c4db05c.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b991c72e-b272-4299-ae6d-2486d32c521c",e._sentryDebugIdIdentifier="sentry-dbid-b991c72e-b272-4299-ae6d-2486d32c521c")}catch{}})();const y={class:"runner"},l=i({__name:"Login",setup(e){const t=_(),o=p(),n=d(),a=async()=>{await n.signUp();const{redirect:s,...r}=o.query;if(s){await t.push({path:s,query:r,params:o.params});return}t.push({name:"playerHome",query:r})};return(s,r)=>(m(),u("div",y,[f(c,{onDone:a})]))}});const q=b(l,[["__scopeId","data-v-5b8c1f5f"]]);export{q as default}; -//# sourceMappingURL=Login.fe553e92.js.map diff --git a/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8de09e2d.js b/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8de09e2d.js new file mode 100644 index 000000000..e5a1856fd --- /dev/null +++ b/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8de09e2d.js @@ -0,0 +1,2 @@ +import{d as y,B as Z,f as v,o as s,X as i,Z as O,R as k,eb as z,a,W as T,b as g,w as P,u as c,aF as w,el as $,em as L,d8 as E,$ as b,eV as p,D as I,ec as f,c as A,aZ as x,eQ as S,eU as C}from"./vue-router.3fd92176.js";import{O as D,S as M,A as K}from"./workspaceStore.411ef1fe.js";import{L as H}from"./CircularLoading.b920c29a.js";import{A as B}from"./index.4fbbd10e.js";import{G as U}from"./PhArrowClockwise.vue.2725755a.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="fc5540df-814c-4696-971d-c25ce76603fa",o._sentryDebugIdIdentifier="sentry-dbid-fc5540df-814c-4696-971d-c25ce76603fa")}catch{}})();const G=["width","height","fill","transform"],R={key:0},W=a("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),j=[W],X={key:1},q=a("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),F=a("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),Q=[q,F],J={key:2},Y=a("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),ee=[Y],ae={key:3},te=a("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),oe=[te],se={key:4},ne=a("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),le=[ne],ie={key:5},re=a("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),de=[re],ce={name:"PhSpinner"},_e=y({...ce,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const n=o,e=Z("weight","regular"),r=Z("size","1em"),h=Z("color","currentColor"),m=Z("mirrored",!1),_=v(()=>{var d;return(d=n.weight)!=null?d:e}),t=v(()=>{var d;return(d=n.size)!=null?d:r}),u=v(()=>{var d;return(d=n.color)!=null?d:h}),l=v(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(d,V)=>(s(),i("svg",z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:t.value,height:t.value,fill:u.value,transform:l.value},d.$attrs),[O(d.$slots,"default"),_.value==="bold"?(s(),i("g",R,j)):_.value==="duotone"?(s(),i("g",X,Q)):_.value==="fill"?(s(),i("g",J,ee)):_.value==="light"?(s(),i("g",ae,oe)):_.value==="regular"?(s(),i("g",se,le)):_.value==="thin"?(s(),i("g",ie,de)):k("",!0)],16,G))}}),N=o=>($("data-v-b8567b17"),o=o(),L(),o),ue={class:"oidc-container"},pe=N(()=>a("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),he=N(()=>a("p",{class:"centered"},"Please complete the login process in the popup window.",-1)),fe={class:"centered"},me=y({__name:"Oidc",emits:["done"],setup(o,{emit:n}){const e=async()=>{if(!await new D().login())throw new Error("[OIDC] Login did not return an user");n("done")};return T(()=>e()),(r,h)=>(s(),i("div",ue,[g(c(_e),{size:60,style:{"margin-bottom":"50px"}},{default:P(()=>[pe]),_:1}),he,a("p",fe,[w(" If it has not appear automatically, please "),g(c(E),{onClick:e},{default:P(()=>[w("click here")]),_:1}),w(". ")])]))}});const ve=b(me,[["__scopeId","data-v-b8567b17"]]),ge=o=>($("data-v-dfdf2101"),o=o(),L(),o),ye={class:"auth-info"},ke={class:"auth-header"},Ze={class:"auth-label"},we={key:1,class:"description"},Ae=["onKeyup"],be={key:0,class:"span-error"},Me=ge(()=>a("div",{class:"spacer"},null,-1)),$e=y({__name:"AuthInfo",props:{invalid:{type:Boolean},locale:{}},emits:["sendAuthInfo"],setup(o,{emit:n}){const e=o,r={description:p.translate("i18n_local_auth_info_description",e.locale),button:p.translate("i18n_local_auth_info_authenticate",e.locale)},h={description:p.translate("i18n_auth_info_description",e.locale),button:p.translate("i18n_auth_info_send_code",e.locale)},m=v(()=>{var l;return(l=M.instance)==null?void 0:l.isLocal}),_=v(()=>{var l;return(l=M.instance)!=null&&l.isLocal?r:h}),t=I({email:""}),u=()=>{n("sendAuthInfo",t)};return(l,d)=>(s(),i("div",ye,[a("div",ke,[a("div",Ze,f(c(p).translate("i18n_auth_validate_your_email",l.locale)),1),m.value?(s(),A(c(B),{key:0,message:_.value.description,type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):(s(),i("div",we,f(_.value.description),1))]),x(a("input",{"onUpdate:modelValue":d[0]||(d[0]=V=>t.email=V),type:"email",placeholder:"Work email address",class:"input email-input",onKeyup:C(u,["enter"])},null,40,Ae),[[S,t.email]]),e.invalid?(s(),i("span",be,f(c(p).translate("i18n_auth_info_invalid_email",l.locale)),1)):k("",!0),Me,a("button",{class:"next-button",onClick:u},f(_.value.button),1)]))}});const Le=b($e,[["__scopeId","data-v-dfdf2101"]]),Ie=o=>($("data-v-9a2f7db8"),o=o(),L(),o),Ve={class:"auth-token"},Pe={class:"auth-label"},He=["onKeyup"],Te={key:1,class:"span-error"},xe={key:2,class:"span-error"},Se=Ie(()=>a("div",{class:"spacer"},null,-1)),Ce={class:"footer"},De=y({__name:"AuthToken",props:{email:{},invalid:{type:Boolean},expired:{type:Boolean},locale:{}},emits:["sendToken","restartAuth","resendToken"],setup(o,{emit:n}){const e=v(()=>{var t;return(t=M.instance)==null?void 0:t.isLocal}),r=I({token:""}),h=()=>{n("restartAuth")},m=()=>{n("resendToken")},_=()=>{n("sendToken",r.token)};return(t,u)=>(s(),i("div",Ve,[a("div",Pe,f(c(p).translate("i18n_auth_token_label",t.locale,{email:t.email})),1),e.value?(s(),A(c(B),{key:0,message:c(p).translate("i18n_auth_token_development_warning",t.locale),type:"warning","show-icon":"",style:{width:"100%","text-align":"left","margin-bottom":"20px"}},null,8,["message"])):k("",!0),x(a("input",{"onUpdate:modelValue":u[0]||(u[0]=l=>r.token=l),type:"text",placeholder:"Type your verification code",class:"input",onKeyup:C(_,["enter"])},null,40,He),[[S,r.token]]),t.expired?(s(),i("span",Te,f(c(p).translate("i18n_auth_token_expired",t.locale)),1)):k("",!0),t.invalid?(s(),i("span",xe,f(c(p).translate("i18n_auth_token_invalid",t.locale)),1)):k("",!0),Se,a("button",{class:"next-button",onClick:_},f(c(p).translate("i18n_auth_token_verify_email",t.locale)),1),a("button",{class:"secondary-button back",onClick:h},[g(c(U)),w(" "+f(c(p).translate("i18n_auth_edit_email",t.locale)),1)]),a("button",{class:"secondary-button back",onClick:m},f(c(p).translate("i18n_auth_token_resend_email",t.locale)),1),a("div",Ce,f(c(p).translate("i18n_auth_token_footer_alternative_email",t.locale)),1)]))}});const Be=b(De,[["__scopeId","data-v-9a2f7db8"]]),Ne={key:0,class:"form"},Oe={class:"form-wrapper"},ze={class:"loading"},Ee={key:1,class:"form"},Ke={class:"form-wrapper"},Ue={class:"widget"},Ge={key:2,class:"form"},Re={class:"form-wrapper"},We={class:"widget"},je={key:3,class:"form"},Xe={class:"form-wrapper"},qe={class:"loading"},Fe=y({__name:"Passwordless",props:{locale:{}},emits:["done"],setup(o,{emit:n}){const e=I({stage:"collect-info",userProvider:null,invalid:!1,expired:!1,token:null,info:null});T(()=>{e.userProvider=new K});const r=async t=>{if(!e.userProvider)return;e.info=t,e.stage="loading";const u=await e.userProvider.authenticate(t.email);e.invalid=!!u,u?e.stage="collect-info":e.stage="collect-token"},h=async t=>{var u;if(!(!e.userProvider||!((u=e.info)!=null&&u.email))){e.token=t,e.stage="loading";try{const l=await e.userProvider.verify(e.info.email,e.token);if(!l)throw new Error("no user");n("done",l),e.stage="loading"}catch(l){l.message==="expired"?e.expired=!0:e.invalid=!0,e.stage="collect-info"}}},m=()=>{e.info&&r(e.info)},_=()=>{e.stage="collect-info",e.info=null,e.token=null,e.invalid=!1};return(t,u)=>{var l,d;return e.userProvider?e.stage==="collect-info"?(s(),i("div",Ee,[a("div",Ke,[a("div",Ue,[g(Le,{invalid:e.invalid,locale:t.locale,onSendAuthInfo:r},null,8,["invalid","locale"])])])])):e.stage==="collect-token"?(s(),i("div",Ge,[a("div",Re,[a("div",We,[g(Be,{invalid:e.invalid,expired:e.expired,email:(d=(l=e.info)==null?void 0:l.email)!=null?d:"",locale:t.locale,onSendToken:h,onResendToken:m,onRestartAuth:_},null,8,["invalid","expired","email","locale"])])])])):(s(),i("div",je,[a("div",Xe,[a("div",qe,[g(H)])])])):(s(),i("div",Ne,[a("div",Oe,[a("div",ze,[g(H)])])]))}}});const Qe=b(Fe,[["__scopeId","data-v-f310a3bb"]]),oa=y({__name:"Login",props:{locale:{}},emits:["done"],setup(o,{emit:n}){return(e,r)=>c(D).isConfigured()?(s(),A(ve,{key:0,onDone:r[0]||(r[0]=h=>n("done"))})):(s(),A(Qe,{key:1,locale:e.locale,onDone:r[1]||(r[1]=h=>n("done"))},null,8,["locale"]))}});export{oa as _}; +//# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.8de09e2d.js.map diff --git a/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8e55196d.js b/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8e55196d.js deleted file mode 100644 index df8d3d156..000000000 --- a/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.8e55196d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,B as Z,f,o as s,X as i,Z as O,R as k,eb as z,a,W as T,b as g,w as P,u as c,aF as w,el as $,em as L,d8 as E,$ as A,eV as p,D as I,ec as m,c as b,aZ as x,eQ as S,eU as C}from"./vue-router.4c13f3d4.js";import{O as D,S as M,A as K}from"./workspaceStore.ae240ce8.js";import{L as H}from"./CircularLoading.b40e14c8.js";import{A as B}from"./index.e5bdb21b.js";import{G as U}from"./PhArrowClockwise.vue.5c4db05c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="ec311658-b2ba-4088-8389-c13c8d03a75a",o._sentryDebugIdIdentifier="sentry-dbid-ec311658-b2ba-4088-8389-c13c8d03a75a")}catch{}})();const G=["width","height","fill","transform"],R={key:0},W=a("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),j=[W],X={key:1},q=a("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),F=a("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),Q=[q,F],J={key:2},Y=a("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),ee=[Y],ae={key:3},te=a("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),oe=[te],se={key:4},ne=a("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),le=[ne],ie={key:5},re=a("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),de=[re],ce={name:"PhSpinner"},_e=y({...ce,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const n=o,e=Z("weight","regular"),r=Z("size","1em"),h=Z("color","currentColor"),v=Z("mirrored",!1),_=f(()=>{var d;return(d=n.weight)!=null?d:e}),t=f(()=>{var d;return(d=n.size)!=null?d:r}),u=f(()=>{var d;return(d=n.color)!=null?d:h}),l=f(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(d,V)=>(s(),i("svg",z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:t.value,height:t.value,fill:u.value,transform:l.value},d.$attrs),[O(d.$slots,"default"),_.value==="bold"?(s(),i("g",R,j)):_.value==="duotone"?(s(),i("g",X,Q)):_.value==="fill"?(s(),i("g",J,ee)):_.value==="light"?(s(),i("g",ae,oe)):_.value==="regular"?(s(),i("g",se,le)):_.value==="thin"?(s(),i("g",ie,de)):k("",!0)],16,G))}}),N=o=>($("data-v-b8567b17"),o=o(),L(),o),ue={class:"oidc-container"},pe=N(()=>a("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),he=N(()=>a("p",{class:"centered"},"Please complete the login process in the popup window.",-1)),me={class:"centered"},ve=y({__name:"Oidc",emits:["done"],setup(o,{emit:n}){const e=async()=>{if(!await new D().login())throw new Error("[OIDC] Login did not return an user");n("done")};return T(()=>e()),(r,h)=>(s(),i("div",ue,[g(c(_e),{size:60,style:{"margin-bottom":"50px"}},{default:P(()=>[pe]),_:1}),he,a("p",me,[w(" If it has not appear automatically, please "),g(c(E),{onClick:e},{default:P(()=>[w("click here")]),_:1}),w(". ")])]))}});const fe=A(ve,[["__scopeId","data-v-b8567b17"]]),ge=o=>($("data-v-dfdf2101"),o=o(),L(),o),ye={class:"auth-info"},ke={class:"auth-header"},Ze={class:"auth-label"},we={key:1,class:"description"},be=["onKeyup"],Ae={key:0,class:"span-error"},Me=ge(()=>a("div",{class:"spacer"},null,-1)),$e=y({__name:"AuthInfo",props:{invalid:{type:Boolean},locale:{}},emits:["sendAuthInfo"],setup(o,{emit:n}){const e=o,r={description:p.translate("i18n_local_auth_info_description",e.locale),button:p.translate("i18n_local_auth_info_authenticate",e.locale)},h={description:p.translate("i18n_auth_info_description",e.locale),button:p.translate("i18n_auth_info_send_code",e.locale)},v=f(()=>{var l;return(l=M.instance)==null?void 0:l.isLocal}),_=f(()=>{var l;return(l=M.instance)!=null&&l.isLocal?r:h}),t=I({email:""}),u=()=>{n("sendAuthInfo",t)};return(l,d)=>(s(),i("div",ye,[a("div",ke,[a("div",Ze,m(c(p).translate("i18n_auth_validate_your_email",l.locale)),1),v.value?(s(),b(c(B),{key:0,message:_.value.description,type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):(s(),i("div",we,m(_.value.description),1))]),x(a("input",{"onUpdate:modelValue":d[0]||(d[0]=V=>t.email=V),type:"email",placeholder:"Work email address",class:"input email-input",onKeyup:C(u,["enter"])},null,40,be),[[S,t.email]]),e.invalid?(s(),i("span",Ae,m(c(p).translate("i18n_auth_info_invalid_email",l.locale)),1)):k("",!0),Me,a("button",{class:"next-button",onClick:u},m(_.value.button),1)]))}});const Le=A($e,[["__scopeId","data-v-dfdf2101"]]),Ie=o=>($("data-v-9a2f7db8"),o=o(),L(),o),Ve={class:"auth-token"},Pe={class:"auth-label"},He=["onKeyup"],Te={key:1,class:"span-error"},xe={key:2,class:"span-error"},Se=Ie(()=>a("div",{class:"spacer"},null,-1)),Ce={class:"footer"},De=y({__name:"AuthToken",props:{email:{},invalid:{type:Boolean},expired:{type:Boolean},locale:{}},emits:["sendToken","restartAuth","resendToken"],setup(o,{emit:n}){const e=f(()=>{var t;return(t=M.instance)==null?void 0:t.isLocal}),r=I({token:""}),h=()=>{n("restartAuth")},v=()=>{n("resendToken")},_=()=>{n("sendToken",r.token)};return(t,u)=>(s(),i("div",Ve,[a("div",Pe,m(c(p).translate("i18n_auth_token_label",t.locale,{email:t.email})),1),e.value?(s(),b(c(B),{key:0,message:c(p).translate("i18n_auth_token_development_warning",t.locale),type:"warning","show-icon":"",style:{width:"100%","text-align":"left","margin-bottom":"20px"}},null,8,["message"])):k("",!0),x(a("input",{"onUpdate:modelValue":u[0]||(u[0]=l=>r.token=l),type:"text",placeholder:"Type your verification code",class:"input",onKeyup:C(_,["enter"])},null,40,He),[[S,r.token]]),t.expired?(s(),i("span",Te,m(c(p).translate("i18n_auth_token_expired",t.locale)),1)):k("",!0),t.invalid?(s(),i("span",xe,m(c(p).translate("i18n_auth_token_invalid",t.locale)),1)):k("",!0),Se,a("button",{class:"next-button",onClick:_},m(c(p).translate("i18n_auth_token_verify_email",t.locale)),1),a("button",{class:"secondary-button back",onClick:h},[g(c(U)),w(" "+m(c(p).translate("i18n_auth_edit_email",t.locale)),1)]),a("button",{class:"secondary-button back",onClick:v},m(c(p).translate("i18n_auth_token_resend_email",t.locale)),1),a("div",Ce,m(c(p).translate("i18n_auth_token_footer_alternative_email",t.locale)),1)]))}});const Be=A(De,[["__scopeId","data-v-9a2f7db8"]]),Ne={key:0,class:"form"},Oe={class:"form-wrapper"},ze={class:"loading"},Ee={key:1,class:"form"},Ke={class:"form-wrapper"},Ue={class:"widget"},Ge={key:2,class:"form"},Re={class:"form-wrapper"},We={class:"widget"},je={key:3,class:"form"},Xe={class:"form-wrapper"},qe={class:"loading"},Fe=y({__name:"Passwordless",props:{locale:{}},emits:["done"],setup(o,{emit:n}){const e=I({stage:"collect-info",userProvider:null,invalid:!1,expired:!1,token:null,info:null});T(()=>{e.userProvider=new K});const r=async t=>{if(!e.userProvider)return;e.info=t,e.stage="loading";const u=await e.userProvider.authenticate(t.email);e.invalid=!!u,u?e.stage="collect-info":e.stage="collect-token"},h=async t=>{var u;if(!(!e.userProvider||!((u=e.info)!=null&&u.email))){e.token=t,e.stage="loading";try{const l=await e.userProvider.verify(e.info.email,e.token);if(!l)throw new Error("no user");n("done",l),e.stage="loading"}catch(l){l.message==="expired"?e.expired=!0:e.invalid=!0,e.stage="collect-info"}}},v=()=>{e.info&&r(e.info)},_=()=>{e.stage="collect-info",e.info=null,e.token=null,e.invalid=!1};return(t,u)=>{var l,d;return e.userProvider?e.stage==="collect-info"?(s(),i("div",Ee,[a("div",Ke,[a("div",Ue,[g(Le,{invalid:e.invalid,locale:t.locale,onSendAuthInfo:r},null,8,["invalid","locale"])])])])):e.stage==="collect-token"?(s(),i("div",Ge,[a("div",Re,[a("div",We,[g(Be,{invalid:e.invalid,expired:e.expired,email:(d=(l=e.info)==null?void 0:l.email)!=null?d:"",locale:t.locale,onSendToken:h,onResendToken:v,onRestartAuth:_},null,8,["invalid","expired","email","locale"])])])])):(s(),i("div",je,[a("div",Xe,[a("div",qe,[g(H)])])])):(s(),i("div",Ne,[a("div",Oe,[a("div",ze,[g(H)])])]))}}});const Qe=A(Fe,[["__scopeId","data-v-f310a3bb"]]),oa=y({__name:"Login",props:{locale:{}},emits:["done"],setup(o,{emit:n}){return(e,r)=>c(D).isConfigured()?(s(),b(fe,{key:0,onDone:r[0]||(r[0]=h=>n("done"))})):(s(),b(Qe,{key:1,locale:e.locale,onDone:r[1]||(r[1]=h=>n("done"))},null,8,["locale"]))}});export{oa as _}; -//# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.8e55196d.js.map diff --git a/abstra_statics/dist/assets/Logo.1a35ae4d.js b/abstra_statics/dist/assets/Logo.1a35ae4d.js deleted file mode 100644 index 50c555849..000000000 --- a/abstra_statics/dist/assets/Logo.1a35ae4d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as n,ek as c,f as _,o as a,X as d,R as r,el as p,em as i,a as f,$ as l}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="9bd9c00d-a1aa-4ff0-92ef-4778ca914ba6",e._sentryDebugIdIdentifier="sentry-dbid-9bd9c00d-a1aa-4ff0-92ef-4778ca914ba6")}catch{}})();const g="/assets/logo.0faadfa2.svg",u=e=>(p("data-v-45e099d5"),e=e(),i(),e),b={class:"logo"},m=u(()=>f("img",{class:"logo-img",src:g,alt:"Abstra Logo"},null,-1)),y={key:0},h=n({__name:"Logo",props:{hideText:{type:Boolean},size:{}},setup(e){const s=e;c(t=>({"6b21c5f6":o.value}));const o=_(()=>s.size==="large"?"60px":"40px");return(t,I)=>(a(),d("div",b,[m,t.hideText?r("",!0):(a(),d("span",y,"Abstra"))]))}});const x=l(h,[["__scopeId","data-v-45e099d5"]]);export{x as L}; -//# sourceMappingURL=Logo.1a35ae4d.js.map diff --git a/abstra_statics/dist/assets/Logo.6e947620.js b/abstra_statics/dist/assets/Logo.6e947620.js new file mode 100644 index 000000000..6f8ec49a2 --- /dev/null +++ b/abstra_statics/dist/assets/Logo.6e947620.js @@ -0,0 +1,2 @@ +import{d as n,ek as c,f as _,o as a,X as d,R as r,el as p,em as i,a as f,$ as l}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f07b95d3-f365-4a37-a736-934d23ef59e9",e._sentryDebugIdIdentifier="sentry-dbid-f07b95d3-f365-4a37-a736-934d23ef59e9")}catch{}})();const g="/assets/logo.0faadfa2.svg",u=e=>(p("data-v-45e099d5"),e=e(),i(),e),m={class:"logo"},y=u(()=>f("img",{class:"logo-img",src:g,alt:"Abstra Logo"},null,-1)),b={key:0},h=n({__name:"Logo",props:{hideText:{type:Boolean},size:{}},setup(e){const s=e;c(t=>({"6b21c5f6":o.value}));const o=_(()=>s.size==="large"?"60px":"40px");return(t,I)=>(a(),d("div",m,[y,t.hideText?r("",!0):(a(),d("span",b,"Abstra"))]))}});const x=l(h,[["__scopeId","data-v-45e099d5"]]);export{x as L}; +//# sourceMappingURL=Logo.6e947620.js.map diff --git a/abstra_statics/dist/assets/Logs.a0ca7a88.js b/abstra_statics/dist/assets/Logs.aa5e409c.js similarity index 91% rename from abstra_statics/dist/assets/Logs.a0ca7a88.js rename to abstra_statics/dist/assets/Logs.aa5e409c.js index 15e265238..3dbc9748d 100644 --- a/abstra_statics/dist/assets/Logs.a0ca7a88.js +++ b/abstra_statics/dist/assets/Logs.aa5e409c.js @@ -1,2 +1,2 @@ -var $=Object.defineProperty;var N=(d,s,r)=>s in d?$(d,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[s]=r;var v=(d,s,r)=>(N(d,typeof s!="symbol"?s+"":s,r),r);import{D as T,g as D,eo as V,d as q,ed as K,c as I,w as n,u as t,e$ as k,o as u,b as i,aF as h,db as Q,cy as w,bK as X,aA as E,cx as Y,bx as O,X as x,ee as C,d3 as P,ec as y,a as G,aR as z,Y as H,cw as j,R as J,bP as M}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{a as W,b as Z,g as tt}from"./datetime.269334b3.js";import{e as et,E as at,_ as st}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.f2f9cb8f.js";import{c as U}from"./string.eaeb96c3.js";import"./tables.e9d41f69.js";import{R as it}from"./dayjs.c2ac9d43.js";import{a as B,A as R}from"./router.87582bcc.js";import{A as F}from"./index.ec6b7808.js";import{A as nt,C as ot}from"./CollapsePanel.d6e0f903.js";import"./popupNotifcation.d2ca3d78.js";import"./LoadingOutlined.6c0b95d8.js";import"./record.34d5b504.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[s]="293e68b8-ef66-4645-8dc4-33d2fbfef8b1",d._sentryDebugIdIdentifier="sentry-dbid-293e68b8-ef66-4645-8dc4-33d2fbfef8b1")}catch{}})();class rt{constructor(s,r,l,c,b,f){v(this,"state");v(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch()});v(this,"debouncedPageRefetch",V.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));v(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async s=>{!this.state.currentPage.loadedLogs[s]&&await this.fetchLogs(s)})});this.executionRepository=s,this.buildRepository=r,this.projectId=l,this.state=T({currentPage:{openedExecutionIds:f?[f]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],loadedLogs:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...b},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...c},filterOptions:{builds:[],stages:[],statuses:et.map(_=>({label:U(_),value:_}))}}),D(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),D(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),D(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.setupRefetchInterval()}async fetchPage(){var l,c,b,f;this.state.currentPage.loadingExecutions=!0;const{executions:s,totalCount:r}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(c=(l=this.state.filters.dateRange)==null?void 0:l[0])==null?void 0:c.toISOString(),endDate:(f=(b=this.state.filters.dateRange)==null?void 0:b[1])==null?void 0:f.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=s,this.state.pagination.totalCount=r}async fetchBuildOptions(){const r=(await this.buildRepository.list(this.projectId)).map(l=>({label:`[${l.id.slice(0,8)}] ${l.createdAt.toLocaleString()} ${l.latest?"(Latest)":""}`,value:l.id}));this.state.filterOptions.builds=r}async fetchStageOptions(){var l;const s=await W.get((l=this.state.filters.buildId)!=null?l:this.state.filterOptions.builds[0].value),r=s==null?void 0:s.runtimes.map(c=>({label:c.title,value:c.id}));this.state.filterOptions.stages=r!=null?r:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchLogs(s){const r=await this.executionRepository.fetchLogs(this.projectId,s);this.state.currentPage.loadedLogs[s]=r}async setupRefetchInterval(){setTimeout(async()=>{await Promise.all(this.state.currentPage.openedExecutionIds.map(s=>this.fetchLogs(s))),this.setupRefetchInterval()},1e5)}}const lt={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},dt={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},ut={key:1,style:{"background-color":"#555","border-radius":"5px",padding:"10px",color:"#fff","font-family":"monospace","max-height":"600px",overflow:"auto"}},_t=q({__name:"Logs",setup(d){const s=new at,r=new Z,l=K(),c=l.params.projectId,b=l.query.executionId;function f(){const{stageId:m,buildId:o,status:e,startDate:p,endDate:g}=l.query;return p&&g?{stageId:m,buildId:o,status:e,dateRange:[k(p),k(g)]}:{stageId:m,buildId:o,status:e}}function _(){const{page:m,pageSize:o}=l.query;return{page:m?parseInt(m,10):1,pageSize:o?parseInt(o,10):10}}const L=new rt(s,r,c,f(),_(),b),{state:a}=L;return L.init(),(m,o)=>(u(),I(t(F),{direction:"vertical",style:{width:"100%"}},{default:n(()=>[i(t(Q),null,{default:n(()=>[h("Logs")]),_:1}),i(t(Y),{layout:"vertical"},{default:n(()=>[i(t(B),{gutter:10},{default:n(()=>[i(t(R),{span:12},{default:n(()=>[i(t(w),{label:"Run ID"},{default:n(()=>[i(t(X),{value:t(a).filters.search,"onUpdate:value":o[0]||(o[0]=e=>t(a).filters.search=e),placeholder:"Search by Run ID",style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),i(t(R),{span:12},{default:n(()=>[i(t(w),{label:"Script"},{default:n(()=>[i(t(E),{value:t(a).filters.stageId,"onUpdate:value":o[1]||(o[1]=e=>t(a).filters.stageId=e),options:t(a).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1}),i(t(B),{gutter:10},{default:n(()=>[i(t(R),{span:8},{default:n(()=>[i(t(w),{label:"Date"},{default:n(()=>[i(t(it),{value:t(a).filters.dateRange,"onUpdate:value":o[2]||(o[2]=e=>t(a).filters.dateRange=e),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),i(t(R),{span:10},{default:n(()=>[i(t(w),{label:"Build"},{default:n(()=>[i(t(E),{value:t(a).filters.buildId,"onUpdate:value":o[3]||(o[3]=e=>t(a).filters.buildId=e),options:t(a).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),i(t(R),{span:6},{default:n(()=>[i(t(w),{label:"Status"},{default:n(()=>[i(t(E),{value:t(a).filters.status,"onUpdate:value":o[4]||(o[4]=e=>t(a).filters.status=e),options:t(a).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1}),t(a).currentPage.loadingExecutions||t(a).currentPage.waitingDebounce?(u(),I(t(O),{key:0,style:{width:"100%"}})):t(a).currentPage.executions&&t(a).currentPage.executions.length>0?(u(),I(t(F),{key:1,direction:"vertical",style:{width:"100%"}},{default:n(()=>[i(t(ot),{"active-key":t(a).currentPage.openedExecutionIds,"onUpdate:activeKey":o[5]||(o[5]=e=>t(a).currentPage.openedExecutionIds=e),bordered:!1,style:{"background-color":"transparent"},onChange:t(L).fetchEmptyLogs},{default:n(()=>[(u(!0),x(z,null,C(t(a).currentPage.executions,e=>(u(),I(t(nt),{key:e.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:n(()=>[i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(y(t(tt)(e.createdAt)),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(" Run ID: "+y(e.id.slice(0,8)),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(" Build: "+y(e.buildId.slice(0,8)),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(" Duration: "+y(e.duration_seconds),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>{var p,g;return[h(y((g=(p=t(a).filterOptions.stages.find(S=>S.value===e.stageId))==null?void 0:p.label)!=null?g:e.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:n(()=>[G("div",lt,[h(y(t(U)(e.status))+" ",1),i(st,{status:e.status},null,8,["status"])])]),default:n(()=>{var p,g,S;return[t(a).currentPage.loadedLogs[e.id]?(p=t(a).currentPage.loadedLogs[e.id])!=null&&p.entries.length?(u(),x("div",ut,[(u(!0),x(z,null,C((g=t(a).currentPage.loadedLogs[e.id])==null?void 0:g.entries,A=>(u(),x("p",{key:A.createdAt,style:H({margin:0,"white-space":"pre-wrap",color:A.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},y(A.payload.text.trim()),5))),128))])):(S=t(a).currentPage.loadedLogs[e.id])!=null&&S.entries.length?J("",!0):(u(),I(t(j),{key:2})):(u(),x("div",dt,[i(t(O))]))]}),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),i(t(M),{current:t(a).pagination.currentIndex,"onUpdate:current":o[6]||(o[6]=e=>t(a).pagination.currentIndex=e),"page-size":t(a).pagination.pageSize,"onUpdate:pageSize":o[7]||(o[7]=e=>t(a).pagination.pageSize=e),total:t(a).pagination.totalCount,"show-size-changer":""},null,8,["current","page-size","total"])]),_:1})):(u(),I(t(j),{key:2}))]),_:1}))}});export{_t as default}; -//# sourceMappingURL=Logs.a0ca7a88.js.map +var $=Object.defineProperty;var N=(d,s,r)=>s in d?$(d,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[s]=r;var v=(d,s,r)=>(N(d,typeof s!="symbol"?s+"":s,r),r);import{D as T,g as D,eo as V,d as q,ed as K,c as I,w as n,u as t,e$ as k,o as u,b as i,aF as h,db as Q,cy as w,bK as X,aA as E,cx as Y,bx as O,X as x,ee as C,d3 as P,ec as y,a as G,aR as z,Y as H,cw as j,R as J,bP as M}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{a as W,b as Z,g as tt}from"./datetime.744b5391.js";import{e as et,E as at,_ as st}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.19012e78.js";import{c as U}from"./string.e75a34fd.js";import"./tables.3aa20dd6.js";import{R as it}from"./dayjs.86e1a5b6.js";import{a as B,A as R}from"./router.59916c0d.js";import{A as F}from"./index.063f7c9e.js";import{A as nt,C as ot}from"./CollapsePanel.87687b29.js";import"./popupNotifcation.0e86d6a8.js";import"./LoadingOutlined.dad6ee6e.js";import"./record.cbb43e89.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[s]="77c97bcb-9e46-423a-9dbf-50273dbfa195",d._sentryDebugIdIdentifier="sentry-dbid-77c97bcb-9e46-423a-9dbf-50273dbfa195")}catch{}})();class rt{constructor(s,r,l,c,b,f){v(this,"state");v(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch()});v(this,"debouncedPageRefetch",V.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));v(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async s=>{!this.state.currentPage.loadedLogs[s]&&await this.fetchLogs(s)})});this.executionRepository=s,this.buildRepository=r,this.projectId=l,this.state=T({currentPage:{openedExecutionIds:f?[f]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],loadedLogs:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...b},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...c},filterOptions:{builds:[],stages:[],statuses:et.map(_=>({label:U(_),value:_}))}}),D(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),D(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),D(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.setupRefetchInterval()}async fetchPage(){var l,c,b,f;this.state.currentPage.loadingExecutions=!0;const{executions:s,totalCount:r}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(c=(l=this.state.filters.dateRange)==null?void 0:l[0])==null?void 0:c.toISOString(),endDate:(f=(b=this.state.filters.dateRange)==null?void 0:b[1])==null?void 0:f.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=s,this.state.pagination.totalCount=r}async fetchBuildOptions(){const r=(await this.buildRepository.list(this.projectId)).map(l=>({label:`[${l.id.slice(0,8)}] ${l.createdAt.toLocaleString()} ${l.latest?"(Latest)":""}`,value:l.id}));this.state.filterOptions.builds=r}async fetchStageOptions(){var l;const s=await W.get((l=this.state.filters.buildId)!=null?l:this.state.filterOptions.builds[0].value),r=s==null?void 0:s.runtimes.map(c=>({label:c.title,value:c.id}));this.state.filterOptions.stages=r!=null?r:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchLogs(s){const r=await this.executionRepository.fetchLogs(this.projectId,s);this.state.currentPage.loadedLogs[s]=r}async setupRefetchInterval(){setTimeout(async()=>{await Promise.all(this.state.currentPage.openedExecutionIds.map(s=>this.fetchLogs(s))),this.setupRefetchInterval()},1e5)}}const lt={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},dt={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},ut={key:1,style:{"background-color":"#555","border-radius":"5px",padding:"10px",color:"#fff","font-family":"monospace","max-height":"600px",overflow:"auto"}},_t=q({__name:"Logs",setup(d){const s=new at,r=new Z,l=K(),c=l.params.projectId,b=l.query.executionId;function f(){const{stageId:m,buildId:o,status:e,startDate:p,endDate:g}=l.query;return p&&g?{stageId:m,buildId:o,status:e,dateRange:[k(p),k(g)]}:{stageId:m,buildId:o,status:e}}function _(){const{page:m,pageSize:o}=l.query;return{page:m?parseInt(m,10):1,pageSize:o?parseInt(o,10):10}}const L=new rt(s,r,c,f(),_(),b),{state:a}=L;return L.init(),(m,o)=>(u(),I(t(F),{direction:"vertical",style:{width:"100%"}},{default:n(()=>[i(t(Q),null,{default:n(()=>[h("Logs")]),_:1}),i(t(Y),{layout:"vertical"},{default:n(()=>[i(t(B),{gutter:10},{default:n(()=>[i(t(R),{span:12},{default:n(()=>[i(t(w),{label:"Run ID"},{default:n(()=>[i(t(X),{value:t(a).filters.search,"onUpdate:value":o[0]||(o[0]=e=>t(a).filters.search=e),placeholder:"Search by Run ID",style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),i(t(R),{span:12},{default:n(()=>[i(t(w),{label:"Script"},{default:n(()=>[i(t(E),{value:t(a).filters.stageId,"onUpdate:value":o[1]||(o[1]=e=>t(a).filters.stageId=e),options:t(a).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1}),i(t(B),{gutter:10},{default:n(()=>[i(t(R),{span:8},{default:n(()=>[i(t(w),{label:"Date"},{default:n(()=>[i(t(it),{value:t(a).filters.dateRange,"onUpdate:value":o[2]||(o[2]=e=>t(a).filters.dateRange=e),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),i(t(R),{span:10},{default:n(()=>[i(t(w),{label:"Build"},{default:n(()=>[i(t(E),{value:t(a).filters.buildId,"onUpdate:value":o[3]||(o[3]=e=>t(a).filters.buildId=e),options:t(a).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),i(t(R),{span:6},{default:n(()=>[i(t(w),{label:"Status"},{default:n(()=>[i(t(E),{value:t(a).filters.status,"onUpdate:value":o[4]||(o[4]=e=>t(a).filters.status=e),options:t(a).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1}),t(a).currentPage.loadingExecutions||t(a).currentPage.waitingDebounce?(u(),I(t(O),{key:0,style:{width:"100%"}})):t(a).currentPage.executions&&t(a).currentPage.executions.length>0?(u(),I(t(F),{key:1,direction:"vertical",style:{width:"100%"}},{default:n(()=>[i(t(ot),{"active-key":t(a).currentPage.openedExecutionIds,"onUpdate:activeKey":o[5]||(o[5]=e=>t(a).currentPage.openedExecutionIds=e),bordered:!1,style:{"background-color":"transparent"},onChange:t(L).fetchEmptyLogs},{default:n(()=>[(u(!0),x(z,null,C(t(a).currentPage.executions,e=>(u(),I(t(nt),{key:e.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:n(()=>[i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(y(t(tt)(e.createdAt)),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(" Run ID: "+y(e.id.slice(0,8)),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(" Build: "+y(e.buildId.slice(0,8)),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>[h(" Duration: "+y(e.duration_seconds),1)]),_:2},1024),i(t(P),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:n(()=>{var p,g;return[h(y((g=(p=t(a).filterOptions.stages.find(S=>S.value===e.stageId))==null?void 0:p.label)!=null?g:e.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:n(()=>[G("div",lt,[h(y(t(U)(e.status))+" ",1),i(st,{status:e.status},null,8,["status"])])]),default:n(()=>{var p,g,S;return[t(a).currentPage.loadedLogs[e.id]?(p=t(a).currentPage.loadedLogs[e.id])!=null&&p.entries.length?(u(),x("div",ut,[(u(!0),x(z,null,C((g=t(a).currentPage.loadedLogs[e.id])==null?void 0:g.entries,A=>(u(),x("p",{key:A.createdAt,style:H({margin:0,"white-space":"pre-wrap",color:A.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},y(A.payload.text.trim()),5))),128))])):(S=t(a).currentPage.loadedLogs[e.id])!=null&&S.entries.length?J("",!0):(u(),I(t(j),{key:2})):(u(),x("div",dt,[i(t(O))]))]}),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),i(t(M),{current:t(a).pagination.currentIndex,"onUpdate:current":o[6]||(o[6]=e=>t(a).pagination.currentIndex=e),"page-size":t(a).pagination.pageSize,"onUpdate:pageSize":o[7]||(o[7]=e=>t(a).pagination.pageSize=e),total:t(a).pagination.totalCount,"show-size-changer":""},null,8,["current","page-size","total"])]),_:1})):(u(),I(t(j),{key:2}))]),_:1}))}});export{_t as default}; +//# sourceMappingURL=Logs.aa5e409c.js.map diff --git a/abstra_statics/dist/assets/Main.24927fff.js b/abstra_statics/dist/assets/Main.24927fff.js new file mode 100644 index 000000000..d631b0643 --- /dev/null +++ b/abstra_statics/dist/assets/Main.24927fff.js @@ -0,0 +1,2 @@ +import{P as _}from"./PlayerNavbar.56197f01.js";import{u as m,i as l}from"./workspaceStore.411ef1fe.js";import{d as f,eq as h,ed as r,f as g,r as y,X as b,u as a,c as k,R as v,a as w,b as L,o as s,$ as I}from"./vue-router.3fd92176.js";import"./metadata.789df59c.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./PhSignOut.vue.154299d7.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4b5ea04c-cf3e-4d29-8747-a1dd859aa5fe",t._sentryDebugIdIdentifier="sentry-dbid-4b5ea04c-cf3e-4d29-8747-a1dd859aa5fe")}catch{}})();const N={class:"main-container"},C={class:"content"},R=f({__name:"Main",setup(t){const e=h(),o=m(),i=r().path,c=({path:n})=>{e.push({path:`/${n}`})},d=()=>{e.push({name:"playerLogin"})},p=g(()=>!!r().meta.hideLogin);return l(()=>e.push({name:"playerLogin"})),(n,V)=>{const u=y("RouterView");return s(),b("div",N,[a(o).state.workspace?(s(),k(_,{key:0,"current-path":a(i),"hide-login":p.value,"runner-data":a(o).state.workspace,onNavigate:c,onLoginClick:d},null,8,["current-path","hide-login","runner-data"])):v("",!0),w("section",C,[L(u)])])}}});const A=I(R,[["__scopeId","data-v-aeaee359"]]);export{A as default}; +//# sourceMappingURL=Main.24927fff.js.map diff --git a/abstra_statics/dist/assets/Main.5448238a.js b/abstra_statics/dist/assets/Main.5448238a.js deleted file mode 100644 index d5bd852ec..000000000 --- a/abstra_statics/dist/assets/Main.5448238a.js +++ /dev/null @@ -1,2 +0,0 @@ -import{P as _}from"./PlayerNavbar.78adf027.js";import{u as m,i as l}from"./workspaceStore.ae240ce8.js";import{d as f,eq as b,ed as r,f as h,r as g,X as y,u as a,c as k,R as v,a as w,b as L,o as s,$ as I}from"./vue-router.4c13f3d4.js";import"./metadata.d6f3a171.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./PhSignOut.vue.e09114f0.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6ecbe69b-626c-4243-b2b7-0294e1f7fa5b",t._sentryDebugIdIdentifier="sentry-dbid-6ecbe69b-626c-4243-b2b7-0294e1f7fa5b")}catch{}})();const N={class:"main-container"},C={class:"content"},R=f({__name:"Main",setup(t){const e=b(),o=m(),i=r().path,c=({path:n})=>{e.push({path:`/${n}`})},p=()=>{e.push({name:"playerLogin"})},u=h(()=>!!r().meta.hideLogin);return l(()=>e.push({name:"playerLogin"})),(n,V)=>{const d=g("RouterView");return s(),y("div",N,[a(o).state.workspace?(s(),k(_,{key:0,"current-path":a(i),"hide-login":u.value,"runner-data":a(o).state.workspace,onNavigate:c,onLoginClick:p},null,8,["current-path","hide-login","runner-data"])):v("",!0),w("section",C,[L(d)])])}}});const A=I(R,[["__scopeId","data-v-aeaee359"]]);export{A as default}; -//# sourceMappingURL=Main.5448238a.js.map diff --git a/abstra_statics/dist/assets/Navbar.6541dc95.js b/abstra_statics/dist/assets/Navbar.6c76e332.js similarity index 71% rename from abstra_statics/dist/assets/Navbar.6541dc95.js rename to abstra_statics/dist/assets/Navbar.6c76e332.js index 14c4cd122..c5d49110a 100644 --- a/abstra_statics/dist/assets/Navbar.6541dc95.js +++ b/abstra_statics/dist/assets/Navbar.6c76e332.js @@ -1,2 +1,2 @@ -import{d as h,eq as A,r as B,u as e,o as s,c as i,bx as C,X as f,b as a,w as t,aF as r,bS as d,a as m,da as N,ec as _,cN as w,eo as I,ee as L,f0 as R,aR as g,R as D,Z as S,$ as z}from"./vue-router.4c13f3d4.js";import{a as $}from"./asyncComputed.d0f14ed3.js";import{G as V}from"./PhChats.vue.3f8c120c.js";import{F}from"./PhSignOut.vue.e09114f0.js";import{C as T}from"./router.87582bcc.js";import{a as k}from"./gateway.e77556e5.js";import{A as q}from"./index.ec6b7808.js";import{A as E}from"./Avatar.6f67d038.js";import{B as P,A as j,b as G}from"./index.c2d72be7.js";import{B as H}from"./BookOutlined.a8460802.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="dd516cc8-3c71-4091-b533-3188553e0f9b",n._sentryDebugIdIdentifier="sentry-dbid-dd516cc8-3c71-4091-b533-3188553e0f9b")}catch{}})();const M={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},O={style:{display:"flex","flex-direction":"column",gap:"10px"}},U={style:{display:"flex",gap:"5px"}},X=h({__name:"LoginBlock",setup(n){function o(b){const y=b.split("@")[0];return I.exports.kebabCase(y).toUpperCase().split("-").slice(0,2).map(p=>p[0]).join("")}const c=A(),{result:l,loading:u,refetch:x}=$(async()=>k.getAuthor());function v(){k.removeAuthor(),T.shutdown(),x(),c.push({name:"login"})}return(b,y)=>{const p=B("RouterLink");return e(u)?(s(),i(e(C),{key:0})):e(l)?(s(),f("div",M,[a(e(d),{class:"intercom-launcher",target:"_blank",type:"link",size:"small",style:{color:"#d14056",display:"flex","align-items":"center",gap:"6px"}},{icon:t(()=>[a(e(V),{size:18})]),default:t(()=>[r(" Support ")]),_:1}),a(e(w),{placement:"bottomRight"},{content:t(()=>[m("div",O,[a(e(N),{size:"small",type:"secondary"},{default:t(()=>[r(_(e(l).claims.email),1)]),_:1}),a(e(d),{type:"text",onClick:v},{default:t(()=>[m("div",U,[a(e(F),{size:"20"}),r(" Logout ")])]),_:1})])]),default:t(()=>[a(e(q),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(E),{shape:"square"},{default:t(()=>[r(_(o(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(s(),i(e(d),{key:2},{default:t(()=>[a(p,{to:"/login"},{default:t(()=>[r("Login")]),_:1})]),_:1}))}}}),Z={class:"extra"},J=h({__name:"Navbar",props:{breadcrumb:{}},setup(n){return(o,c)=>(s(),i(e(G),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[o.breadcrumb?(s(),i(e(P),{key:0},{default:t(()=>[(s(!0),f(g,null,L(o.breadcrumb,(l,u)=>(s(),i(e(j),{key:u},{default:t(()=>[a(e(R),{to:l.path},{default:t(()=>[r(_(l.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):D("",!0)]),extra:t(()=>[m("div",Z,[a(e(d),{class:"docs-button",href:"https://docs.abstra.io/",target:"_blank",type:"link",style:{color:"#d14056"},size:"small"},{icon:t(()=>[a(e(H))]),default:t(()=>[o.$slots.default?S(o.$slots,"default",{key:0},void 0,!0):(s(),f(g,{key:1},[r("Docs")],64))]),_:3}),a(X)])]),_:3}))}});const ne=z(J,[["__scopeId","data-v-5ef7b378"]]);export{ne as N}; -//# sourceMappingURL=Navbar.6541dc95.js.map +import{d as h,eq as A,r as B,u as e,o as s,c as i,bx as C,X as f,b as a,w as t,aF as r,bS as d,a as m,da as N,ec as _,cN as w,eo as I,ee as L,f0 as R,aR as g,R as D,Z as S,$ as z}from"./vue-router.3fd92176.js";import{a as $}from"./asyncComputed.295e9e03.js";import{G as V}from"./PhChats.vue.aa1113d9.js";import{F}from"./PhSignOut.vue.154299d7.js";import{C as T}from"./router.59916c0d.js";import{a as k}from"./gateway.c564a1cf.js";import{A as q}from"./index.063f7c9e.js";import{A as E}from"./Avatar.2107fa31.js";import{B as P,A as j,b as G}from"./index.5ccdbcb7.js";import{B as H}from"./BookOutlined.5f7ad9dc.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="4a5498c6-a7e7-4436-939e-92f3467bee6a",n._sentryDebugIdIdentifier="sentry-dbid-4a5498c6-a7e7-4436-939e-92f3467bee6a")}catch{}})();const M={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},O={style:{display:"flex","flex-direction":"column",gap:"10px"}},U={style:{display:"flex",gap:"5px"}},X=h({__name:"LoginBlock",setup(n){function o(y){const b=y.split("@")[0];return I.exports.kebabCase(b).toUpperCase().split("-").slice(0,2).map(p=>p[0]).join("")}const c=A(),{result:l,loading:u,refetch:x}=$(async()=>k.getAuthor());function v(){k.removeAuthor(),T.shutdown(),x(),c.push({name:"login"})}return(y,b)=>{const p=B("RouterLink");return e(u)?(s(),i(e(C),{key:0})):e(l)?(s(),f("div",M,[a(e(d),{class:"intercom-launcher",target:"_blank",type:"link",size:"small",style:{color:"#d14056",display:"flex","align-items":"center",gap:"6px"}},{icon:t(()=>[a(e(V),{size:18})]),default:t(()=>[r(" Support ")]),_:1}),a(e(w),{placement:"bottomRight"},{content:t(()=>[m("div",O,[a(e(N),{size:"small",type:"secondary"},{default:t(()=>[r(_(e(l).claims.email),1)]),_:1}),a(e(d),{type:"text",onClick:v},{default:t(()=>[m("div",U,[a(e(F),{size:"20"}),r(" Logout ")])]),_:1})])]),default:t(()=>[a(e(q),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(E),{shape:"square"},{default:t(()=>[r(_(o(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(s(),i(e(d),{key:2},{default:t(()=>[a(p,{to:"/login"},{default:t(()=>[r("Login")]),_:1})]),_:1}))}}}),Z={class:"extra"},J=h({__name:"Navbar",props:{breadcrumb:{}},setup(n){return(o,c)=>(s(),i(e(G),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[o.breadcrumb?(s(),i(e(P),{key:0},{default:t(()=>[(s(!0),f(g,null,L(o.breadcrumb,(l,u)=>(s(),i(e(j),{key:u},{default:t(()=>[a(e(R),{to:l.path},{default:t(()=>[r(_(l.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):D("",!0)]),extra:t(()=>[m("div",Z,[a(e(d),{class:"docs-button",href:"https://docs.abstra.io/",target:"_blank",type:"link",style:{color:"#d14056"},size:"small"},{icon:t(()=>[a(e(H))]),default:t(()=>[o.$slots.default?S(o.$slots,"default",{key:0},void 0,!0):(s(),f(g,{key:1},[r("Docs")],64))]),_:3}),a(X)])]),_:3}))}});const ne=z(J,[["__scopeId","data-v-5ef7b378"]]);export{ne as N}; +//# sourceMappingURL=Navbar.6c76e332.js.map diff --git a/abstra_statics/dist/assets/NavbarControls.651b74bd.js b/abstra_statics/dist/assets/NavbarControls.a8a61aa1.js similarity index 92% rename from abstra_statics/dist/assets/NavbarControls.651b74bd.js rename to abstra_statics/dist/assets/NavbarControls.a8a61aa1.js index 1703a7866..6a36d659a 100644 --- a/abstra_statics/dist/assets/NavbarControls.651b74bd.js +++ b/abstra_statics/dist/assets/NavbarControls.a8a61aa1.js @@ -1,2 +1,2 @@ -import{b as i,eh as S,ei as q,d as P,f as j,e as C,o as s,c,w as o,X as T,ee as z,u as l,a as X,ec as G,aR as M,bS as m,aF as f,ea as Y,cN as H,R as x,$,df as L,d8 as J,da as Q,W as Z,ag as K,aV as ee,ej as te,cs as ne}from"./vue-router.4c13f3d4.js";import{L as O,E as re,u as ae}from"./editor.49995faa.js";import{S as le}from"./workspaceStore.ae240ce8.js";import{C as oe}from"./CloseCircleOutlined.6201ef3d.js";import{A as ie}from"./index.e5bdb21b.js";import{A as D}from"./index.ec6b7808.js";import{W as se}from"./workspaces.1ee4ae8d.js";import{p as ue}from"./popupNotifcation.d2ca3d78.js";import{F as ce}from"./PhArrowSquareOut.vue.340970aa.js";import{_ as de}from"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import{G as fe}from"./PhChats.vue.3f8c120c.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="2e508b7a-87e7-486b-a11d-a05f6a0b308e",n._sentryDebugIdIdentifier="sentry-dbid-2e508b7a-87e7-486b-a11d-a05f6a0b308e")}catch{}})();var pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};const me=pe;var ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"filled"};const ye=ge;var be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"};const _e=be;var ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};const he=ve;function U(n){for(var e=1;e{var u,p;return(p=(u=O.asyncComputed.result.value)==null?void 0:u.flatMap(d=>d.issues))!=null?p:[]}),r=j(()=>{const u=t.value.map(p=>y(O.fromName(p.ruleName)));return u.includes("error")?"error":u.includes("warning")?"warning":"info"}),a=C(!1);async function _(u){a.value=!0;try{await u.fix(),e("issueFixed",u)}finally{a.value=!1}}function y(u){return u.type==="bug"?"warning":u.type==="security"?"error":"info"}return(u,p)=>t.value.length>0?(s(),c(l(H),{key:0,placement:"bottomRight"},{content:o(()=>[i(l(D),{direction:"vertical",style:{"max-height":"300px",overflow:"auto"}},{default:o(()=>[(s(!0),T(M,null,z(t.value,(d,b)=>(s(),c(l(ie),{key:b+d.ruleName,type:y(l(O).fromName(d.ruleName)),style:{width:"400px"},message:l(O).fromName(d.ruleName).label},{description:o(()=>[i(l(D),{direction:"vertical"},{default:o(()=>[X("div",null,G(d.label),1),(s(!0),T(M,null,z(d.fixes,g=>(s(),c(l(m),{key:g.name,loading:a.value,disabled:a.value,onClick:w=>_(g)},{icon:o(()=>[i(l(xe))]),default:o(()=>[f(" "+G(g.label),1)]),_:2},1032,["loading","disabled","onClick"]))),128))]),_:2},1024)]),_:2},1032,["type","message"]))),128))]),_:1})]),default:o(()=>[i(l(m),{class:Y(["linter-btn",r.value])},{default:o(()=>[r.value==="info"?(s(),c(l(we),{key:0})):r.value==="error"?(s(),c(l(oe),{key:1})):(s(),c(l(De),{key:2}))]),_:1},8,["class"])]),_:1})):x("",!0)}});const Ae=$($e,[["__scopeId","data-v-3a0806c5"]]),Ie=P({__name:"DeployButton",props:{isReadyToDeploy:{type:Boolean,required:!0},projectId:{type:String,required:!1}},setup(n){const e=n,t=C(!1),r=C(!1),a=C(!1);function _(){r.value=!1}async function y(){if(!!e.projectId){t.value=!0;try{await se.deploy(),window.open(u(),"_blank"),a.value=!0,setTimeout(()=>{a.value=!1},6e4)}catch(p){ue("Deploy failed",String(p))}t.value=!1}}function u(){if(!!e.projectId)return`${re.consoleUrl}/projects/${e.projectId}/builds`}return(p,d)=>n.isReadyToDeploy?(s(),c(l(H),{key:0,open:r.value,"onUpdate:open":d[0]||(d[0]=b=>r.value=b),trigger:"click",title:"Deploy to Abstra Cloud"},{content:o(()=>[a.value?(s(),c(l(L),{key:0,class:"deploy-state-message",align:"middle"},{default:o(()=>[i(l(Q),null,{default:o(()=>[f(" Deploy started at "),i(l(J),{href:u(),target:"_blank"},{default:o(()=>[f("Abstra Cloud")]),_:1},8,["href"]),f(". ")]),_:1})]),_:1})):x("",!0),i(l(L),{class:"action-buttons",gap:"small"},{default:o(()=>[i(l(m),{onClick:_},{default:o(()=>[f("Close")]),_:1}),a.value?(s(),c(l(m),{key:0,class:"deploy-button",type:"primary",href:u(),target:"_blank"},{icon:o(()=>[i(l(ce),{color:"white",size:"20"})]),default:o(()=>[f(" Open Console ")]),_:1},8,["href"])):(s(),c(l(m),{key:1,type:"primary",loading:t.value,onClick:y},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1},8,["loading"]))]),_:1})]),default:o(()=>[t.value?(s(),c(l(m),{key:0,disabled:""},{default:o(()=>[f("Deploying")]),_:1})):(s(),c(l(m),{key:1},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))]),_:1},8,["open"])):(s(),c(l(m),{key:1,disabled:""},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))}});const Ne=$(Ie,[["__scopeId","data-v-a2fa9262"]]),Fe=P({__name:"GithubStars",setup(n){return(e,t)=>(s(),c(l(m),{href:"https://github.com/abstra-app/abstra-lib",target:"_blank",type:"text",size:"small"},{default:o(()=>[i(l(Se)),f(" GitHub ")]),_:1}))}}),Be=P({__name:"IntercomButton",setup(n){return(e,t)=>(s(),c(l(m),{class:"intercom-launcher",target:"_blank",type:"text",size:"small",style:{display:"flex","align-items":"center",gap:"6px"}},{icon:o(()=>[i(l(fe),{size:18})]),default:o(()=>[f(" Support ")]),_:1}))}}),Te=P({__name:"NavbarControls",props:{showGithubStars:{type:Boolean},docsPath:{},editingModel:{}},setup(n){var b;const e=n,t=ae(),r=(b=le.instance)==null?void 0:b.isStagingRelease,{result:a,refetch:_}=O.asyncComputed,y=C(!1);function u(){setTimeout(async()=>{await _(),y.value&&u()},1e3)}Z(()=>{y.value=!0,u()}),K(()=>{y.value=!1});const p=j(()=>{var w,v;return((v=(w=a.value)==null?void 0:w.flatMap(h=>["error","security","bug"].includes(h.type)?h.issues:[]))!=null?v:[]).length>0}),d=j(()=>{var g;return p.value?"issues-found":(g=e.editingModel)!=null&&g.hasChanges()?"unsaved":r?"is-staging":"ready"});return(g,w)=>(s(),c(l(D),null,{default:o(()=>{var v;return[e.showGithubStars?(s(),c(Fe,{key:0})):x("",!0),i(de,{path:e.docsPath},null,8,["path"]),i(Be),(v=g.editingModel)!=null&&v.hasChanges()?x("",!0):(s(),c(Ae,{key:1})),i(l(ne),null,{default:o(()=>[i(l(ee),null,te({default:o(()=>{var h;return[i(Ne,{"is-ready-to-deploy":d.value==="ready","project-id":(h=l(t).cloudProject)==null?void 0:h.id},null,8,["is-ready-to-deploy","project-id"])]}),_:2},[d.value==="unsaved"?{name:"title",fn:o(()=>[f(" Save your project before deploying ")]),key:"0"}:d.value==="issues-found"?{name:"title",fn:o(()=>[f(" There are errors on your project. Please fix them before deploying. ")]),key:"1"}:d.value==="is-staging"?{name:"title",fn:o(()=>[f(" This is a staging release. You can't deploy it to Abstra Cloud. ")]),key:"2"}:void 0]),1024)]),_:1})]}),_:1}))}});const Xe=$(Te,[["__scopeId","data-v-b4cc0fe7"]]);export{Xe as N}; -//# sourceMappingURL=NavbarControls.651b74bd.js.map +import{b as i,eh as S,ei as q,d as P,f as j,e as C,o as s,c,w as o,X as T,ee as z,u as l,a as X,ec as G,aR as M,bS as m,aF as f,ea as Y,cN as H,R as x,$,df as L,d8 as J,da as Q,W as Z,ag as K,aV as ee,ej as te,cs as ne}from"./vue-router.3fd92176.js";import{L as O,E as re,u as ae}from"./editor.519c2dc1.js";import{S as le}from"./workspaceStore.411ef1fe.js";import{C as oe}from"./CloseCircleOutlined.f8dfd09a.js";import{A as ie}from"./index.4fbbd10e.js";import{A as D}from"./index.063f7c9e.js";import{W as se}from"./workspaces.b456ec6a.js";import{p as ue}from"./popupNotifcation.0e86d6a8.js";import{F as ce}from"./PhArrowSquareOut.vue.188b81dc.js";import{_ as de}from"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import{G as fe}from"./PhChats.vue.aa1113d9.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="27ed7292-3edc-44c8-9bf6-5037c1433de5",n._sentryDebugIdIdentifier="sentry-dbid-27ed7292-3edc-44c8-9bf6-5037c1433de5")}catch{}})();var pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};const me=pe;var ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"filled"};const ye=ge;var be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"};const _e=be;var ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};const he=ve;function U(n){for(var e=1;e{var u,p;return(p=(u=O.asyncComputed.result.value)==null?void 0:u.flatMap(d=>d.issues))!=null?p:[]}),r=j(()=>{const u=t.value.map(p=>y(O.fromName(p.ruleName)));return u.includes("error")?"error":u.includes("warning")?"warning":"info"}),a=C(!1);async function _(u){a.value=!0;try{await u.fix(),e("issueFixed",u)}finally{a.value=!1}}function y(u){return u.type==="bug"?"warning":u.type==="security"?"error":"info"}return(u,p)=>t.value.length>0?(s(),c(l(H),{key:0,placement:"bottomRight"},{content:o(()=>[i(l(D),{direction:"vertical",style:{"max-height":"300px",overflow:"auto"}},{default:o(()=>[(s(!0),T(M,null,z(t.value,(d,b)=>(s(),c(l(ie),{key:b+d.ruleName,type:y(l(O).fromName(d.ruleName)),style:{width:"400px"},message:l(O).fromName(d.ruleName).label},{description:o(()=>[i(l(D),{direction:"vertical"},{default:o(()=>[X("div",null,G(d.label),1),(s(!0),T(M,null,z(d.fixes,g=>(s(),c(l(m),{key:g.name,loading:a.value,disabled:a.value,onClick:w=>_(g)},{icon:o(()=>[i(l(xe))]),default:o(()=>[f(" "+G(g.label),1)]),_:2},1032,["loading","disabled","onClick"]))),128))]),_:2},1024)]),_:2},1032,["type","message"]))),128))]),_:1})]),default:o(()=>[i(l(m),{class:Y(["linter-btn",r.value])},{default:o(()=>[r.value==="info"?(s(),c(l(we),{key:0})):r.value==="error"?(s(),c(l(oe),{key:1})):(s(),c(l(De),{key:2}))]),_:1},8,["class"])]),_:1})):x("",!0)}});const Ae=$($e,[["__scopeId","data-v-3a0806c5"]]),Ie=P({__name:"DeployButton",props:{isReadyToDeploy:{type:Boolean,required:!0},projectId:{type:String,required:!1}},setup(n){const e=n,t=C(!1),r=C(!1),a=C(!1);function _(){r.value=!1}async function y(){if(!!e.projectId){t.value=!0;try{await se.deploy(),window.open(u(),"_blank"),a.value=!0,setTimeout(()=>{a.value=!1},6e4)}catch(p){ue("Deploy failed",String(p))}t.value=!1}}function u(){if(!!e.projectId)return`${re.consoleUrl}/projects/${e.projectId}/builds`}return(p,d)=>n.isReadyToDeploy?(s(),c(l(H),{key:0,open:r.value,"onUpdate:open":d[0]||(d[0]=b=>r.value=b),trigger:"click",title:"Deploy to Abstra Cloud"},{content:o(()=>[a.value?(s(),c(l(L),{key:0,class:"deploy-state-message",align:"middle"},{default:o(()=>[i(l(Q),null,{default:o(()=>[f(" Deploy started at "),i(l(J),{href:u(),target:"_blank"},{default:o(()=>[f("Abstra Cloud")]),_:1},8,["href"]),f(". ")]),_:1})]),_:1})):x("",!0),i(l(L),{class:"action-buttons",gap:"small"},{default:o(()=>[i(l(m),{onClick:_},{default:o(()=>[f("Close")]),_:1}),a.value?(s(),c(l(m),{key:0,class:"deploy-button",type:"primary",href:u(),target:"_blank"},{icon:o(()=>[i(l(ce),{color:"white",size:"20"})]),default:o(()=>[f(" Open Console ")]),_:1},8,["href"])):(s(),c(l(m),{key:1,type:"primary",loading:t.value,onClick:y},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1},8,["loading"]))]),_:1})]),default:o(()=>[t.value?(s(),c(l(m),{key:0,disabled:""},{default:o(()=>[f("Deploying")]),_:1})):(s(),c(l(m),{key:1},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))]),_:1},8,["open"])):(s(),c(l(m),{key:1,disabled:""},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))}});const Ne=$(Ie,[["__scopeId","data-v-a2fa9262"]]),Fe=P({__name:"GithubStars",setup(n){return(e,t)=>(s(),c(l(m),{href:"https://github.com/abstra-app/abstra-lib",target:"_blank",type:"text",size:"small"},{default:o(()=>[i(l(Se)),f(" GitHub ")]),_:1}))}}),Be=P({__name:"IntercomButton",setup(n){return(e,t)=>(s(),c(l(m),{class:"intercom-launcher",target:"_blank",type:"text",size:"small",style:{display:"flex","align-items":"center",gap:"6px"}},{icon:o(()=>[i(l(fe),{size:18})]),default:o(()=>[f(" Support ")]),_:1}))}}),Te=P({__name:"NavbarControls",props:{showGithubStars:{type:Boolean},docsPath:{},editingModel:{}},setup(n){var b;const e=n,t=ae(),r=(b=le.instance)==null?void 0:b.isStagingRelease,{result:a,refetch:_}=O.asyncComputed,y=C(!1);function u(){setTimeout(async()=>{await _(),y.value&&u()},1e3)}Z(()=>{y.value=!0,u()}),K(()=>{y.value=!1});const p=j(()=>{var w,v;return((v=(w=a.value)==null?void 0:w.flatMap(h=>["error","security","bug"].includes(h.type)?h.issues:[]))!=null?v:[]).length>0}),d=j(()=>{var g;return p.value?"issues-found":(g=e.editingModel)!=null&&g.hasChanges()?"unsaved":r?"is-staging":"ready"});return(g,w)=>(s(),c(l(D),null,{default:o(()=>{var v;return[e.showGithubStars?(s(),c(Fe,{key:0})):x("",!0),i(de,{path:e.docsPath},null,8,["path"]),i(Be),(v=g.editingModel)!=null&&v.hasChanges()?x("",!0):(s(),c(Ae,{key:1})),i(l(ne),null,{default:o(()=>[i(l(ee),null,te({default:o(()=>{var h;return[i(Ne,{"is-ready-to-deploy":d.value==="ready","project-id":(h=l(t).cloudProject)==null?void 0:h.id},null,8,["is-ready-to-deploy","project-id"])]}),_:2},[d.value==="unsaved"?{name:"title",fn:o(()=>[f(" Save your project before deploying ")]),key:"0"}:d.value==="issues-found"?{name:"title",fn:o(()=>[f(" There are errors on your project. Please fix them before deploying. ")]),key:"1"}:d.value==="is-staging"?{name:"title",fn:o(()=>[f(" This is a staging release. You can't deploy it to Abstra Cloud. ")]),key:"2"}:void 0]),1024)]),_:1})]}),_:1}))}});const Xe=$(Te,[["__scopeId","data-v-b4cc0fe7"]]);export{Xe as N}; +//# sourceMappingURL=NavbarControls.a8a61aa1.js.map diff --git a/abstra_statics/dist/assets/OidcLoginCallback.7806a966.js b/abstra_statics/dist/assets/OidcLoginCallback.7806a966.js new file mode 100644 index 000000000..8ed97ef25 --- /dev/null +++ b/abstra_statics/dist/assets/OidcLoginCallback.7806a966.js @@ -0,0 +1,2 @@ +import{O as d}from"./workspaceStore.411ef1fe.js";import{d as i,W as l,X as u,b as t,w as n,u as o,o as c,aF as s,db as f,da as b}from"./vue-router.3fd92176.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="9abf7e57-b000-4e0d-aa4c-a63621190bb8",e._sentryDebugIdIdentifier="sentry-dbid-9abf7e57-b000-4e0d-aa4c-a63621190bb8")}catch{}})();const w=i({__name:"OidcLoginCallback",setup(e){return l(async()=>{await new d().loginCallback()}),(a,r)=>(c(),u("div",null,[t(o(f),null,{default:n(()=>[s("You're authenticated")]),_:1}),t(o(b),null,{default:n(()=>[s(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; +//# sourceMappingURL=OidcLoginCallback.7806a966.js.map diff --git a/abstra_statics/dist/assets/OidcLoginCallback.f3d06c0a.js b/abstra_statics/dist/assets/OidcLoginCallback.f3d06c0a.js deleted file mode 100644 index d2874b36d..000000000 --- a/abstra_statics/dist/assets/OidcLoginCallback.f3d06c0a.js +++ /dev/null @@ -1,2 +0,0 @@ -import{O as r}from"./workspaceStore.ae240ce8.js";import{d as i,W as l,X as u,b as a,w as n,u as o,o as c,aF as d,db as f,da as _}from"./vue-router.4c13f3d4.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="850d2670-38eb-4e66-aee1-8815edfe81e7",e._sentryDebugIdIdentifier="sentry-dbid-850d2670-38eb-4e66-aee1-8815edfe81e7")}catch{}})();const w=i({__name:"OidcLoginCallback",setup(e){return l(async()=>{await new r().loginCallback()}),(t,s)=>(c(),u("div",null,[a(o(f),null,{default:n(()=>[d("You're authenticated")]),_:1}),a(o(_),null,{default:n(()=>[d(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; -//# sourceMappingURL=OidcLoginCallback.f3d06c0a.js.map diff --git a/abstra_statics/dist/assets/OidcLogoutCallback.475974f9.js b/abstra_statics/dist/assets/OidcLogoutCallback.475974f9.js deleted file mode 100644 index 09d09702c..000000000 --- a/abstra_statics/dist/assets/OidcLogoutCallback.475974f9.js +++ /dev/null @@ -1,2 +0,0 @@ -import{O as r}from"./workspaceStore.ae240ce8.js";import{d as l,W as i,X as u,b as a,w as o,u as n,o as c,aF as d,db as f,da as b}from"./vue-router.4c13f3d4.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a25014d4-878b-4d91-8b6c-97febbfca75f",e._sentryDebugIdIdentifier="sentry-dbid-a25014d4-878b-4d91-8b6c-97febbfca75f")}catch{}})();const w=l({__name:"OidcLogoutCallback",setup(e){return i(async()=>{await new r().logoutCallback()}),(t,s)=>(c(),u("div",null,[a(n(f),null,{default:o(()=>[d("You're authenticated")]),_:1}),a(n(b),null,{default:o(()=>[d(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; -//# sourceMappingURL=OidcLogoutCallback.475974f9.js.map diff --git a/abstra_statics/dist/assets/OidcLogoutCallback.9b8e8cb8.js b/abstra_statics/dist/assets/OidcLogoutCallback.9b8e8cb8.js new file mode 100644 index 000000000..c52544760 --- /dev/null +++ b/abstra_statics/dist/assets/OidcLogoutCallback.9b8e8cb8.js @@ -0,0 +1,2 @@ +import{O as r}from"./workspaceStore.411ef1fe.js";import{d as l,W as i,X as u,b as a,w as o,u as n,o as f,aF as d,db as c,da as _}from"./vue-router.3fd92176.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fdf9a0a1-63ed-4583-8f7a-2b915241d130",e._sentryDebugIdIdentifier="sentry-dbid-fdf9a0a1-63ed-4583-8f7a-2b915241d130")}catch{}})();const w=l({__name:"OidcLogoutCallback",setup(e){return i(async()=>{await new r().logoutCallback()}),(t,s)=>(f(),u("div",null,[a(n(c),null,{default:o(()=>[d("You're authenticated")]),_:1}),a(n(_),null,{default:o(()=>[d(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; +//# sourceMappingURL=OidcLogoutCallback.9b8e8cb8.js.map diff --git a/abstra_statics/dist/assets/Organization.92151ef1.js b/abstra_statics/dist/assets/Organization.b54acdcf.js similarity index 87% rename from abstra_statics/dist/assets/Organization.92151ef1.js rename to abstra_statics/dist/assets/Organization.b54acdcf.js index 65a85ff87..4e9fcc664 100644 --- a/abstra_statics/dist/assets/Organization.92151ef1.js +++ b/abstra_statics/dist/assets/Organization.b54acdcf.js @@ -1,2 +1,2 @@ -import{N as f}from"./Navbar.6541dc95.js";import{B as w}from"./BaseLayout.e1793d5b.js";import{C as b}from"./ContentLayout.f8da2f52.js";import{a as k}from"./asyncComputed.d0f14ed3.js";import{d as g,B as m,f as i,o as e,X as o,Z as c,R as V,eb as M,a as l,ed as z,r as _,c as $,w as H,b as p,u as B}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{O as C}from"./organization.6af6e7be.js";import"./tables.e9d41f69.js";import{S,_ as x}from"./Sidebar.49f66f34.js";import"./PhChats.vue.3f8c120c.js";import"./PhSignOut.vue.e09114f0.js";import"./router.87582bcc.js";import"./index.ec6b7808.js";import"./Avatar.6f67d038.js";import"./index.c2d72be7.js";import"./index.b16edfcc.js";import"./BookOutlined.a8460802.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./index.e5bdb21b.js";import"./Logo.1a35ae4d.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[r]="f6286918-a62b-4e7e-a5a3-674bd9e62847",h._sentryDebugIdIdentifier="sentry-dbid-f6286918-a62b-4e7e-a5a3-674bd9e62847")}catch{}})();const N=["width","height","fill","transform"],I={key:0},P=l("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,24V88H36V68ZM36,188V112H220v76Zm172-24a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,164Zm-68,0a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24h12A12,12,0,0,1,140,164Z"},null,-1),j=[P],D={key:1},E=l("path",{d:"M232,96v96a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V96Z",opacity:"0.2"},null,-1),q=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),F=[E,q],O={key:2},R=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM136,176H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm64,0H168a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM32,88V64H224V88Z"},null,-1),W=[R],L={key:3},T=l("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM32,62H224a2,2,0,0,1,2,2V90H30V64A2,2,0,0,1,32,62ZM224,194H32a2,2,0,0,1-2-2V102H226v90A2,2,0,0,1,224,194Zm-18-26a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h32A6,6,0,0,1,206,168Zm-64,0a6,6,0,0,1-6,6H120a6,6,0,0,1,0-12h16A6,6,0,0,1,142,168Z"},null,-1),U=[T],X={key:4},G=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),J=[G],K={key:5},Q=l("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM32,60H224a4,4,0,0,1,4,4V92H28V64A4,4,0,0,1,32,60ZM224,196H32a4,4,0,0,1-4-4V100H228v92A4,4,0,0,1,224,196Zm-20-28a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h32A4,4,0,0,1,204,168Zm-64,0a4,4,0,0,1-4,4H120a4,4,0,0,1,0-8h16A4,4,0,0,1,140,168Z"},null,-1),Y=[Q],a0={name:"PhCreditCard"},e0=g({...a0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,y)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",I,j)):t.value==="duotone"?(e(),o("g",D,F)):t.value==="fill"?(e(),o("g",O,W)):t.value==="light"?(e(),o("g",L,U)):t.value==="regular"?(e(),o("g",X,J)):t.value==="thin"?(e(),o("g",K,Y)):V("",!0)],16,N))}}),t0=["width","height","fill","transform"],r0={key:0},o0=l("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"},null,-1),l0=[o0],i0={key:1},n0=l("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",opacity:"0.2"},null,-1),m0=l("path",{d:"M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z"},null,-1),h0=[n0,m0],s0={key:2},u0=l("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"},null,-1),d0=[u0],A0={key:3},v0=l("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"},null,-1),Z0=[v0],H0={key:4},p0=l("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"},null,-1),g0=[p0],V0={key:5},c0=l("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"},null,-1),M0=[c0],y0={name:"PhSquaresFour"},$0=g({...y0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,y)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",r0,l0)):t.value==="duotone"?(e(),o("g",i0,h0)):t.value==="fill"?(e(),o("g",s0,d0)):t.value==="light"?(e(),o("g",A0,Z0)):t.value==="regular"?(e(),o("g",H0,g0)):t.value==="thin"?(e(),o("g",V0,M0)):V("",!0)],16,t0))}}),f0=["width","height","fill","transform"],w0={key:0},b0=l("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"},null,-1),k0=[b0],z0={key:1},_0=l("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"},null,-1),B0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),C0=[_0,B0],S0={key:2},x0=l("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"},null,-1),N0=[x0],I0={key:3},P0=l("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"},null,-1),j0=[P0],D0={key:4},E0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),q0=[E0],F0={key:5},O0=l("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"},null,-1),R0=[O0],W0={name:"PhUsersThree"},L0=g({...W0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,y)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",w0,k0)):t.value==="duotone"?(e(),o("g",z0,C0)):t.value==="fill"?(e(),o("g",S0,N0)):t.value==="light"?(e(),o("g",I0,j0)):t.value==="regular"?(e(),o("g",D0,q0)):t.value==="thin"?(e(),o("g",F0,R0)):V("",!0)],16,f0))}}),v1=g({__name:"Organization",setup(h){const u=z().params.organizationId,{result:s}=k(()=>C.get(u)),A=i(()=>s.value?[{label:"My organizations",path:"/organizations"},{label:s.value.name,path:`/organizations/${s.value.id}`}]:void 0),d=i(()=>{var n;return(n=s.value)==null?void 0:n.billingMetadata}),t=[{name:"Organization",items:[{name:"Projects",icon:$0,path:"projects"},{name:"Editors",icon:L0,path:"editors"},{name:"Billing",icon:e0,path:"billing"}]}];return(n,Z)=>{const v=_("RouterView");return e(),$(w,null,{navbar:H(()=>[p(f,{breadcrumb:A.value},null,8,["breadcrumb"])]),sidebar:H(()=>[p(S,{class:"sidebar",sections:t})]),content:H(()=>[p(b,null,{default:H(()=>[d.value?(e(),$(x,{key:0,"billing-metadata":d.value,"organization-id":B(u)},null,8,["billing-metadata","organization-id"])):V("",!0),p(v)]),_:1})]),_:1})}}});export{v1 as default}; -//# sourceMappingURL=Organization.92151ef1.js.map +import{N as $}from"./Navbar.6c76e332.js";import{B as b}from"./BaseLayout.294a6887.js";import{C as w}from"./ContentLayout.72beb65c.js";import{a as k}from"./asyncComputed.295e9e03.js";import{d as g,B as m,f as i,o as e,X as o,Z as c,R as V,eb as M,a as l,ed as z,r as _,c as y,w as H,b as p,u as B}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{O as C}from"./organization.ed97e5a8.js";import"./tables.3aa20dd6.js";import{S,_ as x}from"./Sidebar.ffb10124.js";import"./PhChats.vue.aa1113d9.js";import"./PhSignOut.vue.154299d7.js";import"./router.59916c0d.js";import"./index.063f7c9e.js";import"./Avatar.2107fa31.js";import"./index.5ccdbcb7.js";import"./index.66903cf4.js";import"./BookOutlined.5f7ad9dc.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./index.4fbbd10e.js";import"./Logo.6e947620.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[r]="b60fae5c-5a3a-48aa-a9fb-276dfc7b8b92",h._sentryDebugIdIdentifier="sentry-dbid-b60fae5c-5a3a-48aa-a9fb-276dfc7b8b92")}catch{}})();const N=["width","height","fill","transform"],I={key:0},P=l("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,24V88H36V68ZM36,188V112H220v76Zm172-24a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,164Zm-68,0a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24h12A12,12,0,0,1,140,164Z"},null,-1),j=[P],D={key:1},E=l("path",{d:"M232,96v96a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V96Z",opacity:"0.2"},null,-1),q=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),F=[E,q],O={key:2},R=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM136,176H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm64,0H168a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM32,88V64H224V88Z"},null,-1),W=[R],L={key:3},T=l("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM32,62H224a2,2,0,0,1,2,2V90H30V64A2,2,0,0,1,32,62ZM224,194H32a2,2,0,0,1-2-2V102H226v90A2,2,0,0,1,224,194Zm-18-26a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h32A6,6,0,0,1,206,168Zm-64,0a6,6,0,0,1-6,6H120a6,6,0,0,1,0-12h16A6,6,0,0,1,142,168Z"},null,-1),U=[T],X={key:4},G=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),J=[G],K={key:5},Q=l("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM32,60H224a4,4,0,0,1,4,4V92H28V64A4,4,0,0,1,32,60ZM224,196H32a4,4,0,0,1-4-4V100H228v92A4,4,0,0,1,224,196Zm-20-28a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h32A4,4,0,0,1,204,168Zm-64,0a4,4,0,0,1-4,4H120a4,4,0,0,1,0-8h16A4,4,0,0,1,140,168Z"},null,-1),Y=[Q],a0={name:"PhCreditCard"},e0=g({...a0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,f)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",I,j)):t.value==="duotone"?(e(),o("g",D,F)):t.value==="fill"?(e(),o("g",O,W)):t.value==="light"?(e(),o("g",L,U)):t.value==="regular"?(e(),o("g",X,J)):t.value==="thin"?(e(),o("g",K,Y)):V("",!0)],16,N))}}),t0=["width","height","fill","transform"],r0={key:0},o0=l("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"},null,-1),l0=[o0],i0={key:1},n0=l("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",opacity:"0.2"},null,-1),m0=l("path",{d:"M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z"},null,-1),h0=[n0,m0],s0={key:2},u0=l("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"},null,-1),d0=[u0],A0={key:3},v0=l("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"},null,-1),Z0=[v0],H0={key:4},p0=l("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"},null,-1),g0=[p0],V0={key:5},c0=l("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"},null,-1),M0=[c0],f0={name:"PhSquaresFour"},y0=g({...f0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,f)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",r0,l0)):t.value==="duotone"?(e(),o("g",i0,h0)):t.value==="fill"?(e(),o("g",s0,d0)):t.value==="light"?(e(),o("g",A0,Z0)):t.value==="regular"?(e(),o("g",H0,g0)):t.value==="thin"?(e(),o("g",V0,M0)):V("",!0)],16,t0))}}),$0=["width","height","fill","transform"],b0={key:0},w0=l("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"},null,-1),k0=[w0],z0={key:1},_0=l("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"},null,-1),B0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),C0=[_0,B0],S0={key:2},x0=l("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"},null,-1),N0=[x0],I0={key:3},P0=l("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"},null,-1),j0=[P0],D0={key:4},E0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),q0=[E0],F0={key:5},O0=l("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"},null,-1),R0=[O0],W0={name:"PhUsersThree"},L0=g({...W0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,f)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",b0,k0)):t.value==="duotone"?(e(),o("g",z0,C0)):t.value==="fill"?(e(),o("g",S0,N0)):t.value==="light"?(e(),o("g",I0,j0)):t.value==="regular"?(e(),o("g",D0,q0)):t.value==="thin"?(e(),o("g",F0,R0)):V("",!0)],16,$0))}}),v1=g({__name:"Organization",setup(h){const u=z().params.organizationId,{result:s}=k(()=>C.get(u)),A=i(()=>s.value?[{label:"My organizations",path:"/organizations"},{label:s.value.name,path:`/organizations/${s.value.id}`}]:void 0),d=i(()=>{var n;return(n=s.value)==null?void 0:n.billingMetadata}),t=[{name:"Organization",items:[{name:"Projects",icon:y0,path:"projects"},{name:"Editors",icon:L0,path:"editors"},{name:"Billing",icon:e0,path:"billing"}]}];return(n,Z)=>{const v=_("RouterView");return e(),y(b,null,{navbar:H(()=>[p($,{breadcrumb:A.value},null,8,["breadcrumb"])]),sidebar:H(()=>[p(S,{class:"sidebar",sections:t})]),content:H(()=>[p(w,null,{default:H(()=>[d.value?(e(),y(x,{key:0,"billing-metadata":d.value,"organization-id":B(u)},null,8,["billing-metadata","organization-id"])):V("",!0),p(v)]),_:1})]),_:1})}}});export{v1 as default}; +//# sourceMappingURL=Organization.b54acdcf.js.map diff --git a/abstra_statics/dist/assets/Organizations.b183c9a7.js b/abstra_statics/dist/assets/Organizations.22d1126e.js similarity index 50% rename from abstra_statics/dist/assets/Organizations.b183c9a7.js rename to abstra_statics/dist/assets/Organizations.22d1126e.js index 6d239a866..5c55b9bea 100644 --- a/abstra_statics/dist/assets/Organizations.b183c9a7.js +++ b/abstra_statics/dist/assets/Organizations.22d1126e.js @@ -1,2 +1,2 @@ -import{N as O}from"./Navbar.6541dc95.js";import{B as I}from"./BaseLayout.e1793d5b.js";import{C as _}from"./ContentLayout.f8da2f52.js";import{C as x}from"./CrudView.e4956a79.js";import{a as R}from"./ant-design.57cbe6fb.js";import{a as h}from"./asyncComputed.d0f14ed3.js";import{F as B}from"./PhArrowSquareOut.vue.340970aa.js";import{G as D}from"./PhPencil.vue.f2283e7d.js";import{d as F,eq as M,e as $,f as A,X as G,b as o,w as i,u as l,aR as V,o as b,c as j,cy as E,bK as K,cx as L,R as U,cK as q,er as P}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{O as c}from"./organization.6af6e7be.js";import"./tables.e9d41f69.js";import"./PhChats.vue.3f8c120c.js";import"./PhSignOut.vue.e09114f0.js";import"./router.87582bcc.js";import"./index.ec6b7808.js";import"./Avatar.6f67d038.js";import"./index.c2d72be7.js";import"./index.b16edfcc.js";import"./BookOutlined.a8460802.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[m]="e27e6647-a52a-4bd0-a56a-b1978c1aac6c",r._sentryDebugIdIdentifier="sentry-dbid-e27e6647-a52a-4bd0-a56a-b1978c1aac6c")}catch{}})();const be=F({__name:"Organizations",setup(r){const m=[{label:"My organizations",path:"/organizations"}],d=[{key:"name",label:"Organization Name"}],v=M(),{loading:z,result:p,refetch:g}=h(()=>c.list()),f=({key:e})=>{v.push({name:"organization",params:{organizationId:e}})},n=$({state:"idle"});function w(e){n.value={state:"renaming",organizationId:e.id,newName:e.name}}async function y(e){if(n.value.state==="renaming"&&e){const{organizationId:a,newName:t}=n.value;await c.rename(a,t),g()}n.value={state:"idle"}}const C=async e=>{const a=await c.create(e.name);f({key:a.id})},k=async({key:e})=>{var t,s;await R("Are you sure you want to delete this organization?")&&(await((s=(t=p.value)==null?void 0:t.find(u=>u.id===e))==null?void 0:s.delete()),g())},N=A(()=>{var e,a;return{columns:[{name:"Organization Name",align:"left"},{name:"Path"},{name:"",align:"right"}],rows:(a=(e=p.value)==null?void 0:e.map(t=>{var s,u;return{key:t.id,cells:[{type:"link",text:t.name,to:(s=`/organizations/${encodeURIComponent(t.id)}`)!=null?s:null},{type:"text",text:(u=t.id)!=null?u:null},{type:"actions",actions:[{icon:B,label:"Go to projects",onClick:f},{icon:D,label:"Rename",onClick:()=>w(t)},{icon:P,label:"Delete",onClick:k,dangerous:!0}]}]}}))!=null?a:[]}});return(e,a)=>(b(),G(V,null,[o(I,null,{navbar:i(()=>[o(O,{breadcrumb:m})]),content:i(()=>[o(_,null,{default:i(()=>[o(x,{"entity-name":"organization",loading:l(z),title:"My organizations",description:"An organization is your company\u2019s account. Manage editors, projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:N.value,fields:d,onCreate:C},null,8,["loading","table"])]),_:1})]),_:1}),o(l(q),{open:n.value.state==="renaming",title:"Rename organization",onCancel:a[1]||(a[1]=t=>y(!1)),onOk:a[2]||(a[2]=t=>y(!0))},{default:i(()=>[n.value.state==="renaming"?(b(),j(l(L),{key:0,layout:"vertical"},{default:i(()=>[o(l(E),{label:"New name"},{default:i(()=>[o(l(K),{value:n.value.newName,"onUpdate:value":a[0]||(a[0]=t=>n.value.newName=t)},null,8,["value"])]),_:1})]),_:1})):U("",!0)]),_:1},8,["open"])],64))}});export{be as default}; -//# sourceMappingURL=Organizations.b183c9a7.js.map +import{N as O}from"./Navbar.6c76e332.js";import{B as I}from"./BaseLayout.294a6887.js";import{C as _}from"./ContentLayout.72beb65c.js";import{C as x}from"./CrudView.b65b5675.js";import{a as R}from"./ant-design.38477595.js";import{a as h}from"./asyncComputed.295e9e03.js";import{F as B}from"./PhArrowSquareOut.vue.188b81dc.js";import{G as D}from"./PhPencil.vue.a2604470.js";import{d as F,eq as M,e as $,f as A,X as G,b as o,w as i,u as l,aR as V,o as b,c as j,cy as E,bK as K,cx as L,R as U,cK as q,er as P}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{O as d}from"./organization.ed97e5a8.js";import"./tables.3aa20dd6.js";import"./PhChats.vue.aa1113d9.js";import"./PhSignOut.vue.154299d7.js";import"./router.59916c0d.js";import"./index.063f7c9e.js";import"./Avatar.2107fa31.js";import"./index.5ccdbcb7.js";import"./index.66903cf4.js";import"./BookOutlined.5f7ad9dc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[m]="a75fdf9b-b2aa-4437-a293-a41b643b490f",r._sentryDebugIdIdentifier="sentry-dbid-a75fdf9b-b2aa-4437-a293-a41b643b490f")}catch{}})();const be=F({__name:"Organizations",setup(r){const m=[{label:"My organizations",path:"/organizations"}],c=[{key:"name",label:"Organization Name"}],v=M(),{loading:z,result:p,refetch:f}=h(()=>d.list()),g=({key:e})=>{v.push({name:"organization",params:{organizationId:e}})},n=$({state:"idle"});function w(e){n.value={state:"renaming",organizationId:e.id,newName:e.name}}async function y(e){if(n.value.state==="renaming"&&e){const{organizationId:a,newName:t}=n.value;await d.rename(a,t),f()}n.value={state:"idle"}}const C=async e=>{const a=await d.create(e.name);g({key:a.id})},k=async({key:e})=>{var t,s;await R("Are you sure you want to delete this organization?")&&(await((s=(t=p.value)==null?void 0:t.find(u=>u.id===e))==null?void 0:s.delete()),f())},N=A(()=>{var e,a;return{columns:[{name:"Organization Name",align:"left"},{name:"Path"},{name:"",align:"right"}],rows:(a=(e=p.value)==null?void 0:e.map(t=>{var s,u;return{key:t.id,cells:[{type:"link",text:t.name,to:(s=`/organizations/${encodeURIComponent(t.id)}`)!=null?s:null},{type:"text",text:(u=t.id)!=null?u:null},{type:"actions",actions:[{icon:B,label:"Go to projects",onClick:g},{icon:D,label:"Rename",onClick:()=>w(t)},{icon:P,label:"Delete",onClick:k,dangerous:!0}]}]}}))!=null?a:[]}});return(e,a)=>(b(),G(V,null,[o(I,null,{navbar:i(()=>[o(O,{breadcrumb:m})]),content:i(()=>[o(_,null,{default:i(()=>[o(x,{"entity-name":"organization",loading:l(z),title:"My organizations",description:"An organization is your company\u2019s account. Manage editors, projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:N.value,fields:c,onCreate:C},null,8,["loading","table"])]),_:1})]),_:1}),o(l(q),{open:n.value.state==="renaming",title:"Rename organization",onCancel:a[1]||(a[1]=t=>y(!1)),onOk:a[2]||(a[2]=t=>y(!0))},{default:i(()=>[n.value.state==="renaming"?(b(),j(l(L),{key:0,layout:"vertical"},{default:i(()=>[o(l(E),{label:"New name"},{default:i(()=>[o(l(K),{value:n.value.newName,"onUpdate:value":a[0]||(a[0]=t=>n.value.newName=t)},null,8,["value"])]),_:1})]),_:1})):U("",!0)]),_:1},8,["open"])],64))}});export{be as default}; +//# sourceMappingURL=Organizations.22d1126e.js.map diff --git a/abstra_statics/dist/assets/PhArrowClockwise.vue.5c4db05c.js b/abstra_statics/dist/assets/PhArrowClockwise.vue.2725755a.js similarity index 76% rename from abstra_statics/dist/assets/PhArrowClockwise.vue.5c4db05c.js rename to abstra_statics/dist/assets/PhArrowClockwise.vue.2725755a.js index ae0d60f7a..c10fbcf0d 100644 --- a/abstra_statics/dist/assets/PhArrowClockwise.vue.5c4db05c.js +++ b/abstra_statics/dist/assets/PhArrowClockwise.vue.2725755a.js @@ -1,2 +1,2 @@ -import{d as v,B as d,f as i,o as l,X as t,Z as y,R as m,eb as w,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="f3268429-0aec-46aa-a4d8-144144b1f01a",o._sentryDebugIdIdentifier="sentry-dbid-f3268429-0aec-46aa-a4d8-144144b1f01a")}catch{}})();const A=["width","height","fill","transform"],b={key:0},k=r("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"},null,-1),H=[k],L={key:1},Z=r("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),M=r("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),V=[Z,M],B={key:2},C=r("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"},null,-1),D=[C],I={key:3},S=r("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"},null,-1),_=[S],x={key:4},z=r("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),N=[z],E={key:5},P=r("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"},null,-1),$=[P],j={name:"PhArrowClockwise"},R=v({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),h=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:h}),c=i(()=>{var e;return(e=a.color)!=null?e:g}),f=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(l(),t("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:f.value},e.$attrs),[y(e.$slots,"default"),n.value==="bold"?(l(),t("g",b,H)):n.value==="duotone"?(l(),t("g",L,V)):n.value==="fill"?(l(),t("g",B,D)):n.value==="light"?(l(),t("g",I,_)):n.value==="regular"?(l(),t("g",x,N)):n.value==="thin"?(l(),t("g",E,$)):m("",!0)],16,A))}});export{R as G}; -//# sourceMappingURL=PhArrowClockwise.vue.5c4db05c.js.map +import{d as f,B as d,f as i,o as l,X as t,Z as y,R as m,eb as w,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="0264b6ef-8916-429e-b342-6318d28852b5",o._sentryDebugIdIdentifier="sentry-dbid-0264b6ef-8916-429e-b342-6318d28852b5")}catch{}})();const b=["width","height","fill","transform"],A={key:0},k=r("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"},null,-1),H=[k],L={key:1},Z=r("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),M=r("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),V=[Z,M],B={key:2},C=r("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"},null,-1),D=[C],I={key:3},S=r("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"},null,-1),_=[S],x={key:4},z=r("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),N=[z],E={key:5},P=r("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"},null,-1),$=[P],j={name:"PhArrowClockwise"},R=f({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),h=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:h}),c=i(()=>{var e;return(e=a.color)!=null?e:g}),v=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(l(),t("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:v.value},e.$attrs),[y(e.$slots,"default"),n.value==="bold"?(l(),t("g",A,H)):n.value==="duotone"?(l(),t("g",L,V)):n.value==="fill"?(l(),t("g",B,D)):n.value==="light"?(l(),t("g",I,_)):n.value==="regular"?(l(),t("g",x,N)):n.value==="thin"?(l(),t("g",E,$)):m("",!0)],16,b))}});export{R as G}; +//# sourceMappingURL=PhArrowClockwise.vue.2725755a.js.map diff --git a/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.548df89b.js b/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.8fbc5885.js similarity index 69% rename from abstra_statics/dist/assets/PhArrowCounterClockwise.vue.548df89b.js rename to abstra_statics/dist/assets/PhArrowCounterClockwise.vue.8fbc5885.js index 61cedb78f..63898f0c2 100644 --- a/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.548df89b.js +++ b/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.8fbc5885.js @@ -1,2 +1,2 @@ -import{d as y,B as d,f as i,o as t,X as l,Z as m,R as w,eb as A,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="e137694d-638f-4e31-99d0-06fab6ea5f53",o._sentryDebugIdIdentifier="sentry-dbid-e137694d-638f-4e31-99d0-06fab6ea5f53")}catch{}})();const v=["width","height","fill","transform"],H={key:0},V=r("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"},null,-1),b=[V],L={key:1},k=r("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Z=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),M=[k,Z],B={key:2},C=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"},null,-1),D=[C],I={key:3},S=r("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"},null,-1),_=[S],x={key:4},z=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),N=[z],E={key:5},P=r("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"},null,-1),$=[P],j={name:"PhArrowCounterClockwise"},R=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),g=d("size","1em"),f=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),c=i(()=>{var e;return(e=a.color)!=null?e:f}),h=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(t(),l("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:h.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),l("g",H,b)):n.value==="duotone"?(t(),l("g",L,M)):n.value==="fill"?(t(),l("g",B,D)):n.value==="light"?(t(),l("g",I,_)):n.value==="regular"?(t(),l("g",x,N)):n.value==="thin"?(t(),l("g",E,$)):w("",!0)],16,v))}});export{R as G}; -//# sourceMappingURL=PhArrowCounterClockwise.vue.548df89b.js.map +import{d as y,B as n,f as i,o as t,X as l,Z as m,R as w,eb as A,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="802201d5-6fb7-4bee-9edd-ca64d896c1f4",o._sentryDebugIdIdentifier="sentry-dbid-802201d5-6fb7-4bee-9edd-ca64d896c1f4")}catch{}})();const v=["width","height","fill","transform"],H={key:0},b=r("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"},null,-1),V=[b],L={key:1},k=r("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Z=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),M=[k,Z],B={key:2},C=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"},null,-1),D=[C],I={key:3},S=r("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"},null,-1),_=[S],x={key:4},z=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),N=[z],E={key:5},P=r("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"},null,-1),$=[P],j={name:"PhArrowCounterClockwise"},R=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),g=n("size","1em"),c=n("color","currentColor"),p=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),f=i(()=>{var e;return(e=a.color)!=null?e:c}),h=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(t(),l("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:f.value,transform:h.value},e.$attrs),[m(e.$slots,"default"),d.value==="bold"?(t(),l("g",H,V)):d.value==="duotone"?(t(),l("g",L,M)):d.value==="fill"?(t(),l("g",B,D)):d.value==="light"?(t(),l("g",I,_)):d.value==="regular"?(t(),l("g",x,N)):d.value==="thin"?(t(),l("g",E,$)):w("",!0)],16,v))}});export{R as G}; +//# sourceMappingURL=PhArrowCounterClockwise.vue.8fbc5885.js.map diff --git a/abstra_statics/dist/assets/PhArrowSquareOut.vue.340970aa.js b/abstra_statics/dist/assets/PhArrowSquareOut.vue.188b81dc.js similarity index 68% rename from abstra_statics/dist/assets/PhArrowSquareOut.vue.340970aa.js rename to abstra_statics/dist/assets/PhArrowSquareOut.vue.188b81dc.js index f66655eec..c9babacd7 100644 --- a/abstra_statics/dist/assets/PhArrowSquareOut.vue.340970aa.js +++ b/abstra_statics/dist/assets/PhArrowSquareOut.vue.188b81dc.js @@ -1,2 +1,2 @@ -import{d as H,B as n,f as i,o as t,X as l,Z as m,R as c,eb as v,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="1294cdf1-7081-4b3f-9a58-229bfa8862d2",o._sentryDebugIdIdentifier="sentry-dbid-1294cdf1-7081-4b3f-9a58-229bfa8862d2")}catch{}})();const y=["width","height","fill","transform"],w={key:0},b=r("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"},null,-1),A=[b],Z={key:1},k=r("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"},null,-1),L=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),M=[k,L],B={key:2},S=r("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"},null,-1),I=[S],_={key:3},x=r("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"},null,-1),z=[x],C={key:4},D=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),N=[D],E={key:5},P=r("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"},null,-1),$=[P],j={name:"PhArrowSquareOut"},F=H({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,s=n("weight","regular"),h=n("size","1em"),V=n("color","currentColor"),g=n("mirrored",!1),d=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:h}),f=i(()=>{var a;return(a=e.color)!=null?a:V}),p=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,q)=>(t(),l("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:f.value,transform:p.value},a.$attrs),[m(a.$slots,"default"),d.value==="bold"?(t(),l("g",w,A)):d.value==="duotone"?(t(),l("g",Z,M)):d.value==="fill"?(t(),l("g",B,I)):d.value==="light"?(t(),l("g",_,z)):d.value==="regular"?(t(),l("g",C,N)):d.value==="thin"?(t(),l("g",E,$)):c("",!0)],16,y))}});export{F}; -//# sourceMappingURL=PhArrowSquareOut.vue.340970aa.js.map +import{d as H,B as n,f as i,o as t,X as l,Z as f,R as m,eb as v,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="4ab05d63-1cc6-467a-a0c2-dfc124d2f744",o._sentryDebugIdIdentifier="sentry-dbid-4ab05d63-1cc6-467a-a0c2-dfc124d2f744")}catch{}})();const y=["width","height","fill","transform"],w={key:0},A=r("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"},null,-1),Z=[A],b={key:1},k=r("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"},null,-1),L=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),M=[k,L],B={key:2},S=r("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"},null,-1),I=[S],_={key:3},x=r("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"},null,-1),z=[x],C={key:4},D=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),N=[D],E={key:5},P=r("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"},null,-1),$=[P],j={name:"PhArrowSquareOut"},F=H({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,s=n("weight","regular"),h=n("size","1em"),c=n("color","currentColor"),V=n("mirrored",!1),d=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:h}),g=i(()=>{var a;return(a=e.color)!=null?a:c}),p=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(a,q)=>(t(),l("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:g.value,transform:p.value},a.$attrs),[f(a.$slots,"default"),d.value==="bold"?(t(),l("g",w,Z)):d.value==="duotone"?(t(),l("g",b,M)):d.value==="fill"?(t(),l("g",B,I)):d.value==="light"?(t(),l("g",_,z)):d.value==="regular"?(t(),l("g",C,N)):d.value==="thin"?(t(),l("g",E,$)):m("",!0)],16,y))}});export{F}; +//# sourceMappingURL=PhArrowSquareOut.vue.188b81dc.js.map diff --git a/abstra_statics/dist/assets/PhBug.vue.e9805eb3.js b/abstra_statics/dist/assets/PhBug.vue.00bc4255.js similarity index 82% rename from abstra_statics/dist/assets/PhBug.vue.e9805eb3.js rename to abstra_statics/dist/assets/PhBug.vue.00bc4255.js index 2bf11d4ef..03c4728ad 100644 --- a/abstra_statics/dist/assets/PhBug.vue.e9805eb3.js +++ b/abstra_statics/dist/assets/PhBug.vue.00bc4255.js @@ -1,2 +1,2 @@ -import{d as g,B as d,f as n,X as l,Z as L,R as h,eb as p,o as t,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="07a7d29d-7fd3-4087-a460-46619a40df38",o._sentryDebugIdIdentifier="sentry-dbid-07a7d29d-7fd3-4087-a460-46619a40df38")}catch{}})();const f=["width","height","fill","transform"],M={key:0},c=r("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"},null,-1),y=[c],w={key:1},V=r("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"},null,-1),b=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),k=[V,b],B={key:2},D=r("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),N=[C],E={key:5},P=r("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"},null,-1),$=[P],j={name:"PhBug"},R=g({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,A=d("weight","regular"),s=d("size","1em"),Z=d("color","currentColor"),u=d("mirrored",!1),v=n(()=>{var a;return(a=e.weight)!=null?a:A}),i=n(()=>{var a;return(a=e.size)!=null?a:s}),H=n(()=>{var a;return(a=e.color)!=null?a:Z}),m=n(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(a,q)=>(t(),l("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:i.value,height:i.value,fill:H.value,transform:m.value},a.$attrs),[L(a.$slots,"default"),v.value==="bold"?(t(),l("g",M,y)):v.value==="duotone"?(t(),l("g",w,k)):v.value==="fill"?(t(),l("g",B,I)):v.value==="light"?(t(),l("g",S,x)):v.value==="regular"?(t(),l("g",z,N)):v.value==="thin"?(t(),l("g",E,$)):h("",!0)],16,f))}});export{R as G}; -//# sourceMappingURL=PhBug.vue.e9805eb3.js.map +import{d as g,B as n,f as A,X as l,Z as L,R as h,eb as p,o as t,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="8dca948c-2487-4769-9452-05f9e506f548",o._sentryDebugIdIdentifier="sentry-dbid-8dca948c-2487-4769-9452-05f9e506f548")}catch{}})();const c=["width","height","fill","transform"],f={key:0},M=r("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"},null,-1),y=[M],w={key:1},V=r("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"},null,-1),b=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),k=[V,b],B={key:2},D=r("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),N=[C],E={key:5},P=r("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"},null,-1),$=[P],j={name:"PhBug"},R=g({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,d=n("weight","regular"),s=n("size","1em"),Z=n("color","currentColor"),u=n("mirrored",!1),v=A(()=>{var a;return(a=e.weight)!=null?a:d}),i=A(()=>{var a;return(a=e.size)!=null?a:s}),H=A(()=>{var a;return(a=e.color)!=null?a:Z}),m=A(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(a,q)=>(t(),l("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:i.value,height:i.value,fill:H.value,transform:m.value},a.$attrs),[L(a.$slots,"default"),v.value==="bold"?(t(),l("g",f,y)):v.value==="duotone"?(t(),l("g",w,k)):v.value==="fill"?(t(),l("g",B,I)):v.value==="light"?(t(),l("g",S,x)):v.value==="regular"?(t(),l("g",z,N)):v.value==="thin"?(t(),l("g",E,$)):h("",!0)],16,c))}});export{R as G}; +//# sourceMappingURL=PhBug.vue.00bc4255.js.map diff --git a/abstra_statics/dist/assets/PhCaretRight.vue.d968b597.js b/abstra_statics/dist/assets/PhCaretRight.vue.f72488ac.js similarity index 76% rename from abstra_statics/dist/assets/PhCaretRight.vue.d968b597.js rename to abstra_statics/dist/assets/PhCaretRight.vue.f72488ac.js index 36ab0b1d1..085aaabfb 100644 --- a/abstra_statics/dist/assets/PhCaretRight.vue.d968b597.js +++ b/abstra_statics/dist/assets/PhCaretRight.vue.f72488ac.js @@ -1,2 +1,2 @@ -import{d as y,B as d,f as i,o as t,X as a,Z as m,R as v,eb as w,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="92c50e59-8545-46fd-8883-9f081aa294ed",o._sentryDebugIdIdentifier="sentry-dbid-92c50e59-8545-46fd-8883-9f081aa294ed")}catch{}})();const b=["width","height","fill","transform"],k={key:0},Z=r("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"},null,-1),A=[Z],M={key:1},B=r("path",{d:"M176,128,96,208V48Z",opacity:"0.2"},null,-1),V=r("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"},null,-1),L=[B,V],C={key:2},D=r("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),E=[N],P={key:5},R=r("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"},null,-1),$=[R],j={name:"PhCaretRight"},W=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=d("weight","regular"),g=d("size","1em"),p=d("color","currentColor"),c=d("mirrored",!1),n=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:g}),f=i(()=>{var e;return(e=l.color)!=null?e:p}),h=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(e,q)=>(t(),a("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:f.value,transform:h.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),a("g",k,A)):n.value==="duotone"?(t(),a("g",M,L)):n.value==="fill"?(t(),a("g",C,I)):n.value==="light"?(t(),a("g",S,x)):n.value==="regular"?(t(),a("g",z,E)):n.value==="thin"?(t(),a("g",P,$)):v("",!0)],16,b))}});export{W as G}; -//# sourceMappingURL=PhCaretRight.vue.d968b597.js.map +import{d as y,B as d,f as i,o as t,X as a,Z as m,R as v,eb as w,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="c92c456a-aef9-4198-9569-b7e006a48d58",o._sentryDebugIdIdentifier="sentry-dbid-c92c456a-aef9-4198-9569-b7e006a48d58")}catch{}})();const b=["width","height","fill","transform"],k={key:0},Z=r("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"},null,-1),A=[Z],M={key:1},B=r("path",{d:"M176,128,96,208V48Z",opacity:"0.2"},null,-1),V=r("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"},null,-1),L=[B,V],C={key:2},D=r("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),E=[N],P={key:5},R=r("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"},null,-1),$=[R],j={name:"PhCaretRight"},W=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=d("weight","regular"),g=d("size","1em"),p=d("color","currentColor"),c=d("mirrored",!1),n=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:g}),h=i(()=>{var e;return(e=l.color)!=null?e:p}),f=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(e,q)=>(t(),a("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:h.value,transform:f.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),a("g",k,A)):n.value==="duotone"?(t(),a("g",M,L)):n.value==="fill"?(t(),a("g",C,I)):n.value==="light"?(t(),a("g",S,x)):n.value==="regular"?(t(),a("g",z,E)):n.value==="thin"?(t(),a("g",P,$)):v("",!0)],16,b))}});export{W as G}; +//# sourceMappingURL=PhCaretRight.vue.f72488ac.js.map diff --git a/abstra_statics/dist/assets/PhChats.vue.3f8c120c.js b/abstra_statics/dist/assets/PhChats.vue.aa1113d9.js similarity index 85% rename from abstra_statics/dist/assets/PhChats.vue.3f8c120c.js rename to abstra_statics/dist/assets/PhChats.vue.aa1113d9.js index 8ca8805d4..76ae016a5 100644 --- a/abstra_statics/dist/assets/PhChats.vue.3f8c120c.js +++ b/abstra_statics/dist/assets/PhChats.vue.aa1113d9.js @@ -1,2 +1,2 @@ -import{d as c,B as n,f as V,o as l,X as t,Z as v,R as f,eb as y,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="511043cd-2d19-40e7-8ddc-60f89396a108",o._sentryDebugIdIdentifier="sentry-dbid-511043cd-2d19-40e7-8ddc-60f89396a108")}catch{}})();const A=["width","height","fill","transform"],m={key:0},Z=r("path",{d:"M216,76H188V48a20,20,0,0,0-20-20H40A20,20,0,0,0,20,48V176a12,12,0,0,0,19.54,9.33l28.46-23V184a20,20,0,0,0,20,20h92.17l36.29,29.33A12,12,0,0,0,236,224V96A20,20,0,0,0,216,76ZM44,150.87V52H164v80H71.58A12,12,0,0,0,64,134.67Zm168,48-20-16.2a12,12,0,0,0-7.54-2.67H92V156h76a20,20,0,0,0,20-20V100h24Z"},null,-1),M=[Z],w={key:1},b=r("path",{d:"M224,96V224l-39.58-32H88a8,8,0,0,1-8-8V144h88a8,8,0,0,0,8-8V88h40A8,8,0,0,1,224,96Z",opacity:"0.2"},null,-1),L=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),k=[b,L],B={key:2},C=r("path",{d:"M232,96a16,16,0,0,0-16-16H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8Zm-42.55,89.78a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32V207.25Z"},null,-1),D=[C],I={key:3},S=r("path",{d:"M216,82H182V48a14,14,0,0,0-14-14H40A14,14,0,0,0,26,48V176a6,6,0,0,0,3.42,5.41A5.86,5.86,0,0,0,32,182a6,6,0,0,0,3.77-1.33L73.71,150H74v34a14,14,0,0,0,14,14h94.29l37.94,30.67A6,6,0,0,0,224,230a5.86,5.86,0,0,0,2.58-.59A6,6,0,0,0,230,224V96A14,14,0,0,0,216,82ZM71.58,138a6,6,0,0,0-3.77,1.33L38,163.43V48a2,2,0,0,1,2-2H168a2,2,0,0,1,2,2v88a2,2,0,0,1-2,2ZM218,211.43l-29.81-24.1a6,6,0,0,0-3.77-1.33H88a2,2,0,0,1-2-2V150h82a14,14,0,0,0,14-14V94h34a2,2,0,0,1,2,2Z"},null,-1),_=[S],x={key:4},z=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),N=[z],E={key:5},P=r("path",{d:"M216,84H180V48a12,12,0,0,0-12-12H40A12,12,0,0,0,28,48V176a4,4,0,0,0,4,4,4,4,0,0,0,2.51-.89L73,148h3v36a12,12,0,0,0,12,12h95l38.49,31.11A4,4,0,0,0,224,228a4,4,0,0,0,4-4V96A12,12,0,0,0,216,84ZM71.58,140a4,4,0,0,0-2.51.89L36,167.62V48a4,4,0,0,1,4-4H168a4,4,0,0,1,4,4v88a4,4,0,0,1-4,4ZM220,215.62l-33.07-26.73a4,4,0,0,0-2.51-.89H88a4,4,0,0,1-4-4V148h84a12,12,0,0,0,12-12V92h36a4,4,0,0,1,4,4Z"},null,-1),$=[P],j={name:"PhChats"},R=c({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,h=n("weight","regular"),i=n("size","1em"),u=n("color","currentColor"),H=n("mirrored",!1),d=V(()=>{var a;return(a=e.weight)!=null?a:h}),s=V(()=>{var a;return(a=e.size)!=null?a:i}),g=V(()=>{var a;return(a=e.color)!=null?a:u}),p=V(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:g.value,transform:p.value},a.$attrs),[v(a.$slots,"default"),d.value==="bold"?(l(),t("g",m,M)):d.value==="duotone"?(l(),t("g",w,k)):d.value==="fill"?(l(),t("g",B,D)):d.value==="light"?(l(),t("g",I,_)):d.value==="regular"?(l(),t("g",x,N)):d.value==="thin"?(l(),t("g",E,$)):f("",!0)],16,A))}});export{R as G}; -//# sourceMappingURL=PhChats.vue.3f8c120c.js.map +import{d as v,B as n,f as V,o as l,X as t,Z as f,R as c,eb as y,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="7d9e4660-a9a0-4088-a330-fdbd66deb6e4",o._sentryDebugIdIdentifier="sentry-dbid-7d9e4660-a9a0-4088-a330-fdbd66deb6e4")}catch{}})();const A=["width","height","fill","transform"],m={key:0},Z=r("path",{d:"M216,76H188V48a20,20,0,0,0-20-20H40A20,20,0,0,0,20,48V176a12,12,0,0,0,19.54,9.33l28.46-23V184a20,20,0,0,0,20,20h92.17l36.29,29.33A12,12,0,0,0,236,224V96A20,20,0,0,0,216,76ZM44,150.87V52H164v80H71.58A12,12,0,0,0,64,134.67Zm168,48-20-16.2a12,12,0,0,0-7.54-2.67H92V156h76a20,20,0,0,0,20-20V100h24Z"},null,-1),M=[Z],w={key:1},b=r("path",{d:"M224,96V224l-39.58-32H88a8,8,0,0,1-8-8V144h88a8,8,0,0,0,8-8V88h40A8,8,0,0,1,224,96Z",opacity:"0.2"},null,-1),L=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),k=[b,L],B={key:2},C=r("path",{d:"M232,96a16,16,0,0,0-16-16H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8Zm-42.55,89.78a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32V207.25Z"},null,-1),D=[C],I={key:3},S=r("path",{d:"M216,82H182V48a14,14,0,0,0-14-14H40A14,14,0,0,0,26,48V176a6,6,0,0,0,3.42,5.41A5.86,5.86,0,0,0,32,182a6,6,0,0,0,3.77-1.33L73.71,150H74v34a14,14,0,0,0,14,14h94.29l37.94,30.67A6,6,0,0,0,224,230a5.86,5.86,0,0,0,2.58-.59A6,6,0,0,0,230,224V96A14,14,0,0,0,216,82ZM71.58,138a6,6,0,0,0-3.77,1.33L38,163.43V48a2,2,0,0,1,2-2H168a2,2,0,0,1,2,2v88a2,2,0,0,1-2,2ZM218,211.43l-29.81-24.1a6,6,0,0,0-3.77-1.33H88a2,2,0,0,1-2-2V150h82a14,14,0,0,0,14-14V94h34a2,2,0,0,1,2,2Z"},null,-1),_=[S],x={key:4},z=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),N=[z],E={key:5},P=r("path",{d:"M216,84H180V48a12,12,0,0,0-12-12H40A12,12,0,0,0,28,48V176a4,4,0,0,0,4,4,4,4,0,0,0,2.51-.89L73,148h3v36a12,12,0,0,0,12,12h95l38.49,31.11A4,4,0,0,0,224,228a4,4,0,0,0,4-4V96A12,12,0,0,0,216,84ZM71.58,140a4,4,0,0,0-2.51.89L36,167.62V48a4,4,0,0,1,4-4H168a4,4,0,0,1,4,4v88a4,4,0,0,1-4,4ZM220,215.62l-33.07-26.73a4,4,0,0,0-2.51-.89H88a4,4,0,0,1-4-4V148h84a12,12,0,0,0,12-12V92h36a4,4,0,0,1,4,4Z"},null,-1),$=[P],j={name:"PhChats"},R=v({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,h=n("weight","regular"),i=n("size","1em"),u=n("color","currentColor"),H=n("mirrored",!1),d=V(()=>{var a;return(a=e.weight)!=null?a:h}),s=V(()=>{var a;return(a=e.size)!=null?a:i}),g=V(()=>{var a;return(a=e.color)!=null?a:u}),p=V(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:g.value,transform:p.value},a.$attrs),[f(a.$slots,"default"),d.value==="bold"?(l(),t("g",m,M)):d.value==="duotone"?(l(),t("g",w,k)):d.value==="fill"?(l(),t("g",B,D)):d.value==="light"?(l(),t("g",I,_)):d.value==="regular"?(l(),t("g",x,N)):d.value==="thin"?(l(),t("g",E,$)):c("",!0)],16,A))}});export{R as G}; +//# sourceMappingURL=PhChats.vue.aa1113d9.js.map diff --git a/abstra_statics/dist/assets/PhCheckCircle.vue.aa5f3146.js b/abstra_statics/dist/assets/PhCheckCircle.vue.d8163a77.js similarity index 71% rename from abstra_statics/dist/assets/PhCheckCircle.vue.aa5f3146.js rename to abstra_statics/dist/assets/PhCheckCircle.vue.d8163a77.js index 926dbe256..e95e0e885 100644 --- a/abstra_statics/dist/assets/PhCheckCircle.vue.aa5f3146.js +++ b/abstra_statics/dist/assets/PhCheckCircle.vue.d8163a77.js @@ -1,2 +1,2 @@ -import{d as f,B as n,f as i,X as l,Z as y,R as Z,eb as v,o as t,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="3f25c1e0-516e-48e4-8deb-4d53cab59a72",o._sentryDebugIdIdentifier="sentry-dbid-3f25c1e0-516e-48e4-8deb-4d53cab59a72")}catch{}})();const A=["width","height","fill","transform"],w={key:0},b=r("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),M=[b],k={key:1},B=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),L=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),C=[B,L],D={key:2},I=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),S=[I],_={key:3},x=r("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),z=[x],N={key:4},E=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),P=[E],V={key:5},$=r("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),j=[$],q={name:"PhCheckCircle"},R=f({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),g=n("size","1em"),c=n("color","currentColor"),p=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),m=i(()=>{var e;return(e=a.color)!=null?e:c}),h=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:m.value,transform:h.value},e.$attrs),[y(e.$slots,"default"),d.value==="bold"?(t(),l("g",w,M)):d.value==="duotone"?(t(),l("g",k,C)):d.value==="fill"?(t(),l("g",D,S)):d.value==="light"?(t(),l("g",_,z)):d.value==="regular"?(t(),l("g",N,P)):d.value==="thin"?(t(),l("g",V,j)):Z("",!0)],16,A))}});export{R as H}; -//# sourceMappingURL=PhCheckCircle.vue.aa5f3146.js.map +import{d as h,B as n,f as i,X as l,Z as y,R as Z,eb as v,o as t,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="e4ad1201-9bfd-4b1a-8734-95f3d500c2a5",o._sentryDebugIdIdentifier="sentry-dbid-e4ad1201-9bfd-4b1a-8734-95f3d500c2a5")}catch{}})();const A=["width","height","fill","transform"],w={key:0},b=r("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),M=[b],k={key:1},B=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),L=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),C=[B,L],D={key:2},I=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),S=[I],_={key:3},x=r("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),z=[x],N={key:4},E=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),P=[E],V={key:5},$=r("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),j=[$],q={name:"PhCheckCircle"},R=h({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),g=n("size","1em"),p=n("color","currentColor"),m=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),c=i(()=>{var e;return(e=a.color)!=null?e:p}),f=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:f.value},e.$attrs),[y(e.$slots,"default"),d.value==="bold"?(t(),l("g",w,M)):d.value==="duotone"?(t(),l("g",k,C)):d.value==="fill"?(t(),l("g",D,S)):d.value==="light"?(t(),l("g",_,z)):d.value==="regular"?(t(),l("g",N,P)):d.value==="thin"?(t(),l("g",V,j)):Z("",!0)],16,A))}});export{R as H}; +//# sourceMappingURL=PhCheckCircle.vue.d8163a77.js.map diff --git a/abstra_statics/dist/assets/PhCopy.vue.300f48e4.js b/abstra_statics/dist/assets/PhCopy.vue.0ae3f8ab.js similarity index 70% rename from abstra_statics/dist/assets/PhCopy.vue.300f48e4.js rename to abstra_statics/dist/assets/PhCopy.vue.0ae3f8ab.js index b47e590bf..bd6662cd6 100644 --- a/abstra_statics/dist/assets/PhCopy.vue.300f48e4.js +++ b/abstra_statics/dist/assets/PhCopy.vue.0ae3f8ab.js @@ -1,2 +1,2 @@ -import{d as p,B as V,f as n,o as t,X as l,Z as f,R as m,eb as y,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="2d625a4c-c20c-4ef5-9026-513aa4f77398",o._sentryDebugIdIdentifier="sentry-dbid-2d625a4c-c20c-4ef5-9026-513aa4f77398")}catch{}})();const Z=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"},null,-1),M=[w],b={key:1},k=r("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"},null,-1),A=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),B=[k,A],I={key:2},C=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),D=[C],S={key:3},_=r("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"},null,-1),j=[$],q={name:"PhCopy"},W=p({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,d=V("weight","regular"),i=V("size","1em"),u=V("color","currentColor"),h=V("mirrored",!1),H=n(()=>{var e;return(e=a.weight)!=null?e:d}),s=n(()=>{var e;return(e=a.size)!=null?e:i}),c=n(()=>{var e;return(e=a.color)!=null?e:u}),g=n(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:c.value,transform:g.value},e.$attrs),[f(e.$slots,"default"),H.value==="bold"?(t(),l("g",v,M)):H.value==="duotone"?(t(),l("g",b,B)):H.value==="fill"?(t(),l("g",I,D)):H.value==="light"?(t(),l("g",S,x)):H.value==="regular"?(t(),l("g",z,E)):H.value==="thin"?(t(),l("g",P,j)):m("",!0)],16,Z))}});export{W as I}; -//# sourceMappingURL=PhCopy.vue.300f48e4.js.map +import{d as p,B as V,f as n,o as t,X as l,Z as m,R as y,eb as f,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="94ce34bd-66ce-4e09-8391-10c4da34475b",o._sentryDebugIdIdentifier="sentry-dbid-94ce34bd-66ce-4e09-8391-10c4da34475b")}catch{}})();const Z=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"},null,-1),b=[w],M={key:1},k=r("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"},null,-1),A=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),B=[k,A],I={key:2},C=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),D=[C],S={key:3},_=r("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"},null,-1),j=[$],q={name:"PhCopy"},W=p({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,d=V("weight","regular"),i=V("size","1em"),u=V("color","currentColor"),h=V("mirrored",!1),H=n(()=>{var e;return(e=a.weight)!=null?e:d}),s=n(()=>{var e;return(e=a.size)!=null?e:i}),c=n(()=>{var e;return(e=a.color)!=null?e:u}),g=n(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:c.value,transform:g.value},e.$attrs),[m(e.$slots,"default"),H.value==="bold"?(t(),l("g",v,b)):H.value==="duotone"?(t(),l("g",M,B)):H.value==="fill"?(t(),l("g",I,D)):H.value==="light"?(t(),l("g",S,x)):H.value==="regular"?(t(),l("g",z,E)):H.value==="thin"?(t(),l("g",P,j)):y("",!0)],16,Z))}});export{W as I}; +//# sourceMappingURL=PhCopy.vue.0ae3f8ab.js.map diff --git a/abstra_statics/dist/assets/PhCopySimple.vue.39f63820.js b/abstra_statics/dist/assets/PhCopySimple.vue.992b99ff.js similarity index 60% rename from abstra_statics/dist/assets/PhCopySimple.vue.39f63820.js rename to abstra_statics/dist/assets/PhCopySimple.vue.992b99ff.js index 5b9cc0bbd..2dedd0109 100644 --- a/abstra_statics/dist/assets/PhCopySimple.vue.39f63820.js +++ b/abstra_statics/dist/assets/PhCopySimple.vue.992b99ff.js @@ -1,2 +1,2 @@ -import{d as m,B as n,f as i,o as t,X as l,Z as c,R as h,eb as y,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="28f1ea64-a30d-4946-9d4d-17df6a5170c3",o._sentryDebugIdIdentifier="sentry-dbid-28f1ea64-a30d-4946-9d4d-17df6a5170c3")}catch{}})();const Z=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"},null,-1),A=[w],M={key:1},b=r("path",{d:"M184,72V216H40V72Z",opacity:"0.2"},null,-1),k=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),B=[b,k],I={key:2},S=r("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"},null,-1),C=[S],D={key:3},_=r("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"},null,-1),j=[$],q={name:"PhCopySimple"},W=m({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),u=n("size","1em"),V=n("color","currentColor"),p=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),H=i(()=>{var e;return(e=a.size)!=null?e:u}),g=i(()=>{var e;return(e=a.color)!=null?e:V}),f=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:g.value,transform:f.value},e.$attrs),[c(e.$slots,"default"),d.value==="bold"?(t(),l("g",v,A)):d.value==="duotone"?(t(),l("g",M,B)):d.value==="fill"?(t(),l("g",I,C)):d.value==="light"?(t(),l("g",D,x)):d.value==="regular"?(t(),l("g",z,E)):d.value==="thin"?(t(),l("g",P,j)):h("",!0)],16,Z))}});export{W as I}; -//# sourceMappingURL=PhCopySimple.vue.39f63820.js.map +import{d as f,B as d,f as i,o as t,X as l,Z as m,R as h,eb as y,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="1abbfcca-63ee-4d00-aa9c-af91ecfc1eec",o._sentryDebugIdIdentifier="sentry-dbid-1abbfcca-63ee-4d00-aa9c-af91ecfc1eec")}catch{}})();const Z=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"},null,-1),b=[w],A={key:1},M=r("path",{d:"M184,72V216H40V72Z",opacity:"0.2"},null,-1),k=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),B=[M,k],I={key:2},S=r("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"},null,-1),C=[S],D={key:3},_=r("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"},null,-1),j=[$],q={name:"PhCopySimple"},W=f({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),u=d("size","1em"),V=d("color","currentColor"),c=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),H=i(()=>{var e;return(e=a.size)!=null?e:u}),p=i(()=>{var e;return(e=a.color)!=null?e:V}),g=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:p.value,transform:g.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),l("g",v,b)):n.value==="duotone"?(t(),l("g",A,B)):n.value==="fill"?(t(),l("g",I,C)):n.value==="light"?(t(),l("g",D,x)):n.value==="regular"?(t(),l("g",z,E)):n.value==="thin"?(t(),l("g",P,j)):h("",!0)],16,Z))}});export{W as I}; +//# sourceMappingURL=PhCopySimple.vue.992b99ff.js.map diff --git a/abstra_statics/dist/assets/PhCube.vue.fdd2f92c.js b/abstra_statics/dist/assets/PhCube.vue.fdd2f92c.js deleted file mode 100644 index 19db337c4..000000000 --- a/abstra_statics/dist/assets/PhCube.vue.fdd2f92c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as m,B as d,f as i,o as a,X as t,Z,R as c,eb as y,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="d31045f4-a0e2-49ab-b793-0f30e0f96713",o._sentryDebugIdIdentifier="sentry-dbid-d31045f4-a0e2-49ab-b793-0f30e0f96713")}catch{}})();const V=["width","height","fill","transform"],M={key:0},b=r("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"},null,-1),w=[b],A={key:1},L=r("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z",opacity:"0.2"},null,-1),k=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),B=[L,k],C={key:2},D=r("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),j=[$],q={name:"PhCube"},R=m({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=d("weight","regular"),v=d("size","1em"),g=d("color","currentColor"),f=d("mirrored",!1),n=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:v}),h=i(()=>{var e;return(e=l.color)!=null?e:g}),p=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:f?"scale(-1, 1)":void 0);return(e,F)=>(a(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:h.value,transform:p.value},e.$attrs),[Z(e.$slots,"default"),n.value==="bold"?(a(),t("g",M,w)):n.value==="duotone"?(a(),t("g",A,B)):n.value==="fill"?(a(),t("g",C,I)):n.value==="light"?(a(),t("g",S,x)):n.value==="regular"?(a(),t("g",z,E)):n.value==="thin"?(a(),t("g",P,j)):c("",!0)],16,V))}});export{R as H}; -//# sourceMappingURL=PhCube.vue.fdd2f92c.js.map diff --git a/abstra_statics/dist/assets/PhCube.vue.fe0d14c9.js b/abstra_statics/dist/assets/PhCube.vue.fe0d14c9.js new file mode 100644 index 000000000..8b03d580d --- /dev/null +++ b/abstra_statics/dist/assets/PhCube.vue.fe0d14c9.js @@ -0,0 +1,2 @@ +import{d as Z,B as n,f as i,o as a,X as t,Z as c,R as y,eb as b,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="2d095b99-95cd-4697-8a64-7da679b26b5b",o._sentryDebugIdIdentifier="sentry-dbid-2d095b99-95cd-4697-8a64-7da679b26b5b")}catch{}})();const f=["width","height","fill","transform"],V={key:0},M=r("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"},null,-1),w=[M],A={key:1},L=r("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z",opacity:"0.2"},null,-1),k=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),B=[L,k],C={key:2},D=r("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),j=[$],q={name:"PhCube"},R=Z({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=n("weight","regular"),v=n("size","1em"),g=n("color","currentColor"),h=n("mirrored",!1),d=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:v}),p=i(()=>{var e;return(e=l.color)!=null?e:g}),m=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(e,F)=>(a(),t("svg",b({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:m.value},e.$attrs),[c(e.$slots,"default"),d.value==="bold"?(a(),t("g",V,w)):d.value==="duotone"?(a(),t("g",A,B)):d.value==="fill"?(a(),t("g",C,I)):d.value==="light"?(a(),t("g",S,x)):d.value==="regular"?(a(),t("g",z,E)):d.value==="thin"?(a(),t("g",P,j)):y("",!0)],16,f))}});export{R as H}; +//# sourceMappingURL=PhCube.vue.fe0d14c9.js.map diff --git a/abstra_statics/dist/assets/PhDotsThreeVertical.vue.75f90272.js b/abstra_statics/dist/assets/PhDotsThreeVertical.vue.c39db334.js similarity index 59% rename from abstra_statics/dist/assets/PhDotsThreeVertical.vue.75f90272.js rename to abstra_statics/dist/assets/PhDotsThreeVertical.vue.c39db334.js index 4114ce8ee..26389a2ab 100644 --- a/abstra_statics/dist/assets/PhDotsThreeVertical.vue.75f90272.js +++ b/abstra_statics/dist/assets/PhDotsThreeVertical.vue.c39db334.js @@ -1,2 +1,2 @@ -import{d as A,B as d,f as s,o as t,X as r,Z as y,R as Z,eb as f,a as l}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="ec522249-8a1e-4ca7-bde6-51690cc8d653",o._sentryDebugIdIdentifier="sentry-dbid-ec522249-8a1e-4ca7-bde6-51690cc8d653")}catch{}})();const v=["width","height","fill","transform"],w={key:0},b=l("path",{d:"M112,60a16,16,0,1,1,16,16A16,16,0,0,1,112,60Zm16,52a16,16,0,1,0,16,16A16,16,0,0,0,128,112Zm0,68a16,16,0,1,0,16,16A16,16,0,0,0,128,180Z"},null,-1),M=[b],k={key:1},V=l("path",{d:"M176,32V224a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16V32A16,16,0,0,1,96,16h64A16,16,0,0,1,176,32Z",opacity:"0.2"},null,-1),B=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),D=[V,B],I={key:2},S=l("path",{d:"M160,16H96A16,16,0,0,0,80,32V224a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16V32A16,16,0,0,0,160,16ZM128,208a12,12,0,1,1,12-12A12,12,0,0,1,128,208Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,72Z"},null,-1),_=[S],x={key:3},z=l("path",{d:"M118,60a10,10,0,1,1,10,10A10,10,0,0,1,118,60Zm10,58a10,10,0,1,0,10,10A10,10,0,0,0,128,118Zm0,68a10,10,0,1,0,10,10A10,10,0,0,0,128,186Z"},null,-1),C=[z],N={key:4},E=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),H=[E],P={key:5},$=l("path",{d:"M120,60a8,8,0,1,1,8,8A8,8,0,0,1,120,60Zm8,60a8,8,0,1,0,8,8A8,8,0,0,0,128,120Zm0,68a8,8,0,1,0,8,8A8,8,0,0,0,128,188Z"},null,-1),j=[$],T={name:"PhDotsThreeVertical"},R=A({...T,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,i=d("weight","regular"),c=d("size","1em"),m=d("color","currentColor"),g=d("mirrored",!1),n=s(()=>{var e;return(e=a.weight)!=null?e:i}),u=s(()=>{var e;return(e=a.size)!=null?e:c}),p=s(()=>{var e;return(e=a.color)!=null?e:m}),h=s(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,q)=>(t(),r("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:h.value},e.$attrs),[y(e.$slots,"default"),n.value==="bold"?(t(),r("g",w,M)):n.value==="duotone"?(t(),r("g",k,D)):n.value==="fill"?(t(),r("g",I,_)):n.value==="light"?(t(),r("g",x,C)):n.value==="regular"?(t(),r("g",N,H)):n.value==="thin"?(t(),r("g",P,j)):Z("",!0)],16,v))}});export{R as G}; -//# sourceMappingURL=PhDotsThreeVertical.vue.75f90272.js.map +import{d as A,B as n,f as s,o as t,X as r,Z as y,R as Z,eb as f,a as l}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="4dae46bb-9976-48e6-9dc0-c3d115844172",o._sentryDebugIdIdentifier="sentry-dbid-4dae46bb-9976-48e6-9dc0-c3d115844172")}catch{}})();const v=["width","height","fill","transform"],w={key:0},b=l("path",{d:"M112,60a16,16,0,1,1,16,16A16,16,0,0,1,112,60Zm16,52a16,16,0,1,0,16,16A16,16,0,0,0,128,112Zm0,68a16,16,0,1,0,16,16A16,16,0,0,0,128,180Z"},null,-1),M=[b],k={key:1},V=l("path",{d:"M176,32V224a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16V32A16,16,0,0,1,96,16h64A16,16,0,0,1,176,32Z",opacity:"0.2"},null,-1),B=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),D=[V,B],I={key:2},S=l("path",{d:"M160,16H96A16,16,0,0,0,80,32V224a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16V32A16,16,0,0,0,160,16ZM128,208a12,12,0,1,1,12-12A12,12,0,0,1,128,208Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,72Z"},null,-1),_=[S],x={key:3},z=l("path",{d:"M118,60a10,10,0,1,1,10,10A10,10,0,0,1,118,60Zm10,58a10,10,0,1,0,10,10A10,10,0,0,0,128,118Zm0,68a10,10,0,1,0,10,10A10,10,0,0,0,128,186Z"},null,-1),C=[z],N={key:4},E=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),H=[E],P={key:5},$=l("path",{d:"M120,60a8,8,0,1,1,8,8A8,8,0,0,1,120,60Zm8,60a8,8,0,1,0,8,8A8,8,0,0,0,128,120Zm0,68a8,8,0,1,0,8,8A8,8,0,0,0,128,188Z"},null,-1),j=[$],T={name:"PhDotsThreeVertical"},R=A({...T,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,i=n("weight","regular"),m=n("size","1em"),g=n("color","currentColor"),p=n("mirrored",!1),d=s(()=>{var e;return(e=a.weight)!=null?e:i}),u=s(()=>{var e;return(e=a.size)!=null?e:m}),c=s(()=>{var e;return(e=a.color)!=null?e:g}),h=s(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(t(),r("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:h.value},e.$attrs),[y(e.$slots,"default"),d.value==="bold"?(t(),r("g",w,M)):d.value==="duotone"?(t(),r("g",k,D)):d.value==="fill"?(t(),r("g",I,_)):d.value==="light"?(t(),r("g",x,C)):d.value==="regular"?(t(),r("g",N,H)):d.value==="thin"?(t(),r("g",P,j)):Z("",!0)],16,v))}});export{R as G}; +//# sourceMappingURL=PhDotsThreeVertical.vue.c39db334.js.map diff --git a/abstra_statics/dist/assets/PhDownloadSimple.vue.285a519c.js b/abstra_statics/dist/assets/PhDownloadSimple.vue.33128e79.js similarity index 64% rename from abstra_statics/dist/assets/PhDownloadSimple.vue.285a519c.js rename to abstra_statics/dist/assets/PhDownloadSimple.vue.33128e79.js index b9a60e7b2..18560b519 100644 --- a/abstra_statics/dist/assets/PhDownloadSimple.vue.285a519c.js +++ b/abstra_statics/dist/assets/PhDownloadSimple.vue.33128e79.js @@ -1,2 +1,2 @@ -import{d as f,B as d,f as i,o as l,X as t,Z as V,R as h,eb as y,a as o}from"./vue-router.4c13f3d4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="a320a265-67e7-4fc4-b4ce-da49f7803558",r._sentryDebugIdIdentifier="sentry-dbid-a320a265-67e7-4fc4-b4ce-da49f7803558")}catch{}})();const w=["width","height","fill","transform"],H={key:0},Z=o("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"},null,-1),b=[Z],L={key:1},k=o("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),M=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),B=[k,M],D={key:2},S=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"},null,-1),I=[S],_={key:3},x=o("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"},null,-1),z=[x],A={key:4},C=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),N=[C],E={key:5},P=o("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"},null,-1),$=[P],j={name:"PhDownloadSimple"},R=f({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,s=d("weight","regular"),v=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:v}),c=i(()=>{var a;return(a=e.color)!=null?a:g}),m=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:m.value},a.$attrs),[V(a.$slots,"default"),n.value==="bold"?(l(),t("g",H,b)):n.value==="duotone"?(l(),t("g",L,B)):n.value==="fill"?(l(),t("g",D,I)):n.value==="light"?(l(),t("g",_,z)):n.value==="regular"?(l(),t("g",A,N)):n.value==="thin"?(l(),t("g",E,$)):h("",!0)],16,w))}});export{R as G}; -//# sourceMappingURL=PhDownloadSimple.vue.285a519c.js.map +import{d as V,B as d,f as i,o as l,X as t,Z as c,R as h,eb as y,a as o}from"./vue-router.3fd92176.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="f70206f8-c7b7-4663-b150-afff96808409",r._sentryDebugIdIdentifier="sentry-dbid-f70206f8-c7b7-4663-b150-afff96808409")}catch{}})();const w=["width","height","fill","transform"],H={key:0},b=o("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"},null,-1),Z=[b],L={key:1},k=o("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),M=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),B=[k,M],D={key:2},S=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"},null,-1),I=[S],_={key:3},x=o("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"},null,-1),z=[x],A={key:4},C=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),N=[C],E={key:5},P=o("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"},null,-1),$=[P],j={name:"PhDownloadSimple"},R=V({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,s=d("weight","regular"),v=d("size","1em"),f=d("color","currentColor"),g=d("mirrored",!1),n=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:v}),p=i(()=>{var a;return(a=e.color)!=null?a:f}),m=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:m.value},a.$attrs),[c(a.$slots,"default"),n.value==="bold"?(l(),t("g",H,Z)):n.value==="duotone"?(l(),t("g",L,B)):n.value==="fill"?(l(),t("g",D,I)):n.value==="light"?(l(),t("g",_,z)):n.value==="regular"?(l(),t("g",A,N)):n.value==="thin"?(l(),t("g",E,$)):h("",!0)],16,w))}});export{R as G}; +//# sourceMappingURL=PhDownloadSimple.vue.33128e79.js.map diff --git a/abstra_statics/dist/assets/PhFlowArrow.vue.d45d2075.js b/abstra_statics/dist/assets/PhFlowArrow.vue.d1d247ee.js similarity index 66% rename from abstra_statics/dist/assets/PhFlowArrow.vue.d45d2075.js rename to abstra_statics/dist/assets/PhFlowArrow.vue.d1d247ee.js index bc541bec1..00e103d41 100644 --- a/abstra_statics/dist/assets/PhFlowArrow.vue.d45d2075.js +++ b/abstra_statics/dist/assets/PhFlowArrow.vue.d1d247ee.js @@ -1,2 +1,2 @@ -import{d as y,B as d,f as s,o as l,X as t,Z as m,R as w,eb as v,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="9438b796-7996-4845-967c-554ae418d7c2",o._sentryDebugIdIdentifier="sentry-dbid-9438b796-7996-4845-967c-554ae418d7c2")}catch{}})();const A=["width","height","fill","transform"],Z={key:0},b=r("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"},null,-1),M=[b],C={key:1},k=r("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"},null,-1),L=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),B=[k,L],H={key:2},I=r("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"},null,-1),S=[I],_={key:3},x=r("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"},null,-1),z=[x],D={key:4},N=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),E=[N],P={key:5},V=r("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"},null,-1),$=[V],j={name:"PhFlowArrow"},G=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,i=d("weight","regular"),u=d("size","1em"),h=d("color","currentColor"),g=d("mirrored",!1),n=s(()=>{var e;return(e=a.weight)!=null?e:i}),c=s(()=>{var e;return(e=a.size)!=null?e:u}),p=s(()=>{var e;return(e=a.color)!=null?e:h}),f=s(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,F)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:p.value,transform:f.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(l(),t("g",Z,M)):n.value==="duotone"?(l(),t("g",C,B)):n.value==="fill"?(l(),t("g",H,S)):n.value==="light"?(l(),t("g",_,z)):n.value==="regular"?(l(),t("g",D,E)):n.value==="thin"?(l(),t("g",P,$)):w("",!0)],16,A))}});export{G}; -//# sourceMappingURL=PhFlowArrow.vue.d45d2075.js.map +import{d as y,B as n,f as c,o as l,X as t,Z as m,R as w,eb as v,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="b5d96676-f64e-459b-ade3-ecda8cdcc0ac",o._sentryDebugIdIdentifier="sentry-dbid-b5d96676-f64e-459b-ade3-ecda8cdcc0ac")}catch{}})();const b=["width","height","fill","transform"],A={key:0},Z=r("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"},null,-1),M=[Z],C={key:1},k=r("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"},null,-1),L=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),B=[k,L],H={key:2},I=r("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"},null,-1),S=[I],_={key:3},x=r("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"},null,-1),z=[x],D={key:4},N=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),E=[N],P={key:5},V=r("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"},null,-1),$=[V],j={name:"PhFlowArrow"},G=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),u=n("size","1em"),h=n("color","currentColor"),g=n("mirrored",!1),d=c(()=>{var e;return(e=a.weight)!=null?e:s}),i=c(()=>{var e;return(e=a.size)!=null?e:u}),p=c(()=>{var e;return(e=a.color)!=null?e:h}),f=c(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,F)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:i.value,height:i.value,fill:p.value,transform:f.value},e.$attrs),[m(e.$slots,"default"),d.value==="bold"?(l(),t("g",A,M)):d.value==="duotone"?(l(),t("g",C,B)):d.value==="fill"?(l(),t("g",H,S)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",D,E)):d.value==="thin"?(l(),t("g",P,$)):w("",!0)],16,b))}});export{G}; +//# sourceMappingURL=PhFlowArrow.vue.d1d247ee.js.map diff --git a/abstra_statics/dist/assets/PhGlobe.vue.9df45e5b.js b/abstra_statics/dist/assets/PhGlobe.vue.69f38b7f.js similarity index 86% rename from abstra_statics/dist/assets/PhGlobe.vue.9df45e5b.js rename to abstra_statics/dist/assets/PhGlobe.vue.69f38b7f.js index 0f19e1668..d21ff827c 100644 --- a/abstra_statics/dist/assets/PhGlobe.vue.9df45e5b.js +++ b/abstra_statics/dist/assets/PhGlobe.vue.69f38b7f.js @@ -1,2 +1,2 @@ -import{d as M,B as l,f as h,o as t,X as Z,Z as g,R as p,eb as c,a as A}from"./vue-router.4c13f3d4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="46946348-f201-412a-8e8e-4ed997108b6b",r._sentryDebugIdIdentifier="sentry-dbid-46946348-f201-412a-8e8e-4ed997108b6b")}catch{}})();const f=["width","height","fill","transform"],y={key:0},v=A("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"},null,-1),b=[v],w={key:1},k=A("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=A("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),C=[k,B],I={key:2},D=A("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),S=[D],_={key:3},x=A("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"},null,-1),z=[x],N={key:4},E=A("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),P=[E],V={key:5},$=A("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"},null,-1),j=[$],G={name:"PhGlobe"},W=M({...G,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,m=l("weight","regular"),d=l("size","1em"),i=l("color","currentColor"),s=l("mirrored",!1),o=h(()=>{var a;return(a=e.weight)!=null?a:m}),n=h(()=>{var a;return(a=e.size)!=null?a:d}),H=h(()=>{var a;return(a=e.color)!=null?a:i}),u=h(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),Z("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:H.value,transform:u.value},a.$attrs),[g(a.$slots,"default"),o.value==="bold"?(t(),Z("g",y,b)):o.value==="duotone"?(t(),Z("g",w,C)):o.value==="fill"?(t(),Z("g",I,S)):o.value==="light"?(t(),Z("g",_,z)):o.value==="regular"?(t(),Z("g",N,P)):o.value==="thin"?(t(),Z("g",V,j)):p("",!0)],16,f))}});export{W as I}; -//# sourceMappingURL=PhGlobe.vue.9df45e5b.js.map +import{d as M,B as l,f as d,o as t,X as Z,Z as g,R as f,eb as p,a as A}from"./vue-router.3fd92176.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="d8d70318-dea1-491a-9795-ffba37d20bf3",r._sentryDebugIdIdentifier="sentry-dbid-d8d70318-dea1-491a-9795-ffba37d20bf3")}catch{}})();const c=["width","height","fill","transform"],y={key:0},v=A("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"},null,-1),b=[v],w={key:1},k=A("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=A("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),C=[k,B],I={key:2},D=A("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),S=[D],_={key:3},x=A("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"},null,-1),z=[x],N={key:4},E=A("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),P=[E],V={key:5},$=A("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"},null,-1),j=[$],G={name:"PhGlobe"},W=M({...G,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,h=l("weight","regular"),n=l("size","1em"),i=l("color","currentColor"),s=l("mirrored",!1),o=d(()=>{var a;return(a=e.weight)!=null?a:h}),m=d(()=>{var a;return(a=e.size)!=null?a:n}),H=d(()=>{var a;return(a=e.color)!=null?a:i}),u=d(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),Z("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:H.value,transform:u.value},a.$attrs),[g(a.$slots,"default"),o.value==="bold"?(t(),Z("g",y,b)):o.value==="duotone"?(t(),Z("g",w,C)):o.value==="fill"?(t(),Z("g",I,S)):o.value==="light"?(t(),Z("g",_,z)):o.value==="regular"?(t(),Z("g",N,P)):o.value==="thin"?(t(),Z("g",V,j)):f("",!0)],16,c))}});export{W as I}; +//# sourceMappingURL=PhGlobe.vue.69f38b7f.js.map diff --git a/abstra_statics/dist/assets/PhIdentificationBadge.vue.7047bcd0.js b/abstra_statics/dist/assets/PhIdentificationBadge.vue.8d7f4c19.js similarity index 81% rename from abstra_statics/dist/assets/PhIdentificationBadge.vue.7047bcd0.js rename to abstra_statics/dist/assets/PhIdentificationBadge.vue.8d7f4c19.js index 5c03966c4..0b2437ac3 100644 --- a/abstra_statics/dist/assets/PhIdentificationBadge.vue.7047bcd0.js +++ b/abstra_statics/dist/assets/PhIdentificationBadge.vue.8d7f4c19.js @@ -1,2 +1,2 @@ -import{d as A,B as n,f as d,o as t,X as l,Z as p,R as m,eb as c,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="a2c79516-4786-4056-925d-e1f6b8325bc2",i._sentryDebugIdIdentifier="sentry-dbid-a2c79516-4786-4056-925d-e1f6b8325bc2")}catch{}})();const M=["width","height","fill","transform"],y={key:0},f=r("path",{d:"M52,52V204H80a12,12,0,0,1,0,24H40a12,12,0,0,1-12-12V40A12,12,0,0,1,40,28H80a12,12,0,0,1,0,24ZM216,28H176a12,12,0,0,0,0,24h28V204H176a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28Z"},null,-1),w=[f],$={key:1},b=r("path",{d:"M216,40V216H40V40Z",opacity:"0.2"},null,-1),k=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),B=[b,k],S={key:2},I=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM104,176a8,8,0,0,1,0,16H72a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8h32a8,8,0,0,1,0,16H80v96Zm88,8a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h24V80H152a8,8,0,0,1,0-16h32a8,8,0,0,1,8,8Z"},null,-1),z=[I],x={key:3},C=r("path",{d:"M46,46V210H80a6,6,0,0,1,0,12H40a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12ZM216,34H176a6,6,0,0,0,0,12h34V210H176a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34Z"},null,-1),D=[C],N={key:4},_=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),P=[_],E={key:5},j=r("path",{d:"M44,44V212H80a4,4,0,0,1,0,8H40a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8Zm172-8H176a4,4,0,0,0,0,8h36V212H176a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36Z"},null,-1),q=[j],W={name:"PhBracketsSquare"},h0=A({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=n("weight","regular"),u=n("size","1em"),s=n("color","currentColor"),g=n("mirrored",!1),o=d(()=>{var a;return(a=e.weight)!=null?a:h}),H=d(()=>{var a;return(a=e.size)!=null?a:u}),V=d(()=>{var a;return(a=e.color)!=null?a:s}),Z=d(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",y,w)):o.value==="duotone"?(t(),l("g",$,B)):o.value==="fill"?(t(),l("g",S,z)):o.value==="light"?(t(),l("g",x,D)):o.value==="regular"?(t(),l("g",N,P)):o.value==="thin"?(t(),l("g",E,q)):m("",!0)],16,M))}}),F=["width","height","fill","transform"],G={key:0},R=r("path",{d:"M200,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V40A20,20,0,0,0,200,20Zm-4,192H60V44H196ZM84,68A12,12,0,0,1,96,56h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,68Zm8.8,127.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM128,116a20,20,0,1,1-20,20A20,20,0,0,1,128,116Z"},null,-1),X=[R],J={key:1},K=r("path",{d:"M200,32H56a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32ZM128,168a32,32,0,1,1,32-32A32,32,0,0,1,128,168Z",opacity:"0.2"},null,-1),L=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),O=[K,L],Q={key:2},T=r("path",{d:"M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z"},null,-1),U=[T],Y={key:3},a0=r("path",{d:"M151.11,166.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,75.2,188.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,151.11,166.13ZM128,110a26,26,0,1,1-26,26A26,26,0,0,1,128,110Zm72-84H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V40A14,14,0,0,0,200,26Zm2,190a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2ZM90,64a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,64Z"},null,-1),e0=[a0],t0={key:4},l0=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),r0=[l0],o0={key:5},i0=r("path",{d:"M146.7,166.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,76.8,189.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,146.7,166.75ZM100,136a28,28,0,1,1,28,28A28,28,0,0,1,100,136ZM200,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Zm4,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4ZM92,64a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,64Z"},null,-1),n0=[i0],d0={name:"PhIdentificationBadge"},u0=A({...d0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=n("weight","regular"),u=n("size","1em"),s=n("color","currentColor"),g=n("mirrored",!1),o=d(()=>{var a;return(a=e.weight)!=null?a:h}),H=d(()=>{var a;return(a=e.size)!=null?a:u}),V=d(()=>{var a;return(a=e.color)!=null?a:s}),Z=d(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",G,X)):o.value==="duotone"?(t(),l("g",J,O)):o.value==="fill"?(t(),l("g",Q,U)):o.value==="light"?(t(),l("g",Y,e0)):o.value==="regular"?(t(),l("g",t0,r0)):o.value==="thin"?(t(),l("g",o0,n0)):m("",!0)],16,F))}});export{u0 as G,h0 as I}; -//# sourceMappingURL=PhIdentificationBadge.vue.7047bcd0.js.map +import{d as A,B as d,f as n,o as t,X as l,Z as p,R as m,eb as c,a as r}from"./vue-router.3fd92176.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="3d43db14-216a-44a5-9ed4-8c1c56ca8f7f",i._sentryDebugIdIdentifier="sentry-dbid-3d43db14-216a-44a5-9ed4-8c1c56ca8f7f")}catch{}})();const M=["width","height","fill","transform"],y={key:0},f=r("path",{d:"M52,52V204H80a12,12,0,0,1,0,24H40a12,12,0,0,1-12-12V40A12,12,0,0,1,40,28H80a12,12,0,0,1,0,24ZM216,28H176a12,12,0,0,0,0,24h28V204H176a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28Z"},null,-1),w=[f],$={key:1},k=r("path",{d:"M216,40V216H40V40Z",opacity:"0.2"},null,-1),b=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),B=[k,b],S={key:2},I=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM104,176a8,8,0,0,1,0,16H72a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8h32a8,8,0,0,1,0,16H80v96Zm88,8a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h24V80H152a8,8,0,0,1,0-16h32a8,8,0,0,1,8,8Z"},null,-1),z=[I],x={key:3},C=r("path",{d:"M46,46V210H80a6,6,0,0,1,0,12H40a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12ZM216,34H176a6,6,0,0,0,0,12h34V210H176a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34Z"},null,-1),D=[C],N={key:4},_=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),P=[_],E={key:5},j=r("path",{d:"M44,44V212H80a4,4,0,0,1,0,8H40a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8Zm172-8H176a4,4,0,0,0,0,8h36V212H176a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36Z"},null,-1),q=[j],W={name:"PhBracketsSquare"},h0=A({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=d("weight","regular"),u=d("size","1em"),s=d("color","currentColor"),g=d("mirrored",!1),o=n(()=>{var a;return(a=e.weight)!=null?a:h}),H=n(()=>{var a;return(a=e.size)!=null?a:u}),V=n(()=>{var a;return(a=e.color)!=null?a:s}),Z=n(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",y,w)):o.value==="duotone"?(t(),l("g",$,B)):o.value==="fill"?(t(),l("g",S,z)):o.value==="light"?(t(),l("g",x,D)):o.value==="regular"?(t(),l("g",N,P)):o.value==="thin"?(t(),l("g",E,q)):m("",!0)],16,M))}}),F=["width","height","fill","transform"],G={key:0},R=r("path",{d:"M200,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V40A20,20,0,0,0,200,20Zm-4,192H60V44H196ZM84,68A12,12,0,0,1,96,56h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,68Zm8.8,127.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM128,116a20,20,0,1,1-20,20A20,20,0,0,1,128,116Z"},null,-1),X=[R],J={key:1},K=r("path",{d:"M200,32H56a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32ZM128,168a32,32,0,1,1,32-32A32,32,0,0,1,128,168Z",opacity:"0.2"},null,-1),L=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),O=[K,L],Q={key:2},T=r("path",{d:"M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z"},null,-1),U=[T],Y={key:3},a0=r("path",{d:"M151.11,166.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,75.2,188.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,151.11,166.13ZM128,110a26,26,0,1,1-26,26A26,26,0,0,1,128,110Zm72-84H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V40A14,14,0,0,0,200,26Zm2,190a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2ZM90,64a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,64Z"},null,-1),e0=[a0],t0={key:4},l0=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),r0=[l0],o0={key:5},i0=r("path",{d:"M146.7,166.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,76.8,189.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,146.7,166.75ZM100,136a28,28,0,1,1,28,28A28,28,0,0,1,100,136ZM200,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Zm4,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4ZM92,64a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,64Z"},null,-1),d0=[i0],n0={name:"PhIdentificationBadge"},u0=A({...n0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=d("weight","regular"),u=d("size","1em"),s=d("color","currentColor"),g=d("mirrored",!1),o=n(()=>{var a;return(a=e.weight)!=null?a:h}),H=n(()=>{var a;return(a=e.size)!=null?a:u}),V=n(()=>{var a;return(a=e.color)!=null?a:s}),Z=n(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",G,X)):o.value==="duotone"?(t(),l("g",J,O)):o.value==="fill"?(t(),l("g",Q,U)):o.value==="light"?(t(),l("g",Y,e0)):o.value==="regular"?(t(),l("g",t0,r0)):o.value==="thin"?(t(),l("g",o0,d0)):m("",!0)],16,F))}});export{u0 as G,h0 as I}; +//# sourceMappingURL=PhIdentificationBadge.vue.8d7f4c19.js.map diff --git a/abstra_statics/dist/assets/PhKanban.vue.b5dcf2c4.js b/abstra_statics/dist/assets/PhKanban.vue.b52985f0.js similarity index 77% rename from abstra_statics/dist/assets/PhKanban.vue.b5dcf2c4.js rename to abstra_statics/dist/assets/PhKanban.vue.b52985f0.js index ae72e70d9..c21610dcf 100644 --- a/abstra_statics/dist/assets/PhKanban.vue.b5dcf2c4.js +++ b/abstra_statics/dist/assets/PhKanban.vue.b52985f0.js @@ -1,2 +1,2 @@ -import{d as u,B as h,f as H,o as t,X as r,Z as g,R as f,eb as p,a as l}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="a43d9771-2959-4384-b516-9f6754fb3f17",o._sentryDebugIdIdentifier="sentry-dbid-a43d9771-2959-4384-b516-9f6754fb3f17")}catch{}})();const c=["width","height","fill","transform"],y={key:0},b=l("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),w=[b],M={key:1},A=l("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),k=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),B=[A,k],D={key:2},I=l("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),S=[I],_={key:3},x=l("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),z=[x],C={key:4},N=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),E=[N],P={key:5},$=l("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),j=[$],K={name:"PhKanban"},R=u({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,n=h("weight","regular"),m=h("size","1em"),i=h("color","currentColor"),s=h("mirrored",!1),V=H(()=>{var a;return(a=e.weight)!=null?a:n}),d=H(()=>{var a;return(a=e.size)!=null?a:m}),Z=H(()=>{var a;return(a=e.color)!=null?a:i}),v=H(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),r("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:Z.value,transform:v.value},a.$attrs),[g(a.$slots,"default"),V.value==="bold"?(t(),r("g",y,w)):V.value==="duotone"?(t(),r("g",M,B)):V.value==="fill"?(t(),r("g",D,S)):V.value==="light"?(t(),r("g",_,z)):V.value==="regular"?(t(),r("g",C,E)):V.value==="thin"?(t(),r("g",P,j)):f("",!0)],16,c))}});export{R as G}; -//# sourceMappingURL=PhKanban.vue.b5dcf2c4.js.map +import{d as u,B as h,f as H,o as t,X as r,Z as g,R as f,eb as p,a as l}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="0f485e64-a583-4c15-b7df-1d1e456d727f",o._sentryDebugIdIdentifier="sentry-dbid-0f485e64-a583-4c15-b7df-1d1e456d727f")}catch{}})();const c=["width","height","fill","transform"],y={key:0},w=l("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),M=[w],b={key:1},A=l("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),k=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),B=[A,k],D={key:2},I=l("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),S=[I],_={key:3},x=l("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),z=[x],C={key:4},N=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),E=[N],P={key:5},$=l("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),j=[$],K={name:"PhKanban"},R=u({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,d=h("weight","regular"),m=h("size","1em"),i=h("color","currentColor"),s=h("mirrored",!1),V=H(()=>{var a;return(a=e.weight)!=null?a:d}),n=H(()=>{var a;return(a=e.size)!=null?a:m}),Z=H(()=>{var a;return(a=e.color)!=null?a:i}),v=H(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),r("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[g(a.$slots,"default"),V.value==="bold"?(t(),r("g",y,M)):V.value==="duotone"?(t(),r("g",b,B)):V.value==="fill"?(t(),r("g",D,S)):V.value==="light"?(t(),r("g",_,z)):V.value==="regular"?(t(),r("g",C,E)):V.value==="thin"?(t(),r("g",P,j)):f("",!0)],16,c))}});export{R as G}; +//# sourceMappingURL=PhKanban.vue.b52985f0.js.map diff --git a/abstra_statics/dist/assets/PhPencil.vue.f2283e7d.js b/abstra_statics/dist/assets/PhPencil.vue.a2604470.js similarity index 76% rename from abstra_statics/dist/assets/PhPencil.vue.f2283e7d.js rename to abstra_statics/dist/assets/PhPencil.vue.a2604470.js index 7224d73f3..1a9261533 100644 --- a/abstra_statics/dist/assets/PhPencil.vue.f2283e7d.js +++ b/abstra_statics/dist/assets/PhPencil.vue.a2604470.js @@ -1,2 +1,2 @@ -import{d as L,B as d,f as i,o as l,X as t,Z as h,R as m,eb as M,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="692fcba0-7d5a-4e8c-bdfe-f66501f7833c",o._sentryDebugIdIdentifier="sentry-dbid-692fcba0-7d5a-4e8c-bdfe-f66501f7833c")}catch{}})();const y=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),b=[w],H={key:1},A=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),V=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),k=[A,V],B={key:2},D=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),N=[C],P={key:5},E=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"},null,-1),$=[E],j={name:"PhPencil"},R=L({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),Z=d("size","1em"),f=d("color","currentColor"),c=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:Z}),g=i(()=>{var e;return(e=a.color)!=null?e:f}),p=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(e,q)=>(l(),t("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:g.value,transform:p.value},e.$attrs),[h(e.$slots,"default"),n.value==="bold"?(l(),t("g",v,b)):n.value==="duotone"?(l(),t("g",H,k)):n.value==="fill"?(l(),t("g",B,I)):n.value==="light"?(l(),t("g",S,x)):n.value==="regular"?(l(),t("g",z,N)):n.value==="thin"?(l(),t("g",P,$)):m("",!0)],16,y))}});export{R as G}; -//# sourceMappingURL=PhPencil.vue.f2283e7d.js.map +import{d as h,B as d,f as i,o as l,X as t,Z as m,R as f,eb as M,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="a1bc0af5-005d-40aa-a429-f877c6536d7a",o._sentryDebugIdIdentifier="sentry-dbid-a1bc0af5-005d-40aa-a429-f877c6536d7a")}catch{}})();const y=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),b=[w],H={key:1},A=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),V=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),k=[A,V],B={key:2},D=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"},null,-1),I=[D],S={key:3},_=r("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),N=[C],P={key:5},E=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"},null,-1),$=[E],j={name:"PhPencil"},R=h({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),Z=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:Z}),L=i(()=>{var e;return(e=a.color)!=null?e:g}),c=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(l(),t("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:L.value,transform:c.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(l(),t("g",v,b)):n.value==="duotone"?(l(),t("g",H,k)):n.value==="fill"?(l(),t("g",B,I)):n.value==="light"?(l(),t("g",S,x)):n.value==="regular"?(l(),t("g",z,N)):n.value==="thin"?(l(),t("g",P,$)):f("",!0)],16,y))}});export{R as G}; +//# sourceMappingURL=PhPencil.vue.a2604470.js.map diff --git a/abstra_statics/dist/assets/PhQuestion.vue.500e5a18.js b/abstra_statics/dist/assets/PhQuestion.vue.129febdc.js similarity index 81% rename from abstra_statics/dist/assets/PhQuestion.vue.500e5a18.js rename to abstra_statics/dist/assets/PhQuestion.vue.129febdc.js index 92c6848c7..7ce1529c7 100644 --- a/abstra_statics/dist/assets/PhQuestion.vue.500e5a18.js +++ b/abstra_statics/dist/assets/PhQuestion.vue.129febdc.js @@ -1,2 +1,2 @@ -import{d as Z,B as d,f as n,o as t,X as r,Z as f,R as h,eb as y,a as o}from"./vue-router.4c13f3d4.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[a]="2a6dfb3f-06ab-4783-9135-54a37dd0ec61",l._sentryDebugIdIdentifier="sentry-dbid-2a6dfb3f-06ab-4783-9135-54a37dd0ec61")}catch{}})();const A=["width","height","fill","transform"],w={key:0},b=o("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"},null,-1),M=[b],k={key:1},C=o("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),D=[C,B],I={key:2},S=o("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"},null,-1),_=[S],x={key:3},z=o("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),N=[z],V={key:4},E=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),P=[E],$={key:5},j=o("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),Q=[j],q={name:"PhQuestion"},R=Z({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const a=l,i=d("weight","regular"),c=d("size","1em"),u=d("color","currentColor"),m=d("mirrored",!1),s=n(()=>{var e;return(e=a.weight)!=null?e:i}),v=n(()=>{var e;return(e=a.size)!=null?e:c}),g=n(()=>{var e;return(e=a.color)!=null?e:u}),p=n(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,F)=>(t(),r("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:g.value,transform:p.value},e.$attrs),[f(e.$slots,"default"),s.value==="bold"?(t(),r("g",w,M)):s.value==="duotone"?(t(),r("g",k,D)):s.value==="fill"?(t(),r("g",I,_)):s.value==="light"?(t(),r("g",x,N)):s.value==="regular"?(t(),r("g",V,P)):s.value==="thin"?(t(),r("g",$,Q)):h("",!0)],16,A))}});export{R as H}; -//# sourceMappingURL=PhQuestion.vue.500e5a18.js.map +import{d as Z,B as n,f as d,o as t,X as r,Z as f,R as h,eb as y,a as o}from"./vue-router.3fd92176.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[a]="f5e3c3d5-9ad3-4846-98b6-9713c149675e",l._sentryDebugIdIdentifier="sentry-dbid-f5e3c3d5-9ad3-4846-98b6-9713c149675e")}catch{}})();const A=["width","height","fill","transform"],w={key:0},b=o("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"},null,-1),M=[b],k={key:1},C=o("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),D=[C,B],I={key:2},S=o("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"},null,-1),_=[S],x={key:3},z=o("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),N=[z],V={key:4},E=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),P=[E],$={key:5},j=o("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),Q=[j],q={name:"PhQuestion"},R=Z({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const a=l,i=n("weight","regular"),v=n("size","1em"),u=n("color","currentColor"),m=n("mirrored",!1),s=d(()=>{var e;return(e=a.weight)!=null?e:i}),c=d(()=>{var e;return(e=a.size)!=null?e:v}),g=d(()=>{var e;return(e=a.color)!=null?e:u}),p=d(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,F)=>(t(),r("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:g.value,transform:p.value},e.$attrs),[f(e.$slots,"default"),s.value==="bold"?(t(),r("g",w,M)):s.value==="duotone"?(t(),r("g",k,D)):s.value==="fill"?(t(),r("g",I,_)):s.value==="light"?(t(),r("g",x,N)):s.value==="regular"?(t(),r("g",V,P)):s.value==="thin"?(t(),r("g",$,Q)):h("",!0)],16,A))}});export{R as H}; +//# sourceMappingURL=PhQuestion.vue.129febdc.js.map diff --git a/abstra_statics/dist/assets/PhRocketLaunch.vue.82bfbb41.js b/abstra_statics/dist/assets/PhRocketLaunch.vue.c412030e.js similarity index 85% rename from abstra_statics/dist/assets/PhRocketLaunch.vue.82bfbb41.js rename to abstra_statics/dist/assets/PhRocketLaunch.vue.c412030e.js index e964380e3..ac72f5bad 100644 --- a/abstra_statics/dist/assets/PhRocketLaunch.vue.82bfbb41.js +++ b/abstra_statics/dist/assets/PhRocketLaunch.vue.c412030e.js @@ -1,2 +1,2 @@ -import{d as g,B as n,f as c,o as l,X as t,Z as m,R as p,eb as A,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="88fb7de4-fdd6-42ba-99af-aaf89be445d7",o._sentryDebugIdIdentifier="sentry-dbid-88fb7de4-fdd6-42ba-99af-aaf89be445d7")}catch{}})();const M=["width","height","fill","transform"],y={key:0},v=r("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"},null,-1),b=[v],C={key:1},w=r("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"},null,-1),k=r("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),V=[w,k],B={key:2},H=r("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"},null,-1),I=[H],S={key:3},_=r("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"},null,-1),x=[_],z={key:4},D=r("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),N=[D],E={key:5},P=r("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"},null,-1),R=[P],$={name:"PhRocketLaunch"},F=g({...$,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,L=n("weight","regular"),i=n("size","1em"),u=n("color","currentColor"),h=n("mirrored",!1),d=c(()=>{var a;return(a=e.weight)!=null?a:L}),s=c(()=>{var a;return(a=e.size)!=null?a:i}),Z=c(()=>{var a;return(a=e.color)!=null?a:u}),f=c(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(a,j)=>(l(),t("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:Z.value,transform:f.value},a.$attrs),[m(a.$slots,"default"),d.value==="bold"?(l(),t("g",y,b)):d.value==="duotone"?(l(),t("g",C,V)):d.value==="fill"?(l(),t("g",B,I)):d.value==="light"?(l(),t("g",S,x)):d.value==="regular"?(l(),t("g",z,N)):d.value==="thin"?(l(),t("g",E,R)):p("",!0)],16,M))}});export{F}; -//# sourceMappingURL=PhRocketLaunch.vue.82bfbb41.js.map +import{d as m,B as n,f as d,o as l,X as t,Z as p,R as f,eb as A,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="0f4e0b23-10c7-441c-b4d4-77cd482cf6b6",o._sentryDebugIdIdentifier="sentry-dbid-0f4e0b23-10c7-441c-b4d4-77cd482cf6b6")}catch{}})();const M=["width","height","fill","transform"],y={key:0},v=r("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"},null,-1),b=[v],C={key:1},w=r("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"},null,-1),k=r("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),V=[w,k],B={key:2},H=r("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"},null,-1),I=[H],S={key:3},_=r("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"},null,-1),x=[_],z={key:4},D=r("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),N=[D],E={key:5},P=r("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"},null,-1),R=[P],$={name:"PhRocketLaunch"},F=m({...$,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,L=n("weight","regular"),i=n("size","1em"),u=n("color","currentColor"),h=n("mirrored",!1),c=d(()=>{var a;return(a=e.weight)!=null?a:L}),s=d(()=>{var a;return(a=e.size)!=null?a:i}),Z=d(()=>{var a;return(a=e.color)!=null?a:u}),g=d(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(a,j)=>(l(),t("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:Z.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),c.value==="bold"?(l(),t("g",y,b)):c.value==="duotone"?(l(),t("g",C,V)):c.value==="fill"?(l(),t("g",B,I)):c.value==="light"?(l(),t("g",S,x)):c.value==="regular"?(l(),t("g",z,N)):c.value==="thin"?(l(),t("g",E,R)):f("",!0)],16,M))}});export{F}; +//# sourceMappingURL=PhRocketLaunch.vue.c412030e.js.map diff --git a/abstra_statics/dist/assets/PhSignOut.vue.e09114f0.js b/abstra_statics/dist/assets/PhSignOut.vue.154299d7.js similarity index 58% rename from abstra_statics/dist/assets/PhSignOut.vue.e09114f0.js rename to abstra_statics/dist/assets/PhSignOut.vue.154299d7.js index 2f8c7fe2b..b6647b1cd 100644 --- a/abstra_statics/dist/assets/PhSignOut.vue.e09114f0.js +++ b/abstra_statics/dist/assets/PhSignOut.vue.154299d7.js @@ -1,2 +1,2 @@ -import{d as y,B as n,f as i,o as l,X as t,Z as H,R as f,eb as v,a as r}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="739ad36a-c968-48d6-a704-d8cc85eb61c9",o._sentryDebugIdIdentifier="sentry-dbid-739ad36a-c968-48d6-a704-d8cc85eb61c9")}catch{}})();const w=["width","height","fill","transform"],A={key:0},V=r("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"},null,-1),Z=[V],b={key:1},k=r("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"},null,-1),M=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),B=[k,M],L={key:2},S=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),I=[S],_={key:3},x=r("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"},null,-1),z=[x],C={key:4},D=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),N=[D],E={key:5},P=r("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"},null,-1),$=[P],j={name:"PhSignOut"},F=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,s=n("weight","regular"),u=n("size","1em"),c=n("color","currentColor"),g=n("mirrored",!1),d=i(()=>{var a;return(a=e.weight)!=null?a:s}),h=i(()=>{var a;return(a=e.size)!=null?a:u}),p=i(()=>{var a;return(a=e.color)!=null?a:c}),m=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,O)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:p.value,transform:m.value},a.$attrs),[H(a.$slots,"default"),d.value==="bold"?(l(),t("g",A,Z)):d.value==="duotone"?(l(),t("g",b,B)):d.value==="fill"?(l(),t("g",L,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",C,N)):d.value==="thin"?(l(),t("g",E,$)):f("",!0)],16,w))}});export{F}; -//# sourceMappingURL=PhSignOut.vue.e09114f0.js.map +import{d as f,B as n,f as i,o as l,X as t,Z as b,R as y,eb as H,a as r}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="b02eb53b-e64d-4522-9dc8-bbf1a80dd429",o._sentryDebugIdIdentifier="sentry-dbid-b02eb53b-e64d-4522-9dc8-bbf1a80dd429")}catch{}})();const v=["width","height","fill","transform"],w={key:0},A=r("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"},null,-1),V=[A],Z={key:1},k=r("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"},null,-1),M=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),B=[k,M],L={key:2},S=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),I=[S],_={key:3},x=r("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"},null,-1),z=[x],C={key:4},D=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),N=[D],E={key:5},P=r("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"},null,-1),$=[P],j={name:"PhSignOut"},F=f({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),u=n("size","1em"),g=n("color","currentColor"),p=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),h=i(()=>{var e;return(e=a.size)!=null?e:u}),m=i(()=>{var e;return(e=a.color)!=null?e:g}),c=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,O)=>(l(),t("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:c.value},e.$attrs),[b(e.$slots,"default"),d.value==="bold"?(l(),t("g",w,V)):d.value==="duotone"?(l(),t("g",Z,B)):d.value==="fill"?(l(),t("g",L,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",C,N)):d.value==="thin"?(l(),t("g",E,$)):y("",!0)],16,v))}});export{F}; +//# sourceMappingURL=PhSignOut.vue.154299d7.js.map diff --git a/abstra_statics/dist/assets/PhWebhooksLogo.vue.1b61227c.js b/abstra_statics/dist/assets/PhWebhooksLogo.vue.73a10b16.js similarity index 87% rename from abstra_statics/dist/assets/PhWebhooksLogo.vue.1b61227c.js rename to abstra_statics/dist/assets/PhWebhooksLogo.vue.73a10b16.js index 0027ba5e3..f09f8bfbd 100644 --- a/abstra_statics/dist/assets/PhWebhooksLogo.vue.1b61227c.js +++ b/abstra_statics/dist/assets/PhWebhooksLogo.vue.73a10b16.js @@ -1,2 +1,2 @@ -import{d as g,B as o,f as i,X as e,Z as p,R as H,eb as $,o as l,a as t}from"./vue-router.4c13f3d4.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[h]="3cc46be8-d69f-47c8-97ac-d28e72ac57cf",u._sentryDebugIdIdentifier="sentry-dbid-3cc46be8-d69f-47c8-97ac-d28e72ac57cf")}catch{}})();const M=["width","height","fill","transform"],y={key:0},w=t("path",{d:"M92,92a12,12,0,0,1,12-12h60a12,12,0,0,1,0,24H104A12,12,0,0,1,92,92Zm12,52h60a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24Zm132,48a36,36,0,0,1-36,36H88a36,36,0,0,1-36-36V64a12,12,0,0,0-24,0c0,3.73,3.35,6.51,3.38,6.54l-.18-.14h0A12,12,0,1,1,16.81,89.59h0C15.49,88.62,4,79.55,4,64A36,36,0,0,1,40,28H176a36,36,0,0,1,36,36V164h4a12,12,0,0,1,7.2,2.4C224.51,167.38,236,176.45,236,192ZM92.62,172.2A12,12,0,0,1,104,164h84V64a12,12,0,0,0-12-12H73.94A35.88,35.88,0,0,1,76,64V192a12,12,0,0,0,24,0c0-3.58-3.17-6.38-3.2-6.4A12,12,0,0,1,92.62,172.2ZM212,192a7.69,7.69,0,0,0-1.24-4h-87a30.32,30.32,0,0,1,.26,4,35.84,35.84,0,0,1-2.06,12H200A12,12,0,0,0,212,192Z"},null,-1),f=[w],k={key:1},C=t("path",{d:"M200,176H104s8,6,8,16a24,24,0,0,1-48,0V64A24,24,0,0,0,40,40H176a24,24,0,0,1,24,24Z",opacity:"0.2"},null,-1),V=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),b=[C,V],S={key:2},z=t("path",{d:"M220.8,169.6A8,8,0,0,0,216,168h-8V64a32,32,0,0,0-32-32H40A32,32,0,0,0,8,64C8,77.61,18.05,85.54,19.2,86.4h0A7.89,7.89,0,0,0,24,88a8,8,0,0,0,4.87-14.33h0C28.83,73.62,24,69.74,24,64a16,16,0,0,1,32,0V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32C232,178.39,222,170.46,220.8,169.6ZM104,96h64a8,8,0,0,1,0,16H104a8,8,0,0,1,0-16Zm-8,40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Zm104,72H107.71A31.82,31.82,0,0,0,112,192a26.92,26.92,0,0,0-1.21-8h102a12.58,12.58,0,0,1,3.23,8A16,16,0,0,1,200,208Z"},null,-1),B=[z],L={key:3},x=t("path",{d:"M98,136a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Zm6-26h64a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12Zm126,82a30,30,0,0,1-30,30H88a30,30,0,0,1-30-30V64a18,18,0,0,0-36,0c0,6.76,5.58,11.19,5.64,11.23A6,6,0,1,1,20.4,84.8C20,84.48,10,76.85,10,64A30,30,0,0,1,40,34H176a30,30,0,0,1,30,30V170h10a6,6,0,0,1,3.6,1.2C220,171.52,230,179.15,230,192Zm-124,0c0-6.76-5.59-11.19-5.64-11.23A6,6,0,0,1,104,170h90V64a18,18,0,0,0-18-18H64a29.82,29.82,0,0,1,6,18V192a18,18,0,0,0,36,0Zm112,0a14.94,14.94,0,0,0-4.34-10H115.88A24.83,24.83,0,0,1,118,192a29.87,29.87,0,0,1-6,18h88A18,18,0,0,0,218,192Z"},null,-1),N=[x],P={key:4},_=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),D=[_],E={key:5},I=t("path",{d:"M100,104a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H104A4,4,0,0,1,100,104Zm4,36h64a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8Zm124,52a28,28,0,0,1-28,28H88a28,28,0,0,1-28-28V64a20,20,0,0,0-40,0c0,7.78,6.34,12.75,6.4,12.8a4,4,0,1,1-4.8,6.4C21.21,82.91,12,75.86,12,64A28,28,0,0,1,40,36H176a28,28,0,0,1,28,28V172h12a4,4,0,0,1,2.4.8C218.79,173.09,228,180.14,228,192Zm-120,0c0-7.78-6.34-12.75-6.4-12.8A4,4,0,0,1,104,172h92V64a20,20,0,0,0-20-20H59.57A27.9,27.9,0,0,1,68,64V192a20,20,0,0,0,40,0Zm112,0c0-6-3.74-10.3-5.5-12H112.61A23.31,23.31,0,0,1,116,192a27.94,27.94,0,0,1-8.42,20H200A20,20,0,0,0,220,192Z"},null,-1),j=[I],W={name:"PhScroll"},Q0=g({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),d=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:d}),c=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:c.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",y,f)):r.value==="duotone"?(l(),e("g",k,b)):r.value==="fill"?(l(),e("g",S,B)):r.value==="light"?(l(),e("g",L,N)):r.value==="regular"?(l(),e("g",P,D)):r.value==="thin"?(l(),e("g",E,j)):H("",!0)],16,M))}}),q=["width","height","fill","transform"],F={key:0},G=t("path",{d:"M128,44a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,44Zm0,168a72,72,0,1,1,72-72A72.08,72.08,0,0,1,128,212ZM164.49,99.51a12,12,0,0,1,0,17l-28,28a12,12,0,0,1-17-17l28-28A12,12,0,0,1,164.49,99.51ZM92,16A12,12,0,0,1,104,4h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,16Z"},null,-1),T=[G],U={key:1},R=t("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"},null,-1),X=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),J=[R,X],K={key:2},O=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm45.66,61.66-40,40a8,8,0,0,1-11.32-11.32l40-40a8,8,0,0,1,11.32,11.32ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),Q=[O],Y={key:3},a0=t("path",{d:"M128,42a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,42Zm0,176a82,82,0,1,1,82-82A82.1,82.1,0,0,1,128,218ZM172.24,91.76a6,6,0,0,1,0,8.48l-40,40a6,6,0,1,1-8.48-8.48l40-40A6,6,0,0,1,172.24,91.76ZM98,16a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,16Z"},null,-1),e0=[a0],l0={key:4},t0=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),r0=[t0],h0={key:5},o0=t("path",{d:"M128,44a92,92,0,1,0,92,92A92.1,92.1,0,0,0,128,44Zm0,176a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,220ZM170.83,93.17a4,4,0,0,1,0,5.66l-40,40a4,4,0,1,1-5.66-5.66l40-40A4,4,0,0,1,170.83,93.17ZM100,16a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,16Z"},null,-1),i0=[o0],u0={name:"PhTimer"},Y0=g({...u0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),d=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:d}),c=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:c.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",F,T)):r.value==="duotone"?(l(),e("g",U,J)):r.value==="fill"?(l(),e("g",K,Q)):r.value==="light"?(l(),e("g",Y,e0)):r.value==="regular"?(l(),e("g",l0,r0)):r.value==="thin"?(l(),e("g",h0,i0)):H("",!0)],16,q))}}),A0=["width","height","fill","transform"],n0={key:0},Z0=t("path",{d:"M152,80a12,12,0,0,1,12-12h80a12,12,0,0,1,0,24H164A12,12,0,0,1,152,80Zm92,36H164a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm0,48H188a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm-88.38,25a12,12,0,1,1-23.24,6c-5.72-22.23-28.24-39-52.38-39s-46.66,16.76-52.38,39a12,12,0,1,1-23.24-6c5.38-20.9,20.09-38.16,39.11-48a52,52,0,1,1,73,0C135.53,150.85,150.24,168.11,155.62,189ZM80,132a28,28,0,1,0-28-28A28,28,0,0,0,80,132Z"},null,-1),d0=[Z0],s0={key:1},m0=t("path",{d:"M120,104A40,40,0,1,1,80,64,40,40,0,0,1,120,104Z",opacity:"0.2"},null,-1),c0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),g0=[m0,c0],p0={key:2},H0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16ZM109.29,142a48,48,0,1,0-58.58,0c-20.62,8.73-36.87,26.3-42.46,48A8,8,0,0,0,16,200H144a8,8,0,0,0,7.75-10C146.16,168.29,129.91,150.72,109.29,142Z"},null,-1),$0=[H0],v0={key:3},M0=t("path",{d:"M154,80a6,6,0,0,1,6-6h88a6,6,0,0,1,0,12H160A6,6,0,0,1,154,80Zm94,42H160a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm0,48H184a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm-98.19,20.5a6,6,0,1,1-11.62,3C131.7,168.29,107.23,150,80,150s-51.7,18.29-58.19,43.49a6,6,0,1,1-11.62-3c5.74-22.28,23-40.07,44.67-48a46,46,0,1,1,50.28,0C126.79,150.43,144.08,168.22,149.81,190.5ZM80,138a34,34,0,1,0-34-34A34,34,0,0,0,80,138Z"},null,-1),y0=[M0],w0={key:4},f0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),k0=[f0],C0={key:5},V0=t("path",{d:"M156,80a4,4,0,0,1,4-4h88a4,4,0,0,1,0,8H160A4,4,0,0,1,156,80Zm92,44H160a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm0,48H184a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8ZM147.87,191a4,4,0,0,1-2.87,4.87,3.87,3.87,0,0,1-1,.13,4,4,0,0,1-3.87-3c-6.71-26.08-32-45-60.13-45s-53.41,18.92-60.13,45a4,4,0,1,1-7.74-2c5.92-23,24.57-41.14,47.52-48a44,44,0,1,1,40.7,0C123.3,149.86,142,168,147.87,191ZM80,140a36,36,0,1,0-36-36A36,36,0,0,0,80,140Z"},null,-1),b0=[V0],S0={name:"PhUserList"},a1=g({...S0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),d=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:d}),c=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:c.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",n0,d0)):r.value==="duotone"?(l(),e("g",s0,g0)):r.value==="fill"?(l(),e("g",p0,$0)):r.value==="light"?(l(),e("g",v0,y0)):r.value==="regular"?(l(),e("g",w0,k0)):r.value==="thin"?(l(),e("g",C0,b0)):H("",!0)],16,A0))}}),z0=["width","height","fill","transform"],B0={key:0},L0=t("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"},null,-1),x0=[L0],N0={key:1},P0=t("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"},null,-1),_0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),D0=[P0,_0],E0={key:2},I0=t("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"},null,-1),j0=[I0],W0={key:3},q0=t("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"},null,-1),F0=[q0],G0={key:4},T0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),U0=[T0],R0={key:5},X0=t("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"},null,-1),J0=[X0],K0={name:"PhWebhooksLogo"},e1=g({...K0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),d=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:d}),c=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:c.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",B0,x0)):r.value==="duotone"?(l(),e("g",N0,D0)):r.value==="fill"?(l(),e("g",E0,j0)):r.value==="light"?(l(),e("g",W0,F0)):r.value==="regular"?(l(),e("g",G0,U0)):r.value==="thin"?(l(),e("g",R0,J0)):H("",!0)],16,z0))}});export{a1 as F,e1 as G,Q0 as I,Y0 as a}; -//# sourceMappingURL=PhWebhooksLogo.vue.1b61227c.js.map +import{d as c,B as o,f as i,X as e,Z as p,R as H,eb as $,o as l,a as t}from"./vue-router.3fd92176.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[h]="9cf8406f-435a-4584-ae0d-e32883ab268c",u._sentryDebugIdIdentifier="sentry-dbid-9cf8406f-435a-4584-ae0d-e32883ab268c")}catch{}})();const M=["width","height","fill","transform"],y={key:0},w=t("path",{d:"M92,92a12,12,0,0,1,12-12h60a12,12,0,0,1,0,24H104A12,12,0,0,1,92,92Zm12,52h60a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24Zm132,48a36,36,0,0,1-36,36H88a36,36,0,0,1-36-36V64a12,12,0,0,0-24,0c0,3.73,3.35,6.51,3.38,6.54l-.18-.14h0A12,12,0,1,1,16.81,89.59h0C15.49,88.62,4,79.55,4,64A36,36,0,0,1,40,28H176a36,36,0,0,1,36,36V164h4a12,12,0,0,1,7.2,2.4C224.51,167.38,236,176.45,236,192ZM92.62,172.2A12,12,0,0,1,104,164h84V64a12,12,0,0,0-12-12H73.94A35.88,35.88,0,0,1,76,64V192a12,12,0,0,0,24,0c0-3.58-3.17-6.38-3.2-6.4A12,12,0,0,1,92.62,172.2ZM212,192a7.69,7.69,0,0,0-1.24-4h-87a30.32,30.32,0,0,1,.26,4,35.84,35.84,0,0,1-2.06,12H200A12,12,0,0,0,212,192Z"},null,-1),f=[w],k={key:1},C=t("path",{d:"M200,176H104s8,6,8,16a24,24,0,0,1-48,0V64A24,24,0,0,0,40,40H176a24,24,0,0,1,24,24Z",opacity:"0.2"},null,-1),V=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),b=[C,V],S={key:2},z=t("path",{d:"M220.8,169.6A8,8,0,0,0,216,168h-8V64a32,32,0,0,0-32-32H40A32,32,0,0,0,8,64C8,77.61,18.05,85.54,19.2,86.4h0A7.89,7.89,0,0,0,24,88a8,8,0,0,0,4.87-14.33h0C28.83,73.62,24,69.74,24,64a16,16,0,0,1,32,0V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32C232,178.39,222,170.46,220.8,169.6ZM104,96h64a8,8,0,0,1,0,16H104a8,8,0,0,1,0-16Zm-8,40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Zm104,72H107.71A31.82,31.82,0,0,0,112,192a26.92,26.92,0,0,0-1.21-8h102a12.58,12.58,0,0,1,3.23,8A16,16,0,0,1,200,208Z"},null,-1),B=[z],L={key:3},x=t("path",{d:"M98,136a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Zm6-26h64a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12Zm126,82a30,30,0,0,1-30,30H88a30,30,0,0,1-30-30V64a18,18,0,0,0-36,0c0,6.76,5.58,11.19,5.64,11.23A6,6,0,1,1,20.4,84.8C20,84.48,10,76.85,10,64A30,30,0,0,1,40,34H176a30,30,0,0,1,30,30V170h10a6,6,0,0,1,3.6,1.2C220,171.52,230,179.15,230,192Zm-124,0c0-6.76-5.59-11.19-5.64-11.23A6,6,0,0,1,104,170h90V64a18,18,0,0,0-18-18H64a29.82,29.82,0,0,1,6,18V192a18,18,0,0,0,36,0Zm112,0a14.94,14.94,0,0,0-4.34-10H115.88A24.83,24.83,0,0,1,118,192a29.87,29.87,0,0,1-6,18h88A18,18,0,0,0,218,192Z"},null,-1),N=[x],P={key:4},_=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),D=[_],E={key:5},I=t("path",{d:"M100,104a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H104A4,4,0,0,1,100,104Zm4,36h64a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8Zm124,52a28,28,0,0,1-28,28H88a28,28,0,0,1-28-28V64a20,20,0,0,0-40,0c0,7.78,6.34,12.75,6.4,12.8a4,4,0,1,1-4.8,6.4C21.21,82.91,12,75.86,12,64A28,28,0,0,1,40,36H176a28,28,0,0,1,28,28V172h12a4,4,0,0,1,2.4.8C218.79,173.09,228,180.14,228,192Zm-120,0c0-7.78-6.34-12.75-6.4-12.8A4,4,0,0,1,104,172h92V64a20,20,0,0,0-20-20H59.57A27.9,27.9,0,0,1,68,64V192a20,20,0,0,0,40,0Zm112,0c0-6-3.74-10.3-5.5-12H112.61A23.31,23.31,0,0,1,116,192a27.94,27.94,0,0,1-8.42,20H200A20,20,0,0,0,220,192Z"},null,-1),j=[I],W={name:"PhScroll"},Q0=c({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",y,f)):r.value==="duotone"?(l(),e("g",k,b)):r.value==="fill"?(l(),e("g",S,B)):r.value==="light"?(l(),e("g",L,N)):r.value==="regular"?(l(),e("g",P,D)):r.value==="thin"?(l(),e("g",E,j)):H("",!0)],16,M))}}),q=["width","height","fill","transform"],F={key:0},G=t("path",{d:"M128,44a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,44Zm0,168a72,72,0,1,1,72-72A72.08,72.08,0,0,1,128,212ZM164.49,99.51a12,12,0,0,1,0,17l-28,28a12,12,0,0,1-17-17l28-28A12,12,0,0,1,164.49,99.51ZM92,16A12,12,0,0,1,104,4h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,16Z"},null,-1),T=[G],U={key:1},R=t("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"},null,-1),X=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),J=[R,X],K={key:2},O=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm45.66,61.66-40,40a8,8,0,0,1-11.32-11.32l40-40a8,8,0,0,1,11.32,11.32ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),Q=[O],Y={key:3},a0=t("path",{d:"M128,42a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,42Zm0,176a82,82,0,1,1,82-82A82.1,82.1,0,0,1,128,218ZM172.24,91.76a6,6,0,0,1,0,8.48l-40,40a6,6,0,1,1-8.48-8.48l40-40A6,6,0,0,1,172.24,91.76ZM98,16a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,16Z"},null,-1),e0=[a0],l0={key:4},t0=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),r0=[t0],h0={key:5},o0=t("path",{d:"M128,44a92,92,0,1,0,92,92A92.1,92.1,0,0,0,128,44Zm0,176a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,220ZM170.83,93.17a4,4,0,0,1,0,5.66l-40,40a4,4,0,1,1-5.66-5.66l40-40A4,4,0,0,1,170.83,93.17ZM100,16a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,16Z"},null,-1),i0=[o0],u0={name:"PhTimer"},Y0=c({...u0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",F,T)):r.value==="duotone"?(l(),e("g",U,J)):r.value==="fill"?(l(),e("g",K,Q)):r.value==="light"?(l(),e("g",Y,e0)):r.value==="regular"?(l(),e("g",l0,r0)):r.value==="thin"?(l(),e("g",h0,i0)):H("",!0)],16,q))}}),A0=["width","height","fill","transform"],n0={key:0},Z0=t("path",{d:"M152,80a12,12,0,0,1,12-12h80a12,12,0,0,1,0,24H164A12,12,0,0,1,152,80Zm92,36H164a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm0,48H188a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm-88.38,25a12,12,0,1,1-23.24,6c-5.72-22.23-28.24-39-52.38-39s-46.66,16.76-52.38,39a12,12,0,1,1-23.24-6c5.38-20.9,20.09-38.16,39.11-48a52,52,0,1,1,73,0C135.53,150.85,150.24,168.11,155.62,189ZM80,132a28,28,0,1,0-28-28A28,28,0,0,0,80,132Z"},null,-1),s0=[Z0],d0={key:1},m0=t("path",{d:"M120,104A40,40,0,1,1,80,64,40,40,0,0,1,120,104Z",opacity:"0.2"},null,-1),g0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),c0=[m0,g0],p0={key:2},H0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16ZM109.29,142a48,48,0,1,0-58.58,0c-20.62,8.73-36.87,26.3-42.46,48A8,8,0,0,0,16,200H144a8,8,0,0,0,7.75-10C146.16,168.29,129.91,150.72,109.29,142Z"},null,-1),$0=[H0],v0={key:3},M0=t("path",{d:"M154,80a6,6,0,0,1,6-6h88a6,6,0,0,1,0,12H160A6,6,0,0,1,154,80Zm94,42H160a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm0,48H184a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm-98.19,20.5a6,6,0,1,1-11.62,3C131.7,168.29,107.23,150,80,150s-51.7,18.29-58.19,43.49a6,6,0,1,1-11.62-3c5.74-22.28,23-40.07,44.67-48a46,46,0,1,1,50.28,0C126.79,150.43,144.08,168.22,149.81,190.5ZM80,138a34,34,0,1,0-34-34A34,34,0,0,0,80,138Z"},null,-1),y0=[M0],w0={key:4},f0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),k0=[f0],C0={key:5},V0=t("path",{d:"M156,80a4,4,0,0,1,4-4h88a4,4,0,0,1,0,8H160A4,4,0,0,1,156,80Zm92,44H160a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm0,48H184a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8ZM147.87,191a4,4,0,0,1-2.87,4.87,3.87,3.87,0,0,1-1,.13,4,4,0,0,1-3.87-3c-6.71-26.08-32-45-60.13-45s-53.41,18.92-60.13,45a4,4,0,1,1-7.74-2c5.92-23,24.57-41.14,47.52-48a44,44,0,1,1,40.7,0C123.3,149.86,142,168,147.87,191ZM80,140a36,36,0,1,0-36-36A36,36,0,0,0,80,140Z"},null,-1),b0=[V0],S0={name:"PhUserList"},a1=c({...S0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",n0,s0)):r.value==="duotone"?(l(),e("g",d0,c0)):r.value==="fill"?(l(),e("g",p0,$0)):r.value==="light"?(l(),e("g",v0,y0)):r.value==="regular"?(l(),e("g",w0,k0)):r.value==="thin"?(l(),e("g",C0,b0)):H("",!0)],16,A0))}}),z0=["width","height","fill","transform"],B0={key:0},L0=t("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"},null,-1),x0=[L0],N0={key:1},P0=t("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"},null,-1),_0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),D0=[P0,_0],E0={key:2},I0=t("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"},null,-1),j0=[I0],W0={key:3},q0=t("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"},null,-1),F0=[q0],G0={key:4},T0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),U0=[T0],R0={key:5},X0=t("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"},null,-1),J0=[X0],K0={name:"PhWebhooksLogo"},e1=c({...K0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(l(),e("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(l(),e("g",B0,x0)):r.value==="duotone"?(l(),e("g",N0,D0)):r.value==="fill"?(l(),e("g",E0,j0)):r.value==="light"?(l(),e("g",W0,F0)):r.value==="regular"?(l(),e("g",G0,U0)):r.value==="thin"?(l(),e("g",R0,J0)):H("",!0)],16,z0))}});export{a1 as F,e1 as G,Q0 as I,Y0 as a}; +//# sourceMappingURL=PhWebhooksLogo.vue.73a10b16.js.map diff --git a/abstra_statics/dist/assets/PlayerConfigProvider.8a3bab63.js b/abstra_statics/dist/assets/PlayerConfigProvider.44427467.js similarity index 98% rename from abstra_statics/dist/assets/PlayerConfigProvider.8a3bab63.js rename to abstra_statics/dist/assets/PlayerConfigProvider.44427467.js index 283a6591e..1fba52bbd 100644 --- a/abstra_statics/dist/assets/PlayerConfigProvider.8a3bab63.js +++ b/abstra_statics/dist/assets/PlayerConfigProvider.44427467.js @@ -1,2 +1,2 @@ -var I=Object.defineProperty;var L=(t,e,a)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var c=(t,e,a)=>(L(t,typeof e!="symbol"?e+"":e,a),a);import{S as s,e as z,U as b,d as O,V as U,g as V,W as R,X as v,u as p,R as j,b as H,w as B,Y as N,o as f,Z as K,A as q,$ as J}from"./vue-router.4c13f3d4.js";import{i as x,a as y,b as Z,l as W,c as k}from"./colorHelpers.c5724389.js";import{t as G}from"./index.52fae423.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="acdeec34-8cde-4d43-99f3-0ef84dd41b45",t._sentryDebugIdIdentifier="sentry-dbid-acdeec34-8cde-4d43-99f3-0ef84dd41b45")}catch{}})();const Q={items_per_page:"/ Seite",jump_to:"Gehe zu",jump_to_confirm:"best\xE4tigen",page:"",prev_page:"Vorherige Seite",next_page:"N\xE4chste Seite",prev_5:"5 Seiten zur\xFCck",next_5:"5 Seiten vor",prev_3:"3 Seiten zur\xFCck",next_3:"3 Seiten vor"},X={locale:"de_DE",today:"Heute",now:"Jetzt",backToToday:"Zur\xFCck zu Heute",ok:"OK",clear:"Zur\xFCcksetzen",month:"Monat",year:"Jahr",timeSelect:"Zeit w\xE4hlen",dateSelect:"Datum w\xE4hlen",monthSelect:"W\xE4hle einen Monat",yearSelect:"W\xE4hle ein Jahr",decadeSelect:"W\xE4hle ein Jahrzehnt",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"N\xE4chster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"N\xE4chstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"N\xE4chstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"N\xE4chstes Jahrhundert"},ee=X,ae={placeholder:"Zeit ausw\xE4hlen"},A=ae,te={lang:s({placeholder:"Datum ausw\xE4hlen",rangePlaceholder:["Startdatum","Enddatum"]},ee),timePickerLocale:s({},A)},S=te,l="${label} ist nicht g\xFCltig. ${type} erwartet",le={locale:"de",Pagination:Q,DatePicker:S,TimePicker:A,Calendar:S,global:{placeholder:"Bitte ausw\xE4hlen"},Table:{filterTitle:"Filter-Men\xFC",filterConfirm:"OK",filterReset:"Zur\xFCcksetzen",selectAll:"Selektiere Alle",selectInvert:"Selektion Invertieren",selectionAll:"W\xE4hlen Sie alle Daten aus",sortTitle:"Sortieren",expand:"Zeile erweitern",collapse:"Zeile reduzieren",triggerDesc:"Klicken zur absteigenden Sortierung",triggerAsc:"Klicken zur aufsteigenden Sortierung",cancelSort:"Klicken zum Abbrechen der Sortierung"},Modal:{okText:"OK",cancelText:"Abbrechen",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Abbrechen"},Transfer:{titles:["",""],searchPlaceholder:"Suchen",itemUnit:"Eintrag",itemsUnit:"Eintr\xE4ge",remove:"Entfernen",selectCurrent:"Alle auf aktueller Seite ausw\xE4hlen",removeCurrent:"Auswahl auf aktueller Seite aufheben",selectAll:"Alle ausw\xE4hlen",removeAll:"Auswahl aufheben",selectInvert:"Auswahl umkehren"},Upload:{uploading:"Hochladen...",removeFile:"Datei entfernen",uploadError:"Fehler beim Hochladen",previewFile:"Dateivorschau",downloadFile:"Download-Datei"},Empty:{description:"Keine Daten"},Text:{edit:"Bearbeiten",copy:"Kopieren",copied:"Kopiert",expand:"Erweitern"},PageHeader:{back:"Zur\xFCck"},Form:{defaultValidateMessages:{default:"Feld-Validierungsfehler: ${label}",required:"Bitte geben Sie ${label} an",enum:"${label} muss eines der folgenden sein [${enum}]",whitespace:"${label} darf kein Leerzeichen sein",date:{format:"${label} ist ein ung\xFCltiges Datumsformat",parse:"${label} kann nicht in ein Datum umgewandelt werden",invalid:"${label} ist ein ung\xFCltiges Datum"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} muss genau ${len} Zeichen lang sein",min:"${label} muss mindestens ${min} Zeichen lang sein",max:"${label} darf h\xF6chstens ${max} Zeichen lang sein",range:"${label} muss zwischen ${min} und ${max} Zeichen lang sein"},number:{len:"${label} muss gleich ${len} sein",min:"${label} muss mindestens ${min} sein",max:"${label} darf maximal ${max} sein",range:"${label} muss zwischen ${min} und ${max} liegen"},array:{len:"Es m\xFCssen ${len} ${label} sein",min:"Es m\xFCssen mindestens ${min} ${label} sein",max:"Es d\xFCrfen maximal ${max} ${label} sein",range:"Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"},pattern:{mismatch:"${label} enspricht nicht dem ${pattern} Muster"}}},Image:{preview:"Vorschau"}},re=le,ne={items_per_page:"/ p\xE1gina",jump_to:"Ir a",jump_to_confirm:"confirmar",page:"",prev_page:"P\xE1gina anterior",next_page:"P\xE1gina siguiente",prev_5:"5 p\xE1ginas previas",next_5:"5 p\xE1ginas siguientes",prev_3:"3 p\xE1ginas previas",next_3:"3 p\xE1ginas siguientes"},oe={locale:"es_ES",today:"Hoy",now:"Ahora",backToToday:"Volver a hoy",ok:"Aceptar",clear:"Limpiar",month:"Mes",year:"A\xF1o",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar fecha",monthSelect:"Elegir un mes",yearSelect:"Elegir un a\xF1o",decadeSelect:"Elegir una d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes siguiente (PageDown)",previousYear:"A\xF1o anterior (Control + left)",nextYear:"A\xF1o siguiente (Control + right)",previousDecade:"D\xE9cada anterior",nextDecade:"D\xE9cada siguiente",previousCentury:"Siglo anterior",nextCentury:"Siglo siguiente"},ie=oe,ce={placeholder:"Seleccionar hora"},F=ce,se={lang:s({placeholder:"Seleccionar fecha",rangePlaceholder:["Fecha inicial","Fecha final"]},ie),timePickerLocale:s({},F)},P=se,r="${label} no es un ${type} v\xE1lido",de={locale:"es",Pagination:ne,DatePicker:P,TimePicker:F,Calendar:P,global:{placeholder:"Seleccione"},Table:{filterTitle:"Filtrar men\xFA",filterConfirm:"Aceptar",filterReset:"Reiniciar",filterEmptyText:"Sin filtros",emptyText:"Sin datos",selectAll:"Seleccionar todo",selectInvert:"Invertir selecci\xF3n",selectNone:"Vac\xEDe todo",selectionAll:"Seleccionar todos los datos",sortTitle:"Ordenar",expand:"Expandir fila",collapse:"Colapsar fila",triggerDesc:"Click para ordenar en orden descendente",triggerAsc:"Click para ordenar en orden ascendente",cancelSort:"Click para cancelar ordenamiento"},Modal:{okText:"Aceptar",cancelText:"Cancelar",justOkText:"Aceptar"},Popconfirm:{okText:"Aceptar",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Buscar aqu\xED",itemUnit:"elemento",itemsUnit:"elementos",remove:"Eliminar",selectCurrent:"Seleccionar p\xE1gina actual",removeCurrent:"Remover p\xE1gina actual",selectAll:"Seleccionar todos los datos",removeAll:"Eliminar todos los datos",selectInvert:"Invertir p\xE1gina actual"},Upload:{uploading:"Subiendo...",removeFile:"Eliminar archivo",uploadError:"Error al subir el archivo",previewFile:"Vista previa",downloadFile:"Descargar archivo"},Empty:{description:"No hay datos"},Icon:{icon:"\xEDcono"},Text:{edit:"Editar",copy:"Copiar",copied:"Copiado",expand:"Expandir"},PageHeader:{back:"Volver"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Error de validaci\xF3n del campo ${label}",required:"Por favor ingresar ${label}",enum:"${label} debe ser uno de [${enum}]",whitespace:"${label} no puede ser un car\xE1cter en blanco",date:{format:"El formato de fecha de ${label} es inv\xE1lido",parse:"${label} no se puede convertir a una fecha",invalid:"${label} es una fecha inv\xE1lida"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} debe tener ${len} caracteres",min:"${label} debe tener al menos ${min} caracteres",max:"${label} debe tener hasta ${max} caracteres",range:"${label} debe tener entre ${min}-${max} caracteres"},number:{len:"${label} debe ser igual a ${len}",min:"${label} valor m\xEDnimo es ${min}",max:"${label} valor m\xE1ximo es ${max}",range:"${label} debe estar entre ${min}-${max}"},array:{len:"Debe ser ${len} ${label}",min:"Al menos ${min} ${label}",max:"A lo mucho ${max} ${label}",range:"El monto de ${label} debe estar entre ${min}-${max}"},pattern:{mismatch:"${label} no coincide con el patr\xF3n ${pattern}"}}},Image:{preview:"Previsualizaci\xF3n"}},me=de,ue={items_per_page:"/ page",jump_to:"Aller \xE0",jump_to_confirm:"confirmer",page:"",prev_page:"Page pr\xE9c\xE9dente",next_page:"Page suivante",prev_5:"5 Pages pr\xE9c\xE9dentes",next_5:"5 Pages suivantes",prev_3:"3 Pages pr\xE9c\xE9dentes",next_3:"3 Pages suivantes"},pe={locale:"fr_FR",today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"Ok",clear:"R\xE9tablir",month:"Mois",year:"Ann\xE9e",timeSelect:"S\xE9lectionner l'heure",dateSelect:"S\xE9lectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une ann\xE9e",decadeSelect:"Choisissez une d\xE9cennie",yearFormat:"YYYY",dateFormat:"DD/MM/YYYY",dayFormat:"DD",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois pr\xE9c\xE9dent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Ann\xE9e pr\xE9c\xE9dente (Ctrl + gauche)",nextYear:"Ann\xE9e prochaine (Ctrl + droite)",previousDecade:"D\xE9cennie pr\xE9c\xE9dente",nextDecade:"D\xE9cennie suivante",previousCentury:"Si\xE8cle pr\xE9c\xE9dent",nextCentury:"Si\xE8cle suivant"},ge=pe,he={placeholder:"S\xE9lectionner l'heure",rangePlaceholder:["Heure de d\xE9but","Heure de fin"]},w=he,$e={lang:s({placeholder:"S\xE9lectionner une date",yearPlaceholder:"S\xE9lectionner une ann\xE9e",quarterPlaceholder:"S\xE9lectionner un trimestre",monthPlaceholder:"S\xE9lectionner un mois",weekPlaceholder:"S\xE9lectionner une semaine",rangePlaceholder:["Date de d\xE9but","Date de fin"],rangeYearPlaceholder:["Ann\xE9e de d\xE9but","Ann\xE9e de fin"],rangeMonthPlaceholder:["Mois de d\xE9but","Mois de fin"],rangeWeekPlaceholder:["Semaine de d\xE9but","Semaine de fin"]},ge),timePickerLocale:s({},w)},T=$e,n="La valeur du champ ${label} n'est pas valide pour le type ${type}",be={locale:"fr",Pagination:ue,DatePicker:T,TimePicker:w,Calendar:T,Table:{filterTitle:"Filtrer",filterConfirm:"OK",filterReset:"R\xE9initialiser",filterEmptyText:"Aucun filtre",emptyText:"Aucune donn\xE9e",selectAll:"S\xE9lectionner la page actuelle",selectInvert:"Inverser la s\xE9lection de la page actuelle",selectNone:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectionAll:"S\xE9lectionner toutes les donn\xE9es",sortTitle:"Trier",expand:"D\xE9velopper la ligne",collapse:"R\xE9duire la ligne",triggerDesc:"Trier par ordre d\xE9croissant",triggerAsc:"Trier par ordre croissant",cancelSort:"Annuler le tri"},Modal:{okText:"OK",cancelText:"Annuler",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuler"},Transfer:{titles:["",""],searchPlaceholder:"Rechercher",itemUnit:"\xE9l\xE9ment",itemsUnit:"\xE9l\xE9ments",remove:"D\xE9s\xE9lectionner",selectCurrent:"S\xE9lectionner la page actuelle",removeCurrent:"D\xE9s\xE9lectionner la page actuelle",selectAll:"S\xE9lectionner toutes les donn\xE9es",removeAll:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectInvert:"Inverser la s\xE9lection de la page actuelle"},Upload:{uploading:"T\xE9l\xE9chargement...",removeFile:"Effacer le fichier",uploadError:"Erreur de t\xE9l\xE9chargement",previewFile:"Fichier de pr\xE9visualisation",downloadFile:"T\xE9l\xE9charger un fichier"},Empty:{description:"Aucune donn\xE9e"},Icon:{icon:"ic\xF4ne"},Text:{edit:"\xC9diter",copy:"Copier",copied:"Copie effectu\xE9e",expand:"D\xE9velopper"},PageHeader:{back:"Retour"},Form:{optional:"(optionnel)",defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit \xEAtre parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas \xEAtre vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas \xEAtre convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:n,method:n,array:n,object:n,number:n,date:n,boolean:n,integer:n,float:n,regexp:n,email:n,url:n,hex:n},string:{len:"La taille du champ ${label} doit \xEAtre de ${len} caract\xE8res",min:"La taille du champ ${label} doit \xEAtre au minimum de ${min} caract\xE8res",max:"La taille du champ ${label} doit \xEAtre au maximum de ${max} caract\xE8res",range:"La taille du champ ${label} doit \xEAtre entre ${min} et ${max} caract\xE8res"},number:{len:"La valeur du champ ${label} doit \xEAtre \xE9gale \xE0 ${len}",min:"La valeur du champ ${label} doit \xEAtre plus grande que ${min}",max:"La valeur du champ ${label} doit \xEAtre plus petit que ${max}",range:"La valeur du champ ${label} doit \xEAtre entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit \xEAtre de ${len}",min:"La taille du tableau ${label} doit \xEAtre au minimum de ${min}",max:"La taille du tableau ${label} doit \xEAtre au maximum de ${max}",range:"La taille du tableau ${label} doit \xEAtre entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au mod\xE8le ${pattern}"}}},Image:{preview:"Aper\xE7u"}},ve=be,fe={items_per_page:"/ \u092A\u0943\u0937\u094D\u0920",jump_to:"\u0907\u0938 \u092A\u0930 \u091A\u0932\u0947\u0902",jump_to_confirm:"\u092A\u0941\u0937\u094D\u091F\u093F \u0915\u0930\u0947\u0902",page:"",prev_page:"\u092A\u093F\u091B\u0932\u093E \u092A\u0943\u0937\u094D\u0920",next_page:"\u0905\u0917\u0932\u093E \u092A\u0943\u0937\u094D\u0920",prev_5:"\u092A\u093F\u091B\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",next_5:"\u0905\u0917\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",prev_3:"\u092A\u093F\u091B\u0932\u0947 3 \u092A\u0943\u0937\u094D\u0920",next_3:"\u0905\u0917\u0932\u0947 3 \u092A\u0947\u091C"},xe={locale:"hi_IN",today:"\u0906\u091C",now:"\u0905\u092D\u0940",backToToday:"\u0906\u091C \u0924\u0915",ok:"\u0920\u0940\u0915",clear:"\u0938\u094D\u092A\u0937\u094D\u091F",month:"\u092E\u0939\u0940\u0928\u093E",year:"\u0938\u093E\u0932",timeSelect:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",dateSelect:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",weekSelect:"\u090F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",monthSelect:"\u090F\u0915 \u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u0947\u0902",yearSelect:"\u090F\u0915 \u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",decadeSelect:"\u090F\u0915 \u0926\u0936\u0915 \u091A\u0941\u0928\u0947\u0902",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u092A\u093F\u091B\u0932\u093E \u092E\u0939\u0940\u0928\u093E (\u092A\u0947\u091C\u0905\u092A)",nextMonth:"\u0905\u0917\u0932\u0947 \u092E\u0939\u0940\u0928\u0947 (\u092A\u0947\u091C\u0921\u093E\u0909\u0928)",previousYear:"\u092A\u093F\u091B\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u092C\u093E\u090F\u0902)",nextYear:"\u0905\u0917\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u0926\u093E\u0939\u093F\u0928\u093E)",previousDecade:"\u092A\u093F\u091B\u0932\u093E \u0926\u0936\u0915",nextDecade:"\u0905\u0917\u0932\u0947 \u0926\u0936\u0915",previousCentury:"\u092A\u0940\u091B\u094D\u0932\u0940 \u0936\u0924\u093E\u092C\u094D\u0926\u0940",nextCentury:"\u0905\u0917\u0932\u0940 \u0938\u0926\u0940"},ye=xe,ke={placeholder:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",rangePlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092E\u092F","\u0905\u0902\u0924 \u0938\u092E\u092F"]},M=ke,Se={lang:s({placeholder:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",yearPlaceholder:"\u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",quarterPlaceholder:"\u0924\u093F\u092E\u093E\u0939\u0940 \u091A\u0941\u0928\u0947\u0902",monthPlaceholder:"\u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u093F\u090F",weekPlaceholder:"\u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",rangePlaceholder:["\u092A\u094D\u0930\u093E\u0930\u0902\u092D \u0924\u093F\u0925\u093F","\u0938\u092E\u093E\u092A\u094D\u0924\u093F \u0924\u093F\u0925\u093F"],rangeYearPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0935\u0930\u094D\u0937","\u0905\u0902\u0924 \u0935\u0930\u094D\u0937"],rangeMonthPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u092E\u0939\u0940\u0928\u093E","\u0905\u0902\u0924 \u092E\u0939\u0940\u0928\u093E"],rangeWeekPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939","\u0905\u0902\u0924 \u0938\u092A\u094D\u0924\u093E\u0939"]},ye),timePickerLocale:s({},M)},D=Se,o="${label} \u092E\u093E\u0928\u094D\u092F ${type} \u0928\u0939\u0940\u0902 \u0939\u0948",Pe={locale:"hi",Pagination:fe,DatePicker:D,TimePicker:M,Calendar:D,global:{placeholder:"\u0915\u0943\u092A\u092F\u093E \u091A\u0941\u0928\u0947\u0902"},Table:{filterTitle:"\u0938\u0942\u091A\u0940 \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",filterConfirm:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",filterReset:"\u0930\u0940\u0938\u0947\u091F",filterEmptyText:"\u0915\u094B\u0908 \u092B\u093C\u093F\u0932\u094D\u091F\u0930 \u0928\u0939\u0940\u0902",emptyText:"\u0915\u094B\u0908 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0928\u0939\u0940\u0902",selectAll:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0918\u0941\u092E\u093E\u090F\u0902",selectNone:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",selectionAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",sortTitle:"\u0926\u094D\u0935\u093E\u0930\u093E \u0915\u094D\u0930\u092E\u092C\u0926\u094D\u0927 \u0915\u0930\u0947\u0902",expand:"\u092A\u0902\u0915\u094D\u0924\u093F \u0915\u093E \u0935\u093F\u0938\u094D\u0924\u093E\u0930 \u0915\u0930\u0947\u0902",collapse:"\u092A\u0902\u0915\u094D\u0924\u093F \u0938\u0902\u0915\u094D\u0937\u093F\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",triggerDesc:"\u0905\u0935\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",triggerAsc:"\u0906\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",cancelSort:"\u091B\u0901\u091F\u093E\u0908 \u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902"},Modal:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E",justOkText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947"},Popconfirm:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E"},Transfer:{titles:["",""],searchPlaceholder:"\u092F\u0939\u093E\u0902 \u0916\u094B\u091C\u0947\u0902",itemUnit:"\u0924\u0924\u094D\u0924\u094D\u0935",itemsUnit:"\u0935\u093F\u0937\u092F-\u0935\u0938\u094D\u0924\u0941",remove:"\u0939\u091F\u093E\u090F",selectCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0939\u091F\u093E\u090F\u0902",selectAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0939\u091F\u093E\u090F\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u094B \u0909\u0932\u094D\u091F\u093E \u0915\u0930\u0947\u0902"},Upload:{uploading:"\u0905\u092A\u0932\u094B\u0921 \u0939\u094B \u0930\u0939\u093E...",removeFile:"\u092B\u093C\u093E\u0907\u0932 \u0928\u093F\u0915\u093E\u0932\u0947\u0902",uploadError:"\u0905\u092A\u0932\u094B\u0921 \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F",previewFile:"\u092B\u093C\u093E\u0907\u0932 \u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928",downloadFile:"\u092B\u093C\u093E\u0907\u0932 \u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0930\u0947\u0902"},Empty:{description:"\u0915\u094B\u0908 \u0906\u0915\u0921\u093C\u093E \u0909\u092A\u0932\u092C\u094D\u0927 \u0928\u0939\u0940\u0902 \u0939\u0948"},Icon:{icon:"\u0906\u0907\u0915\u0928"},Text:{edit:"\u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",copy:"\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F",copied:"\u0915\u0949\u092A\u0940 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",expand:"\u0935\u093F\u0938\u094D\u0924\u093E\u0930"},PageHeader:{back:"\u0935\u093E\u092A\u0938"},Form:{optional:"(\u0910\u091A\u094D\u091B\u093F\u0915)",defaultValidateMessages:{default:"${label} \u0915\u0947 \u0932\u093F\u090F \u092B\u0940\u0932\u094D\u0921 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0924\u094D\u0930\u0941\u091F\u093F",required:"\u0915\u0943\u092A\u092F\u093E ${label} \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902",enum:"${label} [${enum}] \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",whitespace:"${label} \u090F\u0915 \u0916\u093E\u0932\u0940 \u0905\u0915\u094D\u0937\u0930 \u0928\u0939\u0940\u0902 \u0939\u094B \u0938\u0915\u0924\u093E",date:{format:"${label} \u0924\u093F\u0925\u093F \u092A\u094D\u0930\u093E\u0930\u0942\u092A \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948",parse:"${label} \u0915\u094B \u0924\u093E\u0930\u0940\u0916 \u092E\u0947\u0902 \u0928\u0939\u0940\u0902 \u092C\u0926\u0932\u093E \u091C\u093E \u0938\u0915\u0924\u093E",invalid:"${label} \u090F\u0915 \u0905\u092E\u093E\u0928\u094D\u092F \u0924\u093F\u0925\u093F \u0939\u0948"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} ${len} \u0905\u0915\u094D\u0937\u0930 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},number:{len:"${label} ${len} \u0915\u0947 \u092C\u0930\u093E\u092C\u0930 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},array:{len:"${len} ${label} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"\u0915\u092E \u0938\u0947 \u0915\u092E ${min} ${label}",max:"\u091C\u094D\u092F\u093E\u0926\u093E \u0938\u0947 \u091C\u094D\u092F\u093E\u0926\u093E ${max} ${label}",range:"${label} \u0915\u0940 \u0930\u093E\u0936\u093F ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u0940 \u091A\u093E\u0939\u093F\u090F"},pattern:{mismatch:"${label} ${pattern} \u092A\u0948\u091F\u0930\u094D\u0928 \u0938\u0947 \u092E\u0947\u0932 \u0928\u0939\u0940\u0902 \u0916\u093E\u0924\u093E"}}},Image:{preview:"\u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928"}},Te=Pe,De={items_per_page:"/ p\xE1gina",jump_to:"V\xE1 at\xE9",jump_to_confirm:"confirme",page:"",prev_page:"P\xE1gina anterior",next_page:"Pr\xF3xima p\xE1gina",prev_5:"5 p\xE1ginas anteriores",next_5:"5 pr\xF3ximas p\xE1ginas",prev_3:"3 p\xE1ginas anteriores",next_3:"3 pr\xF3ximas p\xE1ginas"},Ce={locale:"pt_BR",today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"Ok",clear:"Limpar",month:"M\xEAs",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Escolher m\xEAs",yearSelect:"Escolher ano",decadeSelect:"Escolher d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!1,previousMonth:"M\xEAs anterior (PageUp)",nextMonth:"Pr\xF3ximo m\xEAs (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Pr\xF3ximo ano (Control + direita)",previousDecade:"D\xE9cada anterior",nextDecade:"Pr\xF3xima d\xE9cada",previousCentury:"S\xE9culo anterior",nextCentury:"Pr\xF3ximo s\xE9culo",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]},_e=Ce,Ye={placeholder:"Hora"},E=Ye,Ae={lang:s({placeholder:"Selecionar data",rangePlaceholder:["Data inicial","Data final"]},_e),timePickerLocale:s({},E)},C=Ae,i="${label} n\xE3o \xE9 um ${type} v\xE1lido",Fe={locale:"pt-br",Pagination:De,DatePicker:C,TimePicker:E,Calendar:C,global:{placeholder:"Por favor escolha"},Table:{filterTitle:"Menu de Filtro",filterConfirm:"OK",filterReset:"Resetar",filterEmptyText:"Sem filtros",emptyText:"Sem conte\xFAdo",selectAll:"Selecionar p\xE1gina atual",selectInvert:"Inverter sele\xE7\xE3o",selectNone:"Apagar todo o conte\xFAdo",selectionAll:"Selecionar todo o conte\xFAdo",sortTitle:"Ordenar t\xEDtulo",expand:"Expandir linha",collapse:"Colapsar linha",triggerDesc:"Clique organiza por descendente",triggerAsc:"Clique organiza por ascendente",cancelSort:"Clique para cancelar organiza\xE7\xE3o"},Tour:{Next:"Pr\xF3ximo",Previous:"Anterior",Finish:"Finalizar"},Modal:{okText:"OK",cancelText:"Cancelar",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Procurar",itemUnit:"item",itemsUnit:"items",remove:"Remover",selectCurrent:"Selecionar p\xE1gina atual",removeCurrent:"Remover p\xE1gina atual",selectAll:"Selecionar todos",removeAll:"Remover todos",selectInvert:"Inverter sele\xE7\xE3o atual"},Upload:{uploading:"Enviando...",removeFile:"Remover arquivo",uploadError:"Erro no envio",previewFile:"Visualizar arquivo",downloadFile:"Baixar arquivo"},Empty:{description:"N\xE3o h\xE1 dados"},Icon:{icon:"\xEDcone"},Text:{edit:"editar",copy:"copiar",copied:"copiado",expand:"expandir"},PageHeader:{back:"Retornar"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Erro ${label} na valida\xE7\xE3o de campo",required:"Por favor, insira ${label}",enum:"${label} deve ser um dos seguinte: [${enum}]",whitespace:"${label} n\xE3o pode ser um car\xE1cter vazio",date:{format:" O formato de data ${label} \xE9 inv\xE1lido",parse:"${label} n\xE3o pode ser convertido para uma data",invalid:"${label} \xE9 uma data inv\xE1lida"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} deve possuir ${len} caracteres",min:"${label} deve possuir ao menos ${min} caracteres",max:"${label} deve possuir no m\xE1ximo ${max} caracteres",range:"${label} deve possuir entre ${min} e ${max} caracteres"},number:{len:"${label} deve ser igual \xE0 ${len}",min:"O valor m\xEDnimo de ${label} \xE9 ${min}",max:"O valor m\xE1ximo de ${label} \xE9 ${max}",range:"${label} deve estar entre ${min} e ${max}"},array:{len:"Deve ser ${len} ${label}",min:"No m\xEDnimo ${min} ${label}",max:"No m\xE1ximo ${max} ${label}",range:"A quantidade de ${label} deve estar entre ${min} e ${max}"},pattern:{mismatch:"${label} n\xE3o se encaixa no padr\xE3o ${pattern}"}}},Image:{preview:"Pr\xE9-visualiza\xE7\xE3o"}},we=Fe,_="#ffffff",Y="#1b1b23";class Me{constructor(){c(this,"state",z({antLocale:void 0,style:void 0,fontFamilyUrl:void 0,antTheme:void 0}));c(this,"imageIsDarkCache",{});c(this,"update",async e=>{this.state.value.antLocale=this.getAntLocale(e),this.state.value.style=await this.getStyle(e),this.state.value.fontFamilyUrl=this.getFontUrl(e.fontFamily),this.state.value.antTheme=await this.getAntTheme(e),this.updateGlobalFontFamily(e.fontFamily)});c(this,"updateGlobalFontFamily",e=>{document.documentElement.style.setProperty("--ac-global-font-family",e)});c(this,"getAntLocale",e=>({en:b,pt:we,es:me,de:re,fr:ve,hi:Te})[e.locale]||b);c(this,"isBackgroundDark",async e=>this.imageIsDarkCache[e]?this.imageIsDarkCache[e]:x(e)?(this.imageIsDarkCache[e]=y(e),this.imageIsDarkCache[e]):(this.imageIsDarkCache[e]=await Z(e),this.imageIsDarkCache[e]));c(this,"getStyle",async e=>{const a=m=>y(m)?_:Y,d=await this.isBackgroundDark(e.background);return{"--color-main":e.mainColor,"--color-main-light":W(e.mainColor,.15),"--color-main-hover":k(e.mainColor),"--color-main-active":k(e.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":a(e.mainColor),"--font-family":e.fontFamily,"--font-color":d?_:Y,...this.getBackgroundStyle(e.background)}});c(this,"getAntTheme",async e=>{const a=await this.isBackgroundDark(e.background),d={fontFamily:e.fontFamily,colorPrimary:e.mainColor},m=[];if(a){const{darkAlgorithm:u}=G;m.push(u)}return{token:d,algorithm:m}});c(this,"getFontUrl",e=>`https://fonts.googleapis.com/css2?family=${e.split(" ").join("+")}:wght@300;400;500;700;900&display=swap`)}getBackgroundStyle(e){return x(e)?{backgroundColor:e}:{backgroundImage:`url(${e})`,backgroundSize:"cover"}}}const Ee=["href"],Ie=O({__name:"PlayerConfigProvider",props:{background:{},mainColor:{},fontFamily:{},locale:{}},setup(t){const e=t,a=new Me;return U("playerConfig",a.state),V(()=>[e.background,e.fontFamily,e.locale,e.mainColor],([d,m,u,g])=>{a.update({background:d,fontFamily:m,locale:u,mainColor:g})}),R(()=>{a.update({background:e.background,fontFamily:e.fontFamily,locale:e.locale,mainColor:e.mainColor})}),(d,m)=>{var u,g,h,$;return f(),v("div",{class:"config-provider",style:N((u=p(a).state.value)==null?void 0:u.style)},[(g=p(a).state.value)!=null&&g.fontFamilyUrl?(f(),v("link",{key:0,href:p(a).state.value.fontFamilyUrl,rel:"stylesheet"},null,8,Ee)):j("",!0),H(p(q),{theme:(h=p(a).state.value)==null?void 0:h.antTheme,locale:($=p(a).state.value)==null?void 0:$.antLocale},{default:B(()=>[K(d.$slots,"default",{},void 0,!0)]),_:3},8,["theme","locale"])],4)}}});const Ve=J(Ie,[["__scopeId","data-v-2c16e2a4"]]);export{Ve as W}; -//# sourceMappingURL=PlayerConfigProvider.8a3bab63.js.map +var I=Object.defineProperty;var L=(t,e,a)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var c=(t,e,a)=>(L(t,typeof e!="symbol"?e+"":e,a),a);import{S as s,e as z,U as b,d as O,V as U,g as V,W as R,X as v,u as p,R as j,b as H,w as B,Y as N,o as f,Z as K,A as q,$ as J}from"./vue-router.3fd92176.js";import{i as x,a as y,b as Z,l as W,c as k}from"./colorHelpers.f04087b3.js";import{t as G}from"./index.bd967757.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="737b66d9-996f-46c4-9e69-6fccd6222880",t._sentryDebugIdIdentifier="sentry-dbid-737b66d9-996f-46c4-9e69-6fccd6222880")}catch{}})();const Q={items_per_page:"/ Seite",jump_to:"Gehe zu",jump_to_confirm:"best\xE4tigen",page:"",prev_page:"Vorherige Seite",next_page:"N\xE4chste Seite",prev_5:"5 Seiten zur\xFCck",next_5:"5 Seiten vor",prev_3:"3 Seiten zur\xFCck",next_3:"3 Seiten vor"},X={locale:"de_DE",today:"Heute",now:"Jetzt",backToToday:"Zur\xFCck zu Heute",ok:"OK",clear:"Zur\xFCcksetzen",month:"Monat",year:"Jahr",timeSelect:"Zeit w\xE4hlen",dateSelect:"Datum w\xE4hlen",monthSelect:"W\xE4hle einen Monat",yearSelect:"W\xE4hle ein Jahr",decadeSelect:"W\xE4hle ein Jahrzehnt",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"N\xE4chster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"N\xE4chstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"N\xE4chstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"N\xE4chstes Jahrhundert"},ee=X,ae={placeholder:"Zeit ausw\xE4hlen"},A=ae,te={lang:s({placeholder:"Datum ausw\xE4hlen",rangePlaceholder:["Startdatum","Enddatum"]},ee),timePickerLocale:s({},A)},S=te,l="${label} ist nicht g\xFCltig. ${type} erwartet",le={locale:"de",Pagination:Q,DatePicker:S,TimePicker:A,Calendar:S,global:{placeholder:"Bitte ausw\xE4hlen"},Table:{filterTitle:"Filter-Men\xFC",filterConfirm:"OK",filterReset:"Zur\xFCcksetzen",selectAll:"Selektiere Alle",selectInvert:"Selektion Invertieren",selectionAll:"W\xE4hlen Sie alle Daten aus",sortTitle:"Sortieren",expand:"Zeile erweitern",collapse:"Zeile reduzieren",triggerDesc:"Klicken zur absteigenden Sortierung",triggerAsc:"Klicken zur aufsteigenden Sortierung",cancelSort:"Klicken zum Abbrechen der Sortierung"},Modal:{okText:"OK",cancelText:"Abbrechen",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Abbrechen"},Transfer:{titles:["",""],searchPlaceholder:"Suchen",itemUnit:"Eintrag",itemsUnit:"Eintr\xE4ge",remove:"Entfernen",selectCurrent:"Alle auf aktueller Seite ausw\xE4hlen",removeCurrent:"Auswahl auf aktueller Seite aufheben",selectAll:"Alle ausw\xE4hlen",removeAll:"Auswahl aufheben",selectInvert:"Auswahl umkehren"},Upload:{uploading:"Hochladen...",removeFile:"Datei entfernen",uploadError:"Fehler beim Hochladen",previewFile:"Dateivorschau",downloadFile:"Download-Datei"},Empty:{description:"Keine Daten"},Text:{edit:"Bearbeiten",copy:"Kopieren",copied:"Kopiert",expand:"Erweitern"},PageHeader:{back:"Zur\xFCck"},Form:{defaultValidateMessages:{default:"Feld-Validierungsfehler: ${label}",required:"Bitte geben Sie ${label} an",enum:"${label} muss eines der folgenden sein [${enum}]",whitespace:"${label} darf kein Leerzeichen sein",date:{format:"${label} ist ein ung\xFCltiges Datumsformat",parse:"${label} kann nicht in ein Datum umgewandelt werden",invalid:"${label} ist ein ung\xFCltiges Datum"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} muss genau ${len} Zeichen lang sein",min:"${label} muss mindestens ${min} Zeichen lang sein",max:"${label} darf h\xF6chstens ${max} Zeichen lang sein",range:"${label} muss zwischen ${min} und ${max} Zeichen lang sein"},number:{len:"${label} muss gleich ${len} sein",min:"${label} muss mindestens ${min} sein",max:"${label} darf maximal ${max} sein",range:"${label} muss zwischen ${min} und ${max} liegen"},array:{len:"Es m\xFCssen ${len} ${label} sein",min:"Es m\xFCssen mindestens ${min} ${label} sein",max:"Es d\xFCrfen maximal ${max} ${label} sein",range:"Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"},pattern:{mismatch:"${label} enspricht nicht dem ${pattern} Muster"}}},Image:{preview:"Vorschau"}},re=le,ne={items_per_page:"/ p\xE1gina",jump_to:"Ir a",jump_to_confirm:"confirmar",page:"",prev_page:"P\xE1gina anterior",next_page:"P\xE1gina siguiente",prev_5:"5 p\xE1ginas previas",next_5:"5 p\xE1ginas siguientes",prev_3:"3 p\xE1ginas previas",next_3:"3 p\xE1ginas siguientes"},oe={locale:"es_ES",today:"Hoy",now:"Ahora",backToToday:"Volver a hoy",ok:"Aceptar",clear:"Limpiar",month:"Mes",year:"A\xF1o",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar fecha",monthSelect:"Elegir un mes",yearSelect:"Elegir un a\xF1o",decadeSelect:"Elegir una d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes siguiente (PageDown)",previousYear:"A\xF1o anterior (Control + left)",nextYear:"A\xF1o siguiente (Control + right)",previousDecade:"D\xE9cada anterior",nextDecade:"D\xE9cada siguiente",previousCentury:"Siglo anterior",nextCentury:"Siglo siguiente"},ie=oe,ce={placeholder:"Seleccionar hora"},F=ce,se={lang:s({placeholder:"Seleccionar fecha",rangePlaceholder:["Fecha inicial","Fecha final"]},ie),timePickerLocale:s({},F)},P=se,r="${label} no es un ${type} v\xE1lido",de={locale:"es",Pagination:ne,DatePicker:P,TimePicker:F,Calendar:P,global:{placeholder:"Seleccione"},Table:{filterTitle:"Filtrar men\xFA",filterConfirm:"Aceptar",filterReset:"Reiniciar",filterEmptyText:"Sin filtros",emptyText:"Sin datos",selectAll:"Seleccionar todo",selectInvert:"Invertir selecci\xF3n",selectNone:"Vac\xEDe todo",selectionAll:"Seleccionar todos los datos",sortTitle:"Ordenar",expand:"Expandir fila",collapse:"Colapsar fila",triggerDesc:"Click para ordenar en orden descendente",triggerAsc:"Click para ordenar en orden ascendente",cancelSort:"Click para cancelar ordenamiento"},Modal:{okText:"Aceptar",cancelText:"Cancelar",justOkText:"Aceptar"},Popconfirm:{okText:"Aceptar",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Buscar aqu\xED",itemUnit:"elemento",itemsUnit:"elementos",remove:"Eliminar",selectCurrent:"Seleccionar p\xE1gina actual",removeCurrent:"Remover p\xE1gina actual",selectAll:"Seleccionar todos los datos",removeAll:"Eliminar todos los datos",selectInvert:"Invertir p\xE1gina actual"},Upload:{uploading:"Subiendo...",removeFile:"Eliminar archivo",uploadError:"Error al subir el archivo",previewFile:"Vista previa",downloadFile:"Descargar archivo"},Empty:{description:"No hay datos"},Icon:{icon:"\xEDcono"},Text:{edit:"Editar",copy:"Copiar",copied:"Copiado",expand:"Expandir"},PageHeader:{back:"Volver"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Error de validaci\xF3n del campo ${label}",required:"Por favor ingresar ${label}",enum:"${label} debe ser uno de [${enum}]",whitespace:"${label} no puede ser un car\xE1cter en blanco",date:{format:"El formato de fecha de ${label} es inv\xE1lido",parse:"${label} no se puede convertir a una fecha",invalid:"${label} es una fecha inv\xE1lida"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} debe tener ${len} caracteres",min:"${label} debe tener al menos ${min} caracteres",max:"${label} debe tener hasta ${max} caracteres",range:"${label} debe tener entre ${min}-${max} caracteres"},number:{len:"${label} debe ser igual a ${len}",min:"${label} valor m\xEDnimo es ${min}",max:"${label} valor m\xE1ximo es ${max}",range:"${label} debe estar entre ${min}-${max}"},array:{len:"Debe ser ${len} ${label}",min:"Al menos ${min} ${label}",max:"A lo mucho ${max} ${label}",range:"El monto de ${label} debe estar entre ${min}-${max}"},pattern:{mismatch:"${label} no coincide con el patr\xF3n ${pattern}"}}},Image:{preview:"Previsualizaci\xF3n"}},me=de,ue={items_per_page:"/ page",jump_to:"Aller \xE0",jump_to_confirm:"confirmer",page:"",prev_page:"Page pr\xE9c\xE9dente",next_page:"Page suivante",prev_5:"5 Pages pr\xE9c\xE9dentes",next_5:"5 Pages suivantes",prev_3:"3 Pages pr\xE9c\xE9dentes",next_3:"3 Pages suivantes"},pe={locale:"fr_FR",today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"Ok",clear:"R\xE9tablir",month:"Mois",year:"Ann\xE9e",timeSelect:"S\xE9lectionner l'heure",dateSelect:"S\xE9lectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une ann\xE9e",decadeSelect:"Choisissez une d\xE9cennie",yearFormat:"YYYY",dateFormat:"DD/MM/YYYY",dayFormat:"DD",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois pr\xE9c\xE9dent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Ann\xE9e pr\xE9c\xE9dente (Ctrl + gauche)",nextYear:"Ann\xE9e prochaine (Ctrl + droite)",previousDecade:"D\xE9cennie pr\xE9c\xE9dente",nextDecade:"D\xE9cennie suivante",previousCentury:"Si\xE8cle pr\xE9c\xE9dent",nextCentury:"Si\xE8cle suivant"},ge=pe,he={placeholder:"S\xE9lectionner l'heure",rangePlaceholder:["Heure de d\xE9but","Heure de fin"]},w=he,$e={lang:s({placeholder:"S\xE9lectionner une date",yearPlaceholder:"S\xE9lectionner une ann\xE9e",quarterPlaceholder:"S\xE9lectionner un trimestre",monthPlaceholder:"S\xE9lectionner un mois",weekPlaceholder:"S\xE9lectionner une semaine",rangePlaceholder:["Date de d\xE9but","Date de fin"],rangeYearPlaceholder:["Ann\xE9e de d\xE9but","Ann\xE9e de fin"],rangeMonthPlaceholder:["Mois de d\xE9but","Mois de fin"],rangeWeekPlaceholder:["Semaine de d\xE9but","Semaine de fin"]},ge),timePickerLocale:s({},w)},T=$e,n="La valeur du champ ${label} n'est pas valide pour le type ${type}",be={locale:"fr",Pagination:ue,DatePicker:T,TimePicker:w,Calendar:T,Table:{filterTitle:"Filtrer",filterConfirm:"OK",filterReset:"R\xE9initialiser",filterEmptyText:"Aucun filtre",emptyText:"Aucune donn\xE9e",selectAll:"S\xE9lectionner la page actuelle",selectInvert:"Inverser la s\xE9lection de la page actuelle",selectNone:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectionAll:"S\xE9lectionner toutes les donn\xE9es",sortTitle:"Trier",expand:"D\xE9velopper la ligne",collapse:"R\xE9duire la ligne",triggerDesc:"Trier par ordre d\xE9croissant",triggerAsc:"Trier par ordre croissant",cancelSort:"Annuler le tri"},Modal:{okText:"OK",cancelText:"Annuler",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuler"},Transfer:{titles:["",""],searchPlaceholder:"Rechercher",itemUnit:"\xE9l\xE9ment",itemsUnit:"\xE9l\xE9ments",remove:"D\xE9s\xE9lectionner",selectCurrent:"S\xE9lectionner la page actuelle",removeCurrent:"D\xE9s\xE9lectionner la page actuelle",selectAll:"S\xE9lectionner toutes les donn\xE9es",removeAll:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectInvert:"Inverser la s\xE9lection de la page actuelle"},Upload:{uploading:"T\xE9l\xE9chargement...",removeFile:"Effacer le fichier",uploadError:"Erreur de t\xE9l\xE9chargement",previewFile:"Fichier de pr\xE9visualisation",downloadFile:"T\xE9l\xE9charger un fichier"},Empty:{description:"Aucune donn\xE9e"},Icon:{icon:"ic\xF4ne"},Text:{edit:"\xC9diter",copy:"Copier",copied:"Copie effectu\xE9e",expand:"D\xE9velopper"},PageHeader:{back:"Retour"},Form:{optional:"(optionnel)",defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit \xEAtre parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas \xEAtre vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas \xEAtre convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:n,method:n,array:n,object:n,number:n,date:n,boolean:n,integer:n,float:n,regexp:n,email:n,url:n,hex:n},string:{len:"La taille du champ ${label} doit \xEAtre de ${len} caract\xE8res",min:"La taille du champ ${label} doit \xEAtre au minimum de ${min} caract\xE8res",max:"La taille du champ ${label} doit \xEAtre au maximum de ${max} caract\xE8res",range:"La taille du champ ${label} doit \xEAtre entre ${min} et ${max} caract\xE8res"},number:{len:"La valeur du champ ${label} doit \xEAtre \xE9gale \xE0 ${len}",min:"La valeur du champ ${label} doit \xEAtre plus grande que ${min}",max:"La valeur du champ ${label} doit \xEAtre plus petit que ${max}",range:"La valeur du champ ${label} doit \xEAtre entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit \xEAtre de ${len}",min:"La taille du tableau ${label} doit \xEAtre au minimum de ${min}",max:"La taille du tableau ${label} doit \xEAtre au maximum de ${max}",range:"La taille du tableau ${label} doit \xEAtre entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au mod\xE8le ${pattern}"}}},Image:{preview:"Aper\xE7u"}},ve=be,fe={items_per_page:"/ \u092A\u0943\u0937\u094D\u0920",jump_to:"\u0907\u0938 \u092A\u0930 \u091A\u0932\u0947\u0902",jump_to_confirm:"\u092A\u0941\u0937\u094D\u091F\u093F \u0915\u0930\u0947\u0902",page:"",prev_page:"\u092A\u093F\u091B\u0932\u093E \u092A\u0943\u0937\u094D\u0920",next_page:"\u0905\u0917\u0932\u093E \u092A\u0943\u0937\u094D\u0920",prev_5:"\u092A\u093F\u091B\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",next_5:"\u0905\u0917\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",prev_3:"\u092A\u093F\u091B\u0932\u0947 3 \u092A\u0943\u0937\u094D\u0920",next_3:"\u0905\u0917\u0932\u0947 3 \u092A\u0947\u091C"},xe={locale:"hi_IN",today:"\u0906\u091C",now:"\u0905\u092D\u0940",backToToday:"\u0906\u091C \u0924\u0915",ok:"\u0920\u0940\u0915",clear:"\u0938\u094D\u092A\u0937\u094D\u091F",month:"\u092E\u0939\u0940\u0928\u093E",year:"\u0938\u093E\u0932",timeSelect:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",dateSelect:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",weekSelect:"\u090F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",monthSelect:"\u090F\u0915 \u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u0947\u0902",yearSelect:"\u090F\u0915 \u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",decadeSelect:"\u090F\u0915 \u0926\u0936\u0915 \u091A\u0941\u0928\u0947\u0902",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u092A\u093F\u091B\u0932\u093E \u092E\u0939\u0940\u0928\u093E (\u092A\u0947\u091C\u0905\u092A)",nextMonth:"\u0905\u0917\u0932\u0947 \u092E\u0939\u0940\u0928\u0947 (\u092A\u0947\u091C\u0921\u093E\u0909\u0928)",previousYear:"\u092A\u093F\u091B\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u092C\u093E\u090F\u0902)",nextYear:"\u0905\u0917\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u0926\u093E\u0939\u093F\u0928\u093E)",previousDecade:"\u092A\u093F\u091B\u0932\u093E \u0926\u0936\u0915",nextDecade:"\u0905\u0917\u0932\u0947 \u0926\u0936\u0915",previousCentury:"\u092A\u0940\u091B\u094D\u0932\u0940 \u0936\u0924\u093E\u092C\u094D\u0926\u0940",nextCentury:"\u0905\u0917\u0932\u0940 \u0938\u0926\u0940"},ye=xe,ke={placeholder:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",rangePlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092E\u092F","\u0905\u0902\u0924 \u0938\u092E\u092F"]},M=ke,Se={lang:s({placeholder:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",yearPlaceholder:"\u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",quarterPlaceholder:"\u0924\u093F\u092E\u093E\u0939\u0940 \u091A\u0941\u0928\u0947\u0902",monthPlaceholder:"\u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u093F\u090F",weekPlaceholder:"\u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",rangePlaceholder:["\u092A\u094D\u0930\u093E\u0930\u0902\u092D \u0924\u093F\u0925\u093F","\u0938\u092E\u093E\u092A\u094D\u0924\u093F \u0924\u093F\u0925\u093F"],rangeYearPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0935\u0930\u094D\u0937","\u0905\u0902\u0924 \u0935\u0930\u094D\u0937"],rangeMonthPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u092E\u0939\u0940\u0928\u093E","\u0905\u0902\u0924 \u092E\u0939\u0940\u0928\u093E"],rangeWeekPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939","\u0905\u0902\u0924 \u0938\u092A\u094D\u0924\u093E\u0939"]},ye),timePickerLocale:s({},M)},D=Se,o="${label} \u092E\u093E\u0928\u094D\u092F ${type} \u0928\u0939\u0940\u0902 \u0939\u0948",Pe={locale:"hi",Pagination:fe,DatePicker:D,TimePicker:M,Calendar:D,global:{placeholder:"\u0915\u0943\u092A\u092F\u093E \u091A\u0941\u0928\u0947\u0902"},Table:{filterTitle:"\u0938\u0942\u091A\u0940 \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",filterConfirm:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",filterReset:"\u0930\u0940\u0938\u0947\u091F",filterEmptyText:"\u0915\u094B\u0908 \u092B\u093C\u093F\u0932\u094D\u091F\u0930 \u0928\u0939\u0940\u0902",emptyText:"\u0915\u094B\u0908 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0928\u0939\u0940\u0902",selectAll:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0918\u0941\u092E\u093E\u090F\u0902",selectNone:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",selectionAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",sortTitle:"\u0926\u094D\u0935\u093E\u0930\u093E \u0915\u094D\u0930\u092E\u092C\u0926\u094D\u0927 \u0915\u0930\u0947\u0902",expand:"\u092A\u0902\u0915\u094D\u0924\u093F \u0915\u093E \u0935\u093F\u0938\u094D\u0924\u093E\u0930 \u0915\u0930\u0947\u0902",collapse:"\u092A\u0902\u0915\u094D\u0924\u093F \u0938\u0902\u0915\u094D\u0937\u093F\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",triggerDesc:"\u0905\u0935\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",triggerAsc:"\u0906\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",cancelSort:"\u091B\u0901\u091F\u093E\u0908 \u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902"},Modal:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E",justOkText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947"},Popconfirm:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E"},Transfer:{titles:["",""],searchPlaceholder:"\u092F\u0939\u093E\u0902 \u0916\u094B\u091C\u0947\u0902",itemUnit:"\u0924\u0924\u094D\u0924\u094D\u0935",itemsUnit:"\u0935\u093F\u0937\u092F-\u0935\u0938\u094D\u0924\u0941",remove:"\u0939\u091F\u093E\u090F",selectCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0939\u091F\u093E\u090F\u0902",selectAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0939\u091F\u093E\u090F\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u094B \u0909\u0932\u094D\u091F\u093E \u0915\u0930\u0947\u0902"},Upload:{uploading:"\u0905\u092A\u0932\u094B\u0921 \u0939\u094B \u0930\u0939\u093E...",removeFile:"\u092B\u093C\u093E\u0907\u0932 \u0928\u093F\u0915\u093E\u0932\u0947\u0902",uploadError:"\u0905\u092A\u0932\u094B\u0921 \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F",previewFile:"\u092B\u093C\u093E\u0907\u0932 \u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928",downloadFile:"\u092B\u093C\u093E\u0907\u0932 \u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0930\u0947\u0902"},Empty:{description:"\u0915\u094B\u0908 \u0906\u0915\u0921\u093C\u093E \u0909\u092A\u0932\u092C\u094D\u0927 \u0928\u0939\u0940\u0902 \u0939\u0948"},Icon:{icon:"\u0906\u0907\u0915\u0928"},Text:{edit:"\u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",copy:"\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F",copied:"\u0915\u0949\u092A\u0940 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",expand:"\u0935\u093F\u0938\u094D\u0924\u093E\u0930"},PageHeader:{back:"\u0935\u093E\u092A\u0938"},Form:{optional:"(\u0910\u091A\u094D\u091B\u093F\u0915)",defaultValidateMessages:{default:"${label} \u0915\u0947 \u0932\u093F\u090F \u092B\u0940\u0932\u094D\u0921 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0924\u094D\u0930\u0941\u091F\u093F",required:"\u0915\u0943\u092A\u092F\u093E ${label} \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902",enum:"${label} [${enum}] \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",whitespace:"${label} \u090F\u0915 \u0916\u093E\u0932\u0940 \u0905\u0915\u094D\u0937\u0930 \u0928\u0939\u0940\u0902 \u0939\u094B \u0938\u0915\u0924\u093E",date:{format:"${label} \u0924\u093F\u0925\u093F \u092A\u094D\u0930\u093E\u0930\u0942\u092A \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948",parse:"${label} \u0915\u094B \u0924\u093E\u0930\u0940\u0916 \u092E\u0947\u0902 \u0928\u0939\u0940\u0902 \u092C\u0926\u0932\u093E \u091C\u093E \u0938\u0915\u0924\u093E",invalid:"${label} \u090F\u0915 \u0905\u092E\u093E\u0928\u094D\u092F \u0924\u093F\u0925\u093F \u0939\u0948"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} ${len} \u0905\u0915\u094D\u0937\u0930 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},number:{len:"${label} ${len} \u0915\u0947 \u092C\u0930\u093E\u092C\u0930 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},array:{len:"${len} ${label} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"\u0915\u092E \u0938\u0947 \u0915\u092E ${min} ${label}",max:"\u091C\u094D\u092F\u093E\u0926\u093E \u0938\u0947 \u091C\u094D\u092F\u093E\u0926\u093E ${max} ${label}",range:"${label} \u0915\u0940 \u0930\u093E\u0936\u093F ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u0940 \u091A\u093E\u0939\u093F\u090F"},pattern:{mismatch:"${label} ${pattern} \u092A\u0948\u091F\u0930\u094D\u0928 \u0938\u0947 \u092E\u0947\u0932 \u0928\u0939\u0940\u0902 \u0916\u093E\u0924\u093E"}}},Image:{preview:"\u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928"}},Te=Pe,De={items_per_page:"/ p\xE1gina",jump_to:"V\xE1 at\xE9",jump_to_confirm:"confirme",page:"",prev_page:"P\xE1gina anterior",next_page:"Pr\xF3xima p\xE1gina",prev_5:"5 p\xE1ginas anteriores",next_5:"5 pr\xF3ximas p\xE1ginas",prev_3:"3 p\xE1ginas anteriores",next_3:"3 pr\xF3ximas p\xE1ginas"},Ce={locale:"pt_BR",today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"Ok",clear:"Limpar",month:"M\xEAs",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Escolher m\xEAs",yearSelect:"Escolher ano",decadeSelect:"Escolher d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!1,previousMonth:"M\xEAs anterior (PageUp)",nextMonth:"Pr\xF3ximo m\xEAs (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Pr\xF3ximo ano (Control + direita)",previousDecade:"D\xE9cada anterior",nextDecade:"Pr\xF3xima d\xE9cada",previousCentury:"S\xE9culo anterior",nextCentury:"Pr\xF3ximo s\xE9culo",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]},_e=Ce,Ye={placeholder:"Hora"},E=Ye,Ae={lang:s({placeholder:"Selecionar data",rangePlaceholder:["Data inicial","Data final"]},_e),timePickerLocale:s({},E)},C=Ae,i="${label} n\xE3o \xE9 um ${type} v\xE1lido",Fe={locale:"pt-br",Pagination:De,DatePicker:C,TimePicker:E,Calendar:C,global:{placeholder:"Por favor escolha"},Table:{filterTitle:"Menu de Filtro",filterConfirm:"OK",filterReset:"Resetar",filterEmptyText:"Sem filtros",emptyText:"Sem conte\xFAdo",selectAll:"Selecionar p\xE1gina atual",selectInvert:"Inverter sele\xE7\xE3o",selectNone:"Apagar todo o conte\xFAdo",selectionAll:"Selecionar todo o conte\xFAdo",sortTitle:"Ordenar t\xEDtulo",expand:"Expandir linha",collapse:"Colapsar linha",triggerDesc:"Clique organiza por descendente",triggerAsc:"Clique organiza por ascendente",cancelSort:"Clique para cancelar organiza\xE7\xE3o"},Tour:{Next:"Pr\xF3ximo",Previous:"Anterior",Finish:"Finalizar"},Modal:{okText:"OK",cancelText:"Cancelar",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Procurar",itemUnit:"item",itemsUnit:"items",remove:"Remover",selectCurrent:"Selecionar p\xE1gina atual",removeCurrent:"Remover p\xE1gina atual",selectAll:"Selecionar todos",removeAll:"Remover todos",selectInvert:"Inverter sele\xE7\xE3o atual"},Upload:{uploading:"Enviando...",removeFile:"Remover arquivo",uploadError:"Erro no envio",previewFile:"Visualizar arquivo",downloadFile:"Baixar arquivo"},Empty:{description:"N\xE3o h\xE1 dados"},Icon:{icon:"\xEDcone"},Text:{edit:"editar",copy:"copiar",copied:"copiado",expand:"expandir"},PageHeader:{back:"Retornar"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Erro ${label} na valida\xE7\xE3o de campo",required:"Por favor, insira ${label}",enum:"${label} deve ser um dos seguinte: [${enum}]",whitespace:"${label} n\xE3o pode ser um car\xE1cter vazio",date:{format:" O formato de data ${label} \xE9 inv\xE1lido",parse:"${label} n\xE3o pode ser convertido para uma data",invalid:"${label} \xE9 uma data inv\xE1lida"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} deve possuir ${len} caracteres",min:"${label} deve possuir ao menos ${min} caracteres",max:"${label} deve possuir no m\xE1ximo ${max} caracteres",range:"${label} deve possuir entre ${min} e ${max} caracteres"},number:{len:"${label} deve ser igual \xE0 ${len}",min:"O valor m\xEDnimo de ${label} \xE9 ${min}",max:"O valor m\xE1ximo de ${label} \xE9 ${max}",range:"${label} deve estar entre ${min} e ${max}"},array:{len:"Deve ser ${len} ${label}",min:"No m\xEDnimo ${min} ${label}",max:"No m\xE1ximo ${max} ${label}",range:"A quantidade de ${label} deve estar entre ${min} e ${max}"},pattern:{mismatch:"${label} n\xE3o se encaixa no padr\xE3o ${pattern}"}}},Image:{preview:"Pr\xE9-visualiza\xE7\xE3o"}},we=Fe,_="#ffffff",Y="#1b1b23";class Me{constructor(){c(this,"state",z({antLocale:void 0,style:void 0,fontFamilyUrl:void 0,antTheme:void 0}));c(this,"imageIsDarkCache",{});c(this,"update",async e=>{this.state.value.antLocale=this.getAntLocale(e),this.state.value.style=await this.getStyle(e),this.state.value.fontFamilyUrl=this.getFontUrl(e.fontFamily),this.state.value.antTheme=await this.getAntTheme(e),this.updateGlobalFontFamily(e.fontFamily)});c(this,"updateGlobalFontFamily",e=>{document.documentElement.style.setProperty("--ac-global-font-family",e)});c(this,"getAntLocale",e=>({en:b,pt:we,es:me,de:re,fr:ve,hi:Te})[e.locale]||b);c(this,"isBackgroundDark",async e=>this.imageIsDarkCache[e]?this.imageIsDarkCache[e]:x(e)?(this.imageIsDarkCache[e]=y(e),this.imageIsDarkCache[e]):(this.imageIsDarkCache[e]=await Z(e),this.imageIsDarkCache[e]));c(this,"getStyle",async e=>{const a=m=>y(m)?_:Y,d=await this.isBackgroundDark(e.background);return{"--color-main":e.mainColor,"--color-main-light":W(e.mainColor,.15),"--color-main-hover":k(e.mainColor),"--color-main-active":k(e.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":a(e.mainColor),"--font-family":e.fontFamily,"--font-color":d?_:Y,...this.getBackgroundStyle(e.background)}});c(this,"getAntTheme",async e=>{const a=await this.isBackgroundDark(e.background),d={fontFamily:e.fontFamily,colorPrimary:e.mainColor},m=[];if(a){const{darkAlgorithm:u}=G;m.push(u)}return{token:d,algorithm:m}});c(this,"getFontUrl",e=>`https://fonts.googleapis.com/css2?family=${e.split(" ").join("+")}:wght@300;400;500;700;900&display=swap`)}getBackgroundStyle(e){return x(e)?{backgroundColor:e}:{backgroundImage:`url(${e})`,backgroundSize:"cover"}}}const Ee=["href"],Ie=O({__name:"PlayerConfigProvider",props:{background:{},mainColor:{},fontFamily:{},locale:{}},setup(t){const e=t,a=new Me;return U("playerConfig",a.state),V(()=>[e.background,e.fontFamily,e.locale,e.mainColor],([d,m,u,g])=>{a.update({background:d,fontFamily:m,locale:u,mainColor:g})}),R(()=>{a.update({background:e.background,fontFamily:e.fontFamily,locale:e.locale,mainColor:e.mainColor})}),(d,m)=>{var u,g,h,$;return f(),v("div",{class:"config-provider",style:N((u=p(a).state.value)==null?void 0:u.style)},[(g=p(a).state.value)!=null&&g.fontFamilyUrl?(f(),v("link",{key:0,href:p(a).state.value.fontFamilyUrl,rel:"stylesheet"},null,8,Ee)):j("",!0),H(p(q),{theme:(h=p(a).state.value)==null?void 0:h.antTheme,locale:($=p(a).state.value)==null?void 0:$.antLocale},{default:B(()=>[K(d.$slots,"default",{},void 0,!0)]),_:3},8,["theme","locale"])],4)}}});const Ve=J(Ie,[["__scopeId","data-v-2c16e2a4"]]);export{Ve as W}; +//# sourceMappingURL=PlayerConfigProvider.44427467.js.map diff --git a/abstra_statics/dist/assets/PlayerNavbar.78adf027.js b/abstra_statics/dist/assets/PlayerNavbar.56197f01.js similarity index 82% rename from abstra_statics/dist/assets/PlayerNavbar.78adf027.js rename to abstra_statics/dist/assets/PlayerNavbar.56197f01.js index 7beb005ba..ed248c3d1 100644 --- a/abstra_statics/dist/assets/PlayerNavbar.78adf027.js +++ b/abstra_statics/dist/assets/PlayerNavbar.56197f01.js @@ -1,2 +1,2 @@ -import{b as D}from"./workspaceStore.ae240ce8.js";import{i as L}from"./metadata.d6f3a171.js";import{d as Z,B as y,f as g,o as e,X as o,Z as S,R as m,eb as A,a as l,aR as P,ee as x,ea as $,c as f,ef as N,u,ec as k,$ as V,D as z,w as H,aF as b,da as M,b as _,bS as w,Y as B,cN as I}from"./vue-router.4c13f3d4.js";import{F as R}from"./PhSignOut.vue.e09114f0.js";import"./index.b16edfcc.js";import{A as F}from"./Avatar.6f67d038.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[n]="82f4635d-fd68-45d3-bc76-1952937ee9e0",d._sentryDebugIdIdentifier="sentry-dbid-82f4635d-fd68-45d3-bc76-1952937ee9e0")}catch{}})();const U=["width","height","fill","transform"],E={key:0},j=l("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),q=[j],W={key:1},T=l("path",{d:"M216,64V192H40V64Z",opacity:"0.2"},null,-1),G=l("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),X=[T,G],Y={key:2},J=l("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"},null,-1),K=[J],O={key:3},Q=l("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),e0=[Q],a0={key:4},t0=l("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),r0=[t0],l0={key:5},n0=l("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),o0=[n0],s0={name:"PhList"},i0=Z({...s0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const n=d,c=y("weight","regular"),p=y("size","1em"),v=y("color","currentColor"),h=y("mirrored",!1),a=g(()=>{var t;return(t=n.weight)!=null?t:c}),r=g(()=>{var t;return(t=n.size)!=null?t:p}),s=g(()=>{var t;return(t=n.color)!=null?t:v}),i=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(t,C)=>(e(),o("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:r.value,height:r.value,fill:s.value,transform:i.value},t.$attrs),[S(t.$slots,"default"),a.value==="bold"?(e(),o("g",E,q)):a.value==="duotone"?(e(),o("g",W,X)):a.value==="fill"?(e(),o("g",Y,K)):a.value==="light"?(e(),o("g",O,e0)):a.value==="regular"?(e(),o("g",a0,r0)):a.value==="thin"?(e(),o("g",l0,o0)):m("",!0)],16,U))}}),d0=["width","height","fill","transform"],u0={key:0},c0=l("path",{d:"M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z"},null,-1),p0=[c0],h0={key:1},g0=l("path",{d:"M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z",opacity:"0.2"},null,-1),v0=l("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),m0=[g0,v0],y0={key:2},H0=l("path",{d:"M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),f0=[H0],b0={key:3},_0=l("path",{d:"M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z"},null,-1),k0=[_0],Z0={key:4},$0=l("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),M0=[$0],w0={key:5},S0=l("path",{d:"M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z"},null,-1),A0=[S0],V0={name:"PhSignIn"},C0=Z({...V0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const n=d,c=y("weight","regular"),p=y("size","1em"),v=y("color","currentColor"),h=y("mirrored",!1),a=g(()=>{var t;return(t=n.weight)!=null?t:c}),r=g(()=>{var t;return(t=n.size)!=null?t:p}),s=g(()=>{var t;return(t=n.color)!=null?t:v}),i=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(t,C)=>(e(),o("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:r.value,height:r.value,fill:s.value,transform:i.value},t.$attrs),[S(t.$slots,"default"),a.value==="bold"?(e(),o("g",u0,p0)):a.value==="duotone"?(e(),o("g",h0,m0)):a.value==="fill"?(e(),o("g",y0,f0)):a.value==="light"?(e(),o("g",b0,k0)):a.value==="regular"?(e(),o("g",Z0,M0)):a.value==="thin"?(e(),o("g",w0,A0)):m("",!0)],16,d0))}}),D0={class:"sidebar-content"},L0={class:"section"},P0=["onClick"],x0={class:"item-title"},N0=Z({__name:"Sidebar",props:{runnerData:{},open:{type:Boolean},currentPath:{}},emits:["selectRuntime","closeSidebar"],setup(d,{emit:n}){const c=d,p=window.innerWidth<760,v=a=>{h(a.id)||(n("selectRuntime",a),p&&n("closeSidebar"))},h=a=>a===c.currentPath;return(a,r)=>{var s;return e(),o("div",{class:$(["sidebar",{open:a.open}])},[l("div",D0,[l("div",L0,[(e(!0),o(P,null,x(((s=a.runnerData)==null?void 0:s.sidebar)||[],i=>(e(),o("div",{key:i.id,class:$(["item",{active:h(i.path)}]),onClick:t=>v(i)},[(e(),f(N(u(L)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),l("div",x0,k(i.name),1)],10,P0))),128))])])],2)}}});const z0=V(N0,[["__scopeId","data-v-1aae0133"]]),B0={class:"left-side"},I0={key:1,class:"brand"},R0=["src"],F0={class:"right-side"},U0={style:{display:"flex","flex-direction":"column",gap:"10px"}},E0={style:{display:"flex",gap:"5px"}},j0={style:{display:"flex",gap:"5px"}},q0=Z({__name:"PlayerNavbar",props:{mainColor:{},currentPath:{},hideLogin:{type:Boolean},emailPlaceholder:{},runnerData:{}},emits:["navigate","login-click"],setup(d,{emit:n}){const c=d,p=z({openSidebar:!1}),v=D(),h=g(()=>{var r,s;return(s=(r=v.user)==null?void 0:r.claims.email)!=null?s:c.emailPlaceholder}),a=g(()=>{const r=c.runnerData.sidebar;return r&&r.length>0});return(r,s)=>(e(),o("header",{class:$(["navbar",a.value&&"background"])},[l("div",B0,[a.value?(e(),f(u(i0),{key:0,class:"sidebar-menu-icon",onClick:s[0]||(s[0]=i=>p.openSidebar=!p.openSidebar)})):m("",!0),r.runnerData.logoUrl||r.runnerData.brandName?(e(),o("div",I0,[r.runnerData.logoUrl?(e(),o("img",{key:0,src:r.runnerData.logoUrl,class:"logo-image"},null,8,R0)):m("",!0),r.runnerData.brandName?(e(),f(u(M),{key:1,class:"brand-name",ellipsis:""},{default:H(()=>[b(k(r.runnerData.brandName),1)]),_:1})):m("",!0)])):m("",!0)]),l("div",F0,[h.value?(e(),f(u(I),{key:0,placement:"bottomRight"},{content:H(()=>[l("div",U0,[_(u(M),{size:"small",type:"secondary"},{default:H(()=>[b(k(h.value),1)]),_:1}),_(u(w),{type:"text",onClick:u(v).logout},{default:H(()=>[l("div",E0,[_(u(R),{size:"20"}),b(" Logout ")])]),_:1},8,["onClick"])])]),default:H(()=>[_(u(F),{shape:"square",size:"small",style:B({backgroundColor:r.mainColor})},{default:H(()=>[b(k(h.value[0].toUpperCase()),1)]),_:1},8,["style"])]),_:1})):r.hideLogin?m("",!0):(e(),f(u(w),{key:1,type:"text",onClick:s[1]||(s[1]=i=>n("login-click"))},{default:H(()=>[l("div",j0,[b(" Login "),_(u(C0),{size:"20"})])]),_:1}))]),a.value?(e(),f(z0,{key:0,"current-path":r.currentPath,"runner-data":c.runnerData,open:p.openSidebar,onSelectRuntime:s[2]||(s[2]=i=>n("navigate",i)),onCloseSidebar:s[3]||(s[3]=i=>p.openSidebar=!1)},null,8,["current-path","runner-data","open"])):m("",!0)],2))}});const K0=V(q0,[["__scopeId","data-v-8b832408"]]);export{K0 as P}; -//# sourceMappingURL=PlayerNavbar.78adf027.js.map +import{b as D}from"./workspaceStore.411ef1fe.js";import{i as L}from"./metadata.789df59c.js";import{d as Z,B as y,f as g,o as e,X as o,Z as S,R as m,eb as A,a as l,aR as P,ee as x,ea as $,c as b,ef as N,u,ec as k,$ as V,D as z,w as H,aF as f,da as M,b as _,bS as w,Y as B,cN as I}from"./vue-router.3fd92176.js";import{F as R}from"./PhSignOut.vue.154299d7.js";import"./index.66903cf4.js";import{A as F}from"./Avatar.2107fa31.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[n]="10de2471-424e-4526-b930-4707dd6d0345",d._sentryDebugIdIdentifier="sentry-dbid-10de2471-424e-4526-b930-4707dd6d0345")}catch{}})();const U=["width","height","fill","transform"],E={key:0},j=l("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),q=[j],W={key:1},T=l("path",{d:"M216,64V192H40V64Z",opacity:"0.2"},null,-1),G=l("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),X=[T,G],Y={key:2},J=l("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"},null,-1),K=[J],O={key:3},Q=l("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),e0=[Q],a0={key:4},t0=l("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),r0=[t0],l0={key:5},n0=l("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),o0=[n0],s0={name:"PhList"},i0=Z({...s0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const n=d,c=y("weight","regular"),p=y("size","1em"),v=y("color","currentColor"),h=y("mirrored",!1),a=g(()=>{var t;return(t=n.weight)!=null?t:c}),r=g(()=>{var t;return(t=n.size)!=null?t:p}),s=g(()=>{var t;return(t=n.color)!=null?t:v}),i=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(t,C)=>(e(),o("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:r.value,height:r.value,fill:s.value,transform:i.value},t.$attrs),[S(t.$slots,"default"),a.value==="bold"?(e(),o("g",E,q)):a.value==="duotone"?(e(),o("g",W,X)):a.value==="fill"?(e(),o("g",Y,K)):a.value==="light"?(e(),o("g",O,e0)):a.value==="regular"?(e(),o("g",a0,r0)):a.value==="thin"?(e(),o("g",l0,o0)):m("",!0)],16,U))}}),d0=["width","height","fill","transform"],u0={key:0},c0=l("path",{d:"M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z"},null,-1),p0=[c0],h0={key:1},g0=l("path",{d:"M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z",opacity:"0.2"},null,-1),v0=l("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),m0=[g0,v0],y0={key:2},H0=l("path",{d:"M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),b0=[H0],f0={key:3},_0=l("path",{d:"M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z"},null,-1),k0=[_0],Z0={key:4},$0=l("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),M0=[$0],w0={key:5},S0=l("path",{d:"M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z"},null,-1),A0=[S0],V0={name:"PhSignIn"},C0=Z({...V0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const n=d,c=y("weight","regular"),p=y("size","1em"),v=y("color","currentColor"),h=y("mirrored",!1),a=g(()=>{var t;return(t=n.weight)!=null?t:c}),r=g(()=>{var t;return(t=n.size)!=null?t:p}),s=g(()=>{var t;return(t=n.color)!=null?t:v}),i=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(t,C)=>(e(),o("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:r.value,height:r.value,fill:s.value,transform:i.value},t.$attrs),[S(t.$slots,"default"),a.value==="bold"?(e(),o("g",u0,p0)):a.value==="duotone"?(e(),o("g",h0,m0)):a.value==="fill"?(e(),o("g",y0,b0)):a.value==="light"?(e(),o("g",f0,k0)):a.value==="regular"?(e(),o("g",Z0,M0)):a.value==="thin"?(e(),o("g",w0,A0)):m("",!0)],16,d0))}}),D0={class:"sidebar-content"},L0={class:"section"},P0=["onClick"],x0={class:"item-title"},N0=Z({__name:"Sidebar",props:{runnerData:{},open:{type:Boolean},currentPath:{}},emits:["selectRuntime","closeSidebar"],setup(d,{emit:n}){const c=d,p=window.innerWidth<760,v=a=>{h(a.id)||(n("selectRuntime",a),p&&n("closeSidebar"))},h=a=>a===c.currentPath;return(a,r)=>{var s;return e(),o("div",{class:$(["sidebar",{open:a.open}])},[l("div",D0,[l("div",L0,[(e(!0),o(P,null,x(((s=a.runnerData)==null?void 0:s.sidebar)||[],i=>(e(),o("div",{key:i.id,class:$(["item",{active:h(i.path)}]),onClick:t=>v(i)},[(e(),b(N(u(L)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),l("div",x0,k(i.name),1)],10,P0))),128))])])],2)}}});const z0=V(N0,[["__scopeId","data-v-1aae0133"]]),B0={class:"left-side"},I0={key:1,class:"brand"},R0=["src"],F0={class:"right-side"},U0={style:{display:"flex","flex-direction":"column",gap:"10px"}},E0={style:{display:"flex",gap:"5px"}},j0={style:{display:"flex",gap:"5px"}},q0=Z({__name:"PlayerNavbar",props:{mainColor:{},currentPath:{},hideLogin:{type:Boolean},emailPlaceholder:{},runnerData:{}},emits:["navigate","login-click"],setup(d,{emit:n}){const c=d,p=z({openSidebar:!1}),v=D(),h=g(()=>{var r,s;return(s=(r=v.user)==null?void 0:r.claims.email)!=null?s:c.emailPlaceholder}),a=g(()=>{const r=c.runnerData.sidebar;return r&&r.length>0});return(r,s)=>(e(),o("header",{class:$(["navbar",a.value&&"background"])},[l("div",B0,[a.value?(e(),b(u(i0),{key:0,class:"sidebar-menu-icon",onClick:s[0]||(s[0]=i=>p.openSidebar=!p.openSidebar)})):m("",!0),r.runnerData.logoUrl||r.runnerData.brandName?(e(),o("div",I0,[r.runnerData.logoUrl?(e(),o("img",{key:0,src:r.runnerData.logoUrl,class:"logo-image"},null,8,R0)):m("",!0),r.runnerData.brandName?(e(),b(u(M),{key:1,class:"brand-name",ellipsis:""},{default:H(()=>[f(k(r.runnerData.brandName),1)]),_:1})):m("",!0)])):m("",!0)]),l("div",F0,[h.value?(e(),b(u(I),{key:0,placement:"bottomRight"},{content:H(()=>[l("div",U0,[_(u(M),{size:"small",type:"secondary"},{default:H(()=>[f(k(h.value),1)]),_:1}),_(u(w),{type:"text",onClick:u(v).logout},{default:H(()=>[l("div",E0,[_(u(R),{size:"20"}),f(" Logout ")])]),_:1},8,["onClick"])])]),default:H(()=>[_(u(F),{shape:"square",size:"small",style:B({backgroundColor:r.mainColor})},{default:H(()=>[f(k(h.value[0].toUpperCase()),1)]),_:1},8,["style"])]),_:1})):r.hideLogin?m("",!0):(e(),b(u(w),{key:1,type:"text",onClick:s[1]||(s[1]=i=>n("login-click"))},{default:H(()=>[l("div",j0,[f(" Login "),_(u(C0),{size:"20"})])]),_:1}))]),a.value?(e(),b(z0,{key:0,"current-path":r.currentPath,"runner-data":c.runnerData,open:p.openSidebar,onSelectRuntime:s[2]||(s[2]=i=>n("navigate",i)),onCloseSidebar:s[3]||(s[3]=i=>p.openSidebar=!1)},null,8,["current-path","runner-data","open"])):m("",!0)],2))}});const K0=V(q0,[["__scopeId","data-v-8b832408"]]);export{K0 as P}; +//# sourceMappingURL=PlayerNavbar.56197f01.js.map diff --git a/abstra_statics/dist/assets/PreferencesEditor.a206533a.js b/abstra_statics/dist/assets/PreferencesEditor.7f20a5ae.js similarity index 98% rename from abstra_statics/dist/assets/PreferencesEditor.a206533a.js rename to abstra_statics/dist/assets/PreferencesEditor.7f20a5ae.js index e1d588235..44a501d3f 100644 --- a/abstra_statics/dist/assets/PreferencesEditor.a206533a.js +++ b/abstra_statics/dist/assets/PreferencesEditor.7f20a5ae.js @@ -1,6 +1,6 @@ -import{d as v,B as x,f as b,o as c,X as y,Z as R,R as w,eb as ie,a as f,b as d,w as g,aF as B,u,db as G,aR as T,ee as H,c as m,ef as he,$ as K,e as P,D as le,W as pe,ag as se,Y as ue,e9 as W,ec as U,aZ as me,eQ as ge,r as O,cS as D,aA as Z,eR as Se,cy as M,bK as E,cx as fe,df as _,cE as ee}from"./vue-router.4c13f3d4.js";import"./editor.49995faa.js";import{W as ye}from"./workspaces.1ee4ae8d.js";import{P as ve}from"./PlayerNavbar.78adf027.js";import{W as be}from"./PlayerConfigProvider.8a3bab63.js";import{_ as ae}from"./AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js";import{C as ke}from"./ContentLayout.f8da2f52.js";import{L as Ce}from"./LoadingContainer.01cf1024.js";import{S as we}from"./SaveButton.8d79c51b.js";import{m as te}from"./workspaceStore.ae240ce8.js";import{a as Ae}from"./asyncComputed.d0f14ed3.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./record.34d5b504.js";import"./metadata.d6f3a171.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./PhSignOut.vue.e09114f0.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";import"./index.52fae423.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="2229f470-511a-40f7-8373-116b91fe0a54",e._sentryDebugIdIdentifier="sentry-dbid-2229f470-511a-40f7-8373-116b91fe0a54")}catch{}})();const Ne=["width","height","fill","transform"],Me={key:0},xe=f("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"},null,-1),Be=[xe],Oe={key:1},Fe=f("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),Le=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Pe=[Fe,Le],$e={key:2},Te=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),Re=[Te],He={key:3},_e=f("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"},null,-1),Ee=[_e],De={key:4},Ge=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Ie=[Ge],Ke={key:5},We=f("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"},null,-1),Ue=[We],Ze={name:"PhEye"},oe=v({...Ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),n=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),r=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:n}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[R(p.$slots,"default"),r.value==="bold"?(c(),y("g",Me,Be)):r.value==="duotone"?(c(),y("g",Oe,Pe)):r.value==="fill"?(c(),y("g",$e,Re)):r.value==="light"?(c(),y("g",He,Ee)):r.value==="regular"?(c(),y("g",De,Ie)):r.value==="thin"?(c(),y("g",Ke,Ue)):w("",!0)],16,Ne))}}),ze=["width","height","fill","transform"],Ve={key:0},qe=f("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),je=[qe],Ye={key:1},Je=f("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Xe=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),Qe=[Je,Xe],ea={key:2},aa=f("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),ta=[aa],oa={key:3},na=f("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),ra=[na],ia={key:4},la=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),sa=[la],ua={key:5},da=f("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),ca=[da],ha={name:"PhXCircle"},pa=v({...ha,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),n=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),r=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:n}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[R(p.$slots,"default"),r.value==="bold"?(c(),y("g",Ve,je)):r.value==="duotone"?(c(),y("g",Ye,Qe)):r.value==="fill"?(c(),y("g",ea,ta)):r.value==="light"?(c(),y("g",oa,ra)):r.value==="regular"?(c(),y("g",ia,sa)):r.value==="thin"?(c(),y("g",ua,ca)):w("",!0)],16,ze))}}),ma=[{type:"text-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,mask:null,disabled:!1,errors:[]},{type:"email-input",key:null,label:"Insert your email",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,invalidEmailMessage:"i18n_error_invalid_email",disabled:!1,errors:[]},{type:"phone-input",key:null,label:"Insert a phone number.",value:{countryCode:"",nationalNumber:""},placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[],invalidMessage:"i18n_error_invalid_phone_number"},{type:"number-input",key:null,label:"Number",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"date-input",key:null,hint:null,label:"Pick a date of your preference.",value:"",required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"time-input",key:null,label:"Choose the desired time.",format:"24hs",hint:null,value:{hour:0,minute:0},required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"cnpj-input",key:null,label:"Insert your CNPJ here!",value:"",placeholder:"00.000.000/0001-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cnpj",errors:[]},{type:"cpf-input",key:null,label:"Insert your CPF here!",value:"",placeholder:"000.000.000-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cpf",errors:[]},{type:"tag-input",key:null,label:"Insert the desired tags.",value:[],placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"dropdown-input",key:null,label:"",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,placeholder:"",value:[],required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"currency-input",key:null,label:"Insert the proper amount.",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,currency:"USD",disabled:!1,errors:[]},{type:"textarea-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"rich-text-input",key:null,label:"Insert your rich text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"code-input",key:null,label:"Send your code here!",value:"",language:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"click-input",key:null,label:"Click here!",hint:null,disabled:!1,fullWidth:!1,errors:[]},{type:"progress-output",current:50,total:100,text:"",fullWidth:!1},{type:"file-input",key:null,hint:null,label:"Upload a file.",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"image-input",key:null,hint:null,label:"Upload",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"video-input",key:null,hint:null,label:"Upload your video",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"pandas-row-selection-input",key:null,hint:null,table:{schema:{fields:[{name:"index",type:"integer"},{name:"change the",type:"integer"},{name:"df property",type:"integer"}],primaryKey:["index"],pandas_version:"0.20.0"},data:[{index:0,"change the":1,"df property":4},{index:1,"change the":2,"df property":5},{index:2,"change the":3,"df property":6}]},required:!0,fullWidth:!1,displayIndex:!1,disabled:!1,label:"",multiple:!1,filterable:!1,value:[],errors:[]},{type:"plotly-output",figure:{data:[{coloraxis:"coloraxis",hovertemplate:"total_bill=%{x}
tip=%{y}
count=%{z}",name:"",x:[16.99,10.34,21.01,23.68,24.59,25.29,8.77,26.88,15.04,14.78,10.27,35.26,15.42,18.43,14.83,21.58,10.33,16.29,16.97,20.65,17.92,20.29,15.77,39.42,19.82,17.81,13.37,12.69,21.7,19.65,9.55,18.35,15.06,20.69,17.78,24.06,16.31,16.93,18.69,31.27,16.04,17.46,13.94,9.68,30.4,18.29,22.23,32.4,28.55,18.04,12.54,10.29,34.81,9.94,25.56,19.49,38.01,26.41,11.24,48.27,20.29,13.81,11.02,18.29,17.59,20.08,16.45,3.07,20.23,15.01,12.02,17.07,26.86,25.28,14.73,10.51,17.92,27.2,22.76,17.29,19.44,16.66,10.07,32.68,15.98,34.83,13.03,18.28,24.71,21.16,28.97,22.49,5.75,16.32,22.75,40.17,27.28,12.03,21.01,12.46,11.35,15.38,44.3,22.42,20.92,15.36,20.49,25.21,18.24,14.31,14,7.25,38.07,23.95,25.71,17.31,29.93,10.65,12.43,24.08,11.69,13.42,14.26,15.95,12.48,29.8,8.52,14.52,11.38,22.82,19.08,20.27,11.17,12.26,18.26,8.51,10.33,14.15,16,13.16,17.47,34.3,41.19,27.05,16.43,8.35,18.64,11.87,9.78,7.51,14.07,13.13,17.26,24.55,19.77,29.85,48.17,25,13.39,16.49,21.5,12.66,16.21,13.81,17.51,24.52,20.76,31.71,10.59,10.63,50.81,15.81,7.25,31.85,16.82,32.9,17.89,14.48,9.6,34.63,34.65,23.33,45.35,23.17,40.55,20.69,20.9,30.46,18.15,23.1,15.69,19.81,28.44,15.48,16.58,7.56,10.34,43.11,13,13.51,18.71,12.74,13,16.4,20.53,16.47,26.59,38.73,24.27,12.76,30.06,25.89,48.33,13.27,28.17,12.9,28.15,11.59,7.74,30.14,12.16,13.42,8.58,15.98,13.42,16.27,10.09,20.45,13.28,22.12,24.01,15.69,11.61,10.77,15.53,10.07,12.6,32.83,35.83,29.03,27.18,22.67,17.82,18.78],xaxis:"x",xbingroup:"x",y:[1.01,1.66,3.5,3.31,3.61,4.71,2,3.12,1.96,3.23,1.71,5,1.57,3,3.02,3.92,1.67,3.71,3.5,3.35,4.08,2.75,2.23,7.58,3.18,2.34,2,2,4.3,3,1.45,2.5,3,2.45,3.27,3.6,2,3.07,2.31,5,2.24,2.54,3.06,1.32,5.6,3,5,6,2.05,3,2.5,2.6,5.2,1.56,4.34,3.51,3,1.5,1.76,6.73,3.21,2,1.98,3.76,2.64,3.15,2.47,1,2.01,2.09,1.97,3,3.14,5,2.2,1.25,3.08,4,3,2.71,3,3.4,1.83,5,2.03,5.17,2,4,5.85,3,3,3.5,1,4.3,3.25,4.73,4,1.5,3,1.5,2.5,3,2.5,3.48,4.08,1.64,4.06,4.29,3.76,4,3,1,4,2.55,4,3.5,5.07,1.5,1.8,2.92,2.31,1.68,2.5,2,2.52,4.2,1.48,2,2,2.18,1.5,2.83,1.5,2,3.25,1.25,2,2,2,2.75,3.5,6.7,5,5,2.3,1.5,1.36,1.63,1.73,2,2.5,2,2.74,2,2,5.14,5,3.75,2.61,2,3.5,2.5,2,2,3,3.48,2.24,4.5,1.61,2,10,3.16,5.15,3.18,4,3.11,2,2,4,3.55,3.68,5.65,3.5,6.5,3,5,3.5,2,3.5,4,1.5,4.19,2.56,2.02,4,1.44,2,5,2,2,4,2.01,2,2.5,4,3.23,3.41,3,2.03,2.23,2,5.16,9,2.5,6.5,1.1,3,1.5,1.44,3.09,2.2,3.48,1.92,3,1.58,2.5,2,3,2.72,2.88,2,3,3.39,1.47,3,1.25,1,1.17,4.67,5.92,2,2,1.75,3],yaxis:"y",ybingroup:"y",type:"histogram2d"}],layout:{template:{data:{histogram2dcontour:[{type:"histogram2dcontour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],choropleth:[{type:"choropleth",colorbar:{outlinewidth:0,ticks:""}}],histogram2d:[{type:"histogram2d",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmap:[{type:"heatmap",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmapgl:[{type:"heatmapgl",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],contourcarpet:[{type:"contourcarpet",colorbar:{outlinewidth:0,ticks:""}}],contour:[{type:"contour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],surface:[{type:"surface",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],mesh3d:[{type:"mesh3d",colorbar:{outlinewidth:0,ticks:""}}],scatter:[{fillpattern:{fillmode:"overlay",size:10,solidity:.2},type:"scatter"}],parcoords:[{type:"parcoords",line:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolargl:[{type:"scatterpolargl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],bar:[{error_x:{color:"#2a3f5f"},error_y:{color:"#2a3f5f"},marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],scattergeo:[{type:"scattergeo",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolar:[{type:"scatterpolar",marker:{colorbar:{outlinewidth:0,ticks:""}}}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],scattergl:[{type:"scattergl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatter3d:[{type:"scatter3d",line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattermapbox:[{type:"scattermapbox",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterternary:[{type:"scatterternary",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattercarpet:[{type:"scattercarpet",marker:{colorbar:{outlinewidth:0,ticks:""}}}],carpet:[{aaxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},baxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},type:"carpet"}],table:[{cells:{fill:{color:"#EBF0F8"},line:{color:"white"}},header:{fill:{color:"#C8D4E3"},line:{color:"white"}},type:"table"}],barpolar:[{marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],pie:[{automargin:!0,type:"pie"}]},layout:{autotypenumbers:"strict",colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#2a3f5f"},hovermode:"closest",hoverlabel:{align:"left"},paper_bgcolor:"white",plot_bgcolor:"#E5ECF6",polar:{bgcolor:"#E5ECF6",angularaxis:{gridcolor:"white",linecolor:"white",ticks:""},radialaxis:{gridcolor:"white",linecolor:"white",ticks:""}},ternary:{bgcolor:"#E5ECF6",aaxis:{gridcolor:"white",linecolor:"white",ticks:""},baxis:{gridcolor:"white",linecolor:"white",ticks:""},caxis:{gridcolor:"white",linecolor:"white",ticks:""}},coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]]},xaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},yaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},scene:{xaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},yaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},zaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2}},shapedefaults:{line:{color:"#2a3f5f"}},annotationdefaults:{arrowcolor:"#2a3f5f",arrowhead:0,arrowwidth:1},geo:{bgcolor:"white",landcolor:"#E5ECF6",subunitcolor:"white",showland:!0,showlakes:!0,lakecolor:"white"},title:{x:.05},mapbox:{style:"light"}}},xaxis:{anchor:"y",domain:[0,1],title:{text:"total_bill"}},yaxis:{anchor:"x",domain:[0,1],title:{text:"tip"}},coloraxis:{colorbar:{title:{text:"count"}},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},legend:{tracegroupgap:0},margin:{t:60}}},fullWidth:!1,label:""},{type:"toggle-input",key:null,label:"Click to confirm the following options",onText:"Yes",offText:"No",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"nps-input",key:null,label:"Rate us!",min:0,max:10,minHint:"Not at all likely",maxHint:"Extremely likely",value:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"checkbox-input",key:null,label:"Choose your option",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"cards-input",key:null,label:"Card Title",hint:null,options:[{title:"Option 1",subtitle:"Subtitle 1",image:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",description:"option 1 description",topLeftExtra:"Left 1",topRightExtra:"Right 1"}],multiple:!1,searchable:!1,value:[],required:!0,columns:2,fullWidth:!1,layout:"list",disabled:!1,errors:[]},{type:"checklist-input",key:null,options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],label:"Choose your option",value:[],required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"multiple-choice-input",key:null,label:"Select your choices",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,value:[],required:!0,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"rating-input",key:null,label:"Rate us!",value:0,required:!0,hint:null,fullWidth:!1,max:null,char:"\u2B50\uFE0F",disabled:!1,errors:[]},{type:"number-slider-input",key:null,label:"Select a value!",value:0,required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"text-output",text:"Your text here!",size:"medium",fullWidth:!1},{type:"latex-output",text:"\\(x^2 + y^2 = z^2\\)",fullWidth:!1},{type:"link-output",linkText:"Click here",linkUrl:"https://www.abstracloud.com",sameTab:!1,fullWidth:!1},{type:"html-output",html:"
Hello World
",fullWidth:!1},{type:"custom-input",key:null,label:"",value:null,htmlBody:"

Hello World

",htmlHead:"",css:"",js:"",fullWidth:!1},{type:"markdown-output",text:"### Hello World",fullWidth:!1},{type:"image-output",imageUrl:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",subtitle:"",fullWidth:!1,label:""},{type:"file-output",fileUrl:"https://gist.github.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6/archive/92200bc0a673d5ce2110aaad4544ed6c4010f687.zip",downloadText:"Download",fullWidth:!1},{type:"kanban-board-input",key:null,label:"",value:[],stages:[{key:"To-Do",label:"To-Do"},{key:"Doing",label:"Doing"},{key:"Done",label:"Done"}],disabled:!1,errors:[]},{type:"appointment-input",label:"",slots:[["2024-10-01T:09:00:00Z","2024-10-01T:09:45:00Z"],["2024-10-01T:14:30:00Z","2024-10-01T:15:30:00Z"],["2024-10-02T:09:00:00Z","2024-10-01T:10:00:00Z"]],value:1,key:null,disabled:!1}],ga={class:"sidebar-preview"},Sa={class:"form widgets"},fa={class:"form-wrapper"},ya=v({__name:"WorkspacePreview",props:{workspace:{}},setup(e){const a=e,t=b(()=>a.workspace.makeRunnerData());return(n,o)=>(c(),y("div",ga,[d(u(G),{level:4},{default:g(()=>[B("Preview")]),_:1}),d(be,{background:t.value.theme,"main-color":t.value.mainColor,"font-family":t.value.fontFamily,locale:t.value.language,class:"sidebar-frame"},{default:g(()=>[d(ve,{"runner-data":t.value,"current-path":"mock-path","email-placeholder":"user@example.com"},null,8,["runner-data"]),f("div",Sa,[f("div",fa,[(c(!0),y(T,null,H(u(ma),i=>(c(),y("div",{key:i.type,class:"widget"},[(c(),m(he(i.type),{"user-props":i,value:i.value,errors:[]},null,8,["user-props","value"]))]))),128))])])]),_:1},8,["background","main-color","font-family","locale"])]))}});const va=K(ya,[["__scopeId","data-v-6e53d5ce"]]),ba={class:"header-content"},ka={class:"body"},Ca={class:"body-content"},wa=v({__name:"PopOver",emits:["open","hide"],setup(e,{expose:a,emit:t}){const n=P(null),o=le({visible:!1,originX:0,originY:0,dragging:null}),i=b(()=>({visibility:o.visible?"visible":"hidden",top:`${o.originY}px`,left:`${o.originX}px`}));pe(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",k)}),se(()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mousemove",k)});const r=()=>{o.visible=!1,t("hide")},s=S=>S>window.innerWidth/2,l=S=>{var A;if(o.visible=!0,!n.value)return;const C=(A=n==null?void 0:n.value)==null?void 0:A.getBoundingClientRect();if(S)if(s(S.clientX)?o.originX=S.clientX-C.width-32:o.originX=S.clientX+C.width+32,S.clientY+C.height>window.innerHeight){const ce=S.clientY+C.height-window.innerHeight;o.originY=S.clientY-ce-32}else o.originY=S.clientY;else o.originX=(window.innerWidth-C.width)/2,o.originY=(window.innerHeight-C.height)/2},h=S=>{o.dragging={initialX:o.originX,initialY:o.originY,clientX:S.clientX,clientY:S.clientY}},p=S=>{o.dragging&&(o.originX=o.dragging.initialX+S.clientX-o.dragging.clientX,o.originY=o.dragging.initialY+S.clientY-o.dragging.clientY)},k=()=>{o.dragging=null};return a({open:l}),(S,C)=>(c(),y("div",{ref_key:"popover",ref:n,class:"pop-over",style:ue(i.value)},[f("div",{class:"header",onMousedown:h},[f("span",ba,[R(S.$slots,"header",{},void 0,!0)]),d(u(pa),{class:"icon",onClick:r})],32),f("div",ka,[f("div",Ca,[R(S.$slots,"body",{},void 0,!0)])])],4))}});const Aa=K(wa,[["__scopeId","data-v-d5a71854"]]);/*! +import{d as v,B as x,f as b,o as c,X as y,Z as R,R as w,eb as ie,a as f,b as d,w as g,aF as B,u,db as G,aR as T,ee as H,c as m,ef as he,$ as K,e as P,D as le,W as pe,ag as se,Y as ue,e9 as W,ec as U,aZ as me,eQ as ge,r as O,cS as D,aA as Z,eR as Se,cy as M,bK as E,cx as fe,df as _,cE as ee}from"./vue-router.3fd92176.js";import"./editor.519c2dc1.js";import{W as ye}from"./workspaces.b456ec6a.js";import{P as ve}from"./PlayerNavbar.56197f01.js";import{W as be}from"./PlayerConfigProvider.44427467.js";import{_ as ae}from"./AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js";import{C as ke}from"./ContentLayout.72beb65c.js";import{L as Ce}from"./LoadingContainer.cc61e2fd.js";import{S as we}from"./SaveButton.6d0d3fb7.js";import{m as te}from"./workspaceStore.411ef1fe.js";import{a as Ae}from"./asyncComputed.295e9e03.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./record.cbb43e89.js";import"./metadata.789df59c.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./PhSignOut.vue.154299d7.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";import"./index.bd967757.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8a581966-c459-4024-9a16-aa7c5a93540c",e._sentryDebugIdIdentifier="sentry-dbid-8a581966-c459-4024-9a16-aa7c5a93540c")}catch{}})();const Ne=["width","height","fill","transform"],Me={key:0},xe=f("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"},null,-1),Be=[xe],Oe={key:1},Fe=f("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),Le=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Pe=[Fe,Le],$e={key:2},Te=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),Re=[Te],He={key:3},_e=f("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"},null,-1),Ee=[_e],De={key:4},Ge=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Ie=[Ge],Ke={key:5},We=f("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"},null,-1),Ue=[We],Ze={name:"PhEye"},oe=v({...Ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),n=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),r=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:n}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[R(p.$slots,"default"),r.value==="bold"?(c(),y("g",Me,Be)):r.value==="duotone"?(c(),y("g",Oe,Pe)):r.value==="fill"?(c(),y("g",$e,Re)):r.value==="light"?(c(),y("g",He,Ee)):r.value==="regular"?(c(),y("g",De,Ie)):r.value==="thin"?(c(),y("g",Ke,Ue)):w("",!0)],16,Ne))}}),ze=["width","height","fill","transform"],Ve={key:0},qe=f("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),je=[qe],Ye={key:1},Je=f("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Xe=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),Qe=[Je,Xe],ea={key:2},aa=f("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),ta=[aa],oa={key:3},na=f("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),ra=[na],ia={key:4},la=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),sa=[la],ua={key:5},da=f("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),ca=[da],ha={name:"PhXCircle"},pa=v({...ha,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),n=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),r=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:n}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[R(p.$slots,"default"),r.value==="bold"?(c(),y("g",Ve,je)):r.value==="duotone"?(c(),y("g",Ye,Qe)):r.value==="fill"?(c(),y("g",ea,ta)):r.value==="light"?(c(),y("g",oa,ra)):r.value==="regular"?(c(),y("g",ia,sa)):r.value==="thin"?(c(),y("g",ua,ca)):w("",!0)],16,ze))}}),ma=[{type:"text-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,mask:null,disabled:!1,errors:[]},{type:"email-input",key:null,label:"Insert your email",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,invalidEmailMessage:"i18n_error_invalid_email",disabled:!1,errors:[]},{type:"phone-input",key:null,label:"Insert a phone number.",value:{countryCode:"",nationalNumber:""},placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[],invalidMessage:"i18n_error_invalid_phone_number"},{type:"number-input",key:null,label:"Number",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"date-input",key:null,hint:null,label:"Pick a date of your preference.",value:"",required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"time-input",key:null,label:"Choose the desired time.",format:"24hs",hint:null,value:{hour:0,minute:0},required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"cnpj-input",key:null,label:"Insert your CNPJ here!",value:"",placeholder:"00.000.000/0001-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cnpj",errors:[]},{type:"cpf-input",key:null,label:"Insert your CPF here!",value:"",placeholder:"000.000.000-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cpf",errors:[]},{type:"tag-input",key:null,label:"Insert the desired tags.",value:[],placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"dropdown-input",key:null,label:"",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,placeholder:"",value:[],required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"currency-input",key:null,label:"Insert the proper amount.",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,currency:"USD",disabled:!1,errors:[]},{type:"textarea-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"rich-text-input",key:null,label:"Insert your rich text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"code-input",key:null,label:"Send your code here!",value:"",language:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"click-input",key:null,label:"Click here!",hint:null,disabled:!1,fullWidth:!1,errors:[]},{type:"progress-output",current:50,total:100,text:"",fullWidth:!1},{type:"file-input",key:null,hint:null,label:"Upload a file.",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"image-input",key:null,hint:null,label:"Upload",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"video-input",key:null,hint:null,label:"Upload your video",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"pandas-row-selection-input",key:null,hint:null,table:{schema:{fields:[{name:"index",type:"integer"},{name:"change the",type:"integer"},{name:"df property",type:"integer"}],primaryKey:["index"],pandas_version:"0.20.0"},data:[{index:0,"change the":1,"df property":4},{index:1,"change the":2,"df property":5},{index:2,"change the":3,"df property":6}]},required:!0,fullWidth:!1,displayIndex:!1,disabled:!1,label:"",multiple:!1,filterable:!1,value:[],errors:[]},{type:"plotly-output",figure:{data:[{coloraxis:"coloraxis",hovertemplate:"total_bill=%{x}
tip=%{y}
count=%{z}",name:"",x:[16.99,10.34,21.01,23.68,24.59,25.29,8.77,26.88,15.04,14.78,10.27,35.26,15.42,18.43,14.83,21.58,10.33,16.29,16.97,20.65,17.92,20.29,15.77,39.42,19.82,17.81,13.37,12.69,21.7,19.65,9.55,18.35,15.06,20.69,17.78,24.06,16.31,16.93,18.69,31.27,16.04,17.46,13.94,9.68,30.4,18.29,22.23,32.4,28.55,18.04,12.54,10.29,34.81,9.94,25.56,19.49,38.01,26.41,11.24,48.27,20.29,13.81,11.02,18.29,17.59,20.08,16.45,3.07,20.23,15.01,12.02,17.07,26.86,25.28,14.73,10.51,17.92,27.2,22.76,17.29,19.44,16.66,10.07,32.68,15.98,34.83,13.03,18.28,24.71,21.16,28.97,22.49,5.75,16.32,22.75,40.17,27.28,12.03,21.01,12.46,11.35,15.38,44.3,22.42,20.92,15.36,20.49,25.21,18.24,14.31,14,7.25,38.07,23.95,25.71,17.31,29.93,10.65,12.43,24.08,11.69,13.42,14.26,15.95,12.48,29.8,8.52,14.52,11.38,22.82,19.08,20.27,11.17,12.26,18.26,8.51,10.33,14.15,16,13.16,17.47,34.3,41.19,27.05,16.43,8.35,18.64,11.87,9.78,7.51,14.07,13.13,17.26,24.55,19.77,29.85,48.17,25,13.39,16.49,21.5,12.66,16.21,13.81,17.51,24.52,20.76,31.71,10.59,10.63,50.81,15.81,7.25,31.85,16.82,32.9,17.89,14.48,9.6,34.63,34.65,23.33,45.35,23.17,40.55,20.69,20.9,30.46,18.15,23.1,15.69,19.81,28.44,15.48,16.58,7.56,10.34,43.11,13,13.51,18.71,12.74,13,16.4,20.53,16.47,26.59,38.73,24.27,12.76,30.06,25.89,48.33,13.27,28.17,12.9,28.15,11.59,7.74,30.14,12.16,13.42,8.58,15.98,13.42,16.27,10.09,20.45,13.28,22.12,24.01,15.69,11.61,10.77,15.53,10.07,12.6,32.83,35.83,29.03,27.18,22.67,17.82,18.78],xaxis:"x",xbingroup:"x",y:[1.01,1.66,3.5,3.31,3.61,4.71,2,3.12,1.96,3.23,1.71,5,1.57,3,3.02,3.92,1.67,3.71,3.5,3.35,4.08,2.75,2.23,7.58,3.18,2.34,2,2,4.3,3,1.45,2.5,3,2.45,3.27,3.6,2,3.07,2.31,5,2.24,2.54,3.06,1.32,5.6,3,5,6,2.05,3,2.5,2.6,5.2,1.56,4.34,3.51,3,1.5,1.76,6.73,3.21,2,1.98,3.76,2.64,3.15,2.47,1,2.01,2.09,1.97,3,3.14,5,2.2,1.25,3.08,4,3,2.71,3,3.4,1.83,5,2.03,5.17,2,4,5.85,3,3,3.5,1,4.3,3.25,4.73,4,1.5,3,1.5,2.5,3,2.5,3.48,4.08,1.64,4.06,4.29,3.76,4,3,1,4,2.55,4,3.5,5.07,1.5,1.8,2.92,2.31,1.68,2.5,2,2.52,4.2,1.48,2,2,2.18,1.5,2.83,1.5,2,3.25,1.25,2,2,2,2.75,3.5,6.7,5,5,2.3,1.5,1.36,1.63,1.73,2,2.5,2,2.74,2,2,5.14,5,3.75,2.61,2,3.5,2.5,2,2,3,3.48,2.24,4.5,1.61,2,10,3.16,5.15,3.18,4,3.11,2,2,4,3.55,3.68,5.65,3.5,6.5,3,5,3.5,2,3.5,4,1.5,4.19,2.56,2.02,4,1.44,2,5,2,2,4,2.01,2,2.5,4,3.23,3.41,3,2.03,2.23,2,5.16,9,2.5,6.5,1.1,3,1.5,1.44,3.09,2.2,3.48,1.92,3,1.58,2.5,2,3,2.72,2.88,2,3,3.39,1.47,3,1.25,1,1.17,4.67,5.92,2,2,1.75,3],yaxis:"y",ybingroup:"y",type:"histogram2d"}],layout:{template:{data:{histogram2dcontour:[{type:"histogram2dcontour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],choropleth:[{type:"choropleth",colorbar:{outlinewidth:0,ticks:""}}],histogram2d:[{type:"histogram2d",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmap:[{type:"heatmap",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmapgl:[{type:"heatmapgl",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],contourcarpet:[{type:"contourcarpet",colorbar:{outlinewidth:0,ticks:""}}],contour:[{type:"contour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],surface:[{type:"surface",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],mesh3d:[{type:"mesh3d",colorbar:{outlinewidth:0,ticks:""}}],scatter:[{fillpattern:{fillmode:"overlay",size:10,solidity:.2},type:"scatter"}],parcoords:[{type:"parcoords",line:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolargl:[{type:"scatterpolargl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],bar:[{error_x:{color:"#2a3f5f"},error_y:{color:"#2a3f5f"},marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],scattergeo:[{type:"scattergeo",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolar:[{type:"scatterpolar",marker:{colorbar:{outlinewidth:0,ticks:""}}}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],scattergl:[{type:"scattergl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatter3d:[{type:"scatter3d",line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattermapbox:[{type:"scattermapbox",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterternary:[{type:"scatterternary",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattercarpet:[{type:"scattercarpet",marker:{colorbar:{outlinewidth:0,ticks:""}}}],carpet:[{aaxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},baxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},type:"carpet"}],table:[{cells:{fill:{color:"#EBF0F8"},line:{color:"white"}},header:{fill:{color:"#C8D4E3"},line:{color:"white"}},type:"table"}],barpolar:[{marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],pie:[{automargin:!0,type:"pie"}]},layout:{autotypenumbers:"strict",colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#2a3f5f"},hovermode:"closest",hoverlabel:{align:"left"},paper_bgcolor:"white",plot_bgcolor:"#E5ECF6",polar:{bgcolor:"#E5ECF6",angularaxis:{gridcolor:"white",linecolor:"white",ticks:""},radialaxis:{gridcolor:"white",linecolor:"white",ticks:""}},ternary:{bgcolor:"#E5ECF6",aaxis:{gridcolor:"white",linecolor:"white",ticks:""},baxis:{gridcolor:"white",linecolor:"white",ticks:""},caxis:{gridcolor:"white",linecolor:"white",ticks:""}},coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]]},xaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},yaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},scene:{xaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},yaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},zaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2}},shapedefaults:{line:{color:"#2a3f5f"}},annotationdefaults:{arrowcolor:"#2a3f5f",arrowhead:0,arrowwidth:1},geo:{bgcolor:"white",landcolor:"#E5ECF6",subunitcolor:"white",showland:!0,showlakes:!0,lakecolor:"white"},title:{x:.05},mapbox:{style:"light"}}},xaxis:{anchor:"y",domain:[0,1],title:{text:"total_bill"}},yaxis:{anchor:"x",domain:[0,1],title:{text:"tip"}},coloraxis:{colorbar:{title:{text:"count"}},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},legend:{tracegroupgap:0},margin:{t:60}}},fullWidth:!1,label:""},{type:"toggle-input",key:null,label:"Click to confirm the following options",onText:"Yes",offText:"No",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"nps-input",key:null,label:"Rate us!",min:0,max:10,minHint:"Not at all likely",maxHint:"Extremely likely",value:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"checkbox-input",key:null,label:"Choose your option",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"cards-input",key:null,label:"Card Title",hint:null,options:[{title:"Option 1",subtitle:"Subtitle 1",image:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",description:"option 1 description",topLeftExtra:"Left 1",topRightExtra:"Right 1"}],multiple:!1,searchable:!1,value:[],required:!0,columns:2,fullWidth:!1,layout:"list",disabled:!1,errors:[]},{type:"checklist-input",key:null,options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],label:"Choose your option",value:[],required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"multiple-choice-input",key:null,label:"Select your choices",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,value:[],required:!0,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"rating-input",key:null,label:"Rate us!",value:0,required:!0,hint:null,fullWidth:!1,max:null,char:"\u2B50\uFE0F",disabled:!1,errors:[]},{type:"number-slider-input",key:null,label:"Select a value!",value:0,required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"text-output",text:"Your text here!",size:"medium",fullWidth:!1},{type:"latex-output",text:"\\(x^2 + y^2 = z^2\\)",fullWidth:!1},{type:"link-output",linkText:"Click here",linkUrl:"https://www.abstracloud.com",sameTab:!1,fullWidth:!1},{type:"html-output",html:"
Hello World
",fullWidth:!1},{type:"custom-input",key:null,label:"",value:null,htmlBody:"

Hello World

",htmlHead:"",css:"",js:"",fullWidth:!1},{type:"markdown-output",text:"### Hello World",fullWidth:!1},{type:"image-output",imageUrl:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",subtitle:"",fullWidth:!1,label:""},{type:"file-output",fileUrl:"https://gist.github.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6/archive/92200bc0a673d5ce2110aaad4544ed6c4010f687.zip",downloadText:"Download",fullWidth:!1},{type:"kanban-board-input",key:null,label:"",value:[],stages:[{key:"To-Do",label:"To-Do"},{key:"Doing",label:"Doing"},{key:"Done",label:"Done"}],disabled:!1,errors:[]},{type:"appointment-input",label:"",slots:[["2024-10-01T:09:00:00Z","2024-10-01T:09:45:00Z"],["2024-10-01T:14:30:00Z","2024-10-01T:15:30:00Z"],["2024-10-02T:09:00:00Z","2024-10-01T:10:00:00Z"]],value:1,key:null,disabled:!1}],ga={class:"sidebar-preview"},Sa={class:"form widgets"},fa={class:"form-wrapper"},ya=v({__name:"WorkspacePreview",props:{workspace:{}},setup(e){const a=e,t=b(()=>a.workspace.makeRunnerData());return(n,o)=>(c(),y("div",ga,[d(u(G),{level:4},{default:g(()=>[B("Preview")]),_:1}),d(be,{background:t.value.theme,"main-color":t.value.mainColor,"font-family":t.value.fontFamily,locale:t.value.language,class:"sidebar-frame"},{default:g(()=>[d(ve,{"runner-data":t.value,"current-path":"mock-path","email-placeholder":"user@example.com"},null,8,["runner-data"]),f("div",Sa,[f("div",fa,[(c(!0),y(T,null,H(u(ma),i=>(c(),y("div",{key:i.type,class:"widget"},[(c(),m(he(i.type),{"user-props":i,value:i.value,errors:[]},null,8,["user-props","value"]))]))),128))])])]),_:1},8,["background","main-color","font-family","locale"])]))}});const va=K(ya,[["__scopeId","data-v-6e53d5ce"]]),ba={class:"header-content"},ka={class:"body"},Ca={class:"body-content"},wa=v({__name:"PopOver",emits:["open","hide"],setup(e,{expose:a,emit:t}){const n=P(null),o=le({visible:!1,originX:0,originY:0,dragging:null}),i=b(()=>({visibility:o.visible?"visible":"hidden",top:`${o.originY}px`,left:`${o.originX}px`}));pe(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",k)}),se(()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mousemove",k)});const r=()=>{o.visible=!1,t("hide")},s=S=>S>window.innerWidth/2,l=S=>{var A;if(o.visible=!0,!n.value)return;const C=(A=n==null?void 0:n.value)==null?void 0:A.getBoundingClientRect();if(S)if(s(S.clientX)?o.originX=S.clientX-C.width-32:o.originX=S.clientX+C.width+32,S.clientY+C.height>window.innerHeight){const ce=S.clientY+C.height-window.innerHeight;o.originY=S.clientY-ce-32}else o.originY=S.clientY;else o.originX=(window.innerWidth-C.width)/2,o.originY=(window.innerHeight-C.height)/2},h=S=>{o.dragging={initialX:o.originX,initialY:o.originY,clientX:S.clientX,clientY:S.clientY}},p=S=>{o.dragging&&(o.originX=o.dragging.initialX+S.clientX-o.dragging.clientX,o.originY=o.dragging.initialY+S.clientY-o.dragging.clientY)},k=()=>{o.dragging=null};return a({open:l}),(S,C)=>(c(),y("div",{ref_key:"popover",ref:n,class:"pop-over",style:ue(i.value)},[f("div",{class:"header",onMousedown:h},[f("span",ba,[R(S.$slots,"header",{},void 0,!0)]),d(u(pa),{class:"icon",onClick:r})],32),f("div",ka,[f("div",Ca,[R(S.$slots,"body",{},void 0,!0)])])],4))}});const Aa=K(wa,[["__scopeId","data-v-d5a71854"]]);/*! * vue-color-kit v1.0.4 * (c) 2021 * @license MIT */function F(e){let a={r:0,g:0,b:0,a:1};/#/.test(e)?a=Ma(e):/rgb/.test(e)?a=ne(e):typeof e=="string"?a=ne(`rgba(${e})`):Object.prototype.toString.call(e)==="[object Object]"&&(a=e);const{r:t,g:n,b:o,a:i}=a,{h:r,s,v:l}=xa(a);return{r:t,g:n,b:o,a:i===void 0?1:i,h:r,s,v:l}}function z(e){const a=document.createElement("canvas"),t=a.getContext("2d"),n=e*2;return a.width=n,a.height=n,t.fillStyle="#ffffff",t.fillRect(0,0,n,n),t.fillStyle="#ccd5db",t.fillRect(0,0,e,e),t.fillRect(e,e,e,e),a}function I(e,a,t,n,o,i){const r=e==="l",s=a.createLinearGradient(0,0,r?t:0,r?0:n);s.addColorStop(.01,o),s.addColorStop(.99,i),a.fillStyle=s,a.fillRect(0,0,t,n)}function Na({r:e,g:a,b:t},n){const o=r=>("0"+Number(r).toString(16)).slice(-2),i=`#${o(e)}${o(a)}${o(t)}`;return n?i.toUpperCase():i}function Ma(e){e=e.slice(1);const a=t=>parseInt(t,16)||0;return{r:a(e.slice(0,2)),g:a(e.slice(2,4)),b:a(e.slice(4,6))}}function ne(e){return typeof e=="string"?(e=(/rgba?\((.*?)\)/.exec(e)||["","0,0,0,1"])[1].split(","),{r:Number(e[0])||0,g:Number(e[1])||0,b:Number(e[2])||0,a:Number(e[3]?e[3]:1)}):e}function xa({r:e,g:a,b:t}){e=e/255,a=a/255,t=t/255;const n=Math.max(e,a,t),o=Math.min(e,a,t),i=n-o;let r=0;n===o?r=0:n===e?a>=t?r=60*(a-t)/i:r=60*(a-t)/i+360:n===a?r=60*(t-e)/i+120:n===t&&(r=60*(e-a)/i+240),r=Math.floor(r);let s=parseFloat((n===0?0:1-o/n).toFixed(2)),l=parseFloat(n.toFixed(2));return{h:r,s,v:l}}var V=v({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasSaturation,a=this.size,t=e.getContext("2d");e.width=a,e.height=a,t.fillStyle=this.color,t.fillRect(0,0,a,a),I("l",t,a,a,"#FFFFFF","rgba(255,255,255,0)"),I("p",t,a,a,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(e){const{top:a,left:t}=this.$el.getBoundingClientRect(),n=e.target.getContext("2d"),o=r=>{let s=r.clientX-t,l=r.clientY-a;s<0&&(s=0),l<0&&(l=0),s>this.size&&(s=this.size),l>this.size&&(l=this.size),this.slideSaturationStyle={left:s-5+"px",top:l-5+"px"};const h=n.getImageData(Math.min(s,this.size-1),Math.min(l,this.size-1),1,1),[p,k,S]=h.data;this.$emit("selectSaturation",{r:p,g:k,b:S})};o(e);const i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}}});const Ba={ref:"canvasSaturation"};function Oa(e,a,t,n,o,i){return c(),m("div",{class:"saturation",onMousedown:a[1]||(a[1]=W((...r)=>e.selectSaturation&&e.selectSaturation(...r),["prevent","stop"]))},[d("canvas",Ba,null,512),d("div",{style:e.slideSaturationStyle,class:"slide"},null,4)],32)}V.render=Oa;V.__file="src/color/Saturation.vue";var q=v({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasHue,a=this.width,t=this.height,n=e.getContext("2d");e.width=a,e.height=t;const o=n.createLinearGradient(0,0,0,t);o.addColorStop(0,"#FF0000"),o.addColorStop(.17*1,"#FF00FF"),o.addColorStop(.17*2,"#0000FF"),o.addColorStop(.17*3,"#00FFFF"),o.addColorStop(.17*4,"#00FF00"),o.addColorStop(.17*5,"#FFFF00"),o.addColorStop(1,"#FF0000"),n.fillStyle=o,n.fillRect(0,0,a,t)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(e){const{top:a}=this.$el.getBoundingClientRect(),t=e.target.getContext("2d"),n=i=>{let r=i.clientY-a;r<0&&(r=0),r>this.height&&(r=this.height),this.slideHueStyle={top:r-2+"px"};const s=t.getImageData(0,Math.min(r,this.height-1),1,1),[l,h,p]=s.data;this.$emit("selectHue",{r:l,g:h,b:p})};n(e);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const Fa={ref:"canvasHue"};function La(e,a,t,n,o,i){return c(),m("div",{class:"hue",onMousedown:a[1]||(a[1]=W((...r)=>e.selectHue&&e.selectHue(...r),["prevent","stop"]))},[d("canvas",Fa,null,512),d("div",{style:e.slideHueStyle,class:"slide"},null,4)],32)}q.render=La;q.__file="src/color/Hue.vue";var j=v({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasAlpha,a=this.width,t=this.height,n=this.alphaSize,o=z(n),i=e.getContext("2d");e.width=a,e.height=t,i.fillStyle=i.createPattern(o,"repeat"),i.fillRect(0,0,a,t),I("p",i,a,t,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(e){const{top:a}=this.$el.getBoundingClientRect(),t=o=>{let i=o.clientY-a;i<0&&(i=0),i>this.height&&(i=this.height);let r=parseFloat((i/this.height).toFixed(2));this.$emit("selectAlpha",r)};t(e);const n=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}}});const Pa={ref:"canvasAlpha"};function $a(e,a,t,n,o,i){return c(),m("div",{class:"color-alpha",onMousedown:a[1]||(a[1]=W((...r)=>e.selectAlpha&&e.selectAlpha(...r),["prevent","stop"]))},[d("canvas",Pa,null,512),d("div",{style:e.slideAlphaStyle,class:"slide"},null,4)],32)}j.render=$a;j.__file="src/color/Alpha.vue";var Y=v({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const e=this.$el,a=this.width,t=this.height,n=this.alphaSize,o=z(n),i=e.getContext("2d");e.width=a,e.height=t,i.fillStyle=i.createPattern(o,"repeat"),i.fillRect(0,0,a,t),i.fillStyle=this.color,i.fillRect(0,0,a,t)}}});function Ta(e,a,t,n,o,i){return c(),m("canvas")}Y.render=Ta;Y.__file="src/color/Preview.vue";var J=v({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(e){this.isSucking=!1,this.suckColor(e)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(e){e.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(e){const{clientX:a,clientY:t}=e,{top:n,left:o,width:i,height:r}=this.suckerCanvas.getBoundingClientRect(),s=a-o,l=t-n,p=this.suckerCanvas.getContext("2d").getImageData(Math.min(s,i-1),Math.min(l,r-1),1,1);let[k,S,C,A]=p.data;A=parseFloat((A/255).toFixed(2));const N=this.suckerPreview.style;Object.assign(N,{position:"absolute",left:a+20+"px",top:t-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${k}, ${S}, ${C}, ${A})`,zIndex:95}),this.suckerArea.length&&a>=this.suckerArea[0]&&t>=this.suckerArea[1]&&a<=this.suckerArea[2]&&t<=this.suckerArea[3]?N.display="":N.display="none"},suckColor(e){e&&e.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),e.addEventListener("click",a=>{const{clientX:t,clientY:n}=a,{top:o,left:i,width:r,height:s}=e.getBoundingClientRect(),l=t-i,h=n-o,k=e.getContext("2d").getImageData(Math.min(l,r-1),Math.min(h,s-1),1,1);let[S,C,A,N]=k.data;N=parseFloat((N/255).toFixed(2)),this.$emit("selectSucker",{r:S,g:C,b:A,a:N})}))}}});const Ra=d("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),Ha={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},_a=d("g",{fill:"none","fill-rule":"evenodd"},[d("g",{transform:"translate(1 1)","stroke-width":"4"},[d("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),d("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[d("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function Ea(e,a,t,n,o,i){return c(),m("div",null,[e.isSucking?w("v-if",!0):(c(),m("svg",{key:0,class:[{active:e.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:a[1]||(a[1]=(...r)=>e.openSucker&&e.openSucker(...r))},[Ra],2)),e.isSucking?(c(),m("svg",Ha,[_a])):w("v-if",!0)])}J.render=Ea;J.__file="src/color/Sucker.vue";var X=v({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor"],setup(e,{emit:a}){return{modelColor:b({get(){return e.color||""},set(n){a("inputColor",n)}})}}});const Da={class:"color-type"},Ga={class:"name"};function Ia(e,a,t,n,o,i){return c(),m("div",Da,[d("span",Ga,U(e.name),1),me(d("input",{"onUpdate:modelValue":a[1]||(a[1]=r=>e.modelColor=r),class:"value"},null,512),[[ge,e.modelColor]])])}X.render=Ia;X.__file="src/color/Box.vue";var Q=v({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(e,{emit:a}){const t=P(),n=P([]),o=P();e.colorsHistoryKey&&localStorage&&(n.value=JSON.parse(localStorage.getItem(e.colorsHistoryKey))||[]),o.value=z(4).toDataURL(),se(()=>{i(t.value)});function i(s){if(!s)return;const l=n.value||[],h=l.indexOf(s);h>=0&&l.splice(h,1),l.length>=8&&(l.length=7),l.unshift(s),n.value=l||[],localStorage&&e.colorsHistoryKey&&localStorage.setItem(e.colorsHistoryKey,JSON.stringify(l))}function r(s){a("selectColor",s)}return{setColorsHistory:i,colorsHistory:n,color:t,imgAlphaBase64:o,selectColor:r}}});const Ka={class:"colors"},Wa={key:0,class:"colors history"};function Ua(e,a,t,n,o,i){return c(),m("div",null,[d("ul",Ka,[(c(!0),m(T,null,H(e.colorsDefault,r=>(c(),m("li",{key:r,class:"item",onClick:s=>e.selectColor(r)},[d("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),d("div",{style:{background:r},class:"color"},null,4)],8,["onClick"]))),128))]),e.colorsHistory.length?(c(),m("ul",Wa,[(c(!0),m(T,null,H(e.colorsHistory,r=>(c(),m("li",{key:r,class:"item",onClick:s=>e.selectColor(r)},[d("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),d("div",{style:{background:r},class:"color"},null,4)],8,["onClick"]))),128))])):w("v-if",!0)])}Q.render=Ua;Q.__file="src/color/Colors.vue";var $=v({components:{Saturation:V,Hue:q,Alpha:j,Preview:Y,Sucker:J,Box:X,Colors:Q},emits:["changeColor","openSucker"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return Na(this.rgba,!0)}},created(){Object.assign(this,F(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(e){const{r:a,g:t,b:n,h:o,s:i,v:r}=F(e);Object.assign(this,{r:a,g:t,b:n,h:o,s:i,v:r}),this.setText()},selectHue(e){const{r:a,g:t,b:n,h:o,s:i,v:r}=F(e);Object.assign(this,{r:a,g:t,b:n,h:o,s:i,v:r}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(e){this.a=e,this.setText()},inputHex(e){const{r:a,g:t,b:n,a:o,h:i,s:r,v:s}=F(e);Object.assign(this,{r:a,g:t,b:n,a:o,h:i,s:r,v:s}),this.modelHex=e,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(e){const{r:a,g:t,b:n,a:o,h:i,s:r,v:s}=F(e);Object.assign(this,{r:a,g:t,b:n,a:o,h:i,s:r,v:s}),this.modelHex=this.hexString,this.modelRgba=e,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(e){this.$emit("openSucker",e)},selectSucker(e){const{r:a,g:t,b:n,a:o,h:i,s:r,v:s}=F(e);Object.assign(this,{r:a,g:t,b:n,a:o,h:i,s:r,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(e){const{r:a,g:t,b:n,a:o,h:i,s:r,v:s}=F(e);Object.assign(this,{r:a,g:t,b:n,a:o,h:i,s:r,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Za={class:"color-set"};function za(e,a,t,n,o,i){const r=O("Saturation"),s=O("Hue"),l=O("Alpha"),h=O("Preview"),p=O("Sucker"),k=O("Box"),S=O("Colors");return c(),m("div",{class:["hu-color-picker",{light:e.isLightTheme}],style:{width:e.totalWidth+"px"}},[d("div",Za,[d(r,{ref:"saturation",color:e.rgbString,hsv:e.hsv,size:e.hueHeight,onSelectSaturation:e.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),d(s,{ref:"hue",hsv:e.hsv,width:e.hueWidth,height:e.hueHeight,onSelectHue:e.selectHue},null,8,["hsv","width","height","onSelectHue"]),d(l,{ref:"alpha",color:e.rgbString,rgba:e.rgba,width:e.hueWidth,height:e.hueHeight,onSelectAlpha:e.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),d("div",{style:{height:e.previewHeight+"px"},class:"color-show"},[d(h,{color:e.rgbaString,width:e.previewWidth,height:e.previewHeight},null,8,["color","width","height"]),e.suckerHide?w("v-if",!0):(c(),m(p,{key:0,"sucker-canvas":e.suckerCanvas,"sucker-area":e.suckerArea,onOpenSucker:e.openSucker,onSelectSucker:e.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),d(k,{name:"HEX",color:e.modelHex,onInputColor:e.inputHex},null,8,["color","onInputColor"]),d(k,{name:"RGBA",color:e.modelRgba,onInputColor:e.inputRgba},null,8,["color","onInputColor"]),d(S,{color:e.rgbaString,"colors-default":e.colorsDefault,"colors-history-key":e.colorsHistoryKey,onSelectColor:e.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),w(" custom options "),R(e.$slots,"default")],6)}$.render=za;$.__file="src/color/ColorPicker.vue";$.install=e=>{e.component($.name,$)};const Va={class:"color-input"},qa={class:"color-picker-wrapper"},ja=v({__name:"ColorInput",props:{value:{}},emits:["input","change"],setup(e,{emit:a}){const t=P(null),n=i=>{var r;return(r=t.value)==null?void 0:r.open(i)},o=({hex:i})=>{a("input",i),a("change",i)};return(i,r)=>(c(),y("div",Va,[f("div",{class:"color-input-container",style:ue({backgroundColor:i.value}),onClick:n},null,4),d(Aa,{ref_key:"popover",ref:t},{header:g(()=>[B(" Pick a Color ")]),body:g(()=>[f("div",qa,[d(u($),{color:i.value,theme:"light",onChangeColor:o},null,8,["color"])])]),_:1},512)]))}});const de=K(ja,[["__scopeId","data-v-c91cc2ee"]]),Ya=["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akaya Kanadaka","Akaya Telivigala","Akronim","Aladin","Alata","Alatsi","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Aleo","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allison","Allura","Almarai","Almendra","Almendra Display","Almendra SC","Alumni Sans","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada Pro","Andika","Andika New Basic","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Antonio","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Are You Serious","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atkinson Hyperlegible","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Azeret Mono","B612","B612 Mono","Bad Script","Bahiana","Bahianita","Bai Jamjuree","Ballet","Baloo 2","Baloo Bhai 2","Baloo Bhaina 2","Baloo Chettan 2","Baloo Da 2","Baloo Paaji 2","Baloo Tamma 2","Baloo Tammudu 2","Baloo Thambi 2","Balsamiq Sans","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Basic","Baskervville","Battambang","Baumans","Bayon","Be Vietnam","Be Vietnam Pro","Bebas Neue","Belgrano","Bellefair","Belleza","Bellota","Bellota Text","BenchNine","Benne","Bentham","Berkshire Swash","Besley","Beth Ellen","Bevan","Big Shoulders Display","Big Shoulders Inline Display","Big Shoulders Inline Text","Big Shoulders Stencil Display","Big Shoulders Stencil Text","Big Shoulders Text","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Birthstone","Birthstone Bounce","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blinker","Bodoni Moda","Bokor","Bona Nova","Bonbon","Bonheur Royale","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Brygada 1918","Bubblegum Sans","Bubbler One","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Caladea","Calistoga","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Caramel","Carattere","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Castoro","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherish","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chilanka","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Comic Neue","Coming Soon","Commissioner","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Courier Prime","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Crimson Text","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Damion","Dancing Script","Dangrek","Darker Grotesque","David Libre","Dawning of a New Day","Days One","Dekko","Dela Gothic One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Doppio One","Dorsa","Dosis","DotGothic16","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans SC","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Ephesis","Epilogue","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Explora","Fahkwang","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Festive","Finger Paint","Fira Code","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fleur De Leah","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Fraunces","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","Fuggles","GFS Didot","GFS Neohellenic","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gayathri","Gelasio","Gemunu Libre","Gentium Basic","Gentium Book Basic","Geo","Georama","Geostar","Geostar Fill","Germania One","Gideon Roman","Gidugu","Gilda Display","Girassol","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Glory","Gluten","Goblin One","Gochi Hand","Goldman","Gorditas","Gothic A1","Gotu","Goudy Bookletter 1911","Gowun Batang","Gowun Dodum","Graduate","Grand Hotel","Grandstander","Gravitas One","Great Vibes","Grechen Fuemen","Grenze","Grenze Gotisch","Grey Qo","Griffy","Gruppo","Gudea","Gugi","Gupter","Gurajada","Habibi","Hachi Maru Pop","Hahmlet","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Hepta Slab","Herr Von Muellerhoff","Hi Melody","Hina Mincho","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Arabic","IBM Plex Sans Condensed","IBM Plex Sans Devanagari","IBM Plex Sans Hebrew","IBM Plex Sans KR","IBM Plex Sans Thai","IBM Plex Sans Thai Looped","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Ibarra Real Nova","Iceberg","Iceland","Imbue","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Inria Sans","Inria Serif","Inter","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","JetBrains Mono","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Jomolhari","Josefin Sans","Josefin Slab","Jost","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","Kadwa","Kaisei Decol","Kaisei HarunoUmi","Kaisei Opti","Kaisei Tokumin","Kalam","Kameron","Kanit","Kantumruy","Karantina","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kirang Haerang","Kite One","Kiwi Maru","Klee One","Knewave","KoHo","Kodchasan","Koh Santepheap","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kufam","Kulim Park","Kumar One","Kumar One Outline","Kumbh Sans","Kurale","La Belle Aurore","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Langar","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Lexend","Lexend Deca","Lexend Exa","Lexend Giga","Lexend Mega","Lexend Peta","Lexend Tera","Lexend Zetta","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Barcode EAN13 Text","Libre Baskerville","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Literata","Liu Jian Mao Cao","Livvic","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","M PLUS 1p","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Mandali","Manjari","Manrope","Mansalva","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Material Icons","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Mina","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Modak","Modern Antiqua","Mogra","Molengo","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","MonteCarlo","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Mulish","MuseoModerno","Mystery Quest","NTR","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Nerko One","Neucha","Neuton","New Rocker","New Tegomin","News Cycle","Newsreader","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Kufi Arabic","Noto Music","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Rashi Hebrew","Noto Sans","Noto Sans Adlam","Noto Sans Adlam Unjoined","Noto Sans Anatolian Hieroglyphs","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Avestan","Noto Sans Balinese","Noto Sans Bamum","Noto Sans Bassa Vah","Noto Sans Batak","Noto Sans Bengali","Noto Sans Bhaiksuki","Noto Sans Brahmi","Noto Sans Buginese","Noto Sans Buhid","Noto Sans Canadian Aboriginal","Noto Sans Carian","Noto Sans Caucasian Albanian","Noto Sans Chakma","Noto Sans Cham","Noto Sans Cherokee","Noto Sans Coptic","Noto Sans Cuneiform","Noto Sans Cypriot","Noto Sans Deseret","Noto Sans Devanagari","Noto Sans Display","Noto Sans Duployan","Noto Sans Egyptian Hieroglyphs","Noto Sans Elbasan","Noto Sans Elymaic","Noto Sans Georgian","Noto Sans Glagolitic","Noto Sans Gothic","Noto Sans Grantha","Noto Sans Gujarati","Noto Sans Gunjala Gondi","Noto Sans Gurmukhi","Noto Sans HK","Noto Sans Hanifi Rohingya","Noto Sans Hanunoo","Noto Sans Hatran","Noto Sans Hebrew","Noto Sans Imperial Aramaic","Noto Sans Indic Siyaq Numbers","Noto Sans Inscriptional Pahlavi","Noto Sans Inscriptional Parthian","Noto Sans JP","Noto Sans Javanese","Noto Sans KR","Noto Sans Kaithi","Noto Sans Kannada","Noto Sans Kayah Li","Noto Sans Kharoshthi","Noto Sans Khmer","Noto Sans Khojki","Noto Sans Khudawadi","Noto Sans Lao","Noto Sans Lepcha","Noto Sans Limbu","Noto Sans Linear A","Noto Sans Linear B","Noto Sans Lisu","Noto Sans Lycian","Noto Sans Lydian","Noto Sans Mahajani","Noto Sans Malayalam","Noto Sans Mandaic","Noto Sans Manichaean","Noto Sans Marchen","Noto Sans Masaram Gondi","Noto Sans Math","Noto Sans Mayan Numerals","Noto Sans Medefaidrin","Noto Sans Meroitic","Noto Sans Miao","Noto Sans Modi","Noto Sans Mongolian","Noto Sans Mono","Noto Sans Mro","Noto Sans Multani","Noto Sans Myanmar","Noto Sans N Ko","Noto Sans Nabataean","Noto Sans New Tai Lue","Noto Sans Newa","Noto Sans Nushu","Noto Sans Ogham","Noto Sans Ol Chiki","Noto Sans Old Hungarian","Noto Sans Old Italic","Noto Sans Old North Arabian","Noto Sans Old Permic","Noto Sans Old Persian","Noto Sans Old Sogdian","Noto Sans Old South Arabian","Noto Sans Old Turkic","Noto Sans Oriya","Noto Sans Osage","Noto Sans Osmanya","Noto Sans Pahawh Hmong","Noto Sans Palmyrene","Noto Sans Pau Cin Hau","Noto Sans Phags Pa","Noto Sans Phoenician","Noto Sans Psalter Pahlavi","Noto Sans Rejang","Noto Sans Runic","Noto Sans SC","Noto Sans Samaritan","Noto Sans Saurashtra","Noto Sans Sharada","Noto Sans Shavian","Noto Sans Siddham","Noto Sans Sinhala","Noto Sans Sogdian","Noto Sans Sora Sompeng","Noto Sans Soyombo","Noto Sans Sundanese","Noto Sans Syloti Nagri","Noto Sans Symbols","Noto Sans Symbols 2","Noto Sans Syriac","Noto Sans TC","Noto Sans Tagalog","Noto Sans Tagbanwa","Noto Sans Tai Le","Noto Sans Tai Tham","Noto Sans Tai Viet","Noto Sans Takri","Noto Sans Tamil","Noto Sans Tamil Supplement","Noto Sans Telugu","Noto Sans Thaana","Noto Sans Thai","Noto Sans Thai Looped","Noto Sans Tifinagh","Noto Sans Tirhuta","Noto Sans Ugaritic","Noto Sans Vai","Noto Sans Wancho","Noto Sans Warang Citi","Noto Sans Yi","Noto Sans Zanabazar Square","Noto Serif","Noto Serif Ahom","Noto Serif Armenian","Noto Serif Balinese","Noto Serif Bengali","Noto Serif Devanagari","Noto Serif Display","Noto Serif Dogra","Noto Serif Ethiopic","Noto Serif Georgian","Noto Serif Grantha","Noto Serif Gujarati","Noto Serif Gurmukhi","Noto Serif Hebrew","Noto Serif JP","Noto Serif KR","Noto Serif Kannada","Noto Serif Khmer","Noto Serif Lao","Noto Serif Malayalam","Noto Serif Myanmar","Noto Serif Nyiakeng Puachue Hmong","Noto Serif SC","Noto Serif Sinhala","Noto Serif TC","Noto Serif Tamil","Noto Serif Tangut","Noto Serif Telugu","Noto Serif Thai","Noto Serif Tibetan","Noto Serif Yezidi","Noto Traditional Nushu","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odibee Sans","Odor Mean Chey","Offside","Oi","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orelega One","Orienta","Original Surfer","Oswald","Otomanopee One","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxanium","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Palette Mosaic","Pangolin","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piazzolla","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poor Story","Poppins","Port Lligat Sans","Port Lligat Slab","Potta One","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Public Sans","Puritan","Purple Purse","Qahiri","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Rampart One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Recursive","Red Hat Display","Red Hat Text","Red Rose","Redressed","Reem Kufi","Reenie Beanie","Reggae One","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","RocknRoll One","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rowdies","Rozha One","Rubik","Rubik Beastly","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","STIX Two Text","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Saira Stencil One","Salsa","Sanchez","Sancreek","Sansita","Sansita Swashed","Sarabun","Sarala","Sarina","Sarpanch","Satisfy","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade","Scheherazade New","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sen","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shippori Mincho","Shippori Mincho B1","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Single Day","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Solway","Song Myung","Sonsie One","Sora","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Space Grotesk","Space Mono","Spartan","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stalemate","Stalinist One","Stardos Stencil","Stick","Stick No Bills","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Style Script","Stylish","Sue Ellen Francisco","Suez One","Sulphur Point","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Syne","Syne Mono","Syne Tactile","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Texturina","Thasadith","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Tomorrow","Tourney","Trade Winds","Train One","Trirong","Trispace","Trocchi","Trochut","Truculenta","Trykker","Tulpen One","Turret Road","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Uchen","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Urbanist","VT323","Vampiro One","Varela","Varela Round","Varta","Vast Shadow","Vesper Libre","Viaoda Libre","Vibes","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","WindSong","Wire One","Work Sans","Xanh Mono","Yaldevi","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yomogi","Yrsa","Yusei Magic","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zen Antique","Zen Antique Soft","Zen Dots","Zen Kaku Gothic Antique","Zen Kaku Gothic New","Zen Kurenaido","Zen Loop","Zen Maru Gothic","Zen Old Mincho","Zen Tokyo Zoo","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"],Ja=v({__name:"FontInput",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:a}){const n=P(e.modelValue),o=Ya,i=()=>a("update:modelValue",n.value);return(r,s)=>(c(),m(u(Z),{value:n.value,"onUpdate:value":s[0]||(s[0]=l=>n.value=l),"show-search":"",onChange:i},{default:g(()=>[(c(!0),y(T,null,H(u(o),l=>(c(),m(u(D),{key:l,value:l},{default:g(()=>[B(U(l),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]))}}),Xa=v({__name:"LanguageInput",props:{language:{}},emits:["update:language"],setup(e,{emit:a}){return(t,n)=>(c(),m(u(Z),{value:t.language,onChange:n[0]||(n[0]=o=>a("update:language",o))},{default:g(()=>[(c(!0),y(T,null,H(u(Se),o=>(c(),m(u(D),{key:o.key,value:o.key},{default:g(()=>[B(U(o.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]))}});function Qa(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}function et(e){return e.startsWith("http://")||e.startsWith("https://")}function L(e){return et(e)?"external-image":Qa(e)?"color":"hosted-image"}const at=v({__name:"BackgroundSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:a}){const t=e,n=s=>a("update:modelValue",s),o=s=>{n(s==="color"?"#ffffff":"")},i=b(()=>L(t.modelValue)==="color"?t.modelValue:""),r=b(()=>t.modelValue);return(s,l)=>(c(),y(T,null,[d(u(M),{label:"Background Type"},{default:g(()=>[d(u(Z),{value:u(L)(s.modelValue),onChange:l[0]||(l[0]=h=>o(h))},{default:g(()=>[d(u(D),{value:"color",selected:u(L)(s.modelValue)==="color"},{default:g(()=>[B(" Color ")]),_:1},8,["selected"]),d(u(D),{value:"image",selected:u(L)(s.modelValue)==="hosted-image"||u(L)(s.modelValue)==="external-image"},{default:g(()=>[B(" Image ")]),_:1},8,["selected"])]),_:1},8,["value"])]),_:1}),d(u(M),{label:u(L)(s.modelValue)==="color"?"Background Color":"Background Image path"},{default:g(()=>[u(L)(s.modelValue)==="color"?(c(),m(de,{key:0,value:i.value,onChange:n},null,8,["value"])):(c(),m(u(E),{key:1,value:r.value,type:"text",onInput:l[1]||(l[1]=h=>n(h.target.value))},null,8,["value"]))]),_:1},8,["label"])],64))}}),tt={style:{width:"50%"}},ot={style:{width:"50%"}},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAMAAADnYz6mAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAA5UExURfX19aCgoOLi4rS0tKenp+/v75OTk4yMjMLCwtvb25qams/Pz7u7u8jIyOjo6KioqNXV1a6urrW1ta1OqBIAAAExSURBVHja7dnZbsIwFEDBrCYLa///Y0tZQqoiAZWgvnTm0fIDB3CcOEUBAAAAAAAAAAAAAAAAAEBUVfewPq+CdvG4lFdC/4uERS9BggQJr0goU/CE1X5kvYuc0B13uyFwwumjLQMnnMY6v8Lfr4Ui8lpI26/V/BF7Xxg2m7fbndMQPqFvy+AJ4/7JNIVOqA9P19ES5v+b5jhnjJXQFZeGsi2u73VZJ9Szu7y0nmbt4iQcvvfz+q1mRzVlmN25nY2N346bUoyEdP7ex8v90nTol0IkbKfR+ng5nRsjJKxmw8v2x8xV/gn1ral17gnN7bll3glle3vudGnNMiFV90w+X5ayTOifMfu1Cfe+4HGmKkGChCd6g5e2RbVsHlRn9uocAAAAAAAAAAAAAAAAAID/5RP7aTTGpnHwKwAAAABJRU5ErkJggg==",Ot=v({__name:"PreferencesEditor",setup(e){const{result:a,loading:t}=Ae(()=>ye.get()),n=b(()=>{var s,l;return(s=a.value)!=null&&s.logoUrl?te("logo",(l=a.value)==null?void 0:l.logoUrl,"editor"):""}),o=b(()=>{var s,l;return(s=a.value)!=null&&s.faviconUrl?te("favicon",(l=a.value)==null?void 0:l.faviconUrl,"editor"):""}),i=le({logoUrl:!1,faviconUrl:!1}),r=(s,l)=>{i[s]=l};return(s,l)=>(c(),m(ke,null,{default:g(()=>[u(t)||!u(a)?(c(),m(Ce,{key:0})):(c(),m(u(fe),{key:1,layout:"vertical",style:{width:"100%"}},{default:g(()=>[d(u(_),{justify:"space-between",align:"center"},{default:g(()=>[d(u(G),null,{default:g(()=>[B("Preferences")]),_:1}),d(we,{model:u(a)},null,8,["model"])]),_:1}),d(u(M),{label:"Project name"},{default:g(()=>[d(u(E),{value:u(a).brandName,"onUpdate:value":l[0]||(l[0]=h=>u(a).brandName=h)},null,8,["value"])]),_:1}),d(u(M),{label:"Language"},{default:g(()=>[d(Xa,{language:u(a).language,"onUpdate:language":l[1]||(l[1]=h=>u(a).language=h)},null,8,["language"])]),_:1}),d(u(_),{gap:"40"},{default:g(()=>[f("div",tt,[d(u(G),{level:4},{default:g(()=>[B("Style")]),_:1}),d(u(M),{label:"Main color"},{default:g(()=>[d(de,{value:u(a).mainColor,onInput:l[2]||(l[2]=h=>u(a).mainColor=h),onChange:l[3]||(l[3]=h=>u(a).mainColor=u(a).mainColor)},null,8,["value"])]),_:1}),d(u(M),{label:"Font family"},{default:g(()=>[d(Ja,{modelValue:u(a).fontFamily,"onUpdate:modelValue":l[4]||(l[4]=h=>u(a).fontFamily=h)},null,8,["modelValue"])]),_:1}),d(at,{modelValue:u(a).theme,"onUpdate:modelValue":l[5]||(l[5]=h=>u(a).theme=h)},null,8,["modelValue"]),d(u(M),{label:"Logo path"},{default:g(()=>[d(u(_),{gap:"5"},{default:g(()=>[d(u(E),{value:u(a).logoUrl,"onUpdate:value":l[6]||(l[6]=h=>u(a).logoUrl=h)},null,8,["value"]),u(a).logoUrl?(c(),m(ae,{key:0,onClick:l[7]||(l[7]=()=>r("logoUrl",!0))},{default:g(()=>[d(u(oe))]),_:1})):w("",!0)]),_:1}),n.value?(c(),m(u(ee),{key:0,src:n.value,fallback:re,style:{display:"none",visibility:"hidden"},preview:{visible:i.logoUrl,onVisibleChange:h=>r("logoUrl",h)}},null,8,["src","preview"])):w("",!0)]),_:1}),d(u(M),{label:"Favicon path"},{default:g(()=>[d(u(_),{gap:"5"},{default:g(()=>[d(u(E),{value:u(a).faviconUrl,"onUpdate:value":l[8]||(l[8]=h=>u(a).faviconUrl=h)},null,8,["value"]),u(a).faviconUrl?(c(),m(ae,{key:0,onClick:l[9]||(l[9]=()=>r("faviconUrl",!0))},{default:g(()=>[d(u(oe))]),_:1})):w("",!0)]),_:1}),o.value?(c(),m(u(ee),{key:0,src:o.value,fallback:re,style:{display:"none",visibility:"hidden"},preview:{visible:i.faviconUrl,onVisibleChange:h=>r("faviconUrl",h)}},null,8,["src","preview"])):w("",!0)]),_:1})]),f("div",ot,[d(va,{workspace:u(a),"widgets-visible":!0,style:{"margin-bottom":"20px"}},null,8,["workspace"])])]),_:1})]),_:1}))]),_:1}))}});export{Ot as default}; -//# sourceMappingURL=PreferencesEditor.a206533a.js.map +//# sourceMappingURL=PreferencesEditor.7f20a5ae.js.map diff --git a/abstra_statics/dist/assets/Project.46f8b889.js b/abstra_statics/dist/assets/Project.67a86e96.js similarity index 88% rename from abstra_statics/dist/assets/Project.46f8b889.js rename to abstra_statics/dist/assets/Project.67a86e96.js index 1bba40a9a..f841d542c 100644 --- a/abstra_statics/dist/assets/Project.46f8b889.js +++ b/abstra_statics/dist/assets/Project.67a86e96.js @@ -1,2 +1,2 @@ -import{N as C}from"./Navbar.6541dc95.js";import{B as M}from"./BaseLayout.e1793d5b.js";import{a as f}from"./asyncComputed.d0f14ed3.js";import{d as v,B as c,f as n,o as e,X as t,Z as $,R as L,eb as Z,a as o,ed as w,r as b,c as y,w as H,b as V}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{O as k}from"./organization.6af6e7be.js";import{P as S}from"./project.7817fdd7.js";import"./tables.e9d41f69.js";import{_ as z,S as _}from"./Sidebar.49f66f34.js";import{C as B}from"./ContentLayout.f8da2f52.js";import{G as x}from"./PhArrowCounterClockwise.vue.548df89b.js";import{I as N,G as P}from"./PhIdentificationBadge.vue.7047bcd0.js";import{H as j}from"./PhCube.vue.fdd2f92c.js";import{I}from"./PhGlobe.vue.9df45e5b.js";import"./PhChats.vue.3f8c120c.js";import"./PhSignOut.vue.e09114f0.js";import"./router.87582bcc.js";import"./index.ec6b7808.js";import"./Avatar.6f67d038.js";import"./index.c2d72be7.js";import"./index.b16edfcc.js";import"./BookOutlined.a8460802.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./index.e5bdb21b.js";import"./Logo.1a35ae4d.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[r]="c67ca2b2-000b-4cc4-9322-28bb510c4967",h._sentryDebugIdIdentifier="sentry-dbid-c67ca2b2-000b-4cc4-9322-28bb510c4967")}catch{}})();const E=["width","height","fill","transform"],F={key:0},G=o("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"},null,-1),q=[G],D={key:1},O=o("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"},null,-1),R=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),W=[O,R],K={key:2},T=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),X=[T],J={key:3},Q=o("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"},null,-1),U=[Q],Y={key:4},a1=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),l1=[a1],e1={key:5},t1=o("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},null,-1),o1=[t1],r1={name:"PhDatabase"},i1=v({...r1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,d=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:d}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),m=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:m.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",F,q)):l.value==="duotone"?(e(),t("g",D,W)):l.value==="fill"?(e(),t("g",K,X)):l.value==="light"?(e(),t("g",J,U)):l.value==="regular"?(e(),t("g",Y,l1)):l.value==="thin"?(e(),t("g",e1,o1)):L("",!0)],16,E))}}),n1=["width","height","fill","transform"],s1={key:0},c1=o("path",{d:"M228,56H160L133.33,36a20.12,20.12,0,0,0-12-4H76A20,20,0,0,0,56,52V72H36A20,20,0,0,0,16,92V204a20,20,0,0,0,20,20H188.89A19.13,19.13,0,0,0,208,204.89V184h20.89A19.13,19.13,0,0,0,248,164.89V76A20,20,0,0,0,228,56ZM184,200H40V96H80l28.8,21.6A12,12,0,0,0,116,120h68Zm40-40H208V116a20,20,0,0,0-20-20H120L93.33,76a20.12,20.12,0,0,0-12-4H80V56h40l28.8,21.6A12,12,0,0,0,156,80h68Z"},null,-1),u1=[c1],h1={key:1},m1=o("path",{d:"M232,80v88.89a7.11,7.11,0,0,1-7.11,7.11H200V112a8,8,0,0,0-8-8H120L90.13,81.6a8,8,0,0,0-4.8-1.6H64V56a8,8,0,0,1,8-8h45.33a8,8,0,0,1,4.8,1.6L152,72h72A8,8,0,0,1,232,80Z",opacity:"0.2"},null,-1),d1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),A1=[m1,d1],p1={key:2},g1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64Zm0,104H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),v1=[g1],L1={key:3},$1=o("path",{d:"M224,66H154L125.73,44.8a14,14,0,0,0-8.4-2.8H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H192.89A13.12,13.12,0,0,0,206,200.89V182h18.89A13.12,13.12,0,0,0,238,168.89V80A14,14,0,0,0,224,66ZM194,200.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H85.33a2,2,0,0,1,1.2.4l29.87,22.4A6,6,0,0,0,120,110h72a2,2,0,0,1,2,2Zm32-32a1.11,1.11,0,0,1-1.11,1.11H206V112a14,14,0,0,0-14-14H122L93.73,76.8a14,14,0,0,0-8.4-2.8H70V56a2,2,0,0,1,2-2h45.33a2,2,0,0,1,1.2.4L148.4,76.8A6,6,0,0,0,152,78h72a2,2,0,0,1,2,2Z"},null,-1),Z1=[$1],H1={key:4},V1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),y1=[V1],C1={key:5},M1=o("path",{d:"M224,68H153.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H192.89A11.12,11.12,0,0,0,204,200.89V180h20.89A11.12,11.12,0,0,0,236,168.89V80A12,12,0,0,0,224,68ZM196,200.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H85.33a4,4,0,0,1,2.4.8l29.87,22.4a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Zm32-32a3.12,3.12,0,0,1-3.11,3.11H204V112a12,12,0,0,0-12-12H121.33L92.53,78.4a12.05,12.05,0,0,0-7.2-2.4H68V56a4,4,0,0,1,4-4h45.33a4,4,0,0,1,2.4.8L149.6,75.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Z"},null,-1),f1=[M1],w1={name:"PhFolders"},b1=v({...w1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,d=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:d}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),m=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:m.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",s1,u1)):l.value==="duotone"?(e(),t("g",h1,A1)):l.value==="fill"?(e(),t("g",p1,v1)):l.value==="light"?(e(),t("g",L1,Z1)):l.value==="regular"?(e(),t("g",H1,y1)):l.value==="thin"?(e(),t("g",C1,f1)):L("",!0)],16,n1))}}),k1=["width","height","fill","transform"],S1={key:0},z1=o("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"},null,-1),_1=[z1],B1={key:1},x1=o("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),N1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),P1=[x1,N1],j1={key:2},I1=o("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),E1=[I1],F1={key:3},G1=o("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"},null,-1),q1=[G1],D1={key:4},O1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),R1=[O1],W1={key:5},K1=o("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"},null,-1),T1=[K1],X1={name:"PhGearSix"},J1=v({...X1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,d=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:d}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),m=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:m.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",S1,_1)):l.value==="duotone"?(e(),t("g",B1,P1)):l.value==="fill"?(e(),t("g",j1,E1)):l.value==="light"?(e(),t("g",F1,q1)):l.value==="regular"?(e(),t("g",D1,R1)):l.value==="thin"?(e(),t("g",W1,T1)):L("",!0)],16,k1))}}),Q1=["width","height","fill","transform"],U1={key:0},Y1=o("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"},null,-1),a0=[Y1],l0={key:1},e0=o("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"},null,-1),t0=o("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),o0=[e0,t0],r0={key:2},i0=o("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"},null,-1),n0=[i0],s0={key:3},c0=o("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"},null,-1),u0=[c0],h0={key:4},m0=o("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),d0=[m0],A0={key:5},p0=o("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"},null,-1),g0=[p0],v0={name:"PhKey"},L0=v({...v0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,d=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:d}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),m=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:m.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",U1,a0)):l.value==="duotone"?(e(),t("g",l0,o0)):l.value==="fill"?(e(),t("g",r0,n0)):l.value==="light"?(e(),t("g",s0,u0)):l.value==="regular"?(e(),t("g",h0,d0)):l.value==="thin"?(e(),t("g",A0,g0)):L("",!0)],16,Q1))}}),$0=["width","height","fill","transform"],Z0={key:0},H0=o("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"},null,-1),V0=[H0],y0={key:1},C0=o("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"},null,-1),M0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),f0=[C0,M0],w0={key:2},b0=o("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"},null,-1),k0=[b0],S0={key:3},z0=o("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"},null,-1),_0=[z0],B0={key:4},x0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),N0=[x0],P0={key:5},j0=o("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"},null,-1),I0=[j0],E0={name:"PhPlug"},F0=v({...E0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,d=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:d}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),m=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:m.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",Z0,V0)):l.value==="duotone"?(e(),t("g",y0,f0)):l.value==="fill"?(e(),t("g",w0,k0)):l.value==="light"?(e(),t("g",S0,_0)):l.value==="regular"?(e(),t("g",B0,N0)):l.value==="thin"?(e(),t("g",P0,I0)):L("",!0)],16,$0))}}),A2=v({__name:"Project",setup(h){const d=w().params.projectId,{result:s}=f(()=>S.get(d).then(async i=>{const m=await k.get(i.organizationId);return{project:i,organization:m}})),p=n(()=>{var i,m,a,g;return((i=s.value)==null?void 0:i.organization)&&s.value.project?[{label:"My organizations",path:"/organizations"},{label:(a=(m=s.value)==null?void 0:m.organization)==null?void 0:a.name,path:`/organizations/${(g=s.value)==null?void 0:g.organization.id}`},{label:s.value.project.name,path:`/projects/${s.value.project.id}`}]:void 0}),A=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.billingMetadata}),l=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.id}),u=n(()=>{var i;return(i=s.value)!=null&&i.project?[{name:"Project",items:[{name:"Live",path:"live",icon:I},{name:"Builds",path:"builds",icon:j},{name:"Connectors",path:"connectors",icon:F0,unavailable:!s.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:i1},{name:"API Keys",path:"api-keys",icon:L0},{name:"Env Vars",path:"env-vars",icon:N},{name:"Files",path:"files",icon:b1},{name:"Logs",icon:x,path:"logs"},{name:"Settings",icon:J1,path:"settings"},{name:"Access Control",icon:P,path:"access-control"}]}]:[]});return(i,m)=>{const a=b("RouterView");return e(),y(M,null,{content:H(()=>[V(B,null,{default:H(()=>[A.value&&l.value?(e(),y(z,{key:0,"billing-metadata":A.value,"organization-id":l.value},null,8,["billing-metadata","organization-id"])):L("",!0),V(a)]),_:1})]),navbar:H(()=>[V(C,{class:"nav",breadcrumb:p.value},null,8,["breadcrumb"])]),sidebar:H(()=>[V(_,{class:"sidebar",sections:u.value},null,8,["sections"])]),_:1})}}});export{A2 as default}; -//# sourceMappingURL=Project.46f8b889.js.map +import{N as C}from"./Navbar.6c76e332.js";import{B as M}from"./BaseLayout.294a6887.js";import{a as f}from"./asyncComputed.295e9e03.js";import{d as v,B as c,f as n,o as e,X as t,Z as $,R as L,eb as Z,a as o,ed as w,r as b,c as y,w as H,b as V}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{O as k}from"./organization.ed97e5a8.js";import{P as S}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import{_ as z,S as _}from"./Sidebar.ffb10124.js";import{C as B}from"./ContentLayout.72beb65c.js";import{G as x}from"./PhArrowCounterClockwise.vue.8fbc5885.js";import{I as N,G as P}from"./PhIdentificationBadge.vue.8d7f4c19.js";import{H as j}from"./PhCube.vue.fe0d14c9.js";import{I}from"./PhGlobe.vue.69f38b7f.js";import"./PhChats.vue.aa1113d9.js";import"./PhSignOut.vue.154299d7.js";import"./router.59916c0d.js";import"./index.063f7c9e.js";import"./Avatar.2107fa31.js";import"./index.5ccdbcb7.js";import"./index.66903cf4.js";import"./BookOutlined.5f7ad9dc.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./index.4fbbd10e.js";import"./Logo.6e947620.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[r]="08a31060-fcd4-41a8-9ddd-72c3b7697638",h._sentryDebugIdIdentifier="sentry-dbid-08a31060-fcd4-41a8-9ddd-72c3b7697638")}catch{}})();const E=["width","height","fill","transform"],F={key:0},G=o("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"},null,-1),q=[G],D={key:1},O=o("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"},null,-1),R=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),W=[O,R],K={key:2},T=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),X=[T],J={key:3},Q=o("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"},null,-1),U=[Q],Y={key:4},a1=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),l1=[a1],e1={key:5},t1=o("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},null,-1),o1=[t1],r1={name:"PhDatabase"},i1=v({...r1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,m=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:m}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",F,q)):l.value==="duotone"?(e(),t("g",D,W)):l.value==="fill"?(e(),t("g",K,X)):l.value==="light"?(e(),t("g",J,U)):l.value==="regular"?(e(),t("g",Y,l1)):l.value==="thin"?(e(),t("g",e1,o1)):L("",!0)],16,E))}}),n1=["width","height","fill","transform"],s1={key:0},c1=o("path",{d:"M228,56H160L133.33,36a20.12,20.12,0,0,0-12-4H76A20,20,0,0,0,56,52V72H36A20,20,0,0,0,16,92V204a20,20,0,0,0,20,20H188.89A19.13,19.13,0,0,0,208,204.89V184h20.89A19.13,19.13,0,0,0,248,164.89V76A20,20,0,0,0,228,56ZM184,200H40V96H80l28.8,21.6A12,12,0,0,0,116,120h68Zm40-40H208V116a20,20,0,0,0-20-20H120L93.33,76a20.12,20.12,0,0,0-12-4H80V56h40l28.8,21.6A12,12,0,0,0,156,80h68Z"},null,-1),u1=[c1],h1={key:1},d1=o("path",{d:"M232,80v88.89a7.11,7.11,0,0,1-7.11,7.11H200V112a8,8,0,0,0-8-8H120L90.13,81.6a8,8,0,0,0-4.8-1.6H64V56a8,8,0,0,1,8-8h45.33a8,8,0,0,1,4.8,1.6L152,72h72A8,8,0,0,1,232,80Z",opacity:"0.2"},null,-1),m1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),A1=[d1,m1],p1={key:2},g1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64Zm0,104H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),v1=[g1],L1={key:3},$1=o("path",{d:"M224,66H154L125.73,44.8a14,14,0,0,0-8.4-2.8H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H192.89A13.12,13.12,0,0,0,206,200.89V182h18.89A13.12,13.12,0,0,0,238,168.89V80A14,14,0,0,0,224,66ZM194,200.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H85.33a2,2,0,0,1,1.2.4l29.87,22.4A6,6,0,0,0,120,110h72a2,2,0,0,1,2,2Zm32-32a1.11,1.11,0,0,1-1.11,1.11H206V112a14,14,0,0,0-14-14H122L93.73,76.8a14,14,0,0,0-8.4-2.8H70V56a2,2,0,0,1,2-2h45.33a2,2,0,0,1,1.2.4L148.4,76.8A6,6,0,0,0,152,78h72a2,2,0,0,1,2,2Z"},null,-1),Z1=[$1],H1={key:4},V1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),y1=[V1],C1={key:5},M1=o("path",{d:"M224,68H153.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H192.89A11.12,11.12,0,0,0,204,200.89V180h20.89A11.12,11.12,0,0,0,236,168.89V80A12,12,0,0,0,224,68ZM196,200.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H85.33a4,4,0,0,1,2.4.8l29.87,22.4a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Zm32-32a3.12,3.12,0,0,1-3.11,3.11H204V112a12,12,0,0,0-12-12H121.33L92.53,78.4a12.05,12.05,0,0,0-7.2-2.4H68V56a4,4,0,0,1,4-4h45.33a4,4,0,0,1,2.4.8L149.6,75.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Z"},null,-1),f1=[M1],w1={name:"PhFolders"},b1=v({...w1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,m=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:m}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",s1,u1)):l.value==="duotone"?(e(),t("g",h1,A1)):l.value==="fill"?(e(),t("g",p1,v1)):l.value==="light"?(e(),t("g",L1,Z1)):l.value==="regular"?(e(),t("g",H1,y1)):l.value==="thin"?(e(),t("g",C1,f1)):L("",!0)],16,n1))}}),k1=["width","height","fill","transform"],S1={key:0},z1=o("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"},null,-1),_1=[z1],B1={key:1},x1=o("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),N1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),P1=[x1,N1],j1={key:2},I1=o("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),E1=[I1],F1={key:3},G1=o("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"},null,-1),q1=[G1],D1={key:4},O1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),R1=[O1],W1={key:5},K1=o("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"},null,-1),T1=[K1],X1={name:"PhGearSix"},J1=v({...X1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,m=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:m}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",S1,_1)):l.value==="duotone"?(e(),t("g",B1,P1)):l.value==="fill"?(e(),t("g",j1,E1)):l.value==="light"?(e(),t("g",F1,q1)):l.value==="regular"?(e(),t("g",D1,R1)):l.value==="thin"?(e(),t("g",W1,T1)):L("",!0)],16,k1))}}),Q1=["width","height","fill","transform"],U1={key:0},Y1=o("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"},null,-1),a0=[Y1],l0={key:1},e0=o("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"},null,-1),t0=o("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),o0=[e0,t0],r0={key:2},i0=o("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"},null,-1),n0=[i0],s0={key:3},c0=o("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"},null,-1),u0=[c0],h0={key:4},d0=o("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),m0=[d0],A0={key:5},p0=o("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"},null,-1),g0=[p0],v0={name:"PhKey"},L0=v({...v0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,m=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:m}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",U1,a0)):l.value==="duotone"?(e(),t("g",l0,o0)):l.value==="fill"?(e(),t("g",r0,n0)):l.value==="light"?(e(),t("g",s0,u0)):l.value==="regular"?(e(),t("g",h0,m0)):l.value==="thin"?(e(),t("g",A0,g0)):L("",!0)],16,Q1))}}),$0=["width","height","fill","transform"],Z0={key:0},H0=o("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"},null,-1),V0=[H0],y0={key:1},C0=o("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"},null,-1),M0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),f0=[C0,M0],w0={key:2},b0=o("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"},null,-1),k0=[b0],S0={key:3},z0=o("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"},null,-1),_0=[z0],B0={key:4},x0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),N0=[x0],P0={key:5},j0=o("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"},null,-1),I0=[j0],E0={name:"PhPlug"},F0=v({...E0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,m=c("weight","regular"),s=c("size","1em"),p=c("color","currentColor"),A=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:m}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:p}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:A?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[$(a.$slots,"default"),l.value==="bold"?(e(),t("g",Z0,V0)):l.value==="duotone"?(e(),t("g",y0,f0)):l.value==="fill"?(e(),t("g",w0,k0)):l.value==="light"?(e(),t("g",S0,_0)):l.value==="regular"?(e(),t("g",B0,N0)):l.value==="thin"?(e(),t("g",P0,I0)):L("",!0)],16,$0))}}),A2=v({__name:"Project",setup(h){const m=w().params.projectId,{result:s}=f(()=>S.get(m).then(async i=>{const d=await k.get(i.organizationId);return{project:i,organization:d}})),p=n(()=>{var i,d,a,g;return((i=s.value)==null?void 0:i.organization)&&s.value.project?[{label:"My organizations",path:"/organizations"},{label:(a=(d=s.value)==null?void 0:d.organization)==null?void 0:a.name,path:`/organizations/${(g=s.value)==null?void 0:g.organization.id}`},{label:s.value.project.name,path:`/projects/${s.value.project.id}`}]:void 0}),A=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.billingMetadata}),l=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.id}),u=n(()=>{var i;return(i=s.value)!=null&&i.project?[{name:"Project",items:[{name:"Live",path:"live",icon:I},{name:"Builds",path:"builds",icon:j},{name:"Connectors",path:"connectors",icon:F0,unavailable:!s.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:i1},{name:"API Keys",path:"api-keys",icon:L0},{name:"Env Vars",path:"env-vars",icon:N},{name:"Files",path:"files",icon:b1},{name:"Logs",icon:x,path:"logs"},{name:"Settings",icon:J1,path:"settings"},{name:"Access Control",icon:P,path:"access-control"}]}]:[]});return(i,d)=>{const a=b("RouterView");return e(),y(M,null,{content:H(()=>[V(B,null,{default:H(()=>[A.value&&l.value?(e(),y(z,{key:0,"billing-metadata":A.value,"organization-id":l.value},null,8,["billing-metadata","organization-id"])):L("",!0),V(a)]),_:1})]),navbar:H(()=>[V(C,{class:"nav",breadcrumb:p.value},null,8,["breadcrumb"])]),sidebar:H(()=>[V(_,{class:"sidebar",sections:u.value},null,8,["sections"])]),_:1})}}});export{A2 as default}; +//# sourceMappingURL=Project.67a86e96.js.map diff --git a/abstra_statics/dist/assets/ProjectLogin.4854bcae.js b/abstra_statics/dist/assets/ProjectLogin.4854bcae.js new file mode 100644 index 000000000..c61af6d24 --- /dev/null +++ b/abstra_statics/dist/assets/ProjectLogin.4854bcae.js @@ -0,0 +1,2 @@ +import{B as f}from"./BaseLayout.294a6887.js";import{L as y}from"./Logo.6e947620.js";import{d as u,D as m,K as b,$ as p,aZ as g,a_ as v,o as _,X as h,a as r,Y as s,ed as w,eq as L,W as S,c as k,w as n,b as i,u as x}from"./vue-router.3fd92176.js";import{u as B}from"./editor.519c2dc1.js";import{b as I}from"./index.5ccdbcb7.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./asyncComputed.295e9e03.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";import"./index.063f7c9e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="dd060970-930b-47a1-bd38-7633b0621be6",e._sentryDebugIdIdentifier="sentry-dbid-dd060970-930b-47a1-bd38-7633b0621be6")}catch{}})();const $=u({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=m({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(o)}}});const D={class:"v-spinner"};function P(e,o,a,d,c,l){return g((_(),h("div",D,[r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[v,e.loading]])}const K=p($,[["render",P],["__scopeId","data-v-06538001"]]),R={class:"content"},j=u({__name:"ProjectLogin",setup(e){const o=w(),a=L(),d=B();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function l(){const t=o.query["api-key"];if(typeof t=="string")return t}return S(async()=>{const t=l();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"workspace"})}),(t,z)=>(_(),k(f,null,{navbar:n(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(y)]),_:1})]),content:n(()=>[r("div",R,[i(K)])]),_:1}))}});const Y=p(j,[["__scopeId","data-v-6ca995fe"]]);export{Y as default}; +//# sourceMappingURL=ProjectLogin.4854bcae.js.map diff --git a/abstra_statics/dist/assets/ProjectLogin.779c0cc6.js b/abstra_statics/dist/assets/ProjectLogin.779c0cc6.js deleted file mode 100644 index 46b31ffdb..000000000 --- a/abstra_statics/dist/assets/ProjectLogin.779c0cc6.js +++ /dev/null @@ -1,2 +0,0 @@ -import{B as f}from"./BaseLayout.e1793d5b.js";import{L as y}from"./Logo.1a35ae4d.js";import{d as u,D as m,K as g,$ as p,aZ as v,a_ as b,o as _,X as h,a as r,Y as s,ed as w,eq as L,W as S,c as k,w as n,b as i,u as x}from"./vue-router.4c13f3d4.js";import{u as B}from"./editor.49995faa.js";import{b as I}from"./index.c2d72be7.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./asyncComputed.d0f14ed3.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";import"./index.ec6b7808.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="635877ed-9a4b-495e-850c-02f2d908c2a6",e._sentryDebugIdIdentifier="sentry-dbid-635877ed-9a4b-495e-850c-02f2d908c2a6")}catch{}})();const $=u({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=m({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...g(o)}}});const D={class:"v-spinner"};function P(e,o,a,c,d,l){return v((_(),h("div",D,[r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[b,e.loading]])}const K=p($,[["render",P],["__scopeId","data-v-06538001"]]),R={class:"content"},j=u({__name:"ProjectLogin",setup(e){const o=w(),a=L(),c=B();function d(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function l(){const t=o.query["api-key"];if(typeof t=="string")return t}return S(async()=>{const t=l();if(!t){a.push({name:"error"});return}await c.createLogin(t).then(d),a.push({name:"workspace"})}),(t,z)=>(_(),k(f,null,{navbar:n(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(y)]),_:1})]),content:n(()=>[r("div",R,[i(K)])]),_:1}))}});const Y=p(j,[["__scopeId","data-v-6ca995fe"]]);export{Y as default}; -//# sourceMappingURL=ProjectLogin.779c0cc6.js.map diff --git a/abstra_statics/dist/assets/ProjectSettings.02da1e77.js b/abstra_statics/dist/assets/ProjectSettings.ac6a1c2e.js similarity index 59% rename from abstra_statics/dist/assets/ProjectSettings.02da1e77.js rename to abstra_statics/dist/assets/ProjectSettings.ac6a1c2e.js index f03a9db7a..533b7ebfe 100644 --- a/abstra_statics/dist/assets/ProjectSettings.02da1e77.js +++ b/abstra_statics/dist/assets/ProjectSettings.ac6a1c2e.js @@ -1,2 +1,2 @@ -import{a as A}from"./asyncComputed.d0f14ed3.js";import{d as _,e as I,eo as B,f as b,c as C,w as a,u as e,o as g,b as t,aF as s,db as h,d9 as P,da as i,a as m,ec as f,cy as E,bK as F,cx as D,ed as T,X as x,R as N}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{P as j}from"./project.7817fdd7.js";import"./tables.e9d41f69.js";import{S as R}from"./SaveButton.8d79c51b.js";import{a as v}from"./router.87582bcc.js";import{A as U}from"./index.ec6b7808.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[r]="65536c73-0aae-4ece-baa5-f2fbb2843bd0",n._sentryDebugIdIdentifier="sentry-dbid-65536c73-0aae-4ece-baa5-f2fbb2843bd0")}catch{}})();const V=_({__name:"SubdomainEditor",props:{project:{}},setup(n){const r=n,o=I(void 0),d=B.exports.debounce(async()=>{try{const{available:l}=await r.project.checkSubdomain();o.value=l?"available":"unavailable"}catch{o.value=void 0}},500);function u(){r.project.subdomain?(o.value="loading",d()):o.value="invalid"}const c=b(()=>{switch(o.value){case"invalid":return"error";case"loading":return"validating";case"available":return"success";case"unavailable":return"error";default:return}}),y=b(()=>{switch(o.value){case"loading":return"Checking availability...";case"available":return"Available";case"unavailable":return"Unavailable";case"invalid":return"Invalid subdomain";default:return}}),k=()=>{r.project.subdomain=j.formatSubdomain(r.project.subdomain),u()};function w(){r.project.resetChanges(),o.value=void 0}return(l,p)=>(g(),C(e(U),{direction:"vertical"},{default:a(()=>[t(e(h),{level:2},{default:a(()=>[s("Subdomain")]),_:1}),t(e(P),null,{default:a(()=>[s(" Every project in Abstra Cloud comes with a default subdomain, which will appear on all shared project links. ")]),_:1}),t(e(v),null,{default:a(()=>[t(e(i),null,{default:a(()=>[s("Forms available at:")]),_:1}),t(e(i),{code:""},{default:a(()=>[m("span",null,f(l.project.getUrl("[PATH]")),1)]),_:1})]),_:1}),t(e(v),null,{default:a(()=>[t(e(i),null,{default:a(()=>[s("Hooks available at:")]),_:1}),t(e(i),{code:""},{default:a(()=>[m("span",null,f(l.project.getUrl("_hooks/[PATH]")),1)]),_:1})]),_:1}),t(e(D),null,{default:a(()=>[t(e(E),{"validate-status":c.value,help:y.value,"has-feedback":""},{default:a(()=>[t(e(F),{value:l.project.subdomain,"onUpdate:value":p[0]||(p[0]=S=>l.project.subdomain=S),type:"text",loading:o.value==="loading",onBlur:k},{addonBefore:a(()=>[s("https://")]),addonAfter:a(()=>[s(".abstra.app")]),_:1},8,["value","loading"])]),_:1},8,["validate-status","help"]),t(R,{model:l.project,disabled:o.value!=="available",onError:w},null,8,["model","disabled"])]),_:1})]),_:1}))}}),H={key:0,class:"project-settings"},Z=_({__name:"ProjectSettings",setup(n){const o=T().params.projectId,{result:d}=A(()=>j.get(o));return(u,c)=>e(d)?(g(),x("div",H,[t(e(h),null,{default:a(()=>[s("Project Settings")]),_:1}),t(V,{project:e(d)},null,8,["project"])])):N("",!0)}});export{Z as default}; -//# sourceMappingURL=ProjectSettings.02da1e77.js.map +import{a as A}from"./asyncComputed.295e9e03.js";import{d as _,e as I,eo as B,f as m,c as C,w as a,u as e,o as g,b as t,aF as s,db as h,d9 as P,da as i,a as b,ec as v,cy as E,bK as F,cx as D,ed as T,X as x,R as N}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{P as j}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import{S as R}from"./SaveButton.6d0d3fb7.js";import{a as f}from"./router.59916c0d.js";import{A as U}from"./index.063f7c9e.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[r]="baa33f3d-c84c-42a2-a4bb-ee8497447695",n._sentryDebugIdIdentifier="sentry-dbid-baa33f3d-c84c-42a2-a4bb-ee8497447695")}catch{}})();const V=_({__name:"SubdomainEditor",props:{project:{}},setup(n){const r=n,o=I(void 0),d=B.exports.debounce(async()=>{try{const{available:l}=await r.project.checkSubdomain();o.value=l?"available":"unavailable"}catch{o.value=void 0}},500);function u(){r.project.subdomain?(o.value="loading",d()):o.value="invalid"}const c=m(()=>{switch(o.value){case"invalid":return"error";case"loading":return"validating";case"available":return"success";case"unavailable":return"error";default:return}}),y=m(()=>{switch(o.value){case"loading":return"Checking availability...";case"available":return"Available";case"unavailable":return"Unavailable";case"invalid":return"Invalid subdomain";default:return}}),k=()=>{r.project.subdomain=j.formatSubdomain(r.project.subdomain),u()};function w(){r.project.resetChanges(),o.value=void 0}return(l,p)=>(g(),C(e(U),{direction:"vertical"},{default:a(()=>[t(e(h),{level:2},{default:a(()=>[s("Subdomain")]),_:1}),t(e(P),null,{default:a(()=>[s(" Every project in Abstra Cloud comes with a default subdomain, which will appear on all shared project links. ")]),_:1}),t(e(f),null,{default:a(()=>[t(e(i),null,{default:a(()=>[s("Forms available at:")]),_:1}),t(e(i),{code:""},{default:a(()=>[b("span",null,v(l.project.getUrl("[PATH]")),1)]),_:1})]),_:1}),t(e(f),null,{default:a(()=>[t(e(i),null,{default:a(()=>[s("Hooks available at:")]),_:1}),t(e(i),{code:""},{default:a(()=>[b("span",null,v(l.project.getUrl("_hooks/[PATH]")),1)]),_:1})]),_:1}),t(e(D),null,{default:a(()=>[t(e(E),{"validate-status":c.value,help:y.value,"has-feedback":""},{default:a(()=>[t(e(F),{value:l.project.subdomain,"onUpdate:value":p[0]||(p[0]=S=>l.project.subdomain=S),type:"text",loading:o.value==="loading",onBlur:k},{addonBefore:a(()=>[s("https://")]),addonAfter:a(()=>[s(".abstra.app")]),_:1},8,["value","loading"])]),_:1},8,["validate-status","help"]),t(R,{model:l.project,disabled:o.value!=="available",onError:w},null,8,["model","disabled"])]),_:1})]),_:1}))}}),H={key:0,class:"project-settings"},Z=_({__name:"ProjectSettings",setup(n){const o=T().params.projectId,{result:d}=A(()=>j.get(o));return(u,c)=>e(d)?(g(),x("div",H,[t(e(h),null,{default:a(()=>[s("Project Settings")]),_:1}),t(V,{project:e(d)},null,8,["project"])])):N("",!0)}});export{Z as default}; +//# sourceMappingURL=ProjectSettings.ac6a1c2e.js.map diff --git a/abstra_statics/dist/assets/Projects.4eeee049.js b/abstra_statics/dist/assets/Projects.299d796c.js similarity index 57% rename from abstra_statics/dist/assets/Projects.4eeee049.js rename to abstra_statics/dist/assets/Projects.299d796c.js index ce15b0b1e..e80d14a37 100644 --- a/abstra_statics/dist/assets/Projects.4eeee049.js +++ b/abstra_statics/dist/assets/Projects.299d796c.js @@ -1,2 +1,2 @@ -import{d as h,ed as z,eq as D,e as x,f as F,X as E,u as r,c as w,R as v,b as u,w as p,aR as O,o as f,cy as $,bK as A,cx as B,cK as G,er as M,cL as S}from"./vue-router.4c13f3d4.js";import{a as T}from"./asyncComputed.d0f14ed3.js";import{a as U}from"./ant-design.57cbe6fb.js";import"./gateway.e77556e5.js";import{O as V}from"./organization.6af6e7be.js";import{P as g}from"./project.7817fdd7.js";import"./tables.e9d41f69.js";import{C as K}from"./CrudView.e4956a79.js";import{F as L}from"./PhArrowSquareOut.vue.340970aa.js";import{I as q}from"./PhCopy.vue.300f48e4.js";import{G as J}from"./PhPencil.vue.f2283e7d.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./router.87582bcc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[c]="3222efe6-ded4-44dd-ad30-6f2d50f69852",l._sentryDebugIdIdentifier="sentry-dbid-3222efe6-ded4-44dd-ad30-6f2d50f69852")}catch{}})();const fe=h({__name:"Projects",setup(l){const c=[{key:"name",label:"Project Name"}],m=z().params.organizationId,k=D(),{loading:P,result:i,refetch:y}=T(()=>Promise.all([g.list(m),V.get(m)]).then(([t,e])=>({projects:t,organization:e}))),d=({key:t})=>k.push({name:"project",params:{projectId:t}}),C=async t=>{const e=await g.create({organizationId:m,name:t.name});d({key:e.id})},I=async({key:t})=>{var a,o;if(await U("Are you sure you want to delete this project?"))try{await((o=(a=i.value)==null?void 0:a.projects.find(s=>s.id===t))==null?void 0:o.delete())}catch(s){S.error({message:"Error deleting project",description:String(s)})}finally{await y()}},N=async({key:t})=>{var a;const e=(a=i.value)==null?void 0:a.projects.find(o=>o.id===t);if(e){const o=await e.duplicate();d({key:o.id})}},n=x({state:"idle"});function R(t){n.value={state:"renaming",projectId:t.id,newName:t.name}}async function j(t){if(n.value.state==="renaming"&&t){const{projectId:e,newName:a}=n.value;await g.rename(e,a),y()}n.value={state:"idle"}}const _=F(()=>{var t,e;return{columns:[{name:"Project Name",align:"left"},{name:"",align:"right"}],rows:(e=(t=i.value)==null?void 0:t.projects.map(a=>{var o,s;return{key:a.id,cells:[{type:"link",text:a.name,to:`/projects/${encodeURIComponent(a.id)}`},{type:"actions",actions:[{icon:L,label:"Go to project",onClick:d},{icon:J,label:"Rename project",onClick:()=>R(a)},...(s=(o=i.value)==null?void 0:o.organization)!=null&&s.featureFlags.DUPLICATE_PROJECTS?[{icon:q,label:"Duplicate",onClick:N}]:[],{icon:M,label:"Delete",onClick:I,dangerous:!0}]}]}}))!=null?e:[]}});return(t,e)=>(f(),E(O,null,[r(i)?(f(),w(K,{key:0,"entity-name":"project",loading:r(P),title:`${r(i).organization.name}'s Projects`,description:"Organize your team\u2019s work into different Projects, each with it\u2019s own environment settings and authorized users.","create-button-text":"Create Project","empty-title":"No projects here yet",table:_.value,fields:c,onCreate:C},null,8,["loading","title","table"])):v("",!0),u(r(G),{open:n.value.state==="renaming",title:"Rename organization",onCancel:e[1]||(e[1]=a=>j(!1)),onOk:e[2]||(e[2]=a=>j(!0))},{default:p(()=>[n.value.state==="renaming"?(f(),w(r(B),{key:0,layout:"vertical"},{default:p(()=>[u(r($),{label:"New name"},{default:p(()=>[u(r(A),{value:n.value.newName,"onUpdate:value":e[0]||(e[0]=a=>n.value.newName=a)},null,8,["value"])]),_:1})]),_:1})):v("",!0)]),_:1},8,["open"])],64))}});export{fe as default}; -//# sourceMappingURL=Projects.4eeee049.js.map +import{d as h,ed as z,eq as D,e as x,f as F,X as E,u as r,c as j,R as w,b as u,w as p,aR as O,o as f,cy as $,bK as A,cx as B,cK as G,er as M,cL as S}from"./vue-router.3fd92176.js";import{a as T}from"./asyncComputed.295e9e03.js";import{a as U}from"./ant-design.38477595.js";import"./gateway.c564a1cf.js";import{O as V}from"./organization.ed97e5a8.js";import{P as g}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import{C as K}from"./CrudView.b65b5675.js";import{F as L}from"./PhArrowSquareOut.vue.188b81dc.js";import{I as q}from"./PhCopy.vue.0ae3f8ab.js";import{G as J}from"./PhPencil.vue.a2604470.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./router.59916c0d.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[c]="150e947b-f84b-45bb-9916-d93e56d419ec",l._sentryDebugIdIdentifier="sentry-dbid-150e947b-f84b-45bb-9916-d93e56d419ec")}catch{}})();const fe=h({__name:"Projects",setup(l){const c=[{key:"name",label:"Project Name"}],m=z().params.organizationId,k=D(),{loading:P,result:i,refetch:y}=T(()=>Promise.all([g.list(m),V.get(m)]).then(([t,e])=>({projects:t,organization:e}))),d=({key:t})=>k.push({name:"project",params:{projectId:t}}),C=async t=>{const e=await g.create({organizationId:m,name:t.name});d({key:e.id})},I=async({key:t})=>{var a,o;if(await U("Are you sure you want to delete this project?"))try{await((o=(a=i.value)==null?void 0:a.projects.find(s=>s.id===t))==null?void 0:o.delete())}catch(s){S.error({message:"Error deleting project",description:String(s)})}finally{await y()}},N=async({key:t})=>{var a;const e=(a=i.value)==null?void 0:a.projects.find(o=>o.id===t);if(e){const o=await e.duplicate();d({key:o.id})}},n=x({state:"idle"});function R(t){n.value={state:"renaming",projectId:t.id,newName:t.name}}async function b(t){if(n.value.state==="renaming"&&t){const{projectId:e,newName:a}=n.value;await g.rename(e,a),y()}n.value={state:"idle"}}const _=F(()=>{var t,e;return{columns:[{name:"Project Name",align:"left"},{name:"",align:"right"}],rows:(e=(t=i.value)==null?void 0:t.projects.map(a=>{var o,s;return{key:a.id,cells:[{type:"link",text:a.name,to:`/projects/${encodeURIComponent(a.id)}`},{type:"actions",actions:[{icon:L,label:"Go to project",onClick:d},{icon:J,label:"Rename project",onClick:()=>R(a)},...(s=(o=i.value)==null?void 0:o.organization)!=null&&s.featureFlags.DUPLICATE_PROJECTS?[{icon:q,label:"Duplicate",onClick:N}]:[],{icon:M,label:"Delete",onClick:I,dangerous:!0}]}]}}))!=null?e:[]}});return(t,e)=>(f(),E(O,null,[r(i)?(f(),j(K,{key:0,"entity-name":"project",loading:r(P),title:`${r(i).organization.name}'s Projects`,description:"Organize your team\u2019s work into different Projects, each with it\u2019s own environment settings and authorized users.","create-button-text":"Create Project","empty-title":"No projects here yet",table:_.value,fields:c,onCreate:C},null,8,["loading","title","table"])):w("",!0),u(r(G),{open:n.value.state==="renaming",title:"Rename organization",onCancel:e[1]||(e[1]=a=>b(!1)),onOk:e[2]||(e[2]=a=>b(!0))},{default:p(()=>[n.value.state==="renaming"?(f(),j(r(B),{key:0,layout:"vertical"},{default:p(()=>[u(r($),{label:"New name"},{default:p(()=>[u(r(A),{value:n.value.newName,"onUpdate:value":e[0]||(e[0]=a=>n.value.newName=a)},null,8,["value"])]),_:1})]),_:1})):w("",!0)]),_:1},8,["open"])],64))}});export{fe as default}; +//# sourceMappingURL=Projects.299d796c.js.map diff --git a/abstra_statics/dist/assets/RequirementsEditor.c2fb4715.js b/abstra_statics/dist/assets/RequirementsEditor.6fcb258b.js similarity index 90% rename from abstra_statics/dist/assets/RequirementsEditor.c2fb4715.js rename to abstra_statics/dist/assets/RequirementsEditor.6fcb258b.js index 303f64340..3c4537f66 100644 --- a/abstra_statics/dist/assets/RequirementsEditor.c2fb4715.js +++ b/abstra_statics/dist/assets/RequirementsEditor.6fcb258b.js @@ -1,2 +1,2 @@ -var N=Object.defineProperty;var V=(i,e,t)=>e in i?N(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var w=(i,e,t)=>(V(i,typeof e!="symbol"?e+"":e,t),t);import{C as D}from"./ContentLayout.f8da2f52.js";import{C as F}from"./CrudView.e4956a79.js";import{a as I}from"./asyncComputed.d0f14ed3.js";import{d as R,W as S,ag as A,f as B,c as b,w as c,o as m,b as g,u as n,bS as k,aF as p,db as $,R as h,d9 as O,X as f,aR as L,ee as W,ec as v,er as J}from"./vue-router.4c13f3d4.js";import{u as U}from"./polling.ce5b4e64.js";import"./editor.49995faa.js";import{E as G}from"./record.34d5b504.js";import{W as M}from"./workspaces.1ee4ae8d.js";import"./router.87582bcc.js";import"./gateway.e77556e5.js";import"./popupNotifcation.d2ca3d78.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";import"./workspaceStore.ae240ce8.js";import"./colorHelpers.c5724389.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="ce0bd772-16f3-4604-a6aa-cc92a464f9d8",i._sentryDebugIdIdentifier="sentry-dbid-ce0bd772-16f3-4604-a6aa-cc92a464f9d8")}catch{}})();class X{async list(){return(await fetch("/_editor/api/requirements")).json()}async recommendations(){return(await fetch("/_editor/api/requirements/recommendations")).json()}async update(e,t){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to update requirements")}async create(e){const t=await fetch("/_editor/api/requirements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to create requirements");return t.json()}async delete(e){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete requirements")}}const u=new X;class l{constructor(e){w(this,"record");this.record=G.from(e)}static async list(){return(await u.list()).map(t=>new l(t))}static async create(e,t){const o=await u.create({name:e,version:t||null});return new l(o)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get version(){var e;return(e=this.record.get("version"))!=null?e:"latest"}set version(e){this.record.set("version",e)}async delete(){await u.delete(this.name)}static async recommendations(){return u.recommendations()}}const H=i=>["__future__","__main__","_thread","abc","aifc","argparse","array","ast","asynchat","asyncio","asyncore","atexit","audioop","base64","bdb","binascii","binhex","bisect","builtins","bz2","calendar","cgi","cgitb","chunk","cmath","cmd","code","codecs","codeop","collections","collections.abc","colorsys","compileall","concurrent","concurrent.futures","configparser","contextlib","contextvars","copy","copyreg","cProfile","crypt","csv","ctypes","curses","curses.ascii","curses.panel","curses.textpad","dataclasses","datetime","dbm","dbm.dumb","dbm.gnu","dbm.ndbm","decimal","difflib","dis","distutils","distutils.archive_util","distutils.bcppcompiler","distutils.ccompiler","distutils.cmd","distutils.command","distutils.command.bdist","distutils.command.bdist_dumb","distutils.command.bdist_msi","distutils.command.bdist_packager","distutils.command.bdist_rpm","distutils.command.build","distutils.command.build_clib","distutils.command.build_ext","distutils.command.build_py","distutils.command.build_scripts","distutils.command.check","distutils.command.clean","distutils.command.config","distutils.command.install","distutils.command.install_data","distutils.command.install_headers","distutils.command.install_lib","distutils.command.install_scripts","distutils.command.register","distutils.command.sdist","distutils.core","distutils.cygwinccompiler","distutils.debug","distutils.dep_util","distutils.dir_util","distutils.dist","distutils.errors","distutils.extension","distutils.fancy_getopt","distutils.file_util","distutils.filelist","distutils.log","distutils.msvccompiler","distutils.spawn","distutils.sysconfig","distutils.text_file","distutils.unixccompiler","distutils.util","distutils.version","doctest","email","email.charset","email.contentmanager","email.encoders","email.errors","email.generator","email.header","email.headerregistry","email.iterators","email.message","email.mime","email.parser","email.policy","email.utils","encodings","encodings.idna","encodings.mbcs","encodings.utf_8_sig","ensurepip","enum","errno","faulthandler","fcntl","filecmp","fileinput","fnmatch","fractions","ftplib","functools","gc","getopt","getpass","gettext","glob","graphlib","grp","gzip","hashlib","heapq","hmac","html","html.entities","html.parser","http","http.client","http.cookiejar","http.cookies","http.server","idlelib","imaplib","imghdr","imp","importlib","importlib.abc","importlib.machinery","importlib.metadata","importlib.resources","importlib.util","inspect","io","ipaddress","itertools","json","json.tool","keyword","lib2to3","linecache","locale","logging","logging.config","logging.handlers","lzma","mailbox","mailcap","marshal","math","mimetypes","mmap","modulefinder","msilib","msvcrt","multiprocessing","multiprocessing.connection","multiprocessing.dummy","multiprocessing.managers","multiprocessing.pool","multiprocessing.shared_memory","multiprocessing.sharedctypes","netrc","nis","nntplib","numbers","operator","optparse","os","os.path","ossaudiodev","pathlib","pdb","pickle","pickletools","pipes","pkgutil","platform","plistlib","poplib","posix","pprint","profile","pstats","pty","pwd","py_compile","pyclbr","pydoc","queue","quopri","random","re","readline","reprlib","resource","rlcompleter","runpy","sched","secrets","select","selectors","shelve","shlex","shutil","signal","site","smtpd","smtplib","sndhdr","socket","socketserver","spwd","sqlite3","ssl","stat","statistics","string","stringprep","struct","subprocess","sunau","symtable","sys","sysconfig","syslog","tabnanny","tarfile","telnetlib","tempfile","termios","test","test.support","test.support.bytecode_helper","test.support.import_helper","test.support.os_helper","test.support.script_helper","test.support.socket_helper","test.support.threading_helper","test.support.warnings_helper","textwrap","threading","time","timeit","tkinter","tkinter.colorchooser","tkinter.commondialog","tkinter.dnd","tkinter.filedialog","tkinter.font","tkinter.messagebox","tkinter.scrolledtext","tkinter.simpledialog","tkinter.tix","tkinter.ttk","token","tokenize","trace","traceback","tracemalloc","tty","turtle","turtledemo","types","typing","unicodedata","unittest","unittest.mock","urllib","urllib.error","urllib.parse","urllib.request","urllib.response","urllib.robotparser","uu","uuid","venv","warnings","wave","weakref","webbrowser","winreg","winsound","wsgiref","wsgiref.handlers","wsgiref.headers","wsgiref.simple_server","wsgiref.util","wsgiref.validate","xdrlib","xml","xml.dom","xml.dom.minidom","xml.dom.pulldom","xml.etree.ElementTree","xml.parsers.expat","xml.parsers.expat.errors","xml.parsers.expat.model","xml.sax","xml.sax.handler","xml.sax.saxutils","xml.sax.xmlreader","xmlrpc","xmlrpc.client","xmlrpc.server","zipapp","zipfile","zipimport","zlib","zoneinfo"].includes(i),K=i=>/^(\d+!)?(\d+)(\.\d+)+([\\.\-\\_])?((a(lpha)?|b(eta)?|c|r(c|ev)?|pre(view)?)\d*)?(\.?(post|dev)\d*)?$/.test(i),Q={key:2},ye=R({__name:"RequirementsEditor",setup(i){const{loading:e,result:t,refetch:o}=I(()=>Promise.all([l.list(),l.recommendations()]).then(([s,r])=>({requirements:s,recommendations:r}))),{startPolling:q,endPolling:C}=U({task:o,interval:2e3});S(()=>q()),A(()=>C());function E(){M.openFile("requirements.txt")}async function T(s,r){await l.create(s,r).then(o),o()}const z=[{label:"Name",key:"name",hint:s=>H(s)?"This requirement is built-in should not be installed":void 0},{label:"Version",key:"version",placeholder:"latest",hint:s=>!s||K(s)?void 0:"Invalid version"}];async function j({name:s,version:r}){await l.create(s,r),o()}const P=B(()=>{var s,r;return{columns:[{name:"Name"},{name:"Version"},{name:"",align:"right"}],rows:(r=(s=t.value)==null?void 0:s.requirements.map(a=>({key:a.name,cells:[{type:"text",text:a.name},{type:"text",text:a.version},{type:"actions",actions:[{icon:J,label:"Delete",async onClick(){await a.delete(),o()},dangerous:!0}]}]})))!=null?r:[]}});return(s,r)=>(m(),b(D,null,{default:c(()=>{var a,y,_;return[g(F,{"entity-name":"Requirements",loading:n(e),title:"Requirements",description:"Specify pip requirements for your project. This will create and update your requirements.txt file.","empty-title":"No python requirements set",table:P.value,"create-button-text":"Add requirement",fields:z,live:"",onCreate:j},{secondary:c(()=>[g(n(k),{onClick:r[0]||(r[0]=d=>E())},{default:c(()=>[p("Open requirements.txt")]),_:1})]),_:1},8,["loading","table"]),(a=n(t))!=null&&a.recommendations.length?(m(),b(n($),{key:0},{default:c(()=>[p(" Suggested requirements ")]),_:1})):h("",!0),(y=n(t))!=null&&y.recommendations.length?(m(),b(n(O),{key:1},{default:c(()=>[p(" The following requirements are being utilized by your code but are not listed in your requirements.txt. ")]),_:1})):h("",!0),(_=n(t))!=null&&_.recommendations.length?(m(),f("ul",Q,[(m(!0),f(L,null,W(n(t).recommendations,d=>(m(),f("li",{key:d.name},[p(v(d.name)+" ("+v(d.version)+") ",1),g(n(k),{onClick:Y=>{var x;return T(d.name,(x=d.version)!=null?x:void 0)}},{default:c(()=>[p(" Add to requirements ")]),_:2},1032,["onClick"])]))),128))])):h("",!0)]}),_:1}))}});export{ye as default}; -//# sourceMappingURL=RequirementsEditor.c2fb4715.js.map +var N=Object.defineProperty;var V=(i,e,t)=>e in i?N(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var w=(i,e,t)=>(V(i,typeof e!="symbol"?e+"":e,t),t);import{C as D}from"./ContentLayout.72beb65c.js";import{C as F}from"./CrudView.b65b5675.js";import{a as I}from"./asyncComputed.295e9e03.js";import{d as R,W as S,ag as A,f as B,c as b,w as c,o as m,b as g,u as n,bS as k,aF as p,db as $,R as h,d9 as O,X as f,aR as L,ee as W,ec as v,er as J}from"./vue-router.3fd92176.js";import{u as U}from"./polling.4e30c061.js";import"./editor.519c2dc1.js";import{E as G}from"./record.cbb43e89.js";import{W as M}from"./workspaces.b456ec6a.js";import"./router.59916c0d.js";import"./gateway.c564a1cf.js";import"./popupNotifcation.0e86d6a8.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";import"./workspaceStore.411ef1fe.js";import"./colorHelpers.f04087b3.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="5f1abe29-6b9c-4dbf-9dec-c7eb6c4ec39d",i._sentryDebugIdIdentifier="sentry-dbid-5f1abe29-6b9c-4dbf-9dec-c7eb6c4ec39d")}catch{}})();class X{async list(){return(await fetch("/_editor/api/requirements")).json()}async recommendations(){return(await fetch("/_editor/api/requirements/recommendations")).json()}async update(e,t){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to update requirements")}async create(e){const t=await fetch("/_editor/api/requirements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to create requirements");return t.json()}async delete(e){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete requirements")}}const u=new X;class l{constructor(e){w(this,"record");this.record=G.from(e)}static async list(){return(await u.list()).map(t=>new l(t))}static async create(e,t){const o=await u.create({name:e,version:t||null});return new l(o)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get version(){var e;return(e=this.record.get("version"))!=null?e:"latest"}set version(e){this.record.set("version",e)}async delete(){await u.delete(this.name)}static async recommendations(){return u.recommendations()}}const H=i=>["__future__","__main__","_thread","abc","aifc","argparse","array","ast","asynchat","asyncio","asyncore","atexit","audioop","base64","bdb","binascii","binhex","bisect","builtins","bz2","calendar","cgi","cgitb","chunk","cmath","cmd","code","codecs","codeop","collections","collections.abc","colorsys","compileall","concurrent","concurrent.futures","configparser","contextlib","contextvars","copy","copyreg","cProfile","crypt","csv","ctypes","curses","curses.ascii","curses.panel","curses.textpad","dataclasses","datetime","dbm","dbm.dumb","dbm.gnu","dbm.ndbm","decimal","difflib","dis","distutils","distutils.archive_util","distutils.bcppcompiler","distutils.ccompiler","distutils.cmd","distutils.command","distutils.command.bdist","distutils.command.bdist_dumb","distutils.command.bdist_msi","distutils.command.bdist_packager","distutils.command.bdist_rpm","distutils.command.build","distutils.command.build_clib","distutils.command.build_ext","distutils.command.build_py","distutils.command.build_scripts","distutils.command.check","distutils.command.clean","distutils.command.config","distutils.command.install","distutils.command.install_data","distutils.command.install_headers","distutils.command.install_lib","distutils.command.install_scripts","distutils.command.register","distutils.command.sdist","distutils.core","distutils.cygwinccompiler","distutils.debug","distutils.dep_util","distutils.dir_util","distutils.dist","distutils.errors","distutils.extension","distutils.fancy_getopt","distutils.file_util","distutils.filelist","distutils.log","distutils.msvccompiler","distutils.spawn","distutils.sysconfig","distutils.text_file","distutils.unixccompiler","distutils.util","distutils.version","doctest","email","email.charset","email.contentmanager","email.encoders","email.errors","email.generator","email.header","email.headerregistry","email.iterators","email.message","email.mime","email.parser","email.policy","email.utils","encodings","encodings.idna","encodings.mbcs","encodings.utf_8_sig","ensurepip","enum","errno","faulthandler","fcntl","filecmp","fileinput","fnmatch","fractions","ftplib","functools","gc","getopt","getpass","gettext","glob","graphlib","grp","gzip","hashlib","heapq","hmac","html","html.entities","html.parser","http","http.client","http.cookiejar","http.cookies","http.server","idlelib","imaplib","imghdr","imp","importlib","importlib.abc","importlib.machinery","importlib.metadata","importlib.resources","importlib.util","inspect","io","ipaddress","itertools","json","json.tool","keyword","lib2to3","linecache","locale","logging","logging.config","logging.handlers","lzma","mailbox","mailcap","marshal","math","mimetypes","mmap","modulefinder","msilib","msvcrt","multiprocessing","multiprocessing.connection","multiprocessing.dummy","multiprocessing.managers","multiprocessing.pool","multiprocessing.shared_memory","multiprocessing.sharedctypes","netrc","nis","nntplib","numbers","operator","optparse","os","os.path","ossaudiodev","pathlib","pdb","pickle","pickletools","pipes","pkgutil","platform","plistlib","poplib","posix","pprint","profile","pstats","pty","pwd","py_compile","pyclbr","pydoc","queue","quopri","random","re","readline","reprlib","resource","rlcompleter","runpy","sched","secrets","select","selectors","shelve","shlex","shutil","signal","site","smtpd","smtplib","sndhdr","socket","socketserver","spwd","sqlite3","ssl","stat","statistics","string","stringprep","struct","subprocess","sunau","symtable","sys","sysconfig","syslog","tabnanny","tarfile","telnetlib","tempfile","termios","test","test.support","test.support.bytecode_helper","test.support.import_helper","test.support.os_helper","test.support.script_helper","test.support.socket_helper","test.support.threading_helper","test.support.warnings_helper","textwrap","threading","time","timeit","tkinter","tkinter.colorchooser","tkinter.commondialog","tkinter.dnd","tkinter.filedialog","tkinter.font","tkinter.messagebox","tkinter.scrolledtext","tkinter.simpledialog","tkinter.tix","tkinter.ttk","token","tokenize","trace","traceback","tracemalloc","tty","turtle","turtledemo","types","typing","unicodedata","unittest","unittest.mock","urllib","urllib.error","urllib.parse","urllib.request","urllib.response","urllib.robotparser","uu","uuid","venv","warnings","wave","weakref","webbrowser","winreg","winsound","wsgiref","wsgiref.handlers","wsgiref.headers","wsgiref.simple_server","wsgiref.util","wsgiref.validate","xdrlib","xml","xml.dom","xml.dom.minidom","xml.dom.pulldom","xml.etree.ElementTree","xml.parsers.expat","xml.parsers.expat.errors","xml.parsers.expat.model","xml.sax","xml.sax.handler","xml.sax.saxutils","xml.sax.xmlreader","xmlrpc","xmlrpc.client","xmlrpc.server","zipapp","zipfile","zipimport","zlib","zoneinfo"].includes(i),K=i=>/^(\d+!)?(\d+)(\.\d+)+([\\.\-\\_])?((a(lpha)?|b(eta)?|c|r(c|ev)?|pre(view)?)\d*)?(\.?(post|dev)\d*)?$/.test(i),Q={key:2},ye=R({__name:"RequirementsEditor",setup(i){const{loading:e,result:t,refetch:o}=I(()=>Promise.all([l.list(),l.recommendations()]).then(([s,r])=>({requirements:s,recommendations:r}))),{startPolling:q,endPolling:C}=U({task:o,interval:2e3});S(()=>q()),A(()=>C());function E(){M.openFile("requirements.txt")}async function T(s,r){await l.create(s,r).then(o),o()}const z=[{label:"Name",key:"name",hint:s=>H(s)?"This requirement is built-in should not be installed":void 0},{label:"Version",key:"version",placeholder:"latest",hint:s=>!s||K(s)?void 0:"Invalid version"}];async function j({name:s,version:r}){await l.create(s,r),o()}const P=B(()=>{var s,r;return{columns:[{name:"Name"},{name:"Version"},{name:"",align:"right"}],rows:(r=(s=t.value)==null?void 0:s.requirements.map(a=>({key:a.name,cells:[{type:"text",text:a.name},{type:"text",text:a.version},{type:"actions",actions:[{icon:J,label:"Delete",async onClick(){await a.delete(),o()},dangerous:!0}]}]})))!=null?r:[]}});return(s,r)=>(m(),b(D,null,{default:c(()=>{var a,y,_;return[g(F,{"entity-name":"Requirements",loading:n(e),title:"Requirements",description:"Specify pip requirements for your project. This will create and update your requirements.txt file.","empty-title":"No python requirements set",table:P.value,"create-button-text":"Add requirement",fields:z,live:"",onCreate:j},{secondary:c(()=>[g(n(k),{onClick:r[0]||(r[0]=d=>E())},{default:c(()=>[p("Open requirements.txt")]),_:1})]),_:1},8,["loading","table"]),(a=n(t))!=null&&a.recommendations.length?(m(),b(n($),{key:0},{default:c(()=>[p(" Suggested requirements ")]),_:1})):h("",!0),(y=n(t))!=null&&y.recommendations.length?(m(),b(n(O),{key:1},{default:c(()=>[p(" The following requirements are being utilized by your code but are not listed in your requirements.txt. ")]),_:1})):h("",!0),(_=n(t))!=null&&_.recommendations.length?(m(),f("ul",Q,[(m(!0),f(L,null,W(n(t).recommendations,d=>(m(),f("li",{key:d.name},[p(v(d.name)+" ("+v(d.version)+") ",1),g(n(k),{onClick:Y=>{var x;return T(d.name,(x=d.version)!=null?x:void 0)}},{default:c(()=>[p(" Add to requirements ")]),_:2},1032,["onClick"])]))),128))])):h("",!0)]}),_:1}))}});export{ye as default}; +//# sourceMappingURL=RequirementsEditor.6fcb258b.js.map diff --git a/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js b/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js similarity index 58% rename from abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js rename to abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js index 311585dc5..dd4079d88 100644 --- a/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js +++ b/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js @@ -1,2 +1,2 @@ -import{b as o,eh as p,d as b,o as y,c as g,w as r,u as i,d7 as c,aF as s,ec as f,df as m,p as v,bS as _,cN as P}from"./vue-router.4c13f3d4.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="2ab1b014-f952-4038-8a02-18685c45a01d",a._sentryDebugIdIdentifier="sentry-dbid-2ab1b014-f952-4038-8a02-18685c45a01d")}catch{}})();var h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const w=h;function u(a){for(var t=1;t(y(),g(i(P),{open:e.disabled?void 0:!1,placement:"bottom"},{content:r(()=>[o(i(m),{vertical:"",gap:"small"},{default:r(()=>[o(i(c),{style:{"font-size":"16px"}},{default:r(()=>{var n;return[s(f((n=e.disabled)==null?void 0:n.title),1)]}),_:1}),o(i(c),null,{default:r(()=>{var n;return[s(f((n=e.disabled)==null?void 0:n.message),1)]}),_:1})]),_:1})]),default:r(()=>[o(i(_),{style:{width:"100%"},loading:e.loading,icon:v(i(O)),disabled:!!e.disabled,size:"large",type:"primary",onClick:l[0]||(l[0]=n=>t("click"))},{default:r(()=>[s(" Run ")]),_:1},8,["loading","icon","disabled"])]),_:1},8,["open"]))}});export{S as _}; -//# sourceMappingURL=RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js.map +import{b as d,eh as p,d as b,o as y,c as g,w as r,u as i,d7 as c,aF as o,ec as f,df as m,p as v,bS as _,cN as P}from"./vue-router.3fd92176.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="cfdaf8be-c413-4664-8f60-6fcedbfba11d",a._sentryDebugIdIdentifier="sentry-dbid-cfdaf8be-c413-4664-8f60-6fcedbfba11d")}catch{}})();var h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const w=h;function u(a){for(var t=1;t(y(),g(i(P),{open:e.disabled?void 0:!1,placement:"bottom"},{content:r(()=>[d(i(m),{vertical:"",gap:"small"},{default:r(()=>[d(i(c),{style:{"font-size":"16px"}},{default:r(()=>{var n;return[o(f((n=e.disabled)==null?void 0:n.title),1)]}),_:1}),d(i(c),null,{default:r(()=>{var n;return[o(f((n=e.disabled)==null?void 0:n.message),1)]}),_:1})]),_:1})]),default:r(()=>[d(i(_),{style:{width:"100%"},loading:e.loading,icon:v(i(O)),disabled:!!e.disabled,size:"large",type:"primary",onClick:l[0]||(l[0]=n=>t("click"))},{default:r(()=>[o(" Run ")]),_:1},8,["loading","icon","disabled"])]),_:1},8,["open"]))}});export{S as _}; +//# sourceMappingURL=RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js.map diff --git a/abstra_statics/dist/assets/SaveButton.6d0d3fb7.js b/abstra_statics/dist/assets/SaveButton.6d0d3fb7.js new file mode 100644 index 000000000..1fc355eb2 --- /dev/null +++ b/abstra_statics/dist/assets/SaveButton.6d0d3fb7.js @@ -0,0 +1,2 @@ +import{d as w,L as S,N as C,e as y,o as k,X as B,b as n,w as s,a as D,u as o,d7 as E,aF as r,d8 as I,bS as L,Z as c,cN as N,cL as $,$ as A}from"./vue-router.3fd92176.js";import{G as V,U as P}from"./UnsavedChangesHandler.9562b93c.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="2b51862e-87ec-4b25-9a5c-ebbcceb6043e",a._sentryDebugIdIdentifier="sentry-dbid-2b51862e-87ec-4b25-9a5c-ebbcceb6043e")}catch{}})();const U={class:"popup-container"},z={style:{padding:"0px 4px"}},K=w({__name:"SaveButton",props:{model:{},neverShowPopover:{type:Boolean}},emits:["save"],setup(a,{emit:d}){var f;const l=a,m=e=>{var t;return(t=e.parentElement)!=null?t:document.body},p=new S(C.boolean(),"dontShowUnsavedChanges"),v=y((f=p.get())!=null?f:!1),_=()=>{p.set(!0),v.value=!0},u=y(!1);async function h(){u.value=!0;try{await l.model.save(),d("save")}catch{$.error({message:"Error saving"})}finally{u.value=!1}}return addEventListener("keydown",e=>{(e.metaKey||e.ctrlKey)&&e.key==="s"&&(e.preventDefault(),h())}),addEventListener("beforeunload",e=>{l.model.hasChanges()&&(e.preventDefault(),e.returnValue="")}),(e,t)=>{var g;return k(),B("div",U,[n(o(N),{placement:"left",open:e.model.hasChanges()&&!v.value&&!e.neverShowPopover,"get-popup-container":m},{content:s(()=>[D("div",z,[n(o(E),null,{default:s(()=>[r("You have unsaved changes")]),_:1}),n(o(I),{onClick:_},{default:s(()=>[r("Don't show this again")]),_:1})])]),default:s(()=>{var b;return[n(o(L),{class:"save-button",loading:u.value,disabled:!((b=e.model)!=null&&b.hasChanges()),onClick:t[0]||(t[0]=i=>h())},{icon:s(()=>[c(e.$slots,"icon",{},()=>[n(o(V),{size:"18"})],!0)]),default:s(()=>{var i;return[(i=e.model)!=null&&i.hasChanges()?c(e.$slots,"with-changes",{key:0},()=>[r(" Save ")],!0):c(e.$slots,"without-changes",{key:1},()=>[r(" Saved ")],!0)]}),_:3},8,["loading","disabled"])]}),_:3},8,["open"]),n(P,{"has-changes":(g=e.model)==null?void 0:g.hasChanges()},null,8,["has-changes"])])}}});const G=A(K,[["__scopeId","data-v-e79e182b"]]);export{G as S}; +//# sourceMappingURL=SaveButton.6d0d3fb7.js.map diff --git a/abstra_statics/dist/assets/SaveButton.8d79c51b.js b/abstra_statics/dist/assets/SaveButton.8d79c51b.js deleted file mode 100644 index b467eeaeb..000000000 --- a/abstra_statics/dist/assets/SaveButton.8d79c51b.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as w,L as S,N as C,e as b,o as k,X as B,b as n,w as s,a as D,u as o,d7 as E,aF as r,d8 as I,bS as L,Z as f,cN as N,cL as $,$ as A}from"./vue-router.4c13f3d4.js";import{G as V,U as P}from"./UnsavedChangesHandler.5ab8a23e.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="ff766b14-a776-4182-9bd6-9755ffe7f0b6",a._sentryDebugIdIdentifier="sentry-dbid-ff766b14-a776-4182-9bd6-9755ffe7f0b6")}catch{}})();const U={class:"popup-container"},z={style:{padding:"0px 4px"}},K=w({__name:"SaveButton",props:{model:{},neverShowPopover:{type:Boolean}},emits:["save"],setup(a,{emit:d}){var h;const l=a,m=e=>{var t;return(t=e.parentElement)!=null?t:document.body},c=new S(C.boolean(),"dontShowUnsavedChanges"),p=b((h=c.get())!=null?h:!1),_=()=>{c.set(!0),p.value=!0},u=b(!1);async function v(){u.value=!0;try{await l.model.save(),d("save")}catch{$.error({message:"Error saving"})}finally{u.value=!1}}return addEventListener("keydown",e=>{(e.metaKey||e.ctrlKey)&&e.key==="s"&&(e.preventDefault(),v())}),addEventListener("beforeunload",e=>{l.model.hasChanges()&&(e.preventDefault(),e.returnValue="")}),(e,t)=>{var g;return k(),B("div",U,[n(o(N),{placement:"left",open:e.model.hasChanges()&&!p.value&&!e.neverShowPopover,"get-popup-container":m},{content:s(()=>[D("div",z,[n(o(E),null,{default:s(()=>[r("You have unsaved changes")]),_:1}),n(o(I),{onClick:_},{default:s(()=>[r("Don't show this again")]),_:1})])]),default:s(()=>{var y;return[n(o(L),{class:"save-button",loading:u.value,disabled:!((y=e.model)!=null&&y.hasChanges()),onClick:t[0]||(t[0]=i=>v())},{icon:s(()=>[f(e.$slots,"icon",{},()=>[n(o(V),{size:"18"})],!0)]),default:s(()=>{var i;return[(i=e.model)!=null&&i.hasChanges()?f(e.$slots,"with-changes",{key:0},()=>[r(" Save ")],!0):f(e.$slots,"without-changes",{key:1},()=>[r(" Saved ")],!0)]}),_:3},8,["loading","disabled"])]}),_:3},8,["open"]),n(P,{"has-changes":(g=e.model)==null?void 0:g.hasChanges()},null,8,["has-changes"])])}}});const G=A(K,[["__scopeId","data-v-e79e182b"]]);export{G as S}; -//# sourceMappingURL=SaveButton.8d79c51b.js.map diff --git a/abstra_statics/dist/assets/ScriptEditor.2b50300d.js b/abstra_statics/dist/assets/ScriptEditor.2b50300d.js deleted file mode 100644 index ca6ff7d3b..000000000 --- a/abstra_statics/dist/assets/ScriptEditor.2b50300d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{B as E}from"./BaseLayout.e1793d5b.js";import{R as N,S as U,E as W,a as L,L as P}from"./SourceCode.493d1c63.js";import{S as D}from"./SaveButton.8d79c51b.js";import{a as V}from"./asyncComputed.d0f14ed3.js";import{d as w,e as f,o as p,c as m,w as a,b as t,u as e,bK as $,cy as K,cx as q,X as J,eq as M,ed as O,f as j,ej as H,y as X,R as y,df as S,da as C,aF as I,ec as z,cV as G}from"./vue-router.4c13f3d4.js";import"./editor.49995faa.js";import{S as Q}from"./scripts.709f5489.js";import{W as Y}from"./workspaces.1ee4ae8d.js";import{_ as Z}from"./RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js";import{T as ee}from"./ThreadSelector.788dee18.js";import{N as te}from"./NavbarControls.651b74bd.js";import{b as ae}from"./index.c2d72be7.js";import{A as b,T as R}from"./TabPane.9889f7a8.js";import{A as oe,C as re}from"./CollapsePanel.d6e0f903.js";import{B as ie}from"./Badge.49622b8e.js";import"./uuid.27635aee.js";import"./validations.f7853e39.js";import"./string.eaeb96c3.js";import"./PhCopy.vue.300f48e4.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhCopySimple.vue.39f63820.js";import"./PhCaretRight.vue.d968b597.js";import"./PhBug.vue.e9805eb3.js";import"./PhQuestion.vue.500e5a18.js";import"./LoadingOutlined.6c0b95d8.js";import"./polling.ce5b4e64.js";import"./PhPencil.vue.f2283e7d.js";import"./toggleHighContrast.017fb466.js";import"./index.e5bdb21b.js";import"./Card.b3c66431.js";import"./UnsavedChangesHandler.5ab8a23e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./record.34d5b504.js";import"./index.3f22f3b8.js";import"./index.c2ef572b.js";import"./CloseCircleOutlined.6201ef3d.js";import"./index.ec6b7808.js";import"./popupNotifcation.d2ca3d78.js";import"./PhArrowSquareOut.vue.340970aa.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./PhChats.vue.3f8c120c.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";import"./isNumeric.75337b1e.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[d]="18fa0068-5b98-4e61-9c81-7cfbd0ce594c",l._sentryDebugIdIdentifier="sentry-dbid-18fa0068-5b98-4e61-9c81-7cfbd0ce594c")}catch{}})();const se=w({__name:"ScriptSettings",props:{script:{}},setup(l){const n=f(l.script);return(g,v)=>(p(),m(e(q),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:a(()=>[t(e(K),{label:"Name",required:""},{default:a(()=>[t(e($),{value:n.value.title,"onUpdate:value":v[0]||(v[0]=s=>n.value.title=s)},null,8,["value"])]),_:1}),t(N,{runtime:n.value},null,8,["runtime"])]),_:1}))}}),ne={style:{width:"100%",display:"flex","flex-direction":"column"}},le=w({__name:"ScriptTester",props:{script:{},executionConfig:{},disabledWarning:{}},emits:["update-stage-run-id"],setup(l,{emit:d}){const n=l,g=f(!1),v=async()=>{var s;g.value=!0;try{n.executionConfig.attached?await n.script.run((s=n.executionConfig.stageRunId)!=null?s:null):await n.script.test()}finally{g.value=!1,d("update-stage-run-id",null)}};return(s,k)=>(p(),J("div",ne,[t(Z,{loading:g.value,disabled:s.disabledWarning,onClick:v,onSave:k[0]||(k[0]=x=>s.script.save())},null,8,["loading","disabled"])]))}}),ot=w({__name:"ScriptEditor",setup(l){const d=M(),n=O();function g(){d.push({name:"stages"})}const v=f(null),s=f("source-code"),k=f("preview");function x(){var i;if(!r.value)return;const u=r.value.script.codeContent;(i=v.value)==null||i.updateLocalEditorCode(u)}const o=f({attached:!1,stageRunId:null,pendingFork:!1,isInitial:!1}),F=u=>o.value={...o.value,attached:!!u},T=j(()=>{var u;return(u=r.value)!=null&&u.script.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:o.value.attached&&o.value.pendingFork?{title:"Past thread selected",message:"Fork the selected thread to run the workflow"}:!o.value.isInitial&&o.value.attached&&!o.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),{result:r}=V(async()=>{const[u,i]=await Promise.all([Y.get(),Q.get(n.params.id)]);return o.value.isInitial=i.isInitial,X({workspace:u,script:i})}),A=P.create(),_=f(null);return(u,i)=>(p(),m(E,null,H({navbar:a(()=>[e(r)?(p(),m(e(ae),{key:0,title:e(r).script.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:g},{extra:a(()=>[t(te,{"editing-model":e(r).script},null,8,["editing-model"])]),_:1},8,["title"])):y("",!0)]),content:a(()=>[e(r)?(p(),m(W,{key:0},{left:a(()=>[t(e(R),{"active-key":s.value,"onUpdate:activeKey":i[0]||(i[0]=c=>s.value=c)},{rightExtra:a(()=>[t(D,{model:e(r).script,onSave:x},null,8,["model"])]),default:a(()=>[t(e(b),{key:"source-code",tab:"Source code"}),t(e(b),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"]),s.value==="source-code"?(p(),m(L,{key:0,script:e(r).script,workspace:e(r).workspace},null,8,["script","workspace"])):y("",!0),e(r).script&&s.value==="settings"?(p(),m(se,{key:1,script:e(r).script},null,8,["script"])):y("",!0)]),right:a(()=>[t(e(R),{"active-key":k.value,"onUpdate:activeKey":i[1]||(i[1]=c=>k.value=c)},{rightExtra:a(()=>[t(e(S),{align:"center",gap:"middle"},{default:a(()=>[t(e(S),{gap:"small"},{default:a(()=>[t(e(C),null,{default:a(()=>[I(z(o.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),t(e(G),{checked:o.value.attached,"onUpdate:checked":F},null,8,["checked"])]),_:1})]),_:1})]),default:a(()=>[t(e(b),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(r).script&&k.value==="preview"?(p(),m(le,{key:0,ref:"tester",script:e(r).script,"execution-config":o.value,"disabled-warning":T.value,onUpdateStageRunId:i[2]||(i[2]=c=>o.value={...o.value,stageRunId:c})},null,8,["script","execution-config","disabled-warning"])):y("",!0),t(e(re),{ghost:"",style:{"margin-top":"20px"}},{default:a(()=>[t(e(oe),{key:"1"},{header:a(()=>[t(e(ie),{dot:o.value.attached&&!!(o.value.pendingFork||!o.value.stageRunId)},{default:a(()=>[t(e(C),null,{default:a(()=>[I("Thread")]),_:1})]),_:1},8,["dot"])]),default:a(()=>[t(ee,{"execution-config":o.value,"onUpdate:executionConfig":i[3]||(i[3]=c=>o.value=c),stage:e(r).script,onFixInvalidJson:i[4]||(i[4]=(c,B)=>{var h;return(h=_.value)==null?void 0:h.fixJson(c,B)})},null,8,["execution-config","stage"])]),_:1})]),_:1})]),_:1})):y("",!0)]),_:2},[e(r)?{name:"footer",fn:a(()=>[t(U,{ref_key:"smartConsole",ref:_,"stage-type":"scripts",stage:e(r).script,"log-service":e(A),workspace:e(r).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{ot as default}; -//# sourceMappingURL=ScriptEditor.2b50300d.js.map diff --git a/abstra_statics/dist/assets/ScriptEditor.85d9edf4.js b/abstra_statics/dist/assets/ScriptEditor.85d9edf4.js new file mode 100644 index 000000000..a43bfd0ad --- /dev/null +++ b/abstra_statics/dist/assets/ScriptEditor.85d9edf4.js @@ -0,0 +1,2 @@ +import{B as E}from"./BaseLayout.294a6887.js";import{R as N,S as U,E as W,a as L,L as P}from"./SourceCode.db5c4074.js";import{S as D}from"./SaveButton.6d0d3fb7.js";import{a as V}from"./asyncComputed.295e9e03.js";import{d as b,e as f,o as d,c as m,w as a,b as t,u as e,bK as $,cy as K,cx as q,X as J,eq as M,ed as O,f as j,ej as H,y as X,R as y,df as S,da as C,aF as I,ec as z,cV as G}from"./vue-router.3fd92176.js";import"./editor.519c2dc1.js";import{S as Q}from"./scripts.32887e06.js";import{W as Y}from"./workspaces.b456ec6a.js";import{_ as Z}from"./RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js";import{T as ee}from"./ThreadSelector.23af8b2c.js";import{N as te}from"./NavbarControls.a8a61aa1.js";import{b as ae}from"./index.5ccdbcb7.js";import{A as w,T as R}from"./TabPane.d0ca7ad5.js";import{A as oe,C as re}from"./CollapsePanel.87687b29.js";import{B as ie}from"./Badge.bcc65740.js";import"./uuid.06ef1e24.js";import"./validations.0afef3f1.js";import"./string.e75a34fd.js";import"./PhCopy.vue.0ae3f8ab.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhCopySimple.vue.992b99ff.js";import"./PhCaretRight.vue.f72488ac.js";import"./PhBug.vue.00bc4255.js";import"./PhQuestion.vue.129febdc.js";import"./LoadingOutlined.dad6ee6e.js";import"./polling.4e30c061.js";import"./PhPencil.vue.a2604470.js";import"./toggleHighContrast.db48a34e.js";import"./index.4fbbd10e.js";import"./Card.0ce127d8.js";import"./UnsavedChangesHandler.9562b93c.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./record.cbb43e89.js";import"./index.61e7dffa.js";import"./index.c6ce1c1c.js";import"./CloseCircleOutlined.f8dfd09a.js";import"./index.063f7c9e.js";import"./popupNotifcation.0e86d6a8.js";import"./PhArrowSquareOut.vue.188b81dc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./PhChats.vue.aa1113d9.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";import"./isNumeric.75337b1e.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[c]="97602136-1d22-4ca5-afa8-9c13f26653e1",l._sentryDebugIdIdentifier="sentry-dbid-97602136-1d22-4ca5-afa8-9c13f26653e1")}catch{}})();const se=b({__name:"ScriptSettings",props:{script:{}},setup(l){const n=f(l.script);return(g,v)=>(d(),m(e(q),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:a(()=>[t(e(K),{label:"Name",required:""},{default:a(()=>[t(e($),{value:n.value.title,"onUpdate:value":v[0]||(v[0]=s=>n.value.title=s)},null,8,["value"])]),_:1}),t(N,{runtime:n.value},null,8,["runtime"])]),_:1}))}}),ne={style:{width:"100%",display:"flex","flex-direction":"column"}},le=b({__name:"ScriptTester",props:{script:{},executionConfig:{},disabledWarning:{}},emits:["update-stage-run-id"],setup(l,{emit:c}){const n=l,g=f(!1),v=async()=>{var s;g.value=!0;try{n.executionConfig.attached?await n.script.run((s=n.executionConfig.stageRunId)!=null?s:null):await n.script.test()}finally{g.value=!1,c("update-stage-run-id",null)}};return(s,k)=>(d(),J("div",ne,[t(Z,{loading:g.value,disabled:s.disabledWarning,onClick:v,onSave:k[0]||(k[0]=x=>s.script.save())},null,8,["loading","disabled"])]))}}),ot=b({__name:"ScriptEditor",setup(l){const c=M(),n=O();function g(){c.push({name:"stages"})}const v=f(null),s=f("source-code"),k=f("preview");function x(){var i;if(!r.value)return;const u=r.value.script.codeContent;(i=v.value)==null||i.updateLocalEditorCode(u)}const o=f({attached:!1,stageRunId:null,pendingFork:!1,isInitial:!1}),F=u=>o.value={...o.value,attached:!!u},T=j(()=>{var u;return(u=r.value)!=null&&u.script.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:o.value.attached&&o.value.pendingFork?{title:"Past thread selected",message:"Fork the selected thread to run the workflow"}:!o.value.isInitial&&o.value.attached&&!o.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),{result:r}=V(async()=>{const[u,i]=await Promise.all([Y.get(),Q.get(n.params.id)]);return o.value.isInitial=i.isInitial,X({workspace:u,script:i})}),A=P.create(),_=f(null);return(u,i)=>(d(),m(E,null,H({navbar:a(()=>[e(r)?(d(),m(e(ae),{key:0,title:e(r).script.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:g},{extra:a(()=>[t(te,{"editing-model":e(r).script},null,8,["editing-model"])]),_:1},8,["title"])):y("",!0)]),content:a(()=>[e(r)?(d(),m(W,{key:0},{left:a(()=>[t(e(R),{"active-key":s.value,"onUpdate:activeKey":i[0]||(i[0]=p=>s.value=p)},{rightExtra:a(()=>[t(D,{model:e(r).script,onSave:x},null,8,["model"])]),default:a(()=>[t(e(w),{key:"source-code",tab:"Source code"}),t(e(w),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"]),s.value==="source-code"?(d(),m(L,{key:0,script:e(r).script,workspace:e(r).workspace},null,8,["script","workspace"])):y("",!0),e(r).script&&s.value==="settings"?(d(),m(se,{key:1,script:e(r).script},null,8,["script"])):y("",!0)]),right:a(()=>[t(e(R),{"active-key":k.value,"onUpdate:activeKey":i[1]||(i[1]=p=>k.value=p)},{rightExtra:a(()=>[t(e(S),{align:"center",gap:"middle"},{default:a(()=>[t(e(S),{gap:"small"},{default:a(()=>[t(e(C),null,{default:a(()=>[I(z(o.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),t(e(G),{checked:o.value.attached,"onUpdate:checked":F},null,8,["checked"])]),_:1})]),_:1})]),default:a(()=>[t(e(w),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(r).script&&k.value==="preview"?(d(),m(le,{key:0,ref:"tester",script:e(r).script,"execution-config":o.value,"disabled-warning":T.value,onUpdateStageRunId:i[2]||(i[2]=p=>o.value={...o.value,stageRunId:p})},null,8,["script","execution-config","disabled-warning"])):y("",!0),t(e(re),{ghost:"",style:{"margin-top":"20px"}},{default:a(()=>[t(e(oe),{key:"1"},{header:a(()=>[t(e(ie),{dot:o.value.attached&&!!(o.value.pendingFork||!o.value.stageRunId)},{default:a(()=>[t(e(C),null,{default:a(()=>[I("Thread")]),_:1})]),_:1},8,["dot"])]),default:a(()=>[t(ee,{"execution-config":o.value,"onUpdate:executionConfig":i[3]||(i[3]=p=>o.value=p),stage:e(r).script,onFixInvalidJson:i[4]||(i[4]=(p,B)=>{var h;return(h=_.value)==null?void 0:h.fixJson(p,B)})},null,8,["execution-config","stage"])]),_:1})]),_:1})]),_:1})):y("",!0)]),_:2},[e(r)?{name:"footer",fn:a(()=>[t(U,{ref_key:"smartConsole",ref:_,"stage-type":"scripts",stage:e(r).script,"log-service":e(A),workspace:e(r).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{ot as default}; +//# sourceMappingURL=ScriptEditor.85d9edf4.js.map diff --git a/abstra_statics/dist/assets/Sidebar.49f66f34.js b/abstra_statics/dist/assets/Sidebar.ffb10124.js similarity index 96% rename from abstra_statics/dist/assets/Sidebar.49f66f34.js rename to abstra_statics/dist/assets/Sidebar.ffb10124.js index f652a4973..7e31ab42a 100644 --- a/abstra_statics/dist/assets/Sidebar.49f66f34.js +++ b/abstra_statics/dist/assets/Sidebar.ffb10124.js @@ -1,2 +1,2 @@ -import{C as D,T as N}from"./router.87582bcc.js";import{d as x,B as h,f as C,o as a,X as p,Z as $,R as S,eb as V,a as d,c as f,w as r,b as w,aF as v,ec as b,u as g,da as L,bS as Z,e as M,Y as R,$ as z,eq as E,ed as P,ee as A,cI as q,aR as B,bw as F,ea as I,ef as j,d3 as T,by as G}from"./vue-router.4c13f3d4.js";import{A as O}from"./index.e5bdb21b.js";import{L as W}from"./Logo.1a35ae4d.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="7183a51c-c0cb-40fe-a2d4-58290bbfd30e",n._sentryDebugIdIdentifier="sentry-dbid-7183a51c-c0cb-40fe-a2d4-58290bbfd30e")}catch{}})();const H=["width","height","fill","transform"],U={key:0},X=d("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),Y=[X],J={key:1},K=d("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.64-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"},null,-1),Q=d("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),e1=[K,Q],a1={key:2},s1=d("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),t1=[s1],c1={key:3},o1=d("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),n1=[o1],l1={key:4},r1=d("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),i1=[r1],u1={key:5},d1=d("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88ZM124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),p1=[d1],f1={name:"PhSealWarning"},g1=x({...f1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const e=n,u=h("weight","regular"),_=h("size","1em"),c=h("color","currentColor"),m=h("mirrored",!1),l=C(()=>{var t;return(t=e.weight)!=null?t:u}),s=C(()=>{var t;return(t=e.size)!=null?t:_}),i=C(()=>{var t;return(t=e.color)!=null?t:c}),y=C(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(t,o)=>(a(),p("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:i.value,transform:y.value},t.$attrs),[$(t.$slots,"default"),l.value==="bold"?(a(),p("g",U,Y)):l.value==="duotone"?(a(),p("g",J,e1)):l.value==="fill"?(a(),p("g",a1,t1)):l.value==="light"?(a(),p("g",c1,n1)):l.value==="regular"?(a(),p("g",l1,i1)):l.value==="thin"?(a(),p("g",u1,p1)):S("",!0)],16,H))}}),w1=x({__name:"BillingAlert",props:{organizationId:{},billingMetadata:{}},setup(n){const e=n,u=C(()=>{var c,m;return(m=(c=e.billingMetadata)==null?void 0:c.messageCTA)!=null?m:"Contact Us"}),_=()=>{D.showNewMessage("Help me with my plan"),N.billingAlertCtaClicked(e.organizationId,u.value)};return(c,m)=>{var l;return(l=c.billingMetadata)!=null&&l.message?(a(),f(g(O),{key:0,type:"error"},{message:r(()=>[w(g(L),{type:"secondary"},{default:r(()=>{var s;return[v(b((s=c.billingMetadata)==null?void 0:s.message),1)]}),_:1})]),action:r(()=>{var s;return[(s=c.billingMetadata)!=null&&s.messageLink?(a(),f(g(Z),{key:0,type:"primary",target:"_blank",href:c.billingMetadata.messageLink},{default:r(()=>[v(b(u.value),1)]),_:1},8,["href"])):(a(),f(g(Z),{key:1,type:"primary",onClick:_},{default:r(()=>[v(b(u.value),1)]),_:1}))]}),_:1})):S("",!0)}}}),m1={class:"text"},_1=x({__name:"Tooltip",props:{text:{type:String,required:!0},left:{type:Number},top:{type:Number},fixed:{type:Boolean,default:!1}},setup(n){const e=n,u=M(Date.now()),_=()=>{u.value=Date.now()},c=M(null),m=()=>{var t,o,k;const s=(t=c.value)==null?void 0:t.getBoundingClientRect();if(!s)return{};const{x:i,y}=s;return u.value,{position:"fixed",top:`${y+((o=e.top)!=null?o:0)}px`,left:`${i+((k=e.left)!=null?k:0)}px`}},l=C(()=>{var s;return e.fixed?m():{left:`${(s=e.left)!=null?s:-14}px`,...e.top?{top:`${e.top}px`}:{}}});return(s,i)=>(a(),p("div",{ref_key:"tooltipBox",ref:c,class:"tooltip-box",onMouseenter:_},[$(s.$slots,"default",{},void 0,!0),d("div",{class:"tooltip",style:R(l.value)},[d("span",m1,b(n.text),1)],4)],544))}});const C1=z(_1,[["__scopeId","data-v-c3a6ca5e"]]),y1={style:{width:"100%",padding:"10px 15px"}},v1={style:{"margin-right":"5px"}},b1=x({__name:"Sidebar",props:{sections:{}},setup(n){var s;const e=n,u=E(),_=P(),c=M((s=_.name)!=null?s:"forms"),m=C(()=>e.sections.map(i=>({...i,items:i.items.filter(y=>!y.unavailable)}))),l=i=>{i.unavailable||(u.push(i.path),c.value=i.path)};return(i,y)=>(a(),f(g(G),{style:{"border-right":"1px solid #f6f6f6",width:"200px"}},{default:r(()=>[d("div",y1,[w(W)]),(a(!0),p(B,null,A(m.value,t=>(a(),f(g(q),{key:t.name},{title:r(()=>[v(b(t.name),1)]),default:r(()=>[(a(!0),p(B,null,A(t.items,o=>(a(),f(g(F),{key:o.name,role:"button",class:I({"menu-item":!0,active:c.value===o.path,disabled:o.unavailable||t.cloud}),tabindex:"0",onClick:k=>l(o)},{icon:r(()=>[(a(),f(j(o.icon),{class:I({disabled:o.unavailable,active:c.value===o.path}),size:"20"},null,8,["class"]))]),default:r(()=>[d("span",v1,b(o.name),1),o.unavailable?(a(),f(g(T),{key:0},{default:r(()=>[v("SOON")]),_:1})):S("",!0),o.beta?(a(),f(g(T),{key:1},{default:r(()=>[v("BETA")]),_:1})):S("",!0),o.warning?(a(),f(C1,{key:2,text:o.warning,fixed:!0,top:18,left:18},{default:r(()=>[w(g(g1),{color:"#D35249",size:"20"})]),_:2},1032,["text"])):S("",!0)]),_:2},1032,["class","onClick"]))),128))]),_:2},1024))),128))]),_:1}))}});const M1=z(b1,[["__scopeId","data-v-17f112aa"]]);export{M1 as S,w1 as _}; -//# sourceMappingURL=Sidebar.49f66f34.js.map +import{C as D,T as N}from"./router.59916c0d.js";import{d as x,B as h,f as C,o as a,X as p,Z as $,R as S,eb as V,a as d,c as f,w as r,b as w,aF as v,ec as b,u as g,da as L,bS as Z,e as M,Y as R,$ as z,eq as E,ed as P,ee as A,cI as q,aR as B,bw as F,ea as I,ef as j,d3 as T,by as G}from"./vue-router.3fd92176.js";import{A as O}from"./index.4fbbd10e.js";import{L as W}from"./Logo.6e947620.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="5f40a9fb-9fc1-4eee-806c-2b1b525de8a6",n._sentryDebugIdIdentifier="sentry-dbid-5f40a9fb-9fc1-4eee-806c-2b1b525de8a6")}catch{}})();const H=["width","height","fill","transform"],U={key:0},X=d("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),Y=[X],J={key:1},K=d("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.64-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"},null,-1),Q=d("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),e1=[K,Q],a1={key:2},s1=d("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),t1=[s1],c1={key:3},o1=d("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),n1=[o1],l1={key:4},r1=d("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),i1=[r1],u1={key:5},d1=d("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88ZM124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),p1=[d1],f1={name:"PhSealWarning"},g1=x({...f1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const e=n,u=h("weight","regular"),_=h("size","1em"),c=h("color","currentColor"),m=h("mirrored",!1),l=C(()=>{var t;return(t=e.weight)!=null?t:u}),s=C(()=>{var t;return(t=e.size)!=null?t:_}),i=C(()=>{var t;return(t=e.color)!=null?t:c}),y=C(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(t,o)=>(a(),p("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:i.value,transform:y.value},t.$attrs),[$(t.$slots,"default"),l.value==="bold"?(a(),p("g",U,Y)):l.value==="duotone"?(a(),p("g",J,e1)):l.value==="fill"?(a(),p("g",a1,t1)):l.value==="light"?(a(),p("g",c1,n1)):l.value==="regular"?(a(),p("g",l1,i1)):l.value==="thin"?(a(),p("g",u1,p1)):S("",!0)],16,H))}}),w1=x({__name:"BillingAlert",props:{organizationId:{},billingMetadata:{}},setup(n){const e=n,u=C(()=>{var c,m;return(m=(c=e.billingMetadata)==null?void 0:c.messageCTA)!=null?m:"Contact Us"}),_=()=>{D.showNewMessage("Help me with my plan"),N.billingAlertCtaClicked(e.organizationId,u.value)};return(c,m)=>{var l;return(l=c.billingMetadata)!=null&&l.message?(a(),f(g(O),{key:0,type:"error"},{message:r(()=>[w(g(L),{type:"secondary"},{default:r(()=>{var s;return[v(b((s=c.billingMetadata)==null?void 0:s.message),1)]}),_:1})]),action:r(()=>{var s;return[(s=c.billingMetadata)!=null&&s.messageLink?(a(),f(g(Z),{key:0,type:"primary",target:"_blank",href:c.billingMetadata.messageLink},{default:r(()=>[v(b(u.value),1)]),_:1},8,["href"])):(a(),f(g(Z),{key:1,type:"primary",onClick:_},{default:r(()=>[v(b(u.value),1)]),_:1}))]}),_:1})):S("",!0)}}}),m1={class:"text"},_1=x({__name:"Tooltip",props:{text:{type:String,required:!0},left:{type:Number},top:{type:Number},fixed:{type:Boolean,default:!1}},setup(n){const e=n,u=M(Date.now()),_=()=>{u.value=Date.now()},c=M(null),m=()=>{var t,o,k;const s=(t=c.value)==null?void 0:t.getBoundingClientRect();if(!s)return{};const{x:i,y}=s;return u.value,{position:"fixed",top:`${y+((o=e.top)!=null?o:0)}px`,left:`${i+((k=e.left)!=null?k:0)}px`}},l=C(()=>{var s;return e.fixed?m():{left:`${(s=e.left)!=null?s:-14}px`,...e.top?{top:`${e.top}px`}:{}}});return(s,i)=>(a(),p("div",{ref_key:"tooltipBox",ref:c,class:"tooltip-box",onMouseenter:_},[$(s.$slots,"default",{},void 0,!0),d("div",{class:"tooltip",style:R(l.value)},[d("span",m1,b(n.text),1)],4)],544))}});const C1=z(_1,[["__scopeId","data-v-c3a6ca5e"]]),y1={style:{width:"100%",padding:"10px 15px"}},v1={style:{"margin-right":"5px"}},b1=x({__name:"Sidebar",props:{sections:{}},setup(n){var s;const e=n,u=E(),_=P(),c=M((s=_.name)!=null?s:"forms"),m=C(()=>e.sections.map(i=>({...i,items:i.items.filter(y=>!y.unavailable)}))),l=i=>{i.unavailable||(u.push(i.path),c.value=i.path)};return(i,y)=>(a(),f(g(G),{style:{"border-right":"1px solid #f6f6f6",width:"200px"}},{default:r(()=>[d("div",y1,[w(W)]),(a(!0),p(B,null,A(m.value,t=>(a(),f(g(q),{key:t.name},{title:r(()=>[v(b(t.name),1)]),default:r(()=>[(a(!0),p(B,null,A(t.items,o=>(a(),f(g(F),{key:o.name,role:"button",class:I({"menu-item":!0,active:c.value===o.path,disabled:o.unavailable||t.cloud}),tabindex:"0",onClick:k=>l(o)},{icon:r(()=>[(a(),f(j(o.icon),{class:I({disabled:o.unavailable,active:c.value===o.path}),size:"20"},null,8,["class"]))]),default:r(()=>[d("span",v1,b(o.name),1),o.unavailable?(a(),f(g(T),{key:0},{default:r(()=>[v("SOON")]),_:1})):S("",!0),o.beta?(a(),f(g(T),{key:1},{default:r(()=>[v("BETA")]),_:1})):S("",!0),o.warning?(a(),f(C1,{key:2,text:o.warning,fixed:!0,top:18,left:18},{default:r(()=>[w(g(g1),{color:"#D35249",size:"20"})]),_:2},1032,["text"])):S("",!0)]),_:2},1032,["class","onClick"]))),128))]),_:2},1024))),128))]),_:1}))}});const M1=z(b1,[["__scopeId","data-v-17f112aa"]]);export{M1 as S,w1 as _}; +//# sourceMappingURL=Sidebar.ffb10124.js.map diff --git a/abstra_statics/dist/assets/SourceCode.493d1c63.js b/abstra_statics/dist/assets/SourceCode.db5c4074.js similarity index 92% rename from abstra_statics/dist/assets/SourceCode.493d1c63.js rename to abstra_statics/dist/assets/SourceCode.db5c4074.js index d78fadbb0..e8293012d 100644 --- a/abstra_statics/dist/assets/SourceCode.493d1c63.js +++ b/abstra_statics/dist/assets/SourceCode.db5c4074.js @@ -1,10 +1,10 @@ -var ke=Object.defineProperty;var Ze=(i,e,t)=>e in i?ke(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var f=(i,e,t)=>(Ze(i,typeof e!="symbol"?e+"":e,t),t);import{d as k,B as y,f as g,o,X as n,Z as T,R as C,eb as D,a as r,$ as O,D as ve,c as S,ej as be,u,w as p,aF as b,bK as fe,b as m,cy as me,ec as G,aR as re,e as Z,aV as z,eT as Ve,dk as Le,df as P,ea as B,g as K,eU as Ee,ee as ye,ef as Ie,ed as xe,J as se,W as _e,ag as He,r as ze,Y as Pe,d9 as Te,el as Be,em as Ne,Q as te,bS as X}from"./vue-router.4c13f3d4.js";import{u as ne}from"./uuid.27635aee.js";import{H as De,J as Fe,S as We,A as ee}from"./scripts.709f5489.js";import{u as Oe}from"./editor.49995faa.js";import{d as Re,e as je,v as Ge}from"./validations.f7853e39.js";import{I as Je}from"./PhCopy.vue.300f48e4.js";import{H as Ue}from"./PhCheckCircle.vue.aa5f3146.js";import{I as Ke}from"./PhCopySimple.vue.39f63820.js";import{G as he}from"./PhCaretRight.vue.d968b597.js";import{B as qe}from"./Badge.49622b8e.js";import{G as Ye}from"./PhBug.vue.e9805eb3.js";import{H as Qe}from"./PhQuestion.vue.500e5a18.js";import{L as Xe}from"./LoadingOutlined.6c0b95d8.js";import{W as oe}from"./workspaces.1ee4ae8d.js";import{a as pe}from"./asyncComputed.d0f14ed3.js";import{u as e0}from"./polling.ce5b4e64.js";import{G as t0}from"./PhPencil.vue.f2283e7d.js";import{l as ae,R as $e,e as q,M as U}from"./toggleHighContrast.017fb466.js";import{A as a0}from"./index.e5bdb21b.js";import{C as l0}from"./Card.b3c66431.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="e8a0cf63-bd57-4c12-a451-88fbc36592a2",i._sentryDebugIdIdentifier="sentry-dbid-e8a0cf63-bd57-4c12-a451-88fbc36592a2")}catch{}})();const o0=["width","height","fill","transform"],s0={key:0},n0=r("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"},null,-1),r0=[n0],i0={key:1},u0=r("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"},null,-1),c0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),d0=[u0,c0],h0={key:2},p0=r("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"},null,-1),g0=[p0],v0={key:3},f0=r("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"},null,-1),m0=[f0],y0={key:4},_0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),H0=[_0],$0={key:5},w0=r("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"},null,-1),C0=[w0],A0={name:"PhBroom"},M0=k({...A0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",s0,r0)):s.value==="duotone"?(o(),n("g",i0,d0)):s.value==="fill"?(o(),n("g",h0,g0)):s.value==="light"?(o(),n("g",v0,m0)):s.value==="regular"?(o(),n("g",y0,H0)):s.value==="thin"?(o(),n("g",$0,C0)):C("",!0)],16,o0))}}),S0=["width","height","fill","transform"],k0={key:0},Z0=r("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"},null,-1),b0=[Z0],V0={key:1},L0=r("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"},null,-1),E0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"},null,-1),I0=[L0,E0],x0={key:2},z0=r("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"},null,-1),P0=[z0],T0={key:3},B0=r("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"},null,-1),N0=[B0],D0={key:4},F0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"},null,-1),W0=[F0],O0={key:5},R0=r("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"},null,-1),j0=[R0],G0={name:"PhFolder"},J0=k({...G0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",k0,b0)):s.value==="duotone"?(o(),n("g",V0,I0)):s.value==="fill"?(o(),n("g",x0,P0)):s.value==="light"?(o(),n("g",T0,N0)):s.value==="regular"?(o(),n("g",D0,W0)):s.value==="thin"?(o(),n("g",O0,j0)):C("",!0)],16,S0))}}),U0=["width","height","fill","transform"],K0={key:0},q0=r("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"},null,-1),Y0=[q0],Q0={key:1},X0=r("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"},null,-1),e1=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),t1=[X0,e1],a1={key:2},l1=r("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"},null,-1),o1=[l1],s1={key:3},n1=r("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"},null,-1),r1=[n1],i1={key:4},u1=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),c1=[u1],d1={key:5},h1=r("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"},null,-1),p1=[h1],g1={name:"PhPaperPlaneRight"},v1=k({...g1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",K0,Y0)):s.value==="duotone"?(o(),n("g",Q0,t1)):s.value==="fill"?(o(),n("g",a1,o1)):s.value==="light"?(o(),n("g",s1,r1)):s.value==="regular"?(o(),n("g",i1,c1)):s.value==="thin"?(o(),n("g",d1,p1)):C("",!0)],16,U0))}}),f1=["width","height","fill","transform"],m1={key:0},y1=r("path",{d:"M20,128A76.08,76.08,0,0,1,96,52h99l-3.52-3.51a12,12,0,1,1,17-17l24,24a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L195,76H96a52.06,52.06,0,0,0-52,52,12,12,0,0,1-24,0Zm204-12a12,12,0,0,0-12,12,52.06,52.06,0,0,1-52,52H61l3.52-3.51a12,12,0,1,0-17-17l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,1,0,17-17L61,204h99a76.08,76.08,0,0,0,76-76A12,12,0,0,0,224,116Z"},null,-1),_1=[y1],H1={key:1},$1=r("path",{d:"M224,64v64a64,64,0,0,1-64,64H32V128A64,64,0,0,1,96,64Z",opacity:"0.2"},null,-1),w1=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),C1=[$1,w1],A1={key:2},M1=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56h96V40a8,8,0,0,1,13.66-5.66l24,24a8,8,0,0,1,0,11.32l-24,24A8,8,0,0,1,192,88V72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H64V168a8,8,0,0,0-13.66-5.66l-24,24a8,8,0,0,0,0,11.32l24,24A8,8,0,0,0,64,216V200h96a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),S1=[M1],k1={key:3},Z1=r("path",{d:"M26,128A70.08,70.08,0,0,1,96,58H209.51L195.76,44.24a6,6,0,0,1,8.48-8.48l24,24a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L209.51,70H96a58.07,58.07,0,0,0-58,58,6,6,0,0,1-12,0Zm198-6a6,6,0,0,0-6,6,58.07,58.07,0,0,1-58,58H46.49l13.75-13.76a6,6,0,0,0-8.48-8.48l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,0,0,8.48-8.48L46.49,198H160a70.08,70.08,0,0,0,70-70A6,6,0,0,0,224,122Z"},null,-1),b1=[Z1],V1={key:4},L1=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),E1=[L1],I1={key:5},x1=r("path",{d:"M28,128A68.07,68.07,0,0,1,96,60H214.34L197.17,42.83a4,4,0,0,1,5.66-5.66l24,24a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L214.34,68H96a60.07,60.07,0,0,0-60,60,4,4,0,0,1-8,0Zm196-4a4,4,0,0,0-4,4,60.07,60.07,0,0,1-60,60H41.66l17.17-17.17a4,4,0,0,0-5.66-5.66l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L41.66,196H160a68.07,68.07,0,0,0,68-68A4,4,0,0,0,224,124Z"},null,-1),z1=[x1],P1={name:"PhRepeat"},T1=k({...P1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",m1,_1)):s.value==="duotone"?(o(),n("g",H1,C1)):s.value==="fill"?(o(),n("g",A1,S1)):s.value==="light"?(o(),n("g",k1,b1)):s.value==="regular"?(o(),n("g",V1,E1)):s.value==="thin"?(o(),n("g",I1,z1)):C("",!0)],16,f1))}}),B1=["width","height","fill","transform"],N1={key:0},D1=r("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"},null,-1),F1=[D1],W1={key:1},O1=r("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"},null,-1),R1=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),j1=[O1,R1],G1={key:2},J1=r("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"},null,-1),U1=[J1],K1={key:3},q1=r("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"},null,-1),Y1=[q1],Q1={key:4},X1=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),et=[X1],tt={key:5},at=r("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"},null,-1),lt=[at],ot={name:"PhStop"},st=k({...ot,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",N1,F1)):s.value==="duotone"?(o(),n("g",W1,j1)):s.value==="fill"?(o(),n("g",G1,U1)):s.value==="light"?(o(),n("g",K1,Y1)):s.value==="regular"?(o(),n("g",Q1,et)):s.value==="thin"?(o(),n("g",tt,lt)):C("",!0)],16,B1))}}),nt=["width","height","fill","transform"],rt={key:0},it=r("path",{d:"M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"},null,-1),ut=[it],ct={key:1},dt=r("path",{d:"M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),ht=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),pt=[dt,ht],gt={key:2},vt=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z"},null,-1),ft=[vt],mt={key:3},yt=r("path",{d:"M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z"},null,-1),_t=[yt],Ht={key:4},$t=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),wt=[$t],Ct={key:5},At=r("path",{d:"M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z"},null,-1),Mt=[At],St={name:"PhTerminalWindow"},kt=k({...St,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",rt,ut)):s.value==="duotone"?(o(),n("g",ct,pt)):s.value==="fill"?(o(),n("g",gt,ft)):s.value==="light"?(o(),n("g",mt,_t)):s.value==="regular"?(o(),n("g",Ht,wt)):s.value==="thin"?(o(),n("g",Ct,Mt)):C("",!0)],16,nt))}}),Zt=["width","height","fill","transform"],bt={key:0},Vt=r("path",{d:"M243.78,156.53l-12-96A28,28,0,0,0,204,36H32A20,20,0,0,0,12,56v88a20,20,0,0,0,20,20H72.58l36.69,73.37A12,12,0,0,0,120,244a44.05,44.05,0,0,0,44-44V188h52a28,28,0,0,0,27.78-31.47ZM68,140H36V60H68Zm151,22.65a4,4,0,0,1-3,1.35H152a12,12,0,0,0-12,12v24a20,20,0,0,1-13.18,18.8L92,149.17V60H204a4,4,0,0,1,4,3.5l12,96A4,4,0,0,1,219,162.65Z"},null,-1),Lt=[Vt],Et={key:1},It=r("path",{d:"M80,48V152H32a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),xt=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),zt=[It,xt],Pt={key:2},Tt=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"},null,-1),Bt=[Tt],Nt={key:3},Dt=r("path",{d:"M237.83,157.27l-12-96A22,22,0,0,0,204,42H32A14,14,0,0,0,18,56v88a14,14,0,0,0,14,14H76.29l38.34,76.68A6,6,0,0,0,120,238a38,38,0,0,0,38-38V182h58a22,22,0,0,0,21.83-24.73ZM74,146H32a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H74Zm149.5,20.62A9.89,9.89,0,0,1,216,170H152a6,6,0,0,0-6,6v24a26,26,0,0,1-22.42,25.75L86,150.58V54H204a10,10,0,0,1,9.92,8.76l12,96A9.89,9.89,0,0,1,223.5,166.62Z"},null,-1),Ft=[Dt],Wt={key:4},Ot=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),Rt=[Ot],jt={key:5},Gt=r("path",{d:"M235.85,157.52l-12-96A20,20,0,0,0,204,44H32A12,12,0,0,0,20,56v88a12,12,0,0,0,12,12H77.53l38.89,77.79A4,4,0,0,0,120,236a36,36,0,0,0,36-36V180h60a20,20,0,0,0,19.85-22.48ZM76,148H32a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H76Zm149,19.94a12,12,0,0,1-9,4.06H152a4,4,0,0,0-4,4v24a28,28,0,0,1-25.58,27.9L84,151.06V52H204a12,12,0,0,1,11.91,10.51l12,96A12,12,0,0,1,225,167.94Z"},null,-1),Jt=[Gt],Ut={name:"PhThumbsDown"},Kt=k({...Ut,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",bt,Lt)):s.value==="duotone"?(o(),n("g",Et,zt)):s.value==="fill"?(o(),n("g",Pt,Bt)):s.value==="light"?(o(),n("g",Nt,Ft)):s.value==="regular"?(o(),n("g",Wt,Rt)):s.value==="thin"?(o(),n("g",jt,Jt)):C("",!0)],16,Zt))}}),qt=["width","height","fill","transform"],Yt={key:0},Qt=r("path",{d:"M237,77.47A28,28,0,0,0,216,68H164V56a44.05,44.05,0,0,0-44-44,12,12,0,0,0-10.73,6.63L72.58,92H32a20,20,0,0,0-20,20v88a20,20,0,0,0,20,20H204a28,28,0,0,0,27.78-24.53l12-96A28,28,0,0,0,237,77.47ZM36,116H68v80H36ZM220,96.5l-12,96a4,4,0,0,1-4,3.5H92V106.83L126.82,37.2A20,20,0,0,1,140,56V80a12,12,0,0,0,12,12h64a4,4,0,0,1,4,4.5Z"},null,-1),Xt=[Qt],ea={key:1},ta=r("path",{d:"M80,104V208H32a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),aa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),la=[ta,aa],oa={key:2},sa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"},null,-1),na=[sa],ra={key:3},ia=r("path",{d:"M232.49,81.44A22,22,0,0,0,216,74H158V56a38,38,0,0,0-38-38,6,6,0,0,0-5.37,3.32L76.29,98H32a14,14,0,0,0-14,14v88a14,14,0,0,0,14,14H204a22,22,0,0,0,21.83-19.27l12-96A22,22,0,0,0,232.49,81.44ZM30,200V112a2,2,0,0,1,2-2H74v92H32A2,2,0,0,1,30,200ZM225.92,97.24l-12,96A10,10,0,0,1,204,202H86V105.42l37.58-75.17A26,26,0,0,1,146,56V80a6,6,0,0,0,6,6h64a10,10,0,0,1,9.92,11.24Z"},null,-1),ua=[ia],ca={key:4},da=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),ha=[da],pa={key:5},ga=r("path",{d:"M231,82.76A20,20,0,0,0,216,76H156V56a36,36,0,0,0-36-36,4,4,0,0,0-3.58,2.21L77.53,100H32a12,12,0,0,0-12,12v88a12,12,0,0,0,12,12H204a20,20,0,0,0,19.85-17.52l12-96A20,20,0,0,0,231,82.76ZM76,204H32a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H76ZM227.91,97.49l-12,96A12,12,0,0,1,204,204H84V104.94L122.42,28.1A28,28,0,0,1,148,56V80a4,4,0,0,0,4,4h64a12,12,0,0,1,11.91,13.49Z"},null,-1),va=[ga],fa={name:"PhThumbsUp"},ma=k({...fa,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",Yt,Xt)):s.value==="duotone"?(o(),n("g",ea,la)):s.value==="fill"?(o(),n("g",oa,na)):s.value==="light"?(o(),n("g",ra,ua)):s.value==="regular"?(o(),n("g",ca,ha)):s.value==="thin"?(o(),n("g",pa,va)):C("",!0)],16,qt))}}),ya=["width","height","fill","transform"],_a={key:0},Ha=r("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"},null,-1),$a=[Ha],wa={key:1},Ca=r("path",{d:"M232,56v64L168,56Z",opacity:"0.2"},null,-1),Aa=r("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"},null,-1),Ma=[Ca,Aa],Sa={key:2},ka=r("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"},null,-1),Za=[ka],ba={key:3},Va=r("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"},null,-1),La=[Va],Ea={key:4},Ia=r("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"},null,-1),xa=[Ia],za={key:5},Pa=r("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"},null,-1),Ta=[Pa],Ba={name:"PhTrendUp"},Na=k({...Ba,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",_a,$a)):s.value==="duotone"?(o(),n("g",wa,Ma)):s.value==="fill"?(o(),n("g",Sa,Za)):s.value==="light"?(o(),n("g",ba,La)):s.value==="regular"?(o(),n("g",Ea,xa)):s.value==="thin"?(o(),n("g",za,Ta)):C("",!0)],16,ya))}}),Da={class:"editor-layout"},Fa={class:"layout-left"},Wa={class:"layout-right"},Oa=k({__name:"EditorLayout",props:{fullWidth:{type:Boolean}},setup(i){return(e,t)=>(o(),n("div",Da,[r("section",Fa,[T(e.$slots,"left",{},void 0,!0)]),r("section",Wa,[T(e.$slots,"right",{},void 0,!0)])]))}});const J2=O(Oa,[["__scopeId","data-v-74db9fe9"]]);class we{constructor(){f(this,"logState",ve({log:[]}));f(this,"_listeners",{})}static create(){return new we}get logs(){return this.logState.log}log(e,t){if(e.type!=="restart"&&e.log.trim()==="")return;const l=t?this.logs.find(c=>c.id===t):null;return l?(l.type==="stderr"&&e.type==="stderr"&&(e.log=l.log+` -`+e.log),Object.assign(l,e)):this.logs.push({...e,id:t||ne()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=ne();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Ra=k({__name:"PathInput",props:{runtime:{}},setup(i){const e=i,t=()=>{const l=Re(e.runtime.path);l&&l!==e.runtime.path&&(e.runtime.path=l)};return(l,c)=>(o(),S(u(fe),{value:l.runtime.path,"onUpdate:value":c[0]||(c[0]=d=>l.runtime.path=d),type:"text",onBlur:t},be({_:2},[l.runtime instanceof u(De)?{name:"addonBefore",fn:p(()=>[b(" https://[your-subdomain].abstra.app/_hooks/ ")]),key:"0"}:{name:"addonBefore",fn:p(()=>[b(" https://[your-subdomain].abstra.app/ ")]),key:"1"}]),1032,["value"]))}}),ja={key:1},Ga=k({__name:"RuntimeCommonSettings",props:{runtime:{}},setup(i){const e=ve({pathError:null});return(t,l)=>(o(),n(re,null,[t.runtime instanceof u(Fe)||t.runtime instanceof u(We)?C("",!0):(o(),S(u(me),{key:0,label:"URL path"},{default:p(()=>[m(Ra,{runtime:t.runtime},null,8,["runtime"])]),_:1})),e.pathError?(o(),n("div",ja,G(e.pathError),1)):C("",!0)],64))}});const U2=O(Ga,[["__scopeId","data-v-18856675"]]),Ja="/assets/typing.c1831e40.svg";class Ua{constructor(e,t){f(this,"ws",null);f(this,"selfClosed",!1);this.onMessage=e,this.stageId=t}get url(){return"/_editor/api/stdio/listen"}handleMessage(e){const t=JSON.parse(e.data);t.stage_id===this.stageId&&this.onMessage(t)}handleClose(e){this.selfClosed||this.reset()}async close(){if(!!this.ws){try{this.ws.close()}catch{console.warn("already closed")}this.ws=null,this.selfClosed=!0}}async reset(){await this.close(),await this.connect()}async connect(){return await new Promise(e=>{this.ws=new WebSocket(this.url),this.ws.onopen=()=>e(),this.ws.onclose=t=>this.handleClose(t),this.ws.onmessage=t=>this.handleMessage(t)})}}const Ka=k({__name:"SmartConsoleCopy",props:{textToCopy:{}},setup(i){const e=i,t=Z(!1),l=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},c=g(()=>t.value?"Copied!":"Copy to clipboard");return(d,s)=>(o(),S(u(z),null,{title:p(()=>[b(G(c.value),1)]),default:p(()=>[r("div",{class:"copy-button",onClick:l},[t.value?(o(),S(u(Ue),{key:1,color:"#fff",size:"22"})):(o(),S(u(Ke),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const qa=O(Ka,[["__scopeId","data-v-cbb7de67"]]);class Ya{constructor(e,t){f(this,"_threadId");f(this,"_input");f(this,"_badgeState");f(this,"_smartConsoleState");f(this,"_logService");f(this,"_stageType");f(this,"_cachedFileContent",null);f(this,"setupThread",async()=>{this._smartConsoleState.value="creating-thread";const{thread:e}=await ee.createThread();this._threadId.value=e,this._smartConsoleState.value="idle"});f(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const l=m(qa,{textToCopy:t.textContent});Ve(l,t)})});f(this,"getLastExecutionError",()=>{let e="";for(let t=this._logService.logs.length-1;t>=0;t--){const l=this._logService.logs[t];if(l.type==="stderr"){e=l.log;break}}return e});f(this,"getPreffixes",e=>{const t=[{role:"user",content:`If necessary to check, this is my current code: +var ke=Object.defineProperty;var be=(i,e,t)=>e in i?ke(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var f=(i,e,t)=>(be(i,typeof e!="symbol"?e+"":e,t),t);import{d as k,B as y,f as g,o,X as n,Z as T,R as C,eb as D,a as r,$ as O,D as ve,c as S,ej as Ze,u,w as p,aF as Z,bK as fe,b as m,cy as me,ec as G,aR as re,e as b,aV as z,eT as Ve,dk as Le,df as P,ea as B,g as K,eU as Ee,ee as ye,ef as Ie,ed as xe,J as se,W as _e,ag as He,r as ze,Y as Pe,d9 as Te,el as Be,em as Ne,Q as te,bS as X}from"./vue-router.3fd92176.js";import{u as ne}from"./uuid.06ef1e24.js";import{H as De,J as Fe,S as We,A as ee}from"./scripts.32887e06.js";import{u as Oe}from"./editor.519c2dc1.js";import{d as Re,e as je,v as Ge}from"./validations.0afef3f1.js";import{I as Je}from"./PhCopy.vue.0ae3f8ab.js";import{H as Ue}from"./PhCheckCircle.vue.d8163a77.js";import{I as Ke}from"./PhCopySimple.vue.992b99ff.js";import{G as he}from"./PhCaretRight.vue.f72488ac.js";import{B as qe}from"./Badge.bcc65740.js";import{G as Ye}from"./PhBug.vue.00bc4255.js";import{H as Qe}from"./PhQuestion.vue.129febdc.js";import{L as Xe}from"./LoadingOutlined.dad6ee6e.js";import{W as oe}from"./workspaces.b456ec6a.js";import{a as pe}from"./asyncComputed.295e9e03.js";import{u as e0}from"./polling.4e30c061.js";import{G as t0}from"./PhPencil.vue.a2604470.js";import{l as ae,R as $e,e as q,M as U}from"./toggleHighContrast.db48a34e.js";import{A as a0}from"./index.4fbbd10e.js";import{C as l0}from"./Card.0ce127d8.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="2ba9aed7-7b92-4787-ab9e-feda09569bdb",i._sentryDebugIdIdentifier="sentry-dbid-2ba9aed7-7b92-4787-ab9e-feda09569bdb")}catch{}})();const o0=["width","height","fill","transform"],s0={key:0},n0=r("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"},null,-1),r0=[n0],i0={key:1},u0=r("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"},null,-1),c0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),d0=[u0,c0],h0={key:2},p0=r("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"},null,-1),g0=[p0],v0={key:3},f0=r("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"},null,-1),m0=[f0],y0={key:4},_0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),H0=[_0],$0={key:5},w0=r("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"},null,-1),C0=[w0],A0={name:"PhBroom"},M0=k({...A0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",s0,r0)):s.value==="duotone"?(o(),n("g",i0,d0)):s.value==="fill"?(o(),n("g",h0,g0)):s.value==="light"?(o(),n("g",v0,m0)):s.value==="regular"?(o(),n("g",y0,H0)):s.value==="thin"?(o(),n("g",$0,C0)):C("",!0)],16,o0))}}),S0=["width","height","fill","transform"],k0={key:0},b0=r("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"},null,-1),Z0=[b0],V0={key:1},L0=r("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"},null,-1),E0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"},null,-1),I0=[L0,E0],x0={key:2},z0=r("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"},null,-1),P0=[z0],T0={key:3},B0=r("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"},null,-1),N0=[B0],D0={key:4},F0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"},null,-1),W0=[F0],O0={key:5},R0=r("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"},null,-1),j0=[R0],G0={name:"PhFolder"},J0=k({...G0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",k0,Z0)):s.value==="duotone"?(o(),n("g",V0,I0)):s.value==="fill"?(o(),n("g",x0,P0)):s.value==="light"?(o(),n("g",T0,N0)):s.value==="regular"?(o(),n("g",D0,W0)):s.value==="thin"?(o(),n("g",O0,j0)):C("",!0)],16,S0))}}),U0=["width","height","fill","transform"],K0={key:0},q0=r("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"},null,-1),Y0=[q0],Q0={key:1},X0=r("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"},null,-1),e1=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),t1=[X0,e1],a1={key:2},l1=r("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"},null,-1),o1=[l1],s1={key:3},n1=r("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"},null,-1),r1=[n1],i1={key:4},u1=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),c1=[u1],d1={key:5},h1=r("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"},null,-1),p1=[h1],g1={name:"PhPaperPlaneRight"},v1=k({...g1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",K0,Y0)):s.value==="duotone"?(o(),n("g",Q0,t1)):s.value==="fill"?(o(),n("g",a1,o1)):s.value==="light"?(o(),n("g",s1,r1)):s.value==="regular"?(o(),n("g",i1,c1)):s.value==="thin"?(o(),n("g",d1,p1)):C("",!0)],16,U0))}}),f1=["width","height","fill","transform"],m1={key:0},y1=r("path",{d:"M20,128A76.08,76.08,0,0,1,96,52h99l-3.52-3.51a12,12,0,1,1,17-17l24,24a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L195,76H96a52.06,52.06,0,0,0-52,52,12,12,0,0,1-24,0Zm204-12a12,12,0,0,0-12,12,52.06,52.06,0,0,1-52,52H61l3.52-3.51a12,12,0,1,0-17-17l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,1,0,17-17L61,204h99a76.08,76.08,0,0,0,76-76A12,12,0,0,0,224,116Z"},null,-1),_1=[y1],H1={key:1},$1=r("path",{d:"M224,64v64a64,64,0,0,1-64,64H32V128A64,64,0,0,1,96,64Z",opacity:"0.2"},null,-1),w1=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),C1=[$1,w1],A1={key:2},M1=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56h96V40a8,8,0,0,1,13.66-5.66l24,24a8,8,0,0,1,0,11.32l-24,24A8,8,0,0,1,192,88V72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H64V168a8,8,0,0,0-13.66-5.66l-24,24a8,8,0,0,0,0,11.32l24,24A8,8,0,0,0,64,216V200h96a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),S1=[M1],k1={key:3},b1=r("path",{d:"M26,128A70.08,70.08,0,0,1,96,58H209.51L195.76,44.24a6,6,0,0,1,8.48-8.48l24,24a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L209.51,70H96a58.07,58.07,0,0,0-58,58,6,6,0,0,1-12,0Zm198-6a6,6,0,0,0-6,6,58.07,58.07,0,0,1-58,58H46.49l13.75-13.76a6,6,0,0,0-8.48-8.48l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,0,0,8.48-8.48L46.49,198H160a70.08,70.08,0,0,0,70-70A6,6,0,0,0,224,122Z"},null,-1),Z1=[b1],V1={key:4},L1=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),E1=[L1],I1={key:5},x1=r("path",{d:"M28,128A68.07,68.07,0,0,1,96,60H214.34L197.17,42.83a4,4,0,0,1,5.66-5.66l24,24a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L214.34,68H96a60.07,60.07,0,0,0-60,60,4,4,0,0,1-8,0Zm196-4a4,4,0,0,0-4,4,60.07,60.07,0,0,1-60,60H41.66l17.17-17.17a4,4,0,0,0-5.66-5.66l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L41.66,196H160a68.07,68.07,0,0,0,68-68A4,4,0,0,0,224,124Z"},null,-1),z1=[x1],P1={name:"PhRepeat"},T1=k({...P1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",m1,_1)):s.value==="duotone"?(o(),n("g",H1,C1)):s.value==="fill"?(o(),n("g",A1,S1)):s.value==="light"?(o(),n("g",k1,Z1)):s.value==="regular"?(o(),n("g",V1,E1)):s.value==="thin"?(o(),n("g",I1,z1)):C("",!0)],16,f1))}}),B1=["width","height","fill","transform"],N1={key:0},D1=r("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"},null,-1),F1=[D1],W1={key:1},O1=r("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"},null,-1),R1=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),j1=[O1,R1],G1={key:2},J1=r("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"},null,-1),U1=[J1],K1={key:3},q1=r("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"},null,-1),Y1=[q1],Q1={key:4},X1=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),et=[X1],tt={key:5},at=r("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"},null,-1),lt=[at],ot={name:"PhStop"},st=k({...ot,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",N1,F1)):s.value==="duotone"?(o(),n("g",W1,j1)):s.value==="fill"?(o(),n("g",G1,U1)):s.value==="light"?(o(),n("g",K1,Y1)):s.value==="regular"?(o(),n("g",Q1,et)):s.value==="thin"?(o(),n("g",tt,lt)):C("",!0)],16,B1))}}),nt=["width","height","fill","transform"],rt={key:0},it=r("path",{d:"M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"},null,-1),ut=[it],ct={key:1},dt=r("path",{d:"M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),ht=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),pt=[dt,ht],gt={key:2},vt=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z"},null,-1),ft=[vt],mt={key:3},yt=r("path",{d:"M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z"},null,-1),_t=[yt],Ht={key:4},$t=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),wt=[$t],Ct={key:5},At=r("path",{d:"M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z"},null,-1),Mt=[At],St={name:"PhTerminalWindow"},kt=k({...St,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",rt,ut)):s.value==="duotone"?(o(),n("g",ct,pt)):s.value==="fill"?(o(),n("g",gt,ft)):s.value==="light"?(o(),n("g",mt,_t)):s.value==="regular"?(o(),n("g",Ht,wt)):s.value==="thin"?(o(),n("g",Ct,Mt)):C("",!0)],16,nt))}}),bt=["width","height","fill","transform"],Zt={key:0},Vt=r("path",{d:"M243.78,156.53l-12-96A28,28,0,0,0,204,36H32A20,20,0,0,0,12,56v88a20,20,0,0,0,20,20H72.58l36.69,73.37A12,12,0,0,0,120,244a44.05,44.05,0,0,0,44-44V188h52a28,28,0,0,0,27.78-31.47ZM68,140H36V60H68Zm151,22.65a4,4,0,0,1-3,1.35H152a12,12,0,0,0-12,12v24a20,20,0,0,1-13.18,18.8L92,149.17V60H204a4,4,0,0,1,4,3.5l12,96A4,4,0,0,1,219,162.65Z"},null,-1),Lt=[Vt],Et={key:1},It=r("path",{d:"M80,48V152H32a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),xt=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),zt=[It,xt],Pt={key:2},Tt=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"},null,-1),Bt=[Tt],Nt={key:3},Dt=r("path",{d:"M237.83,157.27l-12-96A22,22,0,0,0,204,42H32A14,14,0,0,0,18,56v88a14,14,0,0,0,14,14H76.29l38.34,76.68A6,6,0,0,0,120,238a38,38,0,0,0,38-38V182h58a22,22,0,0,0,21.83-24.73ZM74,146H32a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H74Zm149.5,20.62A9.89,9.89,0,0,1,216,170H152a6,6,0,0,0-6,6v24a26,26,0,0,1-22.42,25.75L86,150.58V54H204a10,10,0,0,1,9.92,8.76l12,96A9.89,9.89,0,0,1,223.5,166.62Z"},null,-1),Ft=[Dt],Wt={key:4},Ot=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),Rt=[Ot],jt={key:5},Gt=r("path",{d:"M235.85,157.52l-12-96A20,20,0,0,0,204,44H32A12,12,0,0,0,20,56v88a12,12,0,0,0,12,12H77.53l38.89,77.79A4,4,0,0,0,120,236a36,36,0,0,0,36-36V180h60a20,20,0,0,0,19.85-22.48ZM76,148H32a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H76Zm149,19.94a12,12,0,0,1-9,4.06H152a4,4,0,0,0-4,4v24a28,28,0,0,1-25.58,27.9L84,151.06V52H204a12,12,0,0,1,11.91,10.51l12,96A12,12,0,0,1,225,167.94Z"},null,-1),Jt=[Gt],Ut={name:"PhThumbsDown"},Kt=k({...Ut,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",Zt,Lt)):s.value==="duotone"?(o(),n("g",Et,zt)):s.value==="fill"?(o(),n("g",Pt,Bt)):s.value==="light"?(o(),n("g",Nt,Ft)):s.value==="regular"?(o(),n("g",Wt,Rt)):s.value==="thin"?(o(),n("g",jt,Jt)):C("",!0)],16,bt))}}),qt=["width","height","fill","transform"],Yt={key:0},Qt=r("path",{d:"M237,77.47A28,28,0,0,0,216,68H164V56a44.05,44.05,0,0,0-44-44,12,12,0,0,0-10.73,6.63L72.58,92H32a20,20,0,0,0-20,20v88a20,20,0,0,0,20,20H204a28,28,0,0,0,27.78-24.53l12-96A28,28,0,0,0,237,77.47ZM36,116H68v80H36ZM220,96.5l-12,96a4,4,0,0,1-4,3.5H92V106.83L126.82,37.2A20,20,0,0,1,140,56V80a12,12,0,0,0,12,12h64a4,4,0,0,1,4,4.5Z"},null,-1),Xt=[Qt],ea={key:1},ta=r("path",{d:"M80,104V208H32a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),aa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),la=[ta,aa],oa={key:2},sa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"},null,-1),na=[sa],ra={key:3},ia=r("path",{d:"M232.49,81.44A22,22,0,0,0,216,74H158V56a38,38,0,0,0-38-38,6,6,0,0,0-5.37,3.32L76.29,98H32a14,14,0,0,0-14,14v88a14,14,0,0,0,14,14H204a22,22,0,0,0,21.83-19.27l12-96A22,22,0,0,0,232.49,81.44ZM30,200V112a2,2,0,0,1,2-2H74v92H32A2,2,0,0,1,30,200ZM225.92,97.24l-12,96A10,10,0,0,1,204,202H86V105.42l37.58-75.17A26,26,0,0,1,146,56V80a6,6,0,0,0,6,6h64a10,10,0,0,1,9.92,11.24Z"},null,-1),ua=[ia],ca={key:4},da=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),ha=[da],pa={key:5},ga=r("path",{d:"M231,82.76A20,20,0,0,0,216,76H156V56a36,36,0,0,0-36-36,4,4,0,0,0-3.58,2.21L77.53,100H32a12,12,0,0,0-12,12v88a12,12,0,0,0,12,12H204a20,20,0,0,0,19.85-17.52l12-96A20,20,0,0,0,231,82.76ZM76,204H32a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H76ZM227.91,97.49l-12,96A12,12,0,0,1,204,204H84V104.94L122.42,28.1A28,28,0,0,1,148,56V80a4,4,0,0,0,4,4h64a12,12,0,0,1,11.91,13.49Z"},null,-1),va=[ga],fa={name:"PhThumbsUp"},ma=k({...fa,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",Yt,Xt)):s.value==="duotone"?(o(),n("g",ea,la)):s.value==="fill"?(o(),n("g",oa,na)):s.value==="light"?(o(),n("g",ra,ua)):s.value==="regular"?(o(),n("g",ca,ha)):s.value==="thin"?(o(),n("g",pa,va)):C("",!0)],16,qt))}}),ya=["width","height","fill","transform"],_a={key:0},Ha=r("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"},null,-1),$a=[Ha],wa={key:1},Ca=r("path",{d:"M232,56v64L168,56Z",opacity:"0.2"},null,-1),Aa=r("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"},null,-1),Ma=[Ca,Aa],Sa={key:2},ka=r("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"},null,-1),ba=[ka],Za={key:3},Va=r("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"},null,-1),La=[Va],Ea={key:4},Ia=r("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"},null,-1),xa=[Ia],za={key:5},Pa=r("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"},null,-1),Ta=[Pa],Ba={name:"PhTrendUp"},Na=k({...Ba,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),c=y("color","currentColor"),d=y("mirrored",!1),s=g(()=>{var a;return(a=e.weight)!=null?a:t}),h=g(()=>{var a;return(a=e.size)!=null?a:l}),_=g(()=>{var a;return(a=e.color)!=null?a:c}),v=g(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,$)=>(o(),n("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:_.value,transform:v.value},a.$attrs),[T(a.$slots,"default"),s.value==="bold"?(o(),n("g",_a,$a)):s.value==="duotone"?(o(),n("g",wa,Ma)):s.value==="fill"?(o(),n("g",Sa,ba)):s.value==="light"?(o(),n("g",Za,La)):s.value==="regular"?(o(),n("g",Ea,xa)):s.value==="thin"?(o(),n("g",za,Ta)):C("",!0)],16,ya))}}),Da={class:"editor-layout"},Fa={class:"layout-left"},Wa={class:"layout-right"},Oa=k({__name:"EditorLayout",props:{fullWidth:{type:Boolean}},setup(i){return(e,t)=>(o(),n("div",Da,[r("section",Fa,[T(e.$slots,"left",{},void 0,!0)]),r("section",Wa,[T(e.$slots,"right",{},void 0,!0)])]))}});const J2=O(Oa,[["__scopeId","data-v-74db9fe9"]]);class we{constructor(){f(this,"logState",ve({log:[]}));f(this,"_listeners",{})}static create(){return new we}get logs(){return this.logState.log}log(e,t){if(e.type!=="restart"&&e.log.trim()==="")return;const l=t?this.logs.find(c=>c.id===t):null;return l?(l.type==="stderr"&&e.type==="stderr"&&(e.log=l.log+` +`+e.log),Object.assign(l,e)):this.logs.push({...e,id:t||ne()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=ne();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Ra=k({__name:"PathInput",props:{runtime:{}},setup(i){const e=i,t=()=>{const l=Re(e.runtime.path);l&&l!==e.runtime.path&&(e.runtime.path=l)};return(l,c)=>(o(),S(u(fe),{value:l.runtime.path,"onUpdate:value":c[0]||(c[0]=d=>l.runtime.path=d),type:"text",onBlur:t},Ze({_:2},[l.runtime instanceof u(De)?{name:"addonBefore",fn:p(()=>[Z(" https://[your-subdomain].abstra.app/_hooks/ ")]),key:"0"}:{name:"addonBefore",fn:p(()=>[Z(" https://[your-subdomain].abstra.app/ ")]),key:"1"}]),1032,["value"]))}}),ja={key:1},Ga=k({__name:"RuntimeCommonSettings",props:{runtime:{}},setup(i){const e=ve({pathError:null});return(t,l)=>(o(),n(re,null,[t.runtime instanceof u(Fe)||t.runtime instanceof u(We)?C("",!0):(o(),S(u(me),{key:0,label:"URL path"},{default:p(()=>[m(Ra,{runtime:t.runtime},null,8,["runtime"])]),_:1})),e.pathError?(o(),n("div",ja,G(e.pathError),1)):C("",!0)],64))}});const U2=O(Ga,[["__scopeId","data-v-18856675"]]),Ja="/assets/typing.c1831e40.svg";class Ua{constructor(e,t){f(this,"ws",null);f(this,"selfClosed",!1);this.onMessage=e,this.stageId=t}get url(){return"/_editor/api/stdio/listen"}handleMessage(e){const t=JSON.parse(e.data);t.stage_id===this.stageId&&this.onMessage(t)}handleClose(e){this.selfClosed||this.reset()}async close(){if(!!this.ws){try{this.ws.close()}catch{console.warn("already closed")}this.ws=null,this.selfClosed=!0}}async reset(){await this.close(),await this.connect()}async connect(){return await new Promise(e=>{this.ws=new WebSocket(this.url),this.ws.onopen=()=>e(),this.ws.onclose=t=>this.handleClose(t),this.ws.onmessage=t=>this.handleMessage(t)})}}const Ka=k({__name:"SmartConsoleCopy",props:{textToCopy:{}},setup(i){const e=i,t=b(!1),l=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},c=g(()=>t.value?"Copied!":"Copy to clipboard");return(d,s)=>(o(),S(u(z),null,{title:p(()=>[Z(G(c.value),1)]),default:p(()=>[r("div",{class:"copy-button",onClick:l},[t.value?(o(),S(u(Ue),{key:1,color:"#fff",size:"22"})):(o(),S(u(Ke),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const qa=O(Ka,[["__scopeId","data-v-cbb7de67"]]);class Ya{constructor(e,t){f(this,"_threadId");f(this,"_input");f(this,"_badgeState");f(this,"_smartConsoleState");f(this,"_logService");f(this,"_stageType");f(this,"_cachedFileContent",null);f(this,"setupThread",async()=>{this._smartConsoleState.value="creating-thread";const{thread:e}=await ee.createThread();this._threadId.value=e,this._smartConsoleState.value="idle"});f(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const l=m(qa,{textToCopy:t.textContent});Ve(l,t)})});f(this,"getLastExecutionError",()=>{let e="";for(let t=this._logService.logs.length-1;t>=0;t--){const l=this._logService.logs[t];if(l.type==="stderr"){e=l.log;break}}return e});f(this,"getPreffixes",e=>{const t=[{role:"user",content:`If necessary to check, this is my current code: ${e||"No code found"} . Otherwise, just IGNORE it. `}],l=this.getLastExecutionError();return l.length&&t.push({role:"user",content:`If necessary to check, I got this error during execution: ${l}. Otherwise, just IGNORE it.`}),t});f(this,"buildMessages",(e,t)=>{const l=this.getPreffixes(e),c=[{role:"system",content:"The Python code and its possible errors during execution are sent by default, but it should be IGNORED if the main question is not about them."},...l,{role:"user",content:this._input.value}];return t&&c.push({role:"user",content:"The last answer was bad and you must regenerate it differently."}),c});f(this,"send",async(e,t=!1)=>{this._cachedFileContent=e,this._logService.log({type:"ai-input",log:this._input.value}),this._smartConsoleState.value="processing";const l=this.buildMessages(e,t);try{const c=ne();let d="";const s=ee.sendMessage(l,this._stageType,this._threadId.value,this.isIdle.bind(this));for await(const h of s){if(this.isIdle())break;this._smartConsoleState.value==="processing"&&(this._smartConsoleState.value="answering"),d+=h,this._logService.log({type:"ai-output",log:d},c)}this._input.value=""}catch(c){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Plese try again later."}),console.error(c),Le(c)}finally{this._smartConsoleState.value="idle",this.renderCopyButtons()}});f(this,"cancel",()=>{!this._threadId.value||(ee.cancelAllRuns(this._threadId.value),this._smartConsoleState.value="idle")});f(this,"isProcessing",()=>this._smartConsoleState.value==="processing");f(this,"isAnswering",()=>this._smartConsoleState.value==="answering");f(this,"isIdle",()=>this._smartConsoleState.value==="idle");f(this,"isCreatingThread",()=>this._smartConsoleState.value==="creating-thread");f(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});f(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});f(this,"setInput",e=>{this._input.value=e||""});f(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send(this._cachedFileContent,!0)});f(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code: ${e} - And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send(null)});f(this,"vote",async(e,t)=>{const l=this._logService.logs[e],c=this._logService.logs[e-1],d=this._logService.logs.slice(0,e-1);await ee.vote(t,c,l,d)});this._stageType=t,this._logService=e,this._threadId=Z(null),this._input=Z(""),this._badgeState=Z({type:"seen"}),this._smartConsoleState=Z("idle")}init(){this.setupThread(),this.renderCopyButtons()}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}const Qa={class:"toggle-button"},Xa=k({__name:"SmartConsoleHeader",props:{controller:{},open:{type:Boolean}},emits:["toggle-console"],setup(i,{emit:e}){return(t,l)=>(o(),S(u(P),{class:"header",justify:"space-between"},{default:p(()=>[m(u(P),{align:"center",gap:"middle"},{default:p(()=>[m(u(kt),{size:"20"}),b(" Smart Console ")]),_:1}),m(u(z),{placement:"left","mouse-enter-delay":.5,title:t.open?"Hide Smart Console":"Show Smart Console"},{default:p(()=>{var c,d,s;return[r("div",Qa,[((c=t.controller)==null?void 0:c.badgeState.type)==="unseen"?(o(),S(u(qe),{key:0,count:(d=t.controller)==null?void 0:d.badgeState.count,"number-style":{backgroundColor:((s=t.controller)==null?void 0:s.badgeState.severity)==="error"?"#e03636":"#606060"}},{default:p(()=>[m(u(he),{class:B(["icon",{open:t.open}]),onClick:l[0]||(l[0]=h=>e("toggle-console"))},null,8,["class"])]),_:1},8,["count","number-style"])):(o(),S(u(he),{key:1,class:B(["icon",{open:t.open}]),onClick:l[1]||(l[1]=h=>e("toggle-console"))},null,8,["class"]))])]}),_:1},8,["title"])]),_:1}))}});const e2=O(Xa,[["__scopeId","data-v-63216dee"]]),t2=["contenteditable","onKeydown"],a2=k({__name:"SmartConsoleInput",props:{controller:{},workspace:{},stage:{}},setup(i){const e=i,t=Z(!1),l=Z(null),c=g(()=>e.controller.isCreatingThread()),d=g(()=>e.controller.isProcessing()||e.controller.isAnswering()),s=()=>{var v;!e.controller||e.controller.setInput((v=l.value)==null?void 0:v.innerText)},h=v=>{if(v.preventDefault(),v.shiftKey){document.execCommand("insertLineBreak");return}_()};K(()=>e.controller.isCreatingThread(),()=>{!e.controller.isCreatingThread()&&(t.value=!1)});const _=async()=>{var a;if(!e.controller)return;if(e.controller.isCreatingThread()){t.value=!0;return}e.controller.setInput((a=l.value)==null?void 0:a.innerText),l.value.innerText="";let v=null;e.workspace&&e.stage&&(v=await e.workspace.readFile(e.stage.file)),await e.controller.send(v)};return(v,a)=>(o(),n("div",{class:B(["input",{disabled:d.value}])},[r("div",{ref_key:"inputRef",ref:l,class:"input-text",contenteditable:!d.value,onKeydown:Ee(h,["enter"]),onInput:s},null,40,t2),d.value?(o(),S(u(st),{key:0,size:18,class:"icon",onClick:a[0]||(a[0]=$=>{var E;return(E=v.controller)==null?void 0:E.cancel()})})):C("",!0),m(u(z),{title:"Just a second, we're setting up...",open:t.value,placement:"topRight"},{default:p(()=>[d.value?C("",!0):(o(),S(u(v1),{key:0,size:18,class:B(["icon",[{disabled:v.controller.input.length===0||c.value}]]),onClick:_},null,8,["class"]))]),_:1},8,["open"])],2))}});const l2=O(a2,[["__scopeId","data-v-980f1e3a"]]),o2=["onClick"],s2={class:"icon"},n2={class:"title"},r2=k({__name:"SmartSuggestions",props:{controller:{},workspace:{},stage:{}},setup(i){const e=i,t=g(()=>{var d;return(d=e.controller)==null?void 0:d.isCreatingThread()}),l=async d=>{if(!e.controller||e.controller.isCreatingThread())return;e.controller.setInput(d);let s=null;e.workspace&&e.stage&&(s=await e.workspace.readFile(e.stage.file)),await e.controller.send(s)},c=[{title:"Why is this not working?!",icon:Ye},{title:"How can I improve this code?",icon:Na},{title:"What is this code doing?",icon:Qe}];return(d,s)=>(o(),S(u(P),{class:"suggestions-container",gap:"middle",justify:"center"},{default:p(()=>[(o(),n(re,null,ye(c,h=>r("div",{key:h.title,class:B(["suggestion",{disabled:t.value}]),onClick:_=>l(h.title)},[r("div",s2,[(o(),S(Ie(h.icon),{size:24}))]),r("div",n2,G(h.title),1)],10,o2)),64))]),_:1}))}});const i2=O(r2,[["__scopeId","data-v-2ca3db5f"]]),u2=i=>(Be("data-v-31cf439e"),i=i(),Ne(),i),c2=u2(()=>r("div",{class:"entry ai-output"}," Hello there! I'm both an output console and AI assistant. You can ask me anything. ",-1)),d2={key:0},h2={key:1,class:"local-entry"},p2={key:1,class:"typing-img",src:Ja},g2=k({__name:"SmartConsole",props:{logService:{},workspace:{},stageType:{},stage:{}},setup(i,{expose:e}){const t=i,l=xe(),c=Oe(),d=Z(null),s=Z(!1),h=Z(400),_=Z(!1),v=new Ua(H=>t.logService.log(H),t.stage.id),a=new Ya(t.logService,t.stageType),$=Z([]);K(()=>t.logService.logs,()=>{$.value.push(null)});const E=(H,L)=>{$.value[H]||($.value[H]=L,a.vote(H,L))};K(()=>{var H;return(H=c.cloudProject)==null?void 0:H.id},async H=>H&&a.setupThread());const V=()=>{t.logService.clear(),a.setupThread()},R=g(()=>({height:`${h.value}px`}));async function J(){var H;if(s.value=!s.value,s.value){if(a.setSeen(),await se(),!d.value)return;d.value.scrollTop=(H=d.value)==null?void 0:H.scrollHeight}}K(l,()=>t.logService.clear()),e({closeConsole:()=>s.value=!1,fixJson:async(H,L)=>{s.value=!0,await a.fixJson(H,L)}}),t.logService.listen(async H=>{s.value||a.setUnseen(H),H.type!=="restart"&&(await se(),d.value&&(d.value.scrollTop=d.value.scrollHeight))});const Y=H=>{!_.value||(h.value=document.body.clientHeight-H.clientY)},F=()=>_.value=!1;return _e(async()=>{document.addEventListener("mousemove",Y),document.addEventListener("mouseup",F),await v.connect(),a.init()}),He(async()=>{document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",F),await v.close()}),(H,L)=>{const M=ze("Markdown");return o(),S(u(P),{vertical:""},{default:p(()=>[m(e2,{controller:u(a),open:s.value,onToggleConsole:J},null,8,["controller","open"]),s.value?(o(),S(u(P),{key:0,class:"terminal",style:Pe(R.value),vertical:""},{default:p(()=>[r("div",{class:"resize-handler",onMousedown:L[0]||(L[0]=I=>_.value=!0)},null,32),m(u(P),{class:"cli"},{default:p(()=>[m(u(P),{class:"left",vertical:""},{default:p(()=>[r("div",{ref_key:"entriesContainer",ref:d,class:"entries"},[c2,(o(!0),n(re,null,ye(H.logService.logs,(I,x)=>(o(),n("div",{key:x,class:B([I.type,"entry"])},[I.type==="ai-output"?(o(),n("div",d2,[I.type==="ai-output"?(o(),S(M,{key:0,source:I.log},null,8,["source"])):C("",!0),m(u(P),{gap:"6",class:"icons"},{default:p(()=>[m(u(z),{placement:"top",title:"Copy"},{default:p(()=>[m(u(Te),{copyable:{text:I.log}},{copyableIcon:p(()=>[m(u(Je),{size:18,class:"icon"})]),_:2},1032,["copyable"])]),_:2},1024),x===H.logService.logs.length-1?(o(),S(u(z),{key:0,placement:"top",title:"Regenerate"},{default:p(()=>[m(u(T1),{size:18,onClick:L[1]||(L[1]=Q=>u(a).regenerateLast())})]),_:1})):C("",!0),m(u(z),{placement:"top",title:"Good response"},{default:p(()=>[m(u(ma),{size:18,class:B({filled:$.value[x]==="good",disabled:$.value[x]==="bad"}),onClick:Q=>E(x,"good")},null,8,["class","onClick"])]),_:2},1024),m(u(z),{placement:"top",title:"Bad response"},{default:p(()=>[m(u(Kt),{size:18,class:B({filled:$.value[x]==="bad",disabled:$.value[x]==="good"}),onClick:Q=>E(x,"bad")},null,8,["class","onClick"])]),_:2},1024)]),_:2},1024)])):(o(),n("div",h2,G(I.type==="restart"?"-- restarted --":I.log),1))],2))),128))],512),H.logService.logs.length?C("",!0):(o(),S(i2,{key:0,controller:u(a),workspace:H.workspace,stage:H.stage},null,8,["controller","workspace","stage"])),m(l2,{controller:u(a),workspace:H.workspace,stage:H.stage},null,8,["controller","workspace","stage"])]),_:1}),m(u(P),{class:"right",vertical:"",justify:"space-between",align:"center"},{default:p(()=>{var I,x;return[m(u(z),{placement:"left",title:"Start new conversation"},{default:p(()=>[m(u(M0),{size:20,class:"broom-icon",onClick:V})]),_:1}),(I=u(a))!=null&&I.isProcessing()?(o(),S(u(Xe),{key:0,style:{color:"#aaa","font-size":"18px"}})):C("",!0),(x=u(a))!=null&&x.isAnswering()?(o(),n("img",p2)):C("",!0)]}),_:1})]),_:1})]),_:1},8,["style"])):C("",!0)]),_:1})}}});const K2=O(g2,[["__scopeId","data-v-31cf439e"]]);class ie{static async getAutocomplete(e){try{return await(await fetch("/_editor/api/pysa/autocomplete",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getHelp(e){try{return await(await fetch("/_editor/api/pysa/help",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getLint(e){try{return await(await fetch("/_editor/api/pysa/lint",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}}let le={};function v2(i){return i in le?"\n\n```python\n"+i+" = "+le[i]+"\n```":""}function f2(i){switch(i){case"error":return U.Error;case"warning":return U.Warning;case"info":return U.Info;case"hint":return U.Hint;default:return U.Error}}ae.registerHoverProvider("python",{async provideHover(i,e){const t=i.getWordAtPosition(e);return t?{contents:(await ie.getHelp({code:i.getValue(),line:e.lineNumber,column:e.column})).map(c=>({value:c.docstring+v2(c.name)})),range:new $e(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn)}:null}});ae.registerCompletionItemProvider("python",{async provideCompletionItems(i,e){const t=await ie.getAutocomplete({code:i.getValue(),line:e.lineNumber,column:e.column-1}),l=i.getWordUntilPosition(e);return{suggestions:t.map(c=>({label:c.name,kind:ae.CompletionItemKind.Function,documentation:c.documentation,insertText:c.name,insertTextRules:ae.CompletionItemInsertTextRule.InsertAsSnippet,range:{startLineNumber:e.lineNumber,endLineNumber:e.lineNumber,startColumn:l.startColumn,endColumn:l.endColumn}}))}}});const ge=i=>{ie.getLint({code:i.getValue(),line:0,column:0}).then(e=>{q.setModelMarkers(i,"python",e.map(t=>({startLineNumber:t.line,startColumn:t.column,endLineNumber:t.until_line,endColumn:t.until_column,message:t.message,severity:f2(t.severity)})))})},m2=(i,e,t={})=>{var a;const l=q.create(i,{language:"python",value:e,minimap:{enabled:!1},readOnly:(a=t.readOnly)!=null?a:!1,contextmenu:!t.readOnly,automaticLayout:!t.readOnly,tabSize:4,fixedOverflowWidgets:!0,theme:t.theme?t.theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:t.readOnly?0:5,scrollBeyondLastLine:!t.readOnly,renderLineHighlight:t.readOnly?"none":"all",scrollbar:{useShadows:!1,alwaysConsumeMouseWheel:!1}}),c=l.getContribution("editor.contrib.messageController");l.onDidAttemptReadOnlyEdit(()=>{c.showMessage("Cannot edit during preview execution",l.getPosition())});const d=l.createDecorationsCollection([]),s=($,E)=>{d.set($.map(V=>({range:new $e(V.lineno,1,V.lineno,1),options:{isWholeLine:!0,className:E}}))),le=$.reduce((V,R)=>({...V,...R.locals}),{})},h=($,E)=>V=>{const R=V.filter(J=>J.filename.endsWith(E));s(R,$)},_=()=>{d.clear(),le={}},v=$=>{l.updateOptions({readOnly:$})};return ge(l.getModel()),l.onDidChangeModelContent(()=>{ge(l.getModel())}),{editor:l,highlight:h,clearHighlights:_,setReadOnly:v}},y2=(i,e,t)=>{const l=q.createModel(e),c=q.createModel(t),d=q.createDiffEditor(i,{minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,renderWhitespace:"none",guides:{indentation:!1},fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:0,scrollBeyondLastLine:!1,renderLineHighlight:"none"});return d.setModel({original:l,modified:c}),{diffEditor:d}};class _2{constructor(e,t){f(this,"_script");f(this,"_localEditorCode");f(this,"_monacoEditor");f(this,"_diffEditor");f(this,"_viewMode");f(this,"_alertMessage");f(this,"_conflictingChanges");this._localEditorCode=e,this._script=t,this._monacoEditor=null,this._diffEditor=null,this._viewMode=te("editor"),this._alertMessage=te(""),this._conflictingChanges=te(!1)}get alertMessage(){return this._alertMessage.value}set alertMessage(e){this._alertMessage.value=e}get conflictingChanges(){return this._conflictingChanges.value}set conflictingChanges(e){this._conflictingChanges.value=e}get viewMode(){return this._viewMode.value}set viewMode(e){this._viewMode.value=e}get abstraIDECode(){return this._script.codeContent}get localEditorCode(){return this._localEditorCode}set localEditorCode(e){this._localEditorCode=e}set monacoEditor(e){this._monacoEditor=e}set diffEditor(e){this._diffEditor=e}finishPreview(){var e;this._viewMode.value="editor",this._script.codeContent=this._localEditorCode,(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.alertMessage=""}updateCodeWhileEditing(e){var c;const t=e!==this._localEditorCode;if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1;return}const l=!this._script.hasChanges("code_content");if(l){(c=this._monacoEditor)==null||c.setValue(e),this._script.codeContent=e,this._script.updateInitialState("code_content",e);return}if(!l&&t){this.alertMessage="You have conflicting changes with your local editor code",this.conflictingChanges=!0;return}}updateCodeWhileDiff(e){var t,l;if(e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1,this.viewMode="editor",this._localEditorCode=e;return}if(e!==this._localEditorCode){(l=(t=this._diffEditor)==null?void 0:t.getModel())==null||l.modified.setValue(e),this._localEditorCode=e;return}}updateCodeWhilePreview(e){if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="";return}this.alertMessage="The changes on your code will be shown after the preview stops running"}updateCode(e){switch(this._viewMode.value){case"editor":return this.updateCodeWhileEditing(e);case"diff":return this.updateCodeWhileDiff(e);case"preview":return this.updateCodeWhilePreview(e)}}keepAbstraIDECode(){var e;(e=this._monacoEditor)==null||e.setValue(this._script.codeContent),this._script.save("code_content"),this._script.updateInitialState("code_content",this._script.codeContent),this._localEditorCode=this._script.codeContent,this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}keepLocalEditor(){var e;(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}}const H2={class:"source-code-container"},$2={class:"code-container"},w2={key:0,class:"not-found-container"},C2=k({__name:"SourceCode",props:{script:{},workspace:{}},emits:["update-file"],setup(i,{expose:e,emit:t}){const l=i,c=()=>{!l.script.file||oe.openFile(l.script.file)},d=()=>{M.value.viewMode="diff",Se()},s=Z(null),h=Z(null);let _,v,a,$;const{result:E}=pe(()=>fetch("/_editor/api/workspace/root").then(w=>w.text())),V=Z(l.script.file);K(()=>l.script.file,()=>V.value=l.script.file);const{result:R,refetch:J}=pe(()=>oe.checkFile(V.value)),Y=()=>{F.value.valid?t("update-file",je(V.value)):t("update-file",V.value),J()},F=g(()=>{var A;const w=Ge(V.value);return w.valid?((A=R.value)==null?void 0:A.exists)&&l.script.hasChanges("file")?{valid:!0,help:"This file already exists"}:l.script.hasChanges("file")?{valid:!0,help:"The original file will be renamed"}:w:w}),H=()=>{!l.workspace||!E.value||oe.openFile(".")},L=Z(!1),M=te(null),I=async()=>{var A;if(!l.script.file)return;const w=await l.workspace.readFile(l.script.file);if(w===null){L.value=!0;return}L.value=!1,(A=M.value)==null||A.updateCode(w)},{startPolling:x,endPolling:Q}=e0({task:I});_e(()=>{Me(),x()}),He(()=>{Q()});const Ce=()=>{$(!0),M.value.viewMode="preview"},Ae=(w,A)=>{if(A)return a("error-line",l.script.file)(w);a("executing-line",l.script.file)(w)},Me=async()=>{await se(),l.workspace.readFile(l.script.file).then(w=>{const A=w!=null?w:"";l.script.codeContent=A,l.script.updateInitialState("code_content",A),M.value=new _2(A,l.script);const N=m2(s.value,A);v=N.clearHighlights,a=N.highlight,$=N.setReadOnly,_=N.editor,M.value.monacoEditor=_,_.onDidChangeModelContent(()=>{l.script.codeContent=_.getValue()})})},Se=async()=>{const w=await l.workspace.readFile(l.script.file);if(!w)return;const A=l.script.codeContent,N=y2(h.value,A,w);M.value.diffEditor=N.diffEditor};return e({startPreviewMode:Ce,setHighlight:Ae,restartEditor:()=>{var w;v(),$(!1),(w=M.value)==null||w.finishPreview()},updateLocalEditorCode:w=>{M.value.localEditorCode=w}}),(w,A)=>{var N,ue,ce,de;return o(),n("div",H2,[m(u(me),{"validate-status":F.value.valid?"success":"error",help:F.value.valid?F.value.help:F.value.reason,class:"file-input"},{default:p(()=>[m(u(fe),{value:w.script.file,"onUpdate:value":A[0]||(A[0]=j=>w.script.file=j),onBlur:Y},{addonBefore:p(()=>[u(E)?(o(),n("span",{key:0,class:"clickable",onClick:H},[m(u(z),{placement:"bottomLeft","overlay-style":{maxWidth:"none"}},{title:p(()=>[b(G(u(E)),1)]),default:p(()=>[m(u(J0),{size:"22"})]),_:1})])):C("",!0)]),addonAfter:p(()=>[r("span",{class:"clickable",onClick:c},[b(" Open in editor "),m(u(t0),{size:"20"})])]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),(N=M.value)!=null&&N.alertMessage?(o(),S(u(a0),{key:0,type:"warning","show-icon":""},{message:p(()=>{var j;return[b(G((j=M.value)==null?void 0:j.alertMessage),1)]}),action:p(()=>[M.value.conflictingChanges&&M.value.viewMode!=="diff"?(o(),S(u(P),{key:0,gap:"small"},{default:p(()=>[m(u(X),{type:"primary",onClick:d},{default:p(()=>[b("Compare")]),_:1}),m(u(z),null,{title:p(()=>[b("Keep the local editor version")]),default:p(()=>[m(u(X),{onClick:A[1]||(A[1]=j=>{var W;return(W=M.value)==null?void 0:W.keepLocalEditor()})},{default:p(()=>[b("Discard")]),_:1})]),_:1})]),_:1})):C("",!0),M.value.conflictingChanges&&M.value.viewMode==="diff"?(o(),S(u(P),{key:1,gap:"small"},{default:p(()=>[m(u(z),null,{title:p(()=>[b("Keep your current changes")]),default:p(()=>[m(u(X),{onClick:A[2]||(A[2]=j=>{var W;return(W=M.value)==null?void 0:W.keepAbstraIDECode()})},{default:p(()=>[b("Keep left")]),_:1})]),_:1}),m(u(z),null,{title:p(()=>[b("Keep the local editor version")]),default:p(()=>[m(u(X),{onClick:A[3]||(A[3]=j=>{var W;return(W=M.value)==null?void 0:W.keepLocalEditor()})},{default:p(()=>[b("Keep right")]),_:1})]),_:1})]),_:1})):C("",!0)]),_:1})):C("",!0),r("div",$2,[L.value?(o(),n("div",w2,[m(u(l0),null,{title:p(()=>[b("File not found")]),_:1})])):C("",!0),r("div",{id:"code",ref_key:"codeComponent",ref:s,class:B(["monaco-element",{hide:((ue=M.value)==null?void 0:ue.viewMode)==="diff",blur:L.value}])},null,2)]),((ce=M.value)==null?void 0:ce.viewMode)==="diff"?(o(),n("div",{key:1,id:"code",ref_key:"codeDiffComponent",ref:h,class:B(["monaco-element",{hide:((de=M.value)==null?void 0:de.viewMode)!=="diff"}])},null,2)):C("",!0)])}}});const q2=O(C2,[["__scopeId","data-v-50a929bf"]]);export{J2 as E,st as I,we as L,U2 as R,K2 as S,q2 as a}; -//# sourceMappingURL=SourceCode.493d1c63.js.map + And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send(null)});f(this,"vote",async(e,t)=>{const l=this._logService.logs[e],c=this._logService.logs[e-1],d=this._logService.logs.slice(0,e-1);await ee.vote(t,c,l,d)});this._stageType=t,this._logService=e,this._threadId=b(null),this._input=b(""),this._badgeState=b({type:"seen"}),this._smartConsoleState=b("idle")}init(){this.setupThread(),this.renderCopyButtons()}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}const Qa={class:"toggle-button"},Xa=k({__name:"SmartConsoleHeader",props:{controller:{},open:{type:Boolean}},emits:["toggle-console"],setup(i,{emit:e}){return(t,l)=>(o(),S(u(P),{class:"header",justify:"space-between"},{default:p(()=>[m(u(P),{align:"center",gap:"middle"},{default:p(()=>[m(u(kt),{size:"20"}),Z(" Smart Console ")]),_:1}),m(u(z),{placement:"left","mouse-enter-delay":.5,title:t.open?"Hide Smart Console":"Show Smart Console"},{default:p(()=>{var c,d,s;return[r("div",Qa,[((c=t.controller)==null?void 0:c.badgeState.type)==="unseen"?(o(),S(u(qe),{key:0,count:(d=t.controller)==null?void 0:d.badgeState.count,"number-style":{backgroundColor:((s=t.controller)==null?void 0:s.badgeState.severity)==="error"?"#e03636":"#606060"}},{default:p(()=>[m(u(he),{class:B(["icon",{open:t.open}]),onClick:l[0]||(l[0]=h=>e("toggle-console"))},null,8,["class"])]),_:1},8,["count","number-style"])):(o(),S(u(he),{key:1,class:B(["icon",{open:t.open}]),onClick:l[1]||(l[1]=h=>e("toggle-console"))},null,8,["class"]))])]}),_:1},8,["title"])]),_:1}))}});const e2=O(Xa,[["__scopeId","data-v-63216dee"]]),t2=["contenteditable","onKeydown"],a2=k({__name:"SmartConsoleInput",props:{controller:{},workspace:{},stage:{}},setup(i){const e=i,t=b(!1),l=b(null),c=g(()=>e.controller.isCreatingThread()),d=g(()=>e.controller.isProcessing()||e.controller.isAnswering()),s=()=>{var v;!e.controller||e.controller.setInput((v=l.value)==null?void 0:v.innerText)},h=v=>{if(v.preventDefault(),v.shiftKey){document.execCommand("insertLineBreak");return}_()};K(()=>e.controller.isCreatingThread(),()=>{!e.controller.isCreatingThread()&&(t.value=!1)});const _=async()=>{var a;if(!e.controller)return;if(e.controller.isCreatingThread()){t.value=!0;return}e.controller.setInput((a=l.value)==null?void 0:a.innerText),l.value.innerText="";let v=null;e.workspace&&e.stage&&(v=await e.workspace.readFile(e.stage.file)),await e.controller.send(v)};return(v,a)=>(o(),n("div",{class:B(["input",{disabled:d.value}])},[r("div",{ref_key:"inputRef",ref:l,class:"input-text",contenteditable:!d.value,onKeydown:Ee(h,["enter"]),onInput:s},null,40,t2),d.value?(o(),S(u(st),{key:0,size:18,class:"icon",onClick:a[0]||(a[0]=$=>{var E;return(E=v.controller)==null?void 0:E.cancel()})})):C("",!0),m(u(z),{title:"Just a second, we're setting up...",open:t.value,placement:"topRight"},{default:p(()=>[d.value?C("",!0):(o(),S(u(v1),{key:0,size:18,class:B(["icon",[{disabled:v.controller.input.length===0||c.value}]]),onClick:_},null,8,["class"]))]),_:1},8,["open"])],2))}});const l2=O(a2,[["__scopeId","data-v-980f1e3a"]]),o2=["onClick"],s2={class:"icon"},n2={class:"title"},r2=k({__name:"SmartSuggestions",props:{controller:{},workspace:{},stage:{}},setup(i){const e=i,t=g(()=>{var d;return(d=e.controller)==null?void 0:d.isCreatingThread()}),l=async d=>{if(!e.controller||e.controller.isCreatingThread())return;e.controller.setInput(d);let s=null;e.workspace&&e.stage&&(s=await e.workspace.readFile(e.stage.file)),await e.controller.send(s)},c=[{title:"Why is this not working?!",icon:Ye},{title:"How can I improve this code?",icon:Na},{title:"What is this code doing?",icon:Qe}];return(d,s)=>(o(),S(u(P),{class:"suggestions-container",gap:"middle",justify:"center"},{default:p(()=>[(o(),n(re,null,ye(c,h=>r("div",{key:h.title,class:B(["suggestion",{disabled:t.value}]),onClick:_=>l(h.title)},[r("div",s2,[(o(),S(Ie(h.icon),{size:24}))]),r("div",n2,G(h.title),1)],10,o2)),64))]),_:1}))}});const i2=O(r2,[["__scopeId","data-v-2ca3db5f"]]),u2=i=>(Be("data-v-31cf439e"),i=i(),Ne(),i),c2=u2(()=>r("div",{class:"entry ai-output"}," Hello there! I'm both an output console and AI assistant. You can ask me anything. ",-1)),d2={key:0},h2={key:1,class:"local-entry"},p2={key:1,class:"typing-img",src:Ja},g2=k({__name:"SmartConsole",props:{logService:{},workspace:{},stageType:{},stage:{}},setup(i,{expose:e}){const t=i,l=xe(),c=Oe(),d=b(null),s=b(!1),h=b(400),_=b(!1),v=new Ua(H=>t.logService.log(H),t.stage.id),a=new Ya(t.logService,t.stageType),$=b([]);K(()=>t.logService.logs,()=>{$.value.push(null)});const E=(H,L)=>{$.value[H]||($.value[H]=L,a.vote(H,L))};K(()=>{var H;return(H=c.cloudProject)==null?void 0:H.id},async H=>H&&a.setupThread());const V=()=>{t.logService.clear(),a.setupThread()},R=g(()=>({height:`${h.value}px`}));async function J(){var H;if(s.value=!s.value,s.value){if(a.setSeen(),await se(),!d.value)return;d.value.scrollTop=(H=d.value)==null?void 0:H.scrollHeight}}K(l,()=>t.logService.clear()),e({closeConsole:()=>s.value=!1,fixJson:async(H,L)=>{s.value=!0,await a.fixJson(H,L)}}),t.logService.listen(async H=>{s.value||a.setUnseen(H),H.type!=="restart"&&(await se(),d.value&&(d.value.scrollTop=d.value.scrollHeight))});const Y=H=>{!_.value||(h.value=document.body.clientHeight-H.clientY)},F=()=>_.value=!1;return _e(async()=>{document.addEventListener("mousemove",Y),document.addEventListener("mouseup",F),await v.connect(),a.init()}),He(async()=>{document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",F),await v.close()}),(H,L)=>{const M=ze("Markdown");return o(),S(u(P),{vertical:""},{default:p(()=>[m(e2,{controller:u(a),open:s.value,onToggleConsole:J},null,8,["controller","open"]),s.value?(o(),S(u(P),{key:0,class:"terminal",style:Pe(R.value),vertical:""},{default:p(()=>[r("div",{class:"resize-handler",onMousedown:L[0]||(L[0]=I=>_.value=!0)},null,32),m(u(P),{class:"cli"},{default:p(()=>[m(u(P),{class:"left",vertical:""},{default:p(()=>[r("div",{ref_key:"entriesContainer",ref:d,class:"entries"},[c2,(o(!0),n(re,null,ye(H.logService.logs,(I,x)=>(o(),n("div",{key:x,class:B([I.type,"entry"])},[I.type==="ai-output"?(o(),n("div",d2,[I.type==="ai-output"?(o(),S(M,{key:0,source:I.log},null,8,["source"])):C("",!0),m(u(P),{gap:"6",class:"icons"},{default:p(()=>[m(u(z),{placement:"top",title:"Copy"},{default:p(()=>[m(u(Te),{copyable:{text:I.log}},{copyableIcon:p(()=>[m(u(Je),{size:18,class:"icon"})]),_:2},1032,["copyable"])]),_:2},1024),x===H.logService.logs.length-1?(o(),S(u(z),{key:0,placement:"top",title:"Regenerate"},{default:p(()=>[m(u(T1),{size:18,onClick:L[1]||(L[1]=Q=>u(a).regenerateLast())})]),_:1})):C("",!0),m(u(z),{placement:"top",title:"Good response"},{default:p(()=>[m(u(ma),{size:18,class:B({filled:$.value[x]==="good",disabled:$.value[x]==="bad"}),onClick:Q=>E(x,"good")},null,8,["class","onClick"])]),_:2},1024),m(u(z),{placement:"top",title:"Bad response"},{default:p(()=>[m(u(Kt),{size:18,class:B({filled:$.value[x]==="bad",disabled:$.value[x]==="good"}),onClick:Q=>E(x,"bad")},null,8,["class","onClick"])]),_:2},1024)]),_:2},1024)])):(o(),n("div",h2,G(I.type==="restart"?"-- restarted --":I.log),1))],2))),128))],512),H.logService.logs.length?C("",!0):(o(),S(i2,{key:0,controller:u(a),workspace:H.workspace,stage:H.stage},null,8,["controller","workspace","stage"])),m(l2,{controller:u(a),workspace:H.workspace,stage:H.stage},null,8,["controller","workspace","stage"])]),_:1}),m(u(P),{class:"right",vertical:"",justify:"space-between",align:"center"},{default:p(()=>{var I,x;return[m(u(z),{placement:"left",title:"Start new conversation"},{default:p(()=>[m(u(M0),{size:20,class:"broom-icon",onClick:V})]),_:1}),(I=u(a))!=null&&I.isProcessing()?(o(),S(u(Xe),{key:0,style:{color:"#aaa","font-size":"18px"}})):C("",!0),(x=u(a))!=null&&x.isAnswering()?(o(),n("img",p2)):C("",!0)]}),_:1})]),_:1})]),_:1},8,["style"])):C("",!0)]),_:1})}}});const K2=O(g2,[["__scopeId","data-v-31cf439e"]]);class ie{static async getAutocomplete(e){try{return await(await fetch("/_editor/api/pysa/autocomplete",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getHelp(e){try{return await(await fetch("/_editor/api/pysa/help",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getLint(e){try{return await(await fetch("/_editor/api/pysa/lint",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}}let le={};function v2(i){return i in le?"\n\n```python\n"+i+" = "+le[i]+"\n```":""}function f2(i){switch(i){case"error":return U.Error;case"warning":return U.Warning;case"info":return U.Info;case"hint":return U.Hint;default:return U.Error}}ae.registerHoverProvider("python",{async provideHover(i,e){const t=i.getWordAtPosition(e);return t?{contents:(await ie.getHelp({code:i.getValue(),line:e.lineNumber,column:e.column})).map(c=>({value:c.docstring+v2(c.name)})),range:new $e(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn)}:null}});ae.registerCompletionItemProvider("python",{async provideCompletionItems(i,e){const t=await ie.getAutocomplete({code:i.getValue(),line:e.lineNumber,column:e.column-1}),l=i.getWordUntilPosition(e);return{suggestions:t.map(c=>({label:c.name,kind:ae.CompletionItemKind.Function,documentation:c.documentation,insertText:c.name,insertTextRules:ae.CompletionItemInsertTextRule.InsertAsSnippet,range:{startLineNumber:e.lineNumber,endLineNumber:e.lineNumber,startColumn:l.startColumn,endColumn:l.endColumn}}))}}});const ge=i=>{ie.getLint({code:i.getValue(),line:0,column:0}).then(e=>{q.setModelMarkers(i,"python",e.map(t=>({startLineNumber:t.line,startColumn:t.column,endLineNumber:t.until_line,endColumn:t.until_column,message:t.message,severity:f2(t.severity)})))})},m2=(i,e,t={})=>{var a;const l=q.create(i,{language:"python",value:e,minimap:{enabled:!1},readOnly:(a=t.readOnly)!=null?a:!1,contextmenu:!t.readOnly,automaticLayout:!t.readOnly,tabSize:4,fixedOverflowWidgets:!0,theme:t.theme?t.theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:t.readOnly?0:5,scrollBeyondLastLine:!t.readOnly,renderLineHighlight:t.readOnly?"none":"all",scrollbar:{useShadows:!1,alwaysConsumeMouseWheel:!1}}),c=l.getContribution("editor.contrib.messageController");l.onDidAttemptReadOnlyEdit(()=>{c.showMessage("Cannot edit during preview execution",l.getPosition())});const d=l.createDecorationsCollection([]),s=($,E)=>{d.set($.map(V=>({range:new $e(V.lineno,1,V.lineno,1),options:{isWholeLine:!0,className:E}}))),le=$.reduce((V,R)=>({...V,...R.locals}),{})},h=($,E)=>V=>{const R=V.filter(J=>J.filename.endsWith(E));s(R,$)},_=()=>{d.clear(),le={}},v=$=>{l.updateOptions({readOnly:$})};return ge(l.getModel()),l.onDidChangeModelContent(()=>{ge(l.getModel())}),{editor:l,highlight:h,clearHighlights:_,setReadOnly:v}},y2=(i,e,t)=>{const l=q.createModel(e),c=q.createModel(t),d=q.createDiffEditor(i,{minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,renderWhitespace:"none",guides:{indentation:!1},fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:0,scrollBeyondLastLine:!1,renderLineHighlight:"none"});return d.setModel({original:l,modified:c}),{diffEditor:d}};class _2{constructor(e,t){f(this,"_script");f(this,"_localEditorCode");f(this,"_monacoEditor");f(this,"_diffEditor");f(this,"_viewMode");f(this,"_alertMessage");f(this,"_conflictingChanges");this._localEditorCode=e,this._script=t,this._monacoEditor=null,this._diffEditor=null,this._viewMode=te("editor"),this._alertMessage=te(""),this._conflictingChanges=te(!1)}get alertMessage(){return this._alertMessage.value}set alertMessage(e){this._alertMessage.value=e}get conflictingChanges(){return this._conflictingChanges.value}set conflictingChanges(e){this._conflictingChanges.value=e}get viewMode(){return this._viewMode.value}set viewMode(e){this._viewMode.value=e}get abstraIDECode(){return this._script.codeContent}get localEditorCode(){return this._localEditorCode}set localEditorCode(e){this._localEditorCode=e}set monacoEditor(e){this._monacoEditor=e}set diffEditor(e){this._diffEditor=e}finishPreview(){var e;this._viewMode.value="editor",this._script.codeContent=this._localEditorCode,(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.alertMessage=""}updateCodeWhileEditing(e){var c;const t=e!==this._localEditorCode;if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1;return}const l=!this._script.hasChanges("code_content");if(l){(c=this._monacoEditor)==null||c.setValue(e),this._script.codeContent=e,this._script.updateInitialState("code_content",e);return}if(!l&&t){this.alertMessage="You have conflicting changes with your local editor code",this.conflictingChanges=!0;return}}updateCodeWhileDiff(e){var t,l;if(e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1,this.viewMode="editor",this._localEditorCode=e;return}if(e!==this._localEditorCode){(l=(t=this._diffEditor)==null?void 0:t.getModel())==null||l.modified.setValue(e),this._localEditorCode=e;return}}updateCodeWhilePreview(e){if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="";return}this.alertMessage="The changes on your code will be shown after the preview stops running"}updateCode(e){switch(this._viewMode.value){case"editor":return this.updateCodeWhileEditing(e);case"diff":return this.updateCodeWhileDiff(e);case"preview":return this.updateCodeWhilePreview(e)}}keepAbstraIDECode(){var e;(e=this._monacoEditor)==null||e.setValue(this._script.codeContent),this._script.save("code_content"),this._script.updateInitialState("code_content",this._script.codeContent),this._localEditorCode=this._script.codeContent,this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}keepLocalEditor(){var e;(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}}const H2={class:"source-code-container"},$2={class:"code-container"},w2={key:0,class:"not-found-container"},C2=k({__name:"SourceCode",props:{script:{},workspace:{}},emits:["update-file"],setup(i,{expose:e,emit:t}){const l=i,c=()=>{!l.script.file||oe.openFile(l.script.file)},d=()=>{M.value.viewMode="diff",Se()},s=b(null),h=b(null);let _,v,a,$;const{result:E}=pe(()=>fetch("/_editor/api/workspace/root").then(w=>w.text())),V=b(l.script.file);K(()=>l.script.file,()=>V.value=l.script.file);const{result:R,refetch:J}=pe(()=>oe.checkFile(V.value)),Y=()=>{F.value.valid?t("update-file",je(V.value)):t("update-file",V.value),J()},F=g(()=>{var A;const w=Ge(V.value);return w.valid?((A=R.value)==null?void 0:A.exists)&&l.script.hasChanges("file")?{valid:!0,help:"This file already exists"}:l.script.hasChanges("file")?{valid:!0,help:"The original file will be renamed"}:w:w}),H=()=>{!l.workspace||!E.value||oe.openFile(".")},L=b(!1),M=te(null),I=async()=>{var A;if(!l.script.file)return;const w=await l.workspace.readFile(l.script.file);if(w===null){L.value=!0;return}L.value=!1,(A=M.value)==null||A.updateCode(w)},{startPolling:x,endPolling:Q}=e0({task:I});_e(()=>{Me(),x()}),He(()=>{Q()});const Ce=()=>{$(!0),M.value.viewMode="preview"},Ae=(w,A)=>{if(A)return a("error-line",l.script.file)(w);a("executing-line",l.script.file)(w)},Me=async()=>{await se(),l.workspace.readFile(l.script.file).then(w=>{const A=w!=null?w:"";l.script.codeContent=A,l.script.updateInitialState("code_content",A),M.value=new _2(A,l.script);const N=m2(s.value,A);v=N.clearHighlights,a=N.highlight,$=N.setReadOnly,_=N.editor,M.value.monacoEditor=_,_.onDidChangeModelContent(()=>{l.script.codeContent=_.getValue()})})},Se=async()=>{const w=await l.workspace.readFile(l.script.file);if(!w)return;const A=l.script.codeContent,N=y2(h.value,A,w);M.value.diffEditor=N.diffEditor};return e({startPreviewMode:Ce,setHighlight:Ae,restartEditor:()=>{var w;v(),$(!1),(w=M.value)==null||w.finishPreview()},updateLocalEditorCode:w=>{M.value.localEditorCode=w}}),(w,A)=>{var N,ue,ce,de;return o(),n("div",H2,[m(u(me),{"validate-status":F.value.valid?"success":"error",help:F.value.valid?F.value.help:F.value.reason,class:"file-input"},{default:p(()=>[m(u(fe),{value:w.script.file,"onUpdate:value":A[0]||(A[0]=j=>w.script.file=j),onBlur:Y},{addonBefore:p(()=>[u(E)?(o(),n("span",{key:0,class:"clickable",onClick:H},[m(u(z),{placement:"bottomLeft","overlay-style":{maxWidth:"none"}},{title:p(()=>[Z(G(u(E)),1)]),default:p(()=>[m(u(J0),{size:"22"})]),_:1})])):C("",!0)]),addonAfter:p(()=>[r("span",{class:"clickable",onClick:c},[Z(" Open in editor "),m(u(t0),{size:"20"})])]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),(N=M.value)!=null&&N.alertMessage?(o(),S(u(a0),{key:0,type:"warning","show-icon":""},{message:p(()=>{var j;return[Z(G((j=M.value)==null?void 0:j.alertMessage),1)]}),action:p(()=>[M.value.conflictingChanges&&M.value.viewMode!=="diff"?(o(),S(u(P),{key:0,gap:"small"},{default:p(()=>[m(u(X),{type:"primary",onClick:d},{default:p(()=>[Z("Compare")]),_:1}),m(u(z),null,{title:p(()=>[Z("Keep the local editor version")]),default:p(()=>[m(u(X),{onClick:A[1]||(A[1]=j=>{var W;return(W=M.value)==null?void 0:W.keepLocalEditor()})},{default:p(()=>[Z("Discard")]),_:1})]),_:1})]),_:1})):C("",!0),M.value.conflictingChanges&&M.value.viewMode==="diff"?(o(),S(u(P),{key:1,gap:"small"},{default:p(()=>[m(u(z),null,{title:p(()=>[Z("Keep your current changes")]),default:p(()=>[m(u(X),{onClick:A[2]||(A[2]=j=>{var W;return(W=M.value)==null?void 0:W.keepAbstraIDECode()})},{default:p(()=>[Z("Keep left")]),_:1})]),_:1}),m(u(z),null,{title:p(()=>[Z("Keep the local editor version")]),default:p(()=>[m(u(X),{onClick:A[3]||(A[3]=j=>{var W;return(W=M.value)==null?void 0:W.keepLocalEditor()})},{default:p(()=>[Z("Keep right")]),_:1})]),_:1})]),_:1})):C("",!0)]),_:1})):C("",!0),r("div",$2,[L.value?(o(),n("div",w2,[m(u(l0),null,{title:p(()=>[Z("File not found")]),_:1})])):C("",!0),r("div",{id:"code",ref_key:"codeComponent",ref:s,class:B(["monaco-element",{hide:((ue=M.value)==null?void 0:ue.viewMode)==="diff",blur:L.value}])},null,2)]),((ce=M.value)==null?void 0:ce.viewMode)==="diff"?(o(),n("div",{key:1,id:"code",ref_key:"codeDiffComponent",ref:h,class:B(["monaco-element",{hide:((de=M.value)==null?void 0:de.viewMode)!=="diff"}])},null,2)):C("",!0)])}}});const q2=O(C2,[["__scopeId","data-v-50a929bf"]]);export{J2 as E,st as I,we as L,U2 as R,K2 as S,q2 as a}; +//# sourceMappingURL=SourceCode.db5c4074.js.map diff --git a/abstra_statics/dist/assets/Sql.8398cc71.js b/abstra_statics/dist/assets/Sql.ce229c79.js similarity index 83% rename from abstra_statics/dist/assets/Sql.8398cc71.js rename to abstra_statics/dist/assets/Sql.ce229c79.js index cd90df403..9fe73c295 100644 --- a/abstra_statics/dist/assets/Sql.8398cc71.js +++ b/abstra_statics/dist/assets/Sql.ce229c79.js @@ -1,2 +1,2 @@ -import{b as o,eh as D,d as E,ed as L,L as N,N as P,e as u,W as R,X as B,w as d,u as c,o as V,a as Q,bS as w,aF as S,df as b,cW as $,cL as x,$ as j}from"./vue-router.4c13f3d4.js";import{d as z}from"./utils.b9d20cd5.js";import{G as A}from"./PhDownloadSimple.vue.285a519c.js";import{e as F}from"./toggleHighContrast.017fb466.js";import"./gateway.e77556e5.js";import{P as M}from"./project.7817fdd7.js";import"./tables.e9d41f69.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="55596376-f5d0-4c03-be0a-8c921bfb7883",e._sentryDebugIdIdentifier="sentry-dbid-55596376-f5d0-4c03-be0a-8c921bfb7883")}catch{}})();var T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const W=T;function O(e){for(var a=1;a{y.value=!0;const n=await M.executeQuery(t,f.value,[]);if(y.value=!1,s.set(f.value),!n)return;const{returns:r,errors:p}=n;C.value=p;for(const l of p)x.error({message:"SQL Execution Failed",description:l});p.length||x.success({message:"SQL Execution Succeeded"}),v.value=r.fields.map(l=>({title:l.name,key:l.name,dataIndex:l.name})),g.value=r.result.map((l,_)=>J({key:`${_+1}`,...l}))},q=()=>{const n=v.value.map(m=>m.dataIndex),r=v.value.map(m=>m.title),p=g.value.map(m=>n.map(k=>m[k])),_=`data-${new Date().toISOString()}`;z({fileName:_,columns:r,rows:p})};return R(()=>{const n=F.create(i.value,{language:"sql",value:f.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});n.onDidChangeModelContent(()=>{f.value=n.getValue()});const r=s.get();r&&(f.value=r,n.setValue(r))}),(n,r)=>(V(),B("div",X,[o(c(b),{gap:"large",class:"sql-container",align:"center"},{default:d(()=>[Q("div",{ref_key:"sqlEditor",ref:i,class:"sql-editor"},null,512),o(c(w),{type:"primary",loading:y.value,onClick:I},{icon:d(()=>[o(c(H))]),default:d(()=>[S(" Run ")]),_:1},8,["loading"])]),_:1}),o(c(b),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:d(()=>[o(c(w),{disabled:!g.value.length,onClick:q},{default:d(()=>[o(c(b),{align:"center",gap:"small"},{default:d(()=>[S(" Export to CSV "),o(c(A))]),_:1})]),_:1},8,["disabled"])]),_:1}),o(c($),{style:{width:"100%"},scroll:{x:100},"data-source":g.value,columns:v.value},null,8,["data-source","columns"])]))}});const le=j(U,[["__scopeId","data-v-a13d7ced"]]);export{le as default}; -//# sourceMappingURL=Sql.8398cc71.js.map +import{b as o,eh as D,d as E,ed as L,L as N,N as P,e as u,W as R,X as B,w as d,u as c,o as V,a as Q,bS as w,aF as S,df as b,cW as $,cL as x,$ as j}from"./vue-router.3fd92176.js";import{d as z}from"./utils.4c5a1d76.js";import{G as A}from"./PhDownloadSimple.vue.33128e79.js";import{e as F}from"./toggleHighContrast.db48a34e.js";import"./gateway.c564a1cf.js";import{P as M}from"./project.40b63ace.js";import"./tables.3aa20dd6.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="24e7c129-7ecc-41a2-a4c3-1b3ffac76c70",e._sentryDebugIdIdentifier="sentry-dbid-24e7c129-7ecc-41a2-a4c3-1b3ffac76c70")}catch{}})();var T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const W=T;function O(e){for(var a=1;a{y.value=!0;const n=await M.executeQuery(t,f.value,[]);if(y.value=!1,s.set(f.value),!n)return;const{returns:r,errors:p}=n;C.value=p;for(const l of p)x.error({message:"SQL Execution Failed",description:l});p.length||x.success({message:"SQL Execution Succeeded"}),v.value=r.fields.map(l=>({title:l.name,key:l.name,dataIndex:l.name})),g.value=r.result.map((l,_)=>J({key:`${_+1}`,...l}))},q=()=>{const n=v.value.map(m=>m.dataIndex),r=v.value.map(m=>m.title),p=g.value.map(m=>n.map(k=>m[k])),_=`data-${new Date().toISOString()}`;z({fileName:_,columns:r,rows:p})};return R(()=>{const n=F.create(i.value,{language:"sql",value:f.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});n.onDidChangeModelContent(()=>{f.value=n.getValue()});const r=s.get();r&&(f.value=r,n.setValue(r))}),(n,r)=>(V(),B("div",X,[o(c(b),{gap:"large",class:"sql-container",align:"center"},{default:d(()=>[Q("div",{ref_key:"sqlEditor",ref:i,class:"sql-editor"},null,512),o(c(w),{type:"primary",loading:y.value,onClick:I},{icon:d(()=>[o(c(H))]),default:d(()=>[S(" Run ")]),_:1},8,["loading"])]),_:1}),o(c(b),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:d(()=>[o(c(w),{disabled:!g.value.length,onClick:q},{default:d(()=>[o(c(b),{align:"center",gap:"small"},{default:d(()=>[S(" Export to CSV "),o(c(A))]),_:1})]),_:1},8,["disabled"])]),_:1}),o(c($),{style:{width:"100%"},scroll:{x:100},"data-source":g.value,columns:v.value},null,8,["data-source","columns"])]))}});const le=j(U,[["__scopeId","data-v-a13d7ced"]]);export{le as default}; +//# sourceMappingURL=Sql.ce229c79.js.map diff --git a/abstra_statics/dist/assets/Stages.e3fc0dff.js b/abstra_statics/dist/assets/Stages.41a6c387.js similarity index 93% rename from abstra_statics/dist/assets/Stages.e3fc0dff.js rename to abstra_statics/dist/assets/Stages.41a6c387.js index 1aaf30d61..3a3a2c5cb 100644 --- a/abstra_statics/dist/assets/Stages.e3fc0dff.js +++ b/abstra_statics/dist/assets/Stages.41a6c387.js @@ -1,2 +1,2 @@ -import{d as x,B as H,f as k,o as c,X as S,Z as ye,R as V,eb as _e,a as g,b as a,eh as be,ep as we,e as I,c as w,w as t,u as e,cy as M,df as $,bQ as ke,by as Ae,ee as le,bw as Ce,aF as v,ec as T,aR as Y,e9 as Se,cD as Ve,cx as J,da as P,cK as se,g as Le,d7 as Fe,cQ as Ie,cN as O,d9 as D,cP as N,el as Te,em as xe,$ as ne,bK as K,aV as $e,bS as j,aA as Me,cS as Pe,ek as Ze,eq as He,db as Oe,d8 as De,d3 as Ne,er as je}from"./vue-router.4c13f3d4.js";import{C as Ue}from"./ContentLayout.f8da2f52.js";import{C as Ee}from"./CrudView.e4956a79.js";import{a as ee}from"./ant-design.57cbe6fb.js";import{a as q}from"./asyncComputed.d0f14ed3.js";import{c as Be}from"./string.eaeb96c3.js";import{F as Re}from"./PhArrowSquareOut.vue.340970aa.js";import{F as U}from"./forms.4f960625.js";import{A as ze,H as E,J as B,S as W}from"./scripts.709f5489.js";import"./editor.49995faa.js";import{W as re}from"./workspaces.1ee4ae8d.js";import{A as ie}from"./index.e5bdb21b.js";import{F as Ge,G as qe,I as We,a as Ye}from"./PhWebhooksLogo.vue.1b61227c.js";import{_ as te}from"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import{b as Je,v as ue}from"./validations.f7853e39.js";import"./router.87582bcc.js";import"./gateway.e77556e5.js";import"./popupNotifcation.d2ca3d78.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";import"./record.34d5b504.js";import"./workspaceStore.ae240ce8.js";import"./colorHelpers.c5724389.js";import"./BookOutlined.a8460802.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="0be62480-39b5-4c51-a229-d88b7a0ed039",s._sentryDebugIdIdentifier="sentry-dbid-0be62480-39b5-4c51-a229-d88b7a0ed039")}catch{}})();const Xe=["width","height","fill","transform"],Qe={key:0},Ke=g("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"},null,-1),et=[Ke],tt={key:1},at=g("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"},null,-1),ot=g("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),lt=[at,ot],st={key:2},nt=g("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"},null,-1),rt=[nt],it={key:3},ut=g("path",{d:"M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"},null,-1),ct=[ut],pt={key:4},dt=g("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),ft=[dt],ht={key:5},mt=g("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"},null,-1),vt=[mt],gt={name:"PhSparkle"},yt=x({...gt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(s){const o=s,n=H("weight","regular"),r=H("size","1em"),p=H("color","currentColor"),b=H("mirrored",!1),h=k(()=>{var u;return(u=o.weight)!=null?u:n}),y=k(()=>{var u;return(u=o.size)!=null?u:r}),m=k(()=>{var u;return(u=o.color)!=null?u:p}),A=k(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:b?"scale(-1, 1)":void 0);return(u,d)=>(c(),S("svg",_e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:m.value,transform:A.value},u.$attrs),[ye(u.$slots,"default"),h.value==="bold"?(c(),S("g",Qe,et)):h.value==="duotone"?(c(),S("g",tt,lt)):h.value==="fill"?(c(),S("g",st,rt)):h.value==="light"?(c(),S("g",it,ct)):h.value==="regular"?(c(),S("g",pt,ft)):h.value==="thin"?(c(),S("g",ht,vt)):V("",!0)],16,Xe))}});function ae(s){for(var o=1;op.value?"Retry":r.value?"Generating":"Generate"),h=[{title:"Reimbursement approval",prompt:"Create a workflow that implements a reimbursement approval process. It starts with a user submitting a request in a form by inputing a file of the receipt. In the same form, use abstra.ai to get the company name and the amount of the receipt with the parameter format, and save those values in the thread. Then, there is an approval form, filled by me, that will get the data from the thread and I will check the amount and decide if I will approve or not the reinbursement."},{title:"Customer onboarding",prompt:'Do a workflow to implememt a customer onboarding process. It starts with the customer filling a form with some data from their company, like name and CNPJ. After that form, there is a script that generates the contract document using python-docx lib and the same script saves the generated document in persistent dir. Following that, there is an approval form, in which someone will approve or not the contrct, setting a variable approved. With that variable, this form is followed by a condition and if approved is "True" it ends with a script that sends this document via docusign and if is "False" it goes to a internal analysis form.'},{title:"Credit approval",prompt:'Create a workflow to implement a credit approval process. It starts with the user filling a form that asks its name, email, monthly income and loan amount in a Abstra Page. After that there is a script that checks if the loan amount is greater than 1/3 of the monthly income, and if yes, sets a variable score as "low" and else as "high". Following this script there is a condition that takes to an automatic review form if the score is high and to a manual review form if the score is low.'},{title:"Vacation request",prompt:'Create a workflow to implement a vacation request process. It starts with a form to the employee fill that asks separately the start and end date of the vacation. This dates are converted to string and saved in the thread. After that, there is a script that calculates the number of days of the vacation and saves this value in the thread. Following that, there is an approval form, in which the manager will approve or not the vacation request. In the same form, save the vacation in abstra tables in a table "vacations", using insert function from abstra.tables.'}],y=l=>{n.value=l.prompt},m=I(-1),A=["Did you know Abstra is open-source? You can star us on GitHub!","Python is the most popular language among non-developers",'You can use the "Fork" button to create a copy of a script run',"With our AI, you can create a full project in less than a minute!","Breaking your process into smaller steps can help debug it","Ask anything to Smart Console, our AI assistant","Check our documentation to learn more about Abstra","You can retry a failed step in the workflow using the Kanban","Customize your workspace by changing the theme in the settings"],u=async()=>{p.value=!1,r.value=!0,m.value=0;const l=setInterval(()=>{m.value++,m.value>=A.length&&(m.value=0),m.value>=A.length&&(clearInterval(l),m.value=-1)},8e3);try{await ze.generateProject(n.value),r.value=!1,clearInterval(l),m.value=-1,n.value="",o("close-and-refetch")}catch{r.value=!1,clearInterval(l),m.value=-1,p.value=!0}},d=()=>{p.value=!1,n.value="",o("close")};return(l,L)=>(c(),w(e(se),{open:l.open,title:"Let AI help you start your project","ok-text":b.value,"confirm-loading":r.value,onCancel:d,onOk:u},{default:t(()=>[a(e(J),{layout:"vertical"},{default:t(()=>[a(e(M),{label:"What do you need to automate? Write a Workflow prompt below, and our AI will create it all for you \u2014 code included"},{default:t(()=>[a(e($),{justify:"end",style:{"margin-bottom":"6px"}},{default:t(()=>[a(e(ke),{trigger:"click",placement:"bottomRight"},{overlay:t(()=>[a(e(Ae),null,{default:t(()=>[(c(),S(Y,null,le(h,F=>a(e(Ce),{key:F.title,onClick:z=>y(F)},{default:t(()=>[v(T(F.title),1)]),_:2},1032,["onClick"])),64))]),_:1})]),default:t(()=>[g("a",{class:"ant-dropdown-link",onClick:L[0]||(L[0]=Se(()=>{},["prevent"]))},[v(" Examples "),a(e(bt))])]),_:1})]),_:1}),a(e(Ve),{value:n.value,"onUpdate:value":L[1]||(L[1]=F=>n.value=F),rows:8,placeholder:h[0].prompt},null,8,["value","placeholder"])]),_:1})]),_:1}),a(e(P),null,{default:t(()=>[v(T(A[m.value]),1)]),_:1}),p.value?(c(),w(e(ie),{key:0,type:"error",message:"There was an internal error, please try again"})):V("",!0)]),_:1},8,["open","ok-text","confirm-loading"]))}}),R=s=>(Te("data-v-71199594"),s=s(),xe(),s),kt={key:0,class:"choose-type"},At={class:"option-content"},Ct=R(()=>g("span",null,"Forms",-1)),St={class:"option-content"},Vt=R(()=>g("span",null,"Hooks",-1)),Lt={class:"option-content"},Ft=R(()=>g("span",null,"Scripts",-1)),It={class:"option-content"},Tt=R(()=>g("span",null,"Jobs",-1)),xt=x({__name:"ChooseStageType",props:{state:{}},emits:["choose-type"],setup(s,{emit:o}){const n=s,r=k(()=>n.state.type==="form"?"#fff":void 0),p=k(()=>n.state.type==="hook"?"#fff":void 0),b=k(()=>n.state.type==="script"?"#fff":void 0),h=k(()=>n.state.type==="job"?"#fff":void 0);return Le(()=>n.state.type,y=>{y&&o("choose-type",y)}),(y,m)=>y.state.state==="choosing-type"?(c(),S("div",kt,[a(e($),{vertical:"",gap:"30"},{default:t(()=>[a(e(Fe),null,{default:t(()=>[v("Choose your stage type")]),_:1}),a(e(Ie),{value:y.state.type,"onUpdate:value":m[0]||(m[0]=A=>y.state.type=A),size:"large","button-style":"solid"},{default:t(()=>[a(e($),{gap:"24",vertical:""},{default:t(()=>[a(e($),{gap:"24"},{default:t(()=>[a(e(O),{placement:"left",title:"Forms"},{content:t(()=>[a(e(D),null,{default:t(()=>[v(" Use to collect user input via interaction with a form interface ")]),_:1}),a(te,{path:"concepts/forms"})]),default:t(()=>[a(e(N),{value:"form",class:"option"},{default:t(()=>[g("div",At,[(c(),w(e(Ge),{key:r.value,color:r.value},null,8,["color"])),Ct])]),_:1})]),_:1}),a(e(O),{placement:"right",title:"Hooks"},{content:t(()=>[a(e(D),null,{default:t(()=>[v("Use to build endpoints triggered by HTTP requests")]),_:1}),a(te,{path:"concepts/forms"})]),default:t(()=>[a(e(N),{value:"hook",class:"option"},{default:t(()=>[g("div",St,[(c(),w(e(qe),{key:p.value,color:p.value},null,8,["color"])),Vt])]),_:1})]),_:1})]),_:1}),a(e($),{gap:"24"},{default:t(()=>[a(e(O),{placement:"left",title:"Scripts"},{content:t(()=>[a(e(D),null,{default:t(()=>[v(" Use to write plain Python scripts ")]),_:1})]),default:t(()=>[a(e(N),{value:"script",class:"option"},{default:t(()=>[g("div",Lt,[(c(),w(e(We),{key:b.value,color:b.value},null,8,["color"])),Ft])]),_:1})]),_:1}),a(e(O),{placement:"right",title:"Jobs"},{content:t(()=>[a(e(D),null,{default:t(()=>[v(" Use to schedule your script execution periodically ")]),_:1})]),default:t(()=>[a(e(N),{value:"job",class:"option"},{default:t(()=>[g("div",It,[(c(),w(e(Ye),{key:h.value,color:h.value},null,8,["color"])),Tt])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})])):V("",!0)}});const $t=ne(xt,[["__scopeId","data-v-71199594"]]),Mt=g("br",null,null,-1),Pt=x({__name:"NewStage",props:{state:{}},emits:["update-name","update-file"],setup(s,{emit:o}){const n=s,{result:r}=q(()=>fetch("/_editor/api/workspace/root").then(u=>u.text())),p=k(()=>n.state.state!=="creating"?"":`${r.value}/${n.state.stage.filename}`),b=k(()=>n.state.state!=="creating"?"":`${n.state.stage.type[0].toUpperCase()+n.state.stage.type.slice(1)} title`),h=u=>{o("update-name",u);const d=Je(u);o("update-file",d),m()},{result:y,refetch:m}=q(()=>re.checkFile(n.state.stage.filename)),A=k(()=>ue(n.state.stage.filename));return(u,d)=>(c(),w(e(J),{layout:"vertical"},{default:t(()=>{var l;return[a(e(M),{label:b.value,required:!0},{default:t(()=>[a(e(K),{value:u.state.stage.title,"onUpdate:value":h},null,8,["value"])]),_:1},8,["label"]),a(e(M),{label:"Generated file",required:!0,"validate-status":A.value.valid?"success":"error",help:A.value.valid?void 0:A.value.reason},{default:t(()=>[a(e($e),{placement:"right"},{title:t(()=>[v(" You can change this later ")]),default:t(()=>[a(e(K),{value:u.state.stage.filename,"onUpdate:value":d[0]||(d[0]=L=>u.state.stage.filename=L),disabled:!0},null,8,["value"])]),_:1})]),_:1},8,["validate-status","help"]),a(e(M),null,{default:t(()=>[a(e(P),null,{default:t(()=>[v(" Your stage source code will be generated at: ")]),_:1}),Mt,a(e(P),{code:""},{default:t(()=>[v(T(p.value),1)]),_:1})]),_:1}),(l=e(y))!=null&&l.exists?(c(),w(e(ie),{key:0,type:"warning","show-icon":""},{message:t(()=>[a(e(P),null,{default:t(()=>[v(" This file already exists and might be in use by another stage. Contents will be left unchanged. ")]),_:1})]),_:1})):V("",!0)]}),_:1}))}}),Zt=x({__name:"CreateModal",props:{open:{type:Boolean},state:{}},emits:["close","choose-type","next-step","previous-step","create-stage","update-name","update-file"],setup(s,{emit:o}){const n=s,r=d=>o("update-name",d),p=d=>o("update-file",d),b=()=>o("close"),h=d=>o("choose-type",d),y=()=>o("next-step"),m=()=>o("previous-step"),A=()=>o("create-stage"),u=k(()=>!(n.state.state!=="creating"||!ue(n.state.stage.filename).valid||!n.state.stage.title));return(d,l)=>(c(),w(e(se),{open:d.open,title:"Create a new stage",onCancel:b},{footer:t(()=>[d.state.state==="creating"?(c(),w(e(j),{key:0,onClick:m},{default:t(()=>[v("Previous")]),_:1})):V("",!0),d.state.state==="creating"?(c(),w(e(j),{key:1,type:"primary",disabled:!u.value,onClick:A},{default:t(()=>[v(" Create ")]),_:1},8,["disabled"])):V("",!0),d.state.state==="choosing-type"?(c(),w(e(j),{key:2,type:"primary",disabled:!d.state.type,onClick:y},{default:t(()=>[v(" Next ")]),_:1},8,["disabled"])):V("",!0)]),default:t(()=>[d.state.state==="choosing-type"?(c(),w($t,{key:0,state:d.state,onChooseType:h},null,8,["state"])):V("",!0),d.state.state==="creating"?(c(),w(Pt,{key:1,state:d.state,onUpdateName:r,onUpdateFile:p},null,8,["state"])):V("",!0)]),_:1},8,["open"]))}}),Ht=x({__name:"FilterStages",emits:["update-filter"],setup(s,{emit:o}){const n=[{label:"Forms",value:"form"},{label:"Hooks",value:"hook"},{label:"Scripts",value:"script"},{label:"Jobs",value:"job"}],r=p=>o("update-filter",p);return(p,b)=>(c(),w(e(J),null,{default:t(()=>[a(e(M),{label:"Filter"},{default:t(()=>[a(e(Me),{mode:"multiple",style:{width:"360px"},placeholder:"All","onUpdate:value":r},{default:t(()=>[(c(),S(Y,null,le(n,h=>a(e(Pe),{key:h.value,value:h.value},{default:t(()=>[v(T(h.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1})]),_:1}))}}),Ot=200,Dt=s=>{if(!s)return[0,0];if(s.length===0)return[0,0];let o=-1/0,n=0;for(const r of s)r.position.x>o&&(o=r.position.x),n+=r.position.y/s.length;return[o+Ot,n]},G=s=>{if(s instanceof U)return"form";if(s instanceof E)return"hook";if(s instanceof B)return"job";if(s instanceof W)return"script";throw new Error("Invalid script type")},Nt=s=>s instanceof U?`/${s.path}`:s instanceof E?`/_hooks/${s.path}`:s instanceof B?`${s.schedule}`:"",jt={class:"ellipsis",style:{"max-width":"300px"}},Ut={class:"ellipsis",style:{"max-width":"250px"}},Et={class:"ellipsis",style:{"max-width":"200px"}},oe=100,Bt=x({__name:"Stages",setup(s){Ze(i=>({"62f8c36d":ve()}));const o=He(),{loading:n,result:r,refetch:p}=q(async()=>Promise.all([U.list(),E.list(),B.list(),W.list()]).then(([i,f,_,C])=>[...i,...f,..._,...C])),b=I(!1),h=async()=>{b.value=!1,p()},y=I([]),m=i=>{y.value=i},A=k(()=>r.value?y.value.length===0?r.value:r.value.filter(i=>y.value.includes(G(i))):[]),u=i=>{re.openFile(i)},d=k(()=>{const i=[{name:"Type",align:"left"},{name:"Title",align:"left"},{name:"File",align:"left"},{name:"Trigger",align:"left"},{name:"",align:"right"}],f=A.value;if(!f)return{columns:i,rows:[]};const _=f.map(C=>{const Z=Be(G(C));return{key:C.id,cells:[{type:"tag",text:Z},{type:"slot",key:"title",payload:{script:C}},{type:"slot",key:"file",payload:{script:C}},{type:"slot",key:"trigger",payload:{script:C}},{type:"actions",actions:[{icon:Re,label:"Open .py file",onClick:()=>u(C.file)},{icon:je,label:"Delete",onClick:()=>me(C.id)}]}]}});return{columns:i,rows:_}}),l=I({state:"idle"}),L=k(()=>l.value.state==="choosing-type"||l.value.state==="creating"),F=()=>{l.value={state:"choosing-type",type:null}},z=()=>{l.value={state:"idle"}},ce=i=>{l.value.state==="choosing-type"&&(l.value={state:"choosing-type",type:i})},pe=()=>{l.value.state==="choosing-type"&&l.value.type!==null&&(l.value={state:"creating",stage:{type:l.value.type,title:`Untitled ${l.value.type}`,filename:`untitled_${l.value.type}.py`}})},de=()=>{l.value.state==="creating"&&(l.value={state:"choosing-type",type:l.value.stage.type})},fe=i=>{l.value.state==="creating"&&(l.value.stage.title=i)},he=i=>{l.value.state==="creating"&&(l.value.stage.filename=i)},me=async i=>{var f,_;if(await ee("Are you sure you want to delete this script?")){const C=await ee("Do you want to delete the .py file associated with this script?",{okText:"Yes",cancelText:"No"});await((_=(f=r.value)==null?void 0:f.find(Z=>Z.id===i))==null?void 0:_.delete(C)),await p()}},ve=()=>(oe/1e3).toString()+"s",ge=async()=>{if(l.value.state!=="creating")return;const i=Dt(r.value||[]);let f;if(l.value.stage.type==="form"?f=await U.create(l.value.stage.title,l.value.stage.filename,i):l.value.stage.type==="hook"?f=await E.create(l.value.stage.title,l.value.stage.filename,i):l.value.stage.type==="job"?f=await B.create(l.value.stage.title,l.value.stage.filename,i):l.value.stage.type==="script"&&(f=await W.create(l.value.stage.title,l.value.stage.filename,i)),!f)throw new Error("Failed to create script");const _=f.id,C=l.value.stage.type;z(),await p(),setTimeout(()=>{Q(_,C)},oe)},Q=(i,f)=>{f==="form"&&o.push({name:"formEditor",params:{id:i}}),f==="hook"&&o.push({name:"hookEditor",params:{id:i}}),f==="script"&&o.push({name:"scriptEditor",params:{id:i}}),f==="job"&&o.push({name:"jobEditor",params:{id:i}})};return(i,f)=>(c(),S(Y,null,[a(Ue,null,{default:t(()=>[a(e(Oe),null,{default:t(()=>[v("Stages")]),_:1}),a(Ht,{onUpdateFilter:m}),a(Ee,{"empty-title":"There are no scripts","entity-name":"scripts",description:"",table:d.value,loading:e(n),title:"","create-button-text":"Create new",onCreate:F},{title:t(({payload:_})=>[g("div",jt,[a(e(De),{onClick:C=>Q(_.script.id,e(G)(_.script))},{default:t(()=>[v(T(_.script.title),1)]),_:2},1032,["onClick"])])]),secondary:t(()=>[e(r)&&!e(r).length?(c(),w(e(j),{key:0,onClick:f[0]||(f[0]=_=>b.value=!0)},{default:t(()=>[a(e($),{gap:"4",align:"center"},{default:t(()=>[v(" Start with AI "),a(e(yt),{size:16})]),_:1})]),_:1})):V("",!0)]),file:t(({payload:_})=>[g("div",Ut,[a(e(P),null,{default:t(()=>[v(T(_.script.file),1)]),_:2},1024)])]),trigger:t(({payload:_})=>[a(e(Ne),{color:"default"},{default:t(()=>[g("div",Et,T(e(Nt)(_.script)),1)]),_:2},1024)]),_:1},8,["table","loading"])]),_:1}),a(Zt,{open:L.value,state:l.value,onClose:z,onChooseType:ce,onNextStep:pe,onPreviousStep:de,onCreateStage:ge,onUpdateName:fe,onUpdateFile:he},null,8,["open","state"]),a(wt,{open:b.value,onClose:f[1]||(f[1]=_=>b.value=!1),onCloseAndRefetch:h},null,8,["open"])],64))}});const ma=ne(Bt,[["__scopeId","data-v-b0522b88"]]);export{ma as default}; -//# sourceMappingURL=Stages.e3fc0dff.js.map +import{d as x,B as H,f as k,o as c,X as S,Z as ye,R as V,eb as _e,a as g,b as a,eh as be,ep as we,e as I,c as w,w as t,u as e,cy as M,df as $,bQ as ke,by as Ae,ee as le,bw as Ce,aF as v,ec as T,aR as Y,e9 as Se,cD as Ve,cx as J,da as P,cK as se,g as Le,d7 as Fe,cQ as Ie,cN as O,d9 as D,cP as N,el as Te,em as xe,$ as ne,bK as K,aV as $e,bS as j,aA as Me,cS as Pe,ek as Ze,eq as He,db as Oe,d8 as De,d3 as Ne,er as je}from"./vue-router.3fd92176.js";import{C as Ue}from"./ContentLayout.72beb65c.js";import{C as Ee}from"./CrudView.b65b5675.js";import{a as ee}from"./ant-design.38477595.js";import{a as q}from"./asyncComputed.295e9e03.js";import{c as Be}from"./string.e75a34fd.js";import{F as Re}from"./PhArrowSquareOut.vue.188b81dc.js";import{F as U}from"./forms.665a9dac.js";import{A as ze,H as E,J as B,S as W}from"./scripts.32887e06.js";import"./editor.519c2dc1.js";import{W as re}from"./workspaces.b456ec6a.js";import{A as ie}from"./index.4fbbd10e.js";import{F as Ge,G as qe,I as We,a as Ye}from"./PhWebhooksLogo.vue.73a10b16.js";import{_ as te}from"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import{b as Je,v as ue}from"./validations.0afef3f1.js";import"./router.59916c0d.js";import"./gateway.c564a1cf.js";import"./popupNotifcation.0e86d6a8.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";import"./record.cbb43e89.js";import"./workspaceStore.411ef1fe.js";import"./colorHelpers.f04087b3.js";import"./BookOutlined.5f7ad9dc.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="aaa1d19b-ea31-4a68-915e-4905567a6c1a",s._sentryDebugIdIdentifier="sentry-dbid-aaa1d19b-ea31-4a68-915e-4905567a6c1a")}catch{}})();const Xe=["width","height","fill","transform"],Qe={key:0},Ke=g("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"},null,-1),et=[Ke],tt={key:1},at=g("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"},null,-1),ot=g("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),lt=[at,ot],st={key:2},nt=g("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"},null,-1),rt=[nt],it={key:3},ut=g("path",{d:"M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"},null,-1),ct=[ut],pt={key:4},dt=g("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),ft=[dt],ht={key:5},mt=g("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"},null,-1),vt=[mt],gt={name:"PhSparkle"},yt=x({...gt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(s){const o=s,n=H("weight","regular"),r=H("size","1em"),p=H("color","currentColor"),b=H("mirrored",!1),h=k(()=>{var u;return(u=o.weight)!=null?u:n}),y=k(()=>{var u;return(u=o.size)!=null?u:r}),m=k(()=>{var u;return(u=o.color)!=null?u:p}),A=k(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:b?"scale(-1, 1)":void 0);return(u,d)=>(c(),S("svg",_e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:m.value,transform:A.value},u.$attrs),[ye(u.$slots,"default"),h.value==="bold"?(c(),S("g",Qe,et)):h.value==="duotone"?(c(),S("g",tt,lt)):h.value==="fill"?(c(),S("g",st,rt)):h.value==="light"?(c(),S("g",it,ct)):h.value==="regular"?(c(),S("g",pt,ft)):h.value==="thin"?(c(),S("g",ht,vt)):V("",!0)],16,Xe))}});function ae(s){for(var o=1;op.value?"Retry":r.value?"Generating":"Generate"),h=[{title:"Reimbursement approval",prompt:"Create a workflow that implements a reimbursement approval process. It starts with a user submitting a request in a form by inputing a file of the receipt. In the same form, use abstra.ai to get the company name and the amount of the receipt with the parameter format, and save those values in the thread. Then, there is an approval form, filled by me, that will get the data from the thread and I will check the amount and decide if I will approve or not the reinbursement."},{title:"Customer onboarding",prompt:'Do a workflow to implememt a customer onboarding process. It starts with the customer filling a form with some data from their company, like name and CNPJ. After that form, there is a script that generates the contract document using python-docx lib and the same script saves the generated document in persistent dir. Following that, there is an approval form, in which someone will approve or not the contrct, setting a variable approved. With that variable, this form is followed by a condition and if approved is "True" it ends with a script that sends this document via docusign and if is "False" it goes to a internal analysis form.'},{title:"Credit approval",prompt:'Create a workflow to implement a credit approval process. It starts with the user filling a form that asks its name, email, monthly income and loan amount in a Abstra Page. After that there is a script that checks if the loan amount is greater than 1/3 of the monthly income, and if yes, sets a variable score as "low" and else as "high". Following this script there is a condition that takes to an automatic review form if the score is high and to a manual review form if the score is low.'},{title:"Vacation request",prompt:'Create a workflow to implement a vacation request process. It starts with a form to the employee fill that asks separately the start and end date of the vacation. This dates are converted to string and saved in the thread. After that, there is a script that calculates the number of days of the vacation and saves this value in the thread. Following that, there is an approval form, in which the manager will approve or not the vacation request. In the same form, save the vacation in abstra tables in a table "vacations", using insert function from abstra.tables.'}],y=l=>{n.value=l.prompt},m=I(-1),A=["Did you know Abstra is open-source? You can star us on GitHub!","Python is the most popular language among non-developers",'You can use the "Fork" button to create a copy of a script run',"With our AI, you can create a full project in less than a minute!","Breaking your process into smaller steps can help debug it","Ask anything to Smart Console, our AI assistant","Check our documentation to learn more about Abstra","You can retry a failed step in the workflow using the Kanban","Customize your workspace by changing the theme in the settings"],u=async()=>{p.value=!1,r.value=!0,m.value=0;const l=setInterval(()=>{m.value++,m.value>=A.length&&(m.value=0),m.value>=A.length&&(clearInterval(l),m.value=-1)},8e3);try{await ze.generateProject(n.value),r.value=!1,clearInterval(l),m.value=-1,n.value="",o("close-and-refetch")}catch{r.value=!1,clearInterval(l),m.value=-1,p.value=!0}},d=()=>{p.value=!1,n.value="",o("close")};return(l,L)=>(c(),w(e(se),{open:l.open,title:"Let AI help you start your project","ok-text":b.value,"confirm-loading":r.value,onCancel:d,onOk:u},{default:t(()=>[a(e(J),{layout:"vertical"},{default:t(()=>[a(e(M),{label:"What do you need to automate? Write a Workflow prompt below, and our AI will create it all for you \u2014 code included"},{default:t(()=>[a(e($),{justify:"end",style:{"margin-bottom":"6px"}},{default:t(()=>[a(e(ke),{trigger:"click",placement:"bottomRight"},{overlay:t(()=>[a(e(Ae),null,{default:t(()=>[(c(),S(Y,null,le(h,F=>a(e(Ce),{key:F.title,onClick:z=>y(F)},{default:t(()=>[v(T(F.title),1)]),_:2},1032,["onClick"])),64))]),_:1})]),default:t(()=>[g("a",{class:"ant-dropdown-link",onClick:L[0]||(L[0]=Se(()=>{},["prevent"]))},[v(" Examples "),a(e(bt))])]),_:1})]),_:1}),a(e(Ve),{value:n.value,"onUpdate:value":L[1]||(L[1]=F=>n.value=F),rows:8,placeholder:h[0].prompt},null,8,["value","placeholder"])]),_:1})]),_:1}),a(e(P),null,{default:t(()=>[v(T(A[m.value]),1)]),_:1}),p.value?(c(),w(e(ie),{key:0,type:"error",message:"There was an internal error, please try again"})):V("",!0)]),_:1},8,["open","ok-text","confirm-loading"]))}}),R=s=>(Te("data-v-71199594"),s=s(),xe(),s),kt={key:0,class:"choose-type"},At={class:"option-content"},Ct=R(()=>g("span",null,"Forms",-1)),St={class:"option-content"},Vt=R(()=>g("span",null,"Hooks",-1)),Lt={class:"option-content"},Ft=R(()=>g("span",null,"Scripts",-1)),It={class:"option-content"},Tt=R(()=>g("span",null,"Jobs",-1)),xt=x({__name:"ChooseStageType",props:{state:{}},emits:["choose-type"],setup(s,{emit:o}){const n=s,r=k(()=>n.state.type==="form"?"#fff":void 0),p=k(()=>n.state.type==="hook"?"#fff":void 0),b=k(()=>n.state.type==="script"?"#fff":void 0),h=k(()=>n.state.type==="job"?"#fff":void 0);return Le(()=>n.state.type,y=>{y&&o("choose-type",y)}),(y,m)=>y.state.state==="choosing-type"?(c(),S("div",kt,[a(e($),{vertical:"",gap:"30"},{default:t(()=>[a(e(Fe),null,{default:t(()=>[v("Choose your stage type")]),_:1}),a(e(Ie),{value:y.state.type,"onUpdate:value":m[0]||(m[0]=A=>y.state.type=A),size:"large","button-style":"solid"},{default:t(()=>[a(e($),{gap:"24",vertical:""},{default:t(()=>[a(e($),{gap:"24"},{default:t(()=>[a(e(O),{placement:"left",title:"Forms"},{content:t(()=>[a(e(D),null,{default:t(()=>[v(" Use to collect user input via interaction with a form interface ")]),_:1}),a(te,{path:"concepts/forms"})]),default:t(()=>[a(e(N),{value:"form",class:"option"},{default:t(()=>[g("div",At,[(c(),w(e(Ge),{key:r.value,color:r.value},null,8,["color"])),Ct])]),_:1})]),_:1}),a(e(O),{placement:"right",title:"Hooks"},{content:t(()=>[a(e(D),null,{default:t(()=>[v("Use to build endpoints triggered by HTTP requests")]),_:1}),a(te,{path:"concepts/forms"})]),default:t(()=>[a(e(N),{value:"hook",class:"option"},{default:t(()=>[g("div",St,[(c(),w(e(qe),{key:p.value,color:p.value},null,8,["color"])),Vt])]),_:1})]),_:1})]),_:1}),a(e($),{gap:"24"},{default:t(()=>[a(e(O),{placement:"left",title:"Scripts"},{content:t(()=>[a(e(D),null,{default:t(()=>[v(" Use to write plain Python scripts ")]),_:1})]),default:t(()=>[a(e(N),{value:"script",class:"option"},{default:t(()=>[g("div",Lt,[(c(),w(e(We),{key:b.value,color:b.value},null,8,["color"])),Ft])]),_:1})]),_:1}),a(e(O),{placement:"right",title:"Jobs"},{content:t(()=>[a(e(D),null,{default:t(()=>[v(" Use to schedule your script execution periodically ")]),_:1})]),default:t(()=>[a(e(N),{value:"job",class:"option"},{default:t(()=>[g("div",It,[(c(),w(e(Ye),{key:h.value,color:h.value},null,8,["color"])),Tt])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})])):V("",!0)}});const $t=ne(xt,[["__scopeId","data-v-71199594"]]),Mt=g("br",null,null,-1),Pt=x({__name:"NewStage",props:{state:{}},emits:["update-name","update-file"],setup(s,{emit:o}){const n=s,{result:r}=q(()=>fetch("/_editor/api/workspace/root").then(u=>u.text())),p=k(()=>n.state.state!=="creating"?"":`${r.value}/${n.state.stage.filename}`),b=k(()=>n.state.state!=="creating"?"":`${n.state.stage.type[0].toUpperCase()+n.state.stage.type.slice(1)} title`),h=u=>{o("update-name",u);const d=Je(u);o("update-file",d),m()},{result:y,refetch:m}=q(()=>re.checkFile(n.state.stage.filename)),A=k(()=>ue(n.state.stage.filename));return(u,d)=>(c(),w(e(J),{layout:"vertical"},{default:t(()=>{var l;return[a(e(M),{label:b.value,required:!0},{default:t(()=>[a(e(K),{value:u.state.stage.title,"onUpdate:value":h},null,8,["value"])]),_:1},8,["label"]),a(e(M),{label:"Generated file",required:!0,"validate-status":A.value.valid?"success":"error",help:A.value.valid?void 0:A.value.reason},{default:t(()=>[a(e($e),{placement:"right"},{title:t(()=>[v(" You can change this later ")]),default:t(()=>[a(e(K),{value:u.state.stage.filename,"onUpdate:value":d[0]||(d[0]=L=>u.state.stage.filename=L),disabled:!0},null,8,["value"])]),_:1})]),_:1},8,["validate-status","help"]),a(e(M),null,{default:t(()=>[a(e(P),null,{default:t(()=>[v(" Your stage source code will be generated at: ")]),_:1}),Mt,a(e(P),{code:""},{default:t(()=>[v(T(p.value),1)]),_:1})]),_:1}),(l=e(y))!=null&&l.exists?(c(),w(e(ie),{key:0,type:"warning","show-icon":""},{message:t(()=>[a(e(P),null,{default:t(()=>[v(" This file already exists and might be in use by another stage. Contents will be left unchanged. ")]),_:1})]),_:1})):V("",!0)]}),_:1}))}}),Zt=x({__name:"CreateModal",props:{open:{type:Boolean},state:{}},emits:["close","choose-type","next-step","previous-step","create-stage","update-name","update-file"],setup(s,{emit:o}){const n=s,r=d=>o("update-name",d),p=d=>o("update-file",d),b=()=>o("close"),h=d=>o("choose-type",d),y=()=>o("next-step"),m=()=>o("previous-step"),A=()=>o("create-stage"),u=k(()=>!(n.state.state!=="creating"||!ue(n.state.stage.filename).valid||!n.state.stage.title));return(d,l)=>(c(),w(e(se),{open:d.open,title:"Create a new stage",onCancel:b},{footer:t(()=>[d.state.state==="creating"?(c(),w(e(j),{key:0,onClick:m},{default:t(()=>[v("Previous")]),_:1})):V("",!0),d.state.state==="creating"?(c(),w(e(j),{key:1,type:"primary",disabled:!u.value,onClick:A},{default:t(()=>[v(" Create ")]),_:1},8,["disabled"])):V("",!0),d.state.state==="choosing-type"?(c(),w(e(j),{key:2,type:"primary",disabled:!d.state.type,onClick:y},{default:t(()=>[v(" Next ")]),_:1},8,["disabled"])):V("",!0)]),default:t(()=>[d.state.state==="choosing-type"?(c(),w($t,{key:0,state:d.state,onChooseType:h},null,8,["state"])):V("",!0),d.state.state==="creating"?(c(),w(Pt,{key:1,state:d.state,onUpdateName:r,onUpdateFile:p},null,8,["state"])):V("",!0)]),_:1},8,["open"]))}}),Ht=x({__name:"FilterStages",emits:["update-filter"],setup(s,{emit:o}){const n=[{label:"Forms",value:"form"},{label:"Hooks",value:"hook"},{label:"Scripts",value:"script"},{label:"Jobs",value:"job"}],r=p=>o("update-filter",p);return(p,b)=>(c(),w(e(J),null,{default:t(()=>[a(e(M),{label:"Filter"},{default:t(()=>[a(e(Me),{mode:"multiple",style:{width:"360px"},placeholder:"All","onUpdate:value":r},{default:t(()=>[(c(),S(Y,null,le(n,h=>a(e(Pe),{key:h.value,value:h.value},{default:t(()=>[v(T(h.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1})]),_:1}))}}),Ot=200,Dt=s=>{if(!s)return[0,0];if(s.length===0)return[0,0];let o=-1/0,n=0;for(const r of s)r.position.x>o&&(o=r.position.x),n+=r.position.y/s.length;return[o+Ot,n]},G=s=>{if(s instanceof U)return"form";if(s instanceof E)return"hook";if(s instanceof B)return"job";if(s instanceof W)return"script";throw new Error("Invalid script type")},Nt=s=>s instanceof U?`/${s.path}`:s instanceof E?`/_hooks/${s.path}`:s instanceof B?`${s.schedule}`:"",jt={class:"ellipsis",style:{"max-width":"300px"}},Ut={class:"ellipsis",style:{"max-width":"250px"}},Et={class:"ellipsis",style:{"max-width":"200px"}},oe=100,Bt=x({__name:"Stages",setup(s){Ze(i=>({"62f8c36d":ve()}));const o=He(),{loading:n,result:r,refetch:p}=q(async()=>Promise.all([U.list(),E.list(),B.list(),W.list()]).then(([i,f,_,C])=>[...i,...f,..._,...C])),b=I(!1),h=async()=>{b.value=!1,p()},y=I([]),m=i=>{y.value=i},A=k(()=>r.value?y.value.length===0?r.value:r.value.filter(i=>y.value.includes(G(i))):[]),u=i=>{re.openFile(i)},d=k(()=>{const i=[{name:"Type",align:"left"},{name:"Title",align:"left"},{name:"File",align:"left"},{name:"Trigger",align:"left"},{name:"",align:"right"}],f=A.value;if(!f)return{columns:i,rows:[]};const _=f.map(C=>{const Z=Be(G(C));return{key:C.id,cells:[{type:"tag",text:Z},{type:"slot",key:"title",payload:{script:C}},{type:"slot",key:"file",payload:{script:C}},{type:"slot",key:"trigger",payload:{script:C}},{type:"actions",actions:[{icon:Re,label:"Open .py file",onClick:()=>u(C.file)},{icon:je,label:"Delete",onClick:()=>me(C.id)}]}]}});return{columns:i,rows:_}}),l=I({state:"idle"}),L=k(()=>l.value.state==="choosing-type"||l.value.state==="creating"),F=()=>{l.value={state:"choosing-type",type:null}},z=()=>{l.value={state:"idle"}},ce=i=>{l.value.state==="choosing-type"&&(l.value={state:"choosing-type",type:i})},pe=()=>{l.value.state==="choosing-type"&&l.value.type!==null&&(l.value={state:"creating",stage:{type:l.value.type,title:`Untitled ${l.value.type}`,filename:`untitled_${l.value.type}.py`}})},de=()=>{l.value.state==="creating"&&(l.value={state:"choosing-type",type:l.value.stage.type})},fe=i=>{l.value.state==="creating"&&(l.value.stage.title=i)},he=i=>{l.value.state==="creating"&&(l.value.stage.filename=i)},me=async i=>{var f,_;if(await ee("Are you sure you want to delete this script?")){const C=await ee("Do you want to delete the .py file associated with this script?",{okText:"Yes",cancelText:"No"});await((_=(f=r.value)==null?void 0:f.find(Z=>Z.id===i))==null?void 0:_.delete(C)),await p()}},ve=()=>(oe/1e3).toString()+"s",ge=async()=>{if(l.value.state!=="creating")return;const i=Dt(r.value||[]);let f;if(l.value.stage.type==="form"?f=await U.create(l.value.stage.title,l.value.stage.filename,i):l.value.stage.type==="hook"?f=await E.create(l.value.stage.title,l.value.stage.filename,i):l.value.stage.type==="job"?f=await B.create(l.value.stage.title,l.value.stage.filename,i):l.value.stage.type==="script"&&(f=await W.create(l.value.stage.title,l.value.stage.filename,i)),!f)throw new Error("Failed to create script");const _=f.id,C=l.value.stage.type;z(),await p(),setTimeout(()=>{Q(_,C)},oe)},Q=(i,f)=>{f==="form"&&o.push({name:"formEditor",params:{id:i}}),f==="hook"&&o.push({name:"hookEditor",params:{id:i}}),f==="script"&&o.push({name:"scriptEditor",params:{id:i}}),f==="job"&&o.push({name:"jobEditor",params:{id:i}})};return(i,f)=>(c(),S(Y,null,[a(Ue,null,{default:t(()=>[a(e(Oe),null,{default:t(()=>[v("Stages")]),_:1}),a(Ht,{onUpdateFilter:m}),a(Ee,{"empty-title":"There are no scripts","entity-name":"scripts",description:"",table:d.value,loading:e(n),title:"","create-button-text":"Create new",onCreate:F},{title:t(({payload:_})=>[g("div",jt,[a(e(De),{onClick:C=>Q(_.script.id,e(G)(_.script))},{default:t(()=>[v(T(_.script.title),1)]),_:2},1032,["onClick"])])]),secondary:t(()=>[e(r)&&!e(r).length?(c(),w(e(j),{key:0,onClick:f[0]||(f[0]=_=>b.value=!0)},{default:t(()=>[a(e($),{gap:"4",align:"center"},{default:t(()=>[v(" Start with AI "),a(e(yt),{size:16})]),_:1})]),_:1})):V("",!0)]),file:t(({payload:_})=>[g("div",Ut,[a(e(P),null,{default:t(()=>[v(T(_.script.file),1)]),_:2},1024)])]),trigger:t(({payload:_})=>[a(e(Ne),{color:"default"},{default:t(()=>[g("div",Et,T(e(Nt)(_.script)),1)]),_:2},1024)]),_:1},8,["table","loading"])]),_:1}),a(Zt,{open:L.value,state:l.value,onClose:z,onChooseType:ce,onNextStep:pe,onPreviousStep:de,onCreateStage:ge,onUpdateName:fe,onUpdateFile:he},null,8,["open","state"]),a(wt,{open:b.value,onClose:f[1]||(f[1]=_=>b.value=!1),onCloseAndRefetch:h},null,8,["open"])],64))}});const ma=ne(Bt,[["__scopeId","data-v-b0522b88"]]);export{ma as default}; +//# sourceMappingURL=Stages.41a6c387.js.map diff --git a/abstra_statics/dist/assets/Steps.2273c005.js b/abstra_statics/dist/assets/Steps.2273c005.js deleted file mode 100644 index 2a6d4b02f..000000000 --- a/abstra_statics/dist/assets/Steps.2273c005.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as p,f as l,X as n,a,aR as d,ee as r,R as f,o,ea as _,ec as i,$ as u}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="75f3b433-41d2-4ea5-9a0d-f656d62545fd",e._sentryDebugIdIdentifier="sentry-dbid-75f3b433-41d2-4ea5-9a0d-f656d62545fd")}catch{}})();const m={key:0,class:"p-steps p-component"},y={class:"p-steps-list"},b={class:"p-menuitem-link"},g={class:"p-steps-number"},I=p({__name:"Steps",props:{stepsInfo:{type:Object,default:null}},setup(e){const s=e,c=l(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",to:""})):[]);return(h,k)=>e.stepsInfo?(o(),n("nav",m,[a("ol",y,[(o(!0),n(d,null,r(c.value,(v,t)=>(o(),n("li",{key:t,class:_(["p-steps-item",{"p-highlight":t+1===e.stepsInfo.current}])},[a("span",b,[a("span",g,i(t+1),1)])],2))),128))])])):f("",!0)}});const D=u(I,[["__scopeId","data-v-c916ecf3"]]);export{D as S}; -//# sourceMappingURL=Steps.2273c005.js.map diff --git a/abstra_statics/dist/assets/Steps.767c106d.js b/abstra_statics/dist/assets/Steps.767c106d.js new file mode 100644 index 000000000..873e67409 --- /dev/null +++ b/abstra_statics/dist/assets/Steps.767c106d.js @@ -0,0 +1,2 @@ +import{d as p,f as l,X as n,a,aR as r,ee as d,R as _,o,ea as i,ec as f,$ as u}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="68818073-4403-4a0b-9e80-fabadb558702",e._sentryDebugIdIdentifier="sentry-dbid-68818073-4403-4a0b-9e80-fabadb558702")}catch{}})();const m={key:0,class:"p-steps p-component"},b={class:"p-steps-list"},y={class:"p-menuitem-link"},g={class:"p-steps-number"},I=p({__name:"Steps",props:{stepsInfo:{type:Object,default:null}},setup(e){const s=e,c=l(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",to:""})):[]);return(h,k)=>e.stepsInfo?(o(),n("nav",m,[a("ol",b,[(o(!0),n(r,null,d(c.value,(v,t)=>(o(),n("li",{key:t,class:i(["p-steps-item",{"p-highlight":t+1===e.stepsInfo.current}])},[a("span",y,[a("span",g,f(t+1),1)])],2))),128))])])):_("",!0)}});const D=u(I,[["__scopeId","data-v-c916ecf3"]]);export{D as S}; +//# sourceMappingURL=Steps.767c106d.js.map diff --git a/abstra_statics/dist/assets/TabPane.9889f7a8.js b/abstra_statics/dist/assets/TabPane.d0ca7ad5.js similarity index 99% rename from abstra_statics/dist/assets/TabPane.9889f7a8.js rename to abstra_statics/dist/assets/TabPane.d0ca7ad5.js index 5eabdb704..0c07c453d 100644 --- a/abstra_statics/dist/assets/TabPane.9889f7a8.js +++ b/abstra_statics/dist/assets/TabPane.d0ca7ad5.js @@ -1,4 +1,4 @@ -import{dY as Ke,dZ as et,d_ as ft,d$ as pt,e0 as ht,e1 as gt,e2 as mt,e3 as $t,Q as W,aq as Oe,a9 as ye,d as ee,e as U,f as H,b as p,b7 as q,ai as ie,aK as we,S as T,cj as L,W as Pe,g as se,bC as yt,e4 as xt,by as St,bw as _t,e5 as Ct,au as Ie,aN as F,V as Tt,B as wt,K as Pt,bF as It,al as Ge,ak as J,as as xe,e6 as $e,aE as Rt,aP as Et,e7 as Xe,ac as Bt,ad as Lt,an as At,ao as tt,dv as at,ap as nt,aC as Dt,aj as Ot,aL as Ce,b6 as Mt,aM as kt,az as Nt,bY as Wt,at as Ht,c7 as De,ah as zt,b4 as Kt,aW as je,a$ as Gt}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ef9d1647-91b7-4d39-b180-e708c2b61c24",e._sentryDebugIdIdentifier="sentry-dbid-ef9d1647-91b7-4d39-b180-e708c2b61c24")}catch{}})();function Xt(e,t,a,o){if(!Ke(e))return e;t=et(t,e);for(var i=-1,l=t.length,n=l-1,c=e;c!=null&&++i{e(...l)}))}return Oe(()=>{a.value=!0,ye.cancel(t.value)}),o}function qt(e){const t=W([]),a=W(typeof e=="function"?e():e),o=Yt(()=>{let l=a.value;t.value.forEach(n=>{l=n(l)}),t.value=[],a.value=l});function i(l){t.value.push(l),o()}return[a,i]}const Ut=ee({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:o}=t;const i=U();function l(u){var v;!((v=e.tab)===null||v===void 0)&&v.disabled||e.onClick(u)}a({domRef:i});function n(u){var v;u.preventDefault(),u.stopPropagation(),e.editable.onEdit("remove",{key:(v=e.tab)===null||v===void 0?void 0:v.key,event:u})}const c=H(()=>{var u;return e.editable&&e.closable!==!1&&!(!((u=e.tab)===null||u===void 0)&&u.disabled)});return()=>{var u;const{prefixCls:v,id:b,active:S,tab:{key:h,tab:s,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:_,editable:D,onFocus:K}=e,O=`${v}-tab`,r=p("div",{key:h,ref:i,class:ie(O,{[`${O}-with-remove`]:c.value,[`${O}-active`]:S,[`${O}-disabled`]:y}),style:o.style,onClick:l},[p("div",{role:"tab","aria-selected":S,id:b&&`${b}-tab-${h}`,class:`${O}-btn`,"aria-controls":b&&`${b}-panel-${h}`,"aria-disabled":y,tabindex:y?null:0,onClick:m=>{m.stopPropagation(),l(m)},onKeydown:m=>{[q.SPACE,q.ENTER].includes(m.which)&&(m.preventDefault(),l(m))},onFocus:K},[typeof s=="function"?s():s]),c.value&&p("button",{type:"button","aria-label":_||"remove",tabindex:0,class:`${O}-remove`,onClick:m=>{m.stopPropagation(),n(m)}},[(x==null?void 0:x())||((u=D.removeIcon)===null||u===void 0?void 0:u.call(D))||"\xD7"])]);return w?w(r):r}}}),Fe={width:0,height:0,left:0,top:0};function Zt(e,t){const a=U(new Map);return we(()=>{var o,i;const l=new Map,n=e.value,c=t.value.get((o=n[0])===null||o===void 0?void 0:o.key)||Fe,u=c.left+c.width;for(let v=0;v{const{prefixCls:l,editable:n,locale:c}=e;return!n||n.showAdd===!1?null:p("button",{ref:i,type:"button",class:`${l}-nav-add`,style:o.style,"aria-label":(c==null?void 0:c.addAriaLabel)||"Add tab",onClick:u=>{n.onEdit("add",{event:u})}},[n.addIcon?n.addIcon():"+"])}}}),Qt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Ie.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:F()},Jt=ee({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Qt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:o}=t;const[i,l]=L(!1),[n,c]=L(null),u=s=>{const y=e.tabs.filter(_=>!_.disabled);let x=y.findIndex(_=>_.key===n.value)||0;const w=y.length;for(let _=0;_{const{which:y}=s;if(!i.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(l(!0),s.preventDefault());return}switch(y){case q.UP:u(-1),s.preventDefault();break;case q.DOWN:u(1),s.preventDefault();break;case q.ESC:l(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,s);break}},b=H(()=>`${e.id}-more-popup`),S=H(()=>n.value!==null?`${b.value}-${n.value}`:null),h=(s,y)=>{s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:y,event:s})};return Pe(()=>{se(n,()=>{const s=document.getElementById(S.value);s&&s.scrollIntoView&&s.scrollIntoView(!1)},{flush:"post",immediate:!0})}),se(i,()=>{i.value||c(null)}),yt({}),()=>{var s;const{prefixCls:y,id:x,tabs:w,locale:_,mobile:D,moreIcon:K=((s=o.moreIcon)===null||s===void 0?void 0:s.call(o))||p(xt,null,null),moreTransitionName:O,editable:r,tabBarGutter:m,rtl:d,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const P=`${y}-dropdown`,G=_==null?void 0:_.dropdownAriaLabel,le={[d?"marginRight":"marginLeft"]:m};w.length||(le.visibility="hidden",le.order=1);const de=ie({[`${P}-rtl`]:d,[`${E}`]:!0}),be=D?null:p(Ct,{prefixCls:P,trigger:["hover"],visible:i.value,transitionName:O,onVisibleChange:l,overlayClassName:de,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(St,{onClick:I=>{let{key:Z,domEvent:M}=I;$(Z,M),l(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":S.value,selectedKeys:[n.value],"aria-label":G!==void 0?G:"expanded dropdown"},{default:()=>[w.map(I=>{var Z,M;const V=r&&I.closable!==!1&&!I.disabled;return p(_t,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[p("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${P}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),h(Y,I.key)}},[((Z=I.closeIcon)===null||Z===void 0?void 0:Z.call(I))||((M=r.removeIcon)===null||M===void 0?void 0:M.call(r))||"\xD7"])]})})]}),default:()=>p("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":i.value,onKeydown:v},[K])});return p("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[be,p(it,{prefixCls:y,locale:_,editable:r},null)])}}}),lt=Symbol("tabsContextKey"),rt=e=>{Tt(lt,e)},st=()=>wt(lt,{tabs:U([]),prefixCls:U()});ee({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:a}=t;return rt(Pt(e)),()=>{var o;return(o=a.default)===null||o===void 0?void 0:o.call(a)}}});const ea=.1,Ve=.01,Te=20,Ye=Math.pow(.995,Te);function ta(e,t){const[a,o]=L(),[i,l]=L(0),[n,c]=L(0),[u,v]=L(),b=U();function S(r){const{screenX:m,screenY:d}=r.touches[0];o({x:m,y:d}),clearInterval(b.value)}function h(r){if(!a.value)return;r.preventDefault();const{screenX:m,screenY:d}=r.touches[0],$=m-a.value.x,E=d-a.value.y;t($,E),o({x:m,y:d});const P=Date.now();c(P-i.value),l(P),v({x:$,y:E})}function s(){if(!a.value)return;const r=u.value;if(o(null),v(null),r){const m=r.x/n.value,d=r.y/n.value,$=Math.abs(m),E=Math.abs(d);if(Math.max($,E){if(Math.abs(P)P?($=m,y.value="x"):($=d,y.value="y"),t(-$,-$)&&r.preventDefault()}const w=U({onTouchStart:S,onTouchMove:h,onTouchEnd:s,onWheel:x});function _(r){w.value.onTouchStart(r)}function D(r){w.value.onTouchMove(r)}function K(r){w.value.onTouchEnd(r)}function O(r){w.value.onWheel(r)}Pe(()=>{var r,m;document.addEventListener("touchmove",D,{passive:!1}),document.addEventListener("touchend",K,{passive:!1}),(r=e.value)===null||r===void 0||r.addEventListener("touchstart",_,{passive:!1}),(m=e.value)===null||m===void 0||m.addEventListener("wheel",O,{passive:!1})}),Oe(()=>{document.removeEventListener("touchmove",D),document.removeEventListener("touchend",K)})}function qe(e,t){const a=U(e);function o(i){const l=typeof i=="function"?i(a.value):i;l!==a.value&&t(l,a.value),a.value=l}return[a,o]}const Ue={width:0,height:0,left:0,top:0,right:0},aa=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:xe(),editable:xe(),moreIcon:Ie.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:xe(),popupClassName:String,getPopupContainer:F(),onTabClick:{type:Function},onTabScroll:{type:Function}}),Ze=ee({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:aa(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:o}=t;const{tabs:i,prefixCls:l}=st(),n=W(),c=W(),u=W(),v=W(),[b,S]=It(),h=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[s,y]=qe(0,(g,f)=>{h.value&&e.onTabScroll&&e.onTabScroll({direction:g>f?"left":"right"})}),[x,w]=qe(0,(g,f)=>{!h.value&&e.onTabScroll&&e.onTabScroll({direction:g>f?"top":"bottom"})}),[_,D]=L(0),[K,O]=L(0),[r,m]=L(null),[d,$]=L(null),[E,P]=L(0),[G,le]=L(0),[de,be]=qt(new Map),I=Zt(i,de),Z=H(()=>`${l.value}-nav-operations-hidden`),M=W(0),V=W(0);we(()=>{h.value?e.rtl?(M.value=0,V.value=Math.max(0,_.value-r.value)):(M.value=Math.min(0,r.value-_.value),V.value=0):(M.value=Math.min(0,d.value-K.value),V.value=0)});const Y=g=>gV.value?V.value:g,fe=W(),[z,pe]=L(),he=()=>{pe(Date.now())},ge=()=>{clearTimeout(fe.value)},Se=(g,f)=>{g(C=>Y(C+f))};ta(n,(g,f)=>{if(h.value){if(r.value>=_.value)return!1;Se(y,g)}else{if(d.value>=K.value)return!1;Se(w,f)}return ge(),he(),!0}),se(z,()=>{ge(),z.value&&(fe.value=setTimeout(()=>{pe(0)},100))});const ce=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const f=I.value.get(g)||{width:0,height:0,left:0,right:0,top:0};if(h.value){let C=s.value;e.rtl?f.rights.value+r.value&&(C=f.right+f.width-r.value):f.left<-s.value?C=-f.left:f.left+f.width>-s.value+r.value&&(C=-(f.left+f.width-r.value)),w(0),y(Y(C))}else{let C=x.value;f.top<-x.value?C=-f.top:f.top+f.height>-x.value+d.value&&(C=-(f.top+f.height-d.value)),y(0),w(Y(C))}},Re=W(0),Ee=W(0);we(()=>{let g,f,C,R,k,N;const re=I.value;["top","bottom"].includes(e.tabPosition)?(g="width",R=r.value,k=_.value,N=E.value,f=e.rtl?"right":"left",C=Math.abs(s.value)):(g="height",R=d.value,k=_.value,N=G.value,f="top",C=-x.value);let X=R;k+N>R&&kC+X){ue=A-1;break}}let B=0;for(let A=ae-1;A>=0;A-=1)if((re.get(Q[A].key)||Ue)[f]{var g,f,C,R,k;const N=((g=n.value)===null||g===void 0?void 0:g.offsetWidth)||0,re=((f=n.value)===null||f===void 0?void 0:f.offsetHeight)||0,X=((C=v.value)===null||C===void 0?void 0:C.$el)||{},Q=X.offsetWidth||0,ae=X.offsetHeight||0;m(N),$(re),P(Q),le(ae);const ue=(((R=c.value)===null||R===void 0?void 0:R.offsetWidth)||0)-Q,B=(((k=c.value)===null||k===void 0?void 0:k.offsetHeight)||0)-ae;D(ue),O(B),be(()=>{const A=new Map;return i.value.forEach(j=>{let{key:ve}=j;const ne=S.value.get(ve),oe=(ne==null?void 0:ne.$el)||ne;oe&&A.set(ve,{width:oe.offsetWidth,height:oe.offsetHeight,left:oe.offsetLeft,top:oe.offsetTop})}),A})},ke=H(()=>[...i.value.slice(0,Re.value),...i.value.slice(Ee.value+1)]),[ct,ut]=L(),te=H(()=>I.value.get(e.activeKey)),Ne=W(),We=()=>{ye.cancel(Ne.value)};se([te,h,()=>e.rtl],()=>{const g={};te.value&&(h.value?(e.rtl?g.right=$e(te.value.right):g.left=$e(te.value.left),g.width=$e(te.value.width)):(g.top=$e(te.value.top),g.height=$e(te.value.height))),We(),Ne.value=ye(()=>{ut(g)})}),se([()=>e.activeKey,te,I,h],()=>{ce()},{flush:"post"}),se([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>i.value],()=>{Be()},{flush:"post"});const Le=g=>{let{position:f,prefixCls:C,extra:R}=g;if(!R)return null;const k=R==null?void 0:R({position:f});return k?p("div",{class:`${C}-extra-content`},[k]):null};return Oe(()=>{ge(),We()}),()=>{const{id:g,animated:f,activeKey:C,rtl:R,editable:k,locale:N,tabPosition:re,tabBarGutter:X,onTabClick:Q}=e,{class:ae,style:ue}=a,B=l.value,A=!!ke.value.length,j=`${B}-nav-wrap`;let ve,ne,oe,He;h.value?R?(ne=s.value>0,ve=s.value+r.value<_.value):(ve=s.value<0,ne=-s.value+r.value<_.value):(oe=x.value<0,He=-x.value+d.value{const{key:me}=Ae;return p(Ut,{id:g,prefixCls:B,key:me,tab:Ae,style:vt===0?void 0:_e,closable:Ae.closable,editable:k,active:me===C,removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:b(me),onClick:bt=>{Q(me,bt)},onFocus:()=>{ce(me),he(),n.value&&(R||(n.value.scrollLeft=0),n.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:ie(`${B}-nav`,ae),style:ue,onKeydown:()=>{he()}},[p(Le,{position:"left",prefixCls:B,extra:o.leftExtra},null),p(Ge,{onResize:Be},{default:()=>[p("div",{class:ie(j,{[`${j}-ping-left`]:ve,[`${j}-ping-right`]:ne,[`${j}-ping-top`]:oe,[`${j}-ping-bottom`]:He}),ref:n},[p(Ge,{onResize:Be},{default:()=>[p("div",{ref:c,class:`${B}-nav-list`,style:{transform:`translate(${s.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[ze,p(it,{ref:v,prefixCls:B,locale:N,editable:k,style:T(T({},ze.length===0?void 0:_e),{visibility:A?"hidden":null})},null),p("div",{class:ie(`${B}-ink-bar`,{[`${B}-ink-bar-animated`]:f.inkBar}),style:ct.value},null)])]})])]}),p(Jt,J(J({},e),{},{removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:u,prefixCls:B,tabs:ke.value,class:!A&&Z.value}),ot(o,["moreIcon"])),p(Le,{position:"right",prefixCls:B,extra:o.rightExtra},null),p(Le,{position:"right",prefixCls:B,extra:o.tabBarExtraContent},null)])}}}),na=ee({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:o,activeKey:i,animated:l,tabPosition:n,rtl:c,destroyInactiveTabPane:u}=e,v=l.tabPane,b=a.value,S=t.value.findIndex(h=>h.key===i);return p("div",{class:`${b}-content-holder`},[p("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:v}],style:S&&v?{[c?"marginRight":"marginLeft"]:`-${S}00%`}:null},[t.value.map(h=>Rt(h.node,{key:h.key,prefixCls:b,tabKey:h.key,id:o,animated:v,active:h.key===i,destroyInactiveTabPane:u}))])])}}});var oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const ia=oa;function Qe(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Xe(e,"slide-up"),Xe(e,"slide-down")]]},da=sa,ca=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:o,tabsCardGutter:i,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ua=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},At),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},va=e=>{const{componentCls:t,margin:a,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, +import{dY as Ke,dZ as et,d_ as ft,d$ as pt,e0 as ht,e1 as gt,e2 as mt,e3 as $t,Q as W,aq as Oe,a9 as ye,d as ee,e as U,f as H,b as p,b7 as q,ai as ie,aK as we,S as T,cj as L,W as Pe,g as se,bC as yt,e4 as xt,by as St,bw as _t,e5 as Ct,au as Ie,aN as F,V as Tt,B as wt,K as Pt,bF as It,al as Ge,ak as J,as as xe,e6 as $e,aE as Rt,aP as Et,e7 as Xe,ac as Bt,ad as Lt,an as At,ao as tt,dv as at,ap as nt,aC as Dt,aj as Ot,aL as Ce,b6 as Mt,aM as kt,az as Nt,bY as Wt,at as Ht,c7 as De,ah as zt,b4 as Kt,aW as je,a$ as Gt}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dd8d64c5-dab0-44f8-b6a5-dc922fbc69aa",e._sentryDebugIdIdentifier="sentry-dbid-dd8d64c5-dab0-44f8-b6a5-dc922fbc69aa")}catch{}})();function Xt(e,t,a,o){if(!Ke(e))return e;t=et(t,e);for(var i=-1,l=t.length,n=l-1,c=e;c!=null&&++i{e(...l)}))}return Oe(()=>{a.value=!0,ye.cancel(t.value)}),o}function qt(e){const t=W([]),a=W(typeof e=="function"?e():e),o=Yt(()=>{let l=a.value;t.value.forEach(n=>{l=n(l)}),t.value=[],a.value=l});function i(l){t.value.push(l),o()}return[a,i]}const Ut=ee({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:o}=t;const i=U();function l(u){var v;!((v=e.tab)===null||v===void 0)&&v.disabled||e.onClick(u)}a({domRef:i});function n(u){var v;u.preventDefault(),u.stopPropagation(),e.editable.onEdit("remove",{key:(v=e.tab)===null||v===void 0?void 0:v.key,event:u})}const c=H(()=>{var u;return e.editable&&e.closable!==!1&&!(!((u=e.tab)===null||u===void 0)&&u.disabled)});return()=>{var u;const{prefixCls:v,id:b,active:S,tab:{key:h,tab:s,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:_,editable:D,onFocus:K}=e,O=`${v}-tab`,r=p("div",{key:h,ref:i,class:ie(O,{[`${O}-with-remove`]:c.value,[`${O}-active`]:S,[`${O}-disabled`]:y}),style:o.style,onClick:l},[p("div",{role:"tab","aria-selected":S,id:b&&`${b}-tab-${h}`,class:`${O}-btn`,"aria-controls":b&&`${b}-panel-${h}`,"aria-disabled":y,tabindex:y?null:0,onClick:m=>{m.stopPropagation(),l(m)},onKeydown:m=>{[q.SPACE,q.ENTER].includes(m.which)&&(m.preventDefault(),l(m))},onFocus:K},[typeof s=="function"?s():s]),c.value&&p("button",{type:"button","aria-label":_||"remove",tabindex:0,class:`${O}-remove`,onClick:m=>{m.stopPropagation(),n(m)}},[(x==null?void 0:x())||((u=D.removeIcon)===null||u===void 0?void 0:u.call(D))||"\xD7"])]);return w?w(r):r}}}),Fe={width:0,height:0,left:0,top:0};function Zt(e,t){const a=U(new Map);return we(()=>{var o,i;const l=new Map,n=e.value,c=t.value.get((o=n[0])===null||o===void 0?void 0:o.key)||Fe,u=c.left+c.width;for(let v=0;v{const{prefixCls:l,editable:n,locale:c}=e;return!n||n.showAdd===!1?null:p("button",{ref:i,type:"button",class:`${l}-nav-add`,style:o.style,"aria-label":(c==null?void 0:c.addAriaLabel)||"Add tab",onClick:u=>{n.onEdit("add",{event:u})}},[n.addIcon?n.addIcon():"+"])}}}),Qt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Ie.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:F()},Jt=ee({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Qt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:o}=t;const[i,l]=L(!1),[n,c]=L(null),u=s=>{const y=e.tabs.filter(_=>!_.disabled);let x=y.findIndex(_=>_.key===n.value)||0;const w=y.length;for(let _=0;_{const{which:y}=s;if(!i.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(l(!0),s.preventDefault());return}switch(y){case q.UP:u(-1),s.preventDefault();break;case q.DOWN:u(1),s.preventDefault();break;case q.ESC:l(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,s);break}},b=H(()=>`${e.id}-more-popup`),S=H(()=>n.value!==null?`${b.value}-${n.value}`:null),h=(s,y)=>{s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:y,event:s})};return Pe(()=>{se(n,()=>{const s=document.getElementById(S.value);s&&s.scrollIntoView&&s.scrollIntoView(!1)},{flush:"post",immediate:!0})}),se(i,()=>{i.value||c(null)}),yt({}),()=>{var s;const{prefixCls:y,id:x,tabs:w,locale:_,mobile:D,moreIcon:K=((s=o.moreIcon)===null||s===void 0?void 0:s.call(o))||p(xt,null,null),moreTransitionName:O,editable:r,tabBarGutter:m,rtl:d,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const P=`${y}-dropdown`,G=_==null?void 0:_.dropdownAriaLabel,le={[d?"marginRight":"marginLeft"]:m};w.length||(le.visibility="hidden",le.order=1);const de=ie({[`${P}-rtl`]:d,[`${E}`]:!0}),be=D?null:p(Ct,{prefixCls:P,trigger:["hover"],visible:i.value,transitionName:O,onVisibleChange:l,overlayClassName:de,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(St,{onClick:I=>{let{key:Z,domEvent:M}=I;$(Z,M),l(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":S.value,selectedKeys:[n.value],"aria-label":G!==void 0?G:"expanded dropdown"},{default:()=>[w.map(I=>{var Z,M;const V=r&&I.closable!==!1&&!I.disabled;return p(_t,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[p("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${P}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),h(Y,I.key)}},[((Z=I.closeIcon)===null||Z===void 0?void 0:Z.call(I))||((M=r.removeIcon)===null||M===void 0?void 0:M.call(r))||"\xD7"])]})})]}),default:()=>p("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":i.value,onKeydown:v},[K])});return p("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[be,p(it,{prefixCls:y,locale:_,editable:r},null)])}}}),lt=Symbol("tabsContextKey"),rt=e=>{Tt(lt,e)},st=()=>wt(lt,{tabs:U([]),prefixCls:U()});ee({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:a}=t;return rt(Pt(e)),()=>{var o;return(o=a.default)===null||o===void 0?void 0:o.call(a)}}});const ea=.1,Ve=.01,Te=20,Ye=Math.pow(.995,Te);function ta(e,t){const[a,o]=L(),[i,l]=L(0),[n,c]=L(0),[u,v]=L(),b=U();function S(r){const{screenX:m,screenY:d}=r.touches[0];o({x:m,y:d}),clearInterval(b.value)}function h(r){if(!a.value)return;r.preventDefault();const{screenX:m,screenY:d}=r.touches[0],$=m-a.value.x,E=d-a.value.y;t($,E),o({x:m,y:d});const P=Date.now();c(P-i.value),l(P),v({x:$,y:E})}function s(){if(!a.value)return;const r=u.value;if(o(null),v(null),r){const m=r.x/n.value,d=r.y/n.value,$=Math.abs(m),E=Math.abs(d);if(Math.max($,E){if(Math.abs(P)P?($=m,y.value="x"):($=d,y.value="y"),t(-$,-$)&&r.preventDefault()}const w=U({onTouchStart:S,onTouchMove:h,onTouchEnd:s,onWheel:x});function _(r){w.value.onTouchStart(r)}function D(r){w.value.onTouchMove(r)}function K(r){w.value.onTouchEnd(r)}function O(r){w.value.onWheel(r)}Pe(()=>{var r,m;document.addEventListener("touchmove",D,{passive:!1}),document.addEventListener("touchend",K,{passive:!1}),(r=e.value)===null||r===void 0||r.addEventListener("touchstart",_,{passive:!1}),(m=e.value)===null||m===void 0||m.addEventListener("wheel",O,{passive:!1})}),Oe(()=>{document.removeEventListener("touchmove",D),document.removeEventListener("touchend",K)})}function qe(e,t){const a=U(e);function o(i){const l=typeof i=="function"?i(a.value):i;l!==a.value&&t(l,a.value),a.value=l}return[a,o]}const Ue={width:0,height:0,left:0,top:0,right:0},aa=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:xe(),editable:xe(),moreIcon:Ie.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:xe(),popupClassName:String,getPopupContainer:F(),onTabClick:{type:Function},onTabScroll:{type:Function}}),Ze=ee({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:aa(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:o}=t;const{tabs:i,prefixCls:l}=st(),n=W(),c=W(),u=W(),v=W(),[b,S]=It(),h=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[s,y]=qe(0,(g,f)=>{h.value&&e.onTabScroll&&e.onTabScroll({direction:g>f?"left":"right"})}),[x,w]=qe(0,(g,f)=>{!h.value&&e.onTabScroll&&e.onTabScroll({direction:g>f?"top":"bottom"})}),[_,D]=L(0),[K,O]=L(0),[r,m]=L(null),[d,$]=L(null),[E,P]=L(0),[G,le]=L(0),[de,be]=qt(new Map),I=Zt(i,de),Z=H(()=>`${l.value}-nav-operations-hidden`),M=W(0),V=W(0);we(()=>{h.value?e.rtl?(M.value=0,V.value=Math.max(0,_.value-r.value)):(M.value=Math.min(0,r.value-_.value),V.value=0):(M.value=Math.min(0,d.value-K.value),V.value=0)});const Y=g=>gV.value?V.value:g,fe=W(),[z,pe]=L(),he=()=>{pe(Date.now())},ge=()=>{clearTimeout(fe.value)},Se=(g,f)=>{g(C=>Y(C+f))};ta(n,(g,f)=>{if(h.value){if(r.value>=_.value)return!1;Se(y,g)}else{if(d.value>=K.value)return!1;Se(w,f)}return ge(),he(),!0}),se(z,()=>{ge(),z.value&&(fe.value=setTimeout(()=>{pe(0)},100))});const ce=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const f=I.value.get(g)||{width:0,height:0,left:0,right:0,top:0};if(h.value){let C=s.value;e.rtl?f.rights.value+r.value&&(C=f.right+f.width-r.value):f.left<-s.value?C=-f.left:f.left+f.width>-s.value+r.value&&(C=-(f.left+f.width-r.value)),w(0),y(Y(C))}else{let C=x.value;f.top<-x.value?C=-f.top:f.top+f.height>-x.value+d.value&&(C=-(f.top+f.height-d.value)),y(0),w(Y(C))}},Re=W(0),Ee=W(0);we(()=>{let g,f,C,R,k,N;const re=I.value;["top","bottom"].includes(e.tabPosition)?(g="width",R=r.value,k=_.value,N=E.value,f=e.rtl?"right":"left",C=Math.abs(s.value)):(g="height",R=d.value,k=_.value,N=G.value,f="top",C=-x.value);let X=R;k+N>R&&kC+X){ue=A-1;break}}let B=0;for(let A=ae-1;A>=0;A-=1)if((re.get(Q[A].key)||Ue)[f]{var g,f,C,R,k;const N=((g=n.value)===null||g===void 0?void 0:g.offsetWidth)||0,re=((f=n.value)===null||f===void 0?void 0:f.offsetHeight)||0,X=((C=v.value)===null||C===void 0?void 0:C.$el)||{},Q=X.offsetWidth||0,ae=X.offsetHeight||0;m(N),$(re),P(Q),le(ae);const ue=(((R=c.value)===null||R===void 0?void 0:R.offsetWidth)||0)-Q,B=(((k=c.value)===null||k===void 0?void 0:k.offsetHeight)||0)-ae;D(ue),O(B),be(()=>{const A=new Map;return i.value.forEach(j=>{let{key:ve}=j;const ne=S.value.get(ve),oe=(ne==null?void 0:ne.$el)||ne;oe&&A.set(ve,{width:oe.offsetWidth,height:oe.offsetHeight,left:oe.offsetLeft,top:oe.offsetTop})}),A})},ke=H(()=>[...i.value.slice(0,Re.value),...i.value.slice(Ee.value+1)]),[ct,ut]=L(),te=H(()=>I.value.get(e.activeKey)),Ne=W(),We=()=>{ye.cancel(Ne.value)};se([te,h,()=>e.rtl],()=>{const g={};te.value&&(h.value?(e.rtl?g.right=$e(te.value.right):g.left=$e(te.value.left),g.width=$e(te.value.width)):(g.top=$e(te.value.top),g.height=$e(te.value.height))),We(),Ne.value=ye(()=>{ut(g)})}),se([()=>e.activeKey,te,I,h],()=>{ce()},{flush:"post"}),se([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>i.value],()=>{Be()},{flush:"post"});const Le=g=>{let{position:f,prefixCls:C,extra:R}=g;if(!R)return null;const k=R==null?void 0:R({position:f});return k?p("div",{class:`${C}-extra-content`},[k]):null};return Oe(()=>{ge(),We()}),()=>{const{id:g,animated:f,activeKey:C,rtl:R,editable:k,locale:N,tabPosition:re,tabBarGutter:X,onTabClick:Q}=e,{class:ae,style:ue}=a,B=l.value,A=!!ke.value.length,j=`${B}-nav-wrap`;let ve,ne,oe,He;h.value?R?(ne=s.value>0,ve=s.value+r.value<_.value):(ve=s.value<0,ne=-s.value+r.value<_.value):(oe=x.value<0,He=-x.value+d.value{const{key:me}=Ae;return p(Ut,{id:g,prefixCls:B,key:me,tab:Ae,style:vt===0?void 0:_e,closable:Ae.closable,editable:k,active:me===C,removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:b(me),onClick:bt=>{Q(me,bt)},onFocus:()=>{ce(me),he(),n.value&&(R||(n.value.scrollLeft=0),n.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:ie(`${B}-nav`,ae),style:ue,onKeydown:()=>{he()}},[p(Le,{position:"left",prefixCls:B,extra:o.leftExtra},null),p(Ge,{onResize:Be},{default:()=>[p("div",{class:ie(j,{[`${j}-ping-left`]:ve,[`${j}-ping-right`]:ne,[`${j}-ping-top`]:oe,[`${j}-ping-bottom`]:He}),ref:n},[p(Ge,{onResize:Be},{default:()=>[p("div",{ref:c,class:`${B}-nav-list`,style:{transform:`translate(${s.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[ze,p(it,{ref:v,prefixCls:B,locale:N,editable:k,style:T(T({},ze.length===0?void 0:_e),{visibility:A?"hidden":null})},null),p("div",{class:ie(`${B}-ink-bar`,{[`${B}-ink-bar-animated`]:f.inkBar}),style:ct.value},null)])]})])]}),p(Jt,J(J({},e),{},{removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:u,prefixCls:B,tabs:ke.value,class:!A&&Z.value}),ot(o,["moreIcon"])),p(Le,{position:"right",prefixCls:B,extra:o.rightExtra},null),p(Le,{position:"right",prefixCls:B,extra:o.tabBarExtraContent},null)])}}}),na=ee({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:o,activeKey:i,animated:l,tabPosition:n,rtl:c,destroyInactiveTabPane:u}=e,v=l.tabPane,b=a.value,S=t.value.findIndex(h=>h.key===i);return p("div",{class:`${b}-content-holder`},[p("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:v}],style:S&&v?{[c?"marginRight":"marginLeft"]:`-${S}00%`}:null},[t.value.map(h=>Rt(h.node,{key:h.key,prefixCls:b,tabKey:h.key,id:o,animated:v,active:h.key===i,destroyInactiveTabPane:u}))])])}}});var oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const ia=oa;function Qe(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Xe(e,"slide-up"),Xe(e,"slide-down")]]},da=sa,ca=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:o,tabsCardGutter:i,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ua=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},At),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},va=e=>{const{componentCls:t,margin:a,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${a}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ba=e=>{const{componentCls:t,padding:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${a}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${a}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${a}px ${e.paddingXXS*1.5}px`}}}}}},fa=e=>{const{componentCls:t,tabsActiveColor:a,tabsHoverColor:o,iconCls:i,tabsHorizontalGutter:l}=e,n=`${t}-tab`;return{[n]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":T({"&:focus:not(:focus-visible), &:active":{color:a}},at(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${n}-active ${n}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-disabled ${n}-btn, &${n}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${n}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${n} + ${n}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},pa=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:o,tabsCardGutter:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ha=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeight:o,tabsCardGutter:i,tabsHoverColor:l,tabsActiveColor:n,colorSplit:c}=e;return{[t]:T(T(T(T({},tt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:T({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${c}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:n}},at(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),fa(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%",["&-animated"]:{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},ga=Bt("Tabs",e=>{const t=e.controlHeightLG,a=Lt(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[ba(a),pa(a),va(a),ua(a),ca(a),ha(a),da(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let Je=0;const dt=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:F(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Ce(),animated:Mt([Boolean,Object]),renderTabBar:F(),tabBarGutter:{type:Number},tabBarStyle:xe(),tabPosition:Ce(),destroyInactiveTabPane:kt(),hideAdd:Boolean,type:Ce(),size:Ce(),centered:Boolean,onEdit:F(),onChange:F(),onTabClick:F(),onTabScroll:F(),"onUpdate:activeKey":F(),locale:xe(),onPrevClick:F(),onNextClick:F(),tabBarExtraContent:Ie.any});function ma(e){return e.map(t=>{if(Nt(t)){const a=T({},t.props||{});for(const[h,s]of Object.entries(a))delete a[h],a[Wt(h)]=s;const o=t.children||{},i=t.key!==void 0?t.key:void 0,{tab:l=o.tab,disabled:n,forceRender:c,closable:u,animated:v,active:b,destroyInactiveTabPane:S}=a;return T(T({key:i},a),{node:t,closeIcon:o.closeIcon,tab:l,disabled:n===""||n,forceRender:c===""||c,closable:u===""||u,animated:v===""||v,active:b===""||b,destroyInactiveTabPane:S===""||S})}return null}).filter(t=>t)}const $a=ee({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:T(T({},nt(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Ht()}),slots:Object,setup(e,t){let{attrs:a,slots:o}=t;De(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),De(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),De(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:l,size:n,rootPrefixCls:c,getPopupContainer:u}=zt("tabs",e),[v,b]=ga(i),S=H(()=>l.value==="rtl"),h=H(()=>{const{animated:d,tabPosition:$}=e;return d===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:d===!0?{inkBar:!0,tabPane:!0}:T({inkBar:!0,tabPane:!1},typeof d=="object"?d:{})}),[s,y]=L(!1);Pe(()=>{y(Kt())});const[x,w]=je(()=>{var d;return(d=e.tabs[0])===null||d===void 0?void 0:d.key},{value:H(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[_,D]=L(()=>e.tabs.findIndex(d=>d.key===x.value));we(()=>{var d;let $=e.tabs.findIndex(E=>E.key===x.value);$===-1&&($=Math.max(0,Math.min(_.value,e.tabs.length-1)),w((d=e.tabs[$])===null||d===void 0?void 0:d.key)),D($)});const[K,O]=je(null,{value:H(()=>e.id)}),r=H(()=>s.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Pe(()=>{e.id||(O(`rc-tabs-${Je}`),Je+=1)});const m=(d,$)=>{var E,P;(E=e.onTabClick)===null||E===void 0||E.call(e,d,$);const G=d!==x.value;w(d),G&&((P=e.onChange)===null||P===void 0||P.call(e,d))};return rt({tabs:H(()=>e.tabs),prefixCls:i}),()=>{const{id:d,type:$,tabBarGutter:E,tabBarStyle:P,locale:G,destroyInactiveTabPane:le,renderTabBar:de=o.renderTabBar,onTabScroll:be,hideAdd:I,centered:Z}=e,M={id:K.value,activeKey:x.value,animated:h.value,tabPosition:r.value,rtl:S.value,mobile:s.value};let V;$==="editable-card"&&(V={onEdit:(pe,he)=>{let{key:ge,event:Se}=he;var ce;(ce=e.onEdit)===null||ce===void 0||ce.call(e,pe==="add"?Se:ge,pe)},removeIcon:()=>p(Gt,null,null),addIcon:o.addIcon?o.addIcon:()=>p(ra,null,null),showAdd:I!==!0});let Y;const fe=T(T({},M),{moreTransitionName:`${c.value}-slide-up`,editable:V,locale:G,tabBarGutter:E,onTabClick:m,onTabScroll:be,style:P,getPopupContainer:u.value,popupClassName:ie(e.popupClassName,b.value)});de?Y=de(T(T({},fe),{DefaultTabBar:Ze})):Y=p(Ze,fe,ot(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const z=i.value;return v(p("div",J(J({},a),{},{id:d,class:ie(z,`${z}-${r.value}`,{[b.value]:!0,[`${z}-${n.value}`]:n.value,[`${z}-card`]:["card","editable-card"].includes($),[`${z}-editable-card`]:$==="editable-card",[`${z}-centered`]:Z,[`${z}-mobile`]:s.value,[`${z}-editable`]:$==="editable-card",[`${z}-rtl`]:S.value},a.class)}),[Y,p(na,J(J({destroyInactiveTabPane:le},M),{},{animated:h.value}),null)]))}}}),Sa=ee({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:nt(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:a,slots:o,emit:i}=t;const l=n=>{i("update:activeKey",n),i("change",n)};return()=>{var n;const c=ma(Dt((n=o.default)===null||n===void 0?void 0:n.call(o)));return p($a,J(J(J({},Ot(e,["onUpdate:activeKey"])),a),{},{onChange:l,tabs:c}),o)}}}),ya=()=>({tab:Ie.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),_a=ee({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:ya(),slots:Object,setup(e,t){let{attrs:a,slots:o}=t;const i=U(e.forceRender);se([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?i.value=!0:e.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const l=H(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var n;const{prefixCls:c,forceRender:u,id:v,active:b,tabKey:S}=e;return p("div",{id:v&&`${v}-panel-${S}`,role:"tabpanel",tabindex:b?0:-1,"aria-labelledby":v&&`${v}-tab-${S}`,"aria-hidden":!b,style:[l.value,a.style],class:[`${c}-tabpane`,b&&`${c}-tabpane-active`,a.class]},[(b||i.value||u)&&((n=o.default)===null||n===void 0?void 0:n.call(o))])}}});export{_a as A,ia as P,Sa as T}; -//# sourceMappingURL=TabPane.9889f7a8.js.map +//# sourceMappingURL=TabPane.d0ca7ad5.js.map diff --git a/abstra_statics/dist/assets/TableEditor.cd67b96d.js b/abstra_statics/dist/assets/TableEditor.c92c7404.js similarity index 97% rename from abstra_statics/dist/assets/TableEditor.cd67b96d.js rename to abstra_statics/dist/assets/TableEditor.c92c7404.js index 4379032e9..e393df88d 100644 --- a/abstra_statics/dist/assets/TableEditor.cd67b96d.js +++ b/abstra_statics/dist/assets/TableEditor.c92c7404.js @@ -1,2 +1,2 @@ -import{_ as t0}from"./AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js";import{B as U0}from"./BaseLayout.e1793d5b.js";import{a as V0}from"./asyncComputed.d0f14ed3.js";import{d as E,B as V,f as h,o as l,X as i,Z as Y,R as _,eb as e0,a as r,ed as h0,e as B,g as p0,eo as s0,c as L,w as n,b as o,u as a,bS as F,aF as P,cy as j,bK as X,bx as M0,cV as i0,cx as $0,W as j0,aA as P0,df as n0,$ as E0,eq as C0,D as R0,r as _0,eL as T0,aV as r0,ec as o0,ea as O0,aR as H0,cM as K0,er as F0,cW as G0,ee as S0,ej as W0,bN as Q0,y as J0,cK as X0}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{O as Y0}from"./organization.6af6e7be.js";import{P as Z0}from"./project.7817fdd7.js";import{p as z0,T as a0,d as e1}from"./tables.e9d41f69.js";import{C as a1}from"./ContentLayout.f8da2f52.js";import{p as f0}from"./popupNotifcation.d2ca3d78.js";import{H as q0}from"./PhCheckCircle.vue.aa5f3146.js";import{A as x0}from"./index.7ab41b83.js";import{A as b0}from"./index.ec6b7808.js";import{A as k0}from"./index.c9c8d27c.js";import{a as l1}from"./ant-design.57cbe6fb.js";import{G as t1}from"./PhCaretRight.vue.d968b597.js";import{L as n1}from"./LoadingOutlined.6c0b95d8.js";import{B as o1,A as u1,b as r1}from"./index.c2d72be7.js";import"./record.34d5b504.js";import"./string.eaeb96c3.js";import"./isNumeric.75337b1e.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";(function(){try{var b=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(b._sentryDebugIds=b._sentryDebugIds||{},b._sentryDebugIds[s]="8c18d4d1-c97d-498c-9aaf-1eab15709528",b._sentryDebugIdIdentifier="sentry-dbid-8c18d4d1-c97d-498c-9aaf-1eab15709528")}catch{}})();const s1=["width","height","fill","transform"],i1={key:0},d1=r("path",{d:"M80,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H80a20,20,0,0,0,20-20V48A20,20,0,0,0,80,28ZM76,204H60V52H76ZM156,28H132a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h24a20,20,0,0,0,20-20V48A20,20,0,0,0,156,28Zm-4,176H136V52h16Zm100-76a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,252,128Z"},null,-1),c1=[d1],v1={key:1},m1=r("path",{d:"M88,48V208a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H80A8,8,0,0,1,88,48Zm64-8H128a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h24a8,8,0,0,0,8-8V48A8,8,0,0,0,152,40Z",opacity:"0.2"},null,-1),p1=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),f1=[m1,p1],h1={key:2},g1=r("path",{d:"M96,48V208a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H80A16,16,0,0,1,96,48Zm56-16H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm88,88H224V104a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V136h16a8,8,0,0,0,0-16Z"},null,-1),y1=[g1],A1={key:3},H1=r("path",{d:"M80,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H80a14,14,0,0,0,14-14V48A14,14,0,0,0,80,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H80a2,2,0,0,1,2,2ZM152,34H128a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V48A14,14,0,0,0,152,34Zm2,174a2,2,0,0,1-2,2H128a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h24a2,2,0,0,1,2,2Zm92-80a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V134H192a6,6,0,0,1,0-12h18V104a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,128Z"},null,-1),V1=[H1],$1={key:4},Z1=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),b1=[Z1],k1={key:5},w1=r("path",{d:"M80,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H80a12,12,0,0,0,12-12V48A12,12,0,0,0,80,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H80a4,4,0,0,1,4,4ZM152,36H128a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V48A12,12,0,0,0,152,36Zm4,172a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h24a4,4,0,0,1,4,4Zm88-80a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V132H192a4,4,0,0,1,0-8h20V104a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,128Z"},null,-1),L1=[w1],M1={name:"PhColumnsPlusRight"},C1=E({...M1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",i1,c1)):u.value==="duotone"?(l(),i("g",v1,f1)):u.value==="fill"?(l(),i("g",h1,y1)):u.value==="light"?(l(),i("g",A1,V1)):u.value==="regular"?(l(),i("g",$1,b1)):u.value==="thin"?(l(),i("g",k1,L1)):_("",!0)],16,s1))}}),_1=["width","height","fill","transform"],S1={key:0},z1=r("path",{d:"M148,96V48a12,12,0,0,1,24,0V84h36a12,12,0,0,1,0,24H160A12,12,0,0,1,148,96ZM96,148H48a12,12,0,0,0,0,24H84v36a12,12,0,0,0,24,0V160A12,12,0,0,0,96,148Zm112,0H160a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V172h36a12,12,0,0,0,0-24ZM96,36A12,12,0,0,0,84,48V84H48a12,12,0,0,0,0,24H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Z"},null,-1),q1=[z1],x1={key:1},D1=r("path",{d:"M208,64V192a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V64A16,16,0,0,1,64,48H192A16,16,0,0,1,208,64Z",opacity:"0.2"},null,-1),B1=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),N1=[D1,B1],I1={key:2},U1=r("path",{d:"M152,96V48a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,208,104H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0-5.66,13.66l48,48A8,8,0,0,0,104,208V160A8,8,0,0,0,96,152ZM99.06,40.61a8,8,0,0,0-8.72,1.73l-48,48A8,8,0,0,0,48,104H96a8,8,0,0,0,8-8V48A8,8,0,0,0,99.06,40.61ZM208,152H160a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,208,152Z"},null,-1),j1=[U1],P1={key:3},E1=r("path",{d:"M154,96V48a6,6,0,0,1,12,0V90h42a6,6,0,0,1,0,12H160A6,6,0,0,1,154,96ZM96,154H48a6,6,0,0,0,0,12H90v42a6,6,0,0,0,12,0V160A6,6,0,0,0,96,154Zm112,0H160a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V166h42a6,6,0,0,0,0-12ZM96,42a6,6,0,0,0-6,6V90H48a6,6,0,0,0,0,12H96a6,6,0,0,0,6-6V48A6,6,0,0,0,96,42Z"},null,-1),R1=[E1],T1={key:4},O1=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),K1=[O1],F1={key:5},G1=r("path",{d:"M156,96V48a4,4,0,0,1,8,0V92h44a4,4,0,0,1,0,8H160A4,4,0,0,1,156,96ZM96,156H48a4,4,0,0,0,0,8H92v44a4,4,0,0,0,8,0V160A4,4,0,0,0,96,156Zm112,0H160a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V164h44a4,4,0,0,0,0-8ZM96,44a4,4,0,0,0-4,4V92H48a4,4,0,0,0,0,8H96a4,4,0,0,0,4-4V48A4,4,0,0,0,96,44Z"},null,-1),W1=[G1],Q1={name:"PhCornersIn"},J1=E({...Q1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",S1,q1)):u.value==="duotone"?(l(),i("g",x1,N1)):u.value==="fill"?(l(),i("g",I1,j1)):u.value==="light"?(l(),i("g",P1,R1)):u.value==="regular"?(l(),i("g",T1,K1)):u.value==="thin"?(l(),i("g",F1,W1)):_("",!0)],16,_1))}}),X1=["width","height","fill","transform"],Y1={key:0},ee=r("path",{d:"M220,48V88a12,12,0,0,1-24,0V60H168a12,12,0,0,1,0-24h40A12,12,0,0,1,220,48ZM88,196H60V168a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H88a12,12,0,0,0,0-24Zm120-40a12,12,0,0,0-12,12v28H168a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156ZM88,36H48A12,12,0,0,0,36,48V88a12,12,0,0,0,24,0V60H88a12,12,0,0,0,0-24Z"},null,-1),ae=[ee],le={key:1},te=r("path",{d:"M208,48V208H48V48Z",opacity:"0.2"},null,-1),ne=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),oe=[te,ne],ue={key:2},re=r("path",{d:"M93.66,202.34A8,8,0,0,1,88,216H48a8,8,0,0,1-8-8V168a8,8,0,0,1,13.66-5.66ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,88,40ZM211.06,160.61a8,8,0,0,0-8.72,1.73l-40,40A8,8,0,0,0,168,216h40a8,8,0,0,0,8-8V168A8,8,0,0,0,211.06,160.61ZM208,40H168a8,8,0,0,0-5.66,13.66l40,40A8,8,0,0,0,216,88V48A8,8,0,0,0,208,40Z"},null,-1),se=[re],ie={key:3},de=r("path",{d:"M214,48V88a6,6,0,0,1-12,0V54H168a6,6,0,0,1,0-12h40A6,6,0,0,1,214,48ZM88,202H54V168a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H88a6,6,0,0,0,0-12Zm120-40a6,6,0,0,0-6,6v34H168a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V168A6,6,0,0,0,208,162ZM88,42H48a6,6,0,0,0-6,6V88a6,6,0,0,0,12,0V54H88a6,6,0,0,0,0-12Z"},null,-1),ce=[de],ve={key:4},me=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),pe=[me],fe={key:5},he=r("path",{d:"M212,48V88a4,4,0,0,1-8,0V52H168a4,4,0,0,1,0-8h40A4,4,0,0,1,212,48ZM88,204H52V168a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H88a4,4,0,0,0,0-8Zm120-40a4,4,0,0,0-4,4v36H168a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V168A4,4,0,0,0,208,164ZM88,44H48a4,4,0,0,0-4,4V88a4,4,0,0,0,8,0V52H88a4,4,0,0,0,0-8Z"},null,-1),ge=[he],ye={name:"PhCornersOut"},Ae=E({...ye,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",Y1,ae)):u.value==="duotone"?(l(),i("g",le,oe)):u.value==="fill"?(l(),i("g",ue,se)):u.value==="light"?(l(),i("g",ie,ce)):u.value==="regular"?(l(),i("g",ve,pe)):u.value==="thin"?(l(),i("g",fe,ge)):_("",!0)],16,X1))}}),He=["width","height","fill","transform"],Ve={key:0},$e=r("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"},null,-1),Ze=[$e],be={key:1},ke=r("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),we=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),Le=[ke,we],Me={key:2},Ce=r("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),_e=[Ce],Se={key:3},ze=r("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"},null,-1),qe=[ze],xe={key:4},De=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),Be=[De],Ne={key:5},Ie=r("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"},null,-1),Ue=[Ie],je={name:"PhGear"},Pe=E({...je,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",Ve,Ze)):u.value==="duotone"?(l(),i("g",be,Le)):u.value==="fill"?(l(),i("g",Me,_e)):u.value==="light"?(l(),i("g",Se,qe)):u.value==="regular"?(l(),i("g",xe,Be)):u.value==="thin"?(l(),i("g",Ne,Ue)):_("",!0)],16,He))}}),Ee=["width","height","fill","transform"],Re={key:0},Te=r("path",{d:"M232.49,55.51l-32-32a12,12,0,0,0-17,0l-96,96A12,12,0,0,0,84,128v32a12,12,0,0,0,12,12h32a12,12,0,0,0,8.49-3.51l96-96A12,12,0,0,0,232.49,55.51ZM192,49l15,15L196,75,181,60Zm-69,99H108V133l56-56,15,15Zm105-7.43V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28h67.43a12,12,0,0,1,0,24H52V204H204V140.57a12,12,0,0,1,24,0Z"},null,-1),Oe=[Te],Ke={key:1},Fe=r("path",{d:"M200,88l-72,72H96V128l72-72Z",opacity:"0.2"},null,-1),Ge=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),We=[Fe,Ge],Qe={key:2},Je=r("path",{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"},null,-1),Xe=[Je],Ye={key:3},ea=r("path",{d:"M228.24,59.76l-32-32a6,6,0,0,0-8.48,0l-96,96A6,6,0,0,0,90,128v32a6,6,0,0,0,6,6h32a6,6,0,0,0,4.24-1.76l96-96A6,6,0,0,0,228.24,59.76ZM125.51,154H102V130.49l66-66L191.51,88ZM200,79.51,176.49,56,192,40.49,215.51,64ZM222,128v80a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34h80a6,6,0,0,1,0,12H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2V128a6,6,0,0,1,12,0Z"},null,-1),aa=[ea],la={key:4},ta=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),na=[ta],oa={key:5},ua=r("path",{d:"M226.83,61.17l-32-32a4,4,0,0,0-5.66,0l-96,96A4,4,0,0,0,92,128v32a4,4,0,0,0,4,4h32a4,4,0,0,0,2.83-1.17l96-96A4,4,0,0,0,226.83,61.17ZM126.34,156H100V129.66l68-68L194.34,88ZM200,82.34,173.66,56,192,37.66,218.34,64ZM220,128v80a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36h80a4,4,0,0,1,0,8H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V128a4,4,0,0,1,8,0Z"},null,-1),ra=[ua],sa={name:"PhNotePencil"},ia=E({...sa,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",Re,Oe)):u.value==="duotone"?(l(),i("g",Ke,We)):u.value==="fill"?(l(),i("g",Qe,Xe)):u.value==="light"?(l(),i("g",Ye,aa)):u.value==="regular"?(l(),i("g",la,na)):u.value==="thin"?(l(),i("g",oa,ra)):_("",!0)],16,Ee))}}),da=["width","height","fill","transform"],ca={key:0},va=r("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),ma=[va],pa={key:1},fa=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),ha=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM48,163.31l88-88L180.69,120l-88,88H48Zm144-54.62L147.32,64l24-24L216,84.69Z"},null,-1),ga=[fa,ha],ya={key:2},Aa=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),Ha=[Aa],Va={key:3},$a=r("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM93.52,210H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.49,183.52,120ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"},null,-1),Za=[$a],ba={key:4},ka=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),wa=[ka],La={key:5},Ma=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM94.34,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.82L136,69.66,186.35,120ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"},null,-1),Ca=[Ma],_a={name:"PhPencilSimpleLine"},Sa=E({..._a,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",ca,ma)):u.value==="duotone"?(l(),i("g",pa,ga)):u.value==="fill"?(l(),i("g",ya,Ha)):u.value==="light"?(l(),i("g",Va,Za)):u.value==="regular"?(l(),i("g",ba,wa)):u.value==="thin"?(l(),i("g",La,Ca)):_("",!0)],16,da))}}),za=["width","height","fill","transform"],qa={key:0},xa=r("path",{d:"M208,112H48a20,20,0,0,0-20,20v24a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V132A20,20,0,0,0,208,112Zm-4,40H52V136H204Zm4-116H48A20,20,0,0,0,28,56V80a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V56A20,20,0,0,0,208,36Zm-4,40H52V60H204ZM160,220a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,160,220Z"},null,-1),Da=[xa],Ba={key:1},Na=r("path",{d:"M216,128v24a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V128a8,8,0,0,1,8-8H208A8,8,0,0,1,216,128Zm-8-80H48a8,8,0,0,0-8,8V80a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V56A8,8,0,0,0,208,48Z",opacity:"0.2"},null,-1),Ia=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),Ua=[Na,Ia],ja={key:2},Pa=r("path",{d:"M224,128v24a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128a16,16,0,0,1,16-16H208A16,16,0,0,1,224,128ZM208,40H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40ZM152,208H136V192a8,8,0,0,0-16,0v16H104a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V224h16a8,8,0,0,0,0-16Z"},null,-1),Ea=[Pa],Ra={key:3},Ta=r("path",{d:"M208,114H48a14,14,0,0,0-14,14v24a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V128A14,14,0,0,0,208,114Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V128a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,42H48A14,14,0,0,0,34,56V80A14,14,0,0,0,48,94H208a14,14,0,0,0,14-14V56A14,14,0,0,0,208,42Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM158,216a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V222H104a6,6,0,0,1,0-12h18V192a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,216Z"},null,-1),Oa=[Ta],Ka={key:4},Fa=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),Ga=[Fa],Wa={key:5},Qa=r("path",{d:"M208,116H48a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V128A12,12,0,0,0,208,116Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V128a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,44H48A12,12,0,0,0,36,56V80A12,12,0,0,0,48,92H208a12,12,0,0,0,12-12V56A12,12,0,0,0,208,44Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM156,216a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V220H104a4,4,0,0,1,0-8h20V192a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,216Z"},null,-1),Ja=[Qa],Xa={name:"PhRowsPlusBottom"},L0=E({...Xa,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",qa,Da)):u.value==="duotone"?(l(),i("g",Ba,Ua)):u.value==="fill"?(l(),i("g",ja,Ea)):u.value==="light"?(l(),i("g",Ra,Oa)):u.value==="regular"?(l(),i("g",Ka,Ga)):u.value==="thin"?(l(),i("g",Wa,Ja)):_("",!0)],16,za))}}),Ya=["width","height","fill","transform"],e2={key:0},a2=r("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),l2=[a2],t2={key:1},n2=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),o2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),u2=[n2,o2],r2={key:2},s2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),i2=[s2],d2={key:3},c2=r("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),v2=[c2],m2={key:4},p2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),f2=[p2],h2={key:5},g2=r("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),y2=[g2],A2={name:"PhWarningCircle"},D0=E({...A2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",e2,l2)):u.value==="duotone"?(l(),i("g",t2,u2)):u.value==="fill"?(l(),i("g",r2,i2)):u.value==="light"?(l(),i("g",d2,v2)):u.value==="regular"?(l(),i("g",m2,f2)):u.value==="thin"?(l(),i("g",h2,y2)):_("",!0)],16,Ya))}}),B0=(b,s)=>s.includes(b)?{status:"error",help:"There already is a column with this name in the table"}:{status:""},H2=E({__name:"NewColumn",props:{open:{type:Boolean},table:{}},emits:["created","cancel"],setup(b,{emit:s}){const t=b,y=h0().params.projectId,k=h(()=>{var Z;return((Z=t.table)==null?void 0:Z.getColumns().map(m=>m.name))||[]}),u=h(()=>B0(p.value.name,k.value)),v={name:"",type:"varchar",default:"",nullable:!0,unique:!1},p=B(v),w=()=>{p.value={...v}},e=B([{value:"reference",label:"reference",isLeaf:!1},...z0.map(Z=>({value:Z,label:Z,isLeaf:!0}))]),N=Z=>{if(!Z)return;const m=Z[Z.length-1];switch(Z.length){case 0:return;case 1:m.loading=!0,a0.list(y).then(x=>{m.children=x.map(R=>({value:R.id,label:R.name,isLeaf:!1})),m.loading=!1});return;case 2:m.loading=!0,a0.get(y,m.value).then(x=>{m.children=x.getColumns().map(R=>({type:R.type,value:R.id,label:R.name,isLeaf:!0})),m.loading=!1});return}},A=(Z,m)=>{if(!!Z){if(Z.length===1){p.value.type=Z[0],p.value.foreignKey=void 0;return}if(Z.length===3){const x=m[m.length-1];p.value.type=x.type,p.value.foreignKey={columnId:x.value}}}},z=Z=>{const m=Z.selectedOptions;return m?m.length===1?m[0].label:m.length===3?`reference to ${m[1].label}(${m[2].label})`:"":"Select type"},H=B({...{status:"success",message:"",fakeLoading:!1}}),O=()=>{H.value.fakeLoading=!0,u0()};p0(()=>p.value.type,()=>{p.value.default=e1[p.value.type]||"",O()});const u0=s0.exports.debounce(async()=>{if(!p.value.default){H.value.status="success",H.value.message="",H.value.fakeLoading=!1;return}const Z=`select (${p.value.default})::${p.value.type} `;Z0.executeQuery(y,Z,[]).then(m=>{H.value.status=m.errors.length>0?"error":"success",H.value.message=m.errors[0]||"",H.value.fakeLoading=!1})},500);function l0(){s("cancel")}async function K(){if(!!t.table&&!(!p.value.name||!p.value.type))try{await t.table.addColumn(p.value),w(),s("created")}catch(Z){Z instanceof Error&&f0("Database error",Z.message)}}return(Z,m)=>(l(),L(a(k0),{title:"New column",width:720,open:t.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:l0},{extra:n(()=>[o(a(b0),null,{default:n(()=>[o(a(F),{onClick:l0},{default:n(()=>[P("Cancel")]),_:1}),o(a(F),{type:"primary",onClick:K},{default:n(()=>[P("Save")]),_:1})]),_:1})]),default:n(()=>[o(a($0),{model:p.value,layout:"vertical"},{default:n(()=>[o(a(j),{key:"name",label:"Name",required:"","validate-status":u.value.status,help:u.value.help},{default:n(()=>[o(a(X),{value:p.value.name,"onUpdate:value":m[0]||(m[0]=x=>p.value.name=x)},null,8,["value"])]),_:1},8,["validate-status","help"]),o(a(j),{key:"type",label:"Type",required:""},{default:n(()=>[o(a(x0),{options:e.value,"load-data":N,"display-render":z,"allow-clear":!1,onChange:A},null,8,["options"])]),_:1}),o(a(j),{key:"default-value",label:"Default value","validate-status":H.value.status,help:H.value.message},{default:n(()=>[o(a(X),{value:p.value.default,"onUpdate:value":m[1]||(m[1]=x=>p.value.default=x),placeholder:"NULL",onInput:O},{suffix:n(()=>[H.value.fakeLoading?(l(),L(a(M0),{key:0})):_("",!0),!H.value.fakeLoading&&H.value.status==="success"?(l(),L(a(q0),{key:1,size:"18"})):_("",!0),!H.value.fakeLoading&&H.value.status==="error"?(l(),L(a(D0),{key:2,size:"18"})):_("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),o(a(j),{key:"nullable",label:"Nullable"},{default:n(()=>[o(a(i0),{checked:p.value.nullable,"onUpdate:checked":m[2]||(m[2]=x=>p.value.nullable=x)},null,8,["checked"])]),_:1}),o(a(j),{key:"unique",label:"Unique"},{default:n(()=>[o(a(i0),{checked:p.value.unique,"onUpdate:checked":m[3]||(m[3]=x=>p.value.unique=x)},null,8,["checked"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}}),V2={class:"twin-container"},$2={class:"fullwidth-input"},Z2={class:"fullwidth-input"},b2={class:"using-container"},k2={class:"fullwidth-input"},w2=E({__name:"UpdateColumn",props:{open:{type:Boolean},table:{},column:{}},emits:["updated","cancel"],setup(b,{emit:s}){const t=b,y=h0().params.projectId,k=B(t.column.type);j0(async()=>{if(!t.column.foreignKey)return;k.value="loading...";const d=await a0.fromColumnId(y,t.column.foreignKey.columnId),c=d.getColumn(t.column.foreignKey.columnId);k.value=`reference to ${d.name}(${c.name})`});const u=h(()=>{var d;return((d=t.table)==null?void 0:d.getColumns().map(c=>c.record.initialState.name))||[]}),v=h(()=>t.column.name===t.column.record.initialState.name?{status:"",help:""}:B0(t.column.name,u.value)),{result:p,loading:w}=V0(async()=>t.table.select({},10,0).then(({total:d})=>d));function e(){t.column.record.resetChanges(),s("cancel")}const A=B({status:"success",message:"",fakeLoading:!1}),z=()=>{A.value.fakeLoading=!0,W()},W=s0.exports.debounce(async()=>{if(!t.column.default){A.value.status="success",A.value.message="",A.value.fakeLoading=!1;return}const d=`select (${t.column.default})::${t.column.type} `,c=await Z0.executeQuery(y,d,[]);A.value.status=c.errors.length>0?"error":"success",A.value.message=c.errors[0]||"",A.value.fakeLoading=!1},500),H=B([{value:"reference",label:"reference",isLeaf:!1},...z0.filter(d=>d!==t.column.type).map(d=>({value:d,label:d,isLeaf:!0}))]),O=d=>{if(!d)return;const c=d[d.length-1];switch(d.length){case 0:return;case 1:c.loading=!0,a0.list(y).then(M=>{c.children=M.map(J=>({value:J.id,label:J.name,isLeaf:!1})),c.loading=!1});return;case 2:c.loading=!0,a0.get(y,c.value).then(M=>{c.children=M.getColumns().map(J=>({type:J.type,value:J.id,label:J.name,isLeaf:!0})),c.loading=!1});return}},d0=d=>{const c=d.selectedOptions;return c?c.length===1?c[0].label:c.length===3?`reference to ${c[1].label}(${c[2].label})`:"":"Select type"},u0=(d,c)=>{if(!!d){if(d.length===1){t.column.type=d[0],t.column.foreignKey=null;return}if(d.length===3){if(t.column.foreignKey&&t.column.foreignKey.columnId===d[2])return;const M=c[c.length-1];t.column.type=M.type,t.column.foreignKey={columnId:M.value}}}};async function l0(d){await l1("Are you sure you want to delete this column and all its data?")&&await K(d)}async function K(d){var c,M;await((M=(c=t.table)==null?void 0:c.getColumn(d))==null?void 0:M.delete()),s("updated")}const Z=()=>p.value===0||w.value?!1:t.column.record.hasChangesDeep("type"),m=B({type:"default"}),x=()=>{t.column.type=t.column.record.initialState.type,m.value={type:"default"}};function R(d,c){return c==="varchar"||d==="int"&&c==="boolean"||d==="boolean"&&c==="int"}p0(()=>t.column.type,()=>{z(),c0.value||(m.value={type:"user-defined",using:Q.value,mandatory:!0})});const c0=h(()=>m.value.type==="default"&&R(t.column.record.initialState.type,t.column.type)),G=h(()=>!R(t.column.record.initialState.type,t.column.type));function y0(d){d?m.value={type:"default"}:m.value={type:"user-defined",using:Q.value,mandatory:!1}}function A0(d){if(m.value.type==="default")throw new Error("Can't change using when using default casting");m.value.using=d!=null?d:""}const v0=()=>G.value?!0:Z()&&m.value.type==="user-defined",Q=h(()=>`${t.column.record.initialState.name}::${t.column.type}`);async function S(){if(!t.column)return;let d=m.value.type==="default"?Q.value:m.value.using;p.value===0&&(d=`${t.column.name}::text::${t.column.type}`);try{await t.column.update(d),s("updated")}catch(c){c instanceof Error&&f0("Database error",c.message)}}return(d,c)=>(l(),L(a(k0),{title:"Edit column",width:720,open:d.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:e},{extra:n(()=>[o(a(b0),null,{default:n(()=>[o(a(F),{onClick:e},{default:n(()=>[P("Cancel")]),_:1}),o(a(F),{type:"primary",onClick:S},{default:n(()=>[P("Save")]),_:1})]),_:1})]),footer:n(()=>[o(t0,{danger:"",onClick:c[7]||(c[7]=M=>l0(String(d.column.id)))},{default:n(()=>[P("Delete")]),_:1})]),default:n(()=>[o(a($0),{model:d.column,layout:"vertical"},{default:n(()=>[o(a(j),{key:"name",label:"Name","validate-status":v.value.status,help:v.value.help},{default:n(()=>[o(a(X),{value:d.column.name,"onUpdate:value":c[0]||(c[0]=M=>d.column.name=M)},null,8,["value"])]),_:1},8,["validate-status","help"]),r("div",V2,[r("span",$2,[o(a(j),{key:"type",label:"Current Type"},{default:n(()=>[o(a(P0),{value:k.value,"onUpdate:value":c[1]||(c[1]=M=>k.value=M),"default-active-first-option":"",disabled:""},null,8,["value"])]),_:1})]),o(a(t1),{class:"right-arrow"}),r("span",Z2,[o(a(j),{key:"new-type",label:"New Type"},{default:n(()=>[o(a(x0),{options:H.value,"load-data":O,"display-render":d0,"allow-clear":!0,onClear:x,onChange:u0},null,8,["options"])]),_:1})])]),o(a(j),{key:"default-value",label:"Default value","validate-status":A.value.status,help:A.value.message},{default:n(()=>[o(a(X),{value:d.column.default,"onUpdate:value":c[2]||(c[2]=M=>d.column.default=M),placeholder:"NULL",onInput:z},{suffix:n(()=>[A.value.fakeLoading?(l(),L(a(M0),{key:0,size:"small"})):_("",!0),!A.value.fakeLoading&&A.value.status==="success"?(l(),L(a(q0),{key:1,size:18})):_("",!0),!A.value.fakeLoading&&A.value.status==="error"?(l(),L(a(D0),{key:2,size:18})):_("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),r("div",b2,[Z()?(l(),L(a(j),{key:"default-casting",label:"Use default casting"},{default:n(()=>[o(a(i0),{checked:c0.value,disabled:G.value,"onUpdate:checked":c[3]||(c[3]=M=>y0(!!M))},null,8,["checked","disabled"])]),_:1})):_("",!0),r("span",k2,[Z()?(l(),L(a(j),{key:"using",label:"Using"},{default:n(()=>[o(a(X),{value:m.value.type==="user-defined"?m.value.using:Q.value,disabled:!v0(),onInput:c[4]||(c[4]=M=>A0(M.target.value))},null,8,["value","disabled"])]),_:1})):_("",!0)])]),o(a(n0),null,{default:n(()=>[o(a(j),{key:"nullable",label:"Nullable"},{default:n(()=>[o(a(i0),{checked:d.column.nullable,"onUpdate:checked":c[5]||(c[5]=M=>d.column.nullable=M)},null,8,["checked"])]),_:1}),o(a(j),{key:"unique",label:"Unique"},{default:n(()=>[o(a(i0),{checked:d.column.unique,"onUpdate:checked":c[6]||(c[6]=M=>d.column.unique=M)},null,8,["checked"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}});const L2=E0(w2,[["__scopeId","data-v-647d17d5"]]),M2={style:{overflow:"hidden","white-space":"wrap"}},C2={key:1},_2={key:0,class:"table-row null"},S2={class:"button-container"},z2={class:"button-container"},q2={class:"button-container"},x2={class:"button-container"},D2=E({__name:"TableData",props:{table:{},loading:{type:Boolean}},emits:["refresh"],setup(b,{emit:s}){var w0;const t=b,C=B(1),y=B(10),k=h(()=>{var f,$;return{total:($=(f=K.value)==null?void 0:f.total)!=null?$:0,current:C.value,pageSize:y.value,totalBoundaryShowSizeChanger:10,showSizeChanger:!0,pageSizeOptions:["10","25","50","100"],onChange:async(q,g)=>{C.value=q,y.value=g,await m()}}}),u=B([]),v=h0(),p=C0(),w=B(typeof v.query.q=="string"?v.query.q:""),e=h(()=>{try{return JSON.parse(v.query.where)}catch{return{}}});p0(w,()=>{p.replace({query:{...v.query,where:JSON.stringify(v.query.value),q:w.value}})});const N=B(!1),A=B({type:"idle"}),z=()=>{N.value=!0,W()},W=s0.exports.debounce(()=>{m(),N.value=!1},500);function H(){A.value={type:"idle"}}async function O(){H(),s("refresh")}p0(()=>t.table,()=>{y0(),m()});function d0(){A.value={type:"creating"}}const u0=f=>{if(!t.table)throw new Error("Table not found");A.value={type:"editing",column:t.table.getColumn(f)}},l0=h(()=>{var f;return((f=K.value)==null?void 0:f.rows.length)===1}),{result:K,loading:Z,refetch:m}=V0(()=>Promise.all([t.table.select(e.value,(C.value-1)*y.value,y.value,w.value),Promise.all(t.table.getColumns().filter(f=>f.foreignKey).map(f=>a0.fromColumnId(v.params.projectId,f.foreignKey.columnId).then($=>[f.name,$])))]).then(([{rows:f,total:$},q])=>({rows:f,total:$,columns:q.reduce((g,[I,U])=>({...g,[I]:U}),{})}))),x=(f,$)=>{var U,D;const q=(U=t.table)==null?void 0:U.getColumns().find(T=>T.name===f);if(!q)return"";const g=(D=K.value)==null?void 0:D.columns[q.name],I=g==null?void 0:g.getColumns().find(T=>{var m0;return T.id===((m0=q.foreignKey)==null?void 0:m0.columnId)});return!g||!I?"":{name:"tableEditor",params:{projectId:v.params.projectId,tableId:g.id},query:{where:JSON.stringify({[I.name]:$})}}},R=(f,$)=>q=>{if(f==="json"&&q==""){S.value[$]="null";return}S.value[$]=q},g0=()=>[...t.table.getColumns().map(f=>{var $;return{key:($=f.id)!=null?$:"",title:f.name,dataIndex:f.name,width:220,resizable:!0,ellipsis:!1}}),{key:"action",title:"",fixed:"right",width:100,align:"center",resizable:!1,ellipsis:!1}],c0=g0(),G=B(c0),y0=()=>G.value=g0();function A0(f,$){G.value=G.value.map(q=>q.key===$.key?{...q,width:f}:q)}const v0=h(()=>{var f;return((f=K.value)==null?void 0:f.rows.map($=>({key:$.id,...$})))||[]}),Q=B(!1),S=B({}),d=()=>{Q.value=!0},c=()=>{S.value={},Q.value=!1};let M=R0((w0=t.table)==null?void 0:w0.getUnprotectedColumns().reduce((f,$)=>({...f,[$.name]:""}),{}));async function J(){if(!(!t.table||!M))try{S.value.id&&(typeof S.value.id=="string"||typeof S.value.id=="number")?await t.table.updateRow(S.value.id.toString(),S.value):await t.table.insertRow(S.value),S.value={},m(),c()}catch(f){f instanceof Error&&f0("Database error",f.message)}}const N0=async f=>{if(!(!K.value||!K.value.rows.find($=>$.id===f)))try{await t.table.deleteRow(f),l0.value&&(C.value=Math.max(1,C.value-1)),m()}catch($){$ instanceof Error&&f0("Database error",$.message)}},I0=f=>{var U;const $=(U=v0.value)==null?void 0:U.filter(D=>f===D.key)[0],q=t.table.getColumns(),g=q.map(D=>D.name),I=q.filter(D=>D.type==="json").map(D=>D.name);S.value=s0.exports.pick(s0.exports.cloneDeep($),g),I.forEach(D=>{S.value[D]&&(S.value[D]=JSON.stringify(S.value[D]))}),d()};return(f,$)=>{const q=_0("RouterLink");return l(),L(a1,{"full-width":""},{default:n(()=>[o(a(n0),{justify:"space-between",style:{"margin-bottom":"16px"},gap:"middle"},{default:n(()=>[o(a(X),{value:w.value,"onUpdate:value":[$[0]||($[0]=g=>w.value=g),z],placeholder:"Search",style:{width:"400px"},"allow-clear":""},{prefix:n(()=>[o(a(T0))]),suffix:n(()=>[N.value?(l(),L(a(n1),{key:0})):_("",!0)]),_:1},8,["value"]),o(a(n0),{justify:"flex-end",gap:"middle"},{default:n(()=>[o(t0,{type:"primary",onClick:d0},{default:n(()=>[o(a(C1)),P("Create column ")]),_:1}),G.value.length===3?(l(),L(a(r0),{key:0,title:"Create your first column before adding data"},{default:n(()=>[o(t0,{disabled:!0,onClick:d},{default:n(()=>[o(a(L0)),P("Add data ")]),_:1})]),_:1})):(l(),L(t0,{key:1,onClick:d},{default:n(()=>[o(a(L0)),P("Add data ")]),_:1}))]),_:1})]),_:1}),o(a(G0),{columns:G.value,"data-source":v0.value,pagination:k.value,bordered:"",loading:a(Z)||f.loading,scroll:{x:1e3,y:720},size:"small",onResizeColumn:A0},{headerCell:n(({column:g})=>[g.title!=="id"&&g.title!=="created_at"&&g.key!=="action"?(l(),L(a(n0),{key:0,align:"center",justify:"space-between",gap:"small"},{default:n(()=>[r("span",M2,o0(g.title),1),o(t0,{type:"text",onClick:I=>u0(String(g.key))},{default:n(()=>[o(a(Pe),{size:"18"})]),_:2},1032,["onClick"])]),_:2},1024)):(l(),i("span",C2,o0(g.title),1))]),bodyCell:n(({column:g,text:I,record:U})=>{var D;return[G.value.map(T=>T.title).includes(g.dataIndex)?(l(),i(H0,{key:0},[I?(D=f.table.getColumns().find(T=>T.name===g.dataIndex))!=null&&D.foreignKey?(l(),L(q,{key:1,to:x(g.dataIndex,I),target:"_blank"},{default:n(()=>[P(o0(I),1)]),_:2},1032,["to"])):(l(),i("div",{key:2,class:O0(["table-row",{expanded:u.value.includes(U.id)}])},o0(I),3)):(l(),i("div",_2,"NULL"))],64)):_("",!0),g.key==="action"?(l(),L(a(n0),{key:1,gap:"small",justify:"center"},{default:n(()=>[u.value.includes(U.id)?(l(),L(a(F),{key:0,class:"icons",onClick:T=>u.value=u.value.filter(m0=>m0!==U.id)},{icon:n(()=>[o(a(r0),{title:"Collapse"},{default:n(()=>[r("div",S2,[o(a(J1),{size:15})])]),_:1})]),_:2},1032,["onClick"])):(l(),L(a(F),{key:1,onClick:T=>u.value.push(U.id)},{icon:n(()=>[o(a(r0),{title:"Expand"},{default:n(()=>[r("div",z2,[o(a(Ae),{size:15})])]),_:1})]),_:2},1032,["onClick"])),o(a(F),{onClick:T=>I0(U.id)},{icon:n(()=>[o(a(r0),{title:"Edit"},{default:n(()=>[r("div",q2,[o(a(Sa),{size:15})])]),_:1})]),_:2},1032,["onClick"]),o(a(K0),{title:"Sure to delete?",onConfirm:T=>N0(U.id)},{default:n(()=>[o(a(F),null,{icon:n(()=>[o(a(r0),{title:"Delete"},{default:n(()=>[r("div",x2,[o(a(F0),{size:15})])]),_:1})]),_:1})]),_:2},1032,["onConfirm"])]),_:2},1024)):_("",!0)]}),_:1},8,["columns","data-source","pagination","loading"]),o(a(k0),{title:"Data",width:720,open:Q.value,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:n(()=>[o(a(b0),null,{default:n(()=>[o(a(F),{onClick:c},{default:n(()=>[P("Cancel")]),_:1}),o(a(F),{type:"primary",onClick:J},{default:n(()=>[P("Save")]),_:1})]),_:1})]),default:n(()=>[o(a($0),{model:S.value,layout:"vertical"},{default:n(()=>[(l(!0),i(H0,null,S0(f.table.getUnprotectedColumns(),g=>(l(),L(a(j),{key:g.id,label:g.name,required:!g.nullable},{default:n(()=>[S.value?(l(),L(a(X),{key:0,placeholder:g.type,value:S.value[g.name],disabled:S.value[g.name]===null,"onUpdate:value":I=>R(g.type,g.name)(I)},W0({_:2},[g.nullable?{name:"addonAfter",fn:n(()=>[o(a(Q0),{checked:S.value[g.name]===null,"onUpdate:checked":I=>S.value[g.name]=I?null:""},{default:n(()=>[P(" NULL ")]),_:2},1032,["checked","onUpdate:checked"])]),key:"0"}:void 0]),1032,["placeholder","value","disabled","onUpdate:value"])):_("",!0)]),_:2},1032,["label","required"]))),128))]),_:1},8,["model"])]),_:1},8,["open"]),f.table&&A.value.type==="creating"?(l(),L(H2,{key:0,open:"",table:t.table,onClose:H,onCancel:H,onCreated:O},null,8,["table"])):_("",!0),f.table&&A.value.type==="editing"?(l(),L(L2,{key:1,column:A.value.column,open:"",table:f.table,onUpdated:O,onClose:H,onCancel:H},null,8,["column","table"])):_("",!0)]),_:1})}}});const B2={style:{"font-size":"16px"}},u8=E({__name:"TableEditor",setup(b){const s=C0(),t=h0(),C=t.params.tableId,y=t.params.projectId,k=B(!1),u=()=>{var A;k.value=!1,(A=v.value)==null||A.table.save(),w()},{result:v,loading:p,refetch:w}=V0(()=>Promise.all([Z0.get(y).then(async A=>{const z=await Y0.get(A.organizationId);return{project:A,organization:z}}),a0.get(y,C)]).then(([{project:A,organization:z},W])=>J0({project:A,organization:z,table:W}))),e=h(()=>!p.value&&v.value?[{label:"My organizations",path:"/organizations"},{label:v.value.organization.name,path:`/organizations/${v.value.organization.id}`},{label:v.value.project.name,path:`/projects/${v.value.project.id}/tables`}]:void 0);function N(){s.push({name:"tables",params:{projectId:y}})}return(A,z)=>{const W=_0("RouterLink");return l(),L(U0,null,{navbar:n(()=>[o(a(r1),{style:{padding:"5px 25px"},onBack:N},{title:n(()=>[o(a(n0),{align:"center",gap:"small"},{default:n(()=>{var H;return[r("span",B2,o0((H=a(v))==null?void 0:H.table.name),1),o(t0,{type:"text",onClick:z[0]||(z[0]=O=>k.value=!0)},{default:n(()=>[o(a(ia),{size:"16"})]),_:1})]}),_:1}),o(a(X0),{title:"Change table name",open:k.value,onCancel:z[2]||(z[2]=H=>k.value=!1),onOk:u},{default:n(()=>[a(v)?(l(),L(a(X),{key:0,value:a(v).table.name,"onUpdate:value":z[1]||(z[1]=H=>a(v).table.name=H)},null,8,["value"])):_("",!0)]),_:1},8,["open"])]),subTitle:n(()=>[e.value?(l(),L(a(o1),{key:0,style:{margin:"0px 20px"}},{default:n(()=>[(l(!0),i(H0,null,S0(e.value,(H,O)=>(l(),L(a(u1),{key:O},{default:n(()=>[o(W,{to:H.path},{default:n(()=>[P(o0(H.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):_("",!0)]),_:1})]),content:n(()=>[a(v)?(l(),L(D2,{key:0,loading:a(p),table:a(v).table,onRefresh:z[3]||(z[3]=H=>a(w)())},null,8,["loading","table"])):_("",!0)]),_:1})}}});export{u8 as default}; -//# sourceMappingURL=TableEditor.cd67b96d.js.map +import{_ as t0}from"./AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js";import{B as U0}from"./BaseLayout.294a6887.js";import{a as V0}from"./asyncComputed.295e9e03.js";import{d as E,B as V,f as h,o as l,X as i,Z as Y,R as _,eb as e0,a as r,ed as h0,e as B,g as p0,eo as s0,c as L,w as n,b as o,u as a,bS as F,aF as P,cy as j,bK as X,bx as M0,cV as i0,cx as $0,W as j0,aA as P0,df as n0,$ as E0,eq as C0,D as R0,r as _0,eL as T0,aV as r0,ec as o0,ea as O0,aR as H0,cM as K0,er as F0,cW as G0,ee as S0,ej as W0,bN as Q0,y as J0,cK as X0}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{O as Y0}from"./organization.ed97e5a8.js";import{P as Z0}from"./project.40b63ace.js";import{p as z0,T as a0,d as e1}from"./tables.3aa20dd6.js";import{C as a1}from"./ContentLayout.72beb65c.js";import{p as f0}from"./popupNotifcation.0e86d6a8.js";import{H as q0}from"./PhCheckCircle.vue.d8163a77.js";import{A as x0}from"./index.78793691.js";import{A as b0}from"./index.063f7c9e.js";import{A as k0}from"./index.9c5136e0.js";import{a as l1}from"./ant-design.38477595.js";import{G as t1}from"./PhCaretRight.vue.f72488ac.js";import{L as n1}from"./LoadingOutlined.dad6ee6e.js";import{B as o1,A as u1,b as r1}from"./index.5ccdbcb7.js";import"./record.cbb43e89.js";import"./string.e75a34fd.js";import"./isNumeric.75337b1e.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";(function(){try{var b=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(b._sentryDebugIds=b._sentryDebugIds||{},b._sentryDebugIds[s]="6d267720-8c7b-4898-9322-3e26bcc0eb7a",b._sentryDebugIdIdentifier="sentry-dbid-6d267720-8c7b-4898-9322-3e26bcc0eb7a")}catch{}})();const s1=["width","height","fill","transform"],i1={key:0},d1=r("path",{d:"M80,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H80a20,20,0,0,0,20-20V48A20,20,0,0,0,80,28ZM76,204H60V52H76ZM156,28H132a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h24a20,20,0,0,0,20-20V48A20,20,0,0,0,156,28Zm-4,176H136V52h16Zm100-76a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,252,128Z"},null,-1),c1=[d1],v1={key:1},m1=r("path",{d:"M88,48V208a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H80A8,8,0,0,1,88,48Zm64-8H128a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h24a8,8,0,0,0,8-8V48A8,8,0,0,0,152,40Z",opacity:"0.2"},null,-1),p1=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),f1=[m1,p1],h1={key:2},g1=r("path",{d:"M96,48V208a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H80A16,16,0,0,1,96,48Zm56-16H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm88,88H224V104a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V136h16a8,8,0,0,0,0-16Z"},null,-1),y1=[g1],A1={key:3},H1=r("path",{d:"M80,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H80a14,14,0,0,0,14-14V48A14,14,0,0,0,80,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H80a2,2,0,0,1,2,2ZM152,34H128a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V48A14,14,0,0,0,152,34Zm2,174a2,2,0,0,1-2,2H128a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h24a2,2,0,0,1,2,2Zm92-80a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V134H192a6,6,0,0,1,0-12h18V104a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,128Z"},null,-1),V1=[H1],$1={key:4},Z1=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),b1=[Z1],k1={key:5},w1=r("path",{d:"M80,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H80a12,12,0,0,0,12-12V48A12,12,0,0,0,80,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H80a4,4,0,0,1,4,4ZM152,36H128a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V48A12,12,0,0,0,152,36Zm4,172a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h24a4,4,0,0,1,4,4Zm88-80a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V132H192a4,4,0,0,1,0-8h20V104a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,128Z"},null,-1),L1=[w1],M1={name:"PhColumnsPlusRight"},C1=E({...M1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",i1,c1)):u.value==="duotone"?(l(),i("g",v1,f1)):u.value==="fill"?(l(),i("g",h1,y1)):u.value==="light"?(l(),i("g",A1,V1)):u.value==="regular"?(l(),i("g",$1,b1)):u.value==="thin"?(l(),i("g",k1,L1)):_("",!0)],16,s1))}}),_1=["width","height","fill","transform"],S1={key:0},z1=r("path",{d:"M148,96V48a12,12,0,0,1,24,0V84h36a12,12,0,0,1,0,24H160A12,12,0,0,1,148,96ZM96,148H48a12,12,0,0,0,0,24H84v36a12,12,0,0,0,24,0V160A12,12,0,0,0,96,148Zm112,0H160a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V172h36a12,12,0,0,0,0-24ZM96,36A12,12,0,0,0,84,48V84H48a12,12,0,0,0,0,24H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Z"},null,-1),q1=[z1],x1={key:1},D1=r("path",{d:"M208,64V192a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V64A16,16,0,0,1,64,48H192A16,16,0,0,1,208,64Z",opacity:"0.2"},null,-1),B1=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),N1=[D1,B1],I1={key:2},U1=r("path",{d:"M152,96V48a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,208,104H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0-5.66,13.66l48,48A8,8,0,0,0,104,208V160A8,8,0,0,0,96,152ZM99.06,40.61a8,8,0,0,0-8.72,1.73l-48,48A8,8,0,0,0,48,104H96a8,8,0,0,0,8-8V48A8,8,0,0,0,99.06,40.61ZM208,152H160a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,208,152Z"},null,-1),j1=[U1],P1={key:3},E1=r("path",{d:"M154,96V48a6,6,0,0,1,12,0V90h42a6,6,0,0,1,0,12H160A6,6,0,0,1,154,96ZM96,154H48a6,6,0,0,0,0,12H90v42a6,6,0,0,0,12,0V160A6,6,0,0,0,96,154Zm112,0H160a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V166h42a6,6,0,0,0,0-12ZM96,42a6,6,0,0,0-6,6V90H48a6,6,0,0,0,0,12H96a6,6,0,0,0,6-6V48A6,6,0,0,0,96,42Z"},null,-1),R1=[E1],T1={key:4},O1=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),K1=[O1],F1={key:5},G1=r("path",{d:"M156,96V48a4,4,0,0,1,8,0V92h44a4,4,0,0,1,0,8H160A4,4,0,0,1,156,96ZM96,156H48a4,4,0,0,0,0,8H92v44a4,4,0,0,0,8,0V160A4,4,0,0,0,96,156Zm112,0H160a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V164h44a4,4,0,0,0,0-8ZM96,44a4,4,0,0,0-4,4V92H48a4,4,0,0,0,0,8H96a4,4,0,0,0,4-4V48A4,4,0,0,0,96,44Z"},null,-1),W1=[G1],Q1={name:"PhCornersIn"},J1=E({...Q1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",S1,q1)):u.value==="duotone"?(l(),i("g",x1,N1)):u.value==="fill"?(l(),i("g",I1,j1)):u.value==="light"?(l(),i("g",P1,R1)):u.value==="regular"?(l(),i("g",T1,K1)):u.value==="thin"?(l(),i("g",F1,W1)):_("",!0)],16,_1))}}),X1=["width","height","fill","transform"],Y1={key:0},ee=r("path",{d:"M220,48V88a12,12,0,0,1-24,0V60H168a12,12,0,0,1,0-24h40A12,12,0,0,1,220,48ZM88,196H60V168a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H88a12,12,0,0,0,0-24Zm120-40a12,12,0,0,0-12,12v28H168a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156ZM88,36H48A12,12,0,0,0,36,48V88a12,12,0,0,0,24,0V60H88a12,12,0,0,0,0-24Z"},null,-1),ae=[ee],le={key:1},te=r("path",{d:"M208,48V208H48V48Z",opacity:"0.2"},null,-1),ne=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),oe=[te,ne],ue={key:2},re=r("path",{d:"M93.66,202.34A8,8,0,0,1,88,216H48a8,8,0,0,1-8-8V168a8,8,0,0,1,13.66-5.66ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,88,40ZM211.06,160.61a8,8,0,0,0-8.72,1.73l-40,40A8,8,0,0,0,168,216h40a8,8,0,0,0,8-8V168A8,8,0,0,0,211.06,160.61ZM208,40H168a8,8,0,0,0-5.66,13.66l40,40A8,8,0,0,0,216,88V48A8,8,0,0,0,208,40Z"},null,-1),se=[re],ie={key:3},de=r("path",{d:"M214,48V88a6,6,0,0,1-12,0V54H168a6,6,0,0,1,0-12h40A6,6,0,0,1,214,48ZM88,202H54V168a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H88a6,6,0,0,0,0-12Zm120-40a6,6,0,0,0-6,6v34H168a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V168A6,6,0,0,0,208,162ZM88,42H48a6,6,0,0,0-6,6V88a6,6,0,0,0,12,0V54H88a6,6,0,0,0,0-12Z"},null,-1),ce=[de],ve={key:4},me=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),pe=[me],fe={key:5},he=r("path",{d:"M212,48V88a4,4,0,0,1-8,0V52H168a4,4,0,0,1,0-8h40A4,4,0,0,1,212,48ZM88,204H52V168a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H88a4,4,0,0,0,0-8Zm120-40a4,4,0,0,0-4,4v36H168a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V168A4,4,0,0,0,208,164ZM88,44H48a4,4,0,0,0-4,4V88a4,4,0,0,0,8,0V52H88a4,4,0,0,0,0-8Z"},null,-1),ge=[he],ye={name:"PhCornersOut"},Ae=E({...ye,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",Y1,ae)):u.value==="duotone"?(l(),i("g",le,oe)):u.value==="fill"?(l(),i("g",ue,se)):u.value==="light"?(l(),i("g",ie,ce)):u.value==="regular"?(l(),i("g",ve,pe)):u.value==="thin"?(l(),i("g",fe,ge)):_("",!0)],16,X1))}}),He=["width","height","fill","transform"],Ve={key:0},$e=r("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"},null,-1),Ze=[$e],be={key:1},ke=r("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),we=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),Le=[ke,we],Me={key:2},Ce=r("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),_e=[Ce],Se={key:3},ze=r("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"},null,-1),qe=[ze],xe={key:4},De=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),Be=[De],Ne={key:5},Ie=r("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"},null,-1),Ue=[Ie],je={name:"PhGear"},Pe=E({...je,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",Ve,Ze)):u.value==="duotone"?(l(),i("g",be,Le)):u.value==="fill"?(l(),i("g",Me,_e)):u.value==="light"?(l(),i("g",Se,qe)):u.value==="regular"?(l(),i("g",xe,Be)):u.value==="thin"?(l(),i("g",Ne,Ue)):_("",!0)],16,He))}}),Ee=["width","height","fill","transform"],Re={key:0},Te=r("path",{d:"M232.49,55.51l-32-32a12,12,0,0,0-17,0l-96,96A12,12,0,0,0,84,128v32a12,12,0,0,0,12,12h32a12,12,0,0,0,8.49-3.51l96-96A12,12,0,0,0,232.49,55.51ZM192,49l15,15L196,75,181,60Zm-69,99H108V133l56-56,15,15Zm105-7.43V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28h67.43a12,12,0,0,1,0,24H52V204H204V140.57a12,12,0,0,1,24,0Z"},null,-1),Oe=[Te],Ke={key:1},Fe=r("path",{d:"M200,88l-72,72H96V128l72-72Z",opacity:"0.2"},null,-1),Ge=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),We=[Fe,Ge],Qe={key:2},Je=r("path",{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"},null,-1),Xe=[Je],Ye={key:3},ea=r("path",{d:"M228.24,59.76l-32-32a6,6,0,0,0-8.48,0l-96,96A6,6,0,0,0,90,128v32a6,6,0,0,0,6,6h32a6,6,0,0,0,4.24-1.76l96-96A6,6,0,0,0,228.24,59.76ZM125.51,154H102V130.49l66-66L191.51,88ZM200,79.51,176.49,56,192,40.49,215.51,64ZM222,128v80a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34h80a6,6,0,0,1,0,12H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2V128a6,6,0,0,1,12,0Z"},null,-1),aa=[ea],la={key:4},ta=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),na=[ta],oa={key:5},ua=r("path",{d:"M226.83,61.17l-32-32a4,4,0,0,0-5.66,0l-96,96A4,4,0,0,0,92,128v32a4,4,0,0,0,4,4h32a4,4,0,0,0,2.83-1.17l96-96A4,4,0,0,0,226.83,61.17ZM126.34,156H100V129.66l68-68L194.34,88ZM200,82.34,173.66,56,192,37.66,218.34,64ZM220,128v80a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36h80a4,4,0,0,1,0,8H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V128a4,4,0,0,1,8,0Z"},null,-1),ra=[ua],sa={name:"PhNotePencil"},ia=E({...sa,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",Re,Oe)):u.value==="duotone"?(l(),i("g",Ke,We)):u.value==="fill"?(l(),i("g",Qe,Xe)):u.value==="light"?(l(),i("g",Ye,aa)):u.value==="regular"?(l(),i("g",la,na)):u.value==="thin"?(l(),i("g",oa,ra)):_("",!0)],16,Ee))}}),da=["width","height","fill","transform"],ca={key:0},va=r("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),ma=[va],pa={key:1},fa=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),ha=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM48,163.31l88-88L180.69,120l-88,88H48Zm144-54.62L147.32,64l24-24L216,84.69Z"},null,-1),ga=[fa,ha],ya={key:2},Aa=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),Ha=[Aa],Va={key:3},$a=r("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM93.52,210H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.49,183.52,120ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"},null,-1),Za=[$a],ba={key:4},ka=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),wa=[ka],La={key:5},Ma=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM94.34,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.82L136,69.66,186.35,120ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"},null,-1),Ca=[Ma],_a={name:"PhPencilSimpleLine"},Sa=E({..._a,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",ca,ma)):u.value==="duotone"?(l(),i("g",pa,ga)):u.value==="fill"?(l(),i("g",ya,Ha)):u.value==="light"?(l(),i("g",Va,Za)):u.value==="regular"?(l(),i("g",ba,wa)):u.value==="thin"?(l(),i("g",La,Ca)):_("",!0)],16,da))}}),za=["width","height","fill","transform"],qa={key:0},xa=r("path",{d:"M208,112H48a20,20,0,0,0-20,20v24a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V132A20,20,0,0,0,208,112Zm-4,40H52V136H204Zm4-116H48A20,20,0,0,0,28,56V80a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V56A20,20,0,0,0,208,36Zm-4,40H52V60H204ZM160,220a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,160,220Z"},null,-1),Da=[xa],Ba={key:1},Na=r("path",{d:"M216,128v24a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V128a8,8,0,0,1,8-8H208A8,8,0,0,1,216,128Zm-8-80H48a8,8,0,0,0-8,8V80a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V56A8,8,0,0,0,208,48Z",opacity:"0.2"},null,-1),Ia=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),Ua=[Na,Ia],ja={key:2},Pa=r("path",{d:"M224,128v24a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128a16,16,0,0,1,16-16H208A16,16,0,0,1,224,128ZM208,40H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40ZM152,208H136V192a8,8,0,0,0-16,0v16H104a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V224h16a8,8,0,0,0,0-16Z"},null,-1),Ea=[Pa],Ra={key:3},Ta=r("path",{d:"M208,114H48a14,14,0,0,0-14,14v24a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V128A14,14,0,0,0,208,114Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V128a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,42H48A14,14,0,0,0,34,56V80A14,14,0,0,0,48,94H208a14,14,0,0,0,14-14V56A14,14,0,0,0,208,42Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM158,216a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V222H104a6,6,0,0,1,0-12h18V192a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,216Z"},null,-1),Oa=[Ta],Ka={key:4},Fa=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),Ga=[Fa],Wa={key:5},Qa=r("path",{d:"M208,116H48a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V128A12,12,0,0,0,208,116Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V128a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,44H48A12,12,0,0,0,36,56V80A12,12,0,0,0,48,92H208a12,12,0,0,0,12-12V56A12,12,0,0,0,208,44Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM156,216a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V220H104a4,4,0,0,1,0-8h20V192a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,216Z"},null,-1),Ja=[Qa],Xa={name:"PhRowsPlusBottom"},L0=E({...Xa,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",qa,Da)):u.value==="duotone"?(l(),i("g",Ba,Ua)):u.value==="fill"?(l(),i("g",ja,Ea)):u.value==="light"?(l(),i("g",Ra,Oa)):u.value==="regular"?(l(),i("g",Ka,Ga)):u.value==="thin"?(l(),i("g",Wa,Ja)):_("",!0)],16,za))}}),Ya=["width","height","fill","transform"],e2={key:0},a2=r("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),l2=[a2],t2={key:1},n2=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),o2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),u2=[n2,o2],r2={key:2},s2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),i2=[s2],d2={key:3},c2=r("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),v2=[c2],m2={key:4},p2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),f2=[p2],h2={key:5},g2=r("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),y2=[g2],A2={name:"PhWarningCircle"},D0=E({...A2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const s=b,t=V("weight","regular"),C=V("size","1em"),y=V("color","currentColor"),k=V("mirrored",!1),u=h(()=>{var e;return(e=s.weight)!=null?e:t}),v=h(()=>{var e;return(e=s.size)!=null?e:C}),p=h(()=>{var e;return(e=s.color)!=null?e:y}),w=h(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(e,N)=>(l(),i("svg",e0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:p.value,transform:w.value},e.$attrs),[Y(e.$slots,"default"),u.value==="bold"?(l(),i("g",e2,l2)):u.value==="duotone"?(l(),i("g",t2,u2)):u.value==="fill"?(l(),i("g",r2,i2)):u.value==="light"?(l(),i("g",d2,v2)):u.value==="regular"?(l(),i("g",m2,f2)):u.value==="thin"?(l(),i("g",h2,y2)):_("",!0)],16,Ya))}}),B0=(b,s)=>s.includes(b)?{status:"error",help:"There already is a column with this name in the table"}:{status:""},H2=E({__name:"NewColumn",props:{open:{type:Boolean},table:{}},emits:["created","cancel"],setup(b,{emit:s}){const t=b,y=h0().params.projectId,k=h(()=>{var Z;return((Z=t.table)==null?void 0:Z.getColumns().map(m=>m.name))||[]}),u=h(()=>B0(p.value.name,k.value)),v={name:"",type:"varchar",default:"",nullable:!0,unique:!1},p=B(v),w=()=>{p.value={...v}},e=B([{value:"reference",label:"reference",isLeaf:!1},...z0.map(Z=>({value:Z,label:Z,isLeaf:!0}))]),N=Z=>{if(!Z)return;const m=Z[Z.length-1];switch(Z.length){case 0:return;case 1:m.loading=!0,a0.list(y).then(x=>{m.children=x.map(R=>({value:R.id,label:R.name,isLeaf:!1})),m.loading=!1});return;case 2:m.loading=!0,a0.get(y,m.value).then(x=>{m.children=x.getColumns().map(R=>({type:R.type,value:R.id,label:R.name,isLeaf:!0})),m.loading=!1});return}},A=(Z,m)=>{if(!!Z){if(Z.length===1){p.value.type=Z[0],p.value.foreignKey=void 0;return}if(Z.length===3){const x=m[m.length-1];p.value.type=x.type,p.value.foreignKey={columnId:x.value}}}},z=Z=>{const m=Z.selectedOptions;return m?m.length===1?m[0].label:m.length===3?`reference to ${m[1].label}(${m[2].label})`:"":"Select type"},H=B({...{status:"success",message:"",fakeLoading:!1}}),O=()=>{H.value.fakeLoading=!0,u0()};p0(()=>p.value.type,()=>{p.value.default=e1[p.value.type]||"",O()});const u0=s0.exports.debounce(async()=>{if(!p.value.default){H.value.status="success",H.value.message="",H.value.fakeLoading=!1;return}const Z=`select (${p.value.default})::${p.value.type} `;Z0.executeQuery(y,Z,[]).then(m=>{H.value.status=m.errors.length>0?"error":"success",H.value.message=m.errors[0]||"",H.value.fakeLoading=!1})},500);function l0(){s("cancel")}async function K(){if(!!t.table&&!(!p.value.name||!p.value.type))try{await t.table.addColumn(p.value),w(),s("created")}catch(Z){Z instanceof Error&&f0("Database error",Z.message)}}return(Z,m)=>(l(),L(a(k0),{title:"New column",width:720,open:t.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:l0},{extra:n(()=>[o(a(b0),null,{default:n(()=>[o(a(F),{onClick:l0},{default:n(()=>[P("Cancel")]),_:1}),o(a(F),{type:"primary",onClick:K},{default:n(()=>[P("Save")]),_:1})]),_:1})]),default:n(()=>[o(a($0),{model:p.value,layout:"vertical"},{default:n(()=>[o(a(j),{key:"name",label:"Name",required:"","validate-status":u.value.status,help:u.value.help},{default:n(()=>[o(a(X),{value:p.value.name,"onUpdate:value":m[0]||(m[0]=x=>p.value.name=x)},null,8,["value"])]),_:1},8,["validate-status","help"]),o(a(j),{key:"type",label:"Type",required:""},{default:n(()=>[o(a(x0),{options:e.value,"load-data":N,"display-render":z,"allow-clear":!1,onChange:A},null,8,["options"])]),_:1}),o(a(j),{key:"default-value",label:"Default value","validate-status":H.value.status,help:H.value.message},{default:n(()=>[o(a(X),{value:p.value.default,"onUpdate:value":m[1]||(m[1]=x=>p.value.default=x),placeholder:"NULL",onInput:O},{suffix:n(()=>[H.value.fakeLoading?(l(),L(a(M0),{key:0})):_("",!0),!H.value.fakeLoading&&H.value.status==="success"?(l(),L(a(q0),{key:1,size:"18"})):_("",!0),!H.value.fakeLoading&&H.value.status==="error"?(l(),L(a(D0),{key:2,size:"18"})):_("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),o(a(j),{key:"nullable",label:"Nullable"},{default:n(()=>[o(a(i0),{checked:p.value.nullable,"onUpdate:checked":m[2]||(m[2]=x=>p.value.nullable=x)},null,8,["checked"])]),_:1}),o(a(j),{key:"unique",label:"Unique"},{default:n(()=>[o(a(i0),{checked:p.value.unique,"onUpdate:checked":m[3]||(m[3]=x=>p.value.unique=x)},null,8,["checked"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}}),V2={class:"twin-container"},$2={class:"fullwidth-input"},Z2={class:"fullwidth-input"},b2={class:"using-container"},k2={class:"fullwidth-input"},w2=E({__name:"UpdateColumn",props:{open:{type:Boolean},table:{},column:{}},emits:["updated","cancel"],setup(b,{emit:s}){const t=b,y=h0().params.projectId,k=B(t.column.type);j0(async()=>{if(!t.column.foreignKey)return;k.value="loading...";const d=await a0.fromColumnId(y,t.column.foreignKey.columnId),c=d.getColumn(t.column.foreignKey.columnId);k.value=`reference to ${d.name}(${c.name})`});const u=h(()=>{var d;return((d=t.table)==null?void 0:d.getColumns().map(c=>c.record.initialState.name))||[]}),v=h(()=>t.column.name===t.column.record.initialState.name?{status:"",help:""}:B0(t.column.name,u.value)),{result:p,loading:w}=V0(async()=>t.table.select({},10,0).then(({total:d})=>d));function e(){t.column.record.resetChanges(),s("cancel")}const A=B({status:"success",message:"",fakeLoading:!1}),z=()=>{A.value.fakeLoading=!0,W()},W=s0.exports.debounce(async()=>{if(!t.column.default){A.value.status="success",A.value.message="",A.value.fakeLoading=!1;return}const d=`select (${t.column.default})::${t.column.type} `,c=await Z0.executeQuery(y,d,[]);A.value.status=c.errors.length>0?"error":"success",A.value.message=c.errors[0]||"",A.value.fakeLoading=!1},500),H=B([{value:"reference",label:"reference",isLeaf:!1},...z0.filter(d=>d!==t.column.type).map(d=>({value:d,label:d,isLeaf:!0}))]),O=d=>{if(!d)return;const c=d[d.length-1];switch(d.length){case 0:return;case 1:c.loading=!0,a0.list(y).then(M=>{c.children=M.map(J=>({value:J.id,label:J.name,isLeaf:!1})),c.loading=!1});return;case 2:c.loading=!0,a0.get(y,c.value).then(M=>{c.children=M.getColumns().map(J=>({type:J.type,value:J.id,label:J.name,isLeaf:!0})),c.loading=!1});return}},d0=d=>{const c=d.selectedOptions;return c?c.length===1?c[0].label:c.length===3?`reference to ${c[1].label}(${c[2].label})`:"":"Select type"},u0=(d,c)=>{if(!!d){if(d.length===1){t.column.type=d[0],t.column.foreignKey=null;return}if(d.length===3){if(t.column.foreignKey&&t.column.foreignKey.columnId===d[2])return;const M=c[c.length-1];t.column.type=M.type,t.column.foreignKey={columnId:M.value}}}};async function l0(d){await l1("Are you sure you want to delete this column and all its data?")&&await K(d)}async function K(d){var c,M;await((M=(c=t.table)==null?void 0:c.getColumn(d))==null?void 0:M.delete()),s("updated")}const Z=()=>p.value===0||w.value?!1:t.column.record.hasChangesDeep("type"),m=B({type:"default"}),x=()=>{t.column.type=t.column.record.initialState.type,m.value={type:"default"}};function R(d,c){return c==="varchar"||d==="int"&&c==="boolean"||d==="boolean"&&c==="int"}p0(()=>t.column.type,()=>{z(),c0.value||(m.value={type:"user-defined",using:Q.value,mandatory:!0})});const c0=h(()=>m.value.type==="default"&&R(t.column.record.initialState.type,t.column.type)),G=h(()=>!R(t.column.record.initialState.type,t.column.type));function y0(d){d?m.value={type:"default"}:m.value={type:"user-defined",using:Q.value,mandatory:!1}}function A0(d){if(m.value.type==="default")throw new Error("Can't change using when using default casting");m.value.using=d!=null?d:""}const v0=()=>G.value?!0:Z()&&m.value.type==="user-defined",Q=h(()=>`${t.column.record.initialState.name}::${t.column.type}`);async function S(){if(!t.column)return;let d=m.value.type==="default"?Q.value:m.value.using;p.value===0&&(d=`${t.column.name}::text::${t.column.type}`);try{await t.column.update(d),s("updated")}catch(c){c instanceof Error&&f0("Database error",c.message)}}return(d,c)=>(l(),L(a(k0),{title:"Edit column",width:720,open:d.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:e},{extra:n(()=>[o(a(b0),null,{default:n(()=>[o(a(F),{onClick:e},{default:n(()=>[P("Cancel")]),_:1}),o(a(F),{type:"primary",onClick:S},{default:n(()=>[P("Save")]),_:1})]),_:1})]),footer:n(()=>[o(t0,{danger:"",onClick:c[7]||(c[7]=M=>l0(String(d.column.id)))},{default:n(()=>[P("Delete")]),_:1})]),default:n(()=>[o(a($0),{model:d.column,layout:"vertical"},{default:n(()=>[o(a(j),{key:"name",label:"Name","validate-status":v.value.status,help:v.value.help},{default:n(()=>[o(a(X),{value:d.column.name,"onUpdate:value":c[0]||(c[0]=M=>d.column.name=M)},null,8,["value"])]),_:1},8,["validate-status","help"]),r("div",V2,[r("span",$2,[o(a(j),{key:"type",label:"Current Type"},{default:n(()=>[o(a(P0),{value:k.value,"onUpdate:value":c[1]||(c[1]=M=>k.value=M),"default-active-first-option":"",disabled:""},null,8,["value"])]),_:1})]),o(a(t1),{class:"right-arrow"}),r("span",Z2,[o(a(j),{key:"new-type",label:"New Type"},{default:n(()=>[o(a(x0),{options:H.value,"load-data":O,"display-render":d0,"allow-clear":!0,onClear:x,onChange:u0},null,8,["options"])]),_:1})])]),o(a(j),{key:"default-value",label:"Default value","validate-status":A.value.status,help:A.value.message},{default:n(()=>[o(a(X),{value:d.column.default,"onUpdate:value":c[2]||(c[2]=M=>d.column.default=M),placeholder:"NULL",onInput:z},{suffix:n(()=>[A.value.fakeLoading?(l(),L(a(M0),{key:0,size:"small"})):_("",!0),!A.value.fakeLoading&&A.value.status==="success"?(l(),L(a(q0),{key:1,size:18})):_("",!0),!A.value.fakeLoading&&A.value.status==="error"?(l(),L(a(D0),{key:2,size:18})):_("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),r("div",b2,[Z()?(l(),L(a(j),{key:"default-casting",label:"Use default casting"},{default:n(()=>[o(a(i0),{checked:c0.value,disabled:G.value,"onUpdate:checked":c[3]||(c[3]=M=>y0(!!M))},null,8,["checked","disabled"])]),_:1})):_("",!0),r("span",k2,[Z()?(l(),L(a(j),{key:"using",label:"Using"},{default:n(()=>[o(a(X),{value:m.value.type==="user-defined"?m.value.using:Q.value,disabled:!v0(),onInput:c[4]||(c[4]=M=>A0(M.target.value))},null,8,["value","disabled"])]),_:1})):_("",!0)])]),o(a(n0),null,{default:n(()=>[o(a(j),{key:"nullable",label:"Nullable"},{default:n(()=>[o(a(i0),{checked:d.column.nullable,"onUpdate:checked":c[5]||(c[5]=M=>d.column.nullable=M)},null,8,["checked"])]),_:1}),o(a(j),{key:"unique",label:"Unique"},{default:n(()=>[o(a(i0),{checked:d.column.unique,"onUpdate:checked":c[6]||(c[6]=M=>d.column.unique=M)},null,8,["checked"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}});const L2=E0(w2,[["__scopeId","data-v-647d17d5"]]),M2={style:{overflow:"hidden","white-space":"wrap"}},C2={key:1},_2={key:0,class:"table-row null"},S2={class:"button-container"},z2={class:"button-container"},q2={class:"button-container"},x2={class:"button-container"},D2=E({__name:"TableData",props:{table:{},loading:{type:Boolean}},emits:["refresh"],setup(b,{emit:s}){var w0;const t=b,C=B(1),y=B(10),k=h(()=>{var f,$;return{total:($=(f=K.value)==null?void 0:f.total)!=null?$:0,current:C.value,pageSize:y.value,totalBoundaryShowSizeChanger:10,showSizeChanger:!0,pageSizeOptions:["10","25","50","100"],onChange:async(q,g)=>{C.value=q,y.value=g,await m()}}}),u=B([]),v=h0(),p=C0(),w=B(typeof v.query.q=="string"?v.query.q:""),e=h(()=>{try{return JSON.parse(v.query.where)}catch{return{}}});p0(w,()=>{p.replace({query:{...v.query,where:JSON.stringify(v.query.value),q:w.value}})});const N=B(!1),A=B({type:"idle"}),z=()=>{N.value=!0,W()},W=s0.exports.debounce(()=>{m(),N.value=!1},500);function H(){A.value={type:"idle"}}async function O(){H(),s("refresh")}p0(()=>t.table,()=>{y0(),m()});function d0(){A.value={type:"creating"}}const u0=f=>{if(!t.table)throw new Error("Table not found");A.value={type:"editing",column:t.table.getColumn(f)}},l0=h(()=>{var f;return((f=K.value)==null?void 0:f.rows.length)===1}),{result:K,loading:Z,refetch:m}=V0(()=>Promise.all([t.table.select(e.value,(C.value-1)*y.value,y.value,w.value),Promise.all(t.table.getColumns().filter(f=>f.foreignKey).map(f=>a0.fromColumnId(v.params.projectId,f.foreignKey.columnId).then($=>[f.name,$])))]).then(([{rows:f,total:$},q])=>({rows:f,total:$,columns:q.reduce((g,[I,U])=>({...g,[I]:U}),{})}))),x=(f,$)=>{var U,D;const q=(U=t.table)==null?void 0:U.getColumns().find(T=>T.name===f);if(!q)return"";const g=(D=K.value)==null?void 0:D.columns[q.name],I=g==null?void 0:g.getColumns().find(T=>{var m0;return T.id===((m0=q.foreignKey)==null?void 0:m0.columnId)});return!g||!I?"":{name:"tableEditor",params:{projectId:v.params.projectId,tableId:g.id},query:{where:JSON.stringify({[I.name]:$})}}},R=(f,$)=>q=>{if(f==="json"&&q==""){S.value[$]="null";return}S.value[$]=q},g0=()=>[...t.table.getColumns().map(f=>{var $;return{key:($=f.id)!=null?$:"",title:f.name,dataIndex:f.name,width:220,resizable:!0,ellipsis:!1}}),{key:"action",title:"",fixed:"right",width:100,align:"center",resizable:!1,ellipsis:!1}],c0=g0(),G=B(c0),y0=()=>G.value=g0();function A0(f,$){G.value=G.value.map(q=>q.key===$.key?{...q,width:f}:q)}const v0=h(()=>{var f;return((f=K.value)==null?void 0:f.rows.map($=>({key:$.id,...$})))||[]}),Q=B(!1),S=B({}),d=()=>{Q.value=!0},c=()=>{S.value={},Q.value=!1};let M=R0((w0=t.table)==null?void 0:w0.getUnprotectedColumns().reduce((f,$)=>({...f,[$.name]:""}),{}));async function J(){if(!(!t.table||!M))try{S.value.id&&(typeof S.value.id=="string"||typeof S.value.id=="number")?await t.table.updateRow(S.value.id.toString(),S.value):await t.table.insertRow(S.value),S.value={},m(),c()}catch(f){f instanceof Error&&f0("Database error",f.message)}}const N0=async f=>{if(!(!K.value||!K.value.rows.find($=>$.id===f)))try{await t.table.deleteRow(f),l0.value&&(C.value=Math.max(1,C.value-1)),m()}catch($){$ instanceof Error&&f0("Database error",$.message)}},I0=f=>{var U;const $=(U=v0.value)==null?void 0:U.filter(D=>f===D.key)[0],q=t.table.getColumns(),g=q.map(D=>D.name),I=q.filter(D=>D.type==="json").map(D=>D.name);S.value=s0.exports.pick(s0.exports.cloneDeep($),g),I.forEach(D=>{S.value[D]&&(S.value[D]=JSON.stringify(S.value[D]))}),d()};return(f,$)=>{const q=_0("RouterLink");return l(),L(a1,{"full-width":""},{default:n(()=>[o(a(n0),{justify:"space-between",style:{"margin-bottom":"16px"},gap:"middle"},{default:n(()=>[o(a(X),{value:w.value,"onUpdate:value":[$[0]||($[0]=g=>w.value=g),z],placeholder:"Search",style:{width:"400px"},"allow-clear":""},{prefix:n(()=>[o(a(T0))]),suffix:n(()=>[N.value?(l(),L(a(n1),{key:0})):_("",!0)]),_:1},8,["value"]),o(a(n0),{justify:"flex-end",gap:"middle"},{default:n(()=>[o(t0,{type:"primary",onClick:d0},{default:n(()=>[o(a(C1)),P("Create column ")]),_:1}),G.value.length===3?(l(),L(a(r0),{key:0,title:"Create your first column before adding data"},{default:n(()=>[o(t0,{disabled:!0,onClick:d},{default:n(()=>[o(a(L0)),P("Add data ")]),_:1})]),_:1})):(l(),L(t0,{key:1,onClick:d},{default:n(()=>[o(a(L0)),P("Add data ")]),_:1}))]),_:1})]),_:1}),o(a(G0),{columns:G.value,"data-source":v0.value,pagination:k.value,bordered:"",loading:a(Z)||f.loading,scroll:{x:1e3,y:720},size:"small",onResizeColumn:A0},{headerCell:n(({column:g})=>[g.title!=="id"&&g.title!=="created_at"&&g.key!=="action"?(l(),L(a(n0),{key:0,align:"center",justify:"space-between",gap:"small"},{default:n(()=>[r("span",M2,o0(g.title),1),o(t0,{type:"text",onClick:I=>u0(String(g.key))},{default:n(()=>[o(a(Pe),{size:"18"})]),_:2},1032,["onClick"])]),_:2},1024)):(l(),i("span",C2,o0(g.title),1))]),bodyCell:n(({column:g,text:I,record:U})=>{var D;return[G.value.map(T=>T.title).includes(g.dataIndex)?(l(),i(H0,{key:0},[I?(D=f.table.getColumns().find(T=>T.name===g.dataIndex))!=null&&D.foreignKey?(l(),L(q,{key:1,to:x(g.dataIndex,I),target:"_blank"},{default:n(()=>[P(o0(I),1)]),_:2},1032,["to"])):(l(),i("div",{key:2,class:O0(["table-row",{expanded:u.value.includes(U.id)}])},o0(I),3)):(l(),i("div",_2,"NULL"))],64)):_("",!0),g.key==="action"?(l(),L(a(n0),{key:1,gap:"small",justify:"center"},{default:n(()=>[u.value.includes(U.id)?(l(),L(a(F),{key:0,class:"icons",onClick:T=>u.value=u.value.filter(m0=>m0!==U.id)},{icon:n(()=>[o(a(r0),{title:"Collapse"},{default:n(()=>[r("div",S2,[o(a(J1),{size:15})])]),_:1})]),_:2},1032,["onClick"])):(l(),L(a(F),{key:1,onClick:T=>u.value.push(U.id)},{icon:n(()=>[o(a(r0),{title:"Expand"},{default:n(()=>[r("div",z2,[o(a(Ae),{size:15})])]),_:1})]),_:2},1032,["onClick"])),o(a(F),{onClick:T=>I0(U.id)},{icon:n(()=>[o(a(r0),{title:"Edit"},{default:n(()=>[r("div",q2,[o(a(Sa),{size:15})])]),_:1})]),_:2},1032,["onClick"]),o(a(K0),{title:"Sure to delete?",onConfirm:T=>N0(U.id)},{default:n(()=>[o(a(F),null,{icon:n(()=>[o(a(r0),{title:"Delete"},{default:n(()=>[r("div",x2,[o(a(F0),{size:15})])]),_:1})]),_:1})]),_:2},1032,["onConfirm"])]),_:2},1024)):_("",!0)]}),_:1},8,["columns","data-source","pagination","loading"]),o(a(k0),{title:"Data",width:720,open:Q.value,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:n(()=>[o(a(b0),null,{default:n(()=>[o(a(F),{onClick:c},{default:n(()=>[P("Cancel")]),_:1}),o(a(F),{type:"primary",onClick:J},{default:n(()=>[P("Save")]),_:1})]),_:1})]),default:n(()=>[o(a($0),{model:S.value,layout:"vertical"},{default:n(()=>[(l(!0),i(H0,null,S0(f.table.getUnprotectedColumns(),g=>(l(),L(a(j),{key:g.id,label:g.name,required:!g.nullable},{default:n(()=>[S.value?(l(),L(a(X),{key:0,placeholder:g.type,value:S.value[g.name],disabled:S.value[g.name]===null,"onUpdate:value":I=>R(g.type,g.name)(I)},W0({_:2},[g.nullable?{name:"addonAfter",fn:n(()=>[o(a(Q0),{checked:S.value[g.name]===null,"onUpdate:checked":I=>S.value[g.name]=I?null:""},{default:n(()=>[P(" NULL ")]),_:2},1032,["checked","onUpdate:checked"])]),key:"0"}:void 0]),1032,["placeholder","value","disabled","onUpdate:value"])):_("",!0)]),_:2},1032,["label","required"]))),128))]),_:1},8,["model"])]),_:1},8,["open"]),f.table&&A.value.type==="creating"?(l(),L(H2,{key:0,open:"",table:t.table,onClose:H,onCancel:H,onCreated:O},null,8,["table"])):_("",!0),f.table&&A.value.type==="editing"?(l(),L(L2,{key:1,column:A.value.column,open:"",table:f.table,onUpdated:O,onClose:H,onCancel:H},null,8,["column","table"])):_("",!0)]),_:1})}}});const B2={style:{"font-size":"16px"}},u8=E({__name:"TableEditor",setup(b){const s=C0(),t=h0(),C=t.params.tableId,y=t.params.projectId,k=B(!1),u=()=>{var A;k.value=!1,(A=v.value)==null||A.table.save(),w()},{result:v,loading:p,refetch:w}=V0(()=>Promise.all([Z0.get(y).then(async A=>{const z=await Y0.get(A.organizationId);return{project:A,organization:z}}),a0.get(y,C)]).then(([{project:A,organization:z},W])=>J0({project:A,organization:z,table:W}))),e=h(()=>!p.value&&v.value?[{label:"My organizations",path:"/organizations"},{label:v.value.organization.name,path:`/organizations/${v.value.organization.id}`},{label:v.value.project.name,path:`/projects/${v.value.project.id}/tables`}]:void 0);function N(){s.push({name:"tables",params:{projectId:y}})}return(A,z)=>{const W=_0("RouterLink");return l(),L(U0,null,{navbar:n(()=>[o(a(r1),{style:{padding:"5px 25px"},onBack:N},{title:n(()=>[o(a(n0),{align:"center",gap:"small"},{default:n(()=>{var H;return[r("span",B2,o0((H=a(v))==null?void 0:H.table.name),1),o(t0,{type:"text",onClick:z[0]||(z[0]=O=>k.value=!0)},{default:n(()=>[o(a(ia),{size:"16"})]),_:1})]}),_:1}),o(a(X0),{title:"Change table name",open:k.value,onCancel:z[2]||(z[2]=H=>k.value=!1),onOk:u},{default:n(()=>[a(v)?(l(),L(a(X),{key:0,value:a(v).table.name,"onUpdate:value":z[1]||(z[1]=H=>a(v).table.name=H)},null,8,["value"])):_("",!0)]),_:1},8,["open"])]),subTitle:n(()=>[e.value?(l(),L(a(o1),{key:0,style:{margin:"0px 20px"}},{default:n(()=>[(l(!0),i(H0,null,S0(e.value,(H,O)=>(l(),L(a(u1),{key:O},{default:n(()=>[o(W,{to:H.path},{default:n(()=>[P(o0(H.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):_("",!0)]),_:1})]),content:n(()=>[a(v)?(l(),L(D2,{key:0,loading:a(p),table:a(v).table,onRefresh:z[3]||(z[3]=H=>a(w)())},null,8,["loading","table"])):_("",!0)]),_:1})}}});export{u8 as default}; +//# sourceMappingURL=TableEditor.c92c7404.js.map diff --git a/abstra_statics/dist/assets/Tables.59d6d17e.js b/abstra_statics/dist/assets/Tables.59d6d17e.js new file mode 100644 index 000000000..a524f57b2 --- /dev/null +++ b/abstra_statics/dist/assets/Tables.59d6d17e.js @@ -0,0 +1,2 @@ +import{C as T}from"./CrudView.b65b5675.js";import{a as _}from"./asyncComputed.295e9e03.js";import{n}from"./string.e75a34fd.js";import{G as k}from"./PhPencil.vue.a2604470.js";import{d as h,eq as w,ed as I,f as x,c as N,w as l,u as i,o as S,b as D,aF as E,bS as q,er as v}from"./vue-router.3fd92176.js";import"./gateway.c564a1cf.js";import{T as m}from"./tables.3aa20dd6.js";import"./router.59916c0d.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./index.063f7c9e.js";import"./popupNotifcation.0e86d6a8.js";import"./record.cbb43e89.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="2456a9c2-5dc2-410f-be1e-914111322be3",o._sentryDebugIdIdentifier="sentry-dbid-2456a9c2-5dc2-410f-be1e-914111322be3")}catch{}})();const U=h({__name:"Tables",setup(o){const a=w(),t=I().params.projectId,{loading:d,result:p,refetch:u}=_(()=>m.list(t)),b=async e=>{const r=await m.create(t,e.name);a.push({name:"tableEditor",params:{tableId:r.id,projectId:t}})},f=()=>{a.push({name:"sql",params:{projectId:t}})},y=x(()=>{var e,r;return{columns:[{name:"Table Name"},{name:"",align:"right"}],rows:(r=(e=p.value)==null?void 0:e.map(s=>({key:s.id,cells:[{type:"link",text:s.name,to:{name:"tableEditor",params:{tableId:s.id,projectId:t}}},{type:"actions",actions:[{icon:k,label:"Edit Table",onClick({key:C}){a.push({name:"tableEditor",params:{tableId:C,projectId:t}})}},{icon:v,label:"Delete",dangerous:!0,async onClick(){await s.delete(t,s.id),u()}}]}]})))!=null?r:[]}}),g=[{key:"name",label:"Table name",type:"text",format:e=>n(e,!0),blur:e=>n(e,!1)}];return(e,r)=>(S(),N(T,{"entity-name":"table",loading:i(d),"docs-path":"cloud/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:y.value,fields:g,"create-button-text":"Create Table",onCreate:b},{more:l(()=>[D(i(q),{onClick:f},{default:l(()=>[E("Run SQL")]),_:1})]),_:1},8,["loading","table"]))}});export{U as default}; +//# sourceMappingURL=Tables.59d6d17e.js.map diff --git a/abstra_statics/dist/assets/Tables.a777ebbe.js b/abstra_statics/dist/assets/Tables.a777ebbe.js deleted file mode 100644 index f663d04cf..000000000 --- a/abstra_statics/dist/assets/Tables.a777ebbe.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C as T}from"./CrudView.e4956a79.js";import{a as _}from"./asyncComputed.d0f14ed3.js";import{n}from"./string.eaeb96c3.js";import{G as k}from"./PhPencil.vue.f2283e7d.js";import{d as h,eq as w,ed as I,f as x,c as N,w as l,u as i,o as S,b as D,aF as E,bS as q,er as v}from"./vue-router.4c13f3d4.js";import"./gateway.e77556e5.js";import{T as m}from"./tables.e9d41f69.js";import"./router.87582bcc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./index.ec6b7808.js";import"./popupNotifcation.d2ca3d78.js";import"./record.34d5b504.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="99911658-a78a-4355-9a45-90e6974ca08f",o._sentryDebugIdIdentifier="sentry-dbid-99911658-a78a-4355-9a45-90e6974ca08f")}catch{}})();const U=h({__name:"Tables",setup(o){const t=w(),a=I().params.projectId,{loading:d,result:p,refetch:u}=_(()=>m.list(a)),b=async e=>{const r=await m.create(a,e.name);t.push({name:"tableEditor",params:{tableId:r.id,projectId:a}})},f=()=>{t.push({name:"sql",params:{projectId:a}})},y=x(()=>{var e,r;return{columns:[{name:"Table Name"},{name:"",align:"right"}],rows:(r=(e=p.value)==null?void 0:e.map(s=>({key:s.id,cells:[{type:"link",text:s.name,to:{name:"tableEditor",params:{tableId:s.id,projectId:a}}},{type:"actions",actions:[{icon:k,label:"Edit Table",onClick({key:C}){t.push({name:"tableEditor",params:{tableId:C,projectId:a}})}},{icon:v,label:"Delete",dangerous:!0,async onClick(){await s.delete(a,s.id),u()}}]}]})))!=null?r:[]}}),g=[{key:"name",label:"Table name",type:"text",format:e=>n(e,!0),blur:e=>n(e,!1)}];return(e,r)=>(S(),N(T,{"entity-name":"table",loading:i(d),"docs-path":"cloud/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:y.value,fields:g,"create-button-text":"Create Table",onCreate:b},{more:l(()=>[D(i(q),{onClick:f},{default:l(()=>[E("Run SQL")]),_:1})]),_:1},8,["loading","table"]))}});export{U as default}; -//# sourceMappingURL=Tables.a777ebbe.js.map diff --git a/abstra_statics/dist/assets/ThreadSelector.23af8b2c.js b/abstra_statics/dist/assets/ThreadSelector.23af8b2c.js new file mode 100644 index 000000000..33a832c43 --- /dev/null +++ b/abstra_statics/dist/assets/ThreadSelector.23af8b2c.js @@ -0,0 +1,2 @@ +import{d as O,B as _,f as w,o as g,X as m,Z as B,R as D,eb as J,a as v,e as E,W,eo as F,g as T,D as z,b as h,w as p,u,cy as U,aA as q,cx as G,aF as M,c as j,df as N,bS as L,ec as X,aR as K,el as Q,em as Y,$ as aa}from"./vue-router.3fd92176.js";import"./editor.519c2dc1.js";import{W as $}from"./workspaces.b456ec6a.js";import{v as ta}from"./string.e75a34fd.js";import{e as ea}from"./toggleHighContrast.db48a34e.js";import{f as A}from"./index.61e7dffa.js";import{A as na}from"./index.c6ce1c1c.js";import{A as oa}from"./index.4fbbd10e.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="41c13b82-39d9-45d6-9e73-f4f4f6cdfcda",i._sentryDebugIdIdentifier="sentry-dbid-41c13b82-39d9-45d6-9e73-f4f4f6cdfcda")}catch{}})();const sa=["width","height","fill","transform"],ia={key:0},ra=v("path",{d:"M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"},null,-1),da=[ra],la={key:1},ua=v("path",{d:"M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z",opacity:"0.2"},null,-1),ca=v("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),ga=[ua,ca],fa={key:2},ha=v("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),pa=[ha],va={key:3},ma=v("path",{d:"M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"},null,-1),wa=[ma],Sa={key:4},ya=v("path",{d:"M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),Va=[ya],xa={key:5},ba=v("path",{d:"M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"},null,-1),Ca=[ba],Za={name:"PhMagicWand"},_a=O({...Za,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=_("weight","regular"),c=_("size","1em"),V=_("color","currentColor"),k=_("mirrored",!1),d=w(()=>{var r;return(r=e.weight)!=null?r:t}),b=w(()=>{var r;return(r=e.size)!=null?r:c}),C=w(()=>{var r;return(r=e.color)!=null?r:V}),H=w(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(r,I)=>(g(),m("svg",J({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:C.value,transform:H.value},r.$attrs),[B(r.$slots,"default"),d.value==="bold"?(g(),m("g",ia,da)):d.value==="duotone"?(g(),m("g",la,ga)):d.value==="fill"?(g(),m("g",fa,pa)):d.value==="light"?(g(),m("g",va,wa)):d.value==="regular"?(g(),m("g",Sa,Va)):d.value==="thin"?(g(),m("g",xa,Ca)):D("",!0)],16,sa))}});class ka{async list(e){const t=new URLSearchParams({stage:e});return await(await fetch(`/_editor/api/stage_runs?${t}`)).json()}async listPast(e){const t=new URLSearchParams({stage:e});return await(await fetch(`/_editor/api/stage_runs/past?${t}`)).json()}async fork(e,t){return(await fetch("/_editor/api/stage_runs/fork",{method:"POST",body:JSON.stringify({stage_run_id:e,custom_thread_data:t}),headers:{"Content-Type":"application/json"}})).json()}}const R=new ka;class y{constructor(e){this.dto=e}static async list(e){return(await R.list(e)).map(c=>new y(c))}static async listPast(e){return(await R.listPast(e)).map(c=>new y(c))}async fork(e){const t=await R.fork(this.id,e);return new y(t)}get id(){return this.dto.id}get data(){return this.dto.data}get assignee(){return this.dto.assignee}get stage(){return this.dto.stage}get status(){return this.dto.status}get createdAt(){return new Date(this.dto.createdAt)}}const Ha=i=>(Q("data-v-2042db9a"),i=i(),Y(),i),Ma=Ha(()=>v("span",null," Fix with AI ",-1)),La=O({__name:"ThreadSelector",props:{stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(i,{emit:e}){const t=i,c=w(()=>t.executionConfig.attached?"Select a thread to continue the workflow":"Choose a thread to copy the data from"),V=w(()=>t.executionConfig.attached?"Select thread":"Use this thread data"),k=w(()=>t.executionConfig.attached?!t.executionConfig.stageRunId||t.executionConfig.pendingFork:!1),d=w(()=>{if(!a.threadData)return{valid:!0,parsed:{}};const n=ta(a.threadData);return n.valid&&!F.exports.isObject(n.parsed)?{valid:!1,message:"Thread data must be an object."}:n});function b(){d.value.valid||e("fix-invalid-json",a.threadData,d.value.message)}const C=E(null),H=n=>{const o=a.waitingStageRuns.find(S=>S.id===n),l=a.pastStageRuns.find(S=>S.id===n),x=o!=null?o:l;if(!x)throw new Error("Stage run not found");const s=JSON.stringify(x.data,null,2);f.setValue(s),a.threadData=s,a.selectedStageRunId=n,e("update:execution-config",{...t.executionConfig,stageRunId:n,pendingFork:!!l})},r=()=>{e("update:execution-config",{...t.executionConfig,stageRunId:null,pendingFork:!1})},I=()=>{e("update:show-thread-modal",!1),$.writeTestData(a.threadData)},P=async()=>{const n=[...a.waitingStageRuns,...a.pastStageRuns].find(l=>l.id===t.executionConfig.stageRunId),o=await(n==null?void 0:n.fork(a.threadData));if(o){e("update:execution-config",{...t.executionConfig,pendingFork:!1,stageRunId:o==null?void 0:o.id});const l={value:o.id,label:`Started ${A(new Date(o.createdAt),{addSuffix:!0})} (${o.status})`};a.options[0].options.unshift(l),a.waitingStageRuns.push(o),a.threadData=JSON.stringify(o.data,null,2),a.selectedStageRunId=o.id,f.setValue(a.threadData)}};let f;W(async()=>{var x;a.threadData=await $.readTestData(),a.selectedStageRunId=(x=t.executionConfig.stageRunId)!=null?x:void 0;const n=await y.list(t.stage.id),o=await y.listPast(t.stage.id);a.waitingStageRuns=n.filter(s=>s.status==="waiting"),a.pastStageRuns=[...o,...n.filter(s=>s.status!=="waiting")],a.options=[],a.waitingStageRuns.length>0&&a.options.push({label:"Waiting threads",options:a.waitingStageRuns.map(s=>({value:s.id,label:`Started ${A(s.createdAt,{addSuffix:!0})} (${s.status})`}))}),a.pastStageRuns.length>0&&a.options.push({label:"Past threads",options:a.pastStageRuns.map(s=>({value:s.id,label:`Started ${A(s.createdAt,{addSuffix:!0})} (${s.status})`}))}),f=ea.create(C.value,{language:"json",value:a.threadData,fontFamily:"monospace",lineNumbers:"off",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},readOnly:t.executionConfig.attached});const l=f.getContribution("editor.contrib.messageController");f.onDidAttemptReadOnlyEdit(()=>{l.showMessage("Can't edit thread data with workflow on",f.getPosition())}),f.onDidChangeModelContent(()=>{const s=f.getValue();if(a.threadData=s,t.executionConfig.attached&&a.selectedStageRunId){const S=[...a.waitingStageRuns,...a.pastStageRuns].find(Z=>Z.id===a.selectedStageRunId);if(!S){e("update:execution-config",{...t.executionConfig,pendingFork:!0});return}try{const Z=JSON.parse(s);F.exports.isEqual(S.data,Z)?e("update:execution-config",{...t.executionConfig,pendingFork:!1}):e("update:execution-config",{...t.executionConfig,pendingFork:!0})}catch{e("update:execution-config",{...t.executionConfig,pendingFork:!0})}}})}),T(()=>t.executionConfig.stageRunId,n=>{n?a.selectedStageRunId=n:a.selectedStageRunId=void 0}),T(()=>t.executionConfig.attached,n=>{f.updateOptions({readOnly:n})});const a=z({waitingStageRuns:[],pastStageRuns:[],options:[],loading:!1,threadData:"{}",selectedStageRunId:void 0});return(n,o)=>(g(),m(K,null,[h(u(G),{layout:"vertical"},{default:p(()=>[h(u(U),{label:c.value},{default:p(()=>[h(u(q),{placeholder:"No thread selected","filter-option":"",style:{width:"100%"},"allow-clear":!0,options:a.options,value:a.selectedStageRunId,"not-found-content":"There are no threads",onSelect:o[0]||(o[0]=l=>H(l)),onClear:o[1]||(o[1]=l=>r())},null,8,["options","value"])]),_:1},8,["label"])]),_:1}),h(u(na),{orientation:"left"},{default:p(()=>[M("Data")]),_:1}),v("div",{ref_key:"dataJson",ref:C,class:"data-container"},null,512),d.value.valid===!1?(g(),j(u(oa),{key:0,type:"error",message:"Invalid JSON",description:d.value.message},{action:p(()=>[h(u(L),{onClick:b},{default:p(()=>[h(u(N),{align:"center",gap:"small"},{default:p(()=>[h(u(_a)),Ma]),_:1})]),_:1})]),_:1},8,["description"])):D("",!0),h(u(N),{justify:"end",gap:"middle",style:{"margin-top":"12px"}},{default:p(()=>[n.executionConfig.attached&&n.executionConfig.pendingFork?(g(),j(u(L),{key:0,onClick:P},{default:p(()=>[M("Fork")]),_:1})):D("",!0),h(u(L),{type:"primary",disabled:k.value,onClick:I},{default:p(()=>[M(X(V.value),1)]),_:1},8,["disabled"])]),_:1})],64))}});const $a=aa(La,[["__scopeId","data-v-2042db9a"]]);export{$a as T}; +//# sourceMappingURL=ThreadSelector.23af8b2c.js.map diff --git a/abstra_statics/dist/assets/ThreadSelector.788dee18.js b/abstra_statics/dist/assets/ThreadSelector.788dee18.js deleted file mode 100644 index a5d87af97..000000000 --- a/abstra_statics/dist/assets/ThreadSelector.788dee18.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as O,B as _,f as w,o as g,X as m,Z as B,R as D,eb as J,a as v,e as E,W,eo as F,g as T,D as z,b as h,w as p,u,cy as U,aA as q,cx as G,aF as M,c as j,df as N,bS as L,ec as X,aR as K,el as Q,em as Y,$ as ee}from"./vue-router.4c13f3d4.js";import"./editor.49995faa.js";import{W as $}from"./workspaces.1ee4ae8d.js";import{v as ae}from"./string.eaeb96c3.js";import{e as te}from"./toggleHighContrast.017fb466.js";import{f as A}from"./index.3f22f3b8.js";import{A as ne}from"./index.c2ef572b.js";import{A as oe}from"./index.e5bdb21b.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="d93d267b-f8f4-428e-9379-ffe515ce6e70",i._sentryDebugIdIdentifier="sentry-dbid-d93d267b-f8f4-428e-9379-ffe515ce6e70")}catch{}})();const se=["width","height","fill","transform"],ie={key:0},re=v("path",{d:"M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"},null,-1),de=[re],le={key:1},ue=v("path",{d:"M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z",opacity:"0.2"},null,-1),ce=v("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),ge=[ue,ce],fe={key:2},he=v("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),pe=[he],ve={key:3},me=v("path",{d:"M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"},null,-1),we=[me],Se={key:4},ye=v("path",{d:"M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),Ve=[ye],xe={key:5},be=v("path",{d:"M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"},null,-1),Ce=[be],Ze={name:"PhMagicWand"},_e=O({...Ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const t=i,a=_("weight","regular"),c=_("size","1em"),V=_("color","currentColor"),k=_("mirrored",!1),d=w(()=>{var r;return(r=t.weight)!=null?r:a}),b=w(()=>{var r;return(r=t.size)!=null?r:c}),C=w(()=>{var r;return(r=t.color)!=null?r:V}),H=w(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:k?"scale(-1, 1)":void 0);return(r,I)=>(g(),m("svg",J({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:C.value,transform:H.value},r.$attrs),[B(r.$slots,"default"),d.value==="bold"?(g(),m("g",ie,de)):d.value==="duotone"?(g(),m("g",le,ge)):d.value==="fill"?(g(),m("g",fe,pe)):d.value==="light"?(g(),m("g",ve,we)):d.value==="regular"?(g(),m("g",Se,Ve)):d.value==="thin"?(g(),m("g",xe,Ce)):D("",!0)],16,se))}});class ke{async list(t){const a=new URLSearchParams({stage:t});return await(await fetch(`/_editor/api/stage_runs?${a}`)).json()}async listPast(t){const a=new URLSearchParams({stage:t});return await(await fetch(`/_editor/api/stage_runs/past?${a}`)).json()}async fork(t,a){return(await fetch("/_editor/api/stage_runs/fork",{method:"POST",body:JSON.stringify({stage_run_id:t,custom_thread_data:a}),headers:{"Content-Type":"application/json"}})).json()}}const R=new ke;class y{constructor(t){this.dto=t}static async list(t){return(await R.list(t)).map(c=>new y(c))}static async listPast(t){return(await R.listPast(t)).map(c=>new y(c))}async fork(t){const a=await R.fork(this.id,t);return new y(a)}get id(){return this.dto.id}get data(){return this.dto.data}get assignee(){return this.dto.assignee}get stage(){return this.dto.stage}get status(){return this.dto.status}get createdAt(){return new Date(this.dto.createdAt)}}const He=i=>(Q("data-v-2042db9a"),i=i(),Y(),i),Me=He(()=>v("span",null," Fix with AI ",-1)),Le=O({__name:"ThreadSelector",props:{stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(i,{emit:t}){const a=i,c=w(()=>a.executionConfig.attached?"Select a thread to continue the workflow":"Choose a thread to copy the data from"),V=w(()=>a.executionConfig.attached?"Select thread":"Use this thread data"),k=w(()=>a.executionConfig.attached?!a.executionConfig.stageRunId||a.executionConfig.pendingFork:!1),d=w(()=>{if(!e.threadData)return{valid:!0,parsed:{}};const n=ae(e.threadData);return n.valid&&!F.exports.isObject(n.parsed)?{valid:!1,message:"Thread data must be an object."}:n});function b(){d.value.valid||t("fix-invalid-json",e.threadData,d.value.message)}const C=E(null),H=n=>{const o=e.waitingStageRuns.find(S=>S.id===n),l=e.pastStageRuns.find(S=>S.id===n),x=o!=null?o:l;if(!x)throw new Error("Stage run not found");const s=JSON.stringify(x.data,null,2);f.setValue(s),e.threadData=s,e.selectedStageRunId=n,t("update:execution-config",{...a.executionConfig,stageRunId:n,pendingFork:!!l})},r=()=>{t("update:execution-config",{...a.executionConfig,stageRunId:null,pendingFork:!1})},I=()=>{t("update:show-thread-modal",!1),$.writeTestData(e.threadData)},P=async()=>{const n=[...e.waitingStageRuns,...e.pastStageRuns].find(l=>l.id===a.executionConfig.stageRunId),o=await(n==null?void 0:n.fork(e.threadData));if(o){t("update:execution-config",{...a.executionConfig,pendingFork:!1,stageRunId:o==null?void 0:o.id});const l={value:o.id,label:`Started ${A(new Date(o.createdAt),{addSuffix:!0})} (${o.status})`};e.options[0].options.unshift(l),e.waitingStageRuns.push(o),e.threadData=JSON.stringify(o.data,null,2),e.selectedStageRunId=o.id,f.setValue(e.threadData)}};let f;W(async()=>{var x;e.threadData=await $.readTestData(),e.selectedStageRunId=(x=a.executionConfig.stageRunId)!=null?x:void 0;const n=await y.list(a.stage.id),o=await y.listPast(a.stage.id);e.waitingStageRuns=n.filter(s=>s.status==="waiting"),e.pastStageRuns=[...o,...n.filter(s=>s.status!=="waiting")],e.options=[],e.waitingStageRuns.length>0&&e.options.push({label:"Waiting threads",options:e.waitingStageRuns.map(s=>({value:s.id,label:`Started ${A(s.createdAt,{addSuffix:!0})} (${s.status})`}))}),e.pastStageRuns.length>0&&e.options.push({label:"Past threads",options:e.pastStageRuns.map(s=>({value:s.id,label:`Started ${A(s.createdAt,{addSuffix:!0})} (${s.status})`}))}),f=te.create(C.value,{language:"json",value:e.threadData,fontFamily:"monospace",lineNumbers:"off",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},readOnly:a.executionConfig.attached});const l=f.getContribution("editor.contrib.messageController");f.onDidAttemptReadOnlyEdit(()=>{l.showMessage("Can't edit thread data with workflow on",f.getPosition())}),f.onDidChangeModelContent(()=>{const s=f.getValue();if(e.threadData=s,a.executionConfig.attached&&e.selectedStageRunId){const S=[...e.waitingStageRuns,...e.pastStageRuns].find(Z=>Z.id===e.selectedStageRunId);if(!S){t("update:execution-config",{...a.executionConfig,pendingFork:!0});return}try{const Z=JSON.parse(s);F.exports.isEqual(S.data,Z)?t("update:execution-config",{...a.executionConfig,pendingFork:!1}):t("update:execution-config",{...a.executionConfig,pendingFork:!0})}catch{t("update:execution-config",{...a.executionConfig,pendingFork:!0})}}})}),T(()=>a.executionConfig.stageRunId,n=>{n?e.selectedStageRunId=n:e.selectedStageRunId=void 0}),T(()=>a.executionConfig.attached,n=>{f.updateOptions({readOnly:n})});const e=z({waitingStageRuns:[],pastStageRuns:[],options:[],loading:!1,threadData:"{}",selectedStageRunId:void 0});return(n,o)=>(g(),m(K,null,[h(u(G),{layout:"vertical"},{default:p(()=>[h(u(U),{label:c.value},{default:p(()=>[h(u(q),{placeholder:"No thread selected","filter-option":"",style:{width:"100%"},"allow-clear":!0,options:e.options,value:e.selectedStageRunId,"not-found-content":"There are no threads",onSelect:o[0]||(o[0]=l=>H(l)),onClear:o[1]||(o[1]=l=>r())},null,8,["options","value"])]),_:1},8,["label"])]),_:1}),h(u(ne),{orientation:"left"},{default:p(()=>[M("Data")]),_:1}),v("div",{ref_key:"dataJson",ref:C,class:"data-container"},null,512),d.value.valid===!1?(g(),j(u(oe),{key:0,type:"error",message:"Invalid JSON",description:d.value.message},{action:p(()=>[h(u(L),{onClick:b},{default:p(()=>[h(u(N),{align:"center",gap:"small"},{default:p(()=>[h(u(_e)),Me]),_:1})]),_:1})]),_:1},8,["description"])):D("",!0),h(u(N),{justify:"end",gap:"middle",style:{"margin-top":"12px"}},{default:p(()=>[n.executionConfig.attached&&n.executionConfig.pendingFork?(g(),j(u(L),{key:0,onClick:P},{default:p(()=>[M("Fork")]),_:1})):D("",!0),h(u(L),{type:"primary",disabled:k.value,onClick:I},{default:p(()=>[M(X(V.value),1)]),_:1},8,["disabled"])]),_:1})],64))}});const $e=ee(Le,[["__scopeId","data-v-2042db9a"]]);export{$e as T}; -//# sourceMappingURL=ThreadSelector.788dee18.js.map diff --git a/abstra_statics/dist/assets/Threads.265da970.js b/abstra_statics/dist/assets/Threads.265da970.js new file mode 100644 index 000000000..091bc9728 --- /dev/null +++ b/abstra_statics/dist/assets/Threads.265da970.js @@ -0,0 +1,2 @@ +import{P as k}from"./api.854a5e4c.js";import{b as _}from"./workspaceStore.411ef1fe.js";import{d as w,L as g,N as l,e as v,X as h,b as a,w as T,u as e,c as p,R as m,o as s,$ as K}from"./vue-router.3fd92176.js";import{K as R,_ as I,W as P,P as S,b as V}from"./WorkflowView.3fb1431f.js";import{A as b,T as x}from"./TabPane.d0ca7ad5.js";import"./Card.0ce127d8.js";import"./fetch.8c5b12c2.js";import"./metadata.789df59c.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./polling.4e30c061.js";import"./asyncComputed.295e9e03.js";import"./PhQuestion.vue.129febdc.js";import"./ant-design.38477595.js";import"./index.063f7c9e.js";import"./index.61e7dffa.js";import"./index.82d1f1ac.js";import"./CollapsePanel.87687b29.js";import"./index.c6ce1c1c.js";import"./index.9c5136e0.js";import"./isNumeric.75337b1e.js";import"./PhArrowCounterClockwise.vue.8fbc5885.js";import"./Workflow.c11e942b.js";import"./PhArrowClockwise.vue.2725755a.js";import"./validations.0afef3f1.js";import"./string.e75a34fd.js";import"./uuid.06ef1e24.js";import"./index.bd967757.js";import"./workspaces.b456ec6a.js";import"./record.cbb43e89.js";import"./index.f6dcc8cb.js";import"./Badge.bcc65740.js";import"./LoadingOutlined.dad6ee6e.js";import"./DeleteOutlined.a95bba08.js";import"./PhDownloadSimple.vue.33128e79.js";import"./utils.4c5a1d76.js";import"./LoadingContainer.cc61e2fd.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="88cfe57d-0b26-4645-9fb4-2b4093b8ed56",t._sentryDebugIdIdentifier="sentry-dbid-88cfe57d-0b26-4645-9fb4-2b4093b8ed56")}catch{}})();const W={class:"threads-view"},A=w({__name:"Threads",setup(t){const r=_().authHeaders,u=new k(r),i=new S(r),c=new V(r),y=new g(l.array(l.string()),"kanban-selected-stages"),o=v("kanban");return(B,d)=>(s(),h("div",W,[a(e(x),{activeKey:o.value,"onUpdate:activeKey":d[0]||(d[0]=f=>o.value=f)},{default:T(()=>[a(e(b),{key:"kanban",tab:"Kanban View"}),a(e(b),{key:"table",tab:"Table View"}),a(e(b),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),o.value==="kanban"?(s(),p(R,{key:0,"kanban-repository":e(i),"kanban-stages-storage":e(y),"stage-run-repository":e(c)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):m("",!0),o.value==="table"?(s(),p(I,{key:1,"kanban-repository":e(i)},null,8,["kanban-repository"])):m("",!0),o.value==="workflow"?(s(),p(P,{key:2,"kanban-repository":e(i),"workflow-api":e(u)},null,8,["kanban-repository","workflow-api"])):m("",!0)]))}});const ve=K(A,[["__scopeId","data-v-d2894db4"]]);export{ve as default}; +//# sourceMappingURL=Threads.265da970.js.map diff --git a/abstra_statics/dist/assets/Threads.455cb692.js b/abstra_statics/dist/assets/Threads.455cb692.js deleted file mode 100644 index ce2a17460..000000000 --- a/abstra_statics/dist/assets/Threads.455cb692.js +++ /dev/null @@ -1,2 +0,0 @@ -import{P as f}from"./api.a5810267.js";import{b as _}from"./workspaceStore.ae240ce8.js";import{d as w,L as g,N as b,e as v,X as h,b as r,w as T,u as e,c as p,R as m,o as s,$ as K}from"./vue-router.4c13f3d4.js";import{K as R,_ as I,W as P,P as S,b as V}from"./WorkflowView.11202833.js";import{A as d,T as x}from"./TabPane.9889f7a8.js";import"./Card.b3c66431.js";import"./fetch.492045fb.js";import"./metadata.d6f3a171.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./polling.ce5b4e64.js";import"./asyncComputed.d0f14ed3.js";import"./PhQuestion.vue.500e5a18.js";import"./ant-design.57cbe6fb.js";import"./index.ec6b7808.js";import"./index.3f22f3b8.js";import"./index.03e5f55c.js";import"./CollapsePanel.d6e0f903.js";import"./index.c2ef572b.js";import"./index.c9c8d27c.js";import"./isNumeric.75337b1e.js";import"./PhArrowCounterClockwise.vue.548df89b.js";import"./Workflow.602b68d4.js";import"./PhArrowClockwise.vue.5c4db05c.js";import"./validations.f7853e39.js";import"./string.eaeb96c3.js";import"./uuid.27635aee.js";import"./index.52fae423.js";import"./workspaces.1ee4ae8d.js";import"./record.34d5b504.js";import"./index.40c3f00c.js";import"./Badge.49622b8e.js";import"./LoadingOutlined.6c0b95d8.js";import"./DeleteOutlined.a943fe4d.js";import"./PhDownloadSimple.vue.285a519c.js";import"./utils.b9d20cd5.js";import"./LoadingContainer.01cf1024.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="e62a3eab-5332-47da-8028-880dc714778b",t._sentryDebugIdIdentifier="sentry-dbid-e62a3eab-5332-47da-8028-880dc714778b")}catch{}})();const W={class:"threads-view"},A=w({__name:"Threads",setup(t){const a=_().authHeaders,u=new f(a),i=new S(a),c=new V(a),y=new g(b.array(b.string()),"kanban-selected-stages"),o=v("kanban");return(B,l)=>(s(),h("div",W,[r(e(x),{activeKey:o.value,"onUpdate:activeKey":l[0]||(l[0]=k=>o.value=k)},{default:T(()=>[r(e(d),{key:"kanban",tab:"Kanban View"}),r(e(d),{key:"table",tab:"Table View"}),r(e(d),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),o.value==="kanban"?(s(),p(R,{key:0,"kanban-repository":e(i),"kanban-stages-storage":e(y),"stage-run-repository":e(c)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):m("",!0),o.value==="table"?(s(),p(I,{key:1,"kanban-repository":e(i)},null,8,["kanban-repository"])):m("",!0),o.value==="workflow"?(s(),p(P,{key:2,"kanban-repository":e(i),"workflow-api":e(u)},null,8,["kanban-repository","workflow-api"])):m("",!0)]))}});const ve=K(A,[["__scopeId","data-v-d2894db4"]]);export{ve as default}; -//# sourceMappingURL=Threads.455cb692.js.map diff --git a/abstra_statics/dist/assets/UnsavedChangesHandler.5ab8a23e.js b/abstra_statics/dist/assets/UnsavedChangesHandler.9562b93c.js similarity index 88% rename from abstra_statics/dist/assets/UnsavedChangesHandler.5ab8a23e.js rename to abstra_statics/dist/assets/UnsavedChangesHandler.9562b93c.js index 5f985660d..c5368682e 100644 --- a/abstra_statics/dist/assets/UnsavedChangesHandler.5ab8a23e.js +++ b/abstra_statics/dist/assets/UnsavedChangesHandler.9562b93c.js @@ -1,2 +1,2 @@ -import{d as p,B as H,f as h,o,X as s,Z as m,R as V,eb as y,a as r,eD as w,g as A,W as Z,ag as _,c as M,w as b,u as C,A as k,cK as B,b as L,$ as x}from"./vue-router.4c13f3d4.js";import{E as D}from"./ExclamationCircleOutlined.e0ca00ea.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="3f57bee5-0076-4819-97c2-d98cc4d39f1e",t._sentryDebugIdIdentifier="sentry-dbid-3f57bee5-0076-4819-97c2-d98cc4d39f1e")}catch{}})();const E=["width","height","fill","transform"],U={key:0},I=r("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"},null,-1),P=[I],N={key:1},S=r("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"},null,-1),$=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),z=[S,$],T={key:2},j=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),F=[j],O={key:3},R=r("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"},null,-1),W=[R],Y={key:4},G=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),K=[G],X={key:5},q=r("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"},null,-1),J=[q],Q={name:"PhFloppyDisk"},o0=p({...Q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(t){const n=t,l=H("weight","regular"),g=H("size","1em"),i=H("color","currentColor"),c=H("mirrored",!1),e=h(()=>{var a;return(a=n.weight)!=null?a:l}),u=h(()=>{var a;return(a=n.size)!=null?a:g}),d=h(()=>{var a;return(a=n.color)!=null?a:i}),v=h(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(a,a0)=>(o(),s("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:d.value,transform:v.value},a.$attrs),[m(a.$slots,"default"),e.value==="bold"?(o(),s("g",U,P)):e.value==="duotone"?(o(),s("g",N,z)):e.value==="fill"?(o(),s("g",T,F)):e.value==="light"?(o(),s("g",O,W)):e.value==="regular"?(o(),s("g",Y,K)):e.value==="thin"?(o(),s("g",X,J)):V("",!0)],16,E))}}),f="You have unsaved changes. Are you sure you want to leave?",e0=p({__name:"UnsavedChangesHandler",props:{hasChanges:{type:Boolean}},setup(t){const n=t,l=e=>(e=e||window.event,e&&(e.returnValue=f),f),g=()=>{window.addEventListener("beforeunload",l)};w(async(e,u,d)=>{if(!n.hasChanges)return d();await new Promise(a=>{B.confirm({title:"You have unsaved changes.",icon:L(D),content:"Are you sure you want to discard them?",okText:"Discard Changes",okType:"danger",cancelText:"Cancel",onOk(){a(!0)},onCancel(){a(!1)}})})?d():d(!1)});const i=()=>window.removeEventListener("beforeunload",l),c=e=>e?g():i();return A(()=>n.hasChanges,c),Z(()=>c(n.hasChanges)),_(i),(e,u)=>(o(),M(C(k),{theme:{token:{colorPrimary:"#d14056"}}},{default:b(()=>[m(e.$slots,"default",{},void 0,!0)]),_:3}))}});const s0=x(e0,[["__scopeId","data-v-08510d52"]]);export{o0 as G,s0 as U}; -//# sourceMappingURL=UnsavedChangesHandler.5ab8a23e.js.map +import{d as p,B as H,f as h,o,X as s,Z as m,R as V,eb as y,a as r,eD as w,g as A,W as Z,ag as _,c as b,w as M,u as C,A as k,cK as B,b as L,$ as x}from"./vue-router.3fd92176.js";import{E as D}from"./ExclamationCircleOutlined.379cd3ee.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="f619d802-b9b3-4320-8e1c-5c738f5c0ba0",t._sentryDebugIdIdentifier="sentry-dbid-f619d802-b9b3-4320-8e1c-5c738f5c0ba0")}catch{}})();const E=["width","height","fill","transform"],U={key:0},I=r("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"},null,-1),P=[I],N={key:1},S=r("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"},null,-1),$=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),z=[S,$],T={key:2},j=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),F=[j],O={key:3},R=r("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"},null,-1),W=[R],Y={key:4},G=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),K=[G],X={key:5},q=r("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"},null,-1),J=[q],Q={name:"PhFloppyDisk"},o0=p({...Q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(t){const n=t,l=H("weight","regular"),g=H("size","1em"),i=H("color","currentColor"),c=H("mirrored",!1),e=h(()=>{var a;return(a=n.weight)!=null?a:l}),u=h(()=>{var a;return(a=n.size)!=null?a:g}),d=h(()=>{var a;return(a=n.color)!=null?a:i}),v=h(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(a,a0)=>(o(),s("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:d.value,transform:v.value},a.$attrs),[m(a.$slots,"default"),e.value==="bold"?(o(),s("g",U,P)):e.value==="duotone"?(o(),s("g",N,z)):e.value==="fill"?(o(),s("g",T,F)):e.value==="light"?(o(),s("g",O,W)):e.value==="regular"?(o(),s("g",Y,K)):e.value==="thin"?(o(),s("g",X,J)):V("",!0)],16,E))}}),f="You have unsaved changes. Are you sure you want to leave?",e0=p({__name:"UnsavedChangesHandler",props:{hasChanges:{type:Boolean}},setup(t){const n=t,l=e=>(e=e||window.event,e&&(e.returnValue=f),f),g=()=>{window.addEventListener("beforeunload",l)};w(async(e,u,d)=>{if(!n.hasChanges)return d();await new Promise(a=>{B.confirm({title:"You have unsaved changes.",icon:L(D),content:"Are you sure you want to discard them?",okText:"Discard Changes",okType:"danger",cancelText:"Cancel",onOk(){a(!0)},onCancel(){a(!1)}})})?d():d(!1)});const i=()=>window.removeEventListener("beforeunload",l),c=e=>e?g():i();return A(()=>n.hasChanges,c),Z(()=>c(n.hasChanges)),_(i),(e,u)=>(o(),b(C(k),{theme:{token:{colorPrimary:"#d14056"}}},{default:M(()=>[m(e.$slots,"default",{},void 0,!0)]),_:3}))}});const s0=x(e0,[["__scopeId","data-v-08510d52"]]);export{o0 as G,s0 as U}; +//# sourceMappingURL=UnsavedChangesHandler.9562b93c.js.map diff --git a/abstra_statics/dist/assets/VSCodeConnection.2f34f261.js b/abstra_statics/dist/assets/VSCodeConnection.e06697af.js similarity index 79% rename from abstra_statics/dist/assets/VSCodeConnection.2f34f261.js rename to abstra_statics/dist/assets/VSCodeConnection.e06697af.js index bce0acbd7..a45d825aa 100644 --- a/abstra_statics/dist/assets/VSCodeConnection.2f34f261.js +++ b/abstra_statics/dist/assets/VSCodeConnection.e06697af.js @@ -1,2 +1,2 @@ -import{C as v}from"./ContentLayout.f8da2f52.js";import{u as w}from"./polling.ce5b4e64.js";import{d as k,e as C,W as S,ag as x,c,w as e,o as f,b as o,aF as t,u as n,db as l,d9 as a,da as r,ec as _,bS as D}from"./vue-router.4c13f3d4.js";import{A as g}from"./index.ec6b7808.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[s]="d6e28cd1-ea1e-40c6-906e-ae0513bd72c5",d._sentryDebugIdIdentifier="sentry-dbid-d6e28cd1-ea1e-40c6-906e-ae0513bd72c5")}catch{}})();const P=k({__name:"VSCodeConnection",setup(d){async function s(){const i=await fetch("/_editor/api/debugger",{method:"GET"});if(!i.ok)throw new Error("Failed to check debugger connection");return await i.json()}async function p(){await fetch("/_editor/api/debugger/vscode-launch",{method:"POST"}),h()}const u=C({connected:!1,port:0,is_launch_json_configured:!1,interpreter:"",root:""});async function h(){u.value=await s()}const{startPolling:y,endPolling:b}=w({task:h});return S(()=>y()),x(()=>b()),(i,m)=>(f(),c(v,null,{default:e(()=>[o(n(l),null,{default:e(()=>[t("VS Code")]),_:1}),o(n(g),{direction:"vertical"},{default:e(()=>[o(n(a),null,{default:e(()=>[t(" General settings to get the most out of Abstra + VS Code together ")]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Project folder")]),_:1}),o(n(a),null,{default:e(()=>[t(" Make sure to open your VS Code in this directory: "),o(n(r),{code:""},{default:e(()=>[t(_(u.value.root),1)]),_:1})]),_:1}),o(n(a),null,{default:e(()=>[t(" This is important for the next settings work properly ")]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Extension")]),_:1}),o(n(a),null,{default:e(()=>[t(" You should install the python extension")]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Debugger")]),_:1}),u.value.is_launch_json_configured?(f(),c(n(g),{key:0,direction:"vertical"},{default:e(()=>[o(n(a),null,{default:e(()=>[t("Your debugger connection is configured")]),_:1}),o(n(r),{style:{"font-size":"24px"},copyable:"",code:""},{default:e(()=>[t(_(u.value.port),1)]),_:1})]),_:1})):(f(),c(n(g),{key:1,direction:"vertical"},{default:e(()=>[o(n(r),null,{default:e(()=>[t(" Your debugger connection is not configured ")]),_:1}),o(n(D),{onClick:p},{default:e(()=>[t("Configure launch.json")]),_:1})]),_:1})),o(n(l),{level:3},{default:e(()=>[t("Interpreter")]),_:1}),o(n(a),null,{default:e(()=>[t(" This is the current python interpreter running abstra: "),o(n(r),{code:""},{default:e(()=>[t(_(u.value.interpreter),1)]),_:1})]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Default editor")]),_:1}),o(n(a),null,{default:e(()=>[t(" Make sure to set VS Code as default application for "),o(n(r),{code:""},{default:e(()=>[t("*.py")]),_:1}),t(", "),o(n(r),{code:""},{default:e(()=>[t("requirements.txt")]),_:1}),t(" and "),o(n(r),{code:""},{default:e(()=>[t(".env")]),_:1}),t(" files ")]),_:1})]),_:1})]),_:1}))}});export{P as default}; -//# sourceMappingURL=VSCodeConnection.2f34f261.js.map +import{C as v}from"./ContentLayout.72beb65c.js";import{u as w}from"./polling.4e30c061.js";import{d as k,e as C,W as S,ag as x,c,w as e,o as f,b as o,aF as t,u as n,db as l,d9 as a,da as r,ec as _,bS as D}from"./vue-router.3fd92176.js";import{A as g}from"./index.063f7c9e.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[s]="bd71794b-38bc-4037-ade0-1242e40aa4dc",d._sentryDebugIdIdentifier="sentry-dbid-bd71794b-38bc-4037-ade0-1242e40aa4dc")}catch{}})();const P=k({__name:"VSCodeConnection",setup(d){async function s(){const i=await fetch("/_editor/api/debugger",{method:"GET"});if(!i.ok)throw new Error("Failed to check debugger connection");return await i.json()}async function p(){await fetch("/_editor/api/debugger/vscode-launch",{method:"POST"}),b()}const u=C({connected:!1,port:0,is_launch_json_configured:!1,interpreter:"",root:""});async function b(){u.value=await s()}const{startPolling:h,endPolling:y}=w({task:b});return S(()=>h()),x(()=>y()),(i,m)=>(f(),c(v,null,{default:e(()=>[o(n(l),null,{default:e(()=>[t("VS Code")]),_:1}),o(n(g),{direction:"vertical"},{default:e(()=>[o(n(a),null,{default:e(()=>[t(" General settings to get the most out of Abstra + VS Code together ")]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Project folder")]),_:1}),o(n(a),null,{default:e(()=>[t(" Make sure to open your VS Code in this directory: "),o(n(r),{code:""},{default:e(()=>[t(_(u.value.root),1)]),_:1})]),_:1}),o(n(a),null,{default:e(()=>[t(" This is important for the next settings work properly ")]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Extension")]),_:1}),o(n(a),null,{default:e(()=>[t(" You should install the python extension")]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Debugger")]),_:1}),u.value.is_launch_json_configured?(f(),c(n(g),{key:0,direction:"vertical"},{default:e(()=>[o(n(a),null,{default:e(()=>[t("Your debugger connection is configured")]),_:1}),o(n(r),{style:{"font-size":"24px"},copyable:"",code:""},{default:e(()=>[t(_(u.value.port),1)]),_:1})]),_:1})):(f(),c(n(g),{key:1,direction:"vertical"},{default:e(()=>[o(n(r),null,{default:e(()=>[t(" Your debugger connection is not configured ")]),_:1}),o(n(D),{onClick:p},{default:e(()=>[t("Configure launch.json")]),_:1})]),_:1})),o(n(l),{level:3},{default:e(()=>[t("Interpreter")]),_:1}),o(n(a),null,{default:e(()=>[t(" This is the current python interpreter running abstra: "),o(n(r),{code:""},{default:e(()=>[t(_(u.value.interpreter),1)]),_:1})]),_:1}),o(n(l),{level:3},{default:e(()=>[t("Default editor")]),_:1}),o(n(a),null,{default:e(()=>[t(" Make sure to set VS Code as default application for "),o(n(r),{code:""},{default:e(()=>[t("*.py")]),_:1}),t(", "),o(n(r),{code:""},{default:e(()=>[t("requirements.txt")]),_:1}),t(" and "),o(n(r),{code:""},{default:e(()=>[t(".env")]),_:1}),t(" files ")]),_:1})]),_:1})]),_:1}))}});export{P as default}; +//# sourceMappingURL=VSCodeConnection.e06697af.js.map diff --git a/abstra_statics/dist/assets/View.5943aae3.js b/abstra_statics/dist/assets/View.7bf35c36.js similarity index 92% rename from abstra_statics/dist/assets/View.5943aae3.js rename to abstra_statics/dist/assets/View.7bf35c36.js index 849de55e9..32526db99 100644 --- a/abstra_statics/dist/assets/View.5943aae3.js +++ b/abstra_statics/dist/assets/View.7bf35c36.js @@ -1,2 +1,2 @@ -var ye=Object.defineProperty;var fe=(s,e,a)=>e in s?ye(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var U=(s,e,a)=>(fe(s,typeof e!="symbol"?e+"":e,a),a);import{a as q}from"./asyncComputed.d0f14ed3.js";import{d as b,e as E,c as g,w as l,u as t,o as m,b as r,cO as K,aF as h,aA as G,cQ as ge,bS as _,df as he,D as T,cy as w,bK as N,cx as F,f as W,X,ee as ve,d3 as _e,ec as we,aR as H,er as J,cD as Y,ed as be,W as Ce,R as I,db as ke,d9 as Pe}from"./vue-router.4c13f3d4.js";import{A}from"./index.ec6b7808.js";import{_ as Ue}from"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import{A as B}from"./index.c9c8d27c.js";import{C as ee}from"./CrudView.e4956a79.js";import{G as te}from"./PhPencil.vue.f2283e7d.js";import{C as Re}from"./repository.a59a08e6.js";import{C as R}from"./gateway.e77556e5.js";import{E as ae}from"./record.34d5b504.js";import{p as k}from"./popupNotifcation.d2ca3d78.js";import{a as M}from"./ant-design.57cbe6fb.js";import{A as Z,T as Ae}from"./TabPane.9889f7a8.js";import"./BookOutlined.a8460802.js";import"./isNumeric.75337b1e.js";import"./router.87582bcc.js";import"./url.c1b32560.js";import"./PhDotsThreeVertical.vue.75f90272.js";import"./fetch.492045fb.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="1b3834d5-d36d-46e3-80c7-945c8cec2a5a",s._sentryDebugIdIdentifier="sentry-dbid-1b3834d5-d36d-46e3-80c7-945c8cec2a5a")}catch{}})();const Ee=b({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(s,{emit:e}){const a=s,o=E(a.signupPolicy.strategy),n=E(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns:[]),i=E(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns.map(c=>({label:c})):[]),y=c=>{const C=c;if(n.value=C,C.length===0){o.value="inviteOnly",f("inviteOnly");return}i.value=C.map(P=>({label:P})),a.signupPolicy.emailPatterns=c,e("updated",a.signupPolicy)},p=()=>{e("save")},f=c=>{o.value=c,c!=="patternOnly"&&(c==="inviteOnly"&&a.signupPolicy.allowOnlyInvited(),e("updated",a.signupPolicy))};return(c,C)=>(m(),g(t(he),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:l(()=>[r(t(ge),{value:o.value,"onUpdate:value":f},{default:l(()=>[r(t(A),{direction:"vertical"},{default:l(()=>[r(t(K),{value:"inviteOnly"},{default:l(()=>[h("Allow listed users only")]),_:1}),r(t(A),null,{default:l(()=>[r(t(K),{value:"patternOnly"},{default:l(()=>[h("Allow everyone from this domain:")]),_:1}),r(t(G),{mode:"tags",value:c.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:"@domain.com or sub.domain.com",disabled:o.value!=="patternOnly",options:i.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":y},null,8,["value","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),r(t(_),{disabled:!c.signupPolicy.hasChanges,type:"primary",onClick:p},{default:l(()=>[h(" Save changes ")]),_:1},8,["disabled"])]),_:1}))}}),xe=b({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(s,{emit:e}){const o=s.roleOptions.map(p=>({label:p.name,value:p.name})),n=T({email:"",roles:[]});function i(){e("cancel")}function y(){!n.email||e("created",n)}return(p,f)=>(m(),g(t(B),{open:"",title:"New user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:n,layout:"vertical"},{default:l(()=>[r(t(w),{key:"email",label:"Email",required:!0},{default:l(()=>[r(t(N),{value:n.email,"onUpdate:value":f[0]||(f[0]=c=>n.email=c)},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(G),{value:n.roles,"onUpdate:value":f[1]||(f[1]=c=>n.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Oe=b({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=a.roleOptions.map(p=>({label:p.name,value:p.name})),n=T({email:a.email,roles:a.roles});function i(){e("cancel")}function y(){e("updated",n)}return(p,f)=>(m(),g(t(B),{open:"",title:"Update user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:n,layout:"vertical"},{default:l(()=>[r(t(w),{key:"email",label:"Email"},{default:l(()=>[r(t(N),{value:n.email,"onUpdate:value":f[0]||(f[0]=c=>n.email=c)},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(G),{value:n.roles,"onUpdate:value":f[1]||(f[1]=c=>n.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),De=b({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=W(()=>{var o;return{columns:[{name:"Email"},{name:"Roles"},{name:"",align:"right"}],rows:(o=e.users.map(n=>({key:n.email,cells:[{type:"text",text:n.email},{type:"slot",key:"roles",payload:{roles:n.roles}},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(n)},{icon:J,label:"Delete",onClick:()=>e.onDelete(n)}]}]})))!=null?o:[]}});return(o,n)=>(m(),g(ee,{"entity-name":"users",title:"",loading:o.loading,description:"List all app users.","empty-title":"No users yet",table:a.value,"create-button-text":"Add users",onCreate:o.onCreate},{roles:l(({payload:i})=>[(m(!0),X(H,null,ve(i.roles,y=>(m(),g(t(_e),{key:y,bordered:""},{default:l(()=>[h(we(y),1)]),_:2},1024))),128))]),_:1},8,["loading","table","onCreate"]))}}),$e=b({__name:"NewRole",emits:["created","cancel"],setup(s,{emit:e}){const a=T({name:"",description:""});function o(){e("cancel")}function n(){!a.name||e("created",a)}return(i,y)=>(m(),g(t(B),{open:"",title:"New role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:o},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:o},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:n},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:a,layout:"vertical"},{default:l(()=>[r(t(w),{key:"name",label:"Name",required:!0},{default:l(()=>[r(t(N),{value:a.name,"onUpdate:value":y[0]||(y[0]=p=>a.name=p)},null,8,["value"])]),_:1}),r(t(w),{key:"description",label:"Description"},{default:l(()=>[r(t(Y),{value:a.description,"onUpdate:value":y[1]||(y[1]=p=>a.description=p),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Ie=b({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=T({description:a.description});function n(){e("cancel")}function i(){e("updated",o)}return(y,p)=>(m(),g(t(B),{open:"",title:"Update role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:n},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:n},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:i},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:o,layout:"vertical"},{default:l(()=>[r(t(w),{key:"name",label:"Name"},{default:l(()=>[r(t(N),{value:a.name,disabled:""},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(Y),{value:o.description,"onUpdate:value":p[0]||(p[0]=f=>o.description=f),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),je=b({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=W(()=>{var o;return{columns:[{name:"Name"},{name:"Description"},{name:"",align:"right"}],rows:(o=e.roles.map(n=>({key:n.id,cells:[{type:"text",text:n.name},{type:"text",text:n.description},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(n)},{icon:J,label:"Delete",onClick:()=>e.onDelete(n)}]}]})))!=null?o:[]}});return(o,n)=>(m(),g(ee,{"entity-name":"roles",loading:o.loading,title:"",description:"List all app roles.","empty-title":"No roles yet",table:a.value,"create-button-text":"Add roles",onCreate:o.onCreate},null,8,["loading","table","onCreate"]))}}),S=class{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new S(e)}toDTO(){return this.record.toDTO()}get id(){return this.record.get("id")}get projectId(){return this.record.get("projectId")}get emailPatterns(){return this.record.get("emailPatterns")}set emailPatterns(e){this.record.set("emailPatterns",e)}get hasChanges(){return this.record.hasChangesDeep("emailPatterns")}get strategy(){return this.dto.emailPatterns.length===0?"inviteOnly":"patternOnly"}get changes(){return this.record.changes}allowOnlyInvited(){this.record.set("emailPatterns",[])}static validate(e){return S.pattern.test(e)}};let x=S;U(x,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?{const d=new URLSearchParams(location.search).get("selected-panel")||"users",v=["roles","users"].includes(d)?d:"users";d&&(n.value=v)});const i=()=>{o.value.type="initial"},y=()=>{o.value.type="creatingUser"},p=u=>{o.value={type:"editingUser",payload:u}},f=()=>{o.value.type="creatingRole"},c=u=>{o.value={type:"editingRole",payload:u}},C=new Te(a),{result:P,refetch:oe}=q(()=>C.get()),ne=async()=>{if(!!P.value)try{await C.update(P.value),oe()}catch(u){u instanceof Error&&k("Update Error",u.message)}},O=new Fe(a),{loading:re,result:le,refetch:D}=q(()=>O.list(100,0)),$=new Re(a),{loading:se,result:V,refetch:L}=q(()=>$.list(100,0)),ie=async u=>{try{if(o.value.type!=="creatingUser")return;await O.create(u),i(),D()}catch(d){d instanceof Error&&k("Create Error",d.message)}},ce=async u=>{try{if(o.value.type!=="editingUser")return;await O.update(o.value.payload.id,u),i(),D()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ue=async u=>{if(!!await M("Deleting users revoke their access to your application (in case they aren't allowed by a domain rule). Are you sure you want to continue?"))try{await O.delete(u.id),D()}catch(v){v instanceof Error&&k("Delete Error",v.message)}},de=async u=>{try{if(o.value.type!=="creatingRole")return;await $.create(u),i(),L()}catch(d){d instanceof Error&&k("Create Error",d.message)}},pe=async u=>{try{if(o.value.type!=="editingRole")return;await $.update(o.value.payload.id,u),i(),L()}catch(d){d instanceof Error&&k("Update Error",d.message)}},me=async u=>{if(!!await M("Deleteing roles may revoke access to some features in your application. Are you sure you want to continue?"))try{await $.delete(u.id),L(),D()}catch(v){v instanceof Error&&k("Delete Error",v.message)}};return(u,d)=>(m(),X(H,null,[r(t(ke),null,{default:l(()=>[h("Access Control")]),_:1}),r(t(Pe),null,{default:l(()=>[h(" Manage how your end users interect with your application. "),r(Ue,{path:"concepts/access-control"})]),_:1}),r(t(Ae),{"active-key":n.value,"onUpdate:activeKey":d[0]||(d[0]=v=>n.value=v)},{default:l(()=>[r(t(Z),{key:"users",tab:"Users"}),r(t(Z),{key:"roles",tab:"Roles"})]),_:1},8,["active-key"]),n.value==="users"&&t(P)?(m(),g(Ee,{key:0,"signup-policy":t(P),onSave:ne},null,8,["signup-policy"])):I("",!0),n.value==="users"?(m(),g(De,{key:1,loading:t(re),users:t(le)||[],onCreate:y,onEdit:p,onDelete:ue},null,8,["loading","users"])):I("",!0),n.value==="roles"?(m(),g(je,{key:2,loading:t(se),roles:t(V)||[],onCreate:f,onEdit:c,onDelete:me},null,8,["loading","roles"])):I("",!0),o.value.type==="creatingUser"?(m(),g(xe,{key:3,"role-options":t(V)||[],onCancel:i,onCreated:ie},null,8,["role-options"])):o.value.type==="editingUser"?(m(),g(Oe,{key:4,email:o.value.payload.email,roles:o.value.payload.roles||[],"role-options":t(V)||[],onUpdated:ce,onCancel:i},null,8,["email","roles","role-options"])):o.value.type==="creatingRole"?(m(),g($e,{key:5,onCancel:i,onCreated:de})):o.value.type==="editingRole"?(m(),g(Ie,{key:6,name:o.value.payload.name,description:o.value.payload.description,onUpdated:pe,onCancel:i},null,8,["name","description"])):I("",!0)],64))}});export{rt as default}; -//# sourceMappingURL=View.5943aae3.js.map +var ye=Object.defineProperty;var fe=(s,e,a)=>e in s?ye(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var U=(s,e,a)=>(fe(s,typeof e!="symbol"?e+"":e,a),a);import{a as q}from"./asyncComputed.295e9e03.js";import{d as b,e as E,c as g,w as l,u as t,o as m,b as r,cO as K,aF as h,aA as G,cQ as ge,bS as _,df as he,D as T,cy as w,bK as N,cx as F,f as W,X,ee as ve,d3 as _e,ec as we,aR as H,er as J,cD as Y,ed as be,W as Ce,R as I,db as ke,d9 as Pe}from"./vue-router.3fd92176.js";import{A}from"./index.063f7c9e.js";import{_ as Ue}from"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import{A as B}from"./index.9c5136e0.js";import{C as ee}from"./CrudView.b65b5675.js";import{G as te}from"./PhPencil.vue.a2604470.js";import{C as Re}from"./repository.9283185a.js";import{C as R}from"./gateway.c564a1cf.js";import{E as ae}from"./record.cbb43e89.js";import{p as k}from"./popupNotifcation.0e86d6a8.js";import{a as M}from"./ant-design.38477595.js";import{A as Z,T as Ae}from"./TabPane.d0ca7ad5.js";import"./BookOutlined.5f7ad9dc.js";import"./isNumeric.75337b1e.js";import"./router.59916c0d.js";import"./url.5959ae47.js";import"./PhDotsThreeVertical.vue.c39db334.js";import"./fetch.8c5b12c2.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="74353d80-6ac1-4ed9-b8b9-5d599a78f452",s._sentryDebugIdIdentifier="sentry-dbid-74353d80-6ac1-4ed9-b8b9-5d599a78f452")}catch{}})();const Ee=b({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(s,{emit:e}){const a=s,o=E(a.signupPolicy.strategy),n=E(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns:[]),i=E(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns.map(c=>({label:c})):[]),y=c=>{const C=c;if(n.value=C,C.length===0){o.value="inviteOnly",f("inviteOnly");return}i.value=C.map(P=>({label:P})),a.signupPolicy.emailPatterns=c,e("updated",a.signupPolicy)},p=()=>{e("save")},f=c=>{o.value=c,c!=="patternOnly"&&(c==="inviteOnly"&&a.signupPolicy.allowOnlyInvited(),e("updated",a.signupPolicy))};return(c,C)=>(m(),g(t(he),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:l(()=>[r(t(ge),{value:o.value,"onUpdate:value":f},{default:l(()=>[r(t(A),{direction:"vertical"},{default:l(()=>[r(t(K),{value:"inviteOnly"},{default:l(()=>[h("Allow listed users only")]),_:1}),r(t(A),null,{default:l(()=>[r(t(K),{value:"patternOnly"},{default:l(()=>[h("Allow everyone from this domain:")]),_:1}),r(t(G),{mode:"tags",value:c.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:"@domain.com or sub.domain.com",disabled:o.value!=="patternOnly",options:i.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":y},null,8,["value","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),r(t(_),{disabled:!c.signupPolicy.hasChanges,type:"primary",onClick:p},{default:l(()=>[h(" Save changes ")]),_:1},8,["disabled"])]),_:1}))}}),xe=b({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(s,{emit:e}){const o=s.roleOptions.map(p=>({label:p.name,value:p.name})),n=T({email:"",roles:[]});function i(){e("cancel")}function y(){!n.email||e("created",n)}return(p,f)=>(m(),g(t(B),{open:"",title:"New user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:n,layout:"vertical"},{default:l(()=>[r(t(w),{key:"email",label:"Email",required:!0},{default:l(()=>[r(t(N),{value:n.email,"onUpdate:value":f[0]||(f[0]=c=>n.email=c)},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(G),{value:n.roles,"onUpdate:value":f[1]||(f[1]=c=>n.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Oe=b({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=a.roleOptions.map(p=>({label:p.name,value:p.name})),n=T({email:a.email,roles:a.roles});function i(){e("cancel")}function y(){e("updated",n)}return(p,f)=>(m(),g(t(B),{open:"",title:"Update user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:n,layout:"vertical"},{default:l(()=>[r(t(w),{key:"email",label:"Email"},{default:l(()=>[r(t(N),{value:n.email,"onUpdate:value":f[0]||(f[0]=c=>n.email=c)},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(G),{value:n.roles,"onUpdate:value":f[1]||(f[1]=c=>n.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),De=b({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=W(()=>{var o;return{columns:[{name:"Email"},{name:"Roles"},{name:"",align:"right"}],rows:(o=e.users.map(n=>({key:n.email,cells:[{type:"text",text:n.email},{type:"slot",key:"roles",payload:{roles:n.roles}},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(n)},{icon:J,label:"Delete",onClick:()=>e.onDelete(n)}]}]})))!=null?o:[]}});return(o,n)=>(m(),g(ee,{"entity-name":"users",title:"",loading:o.loading,description:"List all app users.","empty-title":"No users yet",table:a.value,"create-button-text":"Add users",onCreate:o.onCreate},{roles:l(({payload:i})=>[(m(!0),X(H,null,ve(i.roles,y=>(m(),g(t(_e),{key:y,bordered:""},{default:l(()=>[h(we(y),1)]),_:2},1024))),128))]),_:1},8,["loading","table","onCreate"]))}}),$e=b({__name:"NewRole",emits:["created","cancel"],setup(s,{emit:e}){const a=T({name:"",description:""});function o(){e("cancel")}function n(){!a.name||e("created",a)}return(i,y)=>(m(),g(t(B),{open:"",title:"New role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:o},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:o},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:n},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:a,layout:"vertical"},{default:l(()=>[r(t(w),{key:"name",label:"Name",required:!0},{default:l(()=>[r(t(N),{value:a.name,"onUpdate:value":y[0]||(y[0]=p=>a.name=p)},null,8,["value"])]),_:1}),r(t(w),{key:"description",label:"Description"},{default:l(()=>[r(t(Y),{value:a.description,"onUpdate:value":y[1]||(y[1]=p=>a.description=p),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Ie=b({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=T({description:a.description});function n(){e("cancel")}function i(){e("updated",o)}return(y,p)=>(m(),g(t(B),{open:"",title:"Update role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:n},{extra:l(()=>[r(t(A),null,{default:l(()=>[r(t(_),{onClick:n},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:i},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(F),{model:o,layout:"vertical"},{default:l(()=>[r(t(w),{key:"name",label:"Name"},{default:l(()=>[r(t(N),{value:a.name,disabled:""},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(Y),{value:o.description,"onUpdate:value":p[0]||(p[0]=f=>o.description=f),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),je=b({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=W(()=>{var o;return{columns:[{name:"Name"},{name:"Description"},{name:"",align:"right"}],rows:(o=e.roles.map(n=>({key:n.id,cells:[{type:"text",text:n.name},{type:"text",text:n.description},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(n)},{icon:J,label:"Delete",onClick:()=>e.onDelete(n)}]}]})))!=null?o:[]}});return(o,n)=>(m(),g(ee,{"entity-name":"roles",loading:o.loading,title:"",description:"List all app roles.","empty-title":"No roles yet",table:a.value,"create-button-text":"Add roles",onCreate:o.onCreate},null,8,["loading","table","onCreate"]))}}),S=class{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new S(e)}toDTO(){return this.record.toDTO()}get id(){return this.record.get("id")}get projectId(){return this.record.get("projectId")}get emailPatterns(){return this.record.get("emailPatterns")}set emailPatterns(e){this.record.set("emailPatterns",e)}get hasChanges(){return this.record.hasChangesDeep("emailPatterns")}get strategy(){return this.dto.emailPatterns.length===0?"inviteOnly":"patternOnly"}get changes(){return this.record.changes}allowOnlyInvited(){this.record.set("emailPatterns",[])}static validate(e){return S.pattern.test(e)}};let x=S;U(x,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?{const d=new URLSearchParams(location.search).get("selected-panel")||"users",v=["roles","users"].includes(d)?d:"users";d&&(n.value=v)});const i=()=>{o.value.type="initial"},y=()=>{o.value.type="creatingUser"},p=u=>{o.value={type:"editingUser",payload:u}},f=()=>{o.value.type="creatingRole"},c=u=>{o.value={type:"editingRole",payload:u}},C=new Te(a),{result:P,refetch:oe}=q(()=>C.get()),ne=async()=>{if(!!P.value)try{await C.update(P.value),oe()}catch(u){u instanceof Error&&k("Update Error",u.message)}},O=new Fe(a),{loading:re,result:le,refetch:D}=q(()=>O.list(100,0)),$=new Re(a),{loading:se,result:V,refetch:L}=q(()=>$.list(100,0)),ie=async u=>{try{if(o.value.type!=="creatingUser")return;await O.create(u),i(),D()}catch(d){d instanceof Error&&k("Create Error",d.message)}},ce=async u=>{try{if(o.value.type!=="editingUser")return;await O.update(o.value.payload.id,u),i(),D()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ue=async u=>{if(!!await M("Deleting users revoke their access to your application (in case they aren't allowed by a domain rule). Are you sure you want to continue?"))try{await O.delete(u.id),D()}catch(v){v instanceof Error&&k("Delete Error",v.message)}},de=async u=>{try{if(o.value.type!=="creatingRole")return;await $.create(u),i(),L()}catch(d){d instanceof Error&&k("Create Error",d.message)}},pe=async u=>{try{if(o.value.type!=="editingRole")return;await $.update(o.value.payload.id,u),i(),L()}catch(d){d instanceof Error&&k("Update Error",d.message)}},me=async u=>{if(!!await M("Deleteing roles may revoke access to some features in your application. Are you sure you want to continue?"))try{await $.delete(u.id),L(),D()}catch(v){v instanceof Error&&k("Delete Error",v.message)}};return(u,d)=>(m(),X(H,null,[r(t(ke),null,{default:l(()=>[h("Access Control")]),_:1}),r(t(Pe),null,{default:l(()=>[h(" Manage how your end users interect with your application. "),r(Ue,{path:"concepts/access-control"})]),_:1}),r(t(Ae),{"active-key":n.value,"onUpdate:activeKey":d[0]||(d[0]=v=>n.value=v)},{default:l(()=>[r(t(Z),{key:"users",tab:"Users"}),r(t(Z),{key:"roles",tab:"Roles"})]),_:1},8,["active-key"]),n.value==="users"&&t(P)?(m(),g(Ee,{key:0,"signup-policy":t(P),onSave:ne},null,8,["signup-policy"])):I("",!0),n.value==="users"?(m(),g(De,{key:1,loading:t(re),users:t(le)||[],onCreate:y,onEdit:p,onDelete:ue},null,8,["loading","users"])):I("",!0),n.value==="roles"?(m(),g(je,{key:2,loading:t(se),roles:t(V)||[],onCreate:f,onEdit:c,onDelete:me},null,8,["loading","roles"])):I("",!0),o.value.type==="creatingUser"?(m(),g(xe,{key:3,"role-options":t(V)||[],onCancel:i,onCreated:ie},null,8,["role-options"])):o.value.type==="editingUser"?(m(),g(Oe,{key:4,email:o.value.payload.email,roles:o.value.payload.roles||[],"role-options":t(V)||[],onUpdated:ce,onCancel:i},null,8,["email","roles","role-options"])):o.value.type==="creatingRole"?(m(),g($e,{key:5,onCancel:i,onCreated:de})):o.value.type==="editingRole"?(m(),g(Ie,{key:6,name:o.value.payload.name,description:o.value.payload.description,onUpdated:pe,onCancel:i},null,8,["name","description"])):I("",!0)],64))}});export{rt as default}; +//# sourceMappingURL=View.7bf35c36.js.map diff --git a/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.08004338.js b/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.3ec7f61f.js similarity index 89% rename from abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.08004338.js rename to abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.3ec7f61f.js index 4dec1bff7..3a0f56792 100644 --- a/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.08004338.js +++ b/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.3ec7f61f.js @@ -1,2 +1,2 @@ -var D=Object.defineProperty;var O=(i,e,t)=>e in i?D(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var a=(i,e,t)=>(O(i,typeof e!="symbol"?e+"":e,t),t);import{C as E}from"./gateway.e77556e5.js";import{l as R}from"./fetch.492045fb.js";import{E as U}from"./record.34d5b504.js";import{Q as S,e as I,er as T,d as P,aq as L,X as B,b as l,ej as $,u as s,w as r,c as j,R as x,aR as N,o as m,bS as G,aF as p,ec as F,cx as M,da as K,cD as q,cy as H,cK as J}from"./vue-router.4c13f3d4.js";import{S as Q}from"./SaveButton.8d79c51b.js";import{C as X}from"./CrudView.e4956a79.js";import{F as z}from"./PhRocketLaunch.vue.82bfbb41.js";import{a as W}from"./asyncComputed.d0f14ed3.js";import{u as Y}from"./polling.ce5b4e64.js";import{G as Z}from"./PhPencil.vue.f2283e7d.js";import{A as ee}from"./index.e5bdb21b.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="aaddc8ab-2a46-4121-8761-f4a81a776ab0",i._sentryDebugIdIdentifier="sentry-dbid-aaddc8ab-2a46-4121-8761-f4a81a776ab0")}catch{}})();class h{constructor(e){a(this,"data");a(this,"deleted");a(this,"wasDeleted",e=>this.deleted.value.includes(e));a(this,"wasUpdated",e=>this.data.hasChangesDeep(e));a(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});a(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});a(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});a(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});a(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=S([])}static from(e){const t=e.reduce((n,{name:d,value:v})=>(n[d]=v,n),{});return new h(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class te{constructor(){a(this,"urlPath","env-vars")}async list(e){return await E.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await E.patch(`projects/${e}/${this.urlPath}`,t)}}const _=new te;class ve{constructor(e){this.projectId=e}async get(){const e=await _.list(this.projectId);return h.from(e.map(t=>({...t,value:""})))}async update(e){await _.update(this.projectId,e)}}class me{constructor(e=R){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return h.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class y{constructor(e,t,n,d){a(this,"envVarRepo");a(this,"envVars");a(this,"state",I({type:"idle"}));a(this,"interval",null);a(this,"mode");a(this,"fileOpener");a(this,"openEnvFile",async()=>{var e;await((e=this.fileOpener)==null?void 0:e.openFile(".env"))});a(this,"create",e=>{this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});a(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});a(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});a(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});a(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});a(this,"pollingFunction",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});a(this,"columns",()=>[{name:"Key"},{name:"Value"},{name:""}]);a(this,"rows",()=>Object.entries(this.envVars.values()).map(([e,t])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:this.isLocalEditor?t:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:T,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:Z,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));a(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});a(this,"hasChanges",()=>this.envVars.changes.length>0);a(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n,this.fileOpener=d}static async create(e,t,n){const d=await e.get();return new y(e,d,t,n)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const ye=P({__name:"View",props:{envVarRepository:{},mode:{}},setup(i){const e=i,{result:t,loading:n}=W(async()=>{const u=await y.create(e.envVarRepository,e.mode);return d(),u}),{startPolling:d,endPolling:v}=Y({task:()=>{var u;return(u=t.value)==null?void 0:u.pollingFunction()},interval:2e3});L(()=>v());const A={columns:[],rows:[]};return(u,c)=>{var f,g,w,b,V,k;return m(),B(N,null,[l(X,{"entity-name":"Env var",loading:s(n),title:"Environment Variables",description:"Set environment variables for your project.","empty-title":"No environment variables set",table:((f=s(t))==null?void 0:f.table())||A,"create-button-text":"Add Environment Variable",fields:((g=s(t))==null?void 0:g.creationFields)||[],live:(w=s(t))==null?void 0:w.isLocalEditor,onCreate:(b=s(t))==null?void 0:b.create},$({_:2},[(V=s(t))!=null&&V.isLocalEditor?{name:"secondary",fn:r(()=>{var o;return[l(s(G),{onClick:(o=s(t))==null?void 0:o.openEnvFile},{default:r(()=>[p("Open .env")]),_:1},8,["onClick"])]}),key:"0"}:void 0,(k=s(t))!=null&&k.isLocalEditor?{name:"extra",fn:r(()=>[l(s(ee),{"show-icon":"",style:{"margin-top":"20px"}},{message:r(()=>[p(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,s(t)?{name:"more",fn:r(()=>[l(Q,{model:s(t),disabled:!s(t).hasChanges()},{"with-changes":r(()=>[p(F(s(t).saveMessage),1)]),icon:r(()=>[l(s(z))]),_:1},8,["model","disabled"])]),key:"2"}:void 0]),1032,["loading","table","fields","live","onCreate"]),s(t)?(m(),j(s(J),{key:0,open:s(t).isUpdating,title:"Update value",onCancel:c[1]||(c[1]=o=>{var C;return(C=s(t))==null?void 0:C.cancelUpdate()}),onOk:c[2]||(c[2]=()=>{var o;return(o=s(t))==null?void 0:o.confirmUpdate()})},{default:r(()=>[s(t).state.value.type==="updating"?(m(),j(s(M),{key:0,layout:"vertical"},{default:r(()=>[l(s(H),null,{default:r(()=>[l(s(K),null,{default:r(()=>[p(F(s(t).state.value.name),1)]),_:1}),l(s(q),{value:s(t).state.value.value,"onUpdate:value":c[0]||(c[0]=o=>s(t).state.value.value=o)},null,8,["value"])]),_:1})]),_:1})):x("",!0)]),_:1},8,["open"])):x("",!0)],64)}}});export{ve as C,me as E,ye as _}; -//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.08004338.js.map +var D=Object.defineProperty;var O=(i,e,t)=>e in i?D(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var a=(i,e,t)=>(O(i,typeof e!="symbol"?e+"":e,t),t);import{C as E}from"./gateway.c564a1cf.js";import{l as R}from"./fetch.8c5b12c2.js";import{E as U}from"./record.cbb43e89.js";import{Q as S,e as I,er as T,d as P,aq as L,X as B,b as l,ej as $,u as s,w as r,c as j,R as x,aR as N,o as m,bS as G,aF as p,ec as F,cx as M,da as K,cD as q,cy as H,cK as J}from"./vue-router.3fd92176.js";import{S as Q}from"./SaveButton.6d0d3fb7.js";import{C as X}from"./CrudView.b65b5675.js";import{F as z}from"./PhRocketLaunch.vue.c412030e.js";import{a as W}from"./asyncComputed.295e9e03.js";import{u as Y}from"./polling.4e30c061.js";import{G as Z}from"./PhPencil.vue.a2604470.js";import{A as ee}from"./index.4fbbd10e.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="07bad551-6b8f-4cc4-939a-6e0a647179ee",i._sentryDebugIdIdentifier="sentry-dbid-07bad551-6b8f-4cc4-939a-6e0a647179ee")}catch{}})();class h{constructor(e){a(this,"data");a(this,"deleted");a(this,"wasDeleted",e=>this.deleted.value.includes(e));a(this,"wasUpdated",e=>this.data.hasChangesDeep(e));a(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});a(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});a(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});a(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});a(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=S([])}static from(e){const t=e.reduce((n,{name:d,value:v})=>(n[d]=v,n),{});return new h(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class te{constructor(){a(this,"urlPath","env-vars")}async list(e){return await E.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await E.patch(`projects/${e}/${this.urlPath}`,t)}}const _=new te;class ve{constructor(e){this.projectId=e}async get(){const e=await _.list(this.projectId);return h.from(e.map(t=>({...t,value:""})))}async update(e){await _.update(this.projectId,e)}}class me{constructor(e=R){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return h.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class y{constructor(e,t,n,d){a(this,"envVarRepo");a(this,"envVars");a(this,"state",I({type:"idle"}));a(this,"interval",null);a(this,"mode");a(this,"fileOpener");a(this,"openEnvFile",async()=>{var e;await((e=this.fileOpener)==null?void 0:e.openFile(".env"))});a(this,"create",e=>{this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});a(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});a(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});a(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});a(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});a(this,"pollingFunction",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});a(this,"columns",()=>[{name:"Key"},{name:"Value"},{name:""}]);a(this,"rows",()=>Object.entries(this.envVars.values()).map(([e,t])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:this.isLocalEditor?t:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:T,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:Z,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));a(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});a(this,"hasChanges",()=>this.envVars.changes.length>0);a(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n,this.fileOpener=d}static async create(e,t,n){const d=await e.get();return new y(e,d,t,n)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const ye=P({__name:"View",props:{envVarRepository:{},mode:{}},setup(i){const e=i,{result:t,loading:n}=W(async()=>{const u=await y.create(e.envVarRepository,e.mode);return d(),u}),{startPolling:d,endPolling:v}=Y({task:()=>{var u;return(u=t.value)==null?void 0:u.pollingFunction()},interval:2e3});L(()=>v());const A={columns:[],rows:[]};return(u,c)=>{var f,g,w,b,V,k;return m(),B(N,null,[l(X,{"entity-name":"Env var",loading:s(n),title:"Environment Variables",description:"Set environment variables for your project.","empty-title":"No environment variables set",table:((f=s(t))==null?void 0:f.table())||A,"create-button-text":"Add Environment Variable",fields:((g=s(t))==null?void 0:g.creationFields)||[],live:(w=s(t))==null?void 0:w.isLocalEditor,onCreate:(b=s(t))==null?void 0:b.create},$({_:2},[(V=s(t))!=null&&V.isLocalEditor?{name:"secondary",fn:r(()=>{var o;return[l(s(G),{onClick:(o=s(t))==null?void 0:o.openEnvFile},{default:r(()=>[p("Open .env")]),_:1},8,["onClick"])]}),key:"0"}:void 0,(k=s(t))!=null&&k.isLocalEditor?{name:"extra",fn:r(()=>[l(s(ee),{"show-icon":"",style:{"margin-top":"20px"}},{message:r(()=>[p(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,s(t)?{name:"more",fn:r(()=>[l(Q,{model:s(t),disabled:!s(t).hasChanges()},{"with-changes":r(()=>[p(F(s(t).saveMessage),1)]),icon:r(()=>[l(s(z))]),_:1},8,["model","disabled"])]),key:"2"}:void 0]),1032,["loading","table","fields","live","onCreate"]),s(t)?(m(),j(s(J),{key:0,open:s(t).isUpdating,title:"Update value",onCancel:c[1]||(c[1]=o=>{var C;return(C=s(t))==null?void 0:C.cancelUpdate()}),onOk:c[2]||(c[2]=()=>{var o;return(o=s(t))==null?void 0:o.confirmUpdate()})},{default:r(()=>[s(t).state.value.type==="updating"?(m(),j(s(M),{key:0,layout:"vertical"},{default:r(()=>[l(s(H),null,{default:r(()=>[l(s(K),null,{default:r(()=>[p(F(s(t).state.value.name),1)]),_:1}),l(s(q),{value:s(t).state.value.value,"onUpdate:value":c[0]||(c[0]=o=>s(t).state.value.value=o)},null,8,["value"])]),_:1})]),_:1})):x("",!0)]),_:1},8,["open"])):x("",!0)],64)}}});export{ve as C,me as E,ye as _}; +//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.3ec7f61f.js.map diff --git a/abstra_statics/dist/assets/Watermark.31f43e38.js b/abstra_statics/dist/assets/Watermark.43182479.js similarity index 86% rename from abstra_statics/dist/assets/Watermark.31f43e38.js rename to abstra_statics/dist/assets/Watermark.43182479.js index e6d4b537a..b88ad55e9 100644 --- a/abstra_statics/dist/assets/Watermark.31f43e38.js +++ b/abstra_statics/dist/assets/Watermark.43182479.js @@ -1,2 +1,2 @@ -import{S as i}from"./workspaceStore.ae240ce8.js";import{d as c,u as a,X as p,aF as b,ec as l,R as _,e_ as f,o as C,eV as u,$ as h}from"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="88f7fd90-6c9a-4691-943f-1b8ddb396c7d",t._sentryDebugIdIdentifier="sentry-dbid-88f7fd90-6c9a-4691-943f-1b8ddb396c7d")}catch{}})();const m=["href"],v=f('Abstra',2),g=c({__name:"Watermark",props:{pageId:{},locale:{}},setup(t){var s;const e=t,d=window.location.hostname.split(".")[0],r=(s=i.instance)==null?void 0:s.showWatermark,o=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:e.pageId,origin_subdomain:d});return(n,w)=>a(r)?(C(),p("a",{key:0,href:`https://www.abstra.io/forms?${a(o).toString()}`,target:"_blank",class:"watermark"},[b(l(a(u).translate("i18n_watermark_text",n.locale))+" ",1),v],8,m)):_("",!0)}});const k=h(g,[["__scopeId","data-v-4bed0b2c"]]);export{k as W}; -//# sourceMappingURL=Watermark.31f43e38.js.map +import{S as i}from"./workspaceStore.411ef1fe.js";import{d as c,u as a,X as p,aF as b,ec as l,R as _,e_ as f,o as C,eV as u,$ as h}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="de3d1bdd-21f1-4210-8347-806983f1ba64",e._sentryDebugIdIdentifier="sentry-dbid-de3d1bdd-21f1-4210-8347-806983f1ba64")}catch{}})();const m=["href"],v=f('Abstra',2),g=c({__name:"Watermark",props:{pageId:{},locale:{}},setup(e){var s;const t=e,d=window.location.hostname.split(".")[0],r=(s=i.instance)==null?void 0:s.showWatermark,o=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:t.pageId,origin_subdomain:d});return(n,w)=>a(r)?(C(),p("a",{key:0,href:`https://www.abstra.io/forms?${a(o).toString()}`,target:"_blank",class:"watermark"},[b(l(a(u).translate("i18n_watermark_text",n.locale))+" ",1),v],8,m)):_("",!0)}});const k=h(g,[["__scopeId","data-v-4bed0b2c"]]);export{k as W}; +//# sourceMappingURL=Watermark.43182479.js.map diff --git a/abstra_statics/dist/assets/WidgetPreview.c21baaba.js b/abstra_statics/dist/assets/WidgetPreview.4e7b4c90.js similarity index 83% rename from abstra_statics/dist/assets/WidgetPreview.c21baaba.js rename to abstra_statics/dist/assets/WidgetPreview.4e7b4c90.js index 2e5e7e521..8dc2a3a68 100644 --- a/abstra_statics/dist/assets/WidgetPreview.c21baaba.js +++ b/abstra_statics/dist/assets/WidgetPreview.4e7b4c90.js @@ -1,2 +1,2 @@ -import{d as k,e as B,W as S,o as n,c as u,w as f,b as A,aF as I,ec as P,ea as C,eU as D,u as y,bS as N,eZ as q,$ as W,ed as V,R as g,a as b,X as c,ee as v,ef as x,aR as w,q as E,t as $}from"./vue-router.4c13f3d4.js";import{S as F}from"./Steps.2273c005.js";import{W as L}from"./PlayerConfigProvider.8a3bab63.js";import"./colorHelpers.c5724389.js";import"./index.52fae423.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="3e01e89f-f592-4c92-bd4b-74a0aaa5d2e6",o._sentryDebugIdIdentifier="sentry-dbid-3e01e89f-f592-4c92-bd4b-74a0aaa5d2e6")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return S(()=>{l.value&&d.action.setElement(l.value)}),(a,i)=>(n(),u(y(q),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",a.disabled?"disabled":""]),loading:a.loading,disabled:a.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[I(P(a.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const R=W(K,[["__scopeId","data-v-aea27bb7"]]),M={class:"form"},O={class:"form-wrapper"},z={key:0,class:"buttons"},J=k({__name:"WidgetPreview",setup(o){const t=V(),d=B([]);function l(e){return E[e]||$[e]||null}function a(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(a).filter(Boolean):[a(e)]}function p(){return t.query.steps==="true"}function _(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const m=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u(L,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u(F,{key:0,class:"steps","steps-info":{current:1,total:3}})):g("",!0),b("div",M,[b("div",O,[(n(!0),c(w,null,v(i(),(r,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(r.component),{"user-props":r.userProps,value:r.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",z,[(n(!0),c(w,null,v(_(),r=>(n(),u(R,{key:r,"display-name":m(r).name,action:m(r)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const H=W(J,[["__scopeId","data-v-5fe80d04"]]);export{H as default}; -//# sourceMappingURL=WidgetPreview.c21baaba.js.map +import{d as k,e as B,W as S,o as n,c as u,w as f,b as A,aF as I,ec as P,ea as C,eU as D,u as y,bS as N,eZ as q,$ as W,ed as V,R as g,a as b,X as c,ee as v,ef as x,aR as w,q as E,t as $}from"./vue-router.3fd92176.js";import{S as F}from"./Steps.767c106d.js";import{W as L}from"./PlayerConfigProvider.44427467.js";import"./colorHelpers.f04087b3.js";import"./index.bd967757.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="79018a21-35cb-46a0-abc6-0ad959130b7f",o._sentryDebugIdIdentifier="sentry-dbid-79018a21-35cb-46a0-abc6-0ad959130b7f")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return S(()=>{l.value&&d.action.setElement(l.value)}),(a,i)=>(n(),u(y(q),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",a.disabled?"disabled":""]),loading:a.loading,disabled:a.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[I(P(a.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const R=W(K,[["__scopeId","data-v-aea27bb7"]]),M={class:"form"},O={class:"form-wrapper"},z={key:0,class:"buttons"},J=k({__name:"WidgetPreview",setup(o){const t=V(),d=B([]);function l(e){return E[e]||$[e]||null}function a(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(a).filter(Boolean):[a(e)]}function p(){return t.query.steps==="true"}function _(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const m=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u(L,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u(F,{key:0,class:"steps","steps-info":{current:1,total:3}})):g("",!0),b("div",M,[b("div",O,[(n(!0),c(w,null,v(i(),(r,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(r.component),{"user-props":r.userProps,value:r.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",z,[(n(!0),c(w,null,v(_(),r=>(n(),u(R,{key:r,"display-name":m(r).name,action:m(r)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const H=W(J,[["__scopeId","data-v-5fe80d04"]]);export{H as default}; +//# sourceMappingURL=WidgetPreview.4e7b4c90.js.map diff --git a/abstra_statics/dist/assets/Workflow.602b68d4.js b/abstra_statics/dist/assets/Workflow.c11e942b.js similarity index 99% rename from abstra_statics/dist/assets/Workflow.602b68d4.js rename to abstra_statics/dist/assets/Workflow.c11e942b.js index b6e220f75..f147648dc 100644 --- a/abstra_statics/dist/assets/Workflow.602b68d4.js +++ b/abstra_statics/dist/assets/Workflow.c11e942b.js @@ -1,4 +1,4 @@ -var fl=Object.defineProperty;var hl=(e,t,n)=>t in e?fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>(hl(e,typeof t!="symbol"?t+"":t,n),n);import{d as he,B as De,f as W,o as O,X as q,Z as Ne,R as me,eb as mt,a as ge,b as J,eh as gl,p as Se,H as gs,x as ps,g as Ee,V as Tt,e as re,bA as be,W as Be,e8 as vs,ag as In,w as ae,u as D,I as qn,J as rt,dH as pl,es as ms,et as Ei,Y as Me,ea as Xe,c as fe,aR as Pe,am as Mn,D as vl,E as Ni,K as ml,eu as yl,ev as _e,ef as He,aF as Oe,ec as Te,aq as ys,r as ws,ee as en,ew as _s,ex as wl,y as Lt,ey as _l,cL as yt,Q as or,eo as St,aK as bl,ez as bs,da as Rt,bK as Ut,$ as lt,aA as Sl,cS as ir,df as Pt,eA as $l,eB as xl,aV as El,bS as Nl,dk as kl,cy as Cl,cx as Il,cK as Ml,eq as Tl,el as Pl,em as Dl,ek as Al,eC as zl}from"./vue-router.4c13f3d4.js";import{w as vn,s as ki}from"./metadata.d6f3a171.js";import{G as Bl}from"./PhArrowClockwise.vue.5c4db05c.js";import{G as Ol}from"./PhArrowCounterClockwise.vue.548df89b.js";import{a as Rl,n as mn,c as Vl,d as Ss,v as $s,e as xs}from"./validations.f7853e39.js";import{u as Hl}from"./uuid.27635aee.js";import{t as $o}from"./index.52fae423.js";import{W as Fo}from"./workspaces.1ee4ae8d.js";import{u as Fl}from"./polling.ce5b4e64.js";import"./index.40c3f00c.js";import{B as ln}from"./Badge.49622b8e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a515f2c-cecd-4c26-a4ee-14e04dcf0529",e._sentryDebugIdIdentifier="sentry-dbid-6a515f2c-cecd-4c26-a4ee-14e04dcf0529")}catch{}})();var Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const Yl=Ll,Xl=["width","height","fill","transform"],Gl={key:0},Zl=ge("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"},null,-1),Ul=[Zl],Wl={key:1},ql=ge("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"},null,-1),Kl=ge("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"},null,-1),Ql=[ql,Kl],Jl={key:2},jl=ge("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"},null,-1),eu=[jl],tu={key:3},nu=ge("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"},null,-1),ou=[nu],iu={key:4},ru=ge("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"},null,-1),su=[ru],au={key:5},lu=ge("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"},null,-1),uu=[lu],cu={name:"PhArrowDown"},rr=he({...cu,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=De("weight","regular"),o=De("size","1em"),i=De("color","currentColor"),r=De("mirrored",!1),s=W(()=>{var u;return(u=t.weight)!=null?u:n}),a=W(()=>{var u;return(u=t.size)!=null?u:o}),l=W(()=>{var u;return(u=t.color)!=null?u:i}),c=W(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(u,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:c.value},u.$attrs),[Ne(u.$slots,"default"),s.value==="bold"?(O(),q("g",Gl,Ul)):s.value==="duotone"?(O(),q("g",Wl,Ql)):s.value==="fill"?(O(),q("g",Jl,eu)):s.value==="light"?(O(),q("g",tu,ou)):s.value==="regular"?(O(),q("g",iu,su)):s.value==="thin"?(O(),q("g",au,uu)):me("",!0)],16,Xl))}}),du=["width","height","fill","transform"],fu={key:0},hu=ge("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"},null,-1),gu=[hu],pu={key:1},vu=ge("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),mu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),yu=[vu,mu],wu={key:2},_u=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"},null,-1),bu=[_u],Su={key:3},$u=ge("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"},null,-1),xu=[$u],Eu={key:4},Nu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),ku=[Nu],Cu={key:5},Iu=ge("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"},null,-1),Mu=[Iu],Tu={name:"PhClock"},Pu=he({...Tu,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=De("weight","regular"),o=De("size","1em"),i=De("color","currentColor"),r=De("mirrored",!1),s=W(()=>{var u;return(u=t.weight)!=null?u:n}),a=W(()=>{var u;return(u=t.size)!=null?u:o}),l=W(()=>{var u;return(u=t.color)!=null?u:i}),c=W(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(u,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:c.value},u.$attrs),[Ne(u.$slots,"default"),s.value==="bold"?(O(),q("g",fu,gu)):s.value==="duotone"?(O(),q("g",pu,yu)):s.value==="fill"?(O(),q("g",wu,bu)):s.value==="light"?(O(),q("g",Su,xu)):s.value==="regular"?(O(),q("g",Eu,ku)):s.value==="thin"?(O(),q("g",Cu,Mu)):me("",!0)],16,du))}});function sr(e){for(var t=1;ttypeof e<"u",Ou=Object.prototype.toString,Ru=e=>Ou.call(e)==="[object Object]",Vu=()=>{};function Hu(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const Es=e=>e();function Fu(e=Es){const t=re(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:_l(t),pause:n,resume:o,eventFilter:i}}function ar(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function Lu(e,t,n={}){const{eventFilter:o=Es,...i}=n;return Ee(e,Hu(o,t),i)}function Ht(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:a,isActive:l}=Fu(o);return{stop:Lu(e,t,{...i,eventFilter:r}),pause:s,resume:a,isActive:l}}function Yu(e,t={}){if(!Ni(e))return ml(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=yl(()=>({get(){return e.value[o]},set(i){var r;if((r=nt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[o]=i,e.value=a}else{const a={...e.value,[o]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:g="sync",deep:h=!1,timeout:b,throwOnTimeout:w}={}){let $=null;const v=[new Promise(N=>{$=Ee(e,k=>{d(k)!==t&&($==null||$(),N(k))},{flush:g,deep:h,immediate:!0})})];return b!=null&&v.push(ar(b,w).then(()=>nt(e)).finally(()=>$==null?void 0:$())),Promise.race(v)}function o(d,g){if(!Ni(d))return n(k=>k===d,g);const{flush:h="sync",deep:b=!1,timeout:w,throwOnTimeout:$}=g!=null?g:{};let S=null;const N=[new Promise(k=>{S=Ee([e,d],([H,X])=>{t!==(H===X)&&(S==null||S(),k(H))},{flush:h,deep:b,immediate:!0})})];return w!=null&&N.push(ar(w,$).then(()=>nt(e)).finally(()=>(S==null||S(),nt(e)))),Promise.race(N)}function i(d){return n(g=>Boolean(g),d)}function r(d){return o(null,d)}function s(d){return o(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,g){return n(h=>{const b=Array.from(h);return b.includes(d)||b.includes(nt(d))},g)}function c(d){return u(1,d)}function u(d=1,g){let h=-1;return n(()=>(h+=1,h>=d),g)}return Array.isArray(nt(e))?{toMatch:n,toContains:l,changed:c,changedTimes:u,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:c,changedTimes:u,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function Xu(e){var t;const n=nt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ns=zu?window:void 0;function ks(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Ns):[t,n,o,i]=e,!t)return Vu;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},a=(u,d,g,h)=>(u.addEventListener(d,g,h),()=>u.removeEventListener(d,g,h)),l=Ee(()=>[Xu(t),nt(i)],([u,d])=>{if(s(),!u)return;const g=Ru(d)?{...d}:d;r.push(...n.flatMap(h=>o.map(b=>a(u,h,b,g))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return xo(c),c}function Gu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function lr(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Ns,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=Gu(t);return ks(i,r,u=>{u.repeat&&nt(a)||l(u)&&n(u)},s)}function Zu(e){return JSON.parse(JSON.stringify(e))}function Lo(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:g}=o,h=Mn(),b=n||(h==null?void 0:h.emit)||((i=h==null?void 0:h.$emit)==null?void 0:i.bind(h))||((s=(r=h==null?void 0:h.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let w=c;t||(t="modelValue"),w=w||`update:${t.toString()}`;const $=N=>a?typeof a=="function"?a(N):Zu(N):N,S=()=>Bu(e[t])?$(e[t]):d,v=N=>{g?g(N)&&b(w,N):b(w,N)};if(l){const N=S(),k=re(N);let H=!1;return Ee(()=>e[t],X=>{H||(H=!0,k.value=$(X),rt(()=>H=!1))}),Ee(k,X=>{!H&&(X!==e[t]||u)&&v(X)},{deep:u}),k}else return W({get(){return S()},set(N){v(N)}})}var Uu={value:()=>{}};function Eo(){for(var e=0,t=arguments.length,n={},o;e=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Kn.prototype=Eo.prototype={constructor:Kn,on:function(e,t){var n=this._,o=Wu(e+"",n),i,r=-1,s=o.length;if(arguments.length<2){for(;++r0)for(var n=new Array(i),o=0,i,r;o=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),cr.hasOwnProperty(t)?{space:cr[t],local:e}:e}function Ku(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function Qu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Cs(e){var t=No(e);return(t.local?Qu:Ku)(t)}function Ju(){}function Ii(e){return e==null?Ju:function(){return this.querySelector(e)}}function ju(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=N&&(N=v+1);!(H=$[N])&&++N=0;)(s=o[i])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function xc(e){e||(e=Ec);function t(d,g){return d&&g?e(d.__data__,g.__data__):!d-!g}for(var n=this._groups,o=n.length,i=new Array(o),r=0;rt?1:e>=t?0:NaN}function Nc(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kc(){return Array.from(this)}function Cc(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Vc:typeof t=="function"?Fc:Hc)(e,t,n==null?"":n)):Wt(this.node(),e)}function Wt(e,t){return e.style.getPropertyValue(t)||Ds(e).getComputedStyle(e,null).getPropertyValue(t)}function Yc(e){return function(){delete this[e]}}function Xc(e,t){return function(){this[e]=t}}function Gc(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Zc(e,t){return arguments.length>1?this.each((t==null?Yc:typeof t=="function"?Gc:Xc)(e,t)):this.node()[e]}function As(e){return e.trim().split(/^|\s+/)}function Mi(e){return e.classList||new zs(e)}function zs(e){this._node=e,this._names=As(e.getAttribute("class")||"")}zs.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Bs(e,t){for(var n=Mi(e),o=-1,i=t.length;++o=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function _d(e){return function(){var t=this.__on;if(!!t){for(var n=0,o=-1,i=t.length,r;n()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:s,y:a,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Md(e){return!e.ctrlKey&&!e.button}function Td(){return this.parentNode}function Pd(e,t){return t==null?{x:e.x,y:e.y}:t}function Dd(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ad(){var e=Md,t=Td,n=Pd,o=Dd,i={},r=Eo("start","drag","end"),s=0,a,l,c,u,d=0;function g(k){k.on("mousedown.drag",h).filter(o).on("touchstart.drag",$).on("touchmove.drag",S,Id).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(k,H){if(!(u||!e.call(this,k,H))){var X=N(this,t.call(this,k,H),k,H,"mouse");!X||(Fe(k.view).on("mousemove.drag",b,yn).on("mouseup.drag",w,yn),Hs(k.view),Yo(k),c=!1,a=k.clientX,l=k.clientY,X("start",k))}}function b(k){if(Yt(k),!c){var H=k.clientX-a,X=k.clientY-l;c=H*H+X*X>d}i.mouse("drag",k)}function w(k){Fe(k.view).on("mousemove.drag mouseup.drag",null),Fs(k.view,c),Yt(k),i.mouse("end",k)}function $(k,H){if(!!e.call(this,k,H)){var X=k.changedTouches,L=t.call(this,k,H),K=X.length,Y,I;for(Y=0;Y>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?On(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?On(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Bd.exec(e))?new Ae(t[1],t[2],t[3],1):(t=Od.exec(e))?new Ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Rd.exec(e))?On(t[1],t[2],t[3],t[4]):(t=Vd.exec(e))?On(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hd.exec(e))?mr(t[1],t[2]/100,t[3]/100,1):(t=Fd.exec(e))?mr(t[1],t[2]/100,t[3]/100,t[4]):dr.hasOwnProperty(e)?gr(dr[e]):e==="transparent"?new Ae(NaN,NaN,NaN,0):null}function gr(e){return new Ae(e>>16&255,e>>8&255,e&255,1)}function On(e,t,n,o){return o<=0&&(e=t=n=NaN),new Ae(e,t,n,o)}function Xd(e){return e instanceof Pn||(e=bn(e)),e?(e=e.rgb(),new Ae(e.r,e.g,e.b,e.opacity)):new Ae}function ri(e,t,n,o){return arguments.length===1?Xd(e):new Ae(e,t,n,o==null?1:o)}function Ae(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ti(Ae,ri,Ls(Pn,{brighter(e){return e=e==null?ro:Math.pow(ro,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wn:Math.pow(wn,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Ct(this.r),Ct(this.g),Ct(this.b),so(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pr,formatHex:pr,formatHex8:Gd,formatRgb:vr,toString:vr}));function pr(){return`#${Nt(this.r)}${Nt(this.g)}${Nt(this.b)}`}function Gd(){return`#${Nt(this.r)}${Nt(this.g)}${Nt(this.b)}${Nt((isNaN(this.opacity)?1:this.opacity)*255)}`}function vr(){const e=so(this.opacity);return`${e===1?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${e===1?")":`, ${e})`}`}function so(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nt(e){return e=Ct(e),(e<16?"0":"")+e.toString(16)}function mr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Le(e,t,n,o)}function Ys(e){if(e instanceof Le)return new Le(e.h,e.s,e.l,e.opacity);if(e instanceof Pn||(e=bn(e)),!e)return new Le;if(e instanceof Le)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),s=NaN,a=r-i,l=(r+i)/2;return a?(t===r?s=(n-o)/a+(n0&&l<1?0:s,new Le(s,a,l,e.opacity)}function Zd(e,t,n,o){return arguments.length===1?Ys(e):new Le(e,t,n,o==null?1:o)}function Le(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ti(Le,Zd,Ls(Pn,{brighter(e){return e=e==null?ro:Math.pow(ro,e),new Le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wn:Math.pow(wn,e),new Le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new Ae(Xo(e>=240?e-240:e+120,i,o),Xo(e,i,o),Xo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Le(yr(this.h),Rn(this.s),Rn(this.l),so(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=so(this.opacity);return`${e===1?"hsl(":"hsla("}${yr(this.h)}, ${Rn(this.s)*100}%, ${Rn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yr(e){return e=(e||0)%360,e<0?e+360:e}function Rn(e){return Math.max(0,Math.min(1,e||0))}function Xo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xs=e=>()=>e;function Ud(e,t){return function(n){return e+n*t}}function Wd(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function qd(e){return(e=+e)==1?Gs:function(t,n){return n-t?Wd(t,n,e):Xs(isNaN(t)?n:t)}}function Gs(e,t){var n=t-e;return n?Ud(e,n):Xs(isNaN(e)?t:e)}const wr=function e(t){var n=qd(t);function o(i,r){var s=n((i=ri(i)).r,(r=ri(r)).r),a=n(i.g,r.g),l=n(i.b,r.b),c=Gs(i.opacity,r.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var si=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Go=new RegExp(si.source,"g");function Kd(e){return function(){return e}}function Qd(e){return function(t){return e(t)+""}}function Jd(e,t){var n=si.lastIndex=Go.lastIndex=0,o,i,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(o=si.exec(e))&&(i=Go.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(o=o[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ht(o,i)})),n=Go.lastIndex;return n180?u+=360:u-c>180&&(c+=360),g.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(c,u)})):u&&d.push(i(d)+"rotate("+u+o)}function a(c,u,d,g){c!==u?g.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(c,u)}):u&&d.push(i(d)+"skewX("+u+o)}function l(c,u,d,g,h,b){if(c!==d||u!==g){var w=h.push(i(h)+"scale(",null,",",null,")");b.push({i:w-4,x:ht(c,d)},{i:w-2,x:ht(u,g)})}else(d!==1||g!==1)&&h.push(i(h)+"scale("+d+","+g+")")}return function(c,u){var d=[],g=[];return c=e(c),u=e(u),r(c.translateX,c.translateY,u.translateX,u.translateY,d,g),s(c.rotate,u.rotate,d,g),a(c.skewX,u.skewX,d,g),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,g),c=u=null,function(h){for(var b=-1,w=g.length,$;++b=0&&e._call.call(void 0,t),e=e._next;--qt}function Sr(){Dt=(lo=Sn.now())+ko,qt=un=0;try{uf()}finally{qt=0,df(),Dt=0}}function cf(){var e=Sn.now(),t=e-lo;t>Ws&&(ko-=t,lo=e)}function df(){for(var e,t=ao,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ao=n);cn=e,li(o)}function li(e){if(!qt){un&&(un=clearTimeout(un));var t=e-Dt;t>24?(e<1/0&&(un=setTimeout(Sr,e-Sn.now()-ko)),on&&(on=clearInterval(on))):(on||(lo=Sn.now(),on=setInterval(cf,Ws)),qt=1,qs(Sr))}}function $r(e,t,n){var o=new uo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var ff=Eo("start","end","cancel","interrupt"),hf=[],Qs=0,xr=1,ui=2,Qn=3,Er=4,ci=5,Jn=6;function Co(e,t,n,o,i,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;gf(e,n,{name:t,index:o,group:i,on:ff,tween:hf,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Qs})}function Di(e,t){var n=Ge(e,t);if(n.state>Qs)throw new Error("too late; already scheduled");return n}function Qe(e,t){var n=Ge(e,t);if(n.state>Qn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function gf(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Ks(r,0,n.time);function r(c){n.state=xr,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,d,g,h;if(n.state!==xr)return l();for(u in o)if(h=o[u],h.name===n.name){if(h.state===Qn)return $r(s);h.state===Er?(h.state=Jn,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete o[u]):+uui&&o.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function Xf(e,t,n){var o,i,r=Yf(t)?Di:Qe;return function(){var s=r(this,e),a=s.on;a!==o&&(i=(o=a).copy()).on(t,n),s.on=i}}function Gf(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(Xf(n,e,t))}function Zf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Uf(){return this.on("end.remove",Zf(this._id))}function Wf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),s=0;s()=>e;function wh(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function ot(e,t,n){this.k=e,this.x=t,this.y=n}ot.prototype={constructor:ot,scale:function(e){return e===1?this:new ot(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ot(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Kt=new ot(1,0,0);ot.prototype;function Zo(e){e.stopImmediatePropagation()}function rn(e){e.preventDefault(),e.stopImmediatePropagation()}function _h(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function bh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Nr(){return this.__zoom||Kt}function Sh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function $h(){return navigator.maxTouchPoints||"ontouchstart"in this}function xh(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function Eh(){var e=_h,t=bh,n=xh,o=Sh,i=$h,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=af,c=Eo("start","zoom","end"),u,d,g,h=500,b=150,w=0,$=10;function S(f){f.property("__zoom",Nr).on("wheel.zoom",K,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",I).filter(i).on("touchstart.zoom",_).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",ne).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(f,x,y,M){var E=f.selection?f.selection():f;E.property("__zoom",Nr),f!==E?H(f,x,y,M):E.interrupt().each(function(){X(this,arguments).event(M).start().zoom(null,typeof x=="function"?x.apply(this,arguments):x).end()})},S.scaleBy=function(f,x,y,M){S.scaleTo(f,function(){var E=this.__zoom.k,T=typeof x=="function"?x.apply(this,arguments):x;return E*T},y,M)},S.scaleTo=function(f,x,y,M){S.transform(f,function(){var E=t.apply(this,arguments),T=this.__zoom,C=y==null?k(E):typeof y=="function"?y.apply(this,arguments):y,R=T.invert(C),V=typeof x=="function"?x.apply(this,arguments):x;return n(N(v(T,V),C,R),E,s)},y,M)},S.translateBy=function(f,x,y,M){S.transform(f,function(){return n(this.__zoom.translate(typeof x=="function"?x.apply(this,arguments):x,typeof y=="function"?y.apply(this,arguments):y),t.apply(this,arguments),s)},null,M)},S.translateTo=function(f,x,y,M,E){S.transform(f,function(){var T=t.apply(this,arguments),C=this.__zoom,R=M==null?k(T):typeof M=="function"?M.apply(this,arguments):M;return n(Kt.translate(R[0],R[1]).scale(C.k).translate(typeof x=="function"?-x.apply(this,arguments):-x,typeof y=="function"?-y.apply(this,arguments):-y),T,s)},M,E)};function v(f,x){return x=Math.max(r[0],Math.min(r[1],x)),x===f.k?f:new ot(x,f.x,f.y)}function N(f,x,y){var M=x[0]-y[0]*f.k,E=x[1]-y[1]*f.k;return M===f.x&&E===f.y?f:new ot(f.k,M,E)}function k(f){return[(+f[0][0]+ +f[1][0])/2,(+f[0][1]+ +f[1][1])/2]}function H(f,x,y,M){f.on("start.zoom",function(){X(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){X(this,arguments).event(M).end()}).tween("zoom",function(){var E=this,T=arguments,C=X(E,T).event(M),R=t.apply(E,T),V=y==null?k(R):typeof y=="function"?y.apply(E,T):y,z=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),B=E.__zoom,U=typeof x=="function"?x.apply(E,T):x,ue=l(B.invert(V).concat(z/B.k),U.invert(V).concat(z/U.k));return function(se){if(se===1)se=U;else{var ce=ue(se),le=z/ce[2];se=new ot(le,V[0]-ce[0]*le,V[1]-ce[1]*le)}C.zoom(null,se)}})}function X(f,x,y){return!y&&f.__zooming||new L(f,x)}function L(f,x){this.that=f,this.args=x,this.active=0,this.sourceEvent=null,this.extent=t.apply(f,x),this.taps=0}L.prototype={event:function(f){return f&&(this.sourceEvent=f),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(f,x){return this.mouse&&f!=="mouse"&&(this.mouse[1]=x.invert(this.mouse[0])),this.touch0&&f!=="touch"&&(this.touch0[1]=x.invert(this.touch0[0])),this.touch1&&f!=="touch"&&(this.touch1[1]=x.invert(this.touch1[0])),this.that.__zoom=x,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(f){var x=Fe(this.that).datum();c.call(f,this.that,new wh(f,{sourceEvent:this.sourceEvent,target:S,type:f,transform:this.that.__zoom,dispatch:c}),x)}};function K(f,...x){if(!e.apply(this,arguments))return;var y=X(this,x).event(f),M=this.__zoom,E=Math.max(r[0],Math.min(r[1],M.k*Math.pow(2,o.apply(this,arguments)))),T=Ue(f);if(y.wheel)(y.mouse[0][0]!==T[0]||y.mouse[0][1]!==T[1])&&(y.mouse[1]=M.invert(y.mouse[0]=T)),clearTimeout(y.wheel);else{if(M.k===E)return;y.mouse=[T,M.invert(T)],jn(this),y.start()}rn(f),y.wheel=setTimeout(C,b),y.zoom("mouse",n(N(v(M,E),y.mouse[0],y.mouse[1]),y.extent,s));function C(){y.wheel=null,y.end()}}function Y(f,...x){if(g||!e.apply(this,arguments))return;var y=f.currentTarget,M=X(this,x,!0).event(f),E=Fe(f.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",z,!0),T=Ue(f,y),C=f.clientX,R=f.clientY;Hs(f.view),Zo(f),M.mouse=[T,this.__zoom.invert(T)],jn(this),M.start();function V(B){if(rn(B),!M.moved){var U=B.clientX-C,ue=B.clientY-R;M.moved=U*U+ue*ue>w}M.event(B).zoom("mouse",n(N(M.that.__zoom,M.mouse[0]=Ue(B,y),M.mouse[1]),M.extent,s))}function z(B){E.on("mousemove.zoom mouseup.zoom",null),Fs(B.view,M.moved),rn(B),M.event(B).end()}}function I(f,...x){if(!!e.apply(this,arguments)){var y=this.__zoom,M=Ue(f.changedTouches?f.changedTouches[0]:f,this),E=y.invert(M),T=y.k*(f.shiftKey?.5:2),C=n(N(v(y,T),M,E),t.apply(this,x),s);rn(f),a>0?Fe(this).transition().duration(a).call(H,C,M,f):Fe(this).call(S.transform,C,M,f)}}function _(f,...x){if(!!e.apply(this,arguments)){var y=f.touches,M=y.length,E=X(this,x,f.changedTouches.length===M).event(f),T,C,R,V;for(Zo(f),C=0;C(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(ee||{}),zi=(e=>(e.Partial="partial",e.Full="full",e))(zi||{}),$t=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))($t||{}),At=(e=>(e.Strict="strict",e.Loose="loose",e))(At||{}),zt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(zt||{}),gn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(gn||{}),ta=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(ta||{});function di(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(o==null?void 0:o.nodeName)||i||!!r}function Nh(e){return e.ctrlKey||e.metaKey||e.shiftKey}function kr(e,t,n,o){const i=t.split("+").map(r=>r.trim().toLowerCase());return i.length===1?e.toLowerCase()===t.toLowerCase():(o?n.delete(e.toLowerCase()):n.add(e.toLowerCase()),i.every((r,s)=>n.has(r)&&Array.from(n.values())[s]===i[s]))}function kh(e,t){return n=>{if(!n.code&&!n.key)return!1;const o=Ch(n.code,e);return Array.isArray(e)?e.some(i=>kr(n[o],i,t,n.type==="keyup")):kr(n[o],e,t,n.type==="keyup")}}function Ch(e,t){return typeof t=="string"?e===t?"code":"key":t.includes(e)?"code":"key"}function pn(e,t){const n=be(()=>{var u;return(u=_e(t==null?void 0:t.actInsideInputWithModifier))!=null?u:!1}),o=be(()=>{var u;return(u=_e(t==null?void 0:t.target))!=null?u:window}),i=re(_e(e)===!0);let r=!1;const s=new Set;let a=c(_e(e));Ee(()=>_e(e),(u,d)=>{typeof d=="boolean"&&typeof u!="boolean"&&l(),a=c(u)},{immediate:!0}),Be(()=>{ks(window,["blur","contextmenu"],l)}),lr((...u)=>a(...u),u=>{r=Nh(u),!((!r||r&&!n.value)&&di(u))&&(u.preventDefault(),i.value=!0)},{eventName:"keydown",target:o}),lr((...u)=>a(...u),u=>{if(i.value){if((!r||r&&!n.value)&&di(u))return;l()}},{eventName:"keyup",target:o});function l(){r=!1,s.clear(),i.value=!1}function c(u){return u===null?(l(),()=>!1):typeof u=="boolean"?(l(),i.value=u,()=>!1):Array.isArray(u)||typeof u=="string"?kh(u,s):u}return i}const na="vue-flow__node-desc",oa="vue-flow__edge-desc",Ih="vue-flow__aria-live",ia=["Enter"," ","Escape"],Gt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function fi(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function hi(e,t){const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)}function Io(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Bt(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function ra(e,t){return{x:Bt(e.x,t[0][0],t[1][0]),y:Bt(e.y,t[0][1],t[1][1])}}function Cr(e){const t=e.getRootNode();return"elementFromPoint"in t?t:window.document}function _t(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function It(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!_t(e)}function dn(e){return It(e)&&"computedPosition"in e}function Fn(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Mh(e){return Fn(e.width)&&Fn(e.height)&&Fn(e.x)&&Fn(e.y)}function Th(e,t,n){var i;const o={id:e.id.toString(),type:(i=e.type)!=null?i:"default",dimensions:Lt({width:0,height:0}),computedPosition:Lt({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{})};return Object.assign(t!=null?t:o,e,{id:e.id.toString(),parentNode:n})}function sa(e,t,n){var s,a,l,c,u,d,g;var o,i;const r={id:e.id.toString(),type:(a=(s=e.type)!=null?s:t==null?void 0:t.type)!=null?a:"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(o=e.sourceHandle)==null?void 0:o.toString(),targetHandle:(i=e.targetHandle)==null?void 0:i.toString(),updatable:(l=e.updatable)!=null?l:n==null?void 0:n.updatable,selectable:(c=e.selectable)!=null?c:n==null?void 0:n.selectable,focusable:(u=e.focusable)!=null?u:n==null?void 0:n.focusable,data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{}),label:(d=e.label)!=null?d:"",interactionWidth:(g=e.interactionWidth)!=null?g:n==null?void 0:n.interactionWidth,...n!=null?n:{}};return Object.assign(t!=null?t:r,e,{id:e.id.toString()})}function aa(e,t,n,o){const i=typeof e=="string"?e:e.id,r=new Set,s=o==="source"?"target":"source";for(const a of n)a[s]===i&&r.add(a[o]);return t.filter(a=>r.has(a.id))}function Ph(...e){if(e.length===3){const[r,s,a]=e;return aa(r,s,a,"target")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>_t(r)&&r.source===o).map(r=>n.find(s=>It(s)&&s.id===r.target))}function Dh(...e){if(e.length===3){const[r,s,a]=e;return aa(r,s,a,"source")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>_t(r)&&r.target===o).map(r=>n.find(s=>It(s)&&s.id===r.source))}function la({source:e,sourceHandle:t,target:n,targetHandle:o}){return`vueflow__edge-${e}${t!=null?t:""}-${n}${o!=null?o:""}`}function Ah(e,t){return t.some(n=>_t(n)&&n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle))}function ua({x:e,y:t},{x:n,y:o,zoom:i}){return{x:e*i+n,y:t*i+o}}function co({x:e,y:t},{x:n,y:o,zoom:i},r=!1,[s,a]=[1,1]){const l={x:(e-n)/i,y:(t-o)/i};return r?{x:s*Math.round(l.x/s),y:a*Math.round(l.y/a)}:l}function ca(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function fo({x:e,y:t,width:n,height:o}){return{x:e,y:t,x2:e+n,y2:t+o}}function da({x:e,y:t,x2:n,y2:o}){return{x:e,y:t,width:n-e,height:o-t}}function zh(e,t){return da(ca(fo(e),fo(t)))}function Mo(e){let t={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let n=0;n0,k=(w!=null?w:0)*($!=null?$:0);(v||N||S>=k||d.dragging)&&s.push(d)}return s}function xt(e,t){const n=new Set;if(typeof e=="string")n.add(e);else if(e.length>=1)for(const o of e)n.add(o.id);return t.filter(o=>n.has(o.source)||n.has(o.target))}function Ir(e,t,n,o,i,r=.1,s={x:0,y:0}){var w,$;const a=t/(e.width*(1+r)),l=n/(e.height*(1+r)),c=Math.min(a,l),u=Bt(c,o,i),d=e.x+e.width/2,g=e.y+e.height/2,h=t/2-d*u+((w=s.x)!=null?w:0),b=n/2-g*u+(($=s.y)!=null?$:0);return{x:h,y:b,zoom:u}}function Bh(e,t){return{x:t.x+e.x,y:t.y+e.y,z:(e.z>t.z?e.z:t.z)+1}}function ha(e,t){if(!e.parentNode)return!1;const n=t(e.parentNode);return n?n.selected?!0:ha(n,t):!1}function $n(e,t){return typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`}function Mr(e,t,n){return en?-Bt(Math.abs(e-n),1,t)/t:0}function ga(e,t,n=15,o=40){const i=Mr(e.x,o,t.width-o)*n,r=Mr(e.y,o,t.height-o)*n;return[i,r]}function Uo(e,t){var n,o;if(t){const i=e.position.x+e.dimensions.width-t.dimensions.width,r=e.position.y+e.dimensions.height-t.dimensions.height;if(i>0||r>0||e.position.x<0||e.position.y<0){let s={};if(typeof t.style=="function"?s={...t.style(t)}:t.style&&(s={...t.style}),s.width=(n=s.width)!=null?n:`${t.dimensions.width}px`,s.height=(o=s.height)!=null?o:`${t.dimensions.height}px`,i>0)if(typeof s.width=="string"){const a=Number(s.width.replace("px",""));s.width=`${a+i}px`}else s.width+=i;if(r>0)if(typeof s.height=="string"){const a=Number(s.height.replace("px",""));s.height=`${a+r}px`}else s.height+=r;if(e.position.x<0){const a=Math.abs(e.position.x);if(t.position.x=t.position.x-a,typeof s.width=="string"){const l=Number(s.width.replace("px",""));s.width=`${l+a}px`}else s.width+=a;e.position.x=0}if(e.position.y<0){const a=Math.abs(e.position.y);if(t.position.y=t.position.y-a,typeof s.height=="string"){const l=Number(s.height.replace("px",""));s.height=`${l+a}px`}else s.height+=a;e.position.y=0}t.dimensions.width=Number(s.width.toString().replace("px","")),t.dimensions.height=Number(s.height.toString().replace("px","")),typeof t.style=="function"?t.style=a=>{const l=t.style;return{...l(a),...s}}:t.style={...t.style,...s}}}}function Tr(e,t){var n,o;const i=e.filter(s=>s.type==="add"||s.type==="remove");for(const s of i)if(s.type==="add")t.findIndex(l=>l.id===s.item.id)===-1&&t.push(s.item);else if(s.type==="remove"){const a=t.findIndex(l=>l.id===s.id);a!==-1&&t.splice(a,1)}const r=t.map(s=>s.id);for(const s of t)for(const a of e)if(a.id===s.id)switch(a.type){case"select":s.selected=a.selected;break;case"position":if(dn(s)&&(typeof a.position<"u"&&(s.position=a.position),typeof a.dragging<"u"&&(s.dragging=a.dragging),s.expandParent&&s.parentNode)){const l=t[r.indexOf(s.parentNode)];l&&dn(l)&&Uo(s,l)}break;case"dimensions":if(dn(s)&&(typeof a.dimensions<"u"&&(s.dimensions=a.dimensions),typeof a.updateStyle<"u"&&(s.style={...s.style||{},width:`${(n=a.dimensions)==null?void 0:n.width}px`,height:`${(o=a.dimensions)==null?void 0:o.height}px`}),typeof a.resizing<"u"&&(s.resizing=a.resizing),s.expandParent&&s.parentNode)){const l=t[r.indexOf(s.parentNode)];l&&dn(l)&&(!!l.dimensions.width&&!!l.dimensions.height?Uo(s,l):rt(()=>{Uo(s,l)}))}break}return t}function dt(e,t){return{id:e,type:"select",selected:t}}function Pr(e){return{item:e,type:"add"}}function Dr(e){return{id:e,type:"remove"}}function Ar(e,t,n,o,i){return{id:e,source:t,target:n,sourceHandle:o||null,targetHandle:i||null,type:"remove"}}function gt(e,t=new Set,n=!1){const o=[];for(const[i,r]of e){const s=t.has(i);!(r.selected===void 0&&!s)&&r.selected!==s&&(n&&(r.selected=s),o.push(dt(r.id,s)))}return o}function Q(e){const t=new Set;let n=!1;const o=()=>t.size>0;e&&(n=!0,t.add(e));const i=a=>{t.delete(a)};return{on:a=>{e&&n&&t.delete(e),t.add(a);const l=()=>{i(a),e&&n&&t.add(e)};return xo(l),{off:l}},off:i,trigger:a=>Promise.all(Array.from(t).map(l=>l(a))),hasListeners:o,fns:t}}function zr(e,t,n){let o=e;do{if(o&&o.matches(t))return!0;if(o===n)return!1;o=o.parentElement}while(o);return!1}function Oh(e,t,n,o,i){var r,s;const a=[];for(const l of e)(l.selected||l.id===i)&&(!l.parentNode||!ha(l,o))&&(l.draggable||t&&typeof l.draggable>"u")&&a.push(Lt({id:l.id,position:l.position||{x:0,y:0},distance:{x:n.x-((r=l.computedPosition)==null?void 0:r.x)||0,y:n.y-((s=l.computedPosition)==null?void 0:s.y)||0},from:l.computedPosition,extent:l.extent,parentNode:l.parentNode,dimensions:l.dimensions,expandParent:l.expandParent}));return a}function Wo({id:e,dragItems:t,findNode:n}){const o=[];for(const i of t){const r=n(i.id);r&&o.push(r)}return[e?o.find(i=>i.id===e):o[0],o]}function pa(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function Rh(e,t,n){const[o,i,r,s]=typeof e!="string"?pa(e.padding):[0,0,0,0];return n&&typeof n.computedPosition.x<"u"&&typeof n.computedPosition.y<"u"&&typeof n.dimensions.width<"u"&&typeof n.dimensions.height<"u"?[[n.computedPosition.x+s,n.computedPosition.y+o],[n.computedPosition.x+n.dimensions.width-i,n.computedPosition.y+n.dimensions.height-r]]:!1}function Vh(e,t,n,o){let i=e.extent||n;if((i==="parent"||!Array.isArray(i)&&(i==null?void 0:i.range)==="parent")&&!e.expandParent)if(e.parentNode&&o&&e.dimensions.width&&e.dimensions.height){const r=Rh(i,e,o);r&&(i=r)}else t(new Ie(Ce.NODE_EXTENT_INVALID,e.id)),i=n;else if(Array.isArray(i)){const r=(o==null?void 0:o.computedPosition.x)||0,s=(o==null?void 0:o.computedPosition.y)||0;i=[[i[0][0]+r,i[0][1]+s],[i[1][0]+r,i[1][1]+s]]}else if(i!=="parent"&&(i==null?void 0:i.range)&&Array.isArray(i.range)){const[r,s,a,l]=pa(i.padding),c=(o==null?void 0:o.computedPosition.x)||0,u=(o==null?void 0:o.computedPosition.y)||0;i=[[i.range[0][0]+c+l,i.range[0][1]+u+r],[i.range[1][0]+c-s,i.range[1][1]+u-a]]}return i==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:i}function Hh({width:e,height:t},n){return[n[0],[n[1][0]-(e||0),n[1][1]-(t||0)]]}function Bi(e,t,n,o,i){const r=Hh(e.dimensions,Vh(e,n,o,i)),s=ra(t,r);return{position:{x:s.x-((i==null?void 0:i.computedPosition.x)||0),y:s.y-((i==null?void 0:i.computedPosition.y)||0)},computedPosition:s}}function ho(e,t,n=ee.Left){var l,c,u;const o=((l=t==null?void 0:t.x)!=null?l:0)+e.computedPosition.x,i=((c=t==null?void 0:t.y)!=null?c:0)+e.computedPosition.y,{width:r,height:s}=t!=null?t:Yh(e);switch((u=t==null?void 0:t.position)!=null?u:n){case ee.Top:return{x:o+r/2,y:i};case ee.Right:return{x:o+r,y:i+s/2};case ee.Bottom:return{x:o+r/2,y:i+s};case ee.Left:return{x:o,y:i+s/2}}}function Br(e=[],t){return e.length&&(t?e.find(n=>n.id===t):e[0])||null}function Fh({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:o,targetWidth:i,targetHeight:r,width:s,height:a,viewport:l}){const c={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+o,t.y+r)};c.x===c.x2&&(c.x2+=1),c.y===c.y2&&(c.y2+=1);const u=fo({x:(0-l.x)/l.zoom,y:(0-l.y)/l.zoom,width:s/l.zoom,height:a/l.zoom}),d=Math.max(0,Math.min(u.x2,c.x2)-Math.max(u.x,c.x)),g=Math.max(0,Math.min(u.y2,c.y2)-Math.max(u.y,c.y));return Math.ceil(d*g)>0}function Lh(e,t,n=!1){const o=typeof e.zIndex=="number";let i=o?e.zIndex:0;const r=t(e.source),s=t(e.target);return!r||!s?0:(n&&(i=o?e.zIndex:Math.max(r.computedPosition.z||0,s.computedPosition.z||0)),i)}var Ce=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(Ce||{});const Or={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid +var fl=Object.defineProperty;var hl=(e,t,n)=>t in e?fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>(hl(e,typeof t!="symbol"?t+"":t,n),n);import{d as he,B as De,f as W,o as O,X as q,Z as Ne,R as me,eb as mt,a as ge,b as J,eh as gl,p as Se,H as gs,x as ps,g as Ee,V as Tt,e as re,bA as be,W as Be,e8 as vs,ag as In,w as ae,u as D,I as qn,J as rt,dH as pl,es as ms,et as Ei,Y as Me,ea as Xe,c as fe,aR as Pe,am as Mn,D as vl,E as Ni,K as ml,eu as yl,ev as _e,ef as He,aF as Oe,ec as Te,aq as ys,r as ws,ee as en,ew as _s,ex as wl,y as Lt,ey as _l,cL as yt,Q as or,eo as St,aK as bl,ez as bs,da as Rt,bK as Ut,$ as lt,aA as Sl,cS as ir,df as Pt,eA as $l,eB as xl,aV as El,bS as Nl,dk as kl,cy as Cl,cx as Il,cK as Ml,eq as Tl,el as Pl,em as Dl,ek as Al,eC as zl}from"./vue-router.3fd92176.js";import{w as vn,s as ki}from"./metadata.789df59c.js";import{G as Bl}from"./PhArrowClockwise.vue.2725755a.js";import{G as Ol}from"./PhArrowCounterClockwise.vue.8fbc5885.js";import{a as Rl,n as mn,c as Vl,d as Ss,v as $s,e as xs}from"./validations.0afef3f1.js";import{u as Hl}from"./uuid.06ef1e24.js";import{t as $o}from"./index.bd967757.js";import{W as Fo}from"./workspaces.b456ec6a.js";import{u as Fl}from"./polling.4e30c061.js";import"./index.f6dcc8cb.js";import{B as ln}from"./Badge.bcc65740.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aae83fe8-03ea-42ab-ad32-7b0743106c7d",e._sentryDebugIdIdentifier="sentry-dbid-aae83fe8-03ea-42ab-ad32-7b0743106c7d")}catch{}})();var Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const Yl=Ll,Xl=["width","height","fill","transform"],Gl={key:0},Zl=ge("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"},null,-1),Ul=[Zl],Wl={key:1},ql=ge("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"},null,-1),Kl=ge("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"},null,-1),Ql=[ql,Kl],Jl={key:2},jl=ge("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"},null,-1),eu=[jl],tu={key:3},nu=ge("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"},null,-1),ou=[nu],iu={key:4},ru=ge("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"},null,-1),su=[ru],au={key:5},lu=ge("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"},null,-1),uu=[lu],cu={name:"PhArrowDown"},rr=he({...cu,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=De("weight","regular"),o=De("size","1em"),i=De("color","currentColor"),r=De("mirrored",!1),s=W(()=>{var u;return(u=t.weight)!=null?u:n}),a=W(()=>{var u;return(u=t.size)!=null?u:o}),l=W(()=>{var u;return(u=t.color)!=null?u:i}),c=W(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(u,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:c.value},u.$attrs),[Ne(u.$slots,"default"),s.value==="bold"?(O(),q("g",Gl,Ul)):s.value==="duotone"?(O(),q("g",Wl,Ql)):s.value==="fill"?(O(),q("g",Jl,eu)):s.value==="light"?(O(),q("g",tu,ou)):s.value==="regular"?(O(),q("g",iu,su)):s.value==="thin"?(O(),q("g",au,uu)):me("",!0)],16,Xl))}}),du=["width","height","fill","transform"],fu={key:0},hu=ge("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"},null,-1),gu=[hu],pu={key:1},vu=ge("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),mu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),yu=[vu,mu],wu={key:2},_u=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"},null,-1),bu=[_u],Su={key:3},$u=ge("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"},null,-1),xu=[$u],Eu={key:4},Nu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),ku=[Nu],Cu={key:5},Iu=ge("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"},null,-1),Mu=[Iu],Tu={name:"PhClock"},Pu=he({...Tu,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=De("weight","regular"),o=De("size","1em"),i=De("color","currentColor"),r=De("mirrored",!1),s=W(()=>{var u;return(u=t.weight)!=null?u:n}),a=W(()=>{var u;return(u=t.size)!=null?u:o}),l=W(()=>{var u;return(u=t.color)!=null?u:i}),c=W(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(u,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:c.value},u.$attrs),[Ne(u.$slots,"default"),s.value==="bold"?(O(),q("g",fu,gu)):s.value==="duotone"?(O(),q("g",pu,yu)):s.value==="fill"?(O(),q("g",wu,bu)):s.value==="light"?(O(),q("g",Su,xu)):s.value==="regular"?(O(),q("g",Eu,ku)):s.value==="thin"?(O(),q("g",Cu,Mu)):me("",!0)],16,du))}});function sr(e){for(var t=1;ttypeof e<"u",Ou=Object.prototype.toString,Ru=e=>Ou.call(e)==="[object Object]",Vu=()=>{};function Hu(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const Es=e=>e();function Fu(e=Es){const t=re(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:_l(t),pause:n,resume:o,eventFilter:i}}function ar(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function Lu(e,t,n={}){const{eventFilter:o=Es,...i}=n;return Ee(e,Hu(o,t),i)}function Ht(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:a,isActive:l}=Fu(o);return{stop:Lu(e,t,{...i,eventFilter:r}),pause:s,resume:a,isActive:l}}function Yu(e,t={}){if(!Ni(e))return ml(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=yl(()=>({get(){return e.value[o]},set(i){var r;if((r=nt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[o]=i,e.value=a}else{const a={...e.value,[o]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:g="sync",deep:h=!1,timeout:b,throwOnTimeout:w}={}){let $=null;const v=[new Promise(N=>{$=Ee(e,k=>{d(k)!==t&&($==null||$(),N(k))},{flush:g,deep:h,immediate:!0})})];return b!=null&&v.push(ar(b,w).then(()=>nt(e)).finally(()=>$==null?void 0:$())),Promise.race(v)}function o(d,g){if(!Ni(d))return n(k=>k===d,g);const{flush:h="sync",deep:b=!1,timeout:w,throwOnTimeout:$}=g!=null?g:{};let S=null;const N=[new Promise(k=>{S=Ee([e,d],([H,X])=>{t!==(H===X)&&(S==null||S(),k(H))},{flush:h,deep:b,immediate:!0})})];return w!=null&&N.push(ar(w,$).then(()=>nt(e)).finally(()=>(S==null||S(),nt(e)))),Promise.race(N)}function i(d){return n(g=>Boolean(g),d)}function r(d){return o(null,d)}function s(d){return o(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,g){return n(h=>{const b=Array.from(h);return b.includes(d)||b.includes(nt(d))},g)}function c(d){return u(1,d)}function u(d=1,g){let h=-1;return n(()=>(h+=1,h>=d),g)}return Array.isArray(nt(e))?{toMatch:n,toContains:l,changed:c,changedTimes:u,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:c,changedTimes:u,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function Xu(e){var t;const n=nt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ns=zu?window:void 0;function ks(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Ns):[t,n,o,i]=e,!t)return Vu;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},a=(u,d,g,h)=>(u.addEventListener(d,g,h),()=>u.removeEventListener(d,g,h)),l=Ee(()=>[Xu(t),nt(i)],([u,d])=>{if(s(),!u)return;const g=Ru(d)?{...d}:d;r.push(...n.flatMap(h=>o.map(b=>a(u,h,b,g))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return xo(c),c}function Gu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function lr(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Ns,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=Gu(t);return ks(i,r,u=>{u.repeat&&nt(a)||l(u)&&n(u)},s)}function Zu(e){return JSON.parse(JSON.stringify(e))}function Lo(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:g}=o,h=Mn(),b=n||(h==null?void 0:h.emit)||((i=h==null?void 0:h.$emit)==null?void 0:i.bind(h))||((s=(r=h==null?void 0:h.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let w=c;t||(t="modelValue"),w=w||`update:${t.toString()}`;const $=N=>a?typeof a=="function"?a(N):Zu(N):N,S=()=>Bu(e[t])?$(e[t]):d,v=N=>{g?g(N)&&b(w,N):b(w,N)};if(l){const N=S(),k=re(N);let H=!1;return Ee(()=>e[t],X=>{H||(H=!0,k.value=$(X),rt(()=>H=!1))}),Ee(k,X=>{!H&&(X!==e[t]||u)&&v(X)},{deep:u}),k}else return W({get(){return S()},set(N){v(N)}})}var Uu={value:()=>{}};function Eo(){for(var e=0,t=arguments.length,n={},o;e=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Kn.prototype=Eo.prototype={constructor:Kn,on:function(e,t){var n=this._,o=Wu(e+"",n),i,r=-1,s=o.length;if(arguments.length<2){for(;++r0)for(var n=new Array(i),o=0,i,r;o=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),cr.hasOwnProperty(t)?{space:cr[t],local:e}:e}function Ku(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function Qu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Cs(e){var t=No(e);return(t.local?Qu:Ku)(t)}function Ju(){}function Ii(e){return e==null?Ju:function(){return this.querySelector(e)}}function ju(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=N&&(N=v+1);!(H=$[N])&&++N=0;)(s=o[i])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function xc(e){e||(e=Ec);function t(d,g){return d&&g?e(d.__data__,g.__data__):!d-!g}for(var n=this._groups,o=n.length,i=new Array(o),r=0;rt?1:e>=t?0:NaN}function Nc(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kc(){return Array.from(this)}function Cc(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Vc:typeof t=="function"?Fc:Hc)(e,t,n==null?"":n)):Wt(this.node(),e)}function Wt(e,t){return e.style.getPropertyValue(t)||Ds(e).getComputedStyle(e,null).getPropertyValue(t)}function Yc(e){return function(){delete this[e]}}function Xc(e,t){return function(){this[e]=t}}function Gc(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Zc(e,t){return arguments.length>1?this.each((t==null?Yc:typeof t=="function"?Gc:Xc)(e,t)):this.node()[e]}function As(e){return e.trim().split(/^|\s+/)}function Mi(e){return e.classList||new zs(e)}function zs(e){this._node=e,this._names=As(e.getAttribute("class")||"")}zs.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Bs(e,t){for(var n=Mi(e),o=-1,i=t.length;++o=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function _d(e){return function(){var t=this.__on;if(!!t){for(var n=0,o=-1,i=t.length,r;n()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:s,y:a,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Md(e){return!e.ctrlKey&&!e.button}function Td(){return this.parentNode}function Pd(e,t){return t==null?{x:e.x,y:e.y}:t}function Dd(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ad(){var e=Md,t=Td,n=Pd,o=Dd,i={},r=Eo("start","drag","end"),s=0,a,l,c,u,d=0;function g(k){k.on("mousedown.drag",h).filter(o).on("touchstart.drag",$).on("touchmove.drag",S,Id).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(k,H){if(!(u||!e.call(this,k,H))){var X=N(this,t.call(this,k,H),k,H,"mouse");!X||(Fe(k.view).on("mousemove.drag",b,yn).on("mouseup.drag",w,yn),Hs(k.view),Yo(k),c=!1,a=k.clientX,l=k.clientY,X("start",k))}}function b(k){if(Yt(k),!c){var H=k.clientX-a,X=k.clientY-l;c=H*H+X*X>d}i.mouse("drag",k)}function w(k){Fe(k.view).on("mousemove.drag mouseup.drag",null),Fs(k.view,c),Yt(k),i.mouse("end",k)}function $(k,H){if(!!e.call(this,k,H)){var X=k.changedTouches,L=t.call(this,k,H),K=X.length,Y,I;for(Y=0;Y>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?On(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?On(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Bd.exec(e))?new Ae(t[1],t[2],t[3],1):(t=Od.exec(e))?new Ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Rd.exec(e))?On(t[1],t[2],t[3],t[4]):(t=Vd.exec(e))?On(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hd.exec(e))?mr(t[1],t[2]/100,t[3]/100,1):(t=Fd.exec(e))?mr(t[1],t[2]/100,t[3]/100,t[4]):dr.hasOwnProperty(e)?gr(dr[e]):e==="transparent"?new Ae(NaN,NaN,NaN,0):null}function gr(e){return new Ae(e>>16&255,e>>8&255,e&255,1)}function On(e,t,n,o){return o<=0&&(e=t=n=NaN),new Ae(e,t,n,o)}function Xd(e){return e instanceof Pn||(e=bn(e)),e?(e=e.rgb(),new Ae(e.r,e.g,e.b,e.opacity)):new Ae}function ri(e,t,n,o){return arguments.length===1?Xd(e):new Ae(e,t,n,o==null?1:o)}function Ae(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ti(Ae,ri,Ls(Pn,{brighter(e){return e=e==null?ro:Math.pow(ro,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wn:Math.pow(wn,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Ct(this.r),Ct(this.g),Ct(this.b),so(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pr,formatHex:pr,formatHex8:Gd,formatRgb:vr,toString:vr}));function pr(){return`#${Nt(this.r)}${Nt(this.g)}${Nt(this.b)}`}function Gd(){return`#${Nt(this.r)}${Nt(this.g)}${Nt(this.b)}${Nt((isNaN(this.opacity)?1:this.opacity)*255)}`}function vr(){const e=so(this.opacity);return`${e===1?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${e===1?")":`, ${e})`}`}function so(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nt(e){return e=Ct(e),(e<16?"0":"")+e.toString(16)}function mr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Le(e,t,n,o)}function Ys(e){if(e instanceof Le)return new Le(e.h,e.s,e.l,e.opacity);if(e instanceof Pn||(e=bn(e)),!e)return new Le;if(e instanceof Le)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),s=NaN,a=r-i,l=(r+i)/2;return a?(t===r?s=(n-o)/a+(n0&&l<1?0:s,new Le(s,a,l,e.opacity)}function Zd(e,t,n,o){return arguments.length===1?Ys(e):new Le(e,t,n,o==null?1:o)}function Le(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ti(Le,Zd,Ls(Pn,{brighter(e){return e=e==null?ro:Math.pow(ro,e),new Le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wn:Math.pow(wn,e),new Le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new Ae(Xo(e>=240?e-240:e+120,i,o),Xo(e,i,o),Xo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Le(yr(this.h),Rn(this.s),Rn(this.l),so(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=so(this.opacity);return`${e===1?"hsl(":"hsla("}${yr(this.h)}, ${Rn(this.s)*100}%, ${Rn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yr(e){return e=(e||0)%360,e<0?e+360:e}function Rn(e){return Math.max(0,Math.min(1,e||0))}function Xo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xs=e=>()=>e;function Ud(e,t){return function(n){return e+n*t}}function Wd(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function qd(e){return(e=+e)==1?Gs:function(t,n){return n-t?Wd(t,n,e):Xs(isNaN(t)?n:t)}}function Gs(e,t){var n=t-e;return n?Ud(e,n):Xs(isNaN(e)?t:e)}const wr=function e(t){var n=qd(t);function o(i,r){var s=n((i=ri(i)).r,(r=ri(r)).r),a=n(i.g,r.g),l=n(i.b,r.b),c=Gs(i.opacity,r.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var si=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Go=new RegExp(si.source,"g");function Kd(e){return function(){return e}}function Qd(e){return function(t){return e(t)+""}}function Jd(e,t){var n=si.lastIndex=Go.lastIndex=0,o,i,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(o=si.exec(e))&&(i=Go.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(o=o[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ht(o,i)})),n=Go.lastIndex;return n180?u+=360:u-c>180&&(c+=360),g.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(c,u)})):u&&d.push(i(d)+"rotate("+u+o)}function a(c,u,d,g){c!==u?g.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(c,u)}):u&&d.push(i(d)+"skewX("+u+o)}function l(c,u,d,g,h,b){if(c!==d||u!==g){var w=h.push(i(h)+"scale(",null,",",null,")");b.push({i:w-4,x:ht(c,d)},{i:w-2,x:ht(u,g)})}else(d!==1||g!==1)&&h.push(i(h)+"scale("+d+","+g+")")}return function(c,u){var d=[],g=[];return c=e(c),u=e(u),r(c.translateX,c.translateY,u.translateX,u.translateY,d,g),s(c.rotate,u.rotate,d,g),a(c.skewX,u.skewX,d,g),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,g),c=u=null,function(h){for(var b=-1,w=g.length,$;++b=0&&e._call.call(void 0,t),e=e._next;--qt}function Sr(){Dt=(lo=Sn.now())+ko,qt=un=0;try{uf()}finally{qt=0,df(),Dt=0}}function cf(){var e=Sn.now(),t=e-lo;t>Ws&&(ko-=t,lo=e)}function df(){for(var e,t=ao,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ao=n);cn=e,li(o)}function li(e){if(!qt){un&&(un=clearTimeout(un));var t=e-Dt;t>24?(e<1/0&&(un=setTimeout(Sr,e-Sn.now()-ko)),on&&(on=clearInterval(on))):(on||(lo=Sn.now(),on=setInterval(cf,Ws)),qt=1,qs(Sr))}}function $r(e,t,n){var o=new uo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var ff=Eo("start","end","cancel","interrupt"),hf=[],Qs=0,xr=1,ui=2,Qn=3,Er=4,ci=5,Jn=6;function Co(e,t,n,o,i,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;gf(e,n,{name:t,index:o,group:i,on:ff,tween:hf,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Qs})}function Di(e,t){var n=Ge(e,t);if(n.state>Qs)throw new Error("too late; already scheduled");return n}function Qe(e,t){var n=Ge(e,t);if(n.state>Qn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function gf(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Ks(r,0,n.time);function r(c){n.state=xr,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,d,g,h;if(n.state!==xr)return l();for(u in o)if(h=o[u],h.name===n.name){if(h.state===Qn)return $r(s);h.state===Er?(h.state=Jn,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete o[u]):+uui&&o.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function Xf(e,t,n){var o,i,r=Yf(t)?Di:Qe;return function(){var s=r(this,e),a=s.on;a!==o&&(i=(o=a).copy()).on(t,n),s.on=i}}function Gf(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(Xf(n,e,t))}function Zf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Uf(){return this.on("end.remove",Zf(this._id))}function Wf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),s=0;s()=>e;function wh(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function ot(e,t,n){this.k=e,this.x=t,this.y=n}ot.prototype={constructor:ot,scale:function(e){return e===1?this:new ot(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ot(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Kt=new ot(1,0,0);ot.prototype;function Zo(e){e.stopImmediatePropagation()}function rn(e){e.preventDefault(),e.stopImmediatePropagation()}function _h(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function bh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Nr(){return this.__zoom||Kt}function Sh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function $h(){return navigator.maxTouchPoints||"ontouchstart"in this}function xh(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function Eh(){var e=_h,t=bh,n=xh,o=Sh,i=$h,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=af,c=Eo("start","zoom","end"),u,d,g,h=500,b=150,w=0,$=10;function S(f){f.property("__zoom",Nr).on("wheel.zoom",K,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",I).filter(i).on("touchstart.zoom",_).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",ne).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(f,x,y,M){var E=f.selection?f.selection():f;E.property("__zoom",Nr),f!==E?H(f,x,y,M):E.interrupt().each(function(){X(this,arguments).event(M).start().zoom(null,typeof x=="function"?x.apply(this,arguments):x).end()})},S.scaleBy=function(f,x,y,M){S.scaleTo(f,function(){var E=this.__zoom.k,T=typeof x=="function"?x.apply(this,arguments):x;return E*T},y,M)},S.scaleTo=function(f,x,y,M){S.transform(f,function(){var E=t.apply(this,arguments),T=this.__zoom,C=y==null?k(E):typeof y=="function"?y.apply(this,arguments):y,R=T.invert(C),V=typeof x=="function"?x.apply(this,arguments):x;return n(N(v(T,V),C,R),E,s)},y,M)},S.translateBy=function(f,x,y,M){S.transform(f,function(){return n(this.__zoom.translate(typeof x=="function"?x.apply(this,arguments):x,typeof y=="function"?y.apply(this,arguments):y),t.apply(this,arguments),s)},null,M)},S.translateTo=function(f,x,y,M,E){S.transform(f,function(){var T=t.apply(this,arguments),C=this.__zoom,R=M==null?k(T):typeof M=="function"?M.apply(this,arguments):M;return n(Kt.translate(R[0],R[1]).scale(C.k).translate(typeof x=="function"?-x.apply(this,arguments):-x,typeof y=="function"?-y.apply(this,arguments):-y),T,s)},M,E)};function v(f,x){return x=Math.max(r[0],Math.min(r[1],x)),x===f.k?f:new ot(x,f.x,f.y)}function N(f,x,y){var M=x[0]-y[0]*f.k,E=x[1]-y[1]*f.k;return M===f.x&&E===f.y?f:new ot(f.k,M,E)}function k(f){return[(+f[0][0]+ +f[1][0])/2,(+f[0][1]+ +f[1][1])/2]}function H(f,x,y,M){f.on("start.zoom",function(){X(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){X(this,arguments).event(M).end()}).tween("zoom",function(){var E=this,T=arguments,C=X(E,T).event(M),R=t.apply(E,T),V=y==null?k(R):typeof y=="function"?y.apply(E,T):y,z=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),B=E.__zoom,U=typeof x=="function"?x.apply(E,T):x,ue=l(B.invert(V).concat(z/B.k),U.invert(V).concat(z/U.k));return function(se){if(se===1)se=U;else{var ce=ue(se),le=z/ce[2];se=new ot(le,V[0]-ce[0]*le,V[1]-ce[1]*le)}C.zoom(null,se)}})}function X(f,x,y){return!y&&f.__zooming||new L(f,x)}function L(f,x){this.that=f,this.args=x,this.active=0,this.sourceEvent=null,this.extent=t.apply(f,x),this.taps=0}L.prototype={event:function(f){return f&&(this.sourceEvent=f),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(f,x){return this.mouse&&f!=="mouse"&&(this.mouse[1]=x.invert(this.mouse[0])),this.touch0&&f!=="touch"&&(this.touch0[1]=x.invert(this.touch0[0])),this.touch1&&f!=="touch"&&(this.touch1[1]=x.invert(this.touch1[0])),this.that.__zoom=x,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(f){var x=Fe(this.that).datum();c.call(f,this.that,new wh(f,{sourceEvent:this.sourceEvent,target:S,type:f,transform:this.that.__zoom,dispatch:c}),x)}};function K(f,...x){if(!e.apply(this,arguments))return;var y=X(this,x).event(f),M=this.__zoom,E=Math.max(r[0],Math.min(r[1],M.k*Math.pow(2,o.apply(this,arguments)))),T=Ue(f);if(y.wheel)(y.mouse[0][0]!==T[0]||y.mouse[0][1]!==T[1])&&(y.mouse[1]=M.invert(y.mouse[0]=T)),clearTimeout(y.wheel);else{if(M.k===E)return;y.mouse=[T,M.invert(T)],jn(this),y.start()}rn(f),y.wheel=setTimeout(C,b),y.zoom("mouse",n(N(v(M,E),y.mouse[0],y.mouse[1]),y.extent,s));function C(){y.wheel=null,y.end()}}function Y(f,...x){if(g||!e.apply(this,arguments))return;var y=f.currentTarget,M=X(this,x,!0).event(f),E=Fe(f.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",z,!0),T=Ue(f,y),C=f.clientX,R=f.clientY;Hs(f.view),Zo(f),M.mouse=[T,this.__zoom.invert(T)],jn(this),M.start();function V(B){if(rn(B),!M.moved){var U=B.clientX-C,ue=B.clientY-R;M.moved=U*U+ue*ue>w}M.event(B).zoom("mouse",n(N(M.that.__zoom,M.mouse[0]=Ue(B,y),M.mouse[1]),M.extent,s))}function z(B){E.on("mousemove.zoom mouseup.zoom",null),Fs(B.view,M.moved),rn(B),M.event(B).end()}}function I(f,...x){if(!!e.apply(this,arguments)){var y=this.__zoom,M=Ue(f.changedTouches?f.changedTouches[0]:f,this),E=y.invert(M),T=y.k*(f.shiftKey?.5:2),C=n(N(v(y,T),M,E),t.apply(this,x),s);rn(f),a>0?Fe(this).transition().duration(a).call(H,C,M,f):Fe(this).call(S.transform,C,M,f)}}function _(f,...x){if(!!e.apply(this,arguments)){var y=f.touches,M=y.length,E=X(this,x,f.changedTouches.length===M).event(f),T,C,R,V;for(Zo(f),C=0;C(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(ee||{}),zi=(e=>(e.Partial="partial",e.Full="full",e))(zi||{}),$t=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))($t||{}),At=(e=>(e.Strict="strict",e.Loose="loose",e))(At||{}),zt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(zt||{}),gn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(gn||{}),ta=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(ta||{});function di(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(o==null?void 0:o.nodeName)||i||!!r}function Nh(e){return e.ctrlKey||e.metaKey||e.shiftKey}function kr(e,t,n,o){const i=t.split("+").map(r=>r.trim().toLowerCase());return i.length===1?e.toLowerCase()===t.toLowerCase():(o?n.delete(e.toLowerCase()):n.add(e.toLowerCase()),i.every((r,s)=>n.has(r)&&Array.from(n.values())[s]===i[s]))}function kh(e,t){return n=>{if(!n.code&&!n.key)return!1;const o=Ch(n.code,e);return Array.isArray(e)?e.some(i=>kr(n[o],i,t,n.type==="keyup")):kr(n[o],e,t,n.type==="keyup")}}function Ch(e,t){return typeof t=="string"?e===t?"code":"key":t.includes(e)?"code":"key"}function pn(e,t){const n=be(()=>{var u;return(u=_e(t==null?void 0:t.actInsideInputWithModifier))!=null?u:!1}),o=be(()=>{var u;return(u=_e(t==null?void 0:t.target))!=null?u:window}),i=re(_e(e)===!0);let r=!1;const s=new Set;let a=c(_e(e));Ee(()=>_e(e),(u,d)=>{typeof d=="boolean"&&typeof u!="boolean"&&l(),a=c(u)},{immediate:!0}),Be(()=>{ks(window,["blur","contextmenu"],l)}),lr((...u)=>a(...u),u=>{r=Nh(u),!((!r||r&&!n.value)&&di(u))&&(u.preventDefault(),i.value=!0)},{eventName:"keydown",target:o}),lr((...u)=>a(...u),u=>{if(i.value){if((!r||r&&!n.value)&&di(u))return;l()}},{eventName:"keyup",target:o});function l(){r=!1,s.clear(),i.value=!1}function c(u){return u===null?(l(),()=>!1):typeof u=="boolean"?(l(),i.value=u,()=>!1):Array.isArray(u)||typeof u=="string"?kh(u,s):u}return i}const na="vue-flow__node-desc",oa="vue-flow__edge-desc",Ih="vue-flow__aria-live",ia=["Enter"," ","Escape"],Gt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function fi(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function hi(e,t){const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)}function Io(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Bt(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function ra(e,t){return{x:Bt(e.x,t[0][0],t[1][0]),y:Bt(e.y,t[0][1],t[1][1])}}function Cr(e){const t=e.getRootNode();return"elementFromPoint"in t?t:window.document}function _t(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function It(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!_t(e)}function dn(e){return It(e)&&"computedPosition"in e}function Fn(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Mh(e){return Fn(e.width)&&Fn(e.height)&&Fn(e.x)&&Fn(e.y)}function Th(e,t,n){var i;const o={id:e.id.toString(),type:(i=e.type)!=null?i:"default",dimensions:Lt({width:0,height:0}),computedPosition:Lt({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{})};return Object.assign(t!=null?t:o,e,{id:e.id.toString(),parentNode:n})}function sa(e,t,n){var s,a,l,c,u,d,g;var o,i;const r={id:e.id.toString(),type:(a=(s=e.type)!=null?s:t==null?void 0:t.type)!=null?a:"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(o=e.sourceHandle)==null?void 0:o.toString(),targetHandle:(i=e.targetHandle)==null?void 0:i.toString(),updatable:(l=e.updatable)!=null?l:n==null?void 0:n.updatable,selectable:(c=e.selectable)!=null?c:n==null?void 0:n.selectable,focusable:(u=e.focusable)!=null?u:n==null?void 0:n.focusable,data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{}),label:(d=e.label)!=null?d:"",interactionWidth:(g=e.interactionWidth)!=null?g:n==null?void 0:n.interactionWidth,...n!=null?n:{}};return Object.assign(t!=null?t:r,e,{id:e.id.toString()})}function aa(e,t,n,o){const i=typeof e=="string"?e:e.id,r=new Set,s=o==="source"?"target":"source";for(const a of n)a[s]===i&&r.add(a[o]);return t.filter(a=>r.has(a.id))}function Ph(...e){if(e.length===3){const[r,s,a]=e;return aa(r,s,a,"target")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>_t(r)&&r.source===o).map(r=>n.find(s=>It(s)&&s.id===r.target))}function Dh(...e){if(e.length===3){const[r,s,a]=e;return aa(r,s,a,"source")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>_t(r)&&r.target===o).map(r=>n.find(s=>It(s)&&s.id===r.source))}function la({source:e,sourceHandle:t,target:n,targetHandle:o}){return`vueflow__edge-${e}${t!=null?t:""}-${n}${o!=null?o:""}`}function Ah(e,t){return t.some(n=>_t(n)&&n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle))}function ua({x:e,y:t},{x:n,y:o,zoom:i}){return{x:e*i+n,y:t*i+o}}function co({x:e,y:t},{x:n,y:o,zoom:i},r=!1,[s,a]=[1,1]){const l={x:(e-n)/i,y:(t-o)/i};return r?{x:s*Math.round(l.x/s),y:a*Math.round(l.y/a)}:l}function ca(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function fo({x:e,y:t,width:n,height:o}){return{x:e,y:t,x2:e+n,y2:t+o}}function da({x:e,y:t,x2:n,y2:o}){return{x:e,y:t,width:n-e,height:o-t}}function zh(e,t){return da(ca(fo(e),fo(t)))}function Mo(e){let t={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let n=0;n0,k=(w!=null?w:0)*($!=null?$:0);(v||N||S>=k||d.dragging)&&s.push(d)}return s}function xt(e,t){const n=new Set;if(typeof e=="string")n.add(e);else if(e.length>=1)for(const o of e)n.add(o.id);return t.filter(o=>n.has(o.source)||n.has(o.target))}function Ir(e,t,n,o,i,r=.1,s={x:0,y:0}){var w,$;const a=t/(e.width*(1+r)),l=n/(e.height*(1+r)),c=Math.min(a,l),u=Bt(c,o,i),d=e.x+e.width/2,g=e.y+e.height/2,h=t/2-d*u+((w=s.x)!=null?w:0),b=n/2-g*u+(($=s.y)!=null?$:0);return{x:h,y:b,zoom:u}}function Bh(e,t){return{x:t.x+e.x,y:t.y+e.y,z:(e.z>t.z?e.z:t.z)+1}}function ha(e,t){if(!e.parentNode)return!1;const n=t(e.parentNode);return n?n.selected?!0:ha(n,t):!1}function $n(e,t){return typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`}function Mr(e,t,n){return en?-Bt(Math.abs(e-n),1,t)/t:0}function ga(e,t,n=15,o=40){const i=Mr(e.x,o,t.width-o)*n,r=Mr(e.y,o,t.height-o)*n;return[i,r]}function Uo(e,t){var n,o;if(t){const i=e.position.x+e.dimensions.width-t.dimensions.width,r=e.position.y+e.dimensions.height-t.dimensions.height;if(i>0||r>0||e.position.x<0||e.position.y<0){let s={};if(typeof t.style=="function"?s={...t.style(t)}:t.style&&(s={...t.style}),s.width=(n=s.width)!=null?n:`${t.dimensions.width}px`,s.height=(o=s.height)!=null?o:`${t.dimensions.height}px`,i>0)if(typeof s.width=="string"){const a=Number(s.width.replace("px",""));s.width=`${a+i}px`}else s.width+=i;if(r>0)if(typeof s.height=="string"){const a=Number(s.height.replace("px",""));s.height=`${a+r}px`}else s.height+=r;if(e.position.x<0){const a=Math.abs(e.position.x);if(t.position.x=t.position.x-a,typeof s.width=="string"){const l=Number(s.width.replace("px",""));s.width=`${l+a}px`}else s.width+=a;e.position.x=0}if(e.position.y<0){const a=Math.abs(e.position.y);if(t.position.y=t.position.y-a,typeof s.height=="string"){const l=Number(s.height.replace("px",""));s.height=`${l+a}px`}else s.height+=a;e.position.y=0}t.dimensions.width=Number(s.width.toString().replace("px","")),t.dimensions.height=Number(s.height.toString().replace("px","")),typeof t.style=="function"?t.style=a=>{const l=t.style;return{...l(a),...s}}:t.style={...t.style,...s}}}}function Tr(e,t){var n,o;const i=e.filter(s=>s.type==="add"||s.type==="remove");for(const s of i)if(s.type==="add")t.findIndex(l=>l.id===s.item.id)===-1&&t.push(s.item);else if(s.type==="remove"){const a=t.findIndex(l=>l.id===s.id);a!==-1&&t.splice(a,1)}const r=t.map(s=>s.id);for(const s of t)for(const a of e)if(a.id===s.id)switch(a.type){case"select":s.selected=a.selected;break;case"position":if(dn(s)&&(typeof a.position<"u"&&(s.position=a.position),typeof a.dragging<"u"&&(s.dragging=a.dragging),s.expandParent&&s.parentNode)){const l=t[r.indexOf(s.parentNode)];l&&dn(l)&&Uo(s,l)}break;case"dimensions":if(dn(s)&&(typeof a.dimensions<"u"&&(s.dimensions=a.dimensions),typeof a.updateStyle<"u"&&(s.style={...s.style||{},width:`${(n=a.dimensions)==null?void 0:n.width}px`,height:`${(o=a.dimensions)==null?void 0:o.height}px`}),typeof a.resizing<"u"&&(s.resizing=a.resizing),s.expandParent&&s.parentNode)){const l=t[r.indexOf(s.parentNode)];l&&dn(l)&&(!!l.dimensions.width&&!!l.dimensions.height?Uo(s,l):rt(()=>{Uo(s,l)}))}break}return t}function dt(e,t){return{id:e,type:"select",selected:t}}function Pr(e){return{item:e,type:"add"}}function Dr(e){return{id:e,type:"remove"}}function Ar(e,t,n,o,i){return{id:e,source:t,target:n,sourceHandle:o||null,targetHandle:i||null,type:"remove"}}function gt(e,t=new Set,n=!1){const o=[];for(const[i,r]of e){const s=t.has(i);!(r.selected===void 0&&!s)&&r.selected!==s&&(n&&(r.selected=s),o.push(dt(r.id,s)))}return o}function Q(e){const t=new Set;let n=!1;const o=()=>t.size>0;e&&(n=!0,t.add(e));const i=a=>{t.delete(a)};return{on:a=>{e&&n&&t.delete(e),t.add(a);const l=()=>{i(a),e&&n&&t.add(e)};return xo(l),{off:l}},off:i,trigger:a=>Promise.all(Array.from(t).map(l=>l(a))),hasListeners:o,fns:t}}function zr(e,t,n){let o=e;do{if(o&&o.matches(t))return!0;if(o===n)return!1;o=o.parentElement}while(o);return!1}function Oh(e,t,n,o,i){var r,s;const a=[];for(const l of e)(l.selected||l.id===i)&&(!l.parentNode||!ha(l,o))&&(l.draggable||t&&typeof l.draggable>"u")&&a.push(Lt({id:l.id,position:l.position||{x:0,y:0},distance:{x:n.x-((r=l.computedPosition)==null?void 0:r.x)||0,y:n.y-((s=l.computedPosition)==null?void 0:s.y)||0},from:l.computedPosition,extent:l.extent,parentNode:l.parentNode,dimensions:l.dimensions,expandParent:l.expandParent}));return a}function Wo({id:e,dragItems:t,findNode:n}){const o=[];for(const i of t){const r=n(i.id);r&&o.push(r)}return[e?o.find(i=>i.id===e):o[0],o]}function pa(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function Rh(e,t,n){const[o,i,r,s]=typeof e!="string"?pa(e.padding):[0,0,0,0];return n&&typeof n.computedPosition.x<"u"&&typeof n.computedPosition.y<"u"&&typeof n.dimensions.width<"u"&&typeof n.dimensions.height<"u"?[[n.computedPosition.x+s,n.computedPosition.y+o],[n.computedPosition.x+n.dimensions.width-i,n.computedPosition.y+n.dimensions.height-r]]:!1}function Vh(e,t,n,o){let i=e.extent||n;if((i==="parent"||!Array.isArray(i)&&(i==null?void 0:i.range)==="parent")&&!e.expandParent)if(e.parentNode&&o&&e.dimensions.width&&e.dimensions.height){const r=Rh(i,e,o);r&&(i=r)}else t(new Ie(Ce.NODE_EXTENT_INVALID,e.id)),i=n;else if(Array.isArray(i)){const r=(o==null?void 0:o.computedPosition.x)||0,s=(o==null?void 0:o.computedPosition.y)||0;i=[[i[0][0]+r,i[0][1]+s],[i[1][0]+r,i[1][1]+s]]}else if(i!=="parent"&&(i==null?void 0:i.range)&&Array.isArray(i.range)){const[r,s,a,l]=pa(i.padding),c=(o==null?void 0:o.computedPosition.x)||0,u=(o==null?void 0:o.computedPosition.y)||0;i=[[i.range[0][0]+c+l,i.range[0][1]+u+r],[i.range[1][0]+c-s,i.range[1][1]+u-a]]}return i==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:i}function Hh({width:e,height:t},n){return[n[0],[n[1][0]-(e||0),n[1][1]-(t||0)]]}function Bi(e,t,n,o,i){const r=Hh(e.dimensions,Vh(e,n,o,i)),s=ra(t,r);return{position:{x:s.x-((i==null?void 0:i.computedPosition.x)||0),y:s.y-((i==null?void 0:i.computedPosition.y)||0)},computedPosition:s}}function ho(e,t,n=ee.Left){var l,c,u;const o=((l=t==null?void 0:t.x)!=null?l:0)+e.computedPosition.x,i=((c=t==null?void 0:t.y)!=null?c:0)+e.computedPosition.y,{width:r,height:s}=t!=null?t:Yh(e);switch((u=t==null?void 0:t.position)!=null?u:n){case ee.Top:return{x:o+r/2,y:i};case ee.Right:return{x:o+r,y:i+s/2};case ee.Bottom:return{x:o+r/2,y:i+s};case ee.Left:return{x:o,y:i+s/2}}}function Br(e=[],t){return e.length&&(t?e.find(n=>n.id===t):e[0])||null}function Fh({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:o,targetWidth:i,targetHeight:r,width:s,height:a,viewport:l}){const c={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+o,t.y+r)};c.x===c.x2&&(c.x2+=1),c.y===c.y2&&(c.y2+=1);const u=fo({x:(0-l.x)/l.zoom,y:(0-l.y)/l.zoom,width:s/l.zoom,height:a/l.zoom}),d=Math.max(0,Math.min(u.x2,c.x2)-Math.max(u.x,c.x)),g=Math.max(0,Math.min(u.y2,c.y2)-Math.max(u.y,c.y));return Math.ceil(d*g)>0}function Lh(e,t,n=!1){const o=typeof e.zIndex=="number";let i=o?e.zIndex:0;const r=t(e.source),s=t(e.target);return!r||!s?0:(n&&(i=o?e.zIndex:Math.max(r.computedPosition.z||0,s.computedPosition.z||0)),i)}var Ce=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(Ce||{});const Or={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid Node: ${e}`,NODE_NOT_FOUND:e=>`Node not found Node: ${e}`,NODE_MISSING_PARENT:(e,t)=>`Node is missing a parent Node: ${e} @@ -32,4 +32,4 @@ Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},-${e.maskBorderRadius} v${-(L.value.height-2*e.maskBorderRadius)} a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},-${e.maskBorderRadius}z`);bl(E=>{if(w.value){const T=vt(w.value),C=z=>{if(z.sourceEvent.type!=="wheel"||!g.value||!h.value)return;const B=-z.sourceEvent.deltaY*(z.sourceEvent.deltaMode===1?.05:z.sourceEvent.deltaMode?1:.002)*e.zoomStep,U=l.value.zoom*2**B;h.value.scaleTo(g.value,U)},R=z=>{if(z.sourceEvent.type!=="mousemove"||!g.value||!h.value)return;const B=Y.value*Math.max(1,l.value.zoom)*(e.inversePan?-1:1),U={x:l.value.x-z.sourceEvent.movementX*B,y:l.value.y-z.sourceEvent.movementY*B},ue=[[0,0],[u.value.width,u.value.height]],se=tr.translate(U.x,U.y).scale(l.value.zoom),ce=h.value.constrain()(se,ue,c.value);h.value.transform(g.value,ce)},V=my().on("zoom",e.pannable?R:()=>{}).on("zoom.wheel",e.zoomable?C:()=>{});T.call(V),E(()=>{T.on("zoom",null)})}},{flush:"post"});function Z(E){const[T,C]=ft(E);t("click",{event:E,position:{x:T,y:C}})}function ne(E,T){const C={event:E,node:T,connectedEdges:xt([T],a.value)};d.miniMapNodeClick(C),t("nodeClick",C)}function f(E,T){const C={event:E,node:T,connectedEdges:xt([T],a.value)};d.miniMapNodeDoubleClick(C),t("nodeDblclick",C)}function x(E,T){const C={event:E,node:T,connectedEdges:xt([T],a.value)};d.miniMapNodeMouseEnter(C),t("nodeMouseenter",C)}function y(E,T){const C={event:E,node:T,connectedEdges:xt([T],a.value)};d.miniMapNodeMouseMove(C),t("nodeMousemove",C)}function M(E,T){const C={event:E,node:T,connectedEdges:xt([T],a.value)};d.miniMapNodeMouseLeave(C),t("nodeMouseleave",C)}return(E,T)=>(O(),fe(D(Ia),{position:E.position,class:Xe(["vue-flow__minimap",{pannable:E.pannable,zoomable:E.zoomable}])},{default:ae(()=>[(O(),q("svg",{ref_key:"el",ref:w,width:$.value,height:S.value,viewBox:[I.value.x,I.value.y,I.value.width,I.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${D(s)}`,onClick:Z},[E.ariaLabel?(O(),q("title",{key:0,id:`vue-flow__minimap-${D(s)}`},Te(E.ariaLabel),9,Sy)):me("",!0),(O(!0),q(Pe,null,en(D(b),C=>(O(),fe(_y,{id:C.id,key:C.id,position:C.computedPosition,dimensions:C.dimensions,selected:C.selected,dragging:C.dragging,style:Me(C.style),class:Xe(H.value(C)),color:N.value(C),"border-radius":E.nodeBorderRadius,"stroke-color":k.value(C),"stroke-width":E.nodeStrokeWidth,"shape-rendering":D(v),type:C.type,onClick:R=>ne(R,C),onDblclick:R=>f(R,C),onMouseenter:R=>x(R,C),onMousemove:R=>y(R,C),onMouseleave:R=>M(R,C)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),ge("path",{class:"vue-flow__minimap-mask",d:_.value,fill:E.maskColor,stroke:E.maskStrokeColor,"stroke-width":E.maskStrokeWidth,"fill-rule":"evenodd"},null,8,$y)],8,by))]),_:1},8,["position","class"]))}}),Ny={name:"ControlButton",compatConfig:{MODE:3}},ky=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Cy={class:"vue-flow__controls-button"};function Iy(e,t,n,o,i,r){return O(),q("button",Cy,[Ne(e.$slots,"default")])}const Ft=ky(Ny,[["render",Iy]]),My={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Ty=ge("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1),Py=[Ty];function Dy(e,t){return O(),q("svg",My,Py)}const Ay={render:Dy},zy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},By=ge("path",{d:"M0 0h32v4.2H0z"},null,-1),Oy=[By];function Ry(e,t){return O(),q("svg",zy,Oy)}const Vy={render:Ry},Hy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},Fy=ge("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1),Ly=[Fy];function Yy(e,t){return O(),q("svg",Hy,Ly)}const Xy={render:Yy},Gy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},Zy=ge("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1),Uy=[Zy];function Wy(e,t){return O(),q("svg",Gy,Uy)}const qy={render:Wy},Ky={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},Qy=ge("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1),Jy=[Qy];function jy(e,t){return O(),q("svg",Ky,Jy)}const e1={render:jy},t1={name:"Controls",compatConfig:{MODE:3}},n1=he({...t1,props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>ta.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:t}){const{nodesDraggable:n,nodesConnectable:o,elementsSelectable:i,setInteractive:r,zoomIn:s,zoomOut:a,fitView:l,viewport:c,minZoom:u,maxZoom:d}=ye(),g=be(()=>n.value||o.value||i.value),h=be(()=>c.value.zoom<=u.value),b=be(()=>c.value.zoom>=d.value);function w(){s(),t("zoomIn")}function $(){a(),t("zoomOut")}function S(){l(e.fitViewParams),t("fitView")}function v(){r(!g.value),t("interactionChange",!g.value)}return(N,k)=>(O(),fe(D(Ia),{class:"vue-flow__controls",position:N.position},{default:ae(()=>[Ne(N.$slots,"top"),N.showZoom?(O(),q(Pe,{key:0},[Ne(N.$slots,"control-zoom-in",{},()=>[J(Ft,{class:"vue-flow__controls-zoomin",disabled:b.value,onClick:w},{default:ae(()=>[Ne(N.$slots,"icon-zoom-in",{},()=>[(O(),fe(He(D(Ay))))])]),_:3},8,["disabled"])]),Ne(N.$slots,"control-zoom-out",{},()=>[J(Ft,{class:"vue-flow__controls-zoomout",disabled:h.value,onClick:$},{default:ae(()=>[Ne(N.$slots,"icon-zoom-out",{},()=>[(O(),fe(He(D(Vy))))])]),_:3},8,["disabled"])])],64)):me("",!0),N.showFitView?Ne(N.$slots,"control-fit-view",{key:1},()=>[J(Ft,{class:"vue-flow__controls-fitview",onClick:S},{default:ae(()=>[Ne(N.$slots,"icon-fit-view",{},()=>[(O(),fe(He(D(Xy))))])]),_:3})]):me("",!0),N.showInteractive?Ne(N.$slots,"control-interactive",{key:2},()=>[N.showInteractive?(O(),fe(Ft,{key:0,class:"vue-flow__controls-interactive",onClick:v},{default:ae(()=>[g.value?Ne(N.$slots,"icon-unlock",{key:0},()=>[(O(),fe(He(D(e1))))]):me("",!0),g.value?me("",!0):Ne(N.$slots,"icon-lock",{key:1},()=>[(O(),fe(He(D(qy))))])]),_:3})):me("",!0)]):me("",!0),Ne(N.$slots,"default")]),_:3},8,["position"]))}}),o1=he({__name:"ControlButtons",props:{workflow:{}},setup(e){return(t,n)=>(O(),fe(D(n1),{position:"top-left","show-interactive":!1},{default:ae(()=>[J(D(Ft),{title:"Undo",disabled:!t.workflow.history.canUndo(),onClick:n[0]||(n[0]=o=>t.workflow.history.undo())},{default:ae(()=>[J(D(Ol))]),_:1},8,["disabled"]),J(D(Ft),{title:"Redo",disabled:!t.workflow.history.canRedo(),onClick:n[1]||(n[1]=o=>t.workflow.history.redo())},{default:ae(()=>[J(D(Bl))]),_:1},8,["disabled"])]),_:1}))}});class i1{constructor(t,n){xe(this,"dx");xe(this,"dy");this.dx=n.x-t.x,this.dy=n.y-t.y}get x(){return this.dx}get y(){return this.dy}get length(){return Math.sqrt(this.dx*this.dx+this.dy*this.dy)}get m(){return this.dy/this.dx}}function r1(e,t,n=0){const{x:o,y:i}=t.center,{width:r,height:s}=t,a=new i1(e,t.center),l=n*(a.x/a.length),c=n*(a.y/a.length),u=s/r;let d,g;if(Math.abs(a.m)>Math.abs(u)){const h=s/2*(1/a.m);d=o-(a.y>0?h:-h),g=i+(a.y>0?-s/2:s/2)}else{const h=r/2*a.m;d=o+(a.x>0?-r/2:r/2),g=i-(a.x>0?h:-h)}return{x:d+l,y:g+c}}const So=(e,t=0,n=0)=>{const o=Math.atan2(e.ty-e.sy,e.tx-e.sx),i=t*Math.sin(o),r=t*Math.cos(o),s=n*Math.cos(o),a=n*Math.sin(o);return{sourceX:e.sx-i+s,sourceY:e.sy+r+a,targetX:e.tx-i-s,targetY:e.ty+r-a}};function Cn(e,t,n=0){const o={x:e.computedPosition.x+e.dimensions.width/2,y:e.computedPosition.y+e.dimensions.height/2},r={center:{x:t.computedPosition.x+t.dimensions.width/2,y:t.computedPosition.y+t.dimensions.height/2},width:t.dimensions.width,height:t.dimensions.height};return r1(o,r,n)}function Ho(e,t){const n=Cn(e,t,-10),o=Cn(t,e,-10);return{sx:o.x,sy:o.y,tx:n.x,ty:n.y}}const s1=he({__name:"ConditionEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},controller:{}},setup(e){const t=e,n=re(t.data.props.conditionValue||""),o=re(!1),i=()=>{if(!!o.value){try{n.value=mn(n.value)}catch(u){yt.error({message:"Invalid variable name",description:u.message});return}n.value!==t.data.props.conditionValue&&t.controller.updateTransitionProps(t.data.id,{conditionValue:n.value}),o.value=!1}},{onEdgeClick:r,onPaneClick:s}=ye();r(u=>{u.edge.id===t.id&&!o.value&&(o.value=!0)}),s(()=>i());const a=W(()=>Ho(t.sourceNode,t.targetNode)),l=W(()=>Qt(So(a.value))),c=u=>{u.key==="Enter"&&i()};return Be(()=>window.addEventListener("keydown",c)),In(()=>window.removeEventListener("keydown",c)),(u,d)=>(O(),q(Pe,null,[J(D(bt),{path:l.value[0],"marker-end":u.markerEnd,style:{"stroke-dasharray":"5, 5"}},null,8,["path","marker-end"]),J(D(Fi),null,{default:ae(()=>[o.value?(O(),q("div",{key:1,style:Me({transform:`translate(-50%, -50%) translate(${l.value[1]}px,${l.value[2]}px)`}),class:"nodrag nopan edge-input-container"},[J(D(Ut),{value:n.value,"onUpdate:value":d[1]||(d[1]=g=>n.value=g),"addon-before":"="},null,8,["value"])],4)):(O(),q("div",{key:0,style:Me({transform:`translate(-50%, -50%) translate(${l.value[1]}px,${l.value[2]}px)`}),class:"nodrag nopan edge-label"},[J(D(Rt),{code:"",style:{opacity:"1"},onClick:d[0]||(d[0]=g=>o.value=!0)},{default:ae(()=>[Oe(" if "+Te(u.sourceNode.data.props.variableName)+" = '"+Te(n.value)+"' ",1)]),_:1})],4))]),_:1})],64))}});const a1=lt(s1,[["__scopeId","data-v-7267cdad"]]),l1=he({__name:"FinishEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},controller:{}},setup(e){const t=e,n=re(!1),o=re(`${t.sourceNode.data.type}:finished`),i=()=>{n.value&&o.value!==t.data.type&&t.controller.updateTransitionType(t.id,o.value),n.value=!1},{onEdgeClick:r,onPaneClick:s}=ye();r(d=>{d.edge.id===t.id&&!n.value&&(n.value=!0)}),s(()=>i());const a=W(()=>Ho(t.sourceNode,t.targetNode)),l=W(()=>Qt(So(a.value))),c=W(()=>t.data.type.split(":")[1]==="finished"?"On Success":"On Failure"),u=d=>{d.key==="Enter"&&i()};return Be(()=>window.addEventListener("keydown",u)),In(()=>window.removeEventListener("keydown",u)),(d,g)=>(O(),q(Pe,null,[J(D(bt),{path:l.value[0],"marker-end":d.markerEnd},null,8,["path","marker-end"]),J(D(Fi),null,{default:ae(()=>[n.value?(O(),q("div",{key:1,style:Me({transform:`translate(-50%, -50%) translate(${l.value[1]}px,${l.value[2]}px)`}),class:"nodrag nopan edge-select-container"},[J(D(Sl),{value:o.value,"onUpdate:value":g[0]||(g[0]=h=>o.value=h)},{default:ae(()=>[J(D(ir),{value:`${t.sourceNode.data.type}:finished`},{default:ae(()=>[J(D(Pt),{gap:"small",align:"center"},{default:ae(()=>[J(D($l),{size:12}),Oe("On Success ")]),_:1})]),_:1},8,["value"]),J(D(ir),{value:`${t.sourceNode.data.type}:failed`},{default:ae(()=>[J(D(Pt),{gap:"small",align:"center"},{default:ae(()=>[J(D(xl),{size:12}),Oe("On Failure ")]),_:1})]),_:1},8,["value"])]),_:1},8,["value"])],4)):(O(),q("div",{key:0,style:Me({transform:`translate(-50%, -50%) translate(${l.value[1]}px,${l.value[2]}px)`}),class:"nodrag nopan edge-label"},[J(D(Rt),{style:{color:"#606060"}},{default:ae(()=>[Oe(Te(c.value),1)]),_:1})],4))]),_:1})],64))}});const u1=lt(l1,[["__scopeId","data-v-83bdbf52"]]),c1=he({__name:"IteratorEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(e){const t=e,n=W(()=>Ho(t.sourceNode,t.targetNode)),o=W(()=>Qt(So(n.value,2.5))),i=W(()=>Qt(So(n.value,-2.5,8)));return(r,s)=>(O(),q(Pe,null,[J(D(bt),{path:o.value[0],"marker-end":r.markerEnd},null,8,["path","marker-end"]),J(D(bt),{path:i.value[0],"marker-end":r.markerEnd,style:{opacity:"0.5"}},null,8,["path","marker-end"]),J(D(Fi),null,{default:ae(()=>[ge("div",{style:Me({transform:`translate(-50%, -50%) translate(${o.value[1]}px,${o.value[2]}px)`}),class:"nodrag nopan edge-label"},[J(D(Rt),{code:""},{default:ae(()=>[Oe(" for "+Te(r.sourceNode.data.props.itemName)+" in "+Te(r.sourceNode.data.props.variableName),1)]),_:1})],4)]),_:1})],64))}});const d1=lt(c1,[["__scopeId","data-v-8c8a210f"]]),f1={key:0},h1=ge("defs",null,[ge("marker",{id:"arrowhead",markerWidth:"8",markerHeight:"8",refX:"0",refY:"4",orient:"auto",markerUnits:"strokeWidth"},[ge("path",{d:"M0,0 L8,4 L0,8",fill:"none",stroke:"#222","stroke-width":"1"})])],-1),g1=["d"],p1=he({__name:"LineFloating",props:{targetX:{},targetY:{},sourcePosition:{},targetPosition:{},sourceNode:{}},setup(e){const t=e,n=re(!0),{onNodeMouseEnter:o,onNodeMouseLeave:i}=ye();o(l=>{l.node.id===t.sourceNode.id&&(n.value=!1)}),i(l=>{l.node.id===t.sourceNode.id&&(n.value=!0)});const r=W(()=>({id:"connection-target",computedPosition:{x:t.targetX,y:t.targetY},dimensions:{width:1,height:1}})),s=W(()=>Ho(t.sourceNode,r.value)),a=W(()=>Qt({sourceX:s.value.sx,sourceY:s.value.sy,targetX:s.value.tx,targetY:s.value.ty}));return(l,c)=>n.value?(O(),q("g",f1,[h1,ge("path",{fill:"none",stroke:"#222","stroke-width":1,class:"animated",d:a.value[0],"marker-end":"url(#arrowhead)"},null,8,g1)])):me("",!0)}}),v1={name:"NodeToolbar",compatConfig:{MODE:3},inheritAttrs:!1},m1=he({...v1,props:{nodeId:null,isVisible:{type:Boolean},position:{default:ee.Top},offset:{default:10},align:{default:"center"}},setup(e){const t=e,n=De(Vi,null),{viewportRef:o,viewport:i,getSelectedNodes:r,findNode:s}=ye();function a(h,b,w,$,S){let v=.5;S==="start"?v=0:S==="end"&&(v=1);let N=[(h.x+h.width*v)*b.zoom+b.x,h.y*b.zoom+b.y-$],k=[-100*v,-100];switch(w){case ee.Right:N=[(h.x+h.width)*b.zoom+b.x+$,(h.y+h.height*v)*b.zoom+b.y],k=[0,-100*v];break;case ee.Bottom:N[1]=(h.y+h.height)*b.zoom+b.y+$,k[1]=0;break;case ee.Left:N=[h.x*b.zoom+b.x-$,(h.y+h.height*v)*b.zoom+b.y],k=[-100,-100*v];break}return`translate(${N[0]}px, ${N[1]}px) translate(${k[0]}%, ${k[1]}%)`}const l=W(()=>(Array.isArray(t.nodeId)?t.nodeId:[t.nodeId||n||""]).reduce((h,b)=>{const w=s(b);return w&&h.push(w),h},[])),c=W(()=>typeof t.isVisible=="boolean"?t.isVisible:l.value.length===1&&l.value[0].selected&&r.value.length===1),u=W(()=>Mo(l.value)),d=W(()=>Math.max(...l.value.map(h=>(h.computedPosition.z||1)+1))),g=W(()=>({position:"absolute",transform:a(u.value,i.value,t.position,t.offset,t.align),zIndex:d.value}));return(h,b)=>(O(),fe(_s,{to:D(o),disabled:!D(o)},[D(c)&&D(l).length?(O(),q("div",mt({key:0},h.$attrs,{style:D(g),class:"vue-flow__node-toolbar"}),[Ne(h.$slots,"default")],16)):me("",!0)],8,["to","disabled"]))}}),nr=he({__name:"NodeMenu",props:{isConnecting:{type:Boolean},isEditing:{type:Boolean},menuOptions:{}},setup(e){return(t,n)=>(O(),fe(D(m1),{"is-visible":t.isConnecting||t.isEditing?!1:void 0,position:D(ee).Right},{default:ae(()=>[J(D(Pt),{vertical:"",gap:"small",style:Me({marginBottom:`-${16*t.menuOptions.length}%`})},{default:ae(()=>[(O(!0),q(Pe,null,en(t.menuOptions,o=>(O(),fe(D(El),{key:o.label,title:o.tooltip,placement:"right"},{default:ae(()=>[J(D(Nl),{class:Xe([{"warning-button":o.warning}]),disabled:o.disabled,style:Me({backgroundColor:o.disabled?"#f5f5f5":void 0}),onClick:i=>o.click(i)},{default:ae(()=>[J(D(Pt),{gap:"small",style:{width:"100%"},justify:"space-between",align:"center"},{default:ae(()=>[Oe(Te(o.label)+" ",1),o.key?(O(),fe(D(Rt),{key:0,keyboard:"",disabled:o.disabled},{default:ae(()=>[Oe(Te(o.key),1)]),_:2},1032,["disabled"])):me("",!0)]),_:2},1024)]),_:2},1032,["class","disabled","style","onClick"])]),_:2},1032,["title"]))),128))]),_:1},8,["style"])]),_:1},8,["is-visible","position"]))}});const y1=he({__name:"ConditionNode",props:{stage:{},node:{},controller:{}},setup(e){const t=e,{useToken:n}=$o,{token:o}=n(),i=o.value.colorText,r=[{label:"Add transition",key:"T",click:Y=>X(Y)},{label:"Edit variable",key:"R",click:()=>N.value=!0},{label:"Delete",key:"Del",click:()=>d(t.stage)}],{startConnection:s,updateConnection:a,onNodeClick:l,addEdges:c,endConnection:u,removeNodes:d,onPaneClick:g,getSelectedNodes:h,flowToScreenCoordinate:b,onNodeMouseEnter:w,getNodes:$,onNodeMouseLeave:S}=ye(),v=re(!1),N=re(!1),k=re(!1),H=re(t.stage.props.variableName||""),X=(Y,I=!0)=>{s({nodeId:t.stage.id,type:"source",handleId:t.stage.id},{x:I?Y.pageX-180:Y.pageX-90,y:I?Y.pageY-50:Y.pageY-20}),document.addEventListener("mousemove",L),v.value=!0},L=Y=>{v.value&&!k.value&&a({x:Y.pageX-180,y:Y.pageY-52})};w(Y=>{if(v.value&&Y.node.id!==t.stage.id){k.value=!0;const I=$.value.find(Z=>Z.id===t.stage.id);if(!I)return;const _=Cn(I,Y.node,-10);a(b({x:_.x-180,y:_.y-52}))}}),S(()=>{k.value=!1}),l(Y=>{if(v.value&&Y.node.id!==t.stage.id){const I={sourceStageId:t.stage.id,targetStageId:Y.node.id,type:"conditions:patternMatched",id:Bo()};try{t.controller.connect([I]),document.removeEventListener("mousemove",L),c({source:t.stage.id,target:Y.node.id,type:"conditions",markerEnd:{type:zt.Arrow,width:24,height:24},data:{...I,props:{conditionValue:null}}}),u(),v.value=!1}catch(_){console.error(_)}}});const K=()=>{try{H.value=mn(H.value)}catch(Y){yt.error({message:"Invalid variable name",description:Y.message});return}N.value&&t.stage.props.variableName!==H.value&&t.controller.updateStageProps(t.stage.id,{variableName:H.value,path:null,filename:null,itemName:null}),N.value=!1};return g(()=>{K(),v.value=!1,u()}),Be(()=>{const Y=I=>{if(!!h.value.map(_=>_.id).includes(t.stage.id)&&(I.key==="Enter"&&K(),!N.value)){if(I.key==="t"||I.key==="T"){const _=b(t.stage.position);X({pageX:_.x,pageY:_.y},!1)}(I.key==="r"||I.key==="R")&&(N.value=!0)}};window.addEventListener("keydown",Y)}),(Y,I)=>(O(),q(Pe,null,[J(nr,{"is-connecting":v.value,"is-editing":N.value,"menu-options":r},null,8,["is-connecting","is-editing"]),(O(),fe(He(D(ki)(Y.stage.type)),{size:18,style:{position:"absolute","z-index":"1"},color:D(i)},null,8,["color"])),N.value?(O(),fe(D(Ut),{key:1,value:H.value,"onUpdate:value":I[0]||(I[0]=_=>H.value=_),size:"small",class:"nodrag nopan input"},null,8,["value"])):(O(),fe(D(Rt),{key:0,class:"label"},{default:ae(()=>[Oe(Te(Y.stage.title),1)]),_:1}))],64))}});const w1=lt(y1,[["__scopeId","data-v-8519b952"]]),_1=he({__name:"IteratorNode",props:{stage:{},node:{},controller:{}},setup(e){const t=e,{useToken:n}=$o,{token:o}=n(),i=o.value.colorText,r=[{label:"Add transition",key:"T",click:I=>L(I)},{label:"Edit variables",key:"R",click:()=>N.value=!0},{label:"Delete",key:"Del",click:()=>d(t.stage)}],{startConnection:s,updateConnection:a,onNodeClick:l,addEdges:c,endConnection:u,removeNodes:d,onPaneClick:g,getSelectedNodes:h,flowToScreenCoordinate:b,getNodes:w,onNodeMouseEnter:$,onNodeMouseLeave:S}=ye(),v=re(!1),N=re(!1),k=re(!1),H=re(t.stage.props.variableName||""),X=re(t.stage.props.itemName||""),L=(I,_=!0)=>{s({nodeId:t.stage.id,type:"source",handleId:t.stage.id},{x:_?I.pageX-180:I.pageX-90,y:_?I.pageY-50:I.pageY-20}),document.addEventListener("mousemove",K),v.value=!0},K=I=>{v.value&&!k.value&&a({x:I.pageX-180,y:I.pageY-52})};$(I=>{if(v.value&&I.node.id!==t.stage.id){k.value=!0;const _=w.value.find(ne=>ne.id===t.stage.id);if(!_)return;const Z=Cn(_,I.node,-10);a(b({x:Z.x-180,y:Z.y-52}))}}),S(()=>{k.value=!1}),l(I=>{if(v.value&&I.node.id!==t.stage.id){const _={sourceStageId:t.stage.id,targetStageId:I.node.id,type:"iterators:each",id:Bo()};try{t.controller.connect([_]),document.removeEventListener("mousemove",K),c({source:t.stage.id,target:I.node.id,type:"iterators",markerEnd:{type:zt.Arrow,width:24,height:24},data:_}),u(),v.value=!1}catch(Z){console.error(Z)}}});const Y=()=>{try{H.value=mn(H.value),X.value=mn(X.value)}catch(I){yt.error({message:"Invalid variable name",description:I.message});return}N.value&&(t.stage.props.variableName!==H.value||t.stage.props.itemName!==X.value)&&t.controller.updateStageProps(t.stage.id,{variableName:H.value,path:null,filename:null,itemName:X.value}),N.value=!1};return g(()=>{Y(),v.value=!1,u()}),Be(()=>{const I=_=>{if(!!h.value.map(Z=>Z.id).includes(t.stage.id)&&(_.key==="Enter"&&Y(),!N.value)){if(_.key==="t"||_.key==="T"){const Z=b(t.stage.position);L({pageX:Z.x,pageY:Z.y},!1)}(_.key==="r"||_.key==="R")&&(N.value=!0)}};window.addEventListener("keydown",I)}),(I,_)=>(O(),q(Pe,null,[J(nr,{"is-connecting":v.value,"is-editing":N.value,"menu-options":r},null,8,["is-connecting","is-editing"]),(O(),fe(He(D(ki)(I.stage.type)),{size:18,color:D(i),style:{position:"absolute"}},null,8,["color"])),N.value?(O(),fe(D(Pt),{key:1,vertical:"",class:"nodrag nopan input",gap:"4",align:"center"},{default:ae(()=>[J(D(Ut),{value:X.value,"onUpdate:value":_[0]||(_[0]=Z=>X.value=Z),size:"small","addon-before":"for"},null,8,["value"]),J(D(Ut),{value:H.value,"onUpdate:value":_[1]||(_[1]=Z=>H.value=Z),size:"small","addon-before":"in"},null,8,["value"])]),_:1})):(O(),fe(D(Rt),{key:0,class:"label"},{default:ae(()=>[Oe(Te(I.stage.title),1)]),_:1}))],64))}});const b1=lt(_1,[["__scopeId","data-v-28257846"]]),S1=["finished","failed","waiting","running"],ew=({kanbanRepository:e})=>{const t=re([]),n=re([]),o=async()=>{try{return await e.countByStatus()}catch(l){return kl(l),console.error(l),t.value}},i=async()=>{n.value=await e.getStages(),r()},{startPolling:r,endPolling:s}=Fl({task:async()=>{t.value=await o()}});return{stageRunsCount:t,setup:i,tearDown:()=>s()}},$1=["title"],x1=["title"],E1=he({__name:"Badges",props:{counter:{}},setup(e){return(t,n)=>(O(),fe(D(Pt),{gap:"small",style:{"margin-top":"4px","margin-bottom":"2px"}},{default:ae(()=>[t.counter.finished>0?(O(),fe(D(ln),{key:0,count:t.counter.finished,"number-style":{backgroundColor:"#33b891"}},null,8,["count"])):me("",!0),t.counter.failed>0?(O(),fe(D(ln),{key:1,count:t.counter.failed,"number-style":{backgroundColor:"#fa675c"}},null,8,["count"])):me("",!0),t.counter.waiting>0?(O(),fe(D(ln),{key:2},{count:ae(()=>[ge("div",{class:"base-badge",title:t.counter.waiting.toFixed(0)},[Oe(Te(t.counter.waiting>99?"99+":t.counter.waiting)+" ",1),J(D(Pu),{size:12})],8,$1)]),_:1})):me("",!0),t.counter.running>0?(O(),fe(D(ln),{key:3},{count:ae(()=>[ge("div",{class:"base-badge",title:t.counter.running.toFixed(0),style:{"background-color":"#2db7f5",color:"#fff","box-shadow":"0 0 0 1px #ffffff"}},[Oe(Te(t.counter.running>99?"99+":t.counter.running)+" ",1),J(D(Au),{spin:!0,style:{"font-size":"10px"}})],8,x1)]),_:1})):me("",!0)]),_:1}))}});const N1=lt(E1,[["__scopeId","data-v-bfef44db"]]),k1=he({__name:"CreateStageFile",props:{filename:{},creatingFileStatus:{},fileExists:{type:Boolean}},emits:["create-file","cancel","update-filename"],setup(e,{emit:t}){const n=e,o=W(()=>{const i=$s(n.filename);return i.valid?n.fileExists?{valid:!0,help:"This file already exists, stage will point to it."}:{valid:!0,help:"File doesn't exist yet. It will be created."}:i});return(i,r)=>(O(),fe(D(Ml),{open:i.creatingFileStatus==="prompting"||i.creatingFileStatus==="creating",closable:!1,"confirm-loading":i.creatingFileStatus==="creating",onOk:r[1]||(r[1]=s=>t("create-file",i.filename)),onCancel:r[2]||(r[2]=s=>t("cancel"))},{default:ae(()=>[J(D(Il),{layout:"vertical",disabled:i.creatingFileStatus=="creating"},{default:ae(()=>[J(D(Cl),{label:"You're creating a new file. What should it be called?","validate-status":o.value.valid?"success":"error",help:o.value.valid?o.value.help:o.value.reason},{default:ae(()=>[J(D(Ut),{value:i.filename,onChange:r[0]||(r[0]=s=>t("update-filename",s.target.value||""))},null,8,["value"])]),_:1},8,["validate-status","help"])]),_:1},8,["disabled"])]),_:1},8,["open","confirm-loading"]))}}),C1=he({__name:"StageNode",props:{stage:{},node:{},controller:{},stageRunCount:{}},setup(e){var R;const t=e,{useToken:n}=$o,{token:o}=n(),i=o.value.colorText,r=[{label:"Add transition",key:"T",click:V=>M(V)},{label:"Rename",key:"R",click:()=>ne.value=!0},{label:"Go to editor",key:"Enter",click:()=>y()},{label:"Delete",key:"Del",click:()=>k(t.stage)}],s=W(()=>{let V=[...r];return l.value||V.unshift({label:"Create missing file",warning:!0,click:()=>b()}),t.controller.hasChanges()&&(V=V.map(z=>z.label==="Go to editor"?{...z,disabled:!0,tooltip:"Save it to allow editing"}:z)),V}),a=W(()=>{let V={};return S1.map(z=>{var U,ue,se;const B=(se=(ue=(U=t.stageRunCount)==null?void 0:U.find(ce=>ce.status===z))==null?void 0:ue.count)!=null?se:0;V[z]=B}),V}),l=re(!0),c=St.exports.debounce(async V=>{if(!V){l.value=!0;return}Fo.checkFile(V).then(z=>{l.value=z.exists})},500),u=()=>{c(t.stage.props.filename)},d=re((R=t.stage.props.filename)!=null?R:""),g=re("idle"),h=async()=>{g.value="creating",await Fo.initFile(d.value,t.stage.type),l.value=!0;const V=await Fo.checkFile(d.value);l.value=V.exists,g.value="idle",t.controller.updateStageProps(t.stage.id,{variableName:null,path:t.stage.props.path,filename:d.value,itemName:null})},b=()=>{g.value="prompting"},{startConnection:w,updateConnection:$,onNodeClick:S,addEdges:v,endConnection:N,removeNodes:k,onPaneClick:H,getSelectedNodes:X,flowToScreenCoordinate:L,onNodeMouseEnter:K,onNodeMouseLeave:Y,getNodes:I}=ye(),_=Tl(),Z=re(!1),ne=re(!1),f=re(t.stage.title),x=re(!1),y=()=>{const V=_.resolve({path:`/_editor/${t.stage.type.slice(0,-1)}/${t.stage.id}`});window.open(V.href,"_blank")},M=(V,z=!0)=>{w({nodeId:t.stage.id,type:"source",handleId:t.stage.id},{x:z?V.pageX-180:V.pageX-90,y:z?V.pageY-50:V.pageY-20}),document.addEventListener("mousemove",E),Z.value=!0},E=V=>{Z.value&&!x.value&&$({x:V.pageX-180,y:V.pageY-52})};S(V=>{if(Z.value&&V.node.id!==t.stage.id){const z={sourceStageId:t.stage.id,targetStageId:V.node.id,type:`${t.stage.type}:finished`,id:Bo()};try{t.controller.connect([z]),document.removeEventListener("mousemove",E),v({source:t.stage.id,target:V.node.id,type:"finished",markerEnd:{type:zt.Arrow,width:24,height:24},data:z}),N(),Z.value=!1}catch(B){console.error(B)}}}),K(V=>{if(Z.value&&V.node.id!==t.stage.id){x.value=!0;const z=I.value.find(U=>U.id===t.stage.id);if(!z)return;const B=Cn(z,V.node,-10);$(L({x:B.x-180,y:B.y-52}))}}),Y(()=>{x.value=!1});const T=()=>{if(!l.value){const V=xs(f.value+".py"),z=Ss(f.value);d.value=V,t.controller.updateStageProps(t.stage.id,{filename:V,variableName:null,path:z,itemName:null})}};H(()=>{ne.value=!1,t.stage.title!==f.value&&(t.controller.updateStageTitle(t.stage.id,f.value),T()),Z.value=!1,N()});let C;return Be(()=>{C=setInterval(u,1e3);const V=z=>{if(!!X.value.map(B=>B.id).includes(t.stage.id)){if(z.key==="Enter")if(ne.value)ne.value=!1,t.controller.updateStageTitle(t.stage.id,f.value),T();else{if(t.controller.hasChanges())return;y()}if(!ne.value){if(z.key==="t"||z.key==="T"){const B=L(t.stage.position);M({pageX:B.x,pageY:B.y},!1)}(z.key==="r"||z.key==="R")&&(ne.value=!0)}}};window.addEventListener("keydown",V)}),In(()=>clearInterval(C)),(V,z)=>(O(),q(Pe,null,[J(nr,{"is-connecting":Z.value,"is-editing":ne.value,"menu-options":s.value},null,8,["is-connecting","is-editing","menu-options"]),ge("div",{class:"stage",onDblclick:z[1]||(z[1]=B=>ne.value=!0)},[J(D(Pt),{class:"point",gap:"small",align:"center",style:{padding:"4px 0"}},{default:ae(()=>[(O(),fe(He(D(ki)(V.stage.type)),{size:18,color:D(i)},null,8,["color"])),ne.value?(O(),fe(D(Ut),{key:1,value:f.value,"onUpdate:value":z[0]||(z[0]=B=>f.value=B),class:"input nodrag nopan"},null,8,["value"])):(O(),fe(D(Rt),{key:0,class:"title"},{default:ae(()=>[Oe(Te(V.stage.title),1)]),_:1}))]),_:1})],32),l.value?me("",!0):(O(),fe(D(ln),{key:0,count:"!",color:"gold",style:{position:"absolute",top:"-4px",right:"-4px","z-index":"1"}})),J(N1,{counter:a.value},null,8,["counter"]),g.value==="prompting"||g.value==="creating"?(O(),fe(k1,{key:1,filename:d.value,"file-exists":l.value,"creating-file-status":g.value,onCreateFile:h,onCancel:z[2]||(z[2]=B=>g.value="idle"),onUpdateFilename:z[3]||(z[3]=B=>d.value=B)},null,8,["filename","file-exists","creating-file-status"])):me("",!0)],64))}});const Wn=lt(C1,[["__scopeId","data-v-04596153"]]),ll=e=>(Pl("data-v-330cb041"),e=e(),Dl(),e),I1={class:"empty-hint"},M1={key:0,class:"drag-hint"},T1=ll(()=>ge("div",{class:"title"},"Start here",-1)),P1={key:1,class:"drop-hint"},D1=ll(()=>ge("div",{class:"title"},"Drop here",-1)),A1={key:2,class:"stages-hint"},z1={class:"header"},B1={class:"title"},O1={class:"description"},R1=he({__name:"EmptyHint",props:{showDragHint:{type:Boolean}},setup(e){return(t,n)=>(O(),q("div",I1,[t.showDragHint?(O(),q("div",M1,[T1,J(D(rr),{size:32,class:"arrow"})])):me("",!0),t.showDragHint?me("",!0):(O(),q("div",P1,[D1,J(D(rr),{size:32,class:"arrow"})])),t.showDragHint?(O(),q("div",A1,[(O(!0),q(Pe,null,en(D(vn).stages,o=>(O(),q("div",{key:o.key,class:"stage-hint"},[ge("div",z1,[(O(),fe(He(o.icon))),ge("span",B1,Te(o.title),1)]),ge("div",O1,Te(o.description),1)]))),128))])):me("",!0)]))}});const V1=lt(R1,[["__scopeId","data-v-330cb041"]]);function H1(){let e;const t={draggedType:re(null),isDragOver:re(!1),isDragging:re(!1)},{draggedType:n,isDragOver:o,isDragging:i}=t,r=h=>{e=h},{screenToFlowCoordinate:s}=ye();Ee(i,h=>{document.body.style.userSelect=h?"none":""});function a(h,b){h?(h.setData("application/vueflow",b),h.effectAllowed="move",n.value=b,i.value=!0,document.addEventListener("drop",u)):(n.value=b,i.value=!0,document.addEventListener("click",g))}function l(h){h.preventDefault(),n.value&&(o.value=!0,h.dataTransfer&&(h.dataTransfer.dropEffect="move"))}function c(){o.value=!1}function u(){i.value=!1,o.value=!1,n.value=null,document.removeEventListener("drop",u)}function d(h){if(!n.value)throw new Error("No dragged type");return["conditions","iterators"].includes(n.value)?s({x:h.clientX-25,y:h.clientY-25}):s({x:h.clientX-70,y:h.clientY-25})}function g(h){if(!e)return;if(!n.value)throw new Error("No dragged type");const b=d(h);e.addStages([{type:n.value,position:b}]),u()}return{init:r,draggedType:n,isDragOver:o,isDragging:i,onDragStart:a,onDragLeave:c,onDragOver:l,onDrop:g}}const F1=he({__name:"Workflow",props:{workflow:{},editable:{type:Boolean},showDragHint:{type:Boolean},stageRunsCount:{}},setup(e){Al(a=>({"381a07d8":D(r),dc912136:D(i)}));const t=H1(),{useToken:n}=$o,{token:o}=n(),i=o.value.colorPrimaryBorder,r=o.value.colorBgElevated,{onInit:s}=ye();return s(a=>{a.fitView()}),(a,l)=>a.workflow?(O(),fe(D(Mp),{key:0,nodes:a.workflow.vueFlowNodes.value,edges:a.workflow.vueFlowEdges.value,"max-zoom":1.25,class:"vue-flow-root","select-nodes-on-drag":!1,"zoom-on-double-click":!1,multi:"","multi-selection-key-code":"Shift","nodes-draggable":a.editable,"pan-on-scroll":"","elements-selectable":a.editable,"snap-to-grid":"",onDragover:D(t).onDragOver,onDragleave:D(t).onDragLeave},{"connection-line":ae(c=>[J(p1,bs(zl(c)),null,16)]),"edge-finished":ae(c=>[J(u1,mt(c,{controller:a.workflow}),null,16,["controller"])]),"edge-conditions":ae(c=>[J(a1,mt(c,{controller:a.workflow}),null,16,["controller"])]),"edge-iterators":ae(c=>[J(d1,mt(c,{controller:a.workflow}),null,16,["controller"])]),"node-forms":ae(c=>{var u;return[J(Wn,{stage:c.data,node:c,controller:a.workflow,"stage-run-count":(u=a.stageRunsCount)==null?void 0:u.filter(d=>d.stage===c.id)},null,8,["stage","node","controller","stage-run-count"])]}),"node-hooks":ae(c=>{var u;return[J(Wn,{stage:c.data,node:c,controller:a.workflow,"stage-run-count":(u=a.stageRunsCount)==null?void 0:u.filter(d=>d.stage===c.id)},null,8,["stage","node","controller","stage-run-count"])]}),"node-scripts":ae(c=>{var u;return[J(Wn,{stage:c.data,node:c,controller:a.workflow,"stage-run-count":(u=a.stageRunsCount)==null?void 0:u.filter(d=>d.stage===c.id)},null,8,["stage","node","controller","stage-run-count"])]}),"node-jobs":ae(c=>{var u;return[J(Wn,{stage:c.data,node:c,controller:a.workflow,"stage-run-count":(u=a.stageRunsCount)==null?void 0:u.filter(d=>d.stage===c.id)},null,8,["stage","node","controller","stage-run-count"])]}),"node-conditions":ae(c=>{var u;return[J(w1,{stage:c.data,node:c,controller:a.workflow,"stage-run-count":(u=a.stageRunsCount)==null?void 0:u.filter(d=>d.stage===c.id)},null,8,["stage","node","controller","stage-run-count"])]}),"node-iterators":ae(c=>{var u;return[J(b1,{stage:c.data,node:c,controller:a.workflow,"stage-run-count":(u=a.stageRunsCount)==null?void 0:u.filter(d=>d.stage===c.id)},null,8,["stage","node","controller","stage-run-count"])]}),default:ae(()=>[J(D(Yp)),a.editable&&!a.workflow.vueFlowNodes.value.length?(O(),fe(V1,{key:0,"show-drag-hint":a.showDragHint},null,8,["show-drag-hint"])):me("",!0),J(D(Ey),{pannable:"",zoomable:""}),a.editable?(O(),fe(o1,{key:1,workflow:a.workflow},null,8,["workflow"])):me("",!0)]),_:1},8,["nodes","edges","nodes-draggable","elements-selectable","onDragover","onDragleave"])):me("",!0)}});const tw=lt(F1,[["__scopeId","data-v-1c269ece"]]);export{Pu as I,Au as S,tw as W,ye as a,Da as b,ew as c,H1 as u}; -//# sourceMappingURL=Workflow.602b68d4.js.map +//# sourceMappingURL=Workflow.c11e942b.js.map diff --git a/abstra_statics/dist/assets/WorkflowEditor.9e62fb31.js b/abstra_statics/dist/assets/WorkflowEditor.4a125a3f.js similarity index 77% rename from abstra_statics/dist/assets/WorkflowEditor.9e62fb31.js rename to abstra_statics/dist/assets/WorkflowEditor.4a125a3f.js index a96310f5d..8b654e6bc 100644 --- a/abstra_statics/dist/assets/WorkflowEditor.9e62fb31.js +++ b/abstra_statics/dist/assets/WorkflowEditor.4a125a3f.js @@ -1,2 +1,2 @@ -var L=Object.defineProperty;var M=(e,r,t)=>r in e?L(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var m=(e,r,t)=>(M(e,typeof r!="symbol"?r+"":r,t),t);import{w as R}from"./api.a5810267.js";import{u as V,a as W,W as O,b as H}from"./Workflow.602b68d4.js";import{a as U}from"./asyncComputed.d0f14ed3.js";import{d as v,X as _,b as i,w as d,u as a,aR as b,o as u,ee as j,c as D,df as g,da as K,aF as y,ec as w,a as X,ef as $,cN as G,bS as Z,$ as C,g as J,W as q,ea as Q,R as Y}from"./vue-router.4c13f3d4.js";import{U as ee,G as oe}from"./UnsavedChangesHandler.5ab8a23e.js";import{w as te}from"./metadata.d6f3a171.js";import{A as re}from"./index.c2ef572b.js";import"./fetch.492045fb.js";import"./PhArrowClockwise.vue.5c4db05c.js";import"./PhArrowCounterClockwise.vue.548df89b.js";import"./validations.f7853e39.js";import"./string.eaeb96c3.js";import"./uuid.27635aee.js";import"./index.52fae423.js";import"./workspaces.1ee4ae8d.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./record.34d5b504.js";import"./polling.ce5b4e64.js";import"./index.40c3f00c.js";import"./Badge.49622b8e.js";import"./isNumeric.75337b1e.js";import"./ExclamationCircleOutlined.e0ca00ea.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8360ceaa-0ddb-47e6-83b8-4007454d3762",e._sentryDebugIdIdentifier="sentry-dbid-8360ceaa-0ddb-47e6-83b8-4007454d3762")}catch{}})();class A{static get isMac(){return navigator.userAgent.includes("Mac OS X")}static get buildPlatform(){return{}.CURRENT_PLATFORM||"web"}}const p=e=>A.isMac?e.metaKey:e.ctrlKey,se=e=>e.altKey,E=e=>e.shiftKey,k={alt:se,"arrow-up":e=>e.code==="ArrowUp","arrow-down":e=>e.code==="ArrowDown","arrow-left":e=>e.code==="ArrowLeft","arrow-right":e=>e.code==="ArrowRight",ctrl:p,delete:e=>A.isMac?e.code==="Backspace":e.code==="Delete",enter:e=>e.code==="Enter",escape:e=>e.code==="Escape",shift:E,space:e=>e.code==="Space",a:e=>e.code==="KeyA",b:e=>e.code==="KeyB",c:e=>e.code==="KeyC",d:e=>e.code==="KeyD",f:e=>e.code==="KeyF",g:e=>e.code==="KeyG",h:e=>e.code==="KeyH",k:e=>e.code==="KeyK",p:e=>e.code==="KeyP",v:e=>e.code==="KeyV",x:e=>e.code==="KeyX",z:e=>e.code==="KeyZ",0:e=>e.code==="Digit0","[":e=>e.code==="BracketLeft","]":e=>e.code==="BracketRight"};class ae{constructor(r){m(this,"pressedKeys");m(this,"evt");this.evt=r,this.pressedKeys={};const t=f=>l=>{Object.keys(k).forEach(s=>{k[s](l)&&this.setPressed(s,f)})};this.evt||(window.addEventListener("keydown",t(!0)),window.addEventListener("keyup",t(!1)))}setPressed(r,t){this.pressedKeys[r]=t}isPressed(r){var t;return this.evt?k[r](this.evt):(t=this.pressedKeys[r])!=null?t:!1}}new ae;const ne=["onDragstart"],le=v({__name:"BottomToolbar",props:{controller:{}},emits:["drag-start"],setup(e,{emit:r}){return(t,f)=>(u(),_(b,null,[i(a(g),{class:"toolbar",align:"center"},{default:d(()=>[(u(!0),_(b,null,j(a(te).stages,l=>(u(),D(a(G),{key:l.key,placement:"top"},{title:d(()=>[i(a(g),{gap:"small"},{default:d(()=>[i(a(K),null,{default:d(()=>[y(w(l.title),1)]),_:2},1024),i(a(K),{keyboard:""},{default:d(()=>[y(w(l.key),1)]),_:2},1024)]),_:2},1024)]),content:d(()=>[y(w(l.description),1)]),default:d(()=>[X("div",{draggable:!0,class:"toolbar__item",onDragstart:s=>r("drag-start",s.dataTransfer,l.typeName)},[(u(),D($(l.icon),{size:18}))],40,ne)]),_:2},1024))),128)),i(a(re),{type:"vertical"}),i(a(Z),{disabled:!t.controller.hasChanges(),onClick:f[0]||(f[0]=l=>t.controller.save())},{default:d(()=>[i(a(g),{align:"center",gap:"small"},{default:d(()=>[i(a(oe),{size:16}),y(" Save ")]),_:1})]),_:1},8,["disabled"])]),_:1}),i(ee,{"has-changes":t.controller.hasChanges()},null,8,["has-changes"])],64))}});const ie=C(le,[["__scopeId","data-v-0b520c49"]]),de=v({__name:"WorkflowEditor",setup(e){const{init:r,onDragStart:t,onDrop:f,isDragging:l}=V(),{result:s}=U(()=>H.init(R,!0));J(()=>s.value,()=>{s.value&&r(s.value)});const{onNodeDragStop:S,onNodesChange:B,onEdgesChange:I,getSelectedElements:N,getNodes:P,addSelectedNodes:T,zoomIn:x,fitView:z,zoomOut:F}=W();return S(c=>{var o;(o=s.value)==null||o.move(c.nodes.map(n=>({id:n.id,position:n.position})))}),B(c=>{var o;for(const n of c)n.type==="remove"&&((o=s.value)==null||o.delete([n.id]))}),I(c=>{var o;for(const n of c)n.type==="remove"&&((o=s.value)==null||o.delete([n.id]))}),q(()=>{const c=o=>{var n,h;!s.value||((o.key==="z"||o.key==="Z")&&p(o)&&(E(o)?s.value.history.redo():(n=s.value)==null||n.history.undo(),o.preventDefault()),!N.value.length&&(o.key==="f"||o.key==="F"?t(null,"forms"):o.key==="h"||o.key==="H"?t(null,"hooks"):o.key==="j"||o.key==="J"?t(null,"jobs"):o.key==="c"||o.key==="C"?t(null,"conditions"):o.key==="i"||o.key==="I"?t(null,"iterators"):o.key==="s"||o.key==="S"?p(o)?((h=s.value)==null||h.save(),o.preventDefault()):t(null,"scripts"):(o.key==="a"||o.key==="A")&&p(o)?(T(P.value),o.preventDefault()):o.key==="0"&&p(o)?(z(),o.preventDefault()):o.key==="="&&p(o)?(o.preventDefault(),x()):o.key==="-"&&p(o)&&(o.preventDefault(),F())))};window.addEventListener("keydown",c)}),(c,o)=>a(s)?(u(),_("div",{key:0,class:Q(["workflow-container",{dragging:a(l)}]),onDrop:o[0]||(o[0]=(...n)=>a(f)&&a(f)(...n))},[i(O,{workflow:a(s),editable:"","show-drag-hint":!a(l)},null,8,["workflow","show-drag-hint"]),i(ie,{controller:a(s),onDragStart:a(t)},null,8,["controller","onDragStart"])],34)):Y("",!0)}});const Re=C(de,[["__scopeId","data-v-17fb4945"]]);export{Re as default}; -//# sourceMappingURL=WorkflowEditor.9e62fb31.js.map +var L=Object.defineProperty;var M=(e,r,t)=>r in e?L(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var m=(e,r,t)=>(M(e,typeof r!="symbol"?r+"":r,t),t);import{w as R}from"./api.854a5e4c.js";import{u as V,a as W,W as O,b as H}from"./Workflow.c11e942b.js";import{a as U}from"./asyncComputed.295e9e03.js";import{d as v,X as _,b as i,w as d,u as a,aR as b,o as u,ee as j,c as D,df as g,da as K,aF as y,ec as w,a as X,ef as $,cN as G,bS as Z,$ as C,g as J,W as q,ea as Q,R as Y}from"./vue-router.3fd92176.js";import{U as ee,G as oe}from"./UnsavedChangesHandler.9562b93c.js";import{w as te}from"./metadata.789df59c.js";import{A as re}from"./index.c6ce1c1c.js";import"./fetch.8c5b12c2.js";import"./PhArrowClockwise.vue.2725755a.js";import"./PhArrowCounterClockwise.vue.8fbc5885.js";import"./validations.0afef3f1.js";import"./string.e75a34fd.js";import"./uuid.06ef1e24.js";import"./index.bd967757.js";import"./workspaces.b456ec6a.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./record.cbb43e89.js";import"./polling.4e30c061.js";import"./index.f6dcc8cb.js";import"./Badge.bcc65740.js";import"./isNumeric.75337b1e.js";import"./ExclamationCircleOutlined.379cd3ee.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="90c14077-4cca-4996-aeef-8f1aa145ec65",e._sentryDebugIdIdentifier="sentry-dbid-90c14077-4cca-4996-aeef-8f1aa145ec65")}catch{}})();class A{static get isMac(){return navigator.userAgent.includes("Mac OS X")}static get buildPlatform(){return{}.CURRENT_PLATFORM||"web"}}const p=e=>A.isMac?e.metaKey:e.ctrlKey,se=e=>e.altKey,E=e=>e.shiftKey,k={alt:se,"arrow-up":e=>e.code==="ArrowUp","arrow-down":e=>e.code==="ArrowDown","arrow-left":e=>e.code==="ArrowLeft","arrow-right":e=>e.code==="ArrowRight",ctrl:p,delete:e=>A.isMac?e.code==="Backspace":e.code==="Delete",enter:e=>e.code==="Enter",escape:e=>e.code==="Escape",shift:E,space:e=>e.code==="Space",a:e=>e.code==="KeyA",b:e=>e.code==="KeyB",c:e=>e.code==="KeyC",d:e=>e.code==="KeyD",f:e=>e.code==="KeyF",g:e=>e.code==="KeyG",h:e=>e.code==="KeyH",k:e=>e.code==="KeyK",p:e=>e.code==="KeyP",v:e=>e.code==="KeyV",x:e=>e.code==="KeyX",z:e=>e.code==="KeyZ",0:e=>e.code==="Digit0","[":e=>e.code==="BracketLeft","]":e=>e.code==="BracketRight"};class ae{constructor(r){m(this,"pressedKeys");m(this,"evt");this.evt=r,this.pressedKeys={};const t=f=>l=>{Object.keys(k).forEach(s=>{k[s](l)&&this.setPressed(s,f)})};this.evt||(window.addEventListener("keydown",t(!0)),window.addEventListener("keyup",t(!1)))}setPressed(r,t){this.pressedKeys[r]=t}isPressed(r){var t;return this.evt?k[r](this.evt):(t=this.pressedKeys[r])!=null?t:!1}}new ae;const ne=["onDragstart"],le=v({__name:"BottomToolbar",props:{controller:{}},emits:["drag-start"],setup(e,{emit:r}){return(t,f)=>(u(),_(b,null,[i(a(g),{class:"toolbar",align:"center"},{default:d(()=>[(u(!0),_(b,null,j(a(te).stages,l=>(u(),D(a(G),{key:l.key,placement:"top"},{title:d(()=>[i(a(g),{gap:"small"},{default:d(()=>[i(a(K),null,{default:d(()=>[y(w(l.title),1)]),_:2},1024),i(a(K),{keyboard:""},{default:d(()=>[y(w(l.key),1)]),_:2},1024)]),_:2},1024)]),content:d(()=>[y(w(l.description),1)]),default:d(()=>[X("div",{draggable:!0,class:"toolbar__item",onDragstart:s=>r("drag-start",s.dataTransfer,l.typeName)},[(u(),D($(l.icon),{size:18}))],40,ne)]),_:2},1024))),128)),i(a(re),{type:"vertical"}),i(a(Z),{disabled:!t.controller.hasChanges(),onClick:f[0]||(f[0]=l=>t.controller.save())},{default:d(()=>[i(a(g),{align:"center",gap:"small"},{default:d(()=>[i(a(oe),{size:16}),y(" Save ")]),_:1})]),_:1},8,["disabled"])]),_:1}),i(ee,{"has-changes":t.controller.hasChanges()},null,8,["has-changes"])],64))}});const ie=C(le,[["__scopeId","data-v-0b520c49"]]),de=v({__name:"WorkflowEditor",setup(e){const{init:r,onDragStart:t,onDrop:f,isDragging:l}=V(),{result:s}=U(()=>H.init(R,!0));J(()=>s.value,()=>{s.value&&r(s.value)});const{onNodeDragStop:S,onNodesChange:B,onEdgesChange:I,getSelectedElements:N,getNodes:P,addSelectedNodes:T,zoomIn:x,fitView:z,zoomOut:F}=W();return S(c=>{var o;(o=s.value)==null||o.move(c.nodes.map(n=>({id:n.id,position:n.position})))}),B(c=>{var o;for(const n of c)n.type==="remove"&&((o=s.value)==null||o.delete([n.id]))}),I(c=>{var o;for(const n of c)n.type==="remove"&&((o=s.value)==null||o.delete([n.id]))}),q(()=>{const c=o=>{var n,h;!s.value||((o.key==="z"||o.key==="Z")&&p(o)&&(E(o)?s.value.history.redo():(n=s.value)==null||n.history.undo(),o.preventDefault()),!N.value.length&&(o.key==="f"||o.key==="F"?t(null,"forms"):o.key==="h"||o.key==="H"?t(null,"hooks"):o.key==="j"||o.key==="J"?t(null,"jobs"):o.key==="c"||o.key==="C"?t(null,"conditions"):o.key==="i"||o.key==="I"?t(null,"iterators"):o.key==="s"||o.key==="S"?p(o)?((h=s.value)==null||h.save(),o.preventDefault()):t(null,"scripts"):(o.key==="a"||o.key==="A")&&p(o)?(T(P.value),o.preventDefault()):o.key==="0"&&p(o)?(z(),o.preventDefault()):o.key==="="&&p(o)?(o.preventDefault(),x()):o.key==="-"&&p(o)&&(o.preventDefault(),F())))};window.addEventListener("keydown",c)}),(c,o)=>a(s)?(u(),_("div",{key:0,class:Q(["workflow-container",{dragging:a(l)}]),onDrop:o[0]||(o[0]=(...n)=>a(f)&&a(f)(...n))},[i(O,{workflow:a(s),editable:"","show-drag-hint":!a(l)},null,8,["workflow","show-drag-hint"]),i(ie,{controller:a(s),onDragStart:a(t)},null,8,["controller","onDragStart"])],34)):Y("",!0)}});const Re=C(de,[["__scopeId","data-v-17fb4945"]]);export{Re as default}; +//# sourceMappingURL=WorkflowEditor.4a125a3f.js.map diff --git a/abstra_statics/dist/assets/WorkflowThreads.7e5ba87a.js b/abstra_statics/dist/assets/WorkflowThreads.7e5ba87a.js deleted file mode 100644 index daac9b156..000000000 --- a/abstra_statics/dist/assets/WorkflowThreads.7e5ba87a.js +++ /dev/null @@ -1,2 +0,0 @@ -import{E as y}from"./api.a5810267.js";import{C as w}from"./ContentLayout.f8da2f52.js";import{d as c,L as g,N as b,e as _,c as e,w as f,o as i,b as n,u as o,R as s}from"./vue-router.4c13f3d4.js";import{K as v,_ as K,W as R,E,a as T}from"./WorkflowView.11202833.js";import{A as p,T as V}from"./TabPane.9889f7a8.js";import"./fetch.492045fb.js";import"./metadata.d6f3a171.js";import"./PhBug.vue.e9805eb3.js";import"./PhCheckCircle.vue.aa5f3146.js";import"./PhKanban.vue.b5dcf2c4.js";import"./PhWebhooksLogo.vue.1b61227c.js";import"./polling.ce5b4e64.js";import"./asyncComputed.d0f14ed3.js";import"./PhQuestion.vue.500e5a18.js";import"./ant-design.57cbe6fb.js";import"./index.ec6b7808.js";import"./index.3f22f3b8.js";import"./index.03e5f55c.js";import"./CollapsePanel.d6e0f903.js";import"./index.c2ef572b.js";import"./index.c9c8d27c.js";import"./isNumeric.75337b1e.js";import"./PhArrowCounterClockwise.vue.548df89b.js";import"./Workflow.602b68d4.js";import"./PhArrowClockwise.vue.5c4db05c.js";import"./validations.f7853e39.js";import"./string.eaeb96c3.js";import"./uuid.27635aee.js";import"./index.52fae423.js";import"./workspaces.1ee4ae8d.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./record.34d5b504.js";import"./index.40c3f00c.js";import"./Badge.49622b8e.js";import"./Card.b3c66431.js";import"./LoadingOutlined.6c0b95d8.js";import"./DeleteOutlined.a943fe4d.js";import"./PhDownloadSimple.vue.285a519c.js";import"./utils.b9d20cd5.js";import"./LoadingContainer.01cf1024.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="ad214edb-2738-40a7-868f-aa46e7562a6c",a._sentryDebugIdIdentifier="sentry-dbid-ad214edb-2738-40a7-868f-aa46e7562a6c")}catch{}})();const wo=c({__name:"WorkflowThreads",setup(a){const t=new E,m=new T,d=new g(b.array(b.string()),"kanban-selected-stages"),u=new y,r=_("kanban");return(W,l)=>(i(),e(w,{"full-width":""},{default:f(()=>[n(o(V),{activeKey:r.value,"onUpdate:activeKey":l[0]||(l[0]=k=>r.value=k)},{default:f(()=>[n(o(p),{key:"kanban",tab:"Kanban View"}),n(o(p),{key:"table",tab:"Table View"}),n(o(p),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),r.value==="kanban"?(i(),e(v,{key:0,"kanban-repository":o(t),"kanban-stages-storage":o(d),"stage-run-repository":o(m)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):s("",!0),r.value==="table"?(i(),e(K,{key:1,"kanban-repository":o(t)},null,8,["kanban-repository"])):s("",!0),r.value==="workflow"?(i(),e(R,{key:2,"kanban-repository":o(t),"workflow-api":o(u)},null,8,["kanban-repository","workflow-api"])):s("",!0)]),_:1}))}});export{wo as default}; -//# sourceMappingURL=WorkflowThreads.7e5ba87a.js.map diff --git a/abstra_statics/dist/assets/WorkflowThreads.ff4ec453.js b/abstra_statics/dist/assets/WorkflowThreads.ff4ec453.js new file mode 100644 index 000000000..1a8c9c546 --- /dev/null +++ b/abstra_statics/dist/assets/WorkflowThreads.ff4ec453.js @@ -0,0 +1,2 @@ +import{E as d}from"./api.854a5e4c.js";import{C as w}from"./ContentLayout.72beb65c.js";import{d as c,L as g,N as l,e as _,c as a,w as u,o as i,b as n,u as o,R as s}from"./vue-router.3fd92176.js";import{K as v,_ as K,W as R,E,a as T}from"./WorkflowView.3fb1431f.js";import{A as p,T as V}from"./TabPane.d0ca7ad5.js";import"./fetch.8c5b12c2.js";import"./metadata.789df59c.js";import"./PhBug.vue.00bc4255.js";import"./PhCheckCircle.vue.d8163a77.js";import"./PhKanban.vue.b52985f0.js";import"./PhWebhooksLogo.vue.73a10b16.js";import"./polling.4e30c061.js";import"./asyncComputed.295e9e03.js";import"./PhQuestion.vue.129febdc.js";import"./ant-design.38477595.js";import"./index.063f7c9e.js";import"./index.61e7dffa.js";import"./index.82d1f1ac.js";import"./CollapsePanel.87687b29.js";import"./index.c6ce1c1c.js";import"./index.9c5136e0.js";import"./isNumeric.75337b1e.js";import"./PhArrowCounterClockwise.vue.8fbc5885.js";import"./Workflow.c11e942b.js";import"./PhArrowClockwise.vue.2725755a.js";import"./validations.0afef3f1.js";import"./string.e75a34fd.js";import"./uuid.06ef1e24.js";import"./index.bd967757.js";import"./workspaces.b456ec6a.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./record.cbb43e89.js";import"./index.f6dcc8cb.js";import"./Badge.bcc65740.js";import"./Card.0ce127d8.js";import"./LoadingOutlined.dad6ee6e.js";import"./DeleteOutlined.a95bba08.js";import"./PhDownloadSimple.vue.33128e79.js";import"./utils.4c5a1d76.js";import"./LoadingContainer.cc61e2fd.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="8a5b5017-7031-467c-951b-30b7540b3e28",r._sentryDebugIdIdentifier="sentry-dbid-8a5b5017-7031-467c-951b-30b7540b3e28")}catch{}})();const wo=c({__name:"WorkflowThreads",setup(r){const t=new E,m=new T,f=new g(l.array(l.string()),"kanban-selected-stages"),k=new d,e=_("kanban");return(W,b)=>(i(),a(w,{"full-width":""},{default:u(()=>[n(o(V),{activeKey:e.value,"onUpdate:activeKey":b[0]||(b[0]=y=>e.value=y)},{default:u(()=>[n(o(p),{key:"kanban",tab:"Kanban View"}),n(o(p),{key:"table",tab:"Table View"}),n(o(p),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),e.value==="kanban"?(i(),a(v,{key:0,"kanban-repository":o(t),"kanban-stages-storage":o(f),"stage-run-repository":o(m)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):s("",!0),e.value==="table"?(i(),a(K,{key:1,"kanban-repository":o(t)},null,8,["kanban-repository"])):s("",!0),e.value==="workflow"?(i(),a(R,{key:2,"kanban-repository":o(t),"workflow-api":o(k)},null,8,["kanban-repository","workflow-api"])):s("",!0)]),_:1}))}});export{wo as default}; +//# sourceMappingURL=WorkflowThreads.ff4ec453.js.map diff --git a/abstra_statics/dist/assets/WorkflowView.11202833.js b/abstra_statics/dist/assets/WorkflowView.3fb1431f.js similarity index 98% rename from abstra_statics/dist/assets/WorkflowView.11202833.js rename to abstra_statics/dist/assets/WorkflowView.3fb1431f.js index abf4d7433..59ddcefef 100644 --- a/abstra_statics/dist/assets/WorkflowView.11202833.js +++ b/abstra_statics/dist/assets/WorkflowView.3fb1431f.js @@ -1,4 +1,4 @@ -var yo=Object.defineProperty;var So=(i,n,e)=>n in i?yo(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var Dn=(i,n,e)=>(So(i,typeof n!="symbol"?n+"":n,e),e);import{l as Cn}from"./fetch.492045fb.js";import{d as Ut,B as pe,f as $t,o as j,X as ot,Z as Jn,R as ut,eb as Rr,a as Ct,b as G,eh as bo,N as v,eF as Eo,eG as xo,eH as Co,eI as Ao,e as Dt,cL as Oo,dk as Io,c as Z,w as L,ee as se,aF as lt,ec as Pt,u as b,da as Re,d0 as To,aR as _t,$ as xe,df as yt,d3 as _e,d9 as cr,db as on,bx as Po,ej as Ro,d8 as Do,ef as An,aV as Kn,cw as Dr,el as wo,em as Lo,bS as ne,eJ as jo,eK as Mo,bK as Vn,cS as Qn,aA as kn,cA as No,g as wr,K as Fo,cx as $o,cy as dr,eq as Uo,W as qn,ag as _n,eo as Go,eL as Bo,cW as fr}from"./vue-router.4c13f3d4.js";import{A as Ko}from"./api.a5810267.js";import{u as Lr}from"./polling.ce5b4e64.js";import{s as On}from"./metadata.d6f3a171.js";import{a as tr}from"./asyncComputed.d0f14ed3.js";import{H as Vo}from"./PhQuestion.vue.500e5a18.js";import{t as zo,a as jr}from"./ant-design.57cbe6fb.js";import{A as ge}from"./index.ec6b7808.js";import{f as Ho}from"./index.3f22f3b8.js";import{T as Wo,A as Xo}from"./index.03e5f55c.js";import{A as Mr,C as Nr}from"./CollapsePanel.d6e0f903.js";import{A as Zo}from"./index.c2ef572b.js";import{A as Yo}from"./index.c9c8d27c.js";import{G as Jo}from"./PhArrowCounterClockwise.vue.548df89b.js";import{I as Qo,S as Fr,c as ko,W as qo,b as _o}from"./Workflow.602b68d4.js";import{C as $r,A as ta}from"./Card.b3c66431.js";import{L as Ur}from"./LoadingOutlined.6c0b95d8.js";import{D as Gr}from"./DeleteOutlined.a943fe4d.js";import{P as ea}from"./TabPane.9889f7a8.js";import{c as na}from"./string.eaeb96c3.js";import{G as ra}from"./PhDownloadSimple.vue.285a519c.js";import{d as oa}from"./utils.b9d20cd5.js";import{L as aa}from"./LoadingContainer.01cf1024.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="8b6fb437-99f6-47dd-a94f-60bf2c836544",i._sentryDebugIdIdentifier="sentry-dbid-8b6fb437-99f6-47dd-a94f-60bf2c836544")}catch{}})();const ia=["width","height","fill","transform"],sa={key:0},la=Ct("path",{d:"M228,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H80a4,4,0,0,1-4-4V97.94a36,36,0,1,0-24,0V112a28,28,0,0,0,28,28h36v18.06a36,36,0,1,0,24,0V140h36a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,228,64ZM64,52A12,12,0,1,1,52,64,12,12,0,0,1,64,52Zm64,152a12,12,0,1,1,12-12A12,12,0,0,1,128,204ZM192,76a12,12,0,1,1,12-12A12,12,0,0,1,192,76Z"},null,-1),ua=[la],ca={key:1},da=Ct("path",{d:"M88,64A24,24,0,1,1,64,40,24,24,0,0,1,88,64ZM192,40a24,24,0,1,0,24,24A24,24,0,0,0,192,40Z",opacity:"0.2"},null,-1),fa=Ct("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM48,64A16,16,0,1,1,64,80,16,16,0,0,1,48,64Zm96,128a16,16,0,1,1-16-16A16,16,0,0,1,144,192ZM192,80a16,16,0,1,1,16-16A16,16,0,0,1,192,80Z"},null,-1),pa=[da,fa],ga={key:2},ma=Ct("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM144,192a16,16,0,1,1-16-16A16,16,0,0,1,144,192Z"},null,-1),va=[ma],ha={key:3},ya=Ct("path",{d:"M222,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H80a10,10,0,0,1-10-10V93.4a30,30,0,1,0-12,0V112a22,22,0,0,0,22,22h42v28.6a30,30,0,1,0,12,0V134h42a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,222,64ZM46,64A18,18,0,1,1,64,82,18,18,0,0,1,46,64ZM146,192a18,18,0,1,1-18-18A18,18,0,0,1,146,192ZM192,82a18,18,0,1,1,18-18A18,18,0,0,1,192,82Z"},null,-1),Sa=[ya],ba={key:4},Ea=Ct("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM48,64A16,16,0,1,1,64,80,16,16,0,0,1,48,64Zm96,128a16,16,0,1,1-16-16A16,16,0,0,1,144,192ZM192,80a16,16,0,1,1,16-16A16,16,0,0,1,192,80Z"},null,-1),xa=[Ea],Ca={key:5},Aa=Ct("path",{d:"M220,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H80a12,12,0,0,1-12-12V91.71a28,28,0,1,0-8,0V112a20,20,0,0,0,20,20h44v32.29a28,28,0,1,0,8,0V132h44a20,20,0,0,0,20-20V91.71A28,28,0,0,0,220,64ZM44,64A20,20,0,1,1,64,84,20,20,0,0,1,44,64ZM148,192a20,20,0,1,1-20-20A20,20,0,0,1,148,192ZM192,84a20,20,0,1,1,20-20A20,20,0,0,1,192,84Z"},null,-1),Oa=[Aa],Ia={name:"PhGitFork"},Ta=Ut({...Ia,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const n=i,e=pe("weight","regular"),o=pe("size","1em"),r=pe("color","currentColor"),u=pe("mirrored",!1),t=$t(()=>{var c;return(c=n.weight)!=null?c:e}),a=$t(()=>{var c;return(c=n.size)!=null?c:o}),l=$t(()=>{var c;return(c=n.color)!=null?c:r}),s=$t(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(c,d)=>(j(),ot("svg",Rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:s.value},c.$attrs),[Jn(c.$slots,"default"),t.value==="bold"?(j(),ot("g",sa,ua)):t.value==="duotone"?(j(),ot("g",ca,pa)):t.value==="fill"?(j(),ot("g",ga,va)):t.value==="light"?(j(),ot("g",ha,Sa)):t.value==="regular"?(j(),ot("g",ba,xa)):t.value==="thin"?(j(),ot("g",Ca,Oa)):ut("",!0)],16,ia))}}),Pa=["width","height","fill","transform"],Ra={key:0},Da=Ct("path",{d:"M176,128a12,12,0,0,1-5.17,9.87l-52,36A12,12,0,0,1,100,164V92a12,12,0,0,1,18.83-9.87l52,36A12,12,0,0,1,176,128Zm60,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),wa=[Da],La={key:1},ja=Ct("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32ZM108,168V88l64,40Z",opacity:"0.2"},null,-1),Ma=Ct("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),Na=[ja,Ma],Fa={key:2},$a=Ct("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40.55,110.58-52,36A8,8,0,0,1,104,164V92a8,8,0,0,1,12.55-6.58l52,36a8,8,0,0,1,0,13.16Z"},null,-1),Ua=[$a],Ga={key:3},Ba=Ct("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm47.18-95.09-64-40A6,6,0,0,0,102,88v80a6,6,0,0,0,9.18,5.09l64-40a6,6,0,0,0,0-10.18ZM114,157.17V98.83L160.68,128Z"},null,-1),Ka=[Ba],Va={key:4},za=Ct("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),Ha=[za],Wa={key:5},Xa=Ct("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm46.12-95.39-64-40A4,4,0,0,0,104,88v80a4,4,0,0,0,2.06,3.5,4.06,4.06,0,0,0,1.94.5,4,4,0,0,0,2.12-.61l64-40a4,4,0,0,0,0-6.78ZM112,160.78V95.22L164.45,128Z"},null,-1),Za=[Xa],Ya={name:"PhPlayCircle"},Ja=Ut({...Ya,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const n=i,e=pe("weight","regular"),o=pe("size","1em"),r=pe("color","currentColor"),u=pe("mirrored",!1),t=$t(()=>{var c;return(c=n.weight)!=null?c:e}),a=$t(()=>{var c;return(c=n.size)!=null?c:o}),l=$t(()=>{var c;return(c=n.color)!=null?c:r}),s=$t(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(c,d)=>(j(),ot("svg",Rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:s.value},c.$attrs),[Jn(c.$slots,"default"),t.value==="bold"?(j(),ot("g",Ra,wa)):t.value==="duotone"?(j(),ot("g",La,Na)):t.value==="fill"?(j(),ot("g",Fa,Ua)):t.value==="light"?(j(),ot("g",Ga,Ka)):t.value==="regular"?(j(),ot("g",Va,Ha)):t.value==="thin"?(j(),ot("g",Wa,Za)):ut("",!0)],16,Pa))}});function pr(i){for(var n=1;nKr).optional()}),Br=["AND","OR"],ti=v.object({operator:v.union([v.literal("AND"),v.literal("OR")]),conditions:v.array(v.lazy(()=>Kr))}),ei=v.union([_a,ti]),Kr=v.optional(v.union([qa,ei]));class kc{constructor(n=Cn){this.fetch=n}async getStages(){return(await this.fetch("/_editor/api/kanban/stages")).json()}async getData(n){return(await this.fetch("/_editor/api/kanban",{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})).json()}async countByStatus(){return(await this.fetch("/_editor/api/kanban/count",{method:"POST"})).json()}async getPath(n){return(await this.fetch(`/_editor/api/kanban/path?n=${n}`)).json()}async getLogs(n){return(await this.fetch(`/_editor/api/kanban/logs/${n}`)).json()}async startJob(n){await this.fetch(`/_editor/api/kanban/jobs/${n}/start`,{method:"POST"})}async continueScript(n,e){await this.fetch(`/_editor/api/kanban/scripts/${n}/continue`,{method:"POST",body:JSON.stringify({stage_run_id:e}),headers:{"Content-Type":"application/json"}})}}class qc{constructor(n,e=Cn){this.authHeaders=n,this.fetch=e}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async getStages(){return(await this.fetch("/_kanban/stages",{headers:this.headers})).json()}async getData(n){return(await this.fetch("/_kanban/",{method:"POST",body:JSON.stringify(n),headers:this.headers})).json()}async countByStatus(){return(await this.fetch("/_kanban/count",{method:"POST",headers:this.headers})).json()}async getPath(n){return(await this.fetch(`/_kanban/path?n=${n}`,{headers:this.headers})).json()}async getLogs(n){return(await this.fetch(`/_kanban/logs/${n}`,{headers:this.headers})).json()}async startJob(n){await this.fetch(`/_kanban/jobs/${n}/start`,{method:"POST",headers:this.headers})}async continueScript(n,e){await this.fetch(`/_kanban/scripts/${n}/continue`,{method:"POST",body:JSON.stringify({stage_run_id:e}),headers:this.headers})}}class _c{constructor(n=Cn){Dn(this,"forkEnabled",!0);this.fetch=n}async fork(n){return(await this.fetch("/_editor/api/stage_runs/fork",{method:"POST",body:JSON.stringify({stage_run_id:n}),headers:{"Content-Type":"application/json"}})).json()}async retry(n){const e=await this.fetch("/_editor/api/stage_runs/retry",{method:"POST",body:JSON.stringify({stage_run_id:n}),headers:{"Content-Type":"application/json"}});if(!e.ok){const o=await e.text();throw new Error(o)}return e.json()}}class td{constructor(n,e=Cn){Dn(this,"forkEnabled",!1);this.authHeaders=n,this.fetch=e}async fork(){throw new Error("Not implemented")}async retry(n){return(await this.fetch("/_stage-runs/retry",{body:JSON.stringify({stage_run_id:n}),headers:this.headers,method:"POST"})).json()}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}}const ni=!0;var Vr={exports:{}};/**! +var yo=Object.defineProperty;var So=(i,n,e)=>n in i?yo(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var Dn=(i,n,e)=>(So(i,typeof n!="symbol"?n+"":n,e),e);import{l as Cn}from"./fetch.8c5b12c2.js";import{d as Ut,B as pe,f as $t,o as j,X as ot,Z as Jn,R as ut,eb as Rr,a as Ct,b as G,eh as bo,N as v,eF as Eo,eG as xo,eH as Co,eI as Ao,e as Dt,cL as Oo,dk as Io,c as Z,w as L,ee as se,aF as lt,ec as Pt,u as b,da as Re,d0 as To,aR as _t,$ as xe,df as yt,d3 as _e,d9 as cr,db as on,bx as Po,ej as Ro,d8 as Do,ef as An,aV as Kn,cw as Dr,el as wo,em as Lo,bS as ne,eJ as jo,eK as Mo,bK as Vn,cS as Qn,aA as kn,cA as No,g as wr,K as Fo,cx as $o,cy as dr,eq as Uo,W as qn,ag as _n,eo as Go,eL as Bo,cW as fr}from"./vue-router.3fd92176.js";import{A as Ko}from"./api.854a5e4c.js";import{u as Lr}from"./polling.4e30c061.js";import{s as On}from"./metadata.789df59c.js";import{a as tr}from"./asyncComputed.295e9e03.js";import{H as Vo}from"./PhQuestion.vue.129febdc.js";import{t as zo,a as jr}from"./ant-design.38477595.js";import{A as ge}from"./index.063f7c9e.js";import{f as Ho}from"./index.61e7dffa.js";import{T as Wo,A as Xo}from"./index.82d1f1ac.js";import{A as Mr,C as Nr}from"./CollapsePanel.87687b29.js";import{A as Zo}from"./index.c6ce1c1c.js";import{A as Yo}from"./index.9c5136e0.js";import{G as Jo}from"./PhArrowCounterClockwise.vue.8fbc5885.js";import{I as Qo,S as Fr,c as ko,W as qo,b as _o}from"./Workflow.c11e942b.js";import{C as $r,A as ta}from"./Card.0ce127d8.js";import{L as Ur}from"./LoadingOutlined.dad6ee6e.js";import{D as Gr}from"./DeleteOutlined.a95bba08.js";import{P as ea}from"./TabPane.d0ca7ad5.js";import{c as na}from"./string.e75a34fd.js";import{G as ra}from"./PhDownloadSimple.vue.33128e79.js";import{d as oa}from"./utils.4c5a1d76.js";import{L as aa}from"./LoadingContainer.cc61e2fd.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="6083f3e2-eb0d-476d-9a33-d960db01c9a8",i._sentryDebugIdIdentifier="sentry-dbid-6083f3e2-eb0d-476d-9a33-d960db01c9a8")}catch{}})();const ia=["width","height","fill","transform"],sa={key:0},la=Ct("path",{d:"M228,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H80a4,4,0,0,1-4-4V97.94a36,36,0,1,0-24,0V112a28,28,0,0,0,28,28h36v18.06a36,36,0,1,0,24,0V140h36a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,228,64ZM64,52A12,12,0,1,1,52,64,12,12,0,0,1,64,52Zm64,152a12,12,0,1,1,12-12A12,12,0,0,1,128,204ZM192,76a12,12,0,1,1,12-12A12,12,0,0,1,192,76Z"},null,-1),ua=[la],ca={key:1},da=Ct("path",{d:"M88,64A24,24,0,1,1,64,40,24,24,0,0,1,88,64ZM192,40a24,24,0,1,0,24,24A24,24,0,0,0,192,40Z",opacity:"0.2"},null,-1),fa=Ct("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM48,64A16,16,0,1,1,64,80,16,16,0,0,1,48,64Zm96,128a16,16,0,1,1-16-16A16,16,0,0,1,144,192ZM192,80a16,16,0,1,1,16-16A16,16,0,0,1,192,80Z"},null,-1),pa=[da,fa],ga={key:2},ma=Ct("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM144,192a16,16,0,1,1-16-16A16,16,0,0,1,144,192Z"},null,-1),va=[ma],ha={key:3},ya=Ct("path",{d:"M222,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H80a10,10,0,0,1-10-10V93.4a30,30,0,1,0-12,0V112a22,22,0,0,0,22,22h42v28.6a30,30,0,1,0,12,0V134h42a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,222,64ZM46,64A18,18,0,1,1,64,82,18,18,0,0,1,46,64ZM146,192a18,18,0,1,1-18-18A18,18,0,0,1,146,192ZM192,82a18,18,0,1,1,18-18A18,18,0,0,1,192,82Z"},null,-1),Sa=[ya],ba={key:4},Ea=Ct("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM48,64A16,16,0,1,1,64,80,16,16,0,0,1,48,64Zm96,128a16,16,0,1,1-16-16A16,16,0,0,1,144,192ZM192,80a16,16,0,1,1,16-16A16,16,0,0,1,192,80Z"},null,-1),xa=[Ea],Ca={key:5},Aa=Ct("path",{d:"M220,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H80a12,12,0,0,1-12-12V91.71a28,28,0,1,0-8,0V112a20,20,0,0,0,20,20h44v32.29a28,28,0,1,0,8,0V132h44a20,20,0,0,0,20-20V91.71A28,28,0,0,0,220,64ZM44,64A20,20,0,1,1,64,84,20,20,0,0,1,44,64ZM148,192a20,20,0,1,1-20-20A20,20,0,0,1,148,192ZM192,84a20,20,0,1,1,20-20A20,20,0,0,1,192,84Z"},null,-1),Oa=[Aa],Ia={name:"PhGitFork"},Ta=Ut({...Ia,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const n=i,e=pe("weight","regular"),o=pe("size","1em"),r=pe("color","currentColor"),u=pe("mirrored",!1),t=$t(()=>{var c;return(c=n.weight)!=null?c:e}),a=$t(()=>{var c;return(c=n.size)!=null?c:o}),l=$t(()=>{var c;return(c=n.color)!=null?c:r}),s=$t(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(c,d)=>(j(),ot("svg",Rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:s.value},c.$attrs),[Jn(c.$slots,"default"),t.value==="bold"?(j(),ot("g",sa,ua)):t.value==="duotone"?(j(),ot("g",ca,pa)):t.value==="fill"?(j(),ot("g",ga,va)):t.value==="light"?(j(),ot("g",ha,Sa)):t.value==="regular"?(j(),ot("g",ba,xa)):t.value==="thin"?(j(),ot("g",Ca,Oa)):ut("",!0)],16,ia))}}),Pa=["width","height","fill","transform"],Ra={key:0},Da=Ct("path",{d:"M176,128a12,12,0,0,1-5.17,9.87l-52,36A12,12,0,0,1,100,164V92a12,12,0,0,1,18.83-9.87l52,36A12,12,0,0,1,176,128Zm60,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),wa=[Da],La={key:1},ja=Ct("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32ZM108,168V88l64,40Z",opacity:"0.2"},null,-1),Ma=Ct("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),Na=[ja,Ma],Fa={key:2},$a=Ct("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40.55,110.58-52,36A8,8,0,0,1,104,164V92a8,8,0,0,1,12.55-6.58l52,36a8,8,0,0,1,0,13.16Z"},null,-1),Ua=[$a],Ga={key:3},Ba=Ct("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm47.18-95.09-64-40A6,6,0,0,0,102,88v80a6,6,0,0,0,9.18,5.09l64-40a6,6,0,0,0,0-10.18ZM114,157.17V98.83L160.68,128Z"},null,-1),Ka=[Ba],Va={key:4},za=Ct("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),Ha=[za],Wa={key:5},Xa=Ct("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm46.12-95.39-64-40A4,4,0,0,0,104,88v80a4,4,0,0,0,2.06,3.5,4.06,4.06,0,0,0,1.94.5,4,4,0,0,0,2.12-.61l64-40a4,4,0,0,0,0-6.78ZM112,160.78V95.22L164.45,128Z"},null,-1),Za=[Xa],Ya={name:"PhPlayCircle"},Ja=Ut({...Ya,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const n=i,e=pe("weight","regular"),o=pe("size","1em"),r=pe("color","currentColor"),u=pe("mirrored",!1),t=$t(()=>{var c;return(c=n.weight)!=null?c:e}),a=$t(()=>{var c;return(c=n.size)!=null?c:o}),l=$t(()=>{var c;return(c=n.color)!=null?c:r}),s=$t(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(c,d)=>(j(),ot("svg",Rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:l.value,transform:s.value},c.$attrs),[Jn(c.$slots,"default"),t.value==="bold"?(j(),ot("g",Ra,wa)):t.value==="duotone"?(j(),ot("g",La,Na)):t.value==="fill"?(j(),ot("g",Fa,Ua)):t.value==="light"?(j(),ot("g",Ga,Ka)):t.value==="regular"?(j(),ot("g",Va,Ha)):t.value==="thin"?(j(),ot("g",Wa,Za)):ut("",!0)],16,Pa))}});function pr(i){for(var n=1;nKr).optional()}),Br=["AND","OR"],ti=v.object({operator:v.union([v.literal("AND"),v.literal("OR")]),conditions:v.array(v.lazy(()=>Kr))}),ei=v.union([_a,ti]),Kr=v.optional(v.union([qa,ei]));class kc{constructor(n=Cn){this.fetch=n}async getStages(){return(await this.fetch("/_editor/api/kanban/stages")).json()}async getData(n){return(await this.fetch("/_editor/api/kanban",{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})).json()}async countByStatus(){return(await this.fetch("/_editor/api/kanban/count",{method:"POST"})).json()}async getPath(n){return(await this.fetch(`/_editor/api/kanban/path?n=${n}`)).json()}async getLogs(n){return(await this.fetch(`/_editor/api/kanban/logs/${n}`)).json()}async startJob(n){await this.fetch(`/_editor/api/kanban/jobs/${n}/start`,{method:"POST"})}async continueScript(n,e){await this.fetch(`/_editor/api/kanban/scripts/${n}/continue`,{method:"POST",body:JSON.stringify({stage_run_id:e}),headers:{"Content-Type":"application/json"}})}}class qc{constructor(n,e=Cn){this.authHeaders=n,this.fetch=e}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async getStages(){return(await this.fetch("/_kanban/stages",{headers:this.headers})).json()}async getData(n){return(await this.fetch("/_kanban/",{method:"POST",body:JSON.stringify(n),headers:this.headers})).json()}async countByStatus(){return(await this.fetch("/_kanban/count",{method:"POST",headers:this.headers})).json()}async getPath(n){return(await this.fetch(`/_kanban/path?n=${n}`,{headers:this.headers})).json()}async getLogs(n){return(await this.fetch(`/_kanban/logs/${n}`,{headers:this.headers})).json()}async startJob(n){await this.fetch(`/_kanban/jobs/${n}/start`,{method:"POST",headers:this.headers})}async continueScript(n,e){await this.fetch(`/_kanban/scripts/${n}/continue`,{method:"POST",body:JSON.stringify({stage_run_id:e}),headers:this.headers})}}class _c{constructor(n=Cn){Dn(this,"forkEnabled",!0);this.fetch=n}async fork(n){return(await this.fetch("/_editor/api/stage_runs/fork",{method:"POST",body:JSON.stringify({stage_run_id:n}),headers:{"Content-Type":"application/json"}})).json()}async retry(n){const e=await this.fetch("/_editor/api/stage_runs/retry",{method:"POST",body:JSON.stringify({stage_run_id:n}),headers:{"Content-Type":"application/json"}});if(!e.ok){const o=await e.text();throw new Error(o)}return e.json()}}class td{constructor(n,e=Cn){Dn(this,"forkEnabled",!1);this.authHeaders=n,this.fetch=e}async fork(){throw new Error("Not implemented")}async retry(n){return(await this.fetch("/_stage-runs/retry",{body:JSON.stringify({stage_run_id:n}),headers:this.headers,method:"POST"})).json()}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}}const ni=!0;var Vr={exports:{}};/**! * Sortable 1.14.0 * @author RubaXa * @author owenm @@ -8,4 +8,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)&&(O="(?: "+O+")",B=" "+B,N++),A=new RegExp("^(?:"+O+")",R)),g&&(A=new RegExp("^"+O+"$(?!\\s)",R)),f&&(T=y.lastIndex),P=s.call(D?A:y,B),D?P?(P.input=P.input.slice(N),P[0]=P[0].slice(N),P.index=y.lastIndex,y.lastIndex+=P[0].length):y.lastIndex=0:f&&P&&(y.lastIndex=y.global?P.index+P[0].length:T),g&&P&&P.length>1&&c.call(P[0],A,function(){for(S=1;S=51||!l(function(){var O=[];return O[y]=!1,O.concat()[0]!==O}),S=m("concat"),D=function(O){if(!c(O))return!1;var N=O[y];return N!==void 0?!!N:s(O)},R=!P||!S;a({target:"Array",proto:!0,forced:R},{concat:function(N){var B=d(this),W=g(B,0),M=0,$,X,U,z,at;for($=-1,U=arguments.length;$T)throw TypeError(A);for(X=0;X=T)throw TypeError(A);p(W,M++,at)}return W.length=M,W}})},"9bdd":function(r,u,t){var a=t("825a");r.exports=function(l,s,c,d){try{return d?s(a(c)[0],c[1]):s(c)}catch(p){var f=l.return;throw f!==void 0&&a(f.call(l)),p}}},"9bf2":function(r,u,t){var a=t("83ab"),l=t("0cfb"),s=t("825a"),c=t("c04e"),d=Object.defineProperty;u.f=a?d:function(p,g,m){if(s(p),g=c(g,!0),s(m),l)try{return d(p,g,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(p[g]=m.value),p}},"9ed3":function(r,u,t){var a=t("ae93").IteratorPrototype,l=t("7c73"),s=t("5c6c"),c=t("d44e"),d=t("3f8c"),f=function(){return this};r.exports=function(p,g,m){var h=g+" Iterator";return p.prototype=l(a,{next:s(1,m)}),c(p,h,!1,!0),d[h]=f,p}},"9f7f":function(r,u,t){var a=t("d039");function l(s,c){return RegExp(s,c)}u.UNSUPPORTED_Y=a(function(){var s=l("a","y");return s.lastIndex=2,s.exec("abcd")!=null}),u.BROKEN_CARET=a(function(){var s=l("^r","gy");return s.lastIndex=2,s.exec("str")!=null})},a2bf:function(r,u,t){var a=t("e8b5"),l=t("50c4"),s=t("0366"),c=function(d,f,p,g,m,h,E,y){for(var T=m,A=0,P=E?s(E,y,3):!1,S;A0&&a(S))T=c(d,f,S,l(S.length),T,h-1)-1;else{if(T>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[T]=S}T++}A++}return T};r.exports=c},a352:function(r,u){r.exports=o},a434:function(r,u,t){var a=t("23e7"),l=t("23cb"),s=t("a691"),c=t("50c4"),d=t("7b0b"),f=t("65f0"),p=t("8418"),g=t("1dde"),m=t("ae40"),h=g("splice"),E=m("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,T=Math.min,A=9007199254740991,P="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!h||!E},{splice:function(D,R){var O=d(this),N=c(O.length),B=l(D,N),W=arguments.length,M,$,X,U,z,at;if(W===0?M=$=0:W===1?(M=0,$=N-B):(M=W-2,$=T(y(s(R),0),N-B)),N+M-$>A)throw TypeError(P);for(X=f(O,$),U=0;U<$;U++)z=B+U,z in O&&p(X,U,O[z]);if(X.length=$,M<$){for(U=B;UN-$+M;U--)delete O[U-1]}else if(M>$)for(U=N-$;U>B;U--)z=U+$-1,at=U+M-1,z in O?O[at]=O[z]:delete O[at];for(U=0;UKt;)it.push(arguments[Kt++]);if(Rn=Y,!(!E(Y)&&H===void 0||C(H)))return h(Y)||(Y=function(ho,rn){if(typeof Rn=="function"&&(rn=Rn.call(this,ho,rn)),!C(rn))return rn}),it[1]=Y,he.apply(null,it)}})}jt[Gt][ae]||X(jt[Gt],ae,jt[Gt].valueOf),wt(jt,Ht),ct[vt]=!0},a630:function(r,u,t){var a=t("23e7"),l=t("4df4"),s=t("1c7e"),c=!s(function(d){Array.from(d)});a({target:"Array",stat:!0,forced:c},{from:l})},a640:function(r,u,t){var a=t("d039");r.exports=function(l,s){var c=[][l];return!!c&&a(function(){c.call(null,s||function(){throw 1},1)})}},a691:function(r,u){var t=Math.ceil,a=Math.floor;r.exports=function(l){return isNaN(l=+l)?0:(l>0?a:t)(l)}},ab13:function(r,u,t){var a=t("b622"),l=a("match");r.exports=function(s){var c=/./;try{"/./"[s](c)}catch{try{return c[l]=!1,"/./"[s](c)}catch{}}return!1}},ac1f:function(r,u,t){var a=t("23e7"),l=t("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(r,u,t){var a=t("825a");r.exports=function(){var l=a(this),s="";return l.global&&(s+="g"),l.ignoreCase&&(s+="i"),l.multiline&&(s+="m"),l.dotAll&&(s+="s"),l.unicode&&(s+="u"),l.sticky&&(s+="y"),s}},ae40:function(r,u,t){var a=t("83ab"),l=t("d039"),s=t("5135"),c=Object.defineProperty,d={},f=function(p){throw p};r.exports=function(p,g){if(s(d,p))return d[p];g||(g={});var m=[][p],h=s(g,"ACCESSORS")?g.ACCESSORS:!1,E=s(g,0)?g[0]:f,y=s(g,1)?g[1]:void 0;return d[p]=!!m&&!l(function(){if(h&&!a)return!0;var T={length:-1};h?c(T,1,{enumerable:!0,get:f}):T[1]=1,m.call(T,E,y)})}},ae93:function(r,u,t){var a=t("e163"),l=t("9112"),s=t("5135"),c=t("b622"),d=t("c430"),f=c("iterator"),p=!1,g=function(){return this},m,h,E;[].keys&&(E=[].keys(),"next"in E?(h=a(a(E)),h!==Object.prototype&&(m=h)):p=!0),m==null&&(m={}),!d&&!s(m,f)&&l(m,f,g),r.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:p}},b041:function(r,u,t){var a=t("00ee"),l=t("f5df");r.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(r,u,t){var a=t("83ab"),l=t("9bf2").f,s=Function.prototype,c=s.toString,d=/^\s*function ([^ (]*)/,f="name";a&&!(f in s)&&l(s,f,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})},b622:function(r,u,t){var a=t("da84"),l=t("5692"),s=t("5135"),c=t("90e3"),d=t("4930"),f=t("fdbf"),p=l("wks"),g=a.Symbol,m=f?g:g&&g.withoutSetter||c;r.exports=function(h){return s(p,h)||(d&&s(g,h)?p[h]=g[h]:p[h]=m("Symbol."+h)),p[h]}},b64b:function(r,u,t){var a=t("23e7"),l=t("7b0b"),s=t("df75"),c=t("d039"),d=c(function(){s(1)});a({target:"Object",stat:!0,forced:d},{keys:function(p){return s(l(p))}})},b727:function(r,u,t){var a=t("0366"),l=t("44ad"),s=t("7b0b"),c=t("50c4"),d=t("65f0"),f=[].push,p=function(g){var m=g==1,h=g==2,E=g==3,y=g==4,T=g==6,A=g==5||T;return function(P,S,D,R){for(var O=s(P),N=l(O),B=a(S,D,3),W=c(N.length),M=0,$=R||d,X=m?$(P,W):h?$(P,0):void 0,U,z;W>M;M++)if((A||M in N)&&(U=N[M],z=B(U,M,O),g)){if(m)X[M]=z;else if(z)switch(g){case 3:return!0;case 5:return U;case 6:return M;case 2:f.call(X,U)}else if(y)return!1}return T?-1:E||y?y:X}};r.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(r,u,t){var a=t("861d");r.exports=function(l,s){if(!a(l))return l;var c,d;if(s&&typeof(c=l.toString)=="function"&&!a(d=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(d=c.call(l))||!s&&typeof(c=l.toString)=="function"&&!a(d=c.call(l)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(r,u){r.exports=!1},c6b6:function(r,u){var t={}.toString;r.exports=function(a){return t.call(a).slice(8,-1)}},c6cd:function(r,u,t){var a=t("da84"),l=t("ce4e"),s="__core-js_shared__",c=a[s]||l(s,{});r.exports=c},c740:function(r,u,t){var a=t("23e7"),l=t("b727").findIndex,s=t("44d2"),c=t("ae40"),d="findIndex",f=!0,p=c(d);d in[]&&Array(1)[d](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!p},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),s(d)},c8ba:function(r,u){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}r.exports=t},c975:function(r,u,t){var a=t("23e7"),l=t("4d64").indexOf,s=t("a640"),c=t("ae40"),d=[].indexOf,f=!!d&&1/[1].indexOf(1,-0)<0,p=s("indexOf"),g=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!p||!g},{indexOf:function(h){return f?d.apply(this,arguments)||0:l(this,h,arguments.length>1?arguments[1]:void 0)}})},ca84:function(r,u,t){var a=t("5135"),l=t("fc6a"),s=t("4d64").indexOf,c=t("d012");r.exports=function(d,f){var p=l(d),g=0,m=[],h;for(h in p)!a(c,h)&&a(p,h)&&m.push(h);for(;f.length>g;)a(p,h=f[g++])&&(~s(m,h)||m.push(h));return m}},caad:function(r,u,t){var a=t("23e7"),l=t("4d64").includes,s=t("44d2"),c=t("ae40"),d=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!d},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cc12:function(r,u,t){var a=t("da84"),l=t("861d"),s=a.document,c=l(s)&&l(s.createElement);r.exports=function(d){return c?s.createElement(d):{}}},ce4e:function(r,u,t){var a=t("da84"),l=t("9112");r.exports=function(s,c){try{l(a,s,c)}catch{a[s]=c}return c}},d012:function(r,u){r.exports={}},d039:function(r,u){r.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(r,u,t){var a=t("428f"),l=t("da84"),s=function(c){return typeof c=="function"?c:void 0};r.exports=function(c,d){return arguments.length<2?s(a[c])||s(l[c]):a[c]&&a[c][d]||l[c]&&l[c][d]}},d1e7:function(r,u,t){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s=l&&!a.call({1:2},1);u.f=s?function(d){var f=l(this,d);return!!f&&f.enumerable}:a},d28b:function(r,u,t){var a=t("746f");a("iterator")},d2bb:function(r,u,t){var a=t("825a"),l=t("3bbe");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,c={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(c,[]),s=c instanceof Array}catch{}return function(p,g){return a(p),l(g),s?d.call(p,g):p.__proto__=g,p}}():void 0)},d3b7:function(r,u,t){var a=t("00ee"),l=t("6eeb"),s=t("b041");a||l(Object.prototype,"toString",s,{unsafe:!0})},d44e:function(r,u,t){var a=t("9bf2").f,l=t("5135"),s=t("b622"),c=s("toStringTag");r.exports=function(d,f,p){d&&!l(d=p?d:d.prototype,c)&&a(d,c,{configurable:!0,value:f})}},d58f:function(r,u,t){var a=t("1c0b"),l=t("7b0b"),s=t("44ad"),c=t("50c4"),d=function(f){return function(p,g,m,h){a(g);var E=l(p),y=s(E),T=c(E.length),A=f?T-1:0,P=f?-1:1;if(m<2)for(;;){if(A in y){h=y[A],A+=P;break}if(A+=P,f?A<0:T<=A)throw TypeError("Reduce of empty array with no initial value")}for(;f?A>=0:T>A;A+=P)A in y&&(h=g(h,y[A],A,E));return h}};r.exports={left:d(!1),right:d(!0)}},d784:function(r,u,t){t("ac1f");var a=t("6eeb"),l=t("d039"),s=t("b622"),c=t("9263"),d=t("9112"),f=s("species"),p=!l(function(){var y=/./;return y.exec=function(){var T=[];return T.groups={a:"7"},T},"".replace(y,"$")!=="7"}),g=function(){return"a".replace(/./,"$0")==="$0"}(),m=s("replace"),h=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),E=!l(function(){var y=/(?:)/,T=y.exec;y.exec=function(){return T.apply(this,arguments)};var A="ab".split(y);return A.length!==2||A[0]!=="a"||A[1]!=="b"});r.exports=function(y,T,A,P){var S=s(y),D=!l(function(){var M={};return M[S]=function(){return 7},""[y](M)!=7}),R=D&&!l(function(){var M=!1,$=/a/;return y==="split"&&($={},$.constructor={},$.constructor[f]=function(){return $},$.flags="",$[S]=/./[S]),$.exec=function(){return M=!0,null},$[S](""),!M});if(!D||!R||y==="replace"&&!(p&&g&&!h)||y==="split"&&!E){var O=/./[S],N=A(S,""[y],function(M,$,X,U,z){return $.exec===c?D&&!z?{done:!0,value:O.call($,X,U)}:{done:!0,value:M.call(X,$,U)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),B=N[0],W=N[1];a(String.prototype,y,B),a(RegExp.prototype,S,T==2?function(M,$){return W.call(M,this,$)}:function(M){return W.call(M,this)})}P&&d(RegExp.prototype[S],"sham",!0)}},d81d:function(r,u,t){var a=t("23e7"),l=t("b727").map,s=t("1dde"),c=t("ae40"),d=s("map"),f=c("map");a({target:"Array",proto:!0,forced:!d||!f},{map:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})},da84:function(r,u,t){(function(a){var l=function(s){return s&&s.Math==Math&&s};r.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(r,u,t){var a=t("23e7"),l=t("83ab"),s=t("56ef"),c=t("fc6a"),d=t("06cf"),f=t("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(g){for(var m=c(g),h=d.f,E=s(m),y={},T=0,A,P;E.length>T;)P=h(m,A=E[T++]),P!==void 0&&f(y,A,P);return y}})},dbf1:function(r,u,t){(function(a){t.d(u,"a",function(){return s});function l(){return typeof window<"u"?window.console:a.console}var s=l()}).call(this,t("c8ba"))},ddb0:function(r,u,t){var a=t("da84"),l=t("fdbc"),s=t("e260"),c=t("9112"),d=t("b622"),f=d("iterator"),p=d("toStringTag"),g=s.values;for(var m in l){var h=a[m],E=h&&h.prototype;if(E){if(E[f]!==g)try{c(E,f,g)}catch{E[f]=g}if(E[p]||c(E,p,m),l[m]){for(var y in s)if(E[y]!==s[y])try{c(E,y,s[y])}catch{E[y]=s[y]}}}}},df75:function(r,u,t){var a=t("ca84"),l=t("7839");r.exports=Object.keys||function(c){return a(c,l)}},e01a:function(r,u,t){var a=t("23e7"),l=t("83ab"),s=t("da84"),c=t("5135"),d=t("861d"),f=t("9bf2").f,p=t("e893"),g=s.Symbol;if(l&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var m={},h=function(){var S=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),D=this instanceof h?new g(S):S===void 0?g():g(S);return S===""&&(m[D]=!0),D};p(h,g);var E=h.prototype=g.prototype;E.constructor=h;var y=E.toString,T=String(g("test"))=="Symbol(test)",A=/^Symbol\((.*)\)[^)]+$/;f(E,"description",{configurable:!0,get:function(){var S=d(this)?this.valueOf():this,D=y.call(S);if(c(m,S))return"";var R=T?D.slice(7,-1):D.replace(A,"$1");return R===""?void 0:R}}),a({global:!0,forced:!0},{Symbol:h})}},e163:function(r,u,t){var a=t("5135"),l=t("7b0b"),s=t("f772"),c=t("e177"),d=s("IE_PROTO"),f=Object.prototype;r.exports=c?Object.getPrototypeOf:function(p){return p=l(p),a(p,d)?p[d]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?f:null}},e177:function(r,u,t){var a=t("d039");r.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(r,u,t){var a=t("fc6a"),l=t("44d2"),s=t("3f8c"),c=t("69f3"),d=t("7dd0"),f="Array Iterator",p=c.set,g=c.getterFor(f);r.exports=d(Array,"Array",function(m,h){p(this,{type:f,target:a(m),index:0,kind:h})},function(){var m=g(this),h=m.target,E=m.kind,y=m.index++;return!h||y>=h.length?(m.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:y,done:!1}:E=="values"?{value:h[y],done:!1}:{value:[y,h[y]],done:!1}},"values"),s.Arguments=s.Array,l("keys"),l("values"),l("entries")},e439:function(r,u,t){var a=t("23e7"),l=t("d039"),s=t("fc6a"),c=t("06cf").f,d=t("83ab"),f=l(function(){c(1)}),p=!d||f;a({target:"Object",stat:!0,forced:p,sham:!d},{getOwnPropertyDescriptor:function(m,h){return c(s(m),h)}})},e538:function(r,u,t){var a=t("b622");u.f=a},e893:function(r,u,t){var a=t("5135"),l=t("56ef"),s=t("06cf"),c=t("9bf2");r.exports=function(d,f){for(var p=l(f),g=c.f,m=s.f,h=0;h"u"||!(Symbol.iterator in Object(C)))){var I=[],w=!0,K=!1,Q=void 0;try{for(var tt=C[Symbol.iterator](),st;!(w=(st=tt.next()).done)&&(I.push(st.value),!(x&&I.length===x));w=!0);}catch(At){K=!0,Q=At}finally{try{!w&&tt.return!=null&&tt.return()}finally{if(K)throw Q}}return I}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function m(C,x){(x==null||x>C.length)&&(x=C.length);for(var I=0,w=new Array(x);Ii!=="processing"),co=()=>{const i=Dt([]),n=Dt({}),e=Dt(void 0),o=Dt(""),r=Dt([]),u=Dt(Bu),t=Dt(0),a=()=>({status:i.value,data:n.value,advanced_data_filter:e.value,search:o.value,stage:r.value});return{stageIds:r,filterStatus:i,filterData:n,filterDataCondition:e,filterSearch:o,limit:u,offset:t,filterFactory:a,labelOption:c=>ur({status:c}).text,requestDataFactory:()=>({filter:a(),limit:u.value,offset:t.value})}},We=i=>i!==void 0&&"key"in i&&"comparator"in i&&"value"in i,xn=()=>({key:"",comparator:nr[0],value:""}),fo=i=>i!==void 0&&"operator"in i,Xe=i=>i!==void 0&&fo(i)&&"conditions"in i&&Array.isArray(i.conditions),Ir=i=>i!==void 0&&fo(i)&&"condition"in i&&We(i.condition),Ze=Br[0],po=()=>({operator:Ze,conditions:[xn()]}),Vu=3,zu=({kanbanStagesStorage:i,kanbanRepository:n})=>{const e=Dt([]),o=Dt([]),r=$t(()=>e.value.filter(d=>!o.value.map(f=>f.stage.id).includes(d.id))),u=async()=>{o.value=[]},t=d=>{o.value=o.value.filter(f=>f.stage.id!==d),i.set(o.value.map(f=>f.stage.id).filter(f=>f!==d))},a=async(d,f)=>{if(d)o.value=[...o.value.slice(0,f),{stage:d,limit:De,offset:0},...o.value.slice(f+1)];else{const p=o.value[f].stage;return o.value=[...o.value.slice(0,f),...o.value.slice(f+1)],p}return i.set(o.value.map(p=>p.stage.id)),d},l=async d=>{const f=o.value[d.moved.oldIndex];a(null,d.moved.oldIndex),o.value=[...o.value.slice(0,d.moved.newIndex),f,...o.value.slice(d.moved.newIndex)],i.set(o.value.map(p=>p.stage.id))},s=d=>{o.value=d.reduce((f,p)=>{const g=e.value.find(m=>m.id===p);return g&&f.push({stage:g,limit:De,offset:0}),f},[])};return{setup:async()=>{var f;e.value=await n.getStages();const d=(f=i.get())!=null?f:[];if(d.length===0){const p=await n.getPath(Vu);i.set(p),s(p)}else o.value=d.map(p=>{const g=e.value.find(m=>m.id===p);return g?{stage:g,limit:De,offset:0}:null}).filter(Boolean)},allStages:e,selectedStages:o,nonSelectedStages:r,clearSelection:u,unselect:t,setStage:a,reorderStages:l,initSelection:s}},De=10,Hu=2e3,Wu=({kanbanRepository:i,kanbanStagesStorage:n,stageRunRepository:e,router:o})=>{const r=co(),u=zu({kanbanStagesStorage:n,kanbanRepository:i}),t=Dt({columns:[],next_stage_options:[]}),a=async()=>{try{const S=u.selectedStages.value,D=S.map(X=>(r.stageIds.value=[X.stage.id],i.getData(r.requestDataFactory()))),R={columns:[]},O=new Set,B=(await Promise.all(D)).map((X,U)=>({...X,stage:S[U].stage})),W=u.selectedStages.value,M=t.value.columns.map(X=>X.stage_run_cards).flat();for(const X of W){const U=B.find(z=>z.stage.id===X.stage.id);if(!U){R.columns.push({stage_run_cards:[],selected_stage:X.stage,total_count:0,loading:!1});continue}R.columns.push({stage_run_cards:U.stage_run_cards.map(z=>{var Ot;const at=z.id,ct=(Ot=M.find(ft=>ft.id===at))==null?void 0:Ot.loading;return{...z,loading:!!ct}}),selected_stage:X.stage,total_count:U.total_count,loading:!1});for(const z of U.not_found_stages)O.add(z)}const $=Array.from(O);for(const X of $)u.unselect(X);return{columns:R.columns,next_stage_options:u.nonSelectedStages.value}}catch(S){return Io(S),console.error(S),t.value}};function l(S){const D=S.selected_stage.id,R=u.selectedStages.value.find(O=>O.stage.id===D);return R!=null&&R.limit?R.limitO.stage.id===S.selected_stage.id);D&&(D.limit=((R=D.limit)!=null?R:0)+De,t.value=await a())}async function c(S){const D=u.selectedStages.value.find(R=>R.stage.id===S);D&&D.limit&&D.limit>De&&(D.limit-=De,t.value=await a())}async function d(S,D){const R=await u.setStage(S,D);if(S===null){u.unselect(R.id),t.value.columns=t.value.columns.filter(W=>W.selected_stage.id!==R.id);const O=u.allStages.value,N=O.findIndex(W=>W.id===R.id);let B=0;for(const W of t.value.next_stage_options)O.findIndex($=>$.id===W.id)({...R,stage_run_cards:R.stage_run_cards.map(O=>O.id===S?{...O,loading:D}:O)}))}const m=async S=>{await u.setup(),t.value={columns:u.selectedStages.value.map(D=>({stage_run_cards:[],selected_stage:D.stage,total_count:0,loading:!0})),next_stage_options:u.nonSelectedStages.value},S||E()},h=async()=>{t.value=await a()},{startPolling:E,endPolling:y}=Lr({interval:Hu,task:async()=>{await h()}});return{kanbanState:t,increasePagination:s,hasPagination:l,seeLess:c,setStage:d,addStage:f,cardRunHandler:async(S,D)=>{const R=S.selected_stage,O=D.id;if(R.type==="script"&&await i.continueScript(R.id,O),R.type==="form"){const N=o.resolve({path:`/${R.path}`,query:O?{[Ko]:O}:{}});window.open(N.href,O)}},cardRetryHandler:async S=>{g(S.id,!0);try{await(e==null?void 0:e.retry(S.id))}catch{Oo.error({message:"Failed to retry thread"})}},setup:m,startPolling:E,tearDown:()=>y(),reorderStages:p,filterController:r,setLoading:g,loadState:h}},Xu=Ut({__name:"StageRunData",props:{data:{}},setup(i){return(n,e)=>(j(),Z(b(ge),{direction:"vertical",style:{overflow:"hidden"}},{default:L(()=>[(j(!0),ot(_t,null,se(n.data,o=>(j(),ot("div",{key:o.key,class:"tree"},[G(b(Re),{strong:""},{default:L(()=>[lt(Pt(o.key),1)]),_:2},1024),G(b(To),{"tree-data":b(zo)(o.value),selectable:!1},null,8,["tree-data"])]))),128))]),_:1}))}});const Yn=xe(Xu,[["__scopeId","data-v-af388efb"]]),Zu={key:0},Yu={key:1,class:"terminal"},Ju=Ut({__name:"ExecutionInspector",props:{logs:{}},setup(i){return(n,e)=>n.logs.length===0?(j(),ot("span",Zu)):(j(),ot("div",Yu,[G(b(yt),{vertical:""},{default:L(()=>[(j(!0),ot(_t,null,se(n.logs,o=>(j(),ot("pre",{key:o.executionId,class:"log-text"},Pt(o.payload.text),1))),128))]),_:1})]))}});const Qu=xe(Ju,[["__scopeId","data-v-1edcaf0f"]]),ku=i=>(wo("data-v-3be7e41a"),i=i(),Lo(),i),qu={key:1},_u={key:1},tc=ku(()=>Ct("span",null,"[Deleted Stage]",-1)),ec=["onClick"],nc=Ut({__name:"StageRunInspector",props:{stageRun:{},kanbanRepository:{},stageRunRepository:{}},emits:["close"],setup(i,{emit:n}){const e=i;function o(a){return Object.entries(a).map(([l,s])=>({key:l,value:s,type:typeof s}))}const{result:r,loading:u}=tr(()=>{var a;return e.kanbanRepository.getLogs((a=e.stageRun)==null?void 0:a.id)}),t=(a,l)=>{var s;a.stopPropagation(),(s=e.stageRunRepository)==null||s.fork(l),n("close")};return(a,l)=>(j(),Z(b(Yo),{open:"",title:"Thread details",size:"large",onClose:l[0]||(l[0]=s=>n("close"))},{extra:L(()=>[G(b(cr),null,{default:L(()=>[G(b(_e),{style:{"font-weight":"600"}},{default:L(()=>{var s;return[lt(Pt(b(ur)({status:(s=a.stageRun)==null?void 0:s.status}).text),1)]}),_:1}),lt(" "+Pt(b(Ho)(new Date(a.stageRun.created_at),{addSuffix:!0})),1)]),_:1})]),default:L(()=>{var s,c,d;return[(s=a.stageRun)!=null&&s.assignee?(j(),Z(b(cr),{key:0},{default:L(()=>{var f;return[lt(" Assignee: "+Pt((f=a.stageRun)==null?void 0:f.assignee),1)]}),_:1})):ut("",!0),((c=a.stageRun)==null?void 0:c.content)&&((d=a.stageRun)==null?void 0:d.content.length)>0?(j(),ot("div",qu,[G(b(on),{level:4},{default:L(()=>[lt("Current data")]),_:1}),G(Yn,{data:a.stageRun.content},null,8,["data"])])):ut("",!0),G(b(on),{level:4,style:{"margin-bottom":"30px"}},{default:L(()=>[lt(" Timeline ")]),_:1}),b(u)?(j(),Z(b(Po),{key:2})):b(r)?(j(),Z(b(Wo),{key:3},{default:L(()=>[(j(!0),ot(_t,null,se(b(r),({stage:f,stage_run:p,logs:g})=>(j(),Z(b(Xo),{key:p.id},{default:L(()=>[G(b(Nr),{ghost:"","expand-icon-position":"end"},{default:L(()=>[G(b(Mr),{class:"panel"},Ro({header:L(()=>[f?(j(),Z(b(yt),{key:0,align:"center",gap:15},{default:L(()=>[(j(),Z(An(b(On)(f.type)))),g.length?(j(),ot("span",_u,Pt(f.title),1)):(j(),Z(b(Kn),{key:0,placement:"right",title:"No logs"},{default:L(()=>[lt(Pt(f.title),1)]),_:2},1024))]),_:2},1024)):(j(),Z(b(yt),{key:1,align:"center",gap:15},{default:L(()=>[G(b(Vo)),tc]),_:1}))]),default:L(()=>[o(p.data).length||g.length?(j(),Z(b(yt),{key:0,vertical:""},{default:L(()=>[o(p.data).length?(j(),Z(b(yt),{key:0,gap:0,vertical:""},{default:L(()=>[G(b(on),{level:5},{default:L(()=>[lt(" Output data ")]),_:1}),G(Yn,{data:o(p.data)},null,8,["data"])]),_:2},1024)):ut("",!0),g.length?(j(),Z(b(yt),{key:1,vertical:"",gap:0},{default:L(()=>[G(b(Zo)),G(b(on),{level:5},{default:L(()=>[lt(" Logs ")]),_:1}),G(Qu,{logs:g},null,8,["logs"])]),_:2},1024)):ut("",!0)]),_:2},1024)):(j(),Z(b(Dr),{key:1,description:"No logs"}))]),_:2},[a.stageRunRepository.forkEnabled&&f?{name:"extra",fn:L(()=>[Ct("span",{onClick:m=>t(m,p.id)},[G(b(yt),{gap:"small"},{default:L(()=>[G(b(Ta),{size:"22"}),G(b(Do),null,{default:L(()=>[lt("Fork")]),_:1})]),_:1})],8,ec)]),key:"0"}:void 0]),1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})):ut("",!0)]}),_:1}))}});const rc=xe(nc,[["__scopeId","data-v-3be7e41a"]]),Tr="_thread_title",oc=Ut({__name:"Card",props:{stage:{},card:{}},emits:["inspect","run","retry"],setup(i,{emit:n}){const e=i,o=$t(()=>{const s=e.card.content.find(d=>d.key===Tr);return s?s.value:new Date(String(e.card.updated_at)).toLocaleString()}),r=$t(()=>e.card.content.filter(s=>s.key!==Tr)),u=s=>{s.stopPropagation(),n("run")},t=s=>{s.stopPropagation(),n("retry")},a=$t(()=>ur({status:e.card.status}).text),l=$t(()=>jo(new Date(String(e.card.updated_at))));return(s,c)=>{var d,f;return j(),Z(b($r),{size:"small",style:{cursor:"pointer"},"head-style":{"border-bottom":((d=s.card.content)==null?void 0:d.length)>0?"":"none"},"body-style":{display:((f=s.card.content)==null?void 0:f.length)>0?"block":"none"},onClick:c[0]||(c[0]=p=>s.$emit("inspect"))},{title:L(()=>[G(b(Kn),{title:o.value.length>24?o.value:void 0},{default:L(()=>[lt(Pt(o.value),1)]),_:1},8,["title"])]),default:L(()=>[G(b(ge),{direction:"vertical",style:{"max-height":"300px",width:"100%",overflow:"hidden"}},{default:L(()=>[G(Yn,{data:r.value,disabled:!0},null,8,["data"]),s.card.assignee?(j(),Z(b(_e),{key:0},{default:L(()=>[lt(Pt(s.card.assignee),1)]),_:1})):ut("",!0)]),_:1}),G(b(yt),{gap:"10",style:{"margin-top":"8px"}},{default:L(()=>[G(b(Kn),null,{title:L(()=>[lt(Pt(s.card.updated_at),1)]),default:L(()=>[G(b(Re),{type:"secondary",style:{"font-size":"12px",display:"flex","align-items":"center",gap:"4px"}},{default:L(()=>[G(b(Qo),{size:14}),lt(" Updated at: "+Pt(l.value),1)]),_:1})]),_:1})]),_:1})]),actions:L(()=>[s.card.status==="waiting"?(j(),Z(b(ne),{key:0,onClick:u},{default:L(()=>[["form","script"].includes(s.stage.type)?(j(),Z(b(yt),{key:0,align:"center",gap:"6"},{default:L(()=>[G(b(Ja),{size:"16"}),lt(" Continue this thread ")]),_:1})):ut("",!0)]),_:1})):ut("",!0),s.card.status==="failed"?(j(),Z(b(ne),{key:1,disabled:s.card.loading,onClick:t},{default:L(()=>[G(b(yt),{align:"center",gap:"6"},{default:L(()=>[G(b(Jo),{size:"14"}),lt(" Retry ")]),_:1})]),_:1},8,["disabled"])):ut("",!0)]),extra:L(()=>[G(b(_e),null,{default:L(()=>[lt(Pt(a.value)+" ",1),a.value==="Running"?(j(),Z(b(Fr),{key:0,spin:!0,style:{"margin-left":"4px"}})):ut("",!0)]),_:1})]),_:1},8,["head-style","body-style"])}}});class ac{constructor(n,e,o){this.router=n,this.column=e,this.kanbanRepository=o}get stage(){return this.column.selected_stage}get canStart(){return this.stage.can_be_started}get launchLink(){return!this.stage.can_be_started||this.stage.type!=="form"||!this.stage.path?null:this.router.resolve({path:`/${this.stage.path}`}).href}click(){if(this.launchLink)return window.open(this.launchLink,"_blank");if(this.stage.type==="job")return this.kanbanRepository.startJob(this.stage.id).catch(console.error)}}const ic={class:"draggable-handler"},sc=Ut({__name:"Column",props:{router:{},hasPagination:{type:Boolean},column:{},kanbanRepository:{}},emits:["increasePagination","cardRun","stageUpdate","cardInspection","cardRetry"],setup(i,{emit:n}){const e=i,o=$t(()=>new ac(e.router,e.column,e.kanbanRepository));return(r,u)=>(j(),Z(b(ge),{direction:"vertical",class:"stage-column"},{default:L(()=>[Ct("div",ic,[G(b(ge),{direction:"horizontal",style:{width:"100%","justify-content":"space-between"}},{default:L(()=>[G(b(yt),{gap:"8",style:{"max-width":"200px","padding-left":"10px"}},{default:L(()=>[G(b(yt),null,{default:L(()=>[(j(),Z(An(b(On)(r.column.selected_stage.type)),{size:"20"}))]),_:1}),G(b(Re),{ellipsis:"",content:r.column.selected_stage.title},null,8,["content"])]),_:1}),G(b(ge),null,{default:L(()=>[r.column.loading?ut("",!0):(j(),Z(b(Re),{key:0,type:"secondary",style:{"font-size":"small","margin-right":"2px"}},{default:L(()=>[lt(Pt(r.column.total_count),1)]),_:1})),r.column.loading?(j(),Z(b(Ur),{key:1})):ut("",!0),G(b(ne),{type:"text",style:{padding:"4px"},onClick:u[0]||(u[0]=t=>n("stageUpdate",null))},{default:L(()=>[G(b(Re),{type:"secondary",style:{"font-size":"small","margin-right":"2px"}},{default:L(()=>[G(b(Mo))]),_:1})]),_:1})]),_:1})]),_:1})]),G(b(ge),{direction:"vertical",style:{width:"100%"}},{default:L(()=>[G(b(yt),{justify:"center",align:"center"},{default:L(()=>[r.column.loading?(j(),Z(b(ta),{key:0,active:"",block:"",size:"large",class:"skeleton"})):ut("",!0)]),_:1}),!r.column.loading&&r.column.stage_run_cards.length===0?(j(),Z(b(Dr),{key:0})):ut("",!0),(j(!0),ot(_t,null,se(r.column.stage_run_cards,t=>(j(),Z(oc,{key:t.id,stage:r.column.selected_stage,card:t,onInspect:a=>n("cardInspection",t),onRun:a=>n("cardRun",t),onRetry:a=>n("cardRetry",t)},null,8,["stage","card","onInspect","onRun","onRetry"]))),128)),r.hasPagination?(j(),Z(b(ne),{key:1,style:{width:"100%"},onClick:u[1]||(u[1]=t=>n("increasePagination"))},{default:L(()=>[lt("See more")]),_:1})):ut("",!0),o.value.canStart?(j(),Z(b(ne),{key:2,style:{width:"100%"},onClick:u[2]||(u[2]=()=>o.value.click())},{default:L(()=>[lt(" Start new thread ")]),_:1})):ut("",!0)]),_:1})]),_:1}))}});const lc=xe(sc,[["__scopeId","data-v-8a35b2bd"]]),uc=Ut({__name:"EmptyColumn",props:{stages:{}},emits:["stageUpdate"],setup(i,{emit:n}){const e=o=>{n("stageUpdate",o)};return(o,r)=>(j(),Z(b(ge),{direction:"vertical"},{default:L(()=>[(j(!0),ot(_t,null,se(o.stages,u=>(j(),Z(b(_e),{key:u.id,class:"tag",onClick:t=>e(u)},{default:L(()=>[G(b(yt),{gap:"8",style:{"max-width":"200px","justify-content":"center","align-items":"center"}},{default:L(()=>[G(b(yt),null,{default:L(()=>[(j(),Z(An(b(On)(u.type)),{size:"20"}))]),_:2},1024),G(b(Re),{ellipsis:"",content:u.title},null,8,["content"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}))}});const cc=xe(uc,[["__scopeId","data-v-f5bf528d"]]),go=Ut({__name:"Condition",props:{condition:{}},emits:["deleteCondition"],setup(i,{emit:n}){return(e,o)=>(j(),Z(b(No),{style:{width:"100%"},compact:""},{default:L(()=>[G(b(Vn),{value:e.condition.key,"onUpdate:value":o[0]||(o[0]=r=>e.condition.key=r),style:{width:"30%"}},null,8,["value"]),G(b(kn),{value:e.condition.comparator,"onUpdate:value":o[1]||(o[1]=r=>e.condition.comparator=r),style:{width:"20%"}},{default:L(()=>[(j(!0),ot(_t,null,se(b(nr),r=>(j(),Z(b(Qn),{key:r,value:r},{default:L(()=>[lt(Pt(r),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),G(b(Vn),{value:e.condition.value,"onUpdate:value":o[2]||(o[2]=r=>e.condition.value=r),style:{width:"40%"}},null,8,["value"]),G(b(ne),{style:{width:"10%",padding:"0"},onClick:o[3]||(o[3]=r=>n("deleteCondition"))},{default:L(()=>[G(b(Gr))]),_:1})]),_:1}))}}),mo=Ut({__name:"LogicalGroupActionButtons",emits:["update:addCondition","update:addLogicalGroup"],setup(i,{emit:n}){const e=()=>{n("update:addCondition")},o=()=>{n("update:addLogicalGroup")};return(r,u)=>(j(),ot(_t,null,[G(b(ne),{type:"link",onClick:e},{default:L(()=>[G(b(gr)),lt(" Condition")]),_:1}),G(b(ne),{type:"link",onClick:o},{default:L(()=>[G(b(gr)),lt(" Group")]),_:1})],64))}}),dc={style:{width:"50px","text-align":"end"}},fc="Where",vo=Ut({__name:"LogicalGroupMultipleConditions",props:{logicalGroup:{}},emits:["deleteLogicalGroup"],setup(i,{emit:n}){const e=i,o=()=>{e.logicalGroup.conditions===void 0&&(e.logicalGroup.conditions=[]),e.logicalGroup.conditions.push(xn())},r=a=>{e.logicalGroup.conditions!==void 0&&e.logicalGroup.conditions.splice(a,1)},u=()=>{e.logicalGroup.conditions===void 0&&(e.logicalGroup.conditions=[]),e.logicalGroup.conditions.push(po())},t=async a=>{if(await jr("Are you sure you want to delete this group?")){if(e.logicalGroup.conditions===void 0)return;e.logicalGroup.conditions.splice(a,1)}};return(a,l)=>(j(),Z(b($r),{style:{width:"100%"}},{title:L(()=>[G(b(kn),{value:a.logicalGroup.operator,"onUpdate:value":l[0]||(l[0]=s=>a.logicalGroup.operator=s),style:{width:"100px"}},{default:L(()=>[(j(!0),ot(_t,null,se(b(Br),s=>(j(),Z(b(Qn),{key:s,value:s},{default:L(()=>[lt(Pt(s),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),G(mo,{"onUpdate:addCondition":o,"onUpdate:addLogicalGroup":u})]),extra:L(()=>[G(b(ne),{type:"text",onClick:l[1]||(l[1]=()=>n("deleteLogicalGroup"))},{default:L(()=>[G(b(Gr))]),_:1})]),default:L(()=>[Jn(a.$slots,"default",{},()=>[(j(!0),ot(_t,null,se(a.logicalGroup.conditions,(s,c)=>(j(),Z(b(yt),{key:c,style:{"margin-bottom":"16px","align-items":"center",gap:"8px"}},{default:L(()=>[Ct("span",dc,Pt(c===0?fc:a.logicalGroup.operator),1),s!==void 0&&"key"in s?(j(),Z(go,{key:0,condition:s,onDeleteCondition:d=>r(c)},null,8,["condition","onDeleteCondition"])):s&&"conditions"in s&&b(Xe)(s)?(j(),Z(vo,{key:1,"logical-group":s,onDeleteLogicalGroup:d=>t(c)},null,8,["logical-group","onDeleteLogicalGroup"])):ut("",!0)]),_:2},1024))),128))])]),_:3}))}}),pc=Ut({__name:"AdvancedDataFilter",emits:["update:filterDataCondition"],setup(i,{emit:n}){const e=Dt(void 0),o=()=>{const l=xn();if(e.value===void 0)e.value=l;else if(We(e.value)){const s=e.value;e.value={operator:Ze,conditions:[s,l]}}else if("condition"in e.value&&Ir(e.value)){const s=e.value;e.value={operator:Ze,conditions:[s,l]}}else"conditions"in e.value&&Xe(e.value)&&e.value.conditions.push(l)},r=()=>{We(e.value)&&(e.value=void 0)},u=()=>{const l=xn(),s=po();if(e.value===void 0)e.value=s;else if(We(e.value)){const c=e.value;e.value={operator:Ze,conditions:[c,l]}}else if("condition"in e.value&&Ir(e.value)){const c=e.value;e.value={operator:Ze,conditions:[c,l]}}else"conditions"in e.value&&Xe(e.value)&&e.value.conditions.push(s)},t=async()=>{await jr("Are you sure you want to delete this filter group?")&&(e.value=void 0)};return wr(e,()=>{n("update:filterDataCondition",e.value)},{deep:!0}),(l,s)=>(j(),Z(b(yt),{vertical:""},{default:L(()=>[b(Xe)(e.value)?ut("",!0):(j(),Z(b(yt),{key:0,style:{"margin-bottom":"16px"}},{default:L(()=>[G(mo,{"onUpdate:addCondition":o,"onUpdate:addLogicalGroup":u})]),_:1})),e.value!==void 0&&"key"in e.value&&b(We)(e.value)?(j(),Z(go,{key:1,condition:e.value,"onUpdate:condition":s[0]||(s[0]=c=>e.value=c),onDeleteCondition:r},null,8,["condition"])):e.value&&"conditions"in e.value&&b(Xe)(e.value)?(j(),Z(vo,{key:2,logicalGroup:e.value,"onUpdate:logicalGroup":s[1]||(s[1]=c=>e.value=c),onDeleteLogicalGroup:t},null,8,["logicalGroup"])):ut("",!0)]),_:1}))}}),gc=Ut({__name:"FilterKanbanData",props:{filterController:{}},setup(i){const n=i,e=l=>{u.value=l},{filterController:o}=Fo(n),{labelOption:r,filterStatus:u,filterDataCondition:t}=o.value,a=l=>{t.value=l};return(l,s)=>(j(),Z(b(Nr),{ghost:""},{default:L(()=>[G(b(Mr),{header:"Filters"},{default:L(()=>[G(b($o),null,{default:L(()=>[G(b(dr),{label:"Status"},{default:L(()=>[G(b(kn),{value:b(u),style:{width:"325px"},mode:"multiple","onUpdate:value":s[0]||(s[0]=c=>e(c))},{default:L(()=>[(j(!0),ot(_t,null,se(b(Ku),c=>(j(),Z(b(Qn),{key:c,value:c},{default:L(()=>[lt(Pt(b(r)(c)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),G(b(dr),{label:"Data"},{default:L(()=>[G(pc,{"onUpdate:filterDataCondition":s[1]||(s[1]=c=>a(c))})]),_:1})]),_:1})]),_:1})]),_:1}))}});function mc(){const i=Dt({state:"closed"});function n(){i.value={state:"closed"}}function e(r,u){i.value={state:"stage-run",stageRun:u}}const o=$t(()=>"stageRun"in i.value?i.value.stageRun:null);return{closeDrawer:n,inspectStageRun:e,drawerState:i,selectedStageRunForDrawer:o}}const vc={class:"stages-container"},hc={class:"stages-content"},yc=Ut({__name:"Kanban",props:{kanbanStagesStorage:{},kanbanRepository:{},stageRunRepository:{}},setup(i){const n=i,e=Uo(),{closeDrawer:o,inspectStageRun:r,drawerState:u,selectedStageRunForDrawer:t}=mc(),{kanbanState:a,setStage:l,addStage:s,setup:c,tearDown:d,cardRunHandler:f,cardRetryHandler:p,increasePagination:g,hasPagination:m,reorderStages:h,startPolling:E,filterController:y}=Wu({kanbanRepository:n.kanbanRepository,kanbanStagesStorage:n.kanbanStagesStorage,stageRunRepository:n.stageRunRepository,router:e}),T=Dt([]);return wr(()=>{var A;return(A=a.value)==null?void 0:A.columns},A=>{A!==void 0&&(T.value=A)}),qn(c),_n(d),(A,P)=>(j(),ot("div",null,[G(b(yt),{vertical:"",style:{height:"100%"}},{default:L(()=>[G(gc,{"filter-controller":b(y)},null,8,["filter-controller"]),Ct("div",vc,[Ct("div",hc,[G(b(ge),{align:"start"},{default:L(()=>[G(b(Bi),{modelValue:T.value,"onUpdate:modelValue":P[1]||(P[1]=S=>T.value=S),class:"draggable","item-key":S=>S.selected_stage.id,"ghost-class":"ghost","force-fallback":b(ni),handle:".draggable-handler",onStart:b(d),onEnd:b(E),onChange:b(h)},{item:L(({element:S,index:D})=>[(j(),Z(b(lc),{key:S.selected_stage.id,column:S,router:b(e),"has-pagination":b(m)(S),"kanban-repository":n.kanbanRepository,onIncreasePagination:R=>b(g)(S),onCardInspection:R=>b(r)(S,R),onCardRun:R=>b(f)(S,R),onCardRetry:P[0]||(P[0]=R=>b(p)(R)),onStageUpdate:R=>b(l)(R,D)},null,8,["column","router","has-pagination","kanban-repository","onIncreasePagination","onCardInspection","onCardRun","onStageUpdate"]))]),_:1},8,["modelValue","item-key","force-fallback","onStart","onEnd","onChange"]),G(b(cc),{stages:b(a).next_stage_options||[],onStageUpdate:P[2]||(P[2]=S=>b(s)(S))},null,8,["stages"])]),_:1})])])]),_:1}),b(u).state==="stage-run"&&b(t)?(j(),Z(b(rc),{key:0,"kanban-repository":n.kanbanRepository,"stage-run":b(t),"stage-run-repository":n.stageRunRepository,onClose:b(o)},null,8,["kanban-repository","stage-run","stage-run-repository","onClose"])):ut("",!0)]))}});const ed=xe(yc,[["__scopeId","data-v-776f7f6d"]]),Sc=2e3,Pr=[{title:"Thread",dataIndex:"thread",align:"center"},{title:"Stage",dataIndex:"stage",align:"center"},{title:"Status",dataIndex:"status",align:"center"},{title:"Updated at",dataIndex:"updated_at",align:"center"}],bc=({kanbanRepository:i})=>{const n=co(),e=Dt(0),o=Dt(1),r=Dt(10),u=async()=>{n.limit.value=r.value*o.value,n.offset.value=(o.value-1)*r.value;const f=n.requestDataFactory(),p=await i.getData(f);return e.value=p.total_count,p},t=async()=>{var P,S;const f=await u(),g=(await i.getStages()).reduce((D,R)=>(D[R.id]=R,D),{}),m=(P=f.stage_run_cards)==null?void 0:P.map(D=>D.content.map(R=>R.key)).flat(),h=Array.from(new Set(m)),y=[...Pr.map(D=>D.title),...h],T=(S=f.stage_run_cards)==null?void 0:S.map(D=>{var N,B;const R=D.stage?g[D.stage]:void 0,O={};for(const W of D.content)O[W.key]=JSON.stringify(W.value);return[D.id,(N=R==null?void 0:R.title)!=null?N:"",D.status,(B=D.updated_at)!=null?B:"",...h.map(W=>O[W]||"")]}),A=new Date;return{columns:y,rows:T!=null?T:[],fileName:`threads-${A.toISOString()}`}},a=tr(async()=>{var f,p,g;try{const m=await u(),E=(await i.getStages()).reduce((D,R)=>(D[R.id]=R,D),{}),y=(p=(f=m.stage_run_cards)==null?void 0:f.map(D=>D.content.map(R=>R.key)).flat())!=null?p:[],T=Array.from(new Set(y)),A=(g=m.stage_run_cards)==null?void 0:g.map(D=>{const R=D.stage?E[D.stage]:void 0,O={thread:D.id,type:(R==null?void 0:R.type)||"",stage:(R==null?void 0:R.title)||"",status:D.status,updated_at:D.updated_at||""};for(const N of D.content)O[`data.${N.key}`]=JSON.stringify(N.value)||"";return O}),P=T.map(D=>({title:D,dataIndex:`data.${D}`,align:"center",width:200}));return{tableColumns:[...Pr,{title:"Data",children:P}],tableRows:A}}catch{return{tableColumns:[],tableRows:[]}}}),{startPolling:l,endPolling:s}=Lr({interval:Sc,task:async()=>{await a.refetch()}});return{setup:()=>l(),tearDown:()=>s(),tableAsyncComputed:a,totalCount:e,current:o,pageSize:r,filterController:n,getDataAsCsv:t}},Ec={style:{"text-align":"center"}},xc={key:2,style:{"min-width":"100px"}},Cc=Ct("div",{style:{height:"50px"}},null,-1),nd=Ut({__name:"TableView",props:{kanbanRepository:{}},setup(i){const n=i,e=Dt(""),o=Dt(!1),r=Dt(!1),u=()=>{o.value=!0,p.filterSearch.value=e.value,t()},t=Go.exports.debounce(()=>{s.refetch(),o.value=!1},500),{setup:a,tearDown:l,tableAsyncComputed:s,totalCount:c,current:d,pageSize:f,filterController:p,getDataAsCsv:g}=bc({kanbanRepository:n.kanbanRepository}),m=$t(()=>({total:c.value,current:d.value,pageSize:f.value,totalBoundaryShowSizeChanger:10,showSizeChanger:!0,pageSizeOptions:["10","25","50","100"],onChange:async(y,T)=>{d.value=y,f.value=T,await s.refetch()}})),h=async()=>{if(r.value=!0,!s.result.value)return;const y=await g();oa(y),r.value=!1},E=y=>y.dataIndex===void 0&&"children"in y&&Array.isArray(y.children)&&y.children.length===0;return qn(a),_n(l),(y,T)=>(j(),ot("div",null,[G(b(yt),{justify:"space-between",style:{"margin-bottom":"12px"}},{default:L(()=>[G(b(Vn),{value:e.value,placeholder:"Search data or status",style:{width:"400px"},"allow-clear":"","onUpdate:value":u},{prefix:L(()=>[G(b(Bo))]),suffix:L(()=>[o.value?(j(),Z(b(Ur),{key:0})):ut("",!0)]),_:1},8,["value"]),G(b(ne),{loading:r.value,onClick:h},{default:L(()=>[G(b(yt),{align:"center",gap:"small"},{default:L(()=>[lt(" Export to CSV "),G(b(ra))]),_:1})]),_:1},8,["loading"])]),_:1}),b(s).result.value?(j(),Z(b(fr),{key:0,columns:b(s).result.value.tableColumns,"data-source":b(s).result.value.tableRows,loading:o.value,pagination:m.value,scroll:{x:"max-content",y:700},bordered:"",size:"small"},{headerCell:L(({column:A})=>[Ct("p",Ec,Pt(A.title),1)]),bodyCell:L(({column:A,text:P,record:S})=>[A.dataIndex==="stage"?(j(),Z(b(yt),{key:0,gap:"small",justify:"center"},{default:L(()=>[(j(),Z(An(b(On)(S.type)),{size:"20"})),lt(" "+Pt(P),1)]),_:2},1024)):A.dataIndex==="status"?(j(),Z(b(yt),{key:1,gap:"small",justify:"center"},{default:L(()=>[G(b(_e),null,{default:L(()=>[lt(Pt(b(na)(String(P)))+" ",1),P==="running"?(j(),Z(b(Fr),{key:0,spin:!0,style:{"margin-left":"4px"}})):ut("",!0)]),_:2},1024)]),_:2},1024)):E(A)?(j(),ot("div",xc)):ut("",!0)]),_:1},8,["columns","data-source","loading","pagination"])):(j(),Z(b(fr),{key:1,loading:"",columns:[{title:"Thread"},{title:"Stage"},{title:"Status"}],bordered:""},{emptyText:L(()=>[Cc]),_:1}))]))}}),Ac={key:1,class:"workflow-container"},Oc=Ut({__name:"WorkflowView",props:{kanbanRepository:{},workflowApi:{}},setup(i){const n=i,{result:e,loading:o}=tr(()=>_o.init(n.workflowApi,!1)),{setup:r,tearDown:u,stageRunsCount:t}=ko({kanbanRepository:n.kanbanRepository});return qn(r),_n(u),(a,l)=>(j(),ot(_t,null,[b(o)?(j(),Z(aa,{key:0})):ut("",!0),b(e)?(j(),ot("div",Ac,[G(qo,{workflow:b(e),editable:!1,"stage-runs-count":b(t),"show-drag-hint":!1},null,8,["workflow","stage-runs-count"])])):ut("",!0)],64))}});const rd=xe(Oc,[["__scopeId","data-v-765d5d38"]]);export{kc as E,ed as K,qc as P,rd as W,nd as _,_c as a,td as b}; -//# sourceMappingURL=WorkflowView.11202833.js.map +//# sourceMappingURL=WorkflowView.3fb1431f.js.map diff --git a/abstra_statics/dist/assets/Workspace.2fe00dc2.js b/abstra_statics/dist/assets/Workspace.5af8309f.js similarity index 89% rename from abstra_statics/dist/assets/Workspace.2fe00dc2.js rename to abstra_statics/dist/assets/Workspace.5af8309f.js index e161af29f..366122a50 100644 --- a/abstra_statics/dist/assets/Workspace.2fe00dc2.js +++ b/abstra_statics/dist/assets/Workspace.5af8309f.js @@ -1,2 +1,2 @@ -import{B as z}from"./BaseLayout.e1793d5b.js";import{d as y,B as s,f as i,o as e,X as l,Z as _,R as f,eb as M,a as t,c as A,w as v,b as g,u as p,bw as H,aF as w,by as S,ec as k,bS as B,bQ as P,ed as N,e as j,r as C,aR as b,ee as x,ef as D,ea as L,aV as I,cI as G,Y as F,eg as E,$ as W}from"./vue-router.4c13f3d4.js";import{F as q}from"./PhSignOut.vue.e09114f0.js";import{u as R}from"./editor.49995faa.js";import{N as T}from"./NavbarControls.651b74bd.js";import{L as O}from"./Logo.1a35ae4d.js";import{I as Q,G as X}from"./PhIdentificationBadge.vue.7047bcd0.js";import{G as Y}from"./PhCaretRight.vue.d968b597.js";import{G as J}from"./PhFlowArrow.vue.d45d2075.js";import{G as K}from"./PhKanban.vue.b5dcf2c4.js";import{b as U}from"./index.c2d72be7.js";import"./workspaceStore.ae240ce8.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./asyncComputed.d0f14ed3.js";import"./CloseCircleOutlined.6201ef3d.js";import"./index.e5bdb21b.js";import"./index.ec6b7808.js";import"./workspaces.1ee4ae8d.js";import"./record.34d5b504.js";import"./popupNotifcation.d2ca3d78.js";import"./PhArrowSquareOut.vue.340970aa.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js";import"./BookOutlined.a8460802.js";import"./PhChats.vue.3f8c120c.js";import"./index.b16edfcc.js";import"./Avatar.6f67d038.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[o]="0b5a46d9-9e53-4c38-b612-5d08f5581061",u._sentryDebugIdIdentifier="sentry-dbid-0b5a46d9-9e53-4c38-b612-5d08f5581061")}catch{}})();const a0=["width","height","fill","transform"],e0={key:0},l0=t("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"},null,-1),t0=[l0],o0={key:1},r0=t("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),n0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),i0=[r0,n0],s0={key:2},d0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"},null,-1),u0=[d0],h0={key:3},m0=t("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"},null,-1),p0=[m0],v0={key:4},c0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),V0=[c0],g0={key:5},Z0=t("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"},null,-1),$0=[Z0],y0={name:"PhBrowser"},f0=y({...y0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",e0,t0)):r.value==="duotone"?(e(),l("g",o0,i0)):r.value==="fill"?(e(),l("g",s0,u0)):r.value==="light"?(e(),l("g",h0,p0)):r.value==="regular"?(e(),l("g",v0,V0)):r.value==="thin"?(e(),l("g",g0,$0)):f("",!0)],16,a0))}}),A0=["width","height","fill","transform"],_0={key:0},M0=t("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"},null,-1),w0=[M0],H0={key:1},k0=t("path",{d:"M160,48V208L80,128Z",opacity:"0.2"},null,-1),b0=t("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"},null,-1),x0=[k0,b0],L0={key:2},S0=t("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"},null,-1),C0=[S0],z0={key:3},B0=t("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"},null,-1),P0=[B0],N0={key:4},j0=t("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},null,-1),D0=[j0],I0={key:5},G0=t("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"},null,-1),F0=[G0],E0={name:"PhCaretLeft"},W0=y({...E0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",_0,w0)):r.value==="duotone"?(e(),l("g",H0,x0)):r.value==="fill"?(e(),l("g",L0,C0)):r.value==="light"?(e(),l("g",z0,P0)):r.value==="regular"?(e(),l("g",N0,D0)):r.value==="thin"?(e(),l("g",I0,F0)):f("",!0)],16,A0))}}),q0=["width","height","fill","transform"],R0={key:0},T0=t("path",{d:"M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Z"},null,-1),O0=[T0],Q0={key:1},X0=t("path",{d:"M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",opacity:"0.2"},null,-1),Y0=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),J0=[X0,Y0],K0={key:2},U0=t("path",{d:"M160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160a88.09,88.09,0,0,0,87.93-91.48C246.11,77.54,207.07,40,160.06,40Z"},null,-1),a1=[U0],e1={key:3},l1=t("path",{d:"M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Z"},null,-1),t1=[l1],o1={key:4},r1=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),n1=[r1],i1={key:5},s1=t("path",{d:"M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Z"},null,-1),d1=[s1],u1={name:"PhCloud"},h1=y({...u1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",R0,O0)):r.value==="duotone"?(e(),l("g",Q0,J0)):r.value==="fill"?(e(),l("g",K0,a1)):r.value==="light"?(e(),l("g",e1,t1)):r.value==="regular"?(e(),l("g",o1,n1)):r.value==="thin"?(e(),l("g",i1,d1)):f("",!0)],16,q0))}}),m1=["width","height","fill","transform"],p1={key:0},v1=t("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H172a12,12,0,0,0,0,24h28a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM64,140H48a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40H60V164h4a8,8,0,0,1,0,16Zm80,7.44V208a12,12,0,0,1-24,0V187.44l-18.18-29.08a12,12,0,0,1,20.36-12.72L132,161.36l9.82-15.72a12,12,0,0,1,20.36,12.72Z"},null,-1),c1=[v1],V1={key:1},g1=t("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),Z1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),$1=[g1,Z1],y1={key:2},f1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H172a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h20a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184Zm91-27.48L136,186.29v21.44a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V186.29l-18.61-29.77a8.22,8.22,0,0,1,2.16-11.17,8,8,0,0,1,11.23,2.41L128,168.91l13.22-21.15a8,8,0,0,1,11.23-2.41A8.22,8.22,0,0,1,154.61,156.52Z"},null,-1),A1=[f1],_1={key:3},M1=t("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM64,146H48a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198H64a26,26,0,0,0,0-52Zm0,40H54V158H64a14,14,0,0,1,0,28Zm89.09-30.82L134,185.72V208a6,6,0,0,1-12,0V185.72l-19.09-30.54a6,6,0,0,1,10.18-6.36L128,172.68l14.91-23.86a6,6,0,0,1,10.18,6.36Z"},null,-1),w1=[M1],H1={key:4},k1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),b1=[k1],x1={key:5},L1=t("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM64,148H48a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196H64a24,24,0,0,0,0-48Zm0,40H52V156H64a16,16,0,0,1,0,32Zm87.39-33.88-19.39,31V208a4,4,0,0,1-8,0V185.15l-19.39-31a4,4,0,0,1,6.78-4.24L128,176.45l16.61-26.57a4,4,0,1,1,6.78,4.24Z"},null,-1),S1=[L1],C1={name:"PhFilePy"},z1=y({...C1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",p1,c1)):r.value==="duotone"?(e(),l("g",V1,$1)):r.value==="fill"?(e(),l("g",y1,A1)):r.value==="light"?(e(),l("g",_1,w1)):r.value==="regular"?(e(),l("g",H1,b1)):r.value==="thin"?(e(),l("g",x1,S1)):f("",!0)],16,m1))}}),B1=["width","height","fill","transform"],P1={key:0},N1=t("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,178.57,87.73l-72-39.42Zm0,78.83L56,76,81.56,62l72,39.41ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l24-13.13V152a12,12,0,0,0,24,0V109.92l24-13.13v76.65Z"},null,-1),j1=[N1],D1={key:1},I1=t("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.18a8,8,0,0,1-4.16-7V80.18a8,8,0,0,1,.7-3.25Z",opacity:"0.2"},null,-1),G1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),F1=[I1,G1],E1={key:2},W1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.35,44L178.57,92.29l-80.35-44Zm0,88L47.65,76,81.56,57.43l80.35,44Zm88,55.85h0l-80,43.79V133.83l32-17.51V152a8,8,0,0,0,16,0V107.56l32-17.51v85.76Z"},null,-1),q1=[W1],R1={key:3},T1=t("path",{d:"M222.72,67.91l-88-48.18a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.91ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,178.57,94.57,94.05,48.31ZM122,223,39,177.57a2,2,0,0,1-1-1.75V86.66l84,46ZM43.49,76,81.56,55.15l84.51,46.26L128,122.24ZM218,175.82a2,2,0,0,1-1,1.75h0L134,223V132.64l36-19.71V152a6,6,0,0,0,12,0V106.37l36-19.71Z"},null,-1),O1=[T1],Q1={key:4},X1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),Y1=[X1],J1={key:5},K1=t("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,178.5,96.89a4,4,0,0,0-.58-.4l-88-48.18Zm1.92,96L39.33,76,81.56,52.87l88.67,48.54Zm-89.92,54.8a4,4,0,0,1-2.08-3.5V83.29l88,48.16v94.91Zm179.84,0h0l-85.92,47V131.45l40-21.89V152a4,4,0,0,0,8,0V105.18l40-21.89v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),U1=[K1],a2={name:"PhPackage"},e2=y({...a2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",P1,j1)):r.value==="duotone"?(e(),l("g",D1,F1)):r.value==="fill"?(e(),l("g",E1,q1)):r.value==="light"?(e(),l("g",R1,O1)):r.value==="regular"?(e(),l("g",Q1,Y1)):r.value==="thin"?(e(),l("g",J1,U1)):f("",!0)],16,B1))}}),l2=["width","height","fill","transform"],t2={key:0},o2=t("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"},null,-1),r2=[o2],n2={key:1},i2=t("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"},null,-1),s2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),d2=[i2,s2],u2={key:2},h2=t("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"},null,-1),m2=[h2],p2={key:3},v2=t("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"},null,-1),c2=[v2],V2={key:4},g2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),Z2=[g2],$2={key:5},y2=t("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"},null,-1),f2=[y2],A2={name:"PhSliders"},_2=y({...A2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",t2,r2)):r.value==="duotone"?(e(),l("g",n2,d2)):r.value==="fill"?(e(),l("g",u2,m2)):r.value==="light"?(e(),l("g",p2,c2)):r.value==="regular"?(e(),l("g",V2,Z2)):r.value==="thin"?(e(),l("g",$2,f2)):f("",!0)],16,l2))}}),M2={class:"menu-item"},w2=["href"],H2={class:"menu-item"},k2=y({__name:"CloudProjectDropdown",setup(u){const o=R();return(c,d)=>(e(),A(p(P),null,{overlay:v(()=>[g(p(S),null,{default:v(()=>[g(p(H),null,{default:v(()=>{var n;return[t("div",M2,[g(p(h1)),t("a",{href:(n=p(o).links)==null?void 0:n.project,style:{color:"black"},target:"_project"},"Open Console",8,w2)])]}),_:1}),g(p(H),{danger:"",onClick:d[0]||(d[0]=n=>p(o).deleteLogin())},{default:v(()=>[t("div",H2,[g(p(q)),w(" Logout ")])]),_:1})]),_:1})]),default:v(()=>[g(p(B),{type:"text",size:"small",class:"menu-item"},{default:v(()=>{var n;return[g(p(f0),{size:"18"}),w(" "+k((n=p(o).cloudProject)==null?void 0:n.name),1)]}),_:1})]),_:1}))}});const b2={class:"logo"},x2={key:0,class:"toggle-button"},L2={key:1,class:"toggle-button"},S2=y({__name:"Sidebar",setup(u){const o=N();function c(){var Z,V;return[(V=(Z=r.value.map(a=>a.children).flat().find(a=>a.path===o.path))==null?void 0:Z.name)!=null?V:"Workflow"]}const d=i(c),n=j(!1),$=()=>n.value=!n.value,r=i(()=>[{name:"Project",children:[{name:"Workflow",icon:J,path:"/_editor/workflow"},{name:"Stages",icon:z1,path:"/_editor/stages"},{name:"Threads",icon:K,path:"/_editor/threads"}]},{name:"Settings",children:[{name:"Preferences",icon:_2,path:"/_editor/preferences"},{name:"Requirements",icon:e2,path:"/_editor/requirements"},{name:"Env Vars",icon:Q,path:"/_editor/env-vars"},{name:"Access Control",icon:X,path:"/_editor/access-control"},{name:"VS Code",icon:E,path:"/_editor/vs-code"}]}]);return(h,Z)=>{const V=C("RouterLink");return e(),l("div",{style:F({width:n.value?"80px":"200px"}),class:"sidebar"},[t("div",b2,[g(O,{"hide-text":n.value},null,8,["hide-text"])]),g(p(S),{"inline-collapsed":n.value,mode:"inline","selected-keys":d.value,style:{display:"flex","flex-direction":"column",width:"100%","flex-grow":"1",border:"none"}},{default:v(()=>[(e(!0),l(b,null,x(r.value,a=>(e(),A(p(G),{key:a.name,title:a.name},{default:v(()=>[(e(!0),l(b,null,x(a.children,m=>(e(),A(p(H),{key:m.name,role:"button",tabindex:"0",disabled:m.disabled},{icon:v(()=>[(e(),A(D(m.icon),{class:L({active:d.value.includes(m.path),disabled:m.disabled}),size:"18"},null,8,["class"]))]),default:v(()=>[m.disabled?(e(),A(p(I),{key:1,placement:"bottomLeft",title:m.tooltip},{default:v(()=>[w(k(m.name),1)]),_:2},1032,["title"])):(e(),A(V,{key:0,to:m.path,class:L({active:d.value.includes(m.path),disabled:m.disabled})},{default:v(()=>[w(k(m.name),1)]),_:2},1032,["to","class"]))]),_:2},1032,["disabled"]))),128))]),_:2},1032,["title"]))),128)),n.value?(e(),l("div",x2,[g(p(Y),{size:"20",onClick:$})])):f("",!0),n.value?f("",!0):(e(),l("div",L2,[g(p(W0),{size:"20",onClick:$})]))]),_:1},8,["inline-collapsed","selected-keys"])],4)}}});const C2=W(S2,[["__scopeId","data-v-c569de57"]]),z2={style:{display:"flex","align-items":"center",gap:"60px"}},i8=y({__name:"Workspace",setup(u){return(o,c)=>{const d=C("RouterView");return e(),A(z,null,{navbar:v(()=>[g(p(U),{style:{padding:"5px 10px",border:"1px solid #f0f0f0","border-left":"0px"}},{title:v(()=>[t("div",z2,[g(k2)])]),extra:v(()=>[g(T,{"show-github-stars":""})]),_:1})]),sidebar:v(()=>[g(C2,{class:"sidebar"})]),content:v(()=>[g(d)]),_:1})}}});export{i8 as default}; -//# sourceMappingURL=Workspace.2fe00dc2.js.map +import{B as z}from"./BaseLayout.294a6887.js";import{d as y,B as s,f as i,o as e,X as l,Z as _,R as f,eb as M,a as t,c as A,w as v,b as g,u as p,bw as H,aF as w,by as S,ec as b,bS as B,bQ as P,ed as N,e as j,r as C,aR as k,ee as x,ef as D,ea as L,aV as I,cI as G,Y as F,eg as E,$ as W}from"./vue-router.3fd92176.js";import{F as q}from"./PhSignOut.vue.154299d7.js";import{u as R}from"./editor.519c2dc1.js";import{N as T}from"./NavbarControls.a8a61aa1.js";import{L as O}from"./Logo.6e947620.js";import{I as Q,G as X}from"./PhIdentificationBadge.vue.8d7f4c19.js";import{G as Y}from"./PhCaretRight.vue.f72488ac.js";import{G as J}from"./PhFlowArrow.vue.d1d247ee.js";import{G as K}from"./PhKanban.vue.b52985f0.js";import{b as U}from"./index.5ccdbcb7.js";import"./workspaceStore.411ef1fe.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./asyncComputed.295e9e03.js";import"./CloseCircleOutlined.f8dfd09a.js";import"./index.4fbbd10e.js";import"./index.063f7c9e.js";import"./workspaces.b456ec6a.js";import"./record.cbb43e89.js";import"./popupNotifcation.0e86d6a8.js";import"./PhArrowSquareOut.vue.188b81dc.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js";import"./BookOutlined.5f7ad9dc.js";import"./PhChats.vue.aa1113d9.js";import"./index.66903cf4.js";import"./Avatar.2107fa31.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[o]="62b13afe-1a7b-42b7-ae29-02527b8ba98d",u._sentryDebugIdIdentifier="sentry-dbid-62b13afe-1a7b-42b7-ae29-02527b8ba98d")}catch{}})();const a0=["width","height","fill","transform"],e0={key:0},l0=t("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"},null,-1),t0=[l0],o0={key:1},r0=t("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),n0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),i0=[r0,n0],s0={key:2},d0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"},null,-1),u0=[d0],h0={key:3},m0=t("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"},null,-1),p0=[m0],v0={key:4},c0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),V0=[c0],g0={key:5},Z0=t("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"},null,-1),$0=[Z0],y0={name:"PhBrowser"},f0=y({...y0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",e0,t0)):r.value==="duotone"?(e(),l("g",o0,i0)):r.value==="fill"?(e(),l("g",s0,u0)):r.value==="light"?(e(),l("g",h0,p0)):r.value==="regular"?(e(),l("g",v0,V0)):r.value==="thin"?(e(),l("g",g0,$0)):f("",!0)],16,a0))}}),A0=["width","height","fill","transform"],_0={key:0},M0=t("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"},null,-1),w0=[M0],H0={key:1},b0=t("path",{d:"M160,48V208L80,128Z",opacity:"0.2"},null,-1),k0=t("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"},null,-1),x0=[b0,k0],L0={key:2},S0=t("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"},null,-1),C0=[S0],z0={key:3},B0=t("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"},null,-1),P0=[B0],N0={key:4},j0=t("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},null,-1),D0=[j0],I0={key:5},G0=t("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"},null,-1),F0=[G0],E0={name:"PhCaretLeft"},W0=y({...E0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",_0,w0)):r.value==="duotone"?(e(),l("g",H0,x0)):r.value==="fill"?(e(),l("g",L0,C0)):r.value==="light"?(e(),l("g",z0,P0)):r.value==="regular"?(e(),l("g",N0,D0)):r.value==="thin"?(e(),l("g",I0,F0)):f("",!0)],16,A0))}}),q0=["width","height","fill","transform"],R0={key:0},T0=t("path",{d:"M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Z"},null,-1),O0=[T0],Q0={key:1},X0=t("path",{d:"M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",opacity:"0.2"},null,-1),Y0=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),J0=[X0,Y0],K0={key:2},U0=t("path",{d:"M160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160a88.09,88.09,0,0,0,87.93-91.48C246.11,77.54,207.07,40,160.06,40Z"},null,-1),a1=[U0],e1={key:3},l1=t("path",{d:"M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Z"},null,-1),t1=[l1],o1={key:4},r1=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),n1=[r1],i1={key:5},s1=t("path",{d:"M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Z"},null,-1),d1=[s1],u1={name:"PhCloud"},h1=y({...u1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",R0,O0)):r.value==="duotone"?(e(),l("g",Q0,J0)):r.value==="fill"?(e(),l("g",K0,a1)):r.value==="light"?(e(),l("g",e1,t1)):r.value==="regular"?(e(),l("g",o1,n1)):r.value==="thin"?(e(),l("g",i1,d1)):f("",!0)],16,q0))}}),m1=["width","height","fill","transform"],p1={key:0},v1=t("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H172a12,12,0,0,0,0,24h28a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM64,140H48a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40H60V164h4a8,8,0,0,1,0,16Zm80,7.44V208a12,12,0,0,1-24,0V187.44l-18.18-29.08a12,12,0,0,1,20.36-12.72L132,161.36l9.82-15.72a12,12,0,0,1,20.36,12.72Z"},null,-1),c1=[v1],V1={key:1},g1=t("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),Z1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),$1=[g1,Z1],y1={key:2},f1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H172a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h20a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184Zm91-27.48L136,186.29v21.44a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V186.29l-18.61-29.77a8.22,8.22,0,0,1,2.16-11.17,8,8,0,0,1,11.23,2.41L128,168.91l13.22-21.15a8,8,0,0,1,11.23-2.41A8.22,8.22,0,0,1,154.61,156.52Z"},null,-1),A1=[f1],_1={key:3},M1=t("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM64,146H48a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198H64a26,26,0,0,0,0-52Zm0,40H54V158H64a14,14,0,0,1,0,28Zm89.09-30.82L134,185.72V208a6,6,0,0,1-12,0V185.72l-19.09-30.54a6,6,0,0,1,10.18-6.36L128,172.68l14.91-23.86a6,6,0,0,1,10.18,6.36Z"},null,-1),w1=[M1],H1={key:4},b1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),k1=[b1],x1={key:5},L1=t("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM64,148H48a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196H64a24,24,0,0,0,0-48Zm0,40H52V156H64a16,16,0,0,1,0,32Zm87.39-33.88-19.39,31V208a4,4,0,0,1-8,0V185.15l-19.39-31a4,4,0,0,1,6.78-4.24L128,176.45l16.61-26.57a4,4,0,1,1,6.78,4.24Z"},null,-1),S1=[L1],C1={name:"PhFilePy"},z1=y({...C1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",p1,c1)):r.value==="duotone"?(e(),l("g",V1,$1)):r.value==="fill"?(e(),l("g",y1,A1)):r.value==="light"?(e(),l("g",_1,w1)):r.value==="regular"?(e(),l("g",H1,k1)):r.value==="thin"?(e(),l("g",x1,S1)):f("",!0)],16,m1))}}),B1=["width","height","fill","transform"],P1={key:0},N1=t("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,178.57,87.73l-72-39.42Zm0,78.83L56,76,81.56,62l72,39.41ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l24-13.13V152a12,12,0,0,0,24,0V109.92l24-13.13v76.65Z"},null,-1),j1=[N1],D1={key:1},I1=t("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.18a8,8,0,0,1-4.16-7V80.18a8,8,0,0,1,.7-3.25Z",opacity:"0.2"},null,-1),G1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),F1=[I1,G1],E1={key:2},W1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.35,44L178.57,92.29l-80.35-44Zm0,88L47.65,76,81.56,57.43l80.35,44Zm88,55.85h0l-80,43.79V133.83l32-17.51V152a8,8,0,0,0,16,0V107.56l32-17.51v85.76Z"},null,-1),q1=[W1],R1={key:3},T1=t("path",{d:"M222.72,67.91l-88-48.18a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.91ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,178.57,94.57,94.05,48.31ZM122,223,39,177.57a2,2,0,0,1-1-1.75V86.66l84,46ZM43.49,76,81.56,55.15l84.51,46.26L128,122.24ZM218,175.82a2,2,0,0,1-1,1.75h0L134,223V132.64l36-19.71V152a6,6,0,0,0,12,0V106.37l36-19.71Z"},null,-1),O1=[T1],Q1={key:4},X1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),Y1=[X1],J1={key:5},K1=t("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,178.5,96.89a4,4,0,0,0-.58-.4l-88-48.18Zm1.92,96L39.33,76,81.56,52.87l88.67,48.54Zm-89.92,54.8a4,4,0,0,1-2.08-3.5V83.29l88,48.16v94.91Zm179.84,0h0l-85.92,47V131.45l40-21.89V152a4,4,0,0,0,8,0V105.18l40-21.89v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),U1=[K1],a2={name:"PhPackage"},e2=y({...a2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",P1,j1)):r.value==="duotone"?(e(),l("g",D1,F1)):r.value==="fill"?(e(),l("g",E1,q1)):r.value==="light"?(e(),l("g",R1,O1)):r.value==="regular"?(e(),l("g",Q1,Y1)):r.value==="thin"?(e(),l("g",J1,U1)):f("",!0)],16,B1))}}),l2=["width","height","fill","transform"],t2={key:0},o2=t("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"},null,-1),r2=[o2],n2={key:1},i2=t("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"},null,-1),s2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),d2=[i2,s2],u2={key:2},h2=t("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"},null,-1),m2=[h2],p2={key:3},v2=t("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"},null,-1),c2=[v2],V2={key:4},g2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),Z2=[g2],$2={key:5},y2=t("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"},null,-1),f2=[y2],A2={name:"PhSliders"},_2=y({...A2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),n=s("color","currentColor"),$=s("mirrored",!1),r=i(()=>{var a;return(a=o.weight)!=null?a:c}),h=i(()=>{var a;return(a=o.size)!=null?a:d}),Z=i(()=>{var a;return(a=o.color)!=null?a:n}),V=i(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,m)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",t2,r2)):r.value==="duotone"?(e(),l("g",n2,d2)):r.value==="fill"?(e(),l("g",u2,m2)):r.value==="light"?(e(),l("g",p2,c2)):r.value==="regular"?(e(),l("g",V2,Z2)):r.value==="thin"?(e(),l("g",$2,f2)):f("",!0)],16,l2))}}),M2={class:"menu-item"},w2=["href"],H2={class:"menu-item"},b2=y({__name:"CloudProjectDropdown",setup(u){const o=R();return(c,d)=>(e(),A(p(P),null,{overlay:v(()=>[g(p(S),null,{default:v(()=>[g(p(H),null,{default:v(()=>{var n;return[t("div",M2,[g(p(h1)),t("a",{href:(n=p(o).links)==null?void 0:n.project,style:{color:"black"},target:"_project"},"Open Console",8,w2)])]}),_:1}),g(p(H),{danger:"",onClick:d[0]||(d[0]=n=>p(o).deleteLogin())},{default:v(()=>[t("div",H2,[g(p(q)),w(" Logout ")])]),_:1})]),_:1})]),default:v(()=>[g(p(B),{type:"text",size:"small",class:"menu-item"},{default:v(()=>{var n;return[g(p(f0),{size:"18"}),w(" "+b((n=p(o).cloudProject)==null?void 0:n.name),1)]}),_:1})]),_:1}))}});const k2={class:"logo"},x2={key:0,class:"toggle-button"},L2={key:1,class:"toggle-button"},S2=y({__name:"Sidebar",setup(u){const o=N();function c(){var Z,V;return[(V=(Z=r.value.map(a=>a.children).flat().find(a=>a.path===o.path))==null?void 0:Z.name)!=null?V:"Workflow"]}const d=i(c),n=j(!1),$=()=>n.value=!n.value,r=i(()=>[{name:"Project",children:[{name:"Workflow",icon:J,path:"/_editor/workflow"},{name:"Stages",icon:z1,path:"/_editor/stages"},{name:"Threads",icon:K,path:"/_editor/threads"}]},{name:"Settings",children:[{name:"Preferences",icon:_2,path:"/_editor/preferences"},{name:"Requirements",icon:e2,path:"/_editor/requirements"},{name:"Env Vars",icon:Q,path:"/_editor/env-vars"},{name:"Access Control",icon:X,path:"/_editor/access-control"},{name:"VS Code",icon:E,path:"/_editor/vs-code"}]}]);return(h,Z)=>{const V=C("RouterLink");return e(),l("div",{style:F({width:n.value?"80px":"200px"}),class:"sidebar"},[t("div",k2,[g(O,{"hide-text":n.value},null,8,["hide-text"])]),g(p(S),{"inline-collapsed":n.value,mode:"inline","selected-keys":d.value,style:{display:"flex","flex-direction":"column",width:"100%","flex-grow":"1",border:"none"}},{default:v(()=>[(e(!0),l(k,null,x(r.value,a=>(e(),A(p(G),{key:a.name,title:a.name},{default:v(()=>[(e(!0),l(k,null,x(a.children,m=>(e(),A(p(H),{key:m.name,role:"button",tabindex:"0",disabled:m.disabled},{icon:v(()=>[(e(),A(D(m.icon),{class:L({active:d.value.includes(m.path),disabled:m.disabled}),size:"18"},null,8,["class"]))]),default:v(()=>[m.disabled?(e(),A(p(I),{key:1,placement:"bottomLeft",title:m.tooltip},{default:v(()=>[w(b(m.name),1)]),_:2},1032,["title"])):(e(),A(V,{key:0,to:m.path,class:L({active:d.value.includes(m.path),disabled:m.disabled})},{default:v(()=>[w(b(m.name),1)]),_:2},1032,["to","class"]))]),_:2},1032,["disabled"]))),128))]),_:2},1032,["title"]))),128)),n.value?(e(),l("div",x2,[g(p(Y),{size:"20",onClick:$})])):f("",!0),n.value?f("",!0):(e(),l("div",L2,[g(p(W0),{size:"20",onClick:$})]))]),_:1},8,["inline-collapsed","selected-keys"])],4)}}});const C2=W(S2,[["__scopeId","data-v-c569de57"]]),z2={style:{display:"flex","align-items":"center",gap:"60px"}},i8=y({__name:"Workspace",setup(u){return(o,c)=>{const d=C("RouterView");return e(),A(z,null,{navbar:v(()=>[g(p(U),{style:{padding:"5px 10px",border:"1px solid #f0f0f0","border-left":"0px"}},{title:v(()=>[t("div",z2,[g(b2)])]),extra:v(()=>[g(T,{"show-github-stars":""})]),_:1})]),sidebar:v(()=>[g(C2,{class:"sidebar"})]),content:v(()=>[g(d)]),_:1})}}});export{i8 as default}; +//# sourceMappingURL=Workspace.5af8309f.js.map diff --git a/abstra_statics/dist/assets/ant-design.57cbe6fb.js b/abstra_statics/dist/assets/ant-design.38477595.js similarity index 50% rename from abstra_statics/dist/assets/ant-design.57cbe6fb.js rename to abstra_statics/dist/assets/ant-design.38477595.js index a27806709..5ce6fe8f7 100644 --- a/abstra_statics/dist/assets/ant-design.57cbe6fb.js +++ b/abstra_statics/dist/assets/ant-design.38477595.js @@ -1,2 +1,2 @@ -import{eo as n,cK as b}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="363d7a3f-8003-4bd2-87ae-5a14e9cb2b95",e._sentryDebugIdIdentifier="sentry-dbid-363d7a3f-8003-4bd2-87ae-5a14e9cb2b95")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function c(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const l=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=c(e);return[{title:l,key:[...r,i].join("/"),children:e.flatMap((s,f)=>o(s,[...r,i,`${f}`]))}]}else if(n.exports.isObject(e)){const i=c(e);return[{title:l,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,f])=>o(f,[...r,i,s],s))}]}else return[{title:l,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{b.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,o as t}; -//# sourceMappingURL=ant-design.57cbe6fb.js.map +import{eo as n,cK as b}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="957a12ff-843d-46eb-a15a-5cfb4b71d0e7",e._sentryDebugIdIdentifier="sentry-dbid-957a12ff-843d-46eb-a15a-5cfb4b71d0e7")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function c(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const f=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=c(e);return[{title:f,key:[...r,i].join("/"),children:e.flatMap((s,l)=>o(s,[...r,i,`${l}`]))}]}else if(n.exports.isObject(e)){const i=c(e);return[{title:f,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,l])=>o(l,[...r,i,s],s))}]}else return[{title:f,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{b.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,o as t}; +//# sourceMappingURL=ant-design.38477595.js.map diff --git a/abstra_statics/dist/assets/api.a5810267.js b/abstra_statics/dist/assets/api.854a5e4c.js similarity index 74% rename from abstra_statics/dist/assets/api.a5810267.js rename to abstra_statics/dist/assets/api.854a5e4c.js index 8a117289e..039e63351 100644 --- a/abstra_statics/dist/assets/api.a5810267.js +++ b/abstra_statics/dist/assets/api.854a5e4c.js @@ -1,2 +1,2 @@ -import{l as r}from"./fetch.492045fb.js";import{N as t}from"./vue-router.4c13f3d4.js";import{w as i}from"./metadata.d6f3a171.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="d8d37b87-9eb3-44fe-800c-75c536966064",o._sentryDebugIdIdentifier="sentry-dbid-d8d37b87-9eb3-44fe-800c-75c536966064")}catch{}})();const l=i.stages.flatMap(o=>o.transitions.flatMap(e=>e.typeName)),c=t.object({type:t.enum(["forms","hooks","jobs","scripts","conditions","iterators"]),id:t.string(),title:t.string(),position:t.object({x:t.number(),y:t.number()}),props:t.object({path:t.string().nullable(),filename:t.string().nullable(),variableName:t.string().nullable(),itemName:t.string().nullable()})}),d=t.object({id:t.string(),type:t.enum(l),sourceStageId:t.string(),targetStageId:t.string(),props:t.object({conditionValue:t.string().nullable()})}),s=t.object({stages:t.array(c),transitions:t.array(d)}),w={"Content-Type":"application/json"},b="abstra-run-id";class p{async load(){const e=await fetch("/_editor/api/workflows");if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){const a=await fetch("/_editor/api/workflows",{method:"PUT",headers:w,body:JSON.stringify(e)});if(a.ok){const n=await a.json();return s.parse(n)}else throw new Error("Failed to update workflow")}}const y=new p;class g{constructor(e,a=r){this.authHeaders=e,this.fetch=a}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async load(){const e=await this.fetch("/_workflows",{headers:this.headers});if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){const a=await this.fetch("/_workflows",{body:JSON.stringify(e),headers:this.headers,method:"PUT"});if(a.ok){const n=await a.json();return s.parse(n)}else throw new Error("Failed to update workflow")}}export{b as A,p as E,g as P,y as w}; -//# sourceMappingURL=api.a5810267.js.map +import{l as r}from"./fetch.8c5b12c2.js";import{N as t}from"./vue-router.3fd92176.js";import{w as i}from"./metadata.789df59c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="88b74c43-0279-4517-88af-38f6b24cb935",o._sentryDebugIdIdentifier="sentry-dbid-88b74c43-0279-4517-88af-38f6b24cb935")}catch{}})();const l=i.stages.flatMap(o=>o.transitions.flatMap(e=>e.typeName)),c=t.object({type:t.enum(["forms","hooks","jobs","scripts","conditions","iterators"]),id:t.string(),title:t.string(),position:t.object({x:t.number(),y:t.number()}),props:t.object({path:t.string().nullable(),filename:t.string().nullable(),variableName:t.string().nullable(),itemName:t.string().nullable()})}),d=t.object({id:t.string(),type:t.enum(l),sourceStageId:t.string(),targetStageId:t.string(),props:t.object({conditionValue:t.string().nullable()})}),s=t.object({stages:t.array(c),transitions:t.array(d)}),w={"Content-Type":"application/json"},b="abstra-run-id";class f{async load(){const e=await fetch("/_editor/api/workflows");if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){const a=await fetch("/_editor/api/workflows",{method:"PUT",headers:w,body:JSON.stringify(e)});if(a.ok){const n=await a.json();return s.parse(n)}else throw new Error("Failed to update workflow")}}const y=new f;class g{constructor(e,a=r){this.authHeaders=e,this.fetch=a}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async load(){const e=await this.fetch("/_workflows",{headers:this.headers});if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){const a=await this.fetch("/_workflows",{body:JSON.stringify(e),headers:this.headers,method:"PUT"});if(a.ok){const n=await a.json();return s.parse(n)}else throw new Error("Failed to update workflow")}}export{b as A,f as E,g as P,y as w}; +//# sourceMappingURL=api.854a5e4c.js.map diff --git a/abstra_statics/dist/assets/apiKey.9088bccb.js b/abstra_statics/dist/assets/apiKey.9088bccb.js new file mode 100644 index 000000000..195732e9c --- /dev/null +++ b/abstra_statics/dist/assets/apiKey.9088bccb.js @@ -0,0 +1,2 @@ +var o=Object.defineProperty;var c=(s,t,e)=>t in s?o(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var d=(s,t,e)=>(c(s,typeof t!="symbol"?t+"":t,e),e);import{C as r}from"./gateway.c564a1cf.js";import"./vue-router.3fd92176.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="0e8ddb41-5c39-4405-a48e-e950449534f3",s._sentryDebugIdIdentifier="sentry-dbid-0e8ddb41-5c39-4405-a48e-e950449534f3")}catch{}})();class u{constructor(){d(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return r.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await r.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return r.get(`projects/${t}/${this.urlPath}`)}}const a=new u;class n{constructor(t){this.dto=t}static async list(t){return(await a.list(t)).map(i=>new n(i))}static async create(t){const e=await a.create(t);return new n(e)}static async delete(t,e){await a.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A}; +//# sourceMappingURL=apiKey.9088bccb.js.map diff --git a/abstra_statics/dist/assets/apiKey.e5976c38.js b/abstra_statics/dist/assets/apiKey.e5976c38.js deleted file mode 100644 index 9a27718b7..000000000 --- a/abstra_statics/dist/assets/apiKey.e5976c38.js +++ /dev/null @@ -1,2 +0,0 @@ -var d=Object.defineProperty;var o=(a,t,e)=>t in a?d(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(o(a,typeof t!="symbol"?t+"":t,e),e);import{C as s}from"./gateway.e77556e5.js";import"./vue-router.4c13f3d4.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="a0a94609-327e-48ee-92fb-c3c6a275bfb6",a._sentryDebugIdIdentifier="sentry-dbid-a0a94609-327e-48ee-92fb-c3c6a275bfb6")}catch{}})();class u{constructor(){i(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return s.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await s.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return s.get(`projects/${t}/${this.urlPath}`)}}const r=new u;class n{constructor(t){this.dto=t}static async list(t){return(await r.list(t)).map(c=>new n(c))}static async create(t){const e=await r.create(t);return new n(e)}static async delete(t,e){await r.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A}; -//# sourceMappingURL=apiKey.e5976c38.js.map diff --git a/abstra_statics/dist/assets/asyncComputed.295e9e03.js b/abstra_statics/dist/assets/asyncComputed.295e9e03.js new file mode 100644 index 000000000..e0dcdf630 --- /dev/null +++ b/abstra_statics/dist/assets/asyncComputed.295e9e03.js @@ -0,0 +1,2 @@ +import{Q as c,f as l}from"./vue-router.3fd92176.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="5cf3c175-f9bf-4685-aa31-72507a87d044",r._sentryDebugIdIdentifier="sentry-dbid-5cf3c175-f9bf-4685-aa31-72507a87d044")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),a=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(a));o();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:o}};export{i as a}; +//# sourceMappingURL=asyncComputed.295e9e03.js.map diff --git a/abstra_statics/dist/assets/asyncComputed.d0f14ed3.js b/abstra_statics/dist/assets/asyncComputed.d0f14ed3.js deleted file mode 100644 index e74fe5d1c..000000000 --- a/abstra_statics/dist/assets/asyncComputed.d0f14ed3.js +++ /dev/null @@ -1,2 +0,0 @@ -import{Q as d,f as l}from"./vue-router.4c13f3d4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="1176c11c-3fcd-418b-ab41-2871b233f452",r._sentryDebugIdIdentifier="sentry-dbid-1176c11c-3fcd-418b-ab41-2871b233f452")}catch{}})();const i=r=>{const e=d({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),s=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(s));o();const u=l(()=>e.value.loading),a=l(()=>e.value.result),c=l(()=>e.value.error);return{loading:u,result:a,error:c,refetch:o}};export{i as a}; -//# sourceMappingURL=asyncComputed.d0f14ed3.js.map diff --git a/abstra_statics/dist/assets/colorHelpers.c5724389.js b/abstra_statics/dist/assets/colorHelpers.c5724389.js deleted file mode 100644 index 1b2a539a3..000000000 --- a/abstra_statics/dist/assets/colorHelpers.c5724389.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6ddbe2b1-7a4e-40e2-93fd-4c208a822408",e._sentryDebugIdIdentifier="sentry-dbid-6ddbe2b1-7a4e-40e2-93fd-4c208a822408")}catch{}})();function p(e,t){const{r:n,g:r,b:o,usePound:s}=g(e);return w(c(n,-t),c(r,-t),c(o,-t),s)}function c(e,t){const n=e*(100+t*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}const v=(e,t)=>y(p(y(e),t)),P=e=>k(e)?v(e,.1):p(e,.1);function k(e){const{r:t,g:n,b:r}=g(e);return t*.299+n*.587+r*.114<186}function g(e){let t=!1;e[0]=="#"&&(e=e.slice(1),t=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:t}}function y(e){const{r:t,g:n,b:r,usePound:o}=g(e);return w(255-t,255-n,255-r,o)}const w=(e,t,n,r=!0)=>(r?"#":"")+(n|t<<8|e<<16).toString(16).padStart(6,"0");function _(e){return new Promise((t,n)=>{const r=document.createElement("img");r.src=e,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:l}=r,a=document.createElement("canvas");a.width=s,a.height=l;const u=a.getContext("2d");if(!u)return t(!1);u.drawImage(r,0,0);const I=u.getImageData(0,0,a.width,a.height),{data:d}=I;let f,b,h,m;for(let i=0,x=d.length;i255?255:n<0?0:Math.round(n)}function E(t){return t.startsWith("#")||t.match(/^(rgb|hsl)/)}const v=(t,e)=>y(p(y(t),e)),P=t=>k(t)?v(t,.1):p(t,.1);function k(t){const{r:e,g:n,b:r}=g(t);return e*.299+n*.587+r*.114<186}function g(t){let e=!1;t[0]=="#"&&(t=t.slice(1),e=!0);const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:e}}function y(t){const{r:e,g:n,b:r,usePound:o}=g(t);return w(255-e,255-n,255-r,o)}const w=(t,e,n,r=!0)=>(r?"#":"")+(n|e<<8|t<<16).toString(16).padStart(6,"0");function _(t){return new Promise((e,n)=>{const r=document.createElement("img");r.src=t,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:l}=r,a=document.createElement("canvas");a.width=s,a.height=l;const d=a.getContext("2d");if(!d)return e(!1);d.drawImage(r,0,0);const I=d.getImageData(0,0,a.width,a.height),{data:c}=I;let b,f,h,m;for(let i=0,x=c.length;i()=>{t=null,e(...i)},o=function(){if(t==null){for(var i=arguments.length,s=new Array(i),u=0;u{Ut.cancel(t),t=null},o}function Lt(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Lo(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function ko(e,t,n){if(n!==void 0&&t.bottomo.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},xt.push(n),Zi.forEach(o=>{n.eventHandlers[o]=Rn(e,o,()=>{n.affixList.forEach(i=>{const{lazyUpdatePosition:s}=i.exposed;s()},(o==="touchstart"||o==="touchmove")&&Mn?{passive:!0}:!1)})}))}function zo(e){const t=xt.find(n=>{const o=n.affixList.some(i=>i===e);return o&&(n.affixList=n.affixList.filter(i=>i!==e)),o});t&&t.affixList.length===0&&(xt=xt.filter(n=>n!==t),Zi.forEach(n=>{const o=t.eventHandlers[n];o&&o.remove&&o.remove()}))}const Xs=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},Gs=$e("Affix",e=>{const t=Ie(e,{zIndexPopup:e.zIndexBase+10});return[Xs(t)]});function Us(){return typeof window<"u"?window:null}var ht;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(ht||(ht={}));const Ys=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Us},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),qs=X({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:Ys(),setup(e,t){let{slots:n,emit:o,expose:i,attrs:s}=t;const u=ee(),l=ee(),a=$t({affixStyle:void 0,placeholderStyle:void 0,status:ht.None,lastAffix:!1,prevTarget:null,timeout:null}),r=Kl(),c=R(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=R(()=>e.offsetBottom),p=()=>{const{status:I,lastAffix:T}=a,{target:$}=e;if(I!==ht.Prepare||!l.value||!u.value||!$)return;const P=$();if(!P)return;const y={status:ht.None},A=Lt(u.value);if(A.top===0&&A.left===0&&A.width===0&&A.height===0)return;const M=Lt(P),O=Lo(A,M,c.value),w=ko(A,M,d.value);if(!(A.top===0&&A.left===0&&A.width===0&&A.height===0)){if(O!==void 0){const x=`${A.width}px`,N=`${A.height}px`;y.affixStyle={position:"fixed",top:O,width:x,height:N},y.placeholderStyle={width:x,height:N}}else if(w!==void 0){const x=`${A.width}px`,N=`${A.height}px`;y.affixStyle={position:"fixed",bottom:w,width:x,height:N},y.placeholderStyle={width:x,height:N}}y.lastAffix=!!y.affixStyle,T!==y.lastAffix&&o("change",y.lastAffix),h(a,y)}},m=()=>{h(a,{status:ht.Prepare,affixStyle:void 0,placeholderStyle:void 0}),r.update()},f=zn(()=>{m()}),v=zn(()=>{const{target:I}=e,{affixStyle:T}=a;if(I&&T){const $=I();if($&&u.value){const P=Lt($),y=Lt(u.value),A=Lo(y,P,c.value),M=ko(y,P,d.value);if(A!==void 0&&T.top===A||M!==void 0&&T.bottom===M)return}}m()});i({updatePosition:f,lazyUpdatePosition:v}),ce(()=>e.target,I=>{const T=(I==null?void 0:I())||null;a.prevTarget!==T&&(zo(r),T&&(Bo(T,r),f()),a.prevTarget=T)}),ce(()=>[e.offsetTop,e.offsetBottom],f),Qe(()=>{const{target:I}=e;I&&(a.timeout=setTimeout(()=>{Bo(I(),r),f()}))}),en(()=>{p()}),Vl(()=>{clearTimeout(a.timeout),zo(r),f.cancel(),v.cancel()});const{prefixCls:C}=me("affix",e),[b,S]=Gs(C);return()=>{var I;const{affixStyle:T,placeholderStyle:$}=a,P=K({[C.value]:T,[S.value]:!0}),y=Ae(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return b(g(jl,{onResize:f},{default:()=>[g("div",E(E(E({},y),s),{},{ref:u}),[T&&g("div",{style:$,"aria-hidden":"true"},null),g("div",{class:P,ref:l,style:T},[(I=n.default)===null||I===void 0?void 0:I.call(n)])])]}))}}}),Ji=Je(qs);function kt(){}const Qi=Symbol("anchorContextKey"),Zs=e=>{nt(Qi,e)},Js=()=>dt(Qi,{registerLink:kt,unregisterLink:kt,scrollTo:kt,activeLink:R(()=>""),handleClick:kt,direction:R(()=>"vertical")}),Qs=Zs,ec=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:i,colorPrimary:s,lineType:u,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:h(h({},xe(e)),{position:"relative",paddingInlineStart:i,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":h(h({},St),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${i}px ${u} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:i,backgroundColor:s,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},tc=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:i}}}}},nc=$e("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:i}=e,s=Ie(e,{holderOffsetBlock:i,anchorPaddingBlock:i,anchorPaddingBlockSecondary:i/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[ec(s),tc(s)]}),oc=()=>({prefixCls:String,href:String,title:ke(),target:String,customTitleProps:Ne()}),no=X({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:ye(oc(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,i=null;const{handleClick:s,scrollTo:u,unregisterLink:l,registerLink:a,activeLink:r}=Js(),{prefixCls:c}=me("anchor",e),d=p=>{const{href:m}=e;s(p,{title:i,href:m}),u(m)};return ce(()=>e.href,(p,m)=>{et(()=>{l(m),a(p)})}),Qe(()=>{a(e.href)}),Me(()=>{l(e.href)}),()=>{var p;const{href:m,target:f,title:v=n.title,customTitleProps:C={}}=e,b=c.value;i=typeof v=="function"?v(C):v;const S=r.value===m,I=K(`${b}-link`,{[`${b}-link-active`]:S},o.class),T=K(`${b}-link-title`,{[`${b}-link-title-active`]:S});return g("div",E(E({},o),{},{class:I}),[g("a",{class:T,href:m,title:typeof i=="string"?i:"",target:f,onClick:d},[n.customTitle?n.customTitle(C):i]),(p=n.default)===null||p===void 0?void 0:p.call(n)])}}});function ic(){return window}function Do(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const Ho=/#([\S ]+)$/,lc=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:Pe(),direction:L.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),it=X({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:lc(),setup(e,t){let{emit:n,attrs:o,slots:i,expose:s}=t;const{prefixCls:u,getTargetContainer:l,direction:a}=me("anchor",e),r=R(()=>{var y;return(y=e.direction)!==null&&y!==void 0?y:"vertical"}),c=te(null),d=te(),p=$t({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),m=te(null),f=R(()=>{const{getContainer:y}=e;return y||(l==null?void 0:l.value)||ic}),v=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const M=[],O=f.value();return p.links.forEach(w=>{const x=Ho.exec(w.toString());if(!x)return;const N=document.getElementById(x[1]);if(N){const z=Do(N,O);zN.top>x.top?N:x).link:""},C=y=>{const{getCurrentAnchor:A}=e;m.value!==y&&(m.value=typeof A=="function"?A(y):y,n("change",y))},b=y=>{const{offsetTop:A,targetOffset:M}=e;C(y);const O=Ho.exec(y);if(!O)return;const w=document.getElementById(O[1]);if(!w)return;const x=f.value(),N=yi(x,!0),z=Do(w,x);let H=N+z;H-=M!==void 0?M:A||0,p.animating=!0,$i(H,{callback:()=>{p.animating=!1},getContainer:f.value})};s({scrollTo:b});const S=()=>{if(p.animating)return;const{offsetTop:y,bounds:A,targetOffset:M}=e,O=v(M!==void 0?M:y||0,A);C(O)},I=()=>{const y=d.value.querySelector(`.${u.value}-link-title-active`);if(y&&c.value){const A=r.value==="horizontal";c.value.style.top=A?"":`${y.offsetTop+y.clientHeight/2}px`,c.value.style.height=A?"":`${y.clientHeight}px`,c.value.style.left=A?`${y.offsetLeft}px`:"",c.value.style.width=A?`${y.clientWidth}px`:"",A&&Xl(y,{scrollMode:"if-needed",block:"nearest"})}};Qs({registerLink:y=>{p.links.includes(y)||p.links.push(y)},unregisterLink:y=>{const A=p.links.indexOf(y);A!==-1&&p.links.splice(A,1)},activeLink:m,scrollTo:b,handleClick:(y,A)=>{n("click",y,A)},direction:r}),Qe(()=>{et(()=>{const y=f.value();p.scrollContainer=y,p.scrollEvent=Rn(p.scrollContainer,"scroll",S),S()})}),Me(()=>{p.scrollEvent&&p.scrollEvent.remove()}),en(()=>{if(p.scrollEvent){const y=f.value();p.scrollContainer!==y&&(p.scrollContainer=y,p.scrollEvent.remove(),p.scrollEvent=Rn(p.scrollContainer,"scroll",S),S())}I()});const T=y=>Array.isArray(y)?y.map(A=>{const{children:M,key:O,href:w,target:x,class:N,style:z,title:H}=A;return g(no,{key:O,href:w,target:x,class:N,style:z,title:H,customTitleProps:A},{default:()=>[r.value==="vertical"?T(M):null],customTitle:i.customTitle})}):null,[$,P]=nc(u);return()=>{var y;const{offsetTop:A,affix:M,showInkInFixed:O}=e,w=u.value,x=K(`${w}-ink`,{[`${w}-ink-visible`]:m.value}),N=K(P.value,e.wrapperClass,`${w}-wrapper`,{[`${w}-wrapper-horizontal`]:r.value==="horizontal",[`${w}-rtl`]:a.value==="rtl"}),z=K(w,{[`${w}-fixed`]:!M&&!O}),H=h({maxHeight:A?`calc(100vh - ${A}px)`:"100vh"},e.wrapperStyle),j=g("div",{class:N,style:H,ref:d},[g("div",{class:z},[g("span",{class:x,ref:c},null),Array.isArray(e.items)?T(e.items):(y=i.default)===null||y===void 0?void 0:y.call(i)])]);return $(M?g(Ji,E(E({},o),{},{offsetTop:A,target:f.value}),{default:()=>[j]}):j)}}});it.Link=no;it.install=function(e){return e.component(it.name,it),e.component(it.Link.name,it.Link),e};const oo=()=>null;oo.isSelectOption=!0;oo.displayName="AAutoCompleteOption";const vt=oo,io=()=>null;io.isSelectOptGroup=!0;io.displayName="AAutoCompleteOptGroup";const _t=io;function rc(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const ac=()=>h(h({},Ae(Gl(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),sc=vt,cc=_t,vn=X({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:ac(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:i}=t;wt(),wt(),wt(!e.dropdownClassName);const s=te(),u=()=>{var c;const d=Nt((c=n.default)===null||c===void 0?void 0:c.call(n));return d.length?d[0]:void 0};i({focus:()=>{var c;(c=s.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=s.value)===null||c===void 0||c.blur()}});const{prefixCls:r}=me("select",e);return()=>{var c,d,p;const{size:m,dataSource:f,notFoundContent:v=(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)}=e;let C;const{class:b}=o,S={[b]:!!b,[`${r.value}-lg`]:m==="large",[`${r.value}-sm`]:m==="small",[`${r.value}-show-search`]:!0,[`${r.value}-auto-complete`]:!0};if(e.options===void 0){const T=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((p=n.options)===null||p===void 0?void 0:p.call(n))||[];T.length&&rc(T[0])?C=T:C=f?f.map($=>{if(Ci($))return $;switch(typeof $){case"string":return g(vt,{key:$,value:$},{default:()=>[$]});case"object":return g(vt,{key:$.value,value:$.value},{default:()=>[$.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const I=Ae(h(h(h({},e),o),{mode:Ln.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:u,notFoundContent:v,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:s}),["dataSource","loading"]);return g(Ln,I,E({default:()=>[C]},Ae(n,["default","dataSource","options"])))}}}),dc=h(vn,{Option:vt,OptGroup:_t,install(e){return e.component(vn.name,vn),e.component(vt.displayName,vt),e.component(_t.displayName,_t),e}}),uc=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},fc=function(e){return/[height|width]$/.test(e)},_o=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,i){let s=e[o];o=uc(o),fc(o)&&typeof s=="number"&&(s=s+"px"),s===!0?t+=o:s===!1?t+="not "+o:t+="("+o+": "+s+")",i{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},Zt=e=>{const t=[],n=tl(e),o=nl(e);for(let i=n;ie.currentSlide-mc(e),nl=e=>e.currentSlide+vc(e),mc=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,vc=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Hn=e=>e&&e.offsetWidth||0,lo=e=>e&&e.offsetHeight||0,ol=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,i=e.startY-e.curY,s=Math.atan2(i,o);return n=Math.round(s*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},sn=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Sn=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},bc=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(Hn(n)),i=e.trackRef,s=Math.ceil(Hn(i));let u;if(e.vertical)u=o;else{let m=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(m*=o/100),u=Math.ceil((o-m)/e.slidesToShow)}const l=n&&lo(n.querySelector('[data-index="0"]')),a=l*e.slidesToShow;let r=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(r=t-1-e.initialSlide);let c=e.lazyLoadedList||[];const d=Zt(h(h({},e),{currentSlide:r,lazyLoadedList:c}));c=c.concat(d);const p={slideCount:t,slideWidth:u,listWidth:o,trackWidth:s,currentSlide:r,slideHeight:l,listHeight:a,lazyLoadedList:c};return e.autoplaying===null&&e.autoplay&&(p.autoplaying="playing"),p},Sc=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:i,index:s,slideCount:u,lazyLoad:l,currentSlide:a,centerMode:r,slidesToScroll:c,slidesToShow:d,useCSS:p}=e;let{lazyLoadedList:m}=e;if(t&&n)return{};let f=s,v,C,b,S={},I={};const T=i?s:Dn(s,0,u-1);if(o){if(!i&&(s<0||s>=u))return{};s<0?f=s+u:s>=u&&(f=s-u),l&&m.indexOf(f)<0&&(m=m.concat(f)),S={animating:!0,currentSlide:f,lazyLoadedList:m,targetSlide:f},I={animating:!1,targetSlide:f}}else v=f,f<0?(v=f+u,i?u%c!==0&&(v=u-u%c):v=0):!sn(e)&&f>a?f=v=a:r&&f>=u?(f=i?u:u-1,v=i?0:u-1):f>=u&&(v=f-u,i?u%c!==0&&(v=0):v=u-d),!i&&f+d>=u&&(v=u-d),C=Ot(h(h({},e),{slideIndex:f})),b=Ot(h(h({},e),{slideIndex:v})),i||(C===b&&(f=v),C=b),l&&(m=m.concat(Zt(h(h({},e),{currentSlide:f})))),p?(S={animating:!0,currentSlide:v,trackStyle:il(h(h({},e),{left:C})),lazyLoadedList:m,targetSlide:T},I={animating:!1,currentSlide:v,trackStyle:At(h(h({},e),{left:b})),swipeLeft:null,targetSlide:T}):S={currentSlide:v,trackStyle:At(h(h({},e),{left:b})),lazyLoadedList:m,targetSlide:T};return{state:S,nextState:I}},yc=(e,t)=>{let n,o,i;const{slidesToScroll:s,slidesToShow:u,slideCount:l,currentSlide:a,targetSlide:r,lazyLoad:c,infinite:d}=e,m=l%s!==0?0:(l-a)%s;if(t.message==="previous")o=m===0?s:u-m,i=a-o,c&&!d&&(n=a-o,i=n===-1?l-1:n),d||(i=r-s);else if(t.message==="next")o=m===0?s:m,i=a+o,c&&!d&&(i=(a+s)%l+m),d||(i=r+s);else if(t.message==="dots")i=t.index*t.slidesToScroll;else if(t.message==="children"){if(i=t.index,d){const f=Pc(h(h({},e),{targetSlide:i}));i>t.currentSlide&&f==="left"?i=i-l:ie.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",Cc=(e,t,n)=>(e.target.tagName==="IMG"&&bt(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),wc=(e,t)=>{const{scrolling:n,animating:o,vertical:i,swipeToSlide:s,verticalSwiping:u,rtl:l,currentSlide:a,edgeFriction:r,edgeDragged:c,onEdge:d,swiped:p,swiping:m,slideCount:f,slidesToScroll:v,infinite:C,touchObject:b,swipeEvent:S,listHeight:I,listWidth:T}=t;if(n)return;if(o)return bt(e);i&&s&&u&&bt(e);let $,P={};const y=Ot(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));const A=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!u&&!m&&A>10)return{scrolling:!0};u&&(b.swipeLength=A);let M=(l?-1:1)*(b.curX>b.startX?1:-1);u&&(M=b.curY>b.startY?1:-1);const O=Math.ceil(f/v),w=ol(t.touchObject,u);let x=b.swipeLength;return C||(a===0&&(w==="right"||w==="down")||a+1>=O&&(w==="left"||w==="up")||!sn(t)&&(w==="left"||w==="up"))&&(x=b.swipeLength*r,c===!1&&d&&(d(w),P.edgeDragged=!0)),!p&&S&&(S(w),P.swiped=!0),i?$=y+x*(I/T)*M:l?$=y-x*M:$=y+x*M,u&&($=y+x*M),P=h(h({},P),{touchObject:b,swipeLeft:$,trackStyle:At(h(h({},t),{left:$}))}),Math.abs(b.curX-b.startX)10&&(P.swiping=!0,bt(e)),P},xc=(e,t)=>{const{dragging:n,swipe:o,touchObject:i,listWidth:s,touchThreshold:u,verticalSwiping:l,listHeight:a,swipeToSlide:r,scrolling:c,onSwipe:d,targetSlide:p,currentSlide:m,infinite:f}=t;if(!n)return o&&bt(e),{};const v=l?a/u:s/u,C=ol(i,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!i.swipeLength)return b;if(i.swipeLength>v){bt(e),d&&d(C);let S,I;const T=f?m:p;switch(C){case"left":case"up":I=T+Wo(t),S=r?Fo(t,I):I,b.currentDirection=0;break;case"right":case"down":I=T-Wo(t),S=r?Fo(t,I):I,b.currentDirection=1;break;default:S=T}b.triggerSlideHandler=S}else{const S=Ot(t);b.trackStyle=il(h(h({},t),{left:S}))}return b},Ic=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const i=[];for(;n{const n=Ic(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const i in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,i=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(i).every(l=>{if(e.vertical){if(l.offsetTop+lo(l)/2>e.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-t+Hn(l)/2>e.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;const s=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-s)||1}else return e.slidesToScroll},ro=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),At=e=>{ro(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=Tc(e)*e.slideWidth;let i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",u=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=h(h({},i),{WebkitTransform:s,transform:u,msTransform:l})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t+"px"),n&&(i.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},il=e=>{ro(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=At(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Ot=e=>{if(e.unslick)return 0;ro(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:i,slideCount:s,slidesToShow:u,slidesToScroll:l,slideWidth:a,listWidth:r,variableWidth:c,slideHeight:d,fade:p,vertical:m}=e;let f=0,v,C,b=0;if(p||e.slideCount===1)return 0;let S=0;if(o?(S=-Ze(e),s%l!==0&&t+l>s&&(S=-(t>s?u-(t-s):s%l)),i&&(S+=parseInt(u/2))):(s%l!==0&&t+l>s&&(S=u-s%l),i&&(S=parseInt(u/2))),f=S*a,b=S*d,m?v=t*d*-1+b:v=t*a*-1+f,c===!0){let I;const T=n;if(I=t+Ze(e),C=T&&T.childNodes[I],v=C?C.offsetLeft*-1:0,i===!0){I=o?t+Ze(e):t,C=T&&T.children[I],v=0;for(let $=0;$e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Ft=e=>e.unslick||!e.infinite?0:e.slideCount,Tc=e=>e.slideCount===1?1:Ze(e)+e.slideCount+Ft(e),Pc=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Ac(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:i}=e;if(n){let s=(t-1)/2+1;return parseInt(i)>0&&(s+=1),o&&t%2===0&&(s+=1),s}return o?0:t-1},Oc=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:i}=e;if(n){let s=(t-1)/2+1;return parseInt(i)>0&&(s+=1),!o&&t%2===0&&(s+=1),s}return o?t-1:0},Vo=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),yn=e=>{let t,n,o,i;e.rtl?i=e.slideCount-1-e.index:i=e.index;const s=i<0||i>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?u=e.targetSlide-e.slideCount:u=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":s,"slick-current":i===u}},Ec=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},$n=(e,t)=>e.key+"-"+t,Nc=function(e,t){let n;const o=[],i=[],s=[],u=t.length,l=tl(e),a=nl(e);return t.forEach((r,c)=>{let d;const p={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?d=r:d=g("div");const m=Ec(h(h({},e),{index:c})),f=d.props.class||"";let v=yn(h(h({},e),{index:c}));if(o.push(hn(d,{key:"original"+$n(d,c),tabindex:"-1","data-index":c,"aria-hidden":!v["slick-active"],class:K(v,f),style:h(h({outline:"none"},d.props.style||{}),m),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&e.fade===!1){const C=u-c;C<=Ze(e)&&u!==e.slidesToShow&&(n=-C,n>=l&&(d=r),v=yn(h(h({},e),{index:n})),i.push(hn(d,{key:"precloned"+$n(d,n),class:K(v,f),tabindex:"-1","data-index":n,"aria-hidden":!v["slick-active"],style:h(h({},d.props.style||{}),m),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}}))),u!==e.slidesToShow&&(n=u+c,n{e.focusOnSelect&&e.focusOnSelect(p)}})))}}),e.rtl?i.concat(o,s).reverse():i.concat(o,s)},ll=(e,t)=>{let{attrs:n,slots:o}=t;const i=Nc(n,Nt(o==null?void 0:o.default())),{onMouseenter:s,onMouseover:u,onMouseleave:l}=n,a={onMouseenter:s,onMouseover:u,onMouseleave:l},r=h({class:"slick-track",style:n.trackStyle},a);return g("div",r,[i])};ll.inheritAttrs=!1;const Rc=ll,Mc=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},rl=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:i,slidesToShow:s,infinite:u,currentSlide:l,appendDots:a,customPaging:r,clickHandler:c,dotsClass:d,onMouseenter:p,onMouseover:m,onMouseleave:f}=n,v=Mc({slideCount:o,slidesToScroll:i,slidesToShow:s,infinite:u}),C={onMouseenter:p,onMouseover:m,onMouseleave:f};let b=[];for(let S=0;S=P&&l<=T:l===P}),A={message:"dots",index:S,slidesToScroll:i,currentSlide:l};b=b.concat(g("li",{key:S,class:y},[st(r({i:S}),{onClick:M})]))}return st(a({dots:b}),h({class:d},C))};rl.inheritAttrs=!1;const Lc=rl;function al(){}function sl(e,t,n){n&&n.preventDefault(),t(e,n)}const cl=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:i,currentSlide:s,slideCount:u,slidesToShow:l}=n,a={"slick-arrow":!0,"slick-prev":!0};let r=function(m){sl({message:"previous"},o,m)};!i&&(s===0||u<=l)&&(a["slick-disabled"]=!0,r=al);const c={key:"0","data-role":"none",class:a,style:{display:"block"},onClick:r},d={currentSlide:s,slideCount:u};let p;return n.prevArrow?p=st(n.prevArrow(h(h({},c),d)),{key:"0",class:a,style:{display:"block"},onClick:r},!1):p=g("button",E({key:"0",type:"button"},c),[" ",rt("Previous")]),p};cl.inheritAttrs=!1;const dl=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:i,slideCount:s}=n,u={"slick-arrow":!0,"slick-next":!0};let l=function(d){sl({message:"next"},o,d)};sn(n)||(u["slick-disabled"]=!0,l=al);const a={key:"1","data-role":"none",class:K(u),style:{display:"block"},onClick:l},r={currentSlide:i,slideCount:s};let c;return n.nextArrow?c=st(n.nextArrow(h(h({},a),r)),{key:"1",class:K(u),style:{display:"block"},onClick:l},!1):c=g("button",E({key:"1",type:"button"},a),[" ",rt("Next")]),c};dl.inheritAttrs=!1;var kc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=h({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=Zt(h(h({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=h({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Ul(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=Zt(h(h({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=lo(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Yl(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!Boolean(this.track))return;const n=h(h({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=bc(e);e=h(h(h({},e),o),{slideIndex:o.currentSlide});const i=Ot(e);e=h(h({},e),{left:i});const s=At(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=s),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let a=0,r=0;const c=[],d=Ze(h(h(h({},this.$props),this.$data),{slideCount:e.length})),p=Ft(h(h(h({},this.$props),this.$data),{slideCount:e.length}));e.forEach(f=>{var v,C;const b=((C=(v=f.props.style)===null||v===void 0?void 0:v.width)===null||C===void 0?void 0:C.split("px")[0])||0;c.push(b),a+=b});for(let f=0;f{const i=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const s=o.onclick;o.onclick=()=>{s(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=i,o.onerror=()=>{i(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=h(h({},this.$props),this.$data);for(let n=this.currentSlide;n=-Ze(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:o,beforeChange:i,speed:s,afterChange:u}=this.$props,{state:l,nextState:a}=Sc(h(h(h({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!l)return;i&&i(o,l.currentSlide);const r=l.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&r.length>0&&this.__emit("lazyLoad",r),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),u&&u(o),delete this.animationEndCallback),this.setState(l,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),a&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=a,d=kc(a,["animating"]);this.setState(d,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),u&&u(l.currentSlide),delete this.animationEndCallback})},s))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=h(h({},this.$props),this.$data),o=yc(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const i=this.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=$c(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=Cc(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=wc(e,h(h(h({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));!t||(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=xc(e,h(h(h({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(sn(h(h({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return g("button",null,[t+1])},appendDots(e){let{dots:t}=e;return g("ul",{style:{display:"block"}},[t])}},render(){const e=K("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=h(h({},this.$props),this.$data);let n=Sn(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=h(h({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:Ee,onMouseover:o?this.onTrackOver:Ee});let i;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let C=Sn(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);C.customPaging=this.customPaging,C.appendDots=this.appendDots;const{customPaging:b,appendDots:S}=this.$slots;b&&(C.customPaging=b),S&&(C.appendDots=S);const{pauseOnDotsHover:I}=this.$props;C=h(h({},C),{clickHandler:this.changeSlide,onMouseover:I?this.onDotsOver:Ee,onMouseleave:I?this.onDotsLeave:Ee}),i=g(Lc,C,null)}let s,u;const l=Sn(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);l.clickHandler=this.changeSlide;const{prevArrow:a,nextArrow:r}=this.$slots;a&&(l.prevArrow=a),r&&(l.nextArrow=r),this.arrows&&(s=g(cl,l,null),u=g(dl,l,null));let c=null;this.vertical&&(c={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const p=h(h({},c),d),m=this.touchMove;let f={ref:this.listRefHandler,class:"slick-list",style:p,onClick:this.clickHandler,onMousedown:m?this.swipeStart:Ee,onMousemove:this.dragging&&m?this.swipeMove:Ee,onMouseup:m?this.swipeEnd:Ee,onMouseleave:this.dragging&&m?this.swipeEnd:Ee,[Mn?"onTouchstartPassive":"onTouchstart"]:m?this.swipeStart:Ee,[Mn?"onTouchmovePassive":"onTouchmove"]:this.dragging&&m?this.swipeMove:Ee,onTouchend:m?this.touchEnd:Ee,onTouchcancel:this.dragging&&m?this.swipeEnd:Ee,onKeydown:this.accessibility?this.keyHandler:Ee},v={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(f={class:"slick-list",ref:this.listRefHandler},v={class:e}),g("div",v,[this.unslick?"":s,g("div",f,[g(Rc,n,{default:()=>[this.children]})]),this.unslick?"":u,this.unslick?"":i])}},zc=X({name:"Slider",mixins:[wi],inheritAttrs:!1,props:h({},el),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let i;o===0?i=bn({minWidth:0,maxWidth:n}):i=bn({minWidth:e[o-1]+1,maxWidth:n}),Vo()&&this.media(i,()=>{this.setState({breakpoint:n})})});const t=bn({minWidth:e.slice(-1)[0]});Vo()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=i=>{let{matches:s}=i;s&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(l=>l.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":h(h({},this.$props),n[0].settings)):t=h({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=ql(this)||[];o=o.filter(l=>typeof l=="string"?!!l.trim():!!l),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const i=[];let s=null;for(let l=0;l=o.length));d+=1)c.push(st(o[d],{key:100*l+10*r+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));a.push(g("div",{key:10*l+r},[c]))}t.variableWidth?i.push(g("div",{key:l,style:{width:s}},[a])):i.push(g("div",{key:l},[a]))}if(t==="unslick"){const l="regular slider "+(this.className||"");return g("div",{class:l},[o])}else i.length<=t.slidesToShow&&(t.unslick=!0);const u=h(h(h({},this.$attrs),t),{children:i,ref:this.innerSliderRefHandler});return g(Bc,E(E({},u),{},{__propsSymbol__:[]}),this.$slots)}}),Dc=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:i,marginXXS:s}=e,u=-o*1.25,l=s;return{[t]:h(h({},xe(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:u,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:u,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:i},"&-top":{top:i,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-l,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Hc=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:h(h({},i),{margin:`${o}px 0`,verticalAlign:"baseline",button:i,"&.slick-active":h(h({},i),{button:i})})}}}},_c=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},Fc=$e("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=Ie(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[Dc(o),Hc(o),_c(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var Wc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i({effect:se(),dots:Y(!0),vertical:Y(),autoplay:Y(),easing:String,beforeChange:U(),afterChange:U(),prefixCls:String,accessibility:Y(),nextArrow:L.any,prevArrow:L.any,pauseOnHover:Y(),adaptiveHeight:Y(),arrows:Y(!1),autoplaySpeed:Number,centerMode:Y(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Y(!1),fade:Y(),focusOnSelect:Y(),infinite:Y(),initialSlide:Number,lazyLoad:se(),rtl:Y(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Y(),swipeToSlide:Y(),swipeEvent:U(),touchMove:Y(),touchThreshold:Number,variableWidth:Y(),useCSS:Y(),slickGoTo:Number,responsive:Array,dotPosition:se(),verticalSwiping:Y(!1)}),jc=X({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:Vc(),setup(e,t){let{slots:n,attrs:o,expose:i}=t;const s=te();i({goTo:function(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var C;(C=s.value)===null||C===void 0||C.slickGoTo(f,v)},autoplay:f=>{var v,C;(C=(v=s.value)===null||v===void 0?void 0:v.innerSlider)===null||C===void 0||C.handleAutoPlay(f)},prev:()=>{var f;(f=s.value)===null||f===void 0||f.slickPrev()},next:()=>{var f;(f=s.value)===null||f===void 0||f.slickNext()},innerSlider:R(()=>{var f;return(f=s.value)===null||f===void 0?void 0:f.innerSlider})}),Be(()=>{wt(e.vertical===void 0)});const{prefixCls:l,direction:a}=me("carousel",e),[r,c]=Fc(l),d=R(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),p=R(()=>d.value==="left"||d.value==="right"),m=R(()=>{const f="slick-dots";return K({[f]:!0,[`${f}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:f,arrows:v,draggable:C,effect:b}=e,{class:S,style:I}=o,T=Wc(o,["class","style"]),$=b==="fade"?!0:e.fade,P=K(l.value,{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-vertical`]:p.value,[`${S}`]:!!S},c.value);return r(g("div",{class:P,style:I},[g(zc,E(E(E({ref:s},e),T),{},{dots:!!f,dotsClass:m.value,arrows:v,draggable:C,fade:$,vertical:p.value}),n)]))}}}),Kc=Je(jc),Xc={useBreakpoint:xi},Gc=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:i,commentFontSizeBase:s,commentFontSizeSm:u,commentAuthorNameColor:l,commentAuthorTimeColor:a,commentActionColor:r,commentActionHoverColor:c,commentActionsMarginBottom:d,commentActionsMarginTop:p,commentContentDetailPMarginBottom:m}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:s,wordWrap:"break-word",["&-author"]:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:s,["& > a,& > span"]:{paddingRight:e.paddingXS,fontSize:u,lineHeight:"18px"},["&-name"]:{color:l,fontSize:s,transition:`color ${e.motionDurationSlow}`,["> *"]:{color:l,["&:hover"]:{color:l}}},["&-time"]:{color:a,whiteSpace:"nowrap",cursor:"auto"}},["&-detail p"]:{marginBottom:m,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:p,marginBottom:d,paddingLeft:0,["> li"]:{display:"inline-block",color:r,["> span"]:{marginRight:"10px",color:r,fontSize:u,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none",["&:hover"]:{color:c}}}},[`${t}-nested`]:{marginLeft:i},"&-rtl":{direction:"rtl"}}}},Uc=$e("Comment",e=>{const t=Ie(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[Gc(t)]}),Yc=()=>({actions:Array,author:L.any,avatar:L.any,content:L.any,prefixCls:String,datetime:L.any}),qc=X({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:Yc(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:i,direction:s}=me("comment",e),[u,l]=Uc(i),a=(c,d)=>g("div",{class:`${c}-nested`},[d]),r=c=>!c||!c.length?null:c.map((p,m)=>g("li",{key:`action-${m}`},[p]));return()=>{var c,d,p,m,f,v,C,b,S,I,T;const $=i.value,P=(c=e.actions)!==null&&c!==void 0?c:(d=n.actions)===null||d===void 0?void 0:d.call(n),y=(p=e.author)!==null&&p!==void 0?p:(m=n.author)===null||m===void 0?void 0:m.call(n),A=(f=e.avatar)!==null&&f!==void 0?f:(v=n.avatar)===null||v===void 0?void 0:v.call(n),M=(C=e.content)!==null&&C!==void 0?C:(b=n.content)===null||b===void 0?void 0:b.call(n),O=(S=e.datetime)!==null&&S!==void 0?S:(I=n.datetime)===null||I===void 0?void 0:I.call(n),w=g("div",{class:`${$}-avatar`},[typeof A=="string"?g("img",{src:A,alt:"comment-avatar"},null):A]),x=P?g("ul",{class:`${$}-actions`},[r(Array.isArray(P)?P:[P])]):null,N=g("div",{class:`${$}-content-author`},[y&&g("span",{class:`${$}-content-author-name`},[y]),O&&g("span",{class:`${$}-content-author-time`},[O])]),z=g("div",{class:`${$}-content`},[N,g("div",{class:`${$}-content-detail`},[M]),x]),H=g("div",{class:`${$}-inner`},[w,z]),j=Nt((T=n.default)===null||T===void 0?void 0:T.call(n));return u(g("div",E(E({},o),{},{class:[$,{[`${$}-rtl`]:s.value==="rtl"},o.class,l.value]}),[H,j&&j.length?a($,j):null]))}}}),Zc=Je(qc);var Jc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const Qc=Jc;function jo(e){for(var t=1;t({prefixCls:String,description:L.any,type:se("default"),shape:se("circle"),tooltip:L.any,href:String,target:U(),badge:Ne(),onClick:U()}),td=()=>({prefixCls:se()}),nd=()=>h(h({},so()),{trigger:se(),open:Y(),onOpenChange:U(),"onUpdate:open":U()}),od=()=>h(h({},so()),{prefixCls:String,duration:Number,target:U(),visibilityHeight:Number,onClick:U()}),id=X({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:td(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var i;const{prefixCls:s}=e,u=tn((i=o.description)===null||i===void 0?void 0:i.call(o));return g("div",E(E({},n),{},{class:[n.class,`${s}-content`]}),[o.icon||u.length?g(je,null,[o.icon&&g("div",{class:`${s}-icon`},[o.icon()]),u.length?g("div",{class:`${s}-description`},[u]):null]):g("div",{class:`${s}-icon`},[g(ul,null,null)])])}}}),ld=id,fl=Symbol("floatButtonGroupContext"),rd=e=>(nt(fl,e),e),hl=()=>dt(fl,{shape:te()}),ad=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Ko=ad,sd=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:i}=e,s=`${t}-group`,u=new Ao("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new Ao("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${s}-wrap`]:h({},Jl(`${s}-wrap`,u,l,o,!0))},{[`${s}-wrap`]:{[` +import{a9 as Ut,aa as Rn,ab as Mn,ac as $e,ad as Ie,ae as Je,d as X,Q as ee,D as $t,f as R,g as ce,W as Qe,af as en,ag as Vl,ah as me,ai as K,aj as Ae,b as g,ak as E,al as jl,S as h,am as Kl,V as nt,B as dt,an as St,ao as xe,ap as ye,aq as Me,ar as ke,as as Ne,J as et,e as te,at as Pe,au as L,av as yi,aw as $i,ax as Xl,ay as wt,az as Ci,aA as Ln,aB as Gl,aC as Nt,aD as hn,aE as st,aF as rt,aG as wi,aH as Ul,aI as Yl,aJ as ql,aK as Be,aL as se,aM as Y,aN as U,aO as xi,aP as Ct,aQ as tn,aR as je,aS as Zl,aT as Ao,aU as Jl,aV as nn,aW as Pt,aX as Ii,aY as Gn,aZ as Un,a_ as Ti,a$ as Yn,b0 as Pi,b1 as Ai,b2 as Ql,b3 as er,b4 as tr,b5 as Oi,b6 as pe,b7 as ge,b8 as Ei,b9 as nr,ba as Ni,bb as Ri,bc as Mi,bd as or,be as Li,bf as qn,bg as Zn,bh as ki,bi as Rt,bj as on,bk as Bi,bl as zi,bm as at,bn as Di,bo as Oo,bp as Eo,bq as ln,br as Hi,bs as ir,bt as kn,bu as Yt,bv as qt,bw as Ht,bx as rn,by as Ue,bz as _i,bA as Ye,bB as lr,bC as rr,bD as ar,bE as pn,bF as sr,bG as cr,a8 as Jn,bH as Fi,bI as dr,bJ as ur,bK as Wi,bL as fr,bM as hr,bN as Qn,U as eo,bO as to,bP as Vi,bQ as ji,bR as pr,bS as yt,G as Ve,bT as gr,bU as mr,bV as vr,bW as br,bX as Sr,bY as yr,bZ as $r,b_ as Bn,b$ as Cr,c0 as wr,K as an,c1 as xr,c2 as No,c3 as Ir,c4 as Tr,c5 as Pr,c6 as Ar,c7 as gn,c8 as Or,c9 as Er,ca as Nr,cb as Rr,cc as Mr,cd as Lr,ce as kr,cf as Br,cg as zr,ch as Dr,ci as Hr,cj as Ro,ck as Ki,cl as _r,a0 as Mt,cm as Fr,cn as Wr,co as Vr,cp as jr,cq as Kr,cr as Xr,cs as Gr,ct as Ur,cu as Yr,A as Xi,cv as qr,cw as Zr,cx as Jr,cy as Qr,cz as ea,cA as ta,cB as na,cC as oa,cD as ia,cE as la,cF as ra,cG as Gi,cH as aa,cI as sa,cJ as ca,cK as ot,cL as Ui,cM as da,cN as ua,cO as fa,cP as ha,cQ as pa,cR as ga,cS as ma,cT as va,cU as ba,cV as Sa,cW as ya,cX as $a,cY as Ca,cZ as wa,c_ as xa,c$ as Ia,d0 as Ta,d1 as Pa,d2 as Aa,d3 as Oa,d4 as Ea,d5 as Na,d6 as Ra,d7 as Ma,d8 as La,d9 as ka,da as Ba,db as za,dc as Da,dd as Ha,de as _a,df as Fa,dg as Wa,dh as Va,r as ja,o as Ka,c as Xa,w as Ga,u as Ua,k as Ya,T as qa,m as Za,P as Ja,C as Qa,M as es,s as ts,n as mn,p as ns,q as os,t as is,v as ls}from"./vue-router.3fd92176.js";import{A as rs,a as as,r as Mo}from"./router.59916c0d.js";import{A as ss}from"./index.4fbbd10e.js";import{G as cs}from"./index.66903cf4.js";import"./index.f6dcc8cb.js";import{B as ds,A as us,a as fs,b as hs}from"./index.5ccdbcb7.js";import{G as ps,M as gs}from"./index.8321252a.js";import{T as ms,A as vs}from"./index.82d1f1ac.js";import{A as bs}from"./index.78793691.js";import{D as Ss,M as ys,W as $s,R as Cs,Q as ws}from"./dayjs.86e1a5b6.js";import{A as xs,D as Is}from"./index.2c515076.js";import{A as Ts}from"./index.c6ce1c1c.js";import{A as Ps}from"./index.9c5136e0.js";import{B as Yi,R as As}from"./Badge.bcc65740.js";import{i as Os}from"./isNumeric.75337b1e.js";import{A as Es,a as Ns,I as Rs}from"./index.eafefd9b.js";import{S as qi,C as Ms,A as Ls,a as ks,b as Bs,c as zs,d as Ds}from"./Card.0ce127d8.js";import{A as Hs}from"./index.30885e4b.js";import{A as _s}from"./index.063f7c9e.js";import{A as Fs}from"./Avatar.2107fa31.js";import{C as Ws,A as Vs}from"./CollapsePanel.87687b29.js";import{T as js,A as Ks}from"./TabPane.d0ca7ad5.js";import"./gateway.c564a1cf.js";import"./popupNotifcation.0e86d6a8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="17d397b0-fc1a-4141-943d-8564f4e23b07",e._sentryDebugIdIdentifier="sentry-dbid-17d397b0-fc1a-4141-943d-8564f4e23b07")}catch{}})();function zn(e){let t;const n=i=>()=>{t=null,e(...i)},o=function(){if(t==null){for(var i=arguments.length,s=new Array(i),u=0;u{Ut.cancel(t),t=null},o}function Lt(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Lo(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function ko(e,t,n){if(n!==void 0&&t.bottomo.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},xt.push(n),Zi.forEach(o=>{n.eventHandlers[o]=Rn(e,o,()=>{n.affixList.forEach(i=>{const{lazyUpdatePosition:s}=i.exposed;s()},(o==="touchstart"||o==="touchmove")&&Mn?{passive:!0}:!1)})}))}function zo(e){const t=xt.find(n=>{const o=n.affixList.some(i=>i===e);return o&&(n.affixList=n.affixList.filter(i=>i!==e)),o});t&&t.affixList.length===0&&(xt=xt.filter(n=>n!==t),Zi.forEach(n=>{const o=t.eventHandlers[n];o&&o.remove&&o.remove()}))}const Xs=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},Gs=$e("Affix",e=>{const t=Ie(e,{zIndexPopup:e.zIndexBase+10});return[Xs(t)]});function Us(){return typeof window<"u"?window:null}var ht;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(ht||(ht={}));const Ys=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Us},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),qs=X({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:Ys(),setup(e,t){let{slots:n,emit:o,expose:i,attrs:s}=t;const u=ee(),l=ee(),a=$t({affixStyle:void 0,placeholderStyle:void 0,status:ht.None,lastAffix:!1,prevTarget:null,timeout:null}),r=Kl(),c=R(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=R(()=>e.offsetBottom),p=()=>{const{status:I,lastAffix:T}=a,{target:$}=e;if(I!==ht.Prepare||!l.value||!u.value||!$)return;const P=$();if(!P)return;const y={status:ht.None},A=Lt(u.value);if(A.top===0&&A.left===0&&A.width===0&&A.height===0)return;const M=Lt(P),O=Lo(A,M,c.value),w=ko(A,M,d.value);if(!(A.top===0&&A.left===0&&A.width===0&&A.height===0)){if(O!==void 0){const x=`${A.width}px`,N=`${A.height}px`;y.affixStyle={position:"fixed",top:O,width:x,height:N},y.placeholderStyle={width:x,height:N}}else if(w!==void 0){const x=`${A.width}px`,N=`${A.height}px`;y.affixStyle={position:"fixed",bottom:w,width:x,height:N},y.placeholderStyle={width:x,height:N}}y.lastAffix=!!y.affixStyle,T!==y.lastAffix&&o("change",y.lastAffix),h(a,y)}},m=()=>{h(a,{status:ht.Prepare,affixStyle:void 0,placeholderStyle:void 0}),r.update()},f=zn(()=>{m()}),v=zn(()=>{const{target:I}=e,{affixStyle:T}=a;if(I&&T){const $=I();if($&&u.value){const P=Lt($),y=Lt(u.value),A=Lo(y,P,c.value),M=ko(y,P,d.value);if(A!==void 0&&T.top===A||M!==void 0&&T.bottom===M)return}}m()});i({updatePosition:f,lazyUpdatePosition:v}),ce(()=>e.target,I=>{const T=(I==null?void 0:I())||null;a.prevTarget!==T&&(zo(r),T&&(Bo(T,r),f()),a.prevTarget=T)}),ce(()=>[e.offsetTop,e.offsetBottom],f),Qe(()=>{const{target:I}=e;I&&(a.timeout=setTimeout(()=>{Bo(I(),r),f()}))}),en(()=>{p()}),Vl(()=>{clearTimeout(a.timeout),zo(r),f.cancel(),v.cancel()});const{prefixCls:C}=me("affix",e),[b,S]=Gs(C);return()=>{var I;const{affixStyle:T,placeholderStyle:$}=a,P=K({[C.value]:T,[S.value]:!0}),y=Ae(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return b(g(jl,{onResize:f},{default:()=>[g("div",E(E(E({},y),s),{},{ref:u}),[T&&g("div",{style:$,"aria-hidden":"true"},null),g("div",{class:P,ref:l,style:T},[(I=n.default)===null||I===void 0?void 0:I.call(n)])])]}))}}}),Ji=Je(qs);function kt(){}const Qi=Symbol("anchorContextKey"),Zs=e=>{nt(Qi,e)},Js=()=>dt(Qi,{registerLink:kt,unregisterLink:kt,scrollTo:kt,activeLink:R(()=>""),handleClick:kt,direction:R(()=>"vertical")}),Qs=Zs,ec=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:i,colorPrimary:s,lineType:u,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:h(h({},xe(e)),{position:"relative",paddingInlineStart:i,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":h(h({},St),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${i}px ${u} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:i,backgroundColor:s,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},tc=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:i}}}}},nc=$e("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:i}=e,s=Ie(e,{holderOffsetBlock:i,anchorPaddingBlock:i,anchorPaddingBlockSecondary:i/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[ec(s),tc(s)]}),oc=()=>({prefixCls:String,href:String,title:ke(),target:String,customTitleProps:Ne()}),no=X({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:ye(oc(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,i=null;const{handleClick:s,scrollTo:u,unregisterLink:l,registerLink:a,activeLink:r}=Js(),{prefixCls:c}=me("anchor",e),d=p=>{const{href:m}=e;s(p,{title:i,href:m}),u(m)};return ce(()=>e.href,(p,m)=>{et(()=>{l(m),a(p)})}),Qe(()=>{a(e.href)}),Me(()=>{l(e.href)}),()=>{var p;const{href:m,target:f,title:v=n.title,customTitleProps:C={}}=e,b=c.value;i=typeof v=="function"?v(C):v;const S=r.value===m,I=K(`${b}-link`,{[`${b}-link-active`]:S},o.class),T=K(`${b}-link-title`,{[`${b}-link-title-active`]:S});return g("div",E(E({},o),{},{class:I}),[g("a",{class:T,href:m,title:typeof i=="string"?i:"",target:f,onClick:d},[n.customTitle?n.customTitle(C):i]),(p=n.default)===null||p===void 0?void 0:p.call(n)])}}});function ic(){return window}function Do(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const Ho=/#([\S ]+)$/,lc=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:Pe(),direction:L.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),it=X({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:lc(),setup(e,t){let{emit:n,attrs:o,slots:i,expose:s}=t;const{prefixCls:u,getTargetContainer:l,direction:a}=me("anchor",e),r=R(()=>{var y;return(y=e.direction)!==null&&y!==void 0?y:"vertical"}),c=te(null),d=te(),p=$t({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),m=te(null),f=R(()=>{const{getContainer:y}=e;return y||(l==null?void 0:l.value)||ic}),v=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const M=[],O=f.value();return p.links.forEach(w=>{const x=Ho.exec(w.toString());if(!x)return;const N=document.getElementById(x[1]);if(N){const z=Do(N,O);zN.top>x.top?N:x).link:""},C=y=>{const{getCurrentAnchor:A}=e;m.value!==y&&(m.value=typeof A=="function"?A(y):y,n("change",y))},b=y=>{const{offsetTop:A,targetOffset:M}=e;C(y);const O=Ho.exec(y);if(!O)return;const w=document.getElementById(O[1]);if(!w)return;const x=f.value(),N=yi(x,!0),z=Do(w,x);let H=N+z;H-=M!==void 0?M:A||0,p.animating=!0,$i(H,{callback:()=>{p.animating=!1},getContainer:f.value})};s({scrollTo:b});const S=()=>{if(p.animating)return;const{offsetTop:y,bounds:A,targetOffset:M}=e,O=v(M!==void 0?M:y||0,A);C(O)},I=()=>{const y=d.value.querySelector(`.${u.value}-link-title-active`);if(y&&c.value){const A=r.value==="horizontal";c.value.style.top=A?"":`${y.offsetTop+y.clientHeight/2}px`,c.value.style.height=A?"":`${y.clientHeight}px`,c.value.style.left=A?`${y.offsetLeft}px`:"",c.value.style.width=A?`${y.clientWidth}px`:"",A&&Xl(y,{scrollMode:"if-needed",block:"nearest"})}};Qs({registerLink:y=>{p.links.includes(y)||p.links.push(y)},unregisterLink:y=>{const A=p.links.indexOf(y);A!==-1&&p.links.splice(A,1)},activeLink:m,scrollTo:b,handleClick:(y,A)=>{n("click",y,A)},direction:r}),Qe(()=>{et(()=>{const y=f.value();p.scrollContainer=y,p.scrollEvent=Rn(p.scrollContainer,"scroll",S),S()})}),Me(()=>{p.scrollEvent&&p.scrollEvent.remove()}),en(()=>{if(p.scrollEvent){const y=f.value();p.scrollContainer!==y&&(p.scrollContainer=y,p.scrollEvent.remove(),p.scrollEvent=Rn(p.scrollContainer,"scroll",S),S())}I()});const T=y=>Array.isArray(y)?y.map(A=>{const{children:M,key:O,href:w,target:x,class:N,style:z,title:H}=A;return g(no,{key:O,href:w,target:x,class:N,style:z,title:H,customTitleProps:A},{default:()=>[r.value==="vertical"?T(M):null],customTitle:i.customTitle})}):null,[$,P]=nc(u);return()=>{var y;const{offsetTop:A,affix:M,showInkInFixed:O}=e,w=u.value,x=K(`${w}-ink`,{[`${w}-ink-visible`]:m.value}),N=K(P.value,e.wrapperClass,`${w}-wrapper`,{[`${w}-wrapper-horizontal`]:r.value==="horizontal",[`${w}-rtl`]:a.value==="rtl"}),z=K(w,{[`${w}-fixed`]:!M&&!O}),H=h({maxHeight:A?`calc(100vh - ${A}px)`:"100vh"},e.wrapperStyle),j=g("div",{class:N,style:H,ref:d},[g("div",{class:z},[g("span",{class:x,ref:c},null),Array.isArray(e.items)?T(e.items):(y=i.default)===null||y===void 0?void 0:y.call(i)])]);return $(M?g(Ji,E(E({},o),{},{offsetTop:A,target:f.value}),{default:()=>[j]}):j)}}});it.Link=no;it.install=function(e){return e.component(it.name,it),e.component(it.Link.name,it.Link),e};const oo=()=>null;oo.isSelectOption=!0;oo.displayName="AAutoCompleteOption";const vt=oo,io=()=>null;io.isSelectOptGroup=!0;io.displayName="AAutoCompleteOptGroup";const _t=io;function rc(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const ac=()=>h(h({},Ae(Gl(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),sc=vt,cc=_t,vn=X({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:ac(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:i}=t;wt(),wt(),wt(!e.dropdownClassName);const s=te(),u=()=>{var c;const d=Nt((c=n.default)===null||c===void 0?void 0:c.call(n));return d.length?d[0]:void 0};i({focus:()=>{var c;(c=s.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=s.value)===null||c===void 0||c.blur()}});const{prefixCls:r}=me("select",e);return()=>{var c,d,p;const{size:m,dataSource:f,notFoundContent:v=(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)}=e;let C;const{class:b}=o,S={[b]:!!b,[`${r.value}-lg`]:m==="large",[`${r.value}-sm`]:m==="small",[`${r.value}-show-search`]:!0,[`${r.value}-auto-complete`]:!0};if(e.options===void 0){const T=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((p=n.options)===null||p===void 0?void 0:p.call(n))||[];T.length&&rc(T[0])?C=T:C=f?f.map($=>{if(Ci($))return $;switch(typeof $){case"string":return g(vt,{key:$,value:$},{default:()=>[$]});case"object":return g(vt,{key:$.value,value:$.value},{default:()=>[$.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const I=Ae(h(h(h({},e),o),{mode:Ln.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:u,notFoundContent:v,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:s}),["dataSource","loading"]);return g(Ln,I,E({default:()=>[C]},Ae(n,["default","dataSource","options"])))}}}),dc=h(vn,{Option:vt,OptGroup:_t,install(e){return e.component(vn.name,vn),e.component(vt.displayName,vt),e.component(_t.displayName,_t),e}}),uc=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},fc=function(e){return/[height|width]$/.test(e)},_o=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,i){let s=e[o];o=uc(o),fc(o)&&typeof s=="number"&&(s=s+"px"),s===!0?t+=o:s===!1?t+="not "+o:t+="("+o+": "+s+")",i{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},Zt=e=>{const t=[],n=tl(e),o=nl(e);for(let i=n;ie.currentSlide-mc(e),nl=e=>e.currentSlide+vc(e),mc=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,vc=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Hn=e=>e&&e.offsetWidth||0,lo=e=>e&&e.offsetHeight||0,ol=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,i=e.startY-e.curY,s=Math.atan2(i,o);return n=Math.round(s*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},sn=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Sn=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},bc=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(Hn(n)),i=e.trackRef,s=Math.ceil(Hn(i));let u;if(e.vertical)u=o;else{let m=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(m*=o/100),u=Math.ceil((o-m)/e.slidesToShow)}const l=n&&lo(n.querySelector('[data-index="0"]')),a=l*e.slidesToShow;let r=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(r=t-1-e.initialSlide);let c=e.lazyLoadedList||[];const d=Zt(h(h({},e),{currentSlide:r,lazyLoadedList:c}));c=c.concat(d);const p={slideCount:t,slideWidth:u,listWidth:o,trackWidth:s,currentSlide:r,slideHeight:l,listHeight:a,lazyLoadedList:c};return e.autoplaying===null&&e.autoplay&&(p.autoplaying="playing"),p},Sc=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:i,index:s,slideCount:u,lazyLoad:l,currentSlide:a,centerMode:r,slidesToScroll:c,slidesToShow:d,useCSS:p}=e;let{lazyLoadedList:m}=e;if(t&&n)return{};let f=s,v,C,b,S={},I={};const T=i?s:Dn(s,0,u-1);if(o){if(!i&&(s<0||s>=u))return{};s<0?f=s+u:s>=u&&(f=s-u),l&&m.indexOf(f)<0&&(m=m.concat(f)),S={animating:!0,currentSlide:f,lazyLoadedList:m,targetSlide:f},I={animating:!1,targetSlide:f}}else v=f,f<0?(v=f+u,i?u%c!==0&&(v=u-u%c):v=0):!sn(e)&&f>a?f=v=a:r&&f>=u?(f=i?u:u-1,v=i?0:u-1):f>=u&&(v=f-u,i?u%c!==0&&(v=0):v=u-d),!i&&f+d>=u&&(v=u-d),C=Ot(h(h({},e),{slideIndex:f})),b=Ot(h(h({},e),{slideIndex:v})),i||(C===b&&(f=v),C=b),l&&(m=m.concat(Zt(h(h({},e),{currentSlide:f})))),p?(S={animating:!0,currentSlide:v,trackStyle:il(h(h({},e),{left:C})),lazyLoadedList:m,targetSlide:T},I={animating:!1,currentSlide:v,trackStyle:At(h(h({},e),{left:b})),swipeLeft:null,targetSlide:T}):S={currentSlide:v,trackStyle:At(h(h({},e),{left:b})),lazyLoadedList:m,targetSlide:T};return{state:S,nextState:I}},yc=(e,t)=>{let n,o,i;const{slidesToScroll:s,slidesToShow:u,slideCount:l,currentSlide:a,targetSlide:r,lazyLoad:c,infinite:d}=e,m=l%s!==0?0:(l-a)%s;if(t.message==="previous")o=m===0?s:u-m,i=a-o,c&&!d&&(n=a-o,i=n===-1?l-1:n),d||(i=r-s);else if(t.message==="next")o=m===0?s:m,i=a+o,c&&!d&&(i=(a+s)%l+m),d||(i=r+s);else if(t.message==="dots")i=t.index*t.slidesToScroll;else if(t.message==="children"){if(i=t.index,d){const f=Pc(h(h({},e),{targetSlide:i}));i>t.currentSlide&&f==="left"?i=i-l:ie.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",Cc=(e,t,n)=>(e.target.tagName==="IMG"&&bt(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),wc=(e,t)=>{const{scrolling:n,animating:o,vertical:i,swipeToSlide:s,verticalSwiping:u,rtl:l,currentSlide:a,edgeFriction:r,edgeDragged:c,onEdge:d,swiped:p,swiping:m,slideCount:f,slidesToScroll:v,infinite:C,touchObject:b,swipeEvent:S,listHeight:I,listWidth:T}=t;if(n)return;if(o)return bt(e);i&&s&&u&&bt(e);let $,P={};const y=Ot(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));const A=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!u&&!m&&A>10)return{scrolling:!0};u&&(b.swipeLength=A);let M=(l?-1:1)*(b.curX>b.startX?1:-1);u&&(M=b.curY>b.startY?1:-1);const O=Math.ceil(f/v),w=ol(t.touchObject,u);let x=b.swipeLength;return C||(a===0&&(w==="right"||w==="down")||a+1>=O&&(w==="left"||w==="up")||!sn(t)&&(w==="left"||w==="up"))&&(x=b.swipeLength*r,c===!1&&d&&(d(w),P.edgeDragged=!0)),!p&&S&&(S(w),P.swiped=!0),i?$=y+x*(I/T)*M:l?$=y-x*M:$=y+x*M,u&&($=y+x*M),P=h(h({},P),{touchObject:b,swipeLeft:$,trackStyle:At(h(h({},t),{left:$}))}),Math.abs(b.curX-b.startX)10&&(P.swiping=!0,bt(e)),P},xc=(e,t)=>{const{dragging:n,swipe:o,touchObject:i,listWidth:s,touchThreshold:u,verticalSwiping:l,listHeight:a,swipeToSlide:r,scrolling:c,onSwipe:d,targetSlide:p,currentSlide:m,infinite:f}=t;if(!n)return o&&bt(e),{};const v=l?a/u:s/u,C=ol(i,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!i.swipeLength)return b;if(i.swipeLength>v){bt(e),d&&d(C);let S,I;const T=f?m:p;switch(C){case"left":case"up":I=T+Wo(t),S=r?Fo(t,I):I,b.currentDirection=0;break;case"right":case"down":I=T-Wo(t),S=r?Fo(t,I):I,b.currentDirection=1;break;default:S=T}b.triggerSlideHandler=S}else{const S=Ot(t);b.trackStyle=il(h(h({},t),{left:S}))}return b},Ic=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const i=[];for(;n{const n=Ic(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const i in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,i=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(i).every(l=>{if(e.vertical){if(l.offsetTop+lo(l)/2>e.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-t+Hn(l)/2>e.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;const s=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-s)||1}else return e.slidesToScroll},ro=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),At=e=>{ro(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=Tc(e)*e.slideWidth;let i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",u=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=h(h({},i),{WebkitTransform:s,transform:u,msTransform:l})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t+"px"),n&&(i.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},il=e=>{ro(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=At(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Ot=e=>{if(e.unslick)return 0;ro(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:i,slideCount:s,slidesToShow:u,slidesToScroll:l,slideWidth:a,listWidth:r,variableWidth:c,slideHeight:d,fade:p,vertical:m}=e;let f=0,v,C,b=0;if(p||e.slideCount===1)return 0;let S=0;if(o?(S=-Ze(e),s%l!==0&&t+l>s&&(S=-(t>s?u-(t-s):s%l)),i&&(S+=parseInt(u/2))):(s%l!==0&&t+l>s&&(S=u-s%l),i&&(S=parseInt(u/2))),f=S*a,b=S*d,m?v=t*d*-1+b:v=t*a*-1+f,c===!0){let I;const T=n;if(I=t+Ze(e),C=T&&T.childNodes[I],v=C?C.offsetLeft*-1:0,i===!0){I=o?t+Ze(e):t,C=T&&T.children[I],v=0;for(let $=0;$e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Ft=e=>e.unslick||!e.infinite?0:e.slideCount,Tc=e=>e.slideCount===1?1:Ze(e)+e.slideCount+Ft(e),Pc=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Ac(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:i}=e;if(n){let s=(t-1)/2+1;return parseInt(i)>0&&(s+=1),o&&t%2===0&&(s+=1),s}return o?0:t-1},Oc=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:i}=e;if(n){let s=(t-1)/2+1;return parseInt(i)>0&&(s+=1),!o&&t%2===0&&(s+=1),s}return o?t-1:0},Vo=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),yn=e=>{let t,n,o,i;e.rtl?i=e.slideCount-1-e.index:i=e.index;const s=i<0||i>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?u=e.targetSlide-e.slideCount:u=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":s,"slick-current":i===u}},Ec=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},$n=(e,t)=>e.key+"-"+t,Nc=function(e,t){let n;const o=[],i=[],s=[],u=t.length,l=tl(e),a=nl(e);return t.forEach((r,c)=>{let d;const p={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?d=r:d=g("div");const m=Ec(h(h({},e),{index:c})),f=d.props.class||"";let v=yn(h(h({},e),{index:c}));if(o.push(hn(d,{key:"original"+$n(d,c),tabindex:"-1","data-index":c,"aria-hidden":!v["slick-active"],class:K(v,f),style:h(h({outline:"none"},d.props.style||{}),m),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&e.fade===!1){const C=u-c;C<=Ze(e)&&u!==e.slidesToShow&&(n=-C,n>=l&&(d=r),v=yn(h(h({},e),{index:n})),i.push(hn(d,{key:"precloned"+$n(d,n),class:K(v,f),tabindex:"-1","data-index":n,"aria-hidden":!v["slick-active"],style:h(h({},d.props.style||{}),m),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}}))),u!==e.slidesToShow&&(n=u+c,n{e.focusOnSelect&&e.focusOnSelect(p)}})))}}),e.rtl?i.concat(o,s).reverse():i.concat(o,s)},ll=(e,t)=>{let{attrs:n,slots:o}=t;const i=Nc(n,Nt(o==null?void 0:o.default())),{onMouseenter:s,onMouseover:u,onMouseleave:l}=n,a={onMouseenter:s,onMouseover:u,onMouseleave:l},r=h({class:"slick-track",style:n.trackStyle},a);return g("div",r,[i])};ll.inheritAttrs=!1;const Rc=ll,Mc=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},rl=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:i,slidesToShow:s,infinite:u,currentSlide:l,appendDots:a,customPaging:r,clickHandler:c,dotsClass:d,onMouseenter:p,onMouseover:m,onMouseleave:f}=n,v=Mc({slideCount:o,slidesToScroll:i,slidesToShow:s,infinite:u}),C={onMouseenter:p,onMouseover:m,onMouseleave:f};let b=[];for(let S=0;S=P&&l<=T:l===P}),A={message:"dots",index:S,slidesToScroll:i,currentSlide:l};b=b.concat(g("li",{key:S,class:y},[st(r({i:S}),{onClick:M})]))}return st(a({dots:b}),h({class:d},C))};rl.inheritAttrs=!1;const Lc=rl;function al(){}function sl(e,t,n){n&&n.preventDefault(),t(e,n)}const cl=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:i,currentSlide:s,slideCount:u,slidesToShow:l}=n,a={"slick-arrow":!0,"slick-prev":!0};let r=function(m){sl({message:"previous"},o,m)};!i&&(s===0||u<=l)&&(a["slick-disabled"]=!0,r=al);const c={key:"0","data-role":"none",class:a,style:{display:"block"},onClick:r},d={currentSlide:s,slideCount:u};let p;return n.prevArrow?p=st(n.prevArrow(h(h({},c),d)),{key:"0",class:a,style:{display:"block"},onClick:r},!1):p=g("button",E({key:"0",type:"button"},c),[" ",rt("Previous")]),p};cl.inheritAttrs=!1;const dl=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:i,slideCount:s}=n,u={"slick-arrow":!0,"slick-next":!0};let l=function(d){sl({message:"next"},o,d)};sn(n)||(u["slick-disabled"]=!0,l=al);const a={key:"1","data-role":"none",class:K(u),style:{display:"block"},onClick:l},r={currentSlide:i,slideCount:s};let c;return n.nextArrow?c=st(n.nextArrow(h(h({},a),r)),{key:"1",class:K(u),style:{display:"block"},onClick:l},!1):c=g("button",E({key:"1",type:"button"},a),[" ",rt("Next")]),c};dl.inheritAttrs=!1;var kc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=h({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=Zt(h(h({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=h({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Ul(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=Zt(h(h({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=lo(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Yl(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!Boolean(this.track))return;const n=h(h({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=bc(e);e=h(h(h({},e),o),{slideIndex:o.currentSlide});const i=Ot(e);e=h(h({},e),{left:i});const s=At(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=s),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let a=0,r=0;const c=[],d=Ze(h(h(h({},this.$props),this.$data),{slideCount:e.length})),p=Ft(h(h(h({},this.$props),this.$data),{slideCount:e.length}));e.forEach(f=>{var v,C;const b=((C=(v=f.props.style)===null||v===void 0?void 0:v.width)===null||C===void 0?void 0:C.split("px")[0])||0;c.push(b),a+=b});for(let f=0;f{const i=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const s=o.onclick;o.onclick=()=>{s(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=i,o.onerror=()=>{i(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=h(h({},this.$props),this.$data);for(let n=this.currentSlide;n=-Ze(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:o,beforeChange:i,speed:s,afterChange:u}=this.$props,{state:l,nextState:a}=Sc(h(h(h({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!l)return;i&&i(o,l.currentSlide);const r=l.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&r.length>0&&this.__emit("lazyLoad",r),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),u&&u(o),delete this.animationEndCallback),this.setState(l,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),a&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=a,d=kc(a,["animating"]);this.setState(d,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),u&&u(l.currentSlide),delete this.animationEndCallback})},s))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=h(h({},this.$props),this.$data),o=yc(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const i=this.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=$c(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=Cc(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=wc(e,h(h(h({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));!t||(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=xc(e,h(h(h({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(sn(h(h({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return g("button",null,[t+1])},appendDots(e){let{dots:t}=e;return g("ul",{style:{display:"block"}},[t])}},render(){const e=K("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=h(h({},this.$props),this.$data);let n=Sn(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=h(h({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:Ee,onMouseover:o?this.onTrackOver:Ee});let i;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let C=Sn(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);C.customPaging=this.customPaging,C.appendDots=this.appendDots;const{customPaging:b,appendDots:S}=this.$slots;b&&(C.customPaging=b),S&&(C.appendDots=S);const{pauseOnDotsHover:I}=this.$props;C=h(h({},C),{clickHandler:this.changeSlide,onMouseover:I?this.onDotsOver:Ee,onMouseleave:I?this.onDotsLeave:Ee}),i=g(Lc,C,null)}let s,u;const l=Sn(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);l.clickHandler=this.changeSlide;const{prevArrow:a,nextArrow:r}=this.$slots;a&&(l.prevArrow=a),r&&(l.nextArrow=r),this.arrows&&(s=g(cl,l,null),u=g(dl,l,null));let c=null;this.vertical&&(c={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const p=h(h({},c),d),m=this.touchMove;let f={ref:this.listRefHandler,class:"slick-list",style:p,onClick:this.clickHandler,onMousedown:m?this.swipeStart:Ee,onMousemove:this.dragging&&m?this.swipeMove:Ee,onMouseup:m?this.swipeEnd:Ee,onMouseleave:this.dragging&&m?this.swipeEnd:Ee,[Mn?"onTouchstartPassive":"onTouchstart"]:m?this.swipeStart:Ee,[Mn?"onTouchmovePassive":"onTouchmove"]:this.dragging&&m?this.swipeMove:Ee,onTouchend:m?this.touchEnd:Ee,onTouchcancel:this.dragging&&m?this.swipeEnd:Ee,onKeydown:this.accessibility?this.keyHandler:Ee},v={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(f={class:"slick-list",ref:this.listRefHandler},v={class:e}),g("div",v,[this.unslick?"":s,g("div",f,[g(Rc,n,{default:()=>[this.children]})]),this.unslick?"":u,this.unslick?"":i])}},zc=X({name:"Slider",mixins:[wi],inheritAttrs:!1,props:h({},el),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let i;o===0?i=bn({minWidth:0,maxWidth:n}):i=bn({minWidth:e[o-1]+1,maxWidth:n}),Vo()&&this.media(i,()=>{this.setState({breakpoint:n})})});const t=bn({minWidth:e.slice(-1)[0]});Vo()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=i=>{let{matches:s}=i;s&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(l=>l.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":h(h({},this.$props),n[0].settings)):t=h({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=ql(this)||[];o=o.filter(l=>typeof l=="string"?!!l.trim():!!l),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const i=[];let s=null;for(let l=0;l=o.length));d+=1)c.push(st(o[d],{key:100*l+10*r+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));a.push(g("div",{key:10*l+r},[c]))}t.variableWidth?i.push(g("div",{key:l,style:{width:s}},[a])):i.push(g("div",{key:l},[a]))}if(t==="unslick"){const l="regular slider "+(this.className||"");return g("div",{class:l},[o])}else i.length<=t.slidesToShow&&(t.unslick=!0);const u=h(h(h({},this.$attrs),t),{children:i,ref:this.innerSliderRefHandler});return g(Bc,E(E({},u),{},{__propsSymbol__:[]}),this.$slots)}}),Dc=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:i,marginXXS:s}=e,u=-o*1.25,l=s;return{[t]:h(h({},xe(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:u,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:u,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:i},"&-top":{top:i,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-l,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Hc=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:h(h({},i),{margin:`${o}px 0`,verticalAlign:"baseline",button:i,"&.slick-active":h(h({},i),{button:i})})}}}},_c=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},Fc=$e("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=Ie(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[Dc(o),Hc(o),_c(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var Wc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i({effect:se(),dots:Y(!0),vertical:Y(),autoplay:Y(),easing:String,beforeChange:U(),afterChange:U(),prefixCls:String,accessibility:Y(),nextArrow:L.any,prevArrow:L.any,pauseOnHover:Y(),adaptiveHeight:Y(),arrows:Y(!1),autoplaySpeed:Number,centerMode:Y(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Y(!1),fade:Y(),focusOnSelect:Y(),infinite:Y(),initialSlide:Number,lazyLoad:se(),rtl:Y(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Y(),swipeToSlide:Y(),swipeEvent:U(),touchMove:Y(),touchThreshold:Number,variableWidth:Y(),useCSS:Y(),slickGoTo:Number,responsive:Array,dotPosition:se(),verticalSwiping:Y(!1)}),jc=X({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:Vc(),setup(e,t){let{slots:n,attrs:o,expose:i}=t;const s=te();i({goTo:function(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var C;(C=s.value)===null||C===void 0||C.slickGoTo(f,v)},autoplay:f=>{var v,C;(C=(v=s.value)===null||v===void 0?void 0:v.innerSlider)===null||C===void 0||C.handleAutoPlay(f)},prev:()=>{var f;(f=s.value)===null||f===void 0||f.slickPrev()},next:()=>{var f;(f=s.value)===null||f===void 0||f.slickNext()},innerSlider:R(()=>{var f;return(f=s.value)===null||f===void 0?void 0:f.innerSlider})}),Be(()=>{wt(e.vertical===void 0)});const{prefixCls:l,direction:a}=me("carousel",e),[r,c]=Fc(l),d=R(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),p=R(()=>d.value==="left"||d.value==="right"),m=R(()=>{const f="slick-dots";return K({[f]:!0,[`${f}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:f,arrows:v,draggable:C,effect:b}=e,{class:S,style:I}=o,T=Wc(o,["class","style"]),$=b==="fade"?!0:e.fade,P=K(l.value,{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-vertical`]:p.value,[`${S}`]:!!S},c.value);return r(g("div",{class:P,style:I},[g(zc,E(E(E({ref:s},e),T),{},{dots:!!f,dotsClass:m.value,arrows:v,draggable:C,fade:$,vertical:p.value}),n)]))}}}),Kc=Je(jc),Xc={useBreakpoint:xi},Gc=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:i,commentFontSizeBase:s,commentFontSizeSm:u,commentAuthorNameColor:l,commentAuthorTimeColor:a,commentActionColor:r,commentActionHoverColor:c,commentActionsMarginBottom:d,commentActionsMarginTop:p,commentContentDetailPMarginBottom:m}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:s,wordWrap:"break-word",["&-author"]:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:s,["& > a,& > span"]:{paddingRight:e.paddingXS,fontSize:u,lineHeight:"18px"},["&-name"]:{color:l,fontSize:s,transition:`color ${e.motionDurationSlow}`,["> *"]:{color:l,["&:hover"]:{color:l}}},["&-time"]:{color:a,whiteSpace:"nowrap",cursor:"auto"}},["&-detail p"]:{marginBottom:m,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:p,marginBottom:d,paddingLeft:0,["> li"]:{display:"inline-block",color:r,["> span"]:{marginRight:"10px",color:r,fontSize:u,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none",["&:hover"]:{color:c}}}},[`${t}-nested`]:{marginLeft:i},"&-rtl":{direction:"rtl"}}}},Uc=$e("Comment",e=>{const t=Ie(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[Gc(t)]}),Yc=()=>({actions:Array,author:L.any,avatar:L.any,content:L.any,prefixCls:String,datetime:L.any}),qc=X({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:Yc(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:i,direction:s}=me("comment",e),[u,l]=Uc(i),a=(c,d)=>g("div",{class:`${c}-nested`},[d]),r=c=>!c||!c.length?null:c.map((p,m)=>g("li",{key:`action-${m}`},[p]));return()=>{var c,d,p,m,f,v,C,b,S,I,T;const $=i.value,P=(c=e.actions)!==null&&c!==void 0?c:(d=n.actions)===null||d===void 0?void 0:d.call(n),y=(p=e.author)!==null&&p!==void 0?p:(m=n.author)===null||m===void 0?void 0:m.call(n),A=(f=e.avatar)!==null&&f!==void 0?f:(v=n.avatar)===null||v===void 0?void 0:v.call(n),M=(C=e.content)!==null&&C!==void 0?C:(b=n.content)===null||b===void 0?void 0:b.call(n),O=(S=e.datetime)!==null&&S!==void 0?S:(I=n.datetime)===null||I===void 0?void 0:I.call(n),w=g("div",{class:`${$}-avatar`},[typeof A=="string"?g("img",{src:A,alt:"comment-avatar"},null):A]),x=P?g("ul",{class:`${$}-actions`},[r(Array.isArray(P)?P:[P])]):null,N=g("div",{class:`${$}-content-author`},[y&&g("span",{class:`${$}-content-author-name`},[y]),O&&g("span",{class:`${$}-content-author-time`},[O])]),z=g("div",{class:`${$}-content`},[N,g("div",{class:`${$}-content-detail`},[M]),x]),H=g("div",{class:`${$}-inner`},[w,z]),j=Nt((T=n.default)===null||T===void 0?void 0:T.call(n));return u(g("div",E(E({},o),{},{class:[$,{[`${$}-rtl`]:s.value==="rtl"},o.class,l.value]}),[H,j&&j.length?a($,j):null]))}}}),Zc=Je(qc);var Jc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const Qc=Jc;function jo(e){for(var t=1;t({prefixCls:String,description:L.any,type:se("default"),shape:se("circle"),tooltip:L.any,href:String,target:U(),badge:Ne(),onClick:U()}),td=()=>({prefixCls:se()}),nd=()=>h(h({},so()),{trigger:se(),open:Y(),onOpenChange:U(),"onUpdate:open":U()}),od=()=>h(h({},so()),{prefixCls:String,duration:Number,target:U(),visibilityHeight:Number,onClick:U()}),id=X({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:td(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var i;const{prefixCls:s}=e,u=tn((i=o.description)===null||i===void 0?void 0:i.call(o));return g("div",E(E({},n),{},{class:[n.class,`${s}-content`]}),[o.icon||u.length?g(je,null,[o.icon&&g("div",{class:`${s}-icon`},[o.icon()]),u.length?g("div",{class:`${s}-description`},[u]):null]):g("div",{class:`${s}-icon`},[g(ul,null,null)])])}}}),ld=id,fl=Symbol("floatButtonGroupContext"),rd=e=>(nt(fl,e),e),hl=()=>dt(fl,{shape:te()}),ad=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Ko=ad,sd=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:i}=e,s=`${t}-group`,u=new Ao("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new Ao("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${s}-wrap`]:h({},Jl(`${s}-wrap`,u,l,o,!0))},{[`${s}-wrap`]:{[` &${s}-wrap-enter, &${s}-wrap-appear `]:{opacity:0,animationTimingFunction:i},[`&${s}-wrap-leave`]:{animationTimingFunction:i}}}]},cd=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:i,borderRadiusLG:s,borderRadiusSM:u,badgeOffset:l,floatButtonBodyPadding:a}=e,r=`${n}-group`;return{[r]:h(h({},xe(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:s,[`${r}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:i},[`&${r}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${r}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${r}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:s,borderStartEndRadius:s},"&:last-child":{borderEndStartRadius:s,borderEndEndRadius:s},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(a+l),insetInlineEnd:-(a+l)}}},[`${r}-wrap`]:{display:"block",borderRadius:s,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:a,"&:first-child":{borderStartStartRadius:s,borderStartEndRadius:s},"&:last-child":{borderEndStartRadius:s,borderEndEndRadius:s},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${r}-circle-shadow`]:{boxShadow:"none"},[`${r}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:a,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:u}}}}},dd=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:i,floatButtonSize:s,borderRadiusLG:u,badgeOffset:l,dotOffsetInSquare:a,dotOffsetInCircle:r}=e;return{[n]:h(h({},xe(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:s,height:s,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-l,insetInlineEnd:-l}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:s,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:i,fontSize:i,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:s,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:r,insetInlineEnd:r}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:s,borderRadius:u,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:a,insetInlineEnd:a}},[`${n}-body`]:{height:"auto",borderRadius:u}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},co=$e("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:i,marginLG:s,fontSize:u,fontSizeIcon:l,controlItemBgHover:a,paddingXXS:r,borderRadiusLG:c}=e,d=Ie(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:a,floatButtonFontSize:u,floatButtonIconSize:l*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:i,floatButtonInsetInlineEnd:s,floatButtonBodySize:o-r*2,floatButtonBodyPadding:r,badgeOffset:r*1.5,dotOffsetInCircle:Ko(o/2),dotOffsetInSquare:Ko(c)});return[cd(d),dd(d),Zl(e),sd(d)]});var ud=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i(a==null?void 0:a.value)||e.shape);return()=>{var d;const{prefixCls:p,type:m="default",shape:f="circle",description:v=(d=o.description)===null||d===void 0?void 0:d.call(o),tooltip:C,badge:b={}}=e,S=ud(e,["prefixCls","type","shape","description","tooltip","badge"]),I=K(i.value,`${i.value}-${m}`,`${i.value}-${c.value}`,{[`${i.value}-rtl`]:s.value==="rtl"},n.class,l.value),T=g(nn,{placement:"left"},{title:o.tooltip||C?()=>o.tooltip&&o.tooltip()||C:void 0,default:()=>g(Yi,b,{default:()=>[g("div",{class:`${i.value}-body`},[g(ld,{prefixCls:i.value},{icon:o.icon,description:()=>v})])]})});return u(e.href?g("a",E(E(E({ref:r},n),S),{},{class:I}),[T]):g("button",E(E(E({ref:r},n),S),{},{class:I,type:"button"}),[T]))}}}),tt=fd,hd=X({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:ye(nd(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:i}=t;const{prefixCls:s,direction:u}=me(uo,e),[l,a]=co(s),[r,c]=Pt(!1,{value:R(()=>e.open)}),d=te(null),p=te(null);rd({shape:R(()=>e.shape)});const m={onMouseenter(){var b;c(!0),i("update:open",!0),(b=e.onOpenChange)===null||b===void 0||b.call(e,!0)},onMouseleave(){var b;c(!1),i("update:open",!1),(b=e.onOpenChange)===null||b===void 0||b.call(e,!1)}},f=R(()=>e.trigger==="hover"?m:{}),v=()=>{var b;const S=!r.value;i("update:open",S),(b=e.onOpenChange)===null||b===void 0||b.call(e,S),c(S)},C=b=>{var S,I,T;if(!((S=d.value)===null||S===void 0)&&S.contains(b.target)){!((I=Pi(p.value))===null||I===void 0)&&I.contains(b.target)&&v();return}c(!1),i("update:open",!1),(T=e.onOpenChange)===null||T===void 0||T.call(e,!1)};return ce(R(()=>e.trigger),b=>{!Ai()||(document.removeEventListener("click",C),b==="click"&&document.addEventListener("click",C))},{immediate:!0}),Me(()=>{document.removeEventListener("click",C)}),()=>{var b;const{shape:S="circle",type:I="default",tooltip:T,description:$,trigger:P}=e,y=`${s.value}-group`,A=K(y,a.value,n.class,{[`${y}-rtl`]:u.value==="rtl",[`${y}-${S}`]:S,[`${y}-${S}-shadow`]:!P}),M=K(a.value,`${y}-wrap`),O=Ii(`${y}-wrap`);return l(g("div",E(E({ref:d},n),{},{class:A},f.value),[P&&["click","hover"].includes(P)?g(je,null,[g(Gn,O,{default:()=>[Un(g("div",{class:M},[o.default&&o.default()]),[[Ti,r.value]])]}),g(tt,{ref:p,type:I,shape:S,tooltip:T,description:$},{icon:()=>{var w,x;return r.value?((w=o.closeIcon)===null||w===void 0?void 0:w.call(o))||g(Yn,null,null):((x=o.icon)===null||x===void 0?void 0:x.call(o))||g(ul,null,null)},tooltip:o.tooltip,description:o.description})]):(b=o.default)===null||b===void 0?void 0:b.call(o)]))}}}),Jt=hd;var pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const gd=pd;function Xo(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:i}=t;const{prefixCls:s,direction:u}=me(uo,e),[l]=co(s),a=te(),r=$t({visible:e.visibilityHeight===0,scrollEvent:null}),c=()=>a.value&&a.value.ownerDocument?a.value.ownerDocument:window,d=C=>{const{target:b=c,duration:S}=e;$i(0,{getContainer:b,duration:S}),i("click",C)},p=zn(C=>{const{visibilityHeight:b}=e,S=yi(C.target,!0);r.visible=S>=b}),m=()=>{const{target:C}=e,S=(C||c)();p({target:S}),S==null||S.addEventListener("scroll",p)},f=()=>{const{target:C}=e,S=(C||c)();p.cancel(),S==null||S.removeEventListener("scroll",p)};ce(()=>e.target,()=>{f(),et(()=>{m()})}),Qe(()=>{et(()=>{m()})}),Ql(()=>{et(()=>{m()})}),er(()=>{f()}),Me(()=>{f()});const v=hl();return()=>{const{description:C,type:b,shape:S,tooltip:I,badge:T}=e,$=h(h({},o),{shape:(v==null?void 0:v.shape.value)||S,onClick:d,class:{[`${s.value}`]:!0,[`${o.class}`]:o.class,[`${s.value}-rtl`]:u.value==="rtl"},description:C,type:b,tooltip:I,badge:T}),P=Ii("fade");return l(g(Gn,P,{default:()=>[Un(g(tt,E(E({},$),{},{ref:a}),{icon:()=>{var y;return((y=n.icon)===null||y===void 0?void 0:y.call(n))||g(vd,null,null)}}),[[Ti,r.visible]])]}))}}}),Qt=bd;tt.Group=Jt;tt.BackTop=Qt;tt.install=function(e){return e.component(tt.name,tt),e.component(Jt.name,Jt),e.component(Qt.name,Qt),e};var Sd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const yd=Sd;function Go(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(_n()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new lt(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":go(this.number):this.origin}}class pt{constructor(t){if(this.origin="",pl(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(po(n)&&(n=Number(n)),n=typeof n=="string"?n:go(n),mo(n)){const o=It(n);this.negative=o.negative;const i=o.trimStr.split(".");this.integer=BigInt(i[0]);const s=i[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new pt(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new pt(t);const n=new pt(t);if(n.isInvalidate())return this;const o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(o),s=n.alignDecimal(o),u=(i+s).toString(),{negativeStr:l,trimStr:a}=It(u),r=`${l}${a.padStart(o+1,"0")}`;return new pt(`${r.slice(0,-o)}.${r.slice(-o)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":It(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function We(e){return _n()?new pt(e):new lt(e)}function Fn(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:i,integerStr:s,decimalStr:u}=It(e),l=`${t}${u}`,a=`${i}${s}`;if(n>=0){const r=Number(u[n]);if(r>=5&&!o){const c=We(e).add(`${i}0.${"0".repeat(n)}${10-r}`);return Fn(c.toString(),t,n,o)}return n===0?a:`${a}${t}${u.padEnd(n,"0").slice(0,n)}`}return l===".0"?a:`${a}${l}`}const wd=200,xd=600,Id=X({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:U()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const i=te(),s=(l,a)=>{l.preventDefault(),o("step",a);function r(){o("step",a),i.value=setTimeout(r,wd)}i.value=setTimeout(r,xd)},u=()=>{clearTimeout(i.value)};return Me(()=>{u()}),()=>{if(tr())return null;const{prefixCls:l,upDisabled:a,downDisabled:r}=e,c=`${l}-handler`,d=K(c,`${c}-up`,{[`${c}-up-disabled`]:a}),p=K(c,`${c}-down`,{[`${c}-down-disabled`]:r}),m={unselectable:"on",role:"button",onMouseup:u,onMouseleave:u},{upNode:f,downNode:v}=n;return g("div",{class:`${c}-wrap`},[g("span",E(E({},m),{},{onMousedown:C=>{s(C,!0)},"aria-label":"Increase Value","aria-disabled":a,class:d}),[(f==null?void 0:f())||g("span",{unselectable:"on",class:`${l}-handler-up-inner`},null)]),g("span",E(E({},m),{},{onMousedown:C=>{s(C,!1)},"aria-label":"Decrease Value","aria-disabled":r,class:p}),[(v==null?void 0:v())||g("span",{unselectable:"on",class:`${l}-handler-down-inner`},null)])])}}});function Td(e,t){const n=te(null);function o(){try{const{selectionStart:s,selectionEnd:u,value:l}=e.value,a=l.substring(0,s),r=l.substring(u);n.value={start:s,end:u,value:l,beforeTxt:a,afterTxt:r}}catch{}}function i(){if(e.value&&n.value&&t.value)try{const{value:s}=e.value,{beforeTxt:u,afterTxt:l,start:a}=n.value;let r=s.length;if(s.endsWith(l))r=s.length-n.value.afterTxt.length;else if(s.startsWith(u))r=u.length;else{const c=u[a-1],d=s.indexOf(c,a-1);d!==-1&&(r=d+1)}e.value.setSelectionRange(r,r)}catch(s){Oi(!1,`Something warning of cursor restore. Please fire issue about this: ${s.message}`)}}return[o,i]}const Pd=()=>{const e=ee(0),t=()=>{Ut.cancel(e.value)};return Me(()=>{t()}),n=>{t(),e.value=Ut(()=>{n()})}};var Ad=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);ie||t.isEmpty()?t.toString():t.toNumber(),Yo=e=>{const t=We(e);return t.isInvalidate()?null:t},gl=()=>({stringMode:Y(),defaultValue:pe([String,Number]),value:pe([String,Number]),prefixCls:se(),min:pe([String,Number]),max:pe([String,Number]),step:pe([String,Number],1),tabindex:Number,controls:Y(!0),readonly:Y(),disabled:Y(),autofocus:Y(),keyboard:Y(!0),parser:U(),formatter:U(),precision:Number,decimalSeparator:String,onInput:U(),onChange:U(),onPressEnter:U(),onStep:U(),onBlur:U(),onFocus:U()}),Od=X({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:h(h({},gl()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:i,expose:s}=t;const u=ee(),l=ee(!1),a=ee(!1),r=ee(!1),c=ee(We(e.value));function d(k){e.value===void 0&&(c.value=k)}const p=(k,D)=>{if(!D)return e.precision>=0?e.precision:Math.max(Et(k),Et(e.step))},m=k=>{const D=String(k);if(e.parser)return e.parser(D);let F=D;return e.decimalSeparator&&(F=F.replace(e.decimalSeparator,".")),F.replace(/[^\w.-]+/g,"")},f=ee(""),v=(k,D)=>{if(e.formatter)return e.formatter(k,{userTyping:D,input:String(f.value)});let F=typeof k=="number"?go(k):k;if(!D){const _=p(F,D);if(mo(F)&&(e.decimalSeparator||_>=0)){const B=e.decimalSeparator||".";F=Fn(F,B,_)}}return F},C=(()=>{const k=e.value;return c.value.isInvalidate()&&["string","number"].includes(typeof k)?Number.isNaN(k)?"":k:v(c.value.toString(),!1)})();f.value=C;function b(k,D){f.value=v(k.isInvalidate()?k.toString(!1):k.toString(!D),D)}const S=R(()=>Yo(e.max)),I=R(()=>Yo(e.min)),T=R(()=>!S.value||!c.value||c.value.isInvalidate()?!1:S.value.lessEquals(c.value)),$=R(()=>!I.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(I.value)),[P,y]=Td(u,l),A=k=>S.value&&!k.lessEquals(S.value)?S.value:I.value&&!I.value.lessEquals(k)?I.value:null,M=k=>!A(k),O=(k,D)=>{var F;let _=k,B=M(_)||_.isEmpty();if(!_.isEmpty()&&!D&&(_=A(_)||_,B=!0),!e.readonly&&!e.disabled&&B){const W=_.toString(),J=p(W,D);return J>=0&&(_=We(Fn(W,".",J))),_.equals(c.value)||(d(_),(F=e.onChange)===null||F===void 0||F.call(e,_.isEmpty()?null:Uo(e.stringMode,_)),e.value===void 0&&b(_,D)),_}return c.value},w=Pd(),x=k=>{var D;if(P(),f.value=k,!r.value){const F=m(k),_=We(F);_.isNaN()||O(_,!0)}(D=e.onInput)===null||D===void 0||D.call(e,k),w(()=>{let F=k;e.parser||(F=k.replace(/。/g,".")),F!==k&&x(F)})},N=()=>{r.value=!0},z=()=>{r.value=!1,x(u.value.value)},H=k=>{x(k.target.value)},j=k=>{var D,F;if(k&&T.value||!k&&$.value)return;a.value=!1;let _=We(e.step);k||(_=_.negate());const B=(c.value||We(0)).add(_.toString()),W=O(B,!1);(D=e.onStep)===null||D===void 0||D.call(e,Uo(e.stringMode,W),{offset:e.step,type:k?"up":"down"}),(F=u.value)===null||F===void 0||F.focus()},Z=k=>{const D=We(m(f.value));let F=D;D.isNaN()?F=c.value:F=O(D,k),e.value!==void 0?b(c.value,!1):F.isNaN()||b(F,!1)},Q=k=>{var D;const{which:F}=k;a.value=!0,F===ge.ENTER&&(r.value||(a.value=!1),Z(!1),(D=e.onPressEnter)===null||D===void 0||D.call(e,k)),e.keyboard!==!1&&!r.value&&[ge.UP,ge.DOWN].includes(F)&&(j(ge.UP===F),k.preventDefault())},q=()=>{a.value=!1},le=k=>{Z(!1),l.value=!1,a.value=!1,i("blur",k)};return ce(()=>e.precision,()=>{c.value.isInvalidate()||b(c.value,!1)},{flush:"post"}),ce(()=>e.value,()=>{const k=We(e.value);c.value=k;const D=We(m(f.value));(!k.equals(D)||!a.value||e.formatter)&&b(k,a.value)},{flush:"post"}),ce(f,()=>{e.formatter&&y()},{flush:"post"}),ce(()=>e.disabled,k=>{k&&(l.value=!1)}),s({focus:()=>{var k;(k=u.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=u.value)===null||k===void 0||k.blur()}}),()=>{const k=h(h({},n),e),{prefixCls:D="rc-input-number",min:F,max:_,step:B=1,defaultValue:W,value:J,disabled:ie,readonly:ue,keyboard:V,controls:de=!0,autofocus:ve,stringMode:Ce,parser:Se,formatter:Oe,precision:Ke,decimalSeparator:ze,onChange:De,onInput:Le,onPressEnter:Xe,onStep:Ge,lazy:G,class:ne,style:oe}=k,ae=Ad(k,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:be,downHandler:fe}=o,re=`${D}-input`,he={};return G?he.onChange=H:he.onInput=H,g("div",{class:K(D,ne,{[`${D}-focused`]:l.value,[`${D}-disabled`]:ie,[`${D}-readonly`]:ue,[`${D}-not-a-number`]:c.value.isNaN(),[`${D}-out-of-range`]:!c.value.isInvalidate()&&!M(c.value)}),style:oe,onKeydown:Q,onKeyup:q},[de&&g(Id,{prefixCls:D,upDisabled:T.value,downDisabled:$.value,onStep:j},{upNode:be,downNode:fe}),g("div",{class:`${re}-wrap`},[g("input",E(E(E({autofocus:ve,autocomplete:"off",role:"spinbutton","aria-valuemin":F,"aria-valuemax":_,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:B},ae),{},{ref:u,class:re,value:f.value,disabled:ie,readonly:ue,onFocus:Te=>{l.value=!0,i("focus",Te)}},he),{},{onBlur:le,onCompositionstart:N,onCompositionend:z}),null)])])}}});function Cn(e){return e!=null}const Ed=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:i,borderRadius:s,fontSizeLG:u,controlHeightLG:l,controlHeightSM:a,colorError:r,inputPaddingHorizontalSM:c,colorTextDescription:d,motionDurationMid:p,colorPrimary:m,controlHeight:f,inputPaddingHorizontal:v,colorBgContainer:C,colorTextDisabled:b,borderRadiusSM:S,borderRadiusLG:I,controlWidth:T,handleVisible:$}=e;return[{[t]:h(h(h(h({},xe(e)),qn(e)),Zn(e,t)),{display:"inline-block",width:T,margin:0,padding:0,border:`${n}px ${o} ${i}`,borderRadius:s,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:u,borderRadius:I,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:a-2*n,padding:`0 ${c}px`}},"&:hover":h({},Ni(e)),"&-focused":h({},Ri(e)),"&-disabled":h(h({},Mi(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:r}},"&-group":h(h(h({},xe(e)),or(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:I}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":h(h({width:"100%",height:f-2*n,padding:`0 ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:s,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},Li(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:C,borderStartStartRadius:0,borderStartEndRadius:s,borderEndEndRadius:s,borderEndStartRadius:0,opacity:$===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` @@ -14,4 +14,4 @@ import{a9 as Ut,aa as Rn,ab as Mn,ac as $e,ad as Ie,ae as Je,d as X,Q as ee,D as ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Nd=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:i,borderRadiusLG:s,borderRadiusSM:u}=e;return{[`${t}-affix-wrapper`]:h(h(h({},qn(e)),Zn(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:s},"&-sm":{borderRadius:u},[`&:not(${t}-affix-wrapper-disabled):hover`]:h(h({},Ni(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},Rd=$e("InputNumber",e=>{const t=Ei(e);return[Ed(t),Nd(t),nr(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var Md=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);ih(h({},qo),{size:se(),bordered:Y(!0),placeholder:String,name:String,id:String,type:String,addonBefore:L.any,addonAfter:L.any,prefix:L.any,"onUpdate:value":qo.onChange,valueModifiers:Object,status:se()}),wn=X({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Ld(),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:i,slots:s}=t;const u=Rt(),l=on.useInject(),a=R(()=>ln(l.status,e.status)),{prefixCls:r,size:c,direction:d,disabled:p}=me("input-number",e),{compactSize:m,compactItemClassnames:f}=Bi(r,d),v=zi(),C=R(()=>{var x;return(x=p.value)!==null&&x!==void 0?x:v.value}),[b,S]=Rd(r),I=R(()=>m.value||c.value),T=ee(e.value===void 0?e.defaultValue:e.value),$=ee(!1);ce(()=>e.value,()=>{T.value=e.value});const P=ee(null),y=()=>{var x;(x=P.value)===null||x===void 0||x.focus()};o({focus:y,blur:()=>{var x;(x=P.value)===null||x===void 0||x.blur()}});const M=x=>{e.value===void 0&&(T.value=x),n("update:value",x),n("change",x),u.onFieldChange()},O=x=>{$.value=!1,n("blur",x),u.onFieldBlur()},w=x=>{$.value=!0,n("focus",x)};return()=>{var x,N,z,H;const{hasFeedback:j,isFormItemInput:Z,feedbackIcon:Q}=l,q=(x=e.id)!==null&&x!==void 0?x:u.id.value,le=h(h(h({},i),e),{id:q,disabled:C.value}),{class:k,bordered:D,readonly:F,style:_,addonBefore:B=(N=s.addonBefore)===null||N===void 0?void 0:N.call(s),addonAfter:W=(z=s.addonAfter)===null||z===void 0?void 0:z.call(s),prefix:J=(H=s.prefix)===null||H===void 0?void 0:H.call(s),valueModifiers:ie={}}=le,ue=Md(le,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),V=r.value,de=K({[`${V}-lg`]:I.value==="large",[`${V}-sm`]:I.value==="small",[`${V}-rtl`]:d.value==="rtl",[`${V}-readonly`]:F,[`${V}-borderless`]:!D,[`${V}-in-form-item`]:Z},at(V,a.value),k,f.value,S.value);let ve=g(Od,E(E({},Ae(ue,["size","defaultValue"])),{},{ref:P,lazy:!!ie.lazy,value:T.value,class:de,prefixCls:V,readonly:F,onChange:M,onBlur:O,onFocus:w}),{upHandler:s.upIcon?()=>g("span",{class:`${V}-handler-up-inner`},[s.upIcon()]):()=>g(Cd,{class:`${V}-handler-up-inner`},null),downHandler:s.downIcon?()=>g("span",{class:`${V}-handler-down-inner`},[s.downIcon()]):()=>g(Di,{class:`${V}-handler-down-inner`},null)});const Ce=Cn(B)||Cn(W),Se=Cn(J);if(Se||j){const Oe=K(`${V}-affix-wrapper`,at(`${V}-affix-wrapper`,a.value,j),{[`${V}-affix-wrapper-focused`]:$.value,[`${V}-affix-wrapper-disabled`]:C.value,[`${V}-affix-wrapper-sm`]:I.value==="small",[`${V}-affix-wrapper-lg`]:I.value==="large",[`${V}-affix-wrapper-rtl`]:d.value==="rtl",[`${V}-affix-wrapper-readonly`]:F,[`${V}-affix-wrapper-borderless`]:!D,[`${k}`]:!Ce&&k},S.value);ve=g("div",{class:Oe,style:_,onClick:y},[Se&&g("span",{class:`${V}-prefix`},[J]),ve,j&&g("span",{class:`${V}-suffix`},[Q])])}if(Ce){const Oe=`${V}-group`,Ke=`${Oe}-addon`,ze=B?g("div",{class:Ke},[B]):null,De=W?g("div",{class:Ke},[W]):null,Le=K(`${V}-wrapper`,Oe,{[`${Oe}-rtl`]:d.value==="rtl"},S.value),Xe=K(`${V}-group-wrapper`,{[`${V}-group-wrapper-sm`]:I.value==="small",[`${V}-group-wrapper-lg`]:I.value==="large",[`${V}-group-wrapper-rtl`]:d.value==="rtl"},at(`${r}-group-wrapper`,a.value,j),k,S.value);ve=g("div",{class:Xe,style:_},[g("div",{class:Le},[ze&&g(Oo,null,{default:()=>[g(Eo,null,{default:()=>[ze]})]}),ve,De&&g(Oo,null,{default:()=>[g(Eo,null,{default:()=>[De]})]})])])}return b(st(ve,{style:_}))}}}),kd=h(wn,{install:e=>(e.component(wn.name,wn),e)}),Bd=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:i}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:i,background:n},[`${t}-sider-zero-width-trigger`]:{color:i,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},zd=Bd,Dd=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:i,colorBgHeader:s,colorBgBody:u,colorBgTrigger:l,layoutHeaderHeight:a,layoutHeaderPaddingInline:r,layoutHeaderColor:c,layoutFooterPadding:d,layoutTriggerHeight:p,layoutZeroTriggerSize:m,motionDurationMid:f,motionDurationSlow:v,fontSize:C,borderRadius:b}=e;return{[n]:h(h({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:a,paddingInline:r,color:c,lineHeight:`${a}px`,background:s,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:C,background:u},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:s,transition:`all ${f}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:i,lineHeight:`${p}px`,textAlign:"center",background:l,cursor:"pointer",transition:`all ${f}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:a,insetInlineEnd:-m,zIndex:1,width:m,height:m,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:s,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-m,borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},zd(e)),{"&-rtl":{direction:"rtl"}})}},Hd=$e("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:i,marginXXS:s}=e,u=i*1.25,l=Ie(e,{layoutHeaderHeight:o*2,layoutHeaderPaddingInline:u,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${u}px`,layoutTriggerHeight:i+s*2,layoutZeroTriggerSize:i});return[Dd(l)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),vo=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function cn(e){let{suffixCls:t,tagName:n,name:o}=e;return i=>X({compatConfig:{MODE:3},name:o,props:vo(),setup(u,l){let{slots:a}=l;const{prefixCls:r}=me(t,u);return()=>{const c=h(h({},u),{prefixCls:r.value,tagName:n});return g(i,c,a)}}})}const bo=X({compatConfig:{MODE:3},props:vo(),setup(e,t){let{slots:n}=t;return()=>g(e.tagName,{class:e.prefixCls},n)}}),_d=X({compatConfig:{MODE:3},inheritAttrs:!1,props:vo(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:i,direction:s}=me("",e),[u,l]=Hd(i),a=te([]);nt(Hi,{addSider:d=>{a.value=[...a.value,d]},removeSider:d=>{a.value=a.value.filter(p=>p!==d)}});const c=R(()=>{const{prefixCls:d,hasSider:p}=e;return{[l.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof p=="boolean"?p:a.value.length>0,[`${d}-rtl`]:s.value==="rtl"}});return()=>{const{tagName:d}=e;return u(g(d,h(h({},o),{class:[c.value,o.class]}),n))}}}),Fd=cn({suffixCls:"layout",tagName:"section",name:"ALayout"})(_d),Wt=cn({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(bo),Vt=cn({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(bo),jt=cn({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(bo),xn=Fd;var Wd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const Vd=Wd;function Zo(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:L.any,width:L.oneOfType([L.number,L.string]),collapsedWidth:L.oneOfType([L.number,L.string]),breakpoint:L.oneOf(kn("xs","sm","md","lg","xl","xxl","xxxl")),theme:L.oneOf(kn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Gd=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Kt=X({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ye(Xd(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:i}=t;const{prefixCls:s}=me("layout-sider",e),u=dt(Hi,void 0),l=ee(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),a=ee(!1);ce(()=>e.collapsed,()=>{l.value=!!e.collapsed}),nt(ir,l);const r=(v,C)=>{e.collapsed===void 0&&(l.value=v),n("update:collapsed",v),n("collapse",v,C)},c=ee(v=>{a.value=v.matches,n("breakpoint",v.matches),l.value!==v.matches&&r(v.matches,"responsive")});let d;function p(v){return c.value(v)}const m=Gd("ant-sider-");u&&u.addSider(m),Qe(()=>{ce(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",p)}catch{d==null||d.removeListener(p)}if(typeof window<"u"){const{matchMedia:v}=window;if(v&&e.breakpoint&&e.breakpoint in Jo){d=v(`(max-width: ${Jo[e.breakpoint]})`);try{d.addEventListener("change",p)}catch{d.addListener(p)}p(d)}}},{immediate:!0})}),Me(()=>{try{d==null||d.removeEventListener("change",p)}catch{d==null||d.removeListener(p)}u&&u.removeSider(m)});const f=()=>{r(!l.value,"clickTrigger")};return()=>{var v,C;const b=s.value,{collapsedWidth:S,width:I,reverseArrow:T,zeroWidthTriggerStyle:$,trigger:P=(v=i.trigger)===null||v===void 0?void 0:v.call(i),collapsible:y,theme:A}=e,M=l.value?S:I,O=Os(M)?`${M}px`:String(M),w=parseFloat(String(S||0))===0?g("span",{onClick:f,class:K(`${b}-zero-width-trigger`,`${b}-zero-width-trigger-${T?"right":"left"}`),style:$},[P||g(Kd,null,null)]):null,x={expanded:T?g(Yt,null,null):g(qt,null,null),collapsed:T?g(qt,null,null):g(Yt,null,null)},N=l.value?"collapsed":"expanded",z=x[N],H=P!==null?w||g("div",{class:`${b}-trigger`,onClick:f,style:{width:O}},[P||z]):null,j=[o.style,{flex:`0 0 ${O}`,maxWidth:O,minWidth:O,width:O}],Z=K(b,`${b}-${A}`,{[`${b}-collapsed`]:!!l.value,[`${b}-has-trigger`]:y&&P!==null&&!w,[`${b}-below`]:!!a.value,[`${b}-zero-width`]:parseFloat(O)===0},o.class);return g("aside",E(E({},o),{},{class:Z,style:j}),[g("div",{class:`${b}-children`},[(C=i.default)===null||C===void 0?void 0:C.call(i)]),y||a.value&&w?H:null])}}}),Ud=Wt,Yd=Vt,qd=Kt,Zd=jt,Jd=h(xn,{Header:Wt,Footer:Vt,Content:jt,Sider:Kt,install:e=>(e.component(xn.name,xn),e.component(Wt.name,Wt),e.component(Vt.name,Vt),e.component(Kt.name,Kt),e.component(jt.name,jt),e)});function Qd(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function eu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((o,i)=>{const s=e.lastIndexOf(i);return s>o.location?{location:s,prefix:i}:o},{location:-1,prefix:""})}function Qo(e){return(e||"").toLowerCase()}function tu(e,t,n){const o=e[0];if(!o||o===n)return e;let i=e;const s=t.length;for(let u=0;u[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:i,selectOption:s,onFocus:u=au,loading:l}=dt(ml,{activeIndex:ee(),loading:ee(!1)});let a;const r=c=>{clearTimeout(a),a=setTimeout(()=>{u(c)})};return Me(()=>{clearTimeout(a)}),()=>{var c;const{prefixCls:d,options:p}=e,m=p[o.value]||{};return g(Ue,{prefixCls:`${d}-menu`,activeKey:m.value,onSelect:f=>{let{key:v}=f;const C=p.find(b=>{let{value:S}=b;return S===v});s(C)},onMousedown:r},{default:()=>[!l.value&&p.map((f,v)=>{var C,b;const{value:S,disabled:I,label:T=f.value,class:$,style:P}=f;return g(Ht,{key:S,disabled:I,onMouseenter:()=>{i(v)},class:$,style:P},{default:()=>[(b=(C=n.option)===null||C===void 0?void 0:C.call(n,f))!==null&&b!==void 0?b:typeof T=="function"?T(f):T]})}),!l.value&&p.length===0?g(Ht,{key:"notFoundContent",disabled:!0},{default:()=>[(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)]}):null,l.value&&g(Ht,{key:"loading",disabled:!0},{default:()=>[g(rn,{size:"small"},null)]})]})}}}),cu={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},du=X({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,i=()=>{const{options:u}=e;return g(su,{prefixCls:o(),options:u},{notFoundContent:n.notFoundContent,option:n.option})},s=R(()=>{const{placement:u,direction:l}=e;let a="topRight";return l==="rtl"?a=u==="top"?"topLeft":"bottomLeft":a=u==="top"?"topRight":"bottomRight",a});return()=>{const{visible:u,transitionName:l,getPopupContainer:a}=e;return g(_i,{prefixCls:o(),popupVisible:u,popup:i(),popupClassName:e.dropdownClassName,popupPlacement:s.value,popupTransitionName:l,builtinPlacements:cu,getPopupContainer:a},{default:n.default})}}}),uu=kn("top","bottom"),vl={autofocus:{type:Boolean,default:void 0},prefix:L.oneOfType([L.string,L.arrayOf(L.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:L.oneOf(uu),character:L.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:Pe(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},bl=h(h({},vl),{dropdownClassName:String}),Sl={prefix:"@",split:" ",rows:1,validateSearch:iu,filterOption:()=>lu};ye(bl,Sl);var ei=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i{r.value=e.value});const c=w=>{n("change",w)},d=w=>{let{target:{value:x,composing:N},isComposing:z}=w;z||N||c(x)},p=(w,x,N)=>{h(r,{measuring:!0,measureText:w,measurePrefix:x,measureLocation:N,activeIndex:0})},m=w=>{h(r,{measuring:!1,measureLocation:0,measureText:null}),w==null||w()},f=w=>{const{which:x}=w;if(!!r.measuring){if(x===ge.UP||x===ge.DOWN){const N=A.value.length,z=x===ge.UP?-1:1,H=(r.activeIndex+z+N)%N;r.activeIndex=H,w.preventDefault()}else if(x===ge.ESC)m();else if(x===ge.ENTER){if(w.preventDefault(),!A.value.length){m();return}const N=A.value[r.activeIndex];$(N)}}},v=w=>{const{key:x,which:N}=w,{measureText:z,measuring:H}=r,{prefix:j,validateSearch:Z}=e,Q=w.target;if(Q.composing)return;const q=Qd(Q),{location:le,prefix:k}=eu(q,j);if([ge.ESC,ge.UP,ge.DOWN,ge.ENTER].indexOf(N)===-1)if(le!==-1){const D=q.slice(le+k.length),F=Z(D,e),_=!!y(D).length;F?(x===k||x==="Shift"||H||D!==z&&_)&&p(D,k,le):H&&m(),F&&n("search",D,k)}else H&&m()},C=w=>{r.measuring||n("pressenter",w)},b=w=>{I(w)},S=w=>{T(w)},I=w=>{clearTimeout(a.value);const{isFocus:x}=r;!x&&w&&n("focus",w),r.isFocus=!0},T=w=>{a.value=setTimeout(()=>{r.isFocus=!1,m(),n("blur",w)},100)},$=w=>{const{split:x}=e,{value:N=""}=w,{text:z,selectionLocation:H}=nu(r.value,{measureLocation:r.measureLocation,targetText:N,prefix:r.measurePrefix,selectionStart:l.value.selectionStart,split:x});c(z),m(()=>{ou(l.value,H)}),n("select",w,r.measurePrefix)},P=w=>{r.activeIndex=w},y=w=>{const x=w||r.measureText||"",{filterOption:N}=e;return e.options.filter(H=>N?N(x,H):!0)},A=R(()=>y());return i({blur:()=>{l.value.blur()},focus:()=>{l.value.focus()}}),nt(ml,{activeIndex:Ye(r,"activeIndex"),setActiveIndex:P,selectOption:$,onFocus:I,onBlur:T,loading:Ye(e,"loading")}),en(()=>{et(()=>{r.measuring&&(u.value.scrollTop=l.value.scrollTop)})}),()=>{const{measureLocation:w,measurePrefix:x,measuring:N}=r,{prefixCls:z,placement:H,transitionName:j,getPopupContainer:Z,direction:Q}=e,q=ei(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:le,style:k}=o,D=ei(o,["class","style"]),F=Ae(q,["value","prefix","split","validateSearch","filterOption","options","loading"]),_=h(h(h({},F),D),{onChange:ti,onSelect:ti,value:r.value,onInput:d,onBlur:S,onKeydown:f,onKeyup:v,onFocus:b,onPressenter:C});return g("div",{class:K(z,le),style:k},[Un(g("textarea",E({ref:l},_),null),[[lr]]),N&&g("div",{ref:u,class:`${z}-measure`},[r.value.slice(0,w),g(du,{prefixCls:z,transitionName:j,dropdownClassName:e.dropdownClassName,placement:H,options:N?A.value:[],visible:!0,direction:Q,getPopupContainer:Z},{default:()=>[g("span",null,[x])],notFoundContent:s.notFoundContent,option:s.option}),r.value.slice(w+x.length)])])}}}),hu={value:String,disabled:Boolean,payload:Ne()},yl=h(h({},hu),{label:ke([])}),$l={name:"Option",props:yl,render(e,t){let{slots:n}=t;var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}};X(h({compatConfig:{MODE:3}},$l));const pu=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:i,colorText:s,motionDurationSlow:u,lineHeight:l,controlHeight:a,inputPaddingHorizontal:r,inputPaddingVertical:c,fontSize:d,colorBgElevated:p,borderRadiusLG:m,boxShadowSecondary:f}=e,v=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:h(h(h(h(h({},xe(e)),qn(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Zn(e,t)),{"&-disabled":{"> textarea":h({},Mi(e))},"&-focused":h({},Ri(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:r,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:s,boxSizing:"border-box",minHeight:a-2,margin:0,padding:`${c}px ${r}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":h({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},Li(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":h(h({},xe(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:p,borderRadius:m,outline:"none",boxShadow:f,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":h(h({},St),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${v}px ${i}px`,color:s,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${u} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:m,borderStartEndRadius:m,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:m,borderEndEndRadius:m},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:s,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},gu=$e("Mentions",e=>{const t=Ei(e);return[pu(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var ni=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,i=Array.isArray(n)?n:[n];return e.split(o).map(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",u=null;return i.some(l=>s.slice(0,l.length)===l?(u=l,!0):!1),u!==null?{prefix:u,value:s.slice(u.length)}:null}).filter(s=>!!s&&!!s.value)},bu=()=>h(h({},vl),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:L.any,defaultValue:String,id:String,status:String}),In=X({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:bu(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:i,expose:s}=t;var u,l;const{prefixCls:a,renderEmpty:r,direction:c}=me("mentions",e),[d,p]=gu(a),m=ee(!1),f=ee(null),v=ee((l=(u=e.value)!==null&&u!==void 0?u:e.defaultValue)!==null&&l!==void 0?l:""),C=Rt(),b=on.useInject(),S=R(()=>ln(b.status,e.status));rr({prefixCls:R(()=>`${a.value}-menu`),mode:R(()=>"vertical"),selectable:R(()=>!1),onClick:()=>{},validator:x=>{wt()}}),ce(()=>e.value,x=>{v.value=x});const I=x=>{m.value=!0,o("focus",x)},T=x=>{m.value=!1,o("blur",x),C.onFieldBlur()},$=function(){for(var x=arguments.length,N=new Array(x),z=0;z{e.value===void 0&&(v.value=x),o("update:value",x),o("change",x),C.onFieldChange()},y=()=>{const x=e.notFoundContent;return x!==void 0?x:n.notFoundContent?n.notFoundContent():r("Select")},A=()=>{var x;return Nt(((x=n.default)===null||x===void 0?void 0:x.call(n))||[]).map(N=>{var z,H;return h(h({},ar(N)),{label:(H=(z=N.children)===null||z===void 0?void 0:z.default)===null||H===void 0?void 0:H.call(z)})})};s({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const w=R(()=>e.loading?mu:e.filterOption);return()=>{const{disabled:x,getPopupContainer:N,rows:z=1,id:H=C.id.value}=e,j=ni(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:Z,feedbackIcon:Q}=b,{class:q}=i,le=ni(i,["class"]),k=Ae(j,["defaultValue","onUpdate:value","prefixCls"]),D=K({[`${a.value}-disabled`]:x,[`${a.value}-focused`]:m.value,[`${a.value}-rtl`]:c.value==="rtl"},at(a.value,S.value),!Z&&q,p.value),F=h(h(h(h({prefixCls:a.value},k),{disabled:x,direction:c.value,filterOption:w.value,getPopupContainer:N,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:g(rn,{size:"small"},null)}]:e.options||A(),class:D}),le),{rows:z,onChange:P,onSelect:$,onFocus:I,onBlur:T,ref:f,value:v.value,id:H}),_=g(fu,E(E({},F),{},{dropdownClassName:p.value}),{notFoundContent:y,option:n.option});return d(Z?g("div",{class:K(`${a.value}-affix-wrapper`,at(`${a.value}-affix-wrapper`,S.value,Z),q,p.value)},[_,g("span",{class:`${a.value}-suffix`},[Q])]):_)}}}),Xt=X(h(h({compatConfig:{MODE:3}},$l),{name:"AMentionsOption",props:yl})),Su=h(In,{Option:Xt,getMentions:vu,install:e=>(e.component(In.name,In),e.component(Xt.name,Xt),e)}),Cl=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:i,groupSeparator:s="",prefixCls:u}=e;let l;if(typeof n=="function")l=n({value:t});else{const a=String(t),r=a.match(/^(-?)(\d*)(\.(\d+))?$/);if(!r)l=a;else{const c=r[1];let d=r[2]||"0",p=r[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,s),typeof o=="number"&&(p=p.padEnd(o,"0").slice(0,o>0?o:0)),p&&(p=`${i}${p}`),l=[g("span",{key:"int",class:`${u}-content-value-int`},[c,d]),p&&g("span",{key:"decimal",class:`${u}-content-value-decimal`},[p])]}}return g("span",{class:`${u}-content-value`},[l])};Cl.displayName="StatisticNumber";const yu=Cl,$u=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:i,statisticTitleFontSize:s,colorTextHeading:u,statisticContentFontSize:l,statisticFontFamily:a}=e;return{[`${t}`]:h(h({},xe(e)),{[`${t}-title`]:{marginBottom:n,color:i,fontSize:s},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:u,fontSize:l,fontFamily:a,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},Cu=$e("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,i=Ie(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[$u(i)]}),wl=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:pe([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:U(),formatter:ke(),precision:Number,prefix:pn(),suffix:pn(),title:pn(),loading:Y()}),qe=X({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:ye(wl(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:i,direction:s}=me("statistic",e),[u,l]=Cu(i);return()=>{var a,r,c,d,p,m,f;const{value:v=0,valueStyle:C,valueRender:b}=e,S=i.value,I=(a=e.title)!==null&&a!==void 0?a:(r=n.title)===null||r===void 0?void 0:r.call(n),T=(c=e.prefix)!==null&&c!==void 0?c:(d=n.prefix)===null||d===void 0?void 0:d.call(n),$=(p=e.suffix)!==null&&p!==void 0?p:(m=n.suffix)===null||m===void 0?void 0:m.call(n),P=(f=e.formatter)!==null&&f!==void 0?f:n.formatter;let y=g(yu,E({"data-for-update":Date.now()},h(h({},e),{prefixCls:S,value:v,formatter:P})),null);return b&&(y=b(y)),u(g("div",E(E({},o),{},{class:[S,{[`${S}-rtl`]:s.value==="rtl"},o.class,l.value]}),[I&&g("div",{class:`${S}-title`},[I]),g(qi,{paragraph:!1,loading:e.loading},{default:()=>[g("div",{style:C,class:`${S}-content`},[T&&g("span",{class:`${S}-content-prefix`},[T]),y,$&&g("span",{class:`${S}-content-suffix`},[$])])]})]))}}}),wu=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function xu(e,t){let n=e;const o=/\[[^\]]*]/g,i=(t.match(o)||[]).map(a=>a.slice(1,-1)),s=t.replace(o,"[]"),u=wu.reduce((a,r)=>{let[c,d]=r;if(a.includes(c)){const p=Math.floor(n/d);return n-=p*d,a.replace(new RegExp(`${c}+`,"g"),m=>{const f=m.length;return p.toString().padStart(f,"0")})}return a},s);let l=0;return u.replace(o,()=>{const a=i[l];return l+=1,a})}function Iu(e,t){const{format:n=""}=t,o=new Date(e).getTime(),i=Date.now(),s=Math.max(o-i,0);return xu(s,n)}const Tu=1e3/30;function Tn(e){return new Date(e).getTime()}const Pu=()=>h(h({},wl()),{value:pe([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),Au=X({compatConfig:{MODE:3},name:"AStatisticCountdown",props:ye(Pu(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const i=te(),s=te(),u=()=>{const{value:d}=e;Tn(d)>=Date.now()?l():a()},l=()=>{if(i.value)return;const d=Tn(e.value);i.value=setInterval(()=>{s.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),u()},Tu)},a=()=>{const{value:d}=e;i.value&&(clearInterval(i.value),i.value=void 0,Tn(d){let{value:p,config:m}=d;const{format:f}=e;return Iu(p,h(h({},m),{format:f}))},c=d=>d;return Qe(()=>{u()}),en(()=>{u()}),Me(()=>{a()}),()=>{const d=e.value;return g(qe,E({ref:s},h(h({},Ae(e,["onFinish","onChange"])),{value:d,valueRender:c,formatter:r})),o)}}});qe.Countdown=Au;qe.install=function(e){return e.component(qe.name,qe),e.component(qe.Countdown.name,qe.Countdown),e};const Ou=qe.Countdown;function Eu(e){let t=e.pageXOffset;const n="scrollLeft";if(typeof t!="number"){const o=e.document;t=o.documentElement[n],typeof t!="number"&&(t=o.body[n])}return t}function Nu(e){let t,n;const o=e.ownerDocument,{body:i}=o,s=o&&o.documentElement,u=e.getBoundingClientRect();return t=u.left,n=u.top,t-=s.clientLeft||i.clientLeft||0,n-=s.clientTop||i.clientTop||0,{left:t,top:n}}function Ru(e){const t=Nu(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=Eu(o),t.left}var Mu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Lu=Mu;function oi(e){for(var t=1;t{const{index:a}=e;n("hover",l,a)},i=l=>{const{index:a}=e;n("click",l,a)},s=l=>{const{index:a}=e;l.keyCode===13&&n("click",l,a)},u=R(()=>{const{prefixCls:l,index:a,value:r,allowHalf:c,focused:d}=e,p=a+1;let m=l;return r===0&&a===0&&d?m+=` ${l}-focused`:c&&r+.5>=p&&r{const{disabled:l,prefixCls:a,characterRender:r,character:c,index:d,count:p,value:m}=e,f=typeof c=="function"?c({disabled:l,prefixCls:a,index:d,count:p,value:m}):c;let v=g("li",{class:u.value},[g("div",{onClick:l?null:i,onKeydown:l?null:s,onMousemove:l?null:o,role:"radio","aria-checked":m>d?"true":"false","aria-posinset":d+1,"aria-setsize":p,tabindex:l?-1:0},[g("div",{class:`${a}-first`},[f]),g("div",{class:`${a}-second`},[f])])]);return r&&(v=r(v,e)),v}}}),Hu=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},_u=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Fu=e=>{const{componentCls:t}=e;return{[t]:h(h(h(h(h({},xe(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),Hu(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),_u(e))}},Wu=$e("Rate",e=>{const{colorFillContent:t}=e,n=Ie(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[Fu(n)]}),Vu=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:L.any,autofocus:{type:Boolean,default:void 0},tabindex:L.oneOfType([L.number,L.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),ju=X({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:ye(Vu(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:i,expose:s}=t;const{prefixCls:u,direction:l}=me("rate",e),[a,r]=Wu(u),c=Rt(),d=te(),[p,m]=sr(),f=$t({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});ce(()=>e.value,()=>{f.value=e.value});const v=w=>Pi(m.value.get(w)),C=(w,x)=>{const N=l.value==="rtl";let z=w+1;if(e.allowHalf){const H=v(w),j=Ru(H),Z=H.clientWidth;(N&&x-j>Z/2||!N&&x-j{e.value===void 0&&(f.value=w),i("update:value",w),i("change",w),c.onFieldChange()},S=(w,x)=>{const N=C(x,w.pageX);N!==f.cleanedValue&&(f.hoverValue=N,f.cleanedValue=null),i("hoverChange",N)},I=()=>{f.hoverValue=void 0,f.cleanedValue=null,i("hoverChange",void 0)},T=(w,x)=>{const{allowClear:N}=e,z=C(x,w.pageX);let H=!1;N&&(H=z===f.value),I(),b(H?0:z),f.cleanedValue=H?z:null},$=w=>{f.focused=!0,i("focus",w)},P=w=>{f.focused=!1,i("blur",w),c.onFieldBlur()},y=w=>{const{keyCode:x}=w,{count:N,allowHalf:z}=e,H=l.value==="rtl";x===ge.RIGHT&&f.value0&&!H||x===ge.RIGHT&&f.value>0&&H?(z?f.value-=.5:f.value-=1,b(f.value),w.preventDefault()):x===ge.LEFT&&f.value{e.disabled||d.value.focus()};s({focus:A,blur:()=>{e.disabled||d.value.blur()}}),Qe(()=>{const{autofocus:w,disabled:x}=e;w&&!x&&A()});const O=(w,x)=>{let{index:N}=x;const{tooltips:z}=e;return z?g(nn,{title:z[N]},{default:()=>[w]}):w};return()=>{const{count:w,allowHalf:x,disabled:N,tabindex:z,id:H=c.id.value}=e,{class:j,style:Z}=o,Q=[],q=N?`${u.value}-disabled`:"",le=e.character||n.character||(()=>g(Bu,null,null));for(let D=0;D({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:se(),iconPrefix:String,icon:L.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:L.any,title:L.any,subTitle:L.any,progressDot:cr(L.oneOfType([L.looseBool,L.func])),tailContent:L.any,icons:L.shape({finish:L.any,error:L.any}).loose,onClick:U(),onStepClick:U(),stepIcon:U(),itemRender:U(),__legacy:Y()}),Il=X({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:xl(),setup(e,t){let{slots:n,emit:o,attrs:i}=t;const s=l=>{o("click",l),o("stepClick",e.stepIndex)},u=l=>{let{icon:a,title:r,description:c}=l;const{prefixCls:d,stepNumber:p,status:m,iconPrefix:f,icons:v,progressDot:C=n.progressDot,stepIcon:b=n.stepIcon}=e;let S;const I=K(`${d}-icon`,`${f}icon`,{[`${f}icon-${a}`]:a&&ii(a),[`${f}icon-check`]:!a&&m==="finish"&&(v&&!v.finish||!v),[`${f}icon-cross`]:!a&&m==="error"&&(v&&!v.error||!v)}),T=g("span",{class:`${d}-icon-dot`},null);return C?typeof C=="function"?S=g("span",{class:`${d}-icon`},[C({iconDot:T,index:p-1,status:m,title:r,description:c,prefixCls:d})]):S=g("span",{class:`${d}-icon`},[T]):a&&!ii(a)?S=g("span",{class:`${d}-icon`},[a]):v&&v.finish&&m==="finish"?S=g("span",{class:`${d}-icon`},[v.finish]):v&&v.error&&m==="error"?S=g("span",{class:`${d}-icon`},[v.error]):a||m==="finish"||m==="error"?S=g("span",{class:I},null):S=g("span",{class:`${d}-icon`},[p]),b&&(S=b({index:p-1,status:m,title:r,description:c,node:S})),S};return()=>{var l,a,r,c;const{prefixCls:d,itemWidth:p,active:m,status:f="wait",tailContent:v,adjustMarginRight:C,disabled:b,title:S=(l=n.title)===null||l===void 0?void 0:l.call(n),description:I=(a=n.description)===null||a===void 0?void 0:a.call(n),subTitle:T=(r=n.subTitle)===null||r===void 0?void 0:r.call(n),icon:$=(c=n.icon)===null||c===void 0?void 0:c.call(n),onClick:P,onStepClick:y}=e,A=f||"wait",M=K(`${d}-item`,`${d}-item-${A}`,{[`${d}-item-custom`]:$,[`${d}-item-active`]:m,[`${d}-item-disabled`]:b===!0}),O={};p&&(O.width=p),C&&(O.marginRight=C);const w={onClick:P||Xu};y&&!b&&(w.role="button",w.tabindex=0,w.onClick=s);const x=g("div",E(E({},Ae(i,["__legacy"])),{},{class:[M,i.class],style:[i.style,O]}),[g("div",E(E({},w),{},{class:`${d}-item-container`}),[g("div",{class:`${d}-item-tail`},[v]),g("div",{class:`${d}-item-icon`},[u({icon:$,title:S,description:I})]),g("div",{class:`${d}-item-content`},[g("div",{class:`${d}-item-title`},[S,T&&g("div",{title:typeof T=="string"?T:void 0,class:`${d}-item-subtitle`},[T])]),I&&g("div",{class:`${d}-item-description`},[I])])])]);return e.itemRender?e.itemRender(x):x}}});var Gu=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i[]),icons:L.shape({finish:L.any,error:L.any}).loose,stepIcon:U(),isInline:L.looseBool,itemRender:U()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const i=l=>{const{current:a}=e;a!==l&&o("change",l)},s=(l,a,r)=>{const{prefixCls:c,iconPrefix:d,status:p,current:m,initial:f,icons:v,stepIcon:C=n.stepIcon,isInline:b,itemRender:S,progressDot:I=n.progressDot}=e,T=b||I,$=h(h({},l),{class:""}),P=f+a,y={active:P===m,stepNumber:P+1,stepIndex:P,key:P,prefixCls:c,iconPrefix:d,progressDot:T,stepIcon:C,icons:v,onStepClick:i};return p==="error"&&a===m-1&&($.class=`${c}-next-error`),$.status||(P===m?$.status=p:PS($,A)),g(Il,E(E(E({},$),y),{},{__legacy:!1}),null))},u=(l,a)=>s(h({},l.props),a,r=>st(l,r));return()=>{var l;const{prefixCls:a,direction:r,type:c,labelPlacement:d,iconPrefix:p,status:m,size:f,current:v,progressDot:C=n.progressDot,initial:b,icons:S,items:I,isInline:T,itemRender:$}=e,P=Gu(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),y=c==="navigation",A=T||C,M=T?"horizontal":r,O=T?void 0:f,w=A?"vertical":d,x=K(a,`${a}-${r}`,{[`${a}-${O}`]:O,[`${a}-label-${w}`]:M==="horizontal",[`${a}-dot`]:!!A,[`${a}-navigation`]:y,[`${a}-inline`]:T});return g("div",E({class:x},P),[I.filter(N=>N).map((N,z)=>s(N,z)),tn((l=n.default)===null||l===void 0?void 0:l.call(n)).map(u)])}}}),Yu=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:i,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},qu=Yu,Zu=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-i)/2}}}}}},Ju=Zu,Qu=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:i,motionDurationSlow:s}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${s}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:h(h({maxWidth:"100%",paddingInlineEnd:0},St),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${s}, inset-inline-start ${s}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},ef=Qu,tf=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},nf=tf,of=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:i,stepsDotSize:s,motionDurationSlow:u}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:s,height:s,marginInlineStart:(e.descriptionWidth-s)/2,paddingInlineEnd:0,lineHeight:`${s}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${u}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(s-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(s-i)/2,width:i,height:i,lineHeight:`${i}px`,background:"none",marginInlineStart:(e.descriptionWidth-i)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-s)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,top:0,insetInlineStart:(s-i)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-s)/2,insetInlineStart:0,margin:0,padding:`${s+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(s-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-s)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-s)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},lf=of,rf=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},af=rf,sf=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:i,colorTextDescription:s}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:s,fontSize:i},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},cf=sf,df=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},uf=df,ff=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:i}=e,s=e.paddingXS+e.lineWidth,u={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${s}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:s+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":h({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${i}`}},u),"&-finish":h({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${e.lineWidth}px ${e.lineType} ${i}`}},u),"&-error":u,"&-active, &-process":h({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},u),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}},hf=ff;var gt;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(gt||(gt={}));const Bt=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,i=`${e}TitleColor`,s=`${e}DescriptionColor`,u=`${e}TailColor`,l=`${e}IconBgColor`,a=`${e}IconBorderColor`,r=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[a],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[r]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[r]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[s]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[u]}}},pf=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return h(h(h(h(h(h({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Bt(gt.wait,e)),Bt(gt.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),Bt(gt.finish,e)),Bt(gt.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},gf=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},mf=e=>{const{componentCls:t}=e;return{[t]:h(h(h(h(h(h(h(h(h(h(h(h(h({},xe(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),pf(e)),gf(e)),qu(e)),cf(e)),uf(e)),Ju(e)),lf(e)),ef(e)),af(e)),nf(e)),hf(e))}},vf=$e("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:i,controlHeight:s,controlHeightLG:u,colorTextLightSolid:l,colorText:a,colorPrimary:r,colorTextLabel:c,colorTextDescription:d,colorTextQuaternary:p,colorFillContent:m,controlItemBgActive:f,colorError:v,colorBgContainer:C,colorBorderSecondary:b}=e,S=e.controlHeight,I=e.colorSplit,T=Ie(e,{processTailColor:I,stepsNavArrowColor:n,stepsIconSize:S,stepsIconCustomSize:S,stepsIconCustomTop:0,stepsIconCustomFontSize:u/2,stepsIconTop:-.5,stepsIconFontSize:i,stepsTitleLineHeight:s,stepsSmallIconSize:o,stepsDotSize:s/4,stepsCurrentDotSize:u/4,stepsNavContentMaxWidth:"auto",processIconColor:l,processTitleColor:a,processDescriptionColor:a,processIconBgColor:r,processIconBorderColor:r,processDotColor:r,waitIconColor:t?n:c,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:I,waitIconBgColor:t?C:m,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:r,finishTitleColor:a,finishDescriptionColor:d,finishTailColor:r,finishIconBgColor:t?C:f,finishIconBorderColor:t?r:f,finishDotColor:r,errorIconColor:l,errorTitleColor:v,errorDescriptionColor:v,errorTailColor:I,errorIconBgColor:v,errorIconBorderColor:v,errorDotColor:v,stepsNavActiveColor:r,stepsProgressSize:u,inlineDotSize:6,inlineTitleColor:p,inlineTailColor:b});return[mf(T)]},{descriptionWidth:140}),bf=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Y(),items:Pe(),labelPlacement:se(),status:se(),size:se(),direction:se(),progressDot:pe([Boolean,Function]),type:se(),onChange:U(),"onUpdate:current":U()}),Pn=X({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:ye(bf(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:i}=t;const{prefixCls:s,direction:u,configProvider:l}=me("steps",e),[a,r]=vf(s),[,c]=Jn(),d=xi(),p=R(()=>e.responsive&&d.value.xs?"vertical":e.direction),m=R(()=>l.getPrefixCls("",e.iconPrefix)),f=I=>{i("update:current",I),i("change",I)},v=R(()=>e.type==="inline"),C=R(()=>v.value?void 0:e.percent),b=I=>{let{node:T,status:$}=I;if($==="process"&&e.percent!==void 0){const P=e.size==="small"?c.value.controlHeight:c.value.controlHeightLG;return g("div",{class:`${s.value}-progress-icon`},[g(Fi,{type:"circle",percent:C.value,size:P,strokeWidth:4,format:()=>null},null),T])}return T},S=R(()=>({finish:g(dr,{class:`${s.value}-finish-icon`},null),error:g(Yn,{class:`${s.value}-error-icon`},null)}));return()=>{const I=K({[`${s.value}-rtl`]:u.value==="rtl",[`${s.value}-with-progress`]:C.value!==void 0},n.class,r.value),T=($,P)=>$.description?g(nn,{title:$.description},{default:()=>[P]}):P;return a(g(Uu,E(E(E({icons:S.value},n),Ae(e,["percent","responsive"])),{},{items:e.items,direction:p.value,prefixCls:s.value,iconPrefix:m.value,class:I,onChange:f,isInline:v.value,itemRender:v.value?T:void 0}),h({stepIcon:b},o)))}}}),Gt=X(h(h({compatConfig:{MODE:3}},Il),{name:"AStep",props:xl()})),Sf=h(Pn,{Step:Gt,install:e=>(e.component(Pn.name,Pn),e.component(Gt.name,Gt),e)}),yf={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},$f=X({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:ye(yf,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=i=>{var s;n("change",i),i.target.value===""&&((s=e.handleClear)===null||s===void 0||s.call(e))};return()=>{const{placeholder:i,value:s,prefixCls:u,disabled:l}=e;return g(Wi,{placeholder:i,class:u,value:s,onChange:o,disabled:l,allowClear:!0},{prefix:()=>g(ur,null,null)})}}});function Cf(){}const wf={renderedText:L.any,renderedEl:L.any,item:L.any,checked:Y(),prefixCls:String,disabled:Y(),showRemove:Y(),onClick:Function,onRemove:Function},xf=X({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:wf,emits:["click","remove"],setup(e,t){let{emit:n}=t;return()=>{const{renderedText:o,renderedEl:i,item:s,checked:u,disabled:l,prefixCls:a,showRemove:r}=e,c=K({[`${a}-content-item`]:!0,[`${a}-content-item-disabled`]:l||s.disabled});let d;return(typeof o=="string"||typeof o=="number")&&(d=String(o)),g(to,{componentName:"Transfer",defaultLocale:eo.Transfer},{default:p=>{const m=g("span",{class:`${a}-content-item-text`},[i]);return r?g("li",{class:c,title:d},[m,g(fr,{disabled:l||s.disabled,class:`${a}-content-item-remove`,"aria-label":p.remove,onClick:()=>{n("remove",s)}},{default:()=>[g(hr,null,null)]})]):g("li",{class:c,title:d,onClick:l||s.disabled?Cf:()=>{n("click",s)}},[g(Qn,{class:`${a}-checkbox`,checked:u,disabled:l||s.disabled},null),m])}})}}}),If={prefixCls:String,filteredRenderItems:L.array.def([]),selectedKeys:L.array,disabled:Y(),showRemove:Y(),pagination:L.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function Tf(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?h(h({},t),e):t}const Pf=X({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:If,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const i=te(1),s=d=>{const{selectedKeys:p}=e,m=p.indexOf(d.key)>=0;n("itemSelect",d.key,!m)},u=d=>{n("itemRemove",[d.key])},l=d=>{n("scroll",d)},a=R(()=>Tf(e.pagination));ce([a,()=>e.filteredRenderItems],()=>{if(a.value){const d=Math.ceil(e.filteredRenderItems.length/a.value.pageSize);i.value=Math.min(i.value,d)}},{immediate:!0});const r=R(()=>{const{filteredRenderItems:d}=e;let p=d;return a.value&&(p=d.slice((i.value-1)*a.value.pageSize,i.value*a.value.pageSize)),p}),c=d=>{i.value=d};return o({items:r}),()=>{const{prefixCls:d,filteredRenderItems:p,selectedKeys:m,disabled:f,showRemove:v}=e;let C=null;a.value&&(C=g(Vi,{simple:a.value.simple,showSizeChanger:a.value.showSizeChanger,showLessItems:a.value.showLessItems,size:"small",disabled:f,class:`${d}-pagination`,total:p.length,pageSize:a.value.pageSize,current:i.value,onChange:c},null));const b=r.value.map(S=>{let{renderedEl:I,renderedText:T,item:$}=S;const{disabled:P}=$,y=m.indexOf($.key)>=0;return g(xf,{disabled:f||P,key:$.key,item:$,renderedText:T,renderedEl:I,checked:y,prefixCls:d,onClick:s,onRemove:u,showRemove:v},null)});return g(je,null,[g("ul",{class:K(`${d}-content`,{[`${d}-content-show-remove`]:v}),onScroll:l},[b]),C])}}}),Af=Pf,Wn=e=>{const t=new Map;return e.forEach((n,o)=>{t.set(n,o)}),t},Of=e=>{const t=new Map;return e.forEach((n,o)=>{let{disabled:i,key:s}=n;i&&t.set(s,o)}),t},Ef=()=>null;function Nf(e){return!!(e&&!Ci(e)&&Object.prototype.toString.call(e)==="[object Object]")}function zt(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Rf={prefixCls:String,dataSource:Pe([]),filter:String,filterOption:Function,checkedKeys:L.arrayOf(L.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Y(!1),searchPlaceholder:String,notFoundContent:L.any,itemUnit:String,itemsUnit:String,renderList:L.any,disabled:Y(),direction:se(),showSelectAll:Y(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:L.any,showRemove:Y(),pagination:L.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},li=X({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:Rf,slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const i=te(""),s=te(),u=te(),l=($,P)=>{let y=$?$(P):null;const A=!!y&&tn(y).length>0;return A||(y=g(Af,E(E({},P),{},{ref:u}),null)),{customize:A,bodyContent:y}},a=$=>{const{renderItem:P=Ef}=e,y=P($),A=Nf(y);return{renderedText:A?y.value:y,renderedEl:A?y.label:y,item:$}},r=te([]),c=te([]);Be(()=>{const $=[],P=[];e.dataSource.forEach(y=>{const A=a(y),{renderedText:M}=A;if(i.value&&i.value.trim()&&!b(M,y))return null;$.push(y),P.push(A)}),r.value=$,c.value=P});const d=R(()=>{const{checkedKeys:$}=e;if($.length===0)return"none";const P=Wn($);return r.value.every(y=>P.has(y.key)||!!y.disabled)?"all":"part"}),p=R(()=>zt(r.value)),m=($,P)=>Array.from(new Set([...$,...e.checkedKeys])).filter(y=>P.indexOf(y)===-1),f=$=>{let{disabled:P,prefixCls:y}=$;var A;const M=d.value==="all";return g(Qn,{disabled:((A=e.dataSource)===null||A===void 0?void 0:A.length)===0||P,checked:M,indeterminate:d.value==="part",class:`${y}-checkbox`,onChange:()=>{const w=p.value;e.onItemSelectAll(m(M?[]:w,M?e.checkedKeys:[]))}},null)},v=$=>{var P;const{target:{value:y}}=$;i.value=y,(P=e.handleFilter)===null||P===void 0||P.call(e,$)},C=$=>{var P;i.value="",(P=e.handleClear)===null||P===void 0||P.call(e,$)},b=($,P)=>{const{filterOption:y}=e;return y?y(i.value,P):$.includes(i.value)},S=($,P)=>{const{itemsUnit:y,itemUnit:A,selectAllLabel:M}=e;if(M)return typeof M=="function"?M({selectedCount:$,totalCount:P}):M;const O=P>1?y:A;return g(je,null,[($>0?`${$}/`:"")+P,rt(" "),O])},I=R(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),T=($,P,y,A,M,O)=>{const w=M?g("div",{class:`${$}-body-search-wrapper`},[g($f,{prefixCls:`${$}-search`,onChange:v,handleClear:C,placeholder:P,value:i.value,disabled:O},null)]):null;let x;const{onEvents:N}=pr(n),{bodyContent:z,customize:H}=l(A,h(h(h({},e),{filteredItems:r.value,filteredRenderItems:c.value,selectedKeys:y}),N));return H?x=g("div",{class:`${$}-body-customize-wrapper`},[z]):x=r.value.length?z:g("div",{class:`${$}-body-not-found`},[I.value]),g("div",{class:M?`${$}-body ${$}-body-with-search`:`${$}-body`,ref:s},[w,x])};return()=>{var $,P;const{prefixCls:y,checkedKeys:A,disabled:M,showSearch:O,searchPlaceholder:w,selectAll:x,selectCurrent:N,selectInvert:z,removeAll:H,removeCurrent:j,renderList:Z,onItemSelectAll:Q,onItemRemove:q,showSelectAll:le=!0,showRemove:k,pagination:D}=e,F=($=o.footer)===null||$===void 0?void 0:$.call(o,h({},e)),_=K(y,{[`${y}-with-pagination`]:!!D,[`${y}-with-footer`]:!!F}),B=T(y,w,A,Z,O,M),W=F?g("div",{class:`${y}-footer`},[F]):null,J=!k&&!D&&f({disabled:M,prefixCls:y});let ie=null;k?ie=g(Ue,null,{default:()=>[D&&g(Ue.Item,{key:"removeCurrent",onClick:()=>{const V=zt((u.value.items||[]).map(de=>de.item));q==null||q(V)}},{default:()=>[j]}),g(Ue.Item,{key:"removeAll",onClick:()=>{q==null||q(p.value)}},{default:()=>[H]})]}):ie=g(Ue,null,{default:()=>[g(Ue.Item,{key:"selectAll",onClick:()=>{const V=p.value;Q(m(V,[]))}},{default:()=>[x]}),D&&g(Ue.Item,{onClick:()=>{const V=zt((u.value.items||[]).map(de=>de.item));Q(m(V,[]))}},{default:()=>[N]}),g(Ue.Item,{key:"selectInvert",onClick:()=>{let V;D?V=zt((u.value.items||[]).map(Se=>Se.item)):V=p.value;const de=new Set(A),ve=[],Ce=[];V.forEach(Se=>{de.has(Se)?Ce.push(Se):ve.push(Se)}),Q(m(ve,Ce))}},{default:()=>[z]})]});const ue=g(ji,{class:`${y}-header-dropdown`,overlay:ie,disabled:M},{default:()=>[g(Di,null,null)]});return g("div",{class:_,style:n.style},[g("div",{class:`${y}-header`},[le?g(je,null,[J,ue]):null,g("span",{class:`${y}-header-selected`},[g("span",null,[S(A.length,r.value.length)]),g("span",{class:`${y}-header-title`},[(P=o.titleText)===null||P===void 0?void 0:P.call(o)])])]),B,W])}}});function ri(){}const $o=e=>{const{disabled:t,moveToLeft:n=ri,moveToRight:o=ri,leftArrowText:i="",rightArrowText:s="",leftActive:u,rightActive:l,class:a,style:r,direction:c,oneWay:d}=e;return g("div",{class:a,style:r},[g(yt,{type:"primary",size:"small",disabled:t||!l,onClick:o,icon:c!=="rtl"?g(Yt,null,null):g(qt,null,null)},{default:()=>[s]}),!d&&g(yt,{type:"primary",size:"small",disabled:t||!u,onClick:n,icon:c!=="rtl"?g(qt,null,null):g(Yt,null,null)},{default:()=>[i]})])};$o.displayName="Operation";$o.inheritAttrs=!1;const Mf=$o,Lf=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:i,marginXXS:s,margin:u}=e,l=`${t}-table`,a=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${l}-wrapper`]:{[`${l}-small`]:{border:0,borderRadius:0,[`${l}-selection-column`]:{width:i,minWidth:i}},[`${l}-pagination${l}-pagination`]:{margin:`${u}px 0 ${s}px`}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},ai=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},kf=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:h({},ai(e,e.colorError)),[`${t}-status-warning`]:h({},ai(e,e.colorWarning))}},Bf=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:i,transferItemHeight:s,transferHeaderHeight:u,transferHeaderVerticalPadding:l,transferItemPaddingVertical:a,controlItemBgActive:r,controlItemBgActiveHover:c,colorTextDisabled:d,listHeight:p,listWidth:m,listWidthLG:f,fontSizeIcon:v,marginXS:C,paddingSM:b,lineType:S,iconCls:I,motionDurationSlow:T}=e;return{display:"flex",flexDirection:"column",width:m,height:p,border:`${i}px ${S} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:f,height:"auto"},"&-search":{[`${I}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:u,padding:`${l-i}px ${b}px ${l}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${i}px ${S} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":h(h({},St),{flex:"auto",textAlign:"end"}),"&-dropdown":h(h({},ki()),{fontSize:v,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:b}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:s,padding:`${a}px ${b}px`,transition:`all ${T}`,"> *:not(:last-child)":{marginInlineEnd:C},"> *":{flex:"none"},"&-text":h(h({},St),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${T}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${a}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:c}},"&-checked":{backgroundColor:r},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${i}px ${S} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${i}px ${S} ${o}`},"&-checkbox":{lineHeight:1}}},zf=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:i,marginXS:s,marginXXS:u,fontSizeIcon:l,fontSize:a,lineHeight:r}=e;return{[o]:h(h({},xe(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:Bf(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${s}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:u},[n]:{fontSize:l}}},[`${t}-empty-image`]:{maxHeight:i/2-Math.round(a*r)}})}},Df=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Hf=$e("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:i,controlHeight:s}=e,u=Math.round(t*n),l=i,a=s,r=Ie(e,{transferItemHeight:a,transferHeaderHeight:l,transferHeaderVerticalPadding:Math.ceil((l-o-u)/2),transferItemPaddingVertical:(a-u)/2});return[zf(r),Lf(r),kf(r),Df(r)]},{listWidth:180,listHeight:200,listWidthLG:250}),_f=()=>({id:String,prefixCls:String,dataSource:Pe([]),disabled:Y(),targetKeys:Pe(),selectedKeys:Pe(),render:U(),listStyle:pe([Function,Object],()=>({})),operationStyle:Ne(void 0),titles:Pe(),operations:Pe(),showSearch:Y(!1),filterOption:U(),searchPlaceholder:String,notFoundContent:L.any,locale:Ne(),rowKey:U(),showSelectAll:Y(),selectAllLabels:Pe(),children:U(),oneWay:Y(),pagination:pe([Object,Boolean]),status:se(),onChange:U(),onSelectChange:U(),onSearch:U(),onScroll:U(),"onUpdate:targetKeys":U(),"onUpdate:selectedKeys":U()}),Ff=X({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:_f(),slots:Object,setup(e,t){let{emit:n,attrs:o,slots:i,expose:s}=t;const{configProvider:u,prefixCls:l,direction:a}=me("transfer",e),[r,c]=Hf(l),d=te([]),p=te([]),m=Rt(),f=on.useInject(),v=R(()=>ln(f.status,e.status));ce(()=>e.selectedKeys,()=>{var B,W;d.value=((B=e.selectedKeys)===null||B===void 0?void 0:B.filter(J=>e.targetKeys.indexOf(J)===-1))||[],p.value=((W=e.selectedKeys)===null||W===void 0?void 0:W.filter(J=>e.targetKeys.indexOf(J)>-1))||[]},{immediate:!0});const C=(B,W)=>{const J={notFoundContent:W("Transfer")},ie=gr(i,e,"notFoundContent");return ie&&(J.notFoundContent=ie),e.searchPlaceholder!==void 0&&(J.searchPlaceholder=e.searchPlaceholder),h(h(h({},B),J),e.locale)},b=B=>{const{targetKeys:W=[],dataSource:J=[]}=e,ie=B==="right"?d.value:p.value,ue=Of(J),V=ie.filter(Se=>!ue.has(Se)),de=Wn(V),ve=B==="right"?V.concat(W):W.filter(Se=>!de.has(Se)),Ce=B==="right"?"left":"right";B==="right"?d.value=[]:p.value=[],n("update:targetKeys",ve),y(Ce,[]),n("change",ve,B,V),m.onFieldChange()},S=()=>{b("left")},I=()=>{b("right")},T=(B,W)=>{y(B,W)},$=B=>T("left",B),P=B=>T("right",B),y=(B,W)=>{B==="left"?(e.selectedKeys||(d.value=W),n("update:selectedKeys",[...W,...p.value]),n("selectChange",W,Ve(p.value))):(e.selectedKeys||(p.value=W),n("update:selectedKeys",[...W,...d.value]),n("selectChange",Ve(d.value),W))},A=(B,W)=>{const J=W.target.value;n("search",B,J)},M=B=>{A("left",B)},O=B=>{A("right",B)},w=B=>{n("search",B,"")},x=()=>{w("left")},N=()=>{w("right")},z=(B,W,J)=>{const ie=B==="left"?[...d.value]:[...p.value],ue=ie.indexOf(W);ue>-1&&ie.splice(ue,1),J&&ie.push(W),y(B,ie)},H=(B,W)=>z("left",B,W),j=(B,W)=>z("right",B,W),Z=B=>{const{targetKeys:W=[]}=e,J=W.filter(ie=>!B.includes(ie));n("update:targetKeys",J),n("change",J,"left",[...B])},Q=(B,W)=>{n("scroll",B,W)},q=B=>{Q("left",B)},le=B=>{Q("right",B)},k=(B,W)=>typeof B=="function"?B({direction:W}):B,D=te([]),F=te([]);Be(()=>{const{dataSource:B,rowKey:W,targetKeys:J=[]}=e,ie=[],ue=new Array(J.length),V=Wn(J);B.forEach(de=>{W&&(de.key=W(de)),V.has(de.key)?ue[V.get(de.key)]=de:ie.push(de)}),D.value=ie,F.value=ue}),s({handleSelectChange:y});const _=B=>{var W,J,ie,ue,V,de;const{disabled:ve,operations:Ce=[],showSearch:Se,listStyle:Oe,operationStyle:Ke,filterOption:ze,showSelectAll:De,selectAllLabels:Le=[],oneWay:Xe,pagination:Ge,id:G=m.id.value}=e,{class:ne,style:oe}=o,ae=i.children,be=!ae&&Ge,fe=u.renderEmpty,re=C(B,fe),{footer:he}=i,Te=e.render||i.render,He=p.value.length>0,_e=d.value.length>0,Re=K(l.value,ne,{[`${l.value}-disabled`]:ve,[`${l.value}-customize-list`]:!!ae,[`${l.value}-rtl`]:a.value==="rtl"},at(l.value,v.value,f.hasFeedback),c.value),we=e.titles,Fe=(ie=(W=we&&we[0])!==null&&W!==void 0?W:(J=i.leftTitle)===null||J===void 0?void 0:J.call(i))!==null&&ie!==void 0?ie:(re.titles||["",""])[0],ut=(de=(ue=we&&we[1])!==null&&ue!==void 0?ue:(V=i.rightTitle)===null||V===void 0?void 0:V.call(i))!==null&&de!==void 0?de:(re.titles||["",""])[1];return g("div",E(E({},o),{},{class:Re,style:oe,id:G}),[g(li,E({key:"leftList",prefixCls:`${l.value}-list`,dataSource:D.value,filterOption:ze,style:k(Oe,"left"),checkedKeys:d.value,handleFilter:M,handleClear:x,onItemSelect:H,onItemSelectAll:$,renderItem:Te,showSearch:Se,renderList:ae,onScroll:q,disabled:ve,direction:a.value==="rtl"?"right":"left",showSelectAll:De,selectAllLabel:Le[0]||i.leftSelectAllLabel,pagination:be},re),{titleText:()=>Fe,footer:he}),g(Mf,{key:"operation",class:`${l.value}-operation`,rightActive:_e,rightArrowText:Ce[0],moveToRight:I,leftActive:He,leftArrowText:Ce[1],moveToLeft:S,style:Ke,disabled:ve,direction:a.value,oneWay:Xe},null),g(li,E({key:"rightList",prefixCls:`${l.value}-list`,dataSource:F.value,filterOption:ze,style:k(Oe,"right"),checkedKeys:p.value,handleFilter:O,handleClear:N,onItemSelect:j,onItemSelectAll:P,onItemRemove:Z,renderItem:Te,showSearch:Se,renderList:ae,onScroll:le,disabled:ve,direction:a.value==="rtl"?"left":"right",showSelectAll:De,selectAllLabel:Le[1]||i.rightSelectAllLabel,showRemove:Xe,pagination:be},re),{titleText:()=>ut,footer:he})])};return()=>r(g(to,{componentName:"Transfer",defaultLocale:eo.Transfer,children:_},null))}}),Wf=Je(Ff);function Vf(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function jf(e){const{label:t,value:n,children:o}=e||{},i=n||"value";return{_title:t?[t]:["title","label"],value:i,key:i,children:o||"children"}}function Vn(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function Kf(e,t){const n=[];function o(i){i.forEach(s=>{n.push(s[t.value]);const u=s[t.children];u&&o(u)})}return o(e),n}function si(e){return e==null}const Tl=Symbol("TreeSelectContextPropsKey");function Xf(e){return nt(Tl,e)}function Gf(){return dt(Tl,{})}const Uf={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Yf=X({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const i=mr(),s=vr(),u=Gf(),l=te(),a=br(()=>u.treeData,[()=>i.open,()=>u.treeData],$=>$[0]),r=R(()=>{const{checkable:$,halfCheckedKeys:P,checkedKeys:y}=s;return $?{checked:y,halfChecked:P}:null});ce(()=>i.open,()=>{et(()=>{var $;i.open&&!i.multiple&&s.checkedKeys.length&&(($=l.value)===null||$===void 0||$.scrollTo({key:s.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const c=R(()=>String(i.searchValue).toLowerCase()),d=$=>c.value?String($[s.treeNodeFilterProp]).toLowerCase().includes(c.value):!1,p=ee(s.treeDefaultExpandedKeys),m=ee(null);ce(()=>i.searchValue,()=>{i.searchValue&&(m.value=Kf(Ve(u.treeData),Ve(u.fieldNames)))},{immediate:!0});const f=R(()=>s.treeExpandedKeys?s.treeExpandedKeys.slice():i.searchValue?m.value:p.value),v=$=>{var P;p.value=$,m.value=$,(P=s.onTreeExpand)===null||P===void 0||P.call(s,$)},C=$=>{$.preventDefault()},b=($,P)=>{let{node:y}=P;var A,M;const{checkable:O,checkedKeys:w}=s;O&&Vn(y)||((A=u.onSelect)===null||A===void 0||A.call(u,y.key,{selected:!w.includes(y.key)}),i.multiple||(M=i.toggleOpen)===null||M===void 0||M.call(i,!1))},S=te(null),I=R(()=>s.keyEntities[S.value]),T=$=>{S.value=$};return o({scrollTo:function(){for(var $,P,y=arguments.length,A=new Array(y),M=0;M{var P;const{which:y}=$;switch(y){case ge.UP:case ge.DOWN:case ge.LEFT:case ge.RIGHT:(P=l.value)===null||P===void 0||P.onKeydown($);break;case ge.ENTER:{if(I.value){const{selectable:A,value:M}=I.value.node||{};A!==!1&&b(null,{node:{key:S.value},selected:!s.checkedKeys.includes(M)})}break}case ge.ESC:i.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var $;const{prefixCls:P,multiple:y,searchValue:A,open:M,notFoundContent:O=($=n.notFoundContent)===null||$===void 0?void 0:$.call(n)}=i,{listHeight:w,listItemHeight:x,virtual:N,dropdownMatchSelectWidth:z,treeExpandAction:H}=u,{checkable:j,treeDefaultExpandAll:Z,treeIcon:Q,showTreeIcon:q,switcherIcon:le,treeLine:k,loadData:D,treeLoadedKeys:F,treeMotion:_,onTreeLoad:B,checkedKeys:W}=s;if(a.value.length===0)return g("div",{role:"listbox",class:`${P}-empty`,onMousedown:C},[O]);const J={fieldNames:u.fieldNames};return F&&(J.loadedKeys=F),f.value&&(J.expandedKeys=f.value),g("div",{onMousedown:C},[I.value&&M&&g("span",{style:Uf,"aria-live":"assertive"},[I.value.node.value]),g(Sr,E(E({ref:l,focusable:!1,prefixCls:`${P}-tree`,treeData:a.value,height:w,itemHeight:x,virtual:N!==!1&&z!==!1,multiple:y,icon:Q,showIcon:q,switcherIcon:le,showLine:k,loadData:A?null:D,motion:_,activeKey:S.value,checkable:j,checkStrictly:!0,checkedKeys:r.value,selectedKeys:j?[]:W,defaultExpandAll:Z},J),{},{onActiveChange:T,onSelect:b,onCheck:b,onExpand:v,onLoad:B,filterTreeNode:d,expandAction:H}),h(h({},n),{checkable:s.customSlots.treeCheckable}))])}}}),qf="SHOW_ALL",Pl="SHOW_PARENT",Co="SHOW_CHILD";function ci(e,t,n,o){const i=new Set(e);return t===Co?e.filter(s=>{const u=n[s];return!(u&&u.children&&u.children.some(l=>{let{node:a}=l;return i.has(a[o.value])})&&u.children.every(l=>{let{node:a}=l;return Vn(a)||i.has(a[o.value])}))}):t===Pl?e.filter(s=>{const u=n[s],l=u?u.parent:null;return!(l&&!Vn(l.node)&&i.has(l.key))}):e}const dn=()=>null;dn.inheritAttrs=!1;dn.displayName="ATreeSelectNode";dn.isTreeSelectNode=!0;const wo=dn;var Zf=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:[];return tn(n).map(o=>{var i,s,u;if(!Jf(o))return null;const l=o.children||{},a=o.key,r={};for(const[y,A]of Object.entries(o.props))r[yr(y)]=A;const{isLeaf:c,checkable:d,selectable:p,disabled:m,disableCheckbox:f}=r,v={isLeaf:c||c===""||void 0,checkable:d||d===""||void 0,selectable:p||p===""||void 0,disabled:m||m===""||void 0,disableCheckbox:f||f===""||void 0},C=h(h({},r),v),{title:b=(i=l.title)===null||i===void 0?void 0:i.call(l,C),switcherIcon:S=(s=l.switcherIcon)===null||s===void 0?void 0:s.call(l,C)}=r,I=Zf(r,["title","switcherIcon"]),T=(u=l.default)===null||u===void 0?void 0:u.call(l),$=h(h(h({},I),{title:b,switcherIcon:S,key:a,isLeaf:c}),v),P=t(T);return P.length&&($.children=P),$})}return t(e)}function jn(e){if(!e)return e;const t=h({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function eh(e,t,n,o,i,s){let u=null,l=null;function a(){function r(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return c.map((m,f)=>{const v=`${d}-${f}`,C=m[s.value],b=n.includes(C),S=r(m[s.children]||[],v,b),I=g(wo,m,{default:()=>[S.map(T=>T.node)]});if(t===C&&(u=I),b){const T={pos:v,node:I,children:S};return p||l.push(T),T}return null}).filter(m=>m)}l||(l=[],r(o),l.sort((c,d)=>{let{node:{props:{value:p}}}=c,{node:{props:{value:m}}}=d;const f=n.indexOf(p),v=n.indexOf(m);return f-v}))}Object.defineProperty(e,"triggerNode",{get(){return a(),u}}),Object.defineProperty(e,"allCheckedNodes",{get(){return a(),i?l:l.map(r=>{let{node:c}=r;return c})}})}function th(e,t){let{id:n,pId:o,rootPId:i}=t;const s={},u=[];return e.map(a=>{const r=h({},a),c=r[n];return s[c]=r,r.key=r.key||c,r}).forEach(a=>{const r=a[o],c=s[r];c&&(c.children=c.children||[],c.children.push(a)),(r===i||!c&&i===null)&&u.push(a)}),u}function nh(e,t,n){const o=ee();return ce([n,e,t],()=>{const i=n.value;e.value?o.value=n.value?th(Ve(e.value),h({id:"id",pId:"pId",rootPId:null},i!==!0?i:{})):Ve(e.value).slice():o.value=Qf(Ve(t.value))},{immediate:!0,deep:!0}),o}const oh=e=>{const t=ee({valueLabels:new Map}),n=ee();return ce(e,()=>{n.value=Ve(e.value)},{immediate:!0}),[R(()=>{const{valueLabels:i}=t.value,s=new Map,u=n.value.map(l=>{var a;const{value:r}=l,c=(a=l.label)!==null&&a!==void 0?a:i.get(r);return s.set(r,c),h(h({},l),{label:c})});return t.value.valueLabels=s,u})]},ih=(e,t)=>{const n=ee(new Map),o=ee({});return Be(()=>{const i=t.value,s=$r(e.value,{fieldNames:i,initWrapper:u=>h(h({},u),{valueEntities:new Map}),processEntity:(u,l)=>{const a=u.node[i.value];l.valueEntities.set(a,u)}});n.value=s.valueEntities,o.value=s.keyEntities}),{valueEntities:n,keyEntities:o}},lh=(e,t,n,o,i,s)=>{const u=ee([]),l=ee([]);return Be(()=>{let a=e.value.map(d=>{let{value:p}=d;return p}),r=t.value.map(d=>{let{value:p}=d;return p});const c=a.filter(d=>!o.value[d]);n.value&&({checkedKeys:a,halfCheckedKeys:r}=Bn(a,!0,o.value,i.value,s.value)),u.value=Array.from(new Set([...c,...a])),l.value=r}),[u,l]},rh=(e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:i,fieldNames:s}=n;return R(()=>{const{children:u}=s.value,l=t.value,a=o==null?void 0:o.value;if(!l||i.value===!1)return e.value;let r;if(typeof i.value=="function")r=i.value;else{const d=l.toUpperCase();r=(p,m)=>{const f=m[a];return String(f).toUpperCase().includes(d)}}function c(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const m=[];for(let f=0,v=d.length;fe.treeCheckable&&!e.treeCheckStrictly),l=R(()=>e.treeCheckable||e.treeCheckStrictly),a=R(()=>e.treeCheckStrictly||e.labelInValue),r=R(()=>l.value||e.multiple),c=R(()=>jf(e.fieldNames)),[d,p]=Pt("",{value:R(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:G=>G||""}),m=G=>{var ne;p(G),(ne=e.onSearch)===null||ne===void 0||ne.call(e,G)},f=nh(Ye(e,"treeData"),Ye(e,"children"),Ye(e,"treeDataSimpleMode")),{keyEntities:v,valueEntities:C}=ih(f,c),b=G=>{const ne=[],oe=[];return G.forEach(ae=>{C.value.has(ae)?oe.push(ae):ne.push(ae)}),{missingRawValues:ne,existRawValues:oe}},S=rh(f,d,{fieldNames:c,treeNodeFilterProp:Ye(e,"treeNodeFilterProp"),filterTreeNode:Ye(e,"filterTreeNode")}),I=G=>{if(G){if(e.treeNodeLabelProp)return G[e.treeNodeLabelProp];const{_title:ne}=c.value;for(let oe=0;oeVf(G).map(oe=>ah(oe)?{value:oe}:oe),$=G=>T(G).map(oe=>{let{label:ae}=oe;const{value:be,halfChecked:fe}=oe;let re;const he=C.value.get(be);return he&&(ae=ae!=null?ae:I(he.node),re=he.node.disabled),{label:ae,value:be,halfChecked:fe,disabled:re}}),[P,y]=Pt(e.defaultValue,{value:Ye(e,"value")}),A=R(()=>T(P.value)),M=ee([]),O=ee([]);Be(()=>{const G=[],ne=[];A.value.forEach(oe=>{oe.halfChecked?ne.push(oe):G.push(oe)}),M.value=G,O.value=ne});const w=R(()=>M.value.map(G=>G.value)),{maxLevel:x,levelEntities:N}=wr(v),[z,H]=lh(M,O,u,v,x,N),j=R(()=>{const oe=ci(z.value,e.showCheckedStrategy,v.value,c.value).map(fe=>{var re,he,Te;return(Te=(he=(re=v.value[fe])===null||re===void 0?void 0:re.node)===null||he===void 0?void 0:he[c.value.value])!==null&&Te!==void 0?Te:fe}).map(fe=>{const re=M.value.find(he=>he.value===fe);return{value:fe,label:re==null?void 0:re.label}}),ae=$(oe),be=ae[0];return!r.value&&be&&si(be.value)&&si(be.label)?[]:ae.map(fe=>{var re;return h(h({},fe),{label:(re=fe.label)!==null&&re!==void 0?re:fe.value})})}),[Z]=oh(j),Q=(G,ne,oe)=>{const ae=$(G);if(y(ae),e.autoClearSearchValue&&p(""),e.onChange){let be=G;u.value&&(be=ci(G,e.showCheckedStrategy,v.value,c.value).map(Fe=>{const ut=C.value.get(Fe);return ut?ut.node[c.value.value]:Fe}));const{triggerValue:fe,selected:re}=ne||{triggerValue:void 0,selected:void 0};let he=be;if(e.treeCheckStrictly){const we=O.value.filter(Fe=>!be.includes(Fe.value));he=[...he,...we]}const Te=$(he),He={preValue:M.value,triggerValue:fe};let _e=!0;(e.treeCheckStrictly||oe==="selection"&&!re)&&(_e=!1),eh(He,fe,G,f.value,_e,c.value),l.value?He.checked=re:He.selected=re;const Re=a.value?Te:Te.map(we=>we.value);e.onChange(r.value?Re:Re[0],a.value?null:Te.map(we=>we.label),He)}},q=(G,ne)=>{let{selected:oe,source:ae}=ne;var be,fe,re;const he=Ve(v.value),Te=Ve(C.value),He=he[G],_e=He==null?void 0:He.node,Re=(be=_e==null?void 0:_e[c.value.value])!==null&&be!==void 0?be:G;if(!r.value)Q([Re],{selected:!0,triggerValue:Re},"option");else{let we=oe?[...w.value,Re]:z.value.filter(Fe=>Fe!==Re);if(u.value){const{missingRawValues:Fe,existRawValues:ut}=b(we),Po=ut.map(fn=>Te.get(fn).key);let un;oe?{checkedKeys:un}=Bn(Po,!0,he,x.value,N.value):{checkedKeys:un}=Bn(Po,{checked:!1,halfCheckedKeys:H.value},he,x.value,N.value),we=[...Fe,...un.map(fn=>he[fn].node[c.value.value])]}Q(we,{selected:oe,triggerValue:Re},ae||"option")}oe||!r.value?(fe=e.onSelect)===null||fe===void 0||fe.call(e,Re,jn(_e)):(re=e.onDeselect)===null||re===void 0||re.call(e,Re,jn(_e))},le=G=>{if(e.onDropdownVisibleChange){const ne={};Object.defineProperty(ne,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(G,ne)}},k=(G,ne)=>{const oe=G.map(ae=>ae.value);if(ne.type==="clear"){Q(oe,{},"selection");return}ne.values.length&&q(ne.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:D,loadData:F,treeLoadedKeys:_,onTreeLoad:B,treeDefaultExpandAll:W,treeExpandedKeys:J,treeDefaultExpandedKeys:ie,onTreeExpand:ue,virtual:V,listHeight:de,listItemHeight:ve,treeLine:Ce,treeIcon:Se,showTreeIcon:Oe,switcherIcon:Ke,treeMotion:ze,customSlots:De,dropdownMatchSelectWidth:Le,treeExpandAction:Xe}=an(e);xr(No({checkable:l,loadData:F,treeLoadedKeys:_,onTreeLoad:B,checkedKeys:z,halfCheckedKeys:H,treeDefaultExpandAll:W,treeExpandedKeys:J,treeDefaultExpandedKeys:ie,onTreeExpand:ue,treeIcon:Se,treeMotion:ze,showTreeIcon:Oe,switcherIcon:Ke,treeLine:Ce,treeNodeFilterProp:D,keyEntities:v,customSlots:De})),Xf(No({virtual:V,listHeight:de,listItemHeight:ve,treeData:S,fieldNames:c,onSelect:q,dropdownMatchSelectWidth:Le,treeExpandAction:Xe}));const Ge=te();return o({focus(){var G;(G=Ge.value)===null||G===void 0||G.focus()},blur(){var G;(G=Ge.value)===null||G===void 0||G.blur()},scrollTo(G){var ne;(ne=Ge.value)===null||ne===void 0||ne.scrollTo(G)}}),()=>{var G;const ne=Ae(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return g(Ir,E(E(E({ref:Ge},n),ne),{},{id:s,prefixCls:e.prefixCls,mode:r.value?"multiple":void 0,displayValues:Z.value,onDisplayValuesChange:k,searchValue:d.value,onSearch:m,OptionList:Yf,emptyOptions:!f.value.length,onDropdownVisibleChange:le,tagRender:e.tagRender||i.tagRender,dropdownMatchSelectWidth:(G=e.dropdownMatchSelectWidth)!==null&&G!==void 0?G:!0}),i)}}}),ch=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},Pr(n,Ie(e,{colorBgContainer:o})),{[i]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},Ar(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function dh(e,t){return $e("TreeSelect",n=>{const o=Ie(n,{treePrefixCls:t.value});return[ch(o)]})(e)}const di=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function uh(){return h(h({},Ae(Al(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:L.any,size:se(),bordered:Y(),treeLine:pe([Boolean,Object]),replaceFields:Ne(),placement:se(),status:se(),popupClassName:String,dropdownClassName:String,"onUpdate:value":U(),"onUpdate:treeExpandedKeys":U(),"onUpdate:searchValue":U()})}const An=X({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:ye(uh(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:i,emit:s}=t;Oi(!(e.treeData===void 0&&o.default)),gn(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),gn(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),gn(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const u=Rt(),l=on.useInject(),a=R(()=>ln(l.status,e.status)),{prefixCls:r,renderEmpty:c,direction:d,virtual:p,dropdownMatchSelectWidth:m,size:f,getPopupContainer:v,getPrefixCls:C,disabled:b}=me("select",e),{compactSize:S,compactItemClassnames:I}=Bi(r,d),T=R(()=>S.value||f.value),$=zi(),P=R(()=>{var _;return(_=b.value)!==null&&_!==void 0?_:$.value}),y=R(()=>C()),A=R(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),M=R(()=>di(y.value,Rr(A.value),e.transitionName)),O=R(()=>di(y.value,"",e.choiceTransitionName)),w=R(()=>C("select-tree",e.prefixCls)),x=R(()=>C("tree-select",e.prefixCls)),[N,z]=Or(r),[H]=dh(x,w),j=R(()=>K(e.popupClassName||e.dropdownClassName,`${x.value}-dropdown`,{[`${x.value}-dropdown-rtl`]:d.value==="rtl"},z.value)),Z=R(()=>!!(e.treeCheckable||e.multiple)),Q=R(()=>e.showArrow!==void 0?e.showArrow:e.loading||!Z.value),q=te();i({focus(){var _,B;(B=(_=q.value).focus)===null||B===void 0||B.call(_)},blur(){var _,B;(B=(_=q.value).blur)===null||B===void 0||B.call(_)}});const le=function(){for(var _=arguments.length,B=new Array(_),W=0;W<_;W++)B[W]=arguments[W];s("update:value",B[0]),s("change",...B),u.onFieldChange()},k=_=>{s("update:treeExpandedKeys",_),s("treeExpand",_)},D=_=>{s("update:searchValue",_),s("search",_)},F=_=>{s("blur",_),u.onFieldBlur()};return()=>{var _,B;const{notFoundContent:W=(_=o.notFoundContent)===null||_===void 0?void 0:_.call(o),prefixCls:J,bordered:ie,listHeight:ue,listItemHeight:V,multiple:de,treeIcon:ve,treeLine:Ce,showArrow:Se,switcherIcon:Oe=(B=o.switcherIcon)===null||B===void 0?void 0:B.call(o),fieldNames:Ke=e.replaceFields,id:ze=u.id.value}=e,{isFormItemInput:De,hasFeedback:Le,feedbackIcon:Xe}=l,{suffixIcon:Ge,removeIcon:G,clearIcon:ne}=Er(h(h({},e),{multiple:Z.value,showArrow:Q.value,hasFeedback:Le,feedbackIcon:Xe,prefixCls:r.value}),o);let oe;W!==void 0?oe=W:oe=c("Select");const ae=Ae(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),be=K(!J&&x.value,{[`${r.value}-lg`]:T.value==="large",[`${r.value}-sm`]:T.value==="small",[`${r.value}-rtl`]:d.value==="rtl",[`${r.value}-borderless`]:!ie,[`${r.value}-in-form-item`]:De},at(r.value,a.value,Le),I.value,n.class,z.value),fe={};return e.treeData===void 0&&o.default&&(fe.children=Nt(o.default())),N(H(g(sh,E(E(E(E({},n),ae),{},{disabled:P.value,virtual:p.value,dropdownMatchSelectWidth:m.value,id:ze,fieldNames:Ke,ref:q,prefixCls:r.value,class:be,listHeight:ue,listItemHeight:V,treeLine:!!Ce,inputIcon:Ge,multiple:de,removeIcon:G,clearIcon:ne,switcherIcon:re=>Nr(w.value,Oe,re,o.leafIcon,Ce),showTreeIcon:ve,notFoundContent:oe,getPopupContainer:v==null?void 0:v.value,treeMotion:null,dropdownClassName:j.value,choiceTransitionName:O.value,onChange:le,onBlur:F,onSearch:D,onTreeExpand:k},fe),{},{transitionName:M.value,customSlots:h(h({},o),{treeCheckable:()=>g("span",{class:`${r.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:A.value,showArrow:Le||Se}),h(h({},o),{treeCheckable:()=>g("span",{class:`${r.value}-tree-checkbox-inner`},null)}))))}}}),Kn=wo,fh=h(An,{TreeNode:wo,SHOW_ALL:qf,SHOW_PARENT:Pl,SHOW_CHILD:Co,install:e=>(e.component(An.name,An),e.component(Kn.displayName,Kn),e)});function hh(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ph(e){return Object.keys(e).map(t=>`${hh(t)}: ${e[t]};`).join(" ")}function ui(){return window.devicePixelRatio||1}function On(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}const gh=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(o=>o===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var mh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=Mr}=n,i=mh(n,["window"]);let s;const u=Lr(()=>o&&"MutationObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},a=ce(()=>kr(e),c=>{l(),u.value&&o&&c&&(s=new MutationObserver(t),s.observe(c,i))},{immediate:!0}),r=()=>{l(),a()};return Br(r),{isSupported:u,stop:r}}const En=2,fi=3,bh=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:pe([String,Array]),font:Ne(),rootClassName:String,gap:Pe(),offset:Pe()}),Sh=X({name:"AWatermark",inheritAttrs:!1,props:ye(bh(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,i]=Jn(),s=ee(),u=ee(),l=ee(!1),a=R(()=>{var O,w;return(w=(O=e.gap)===null||O===void 0?void 0:O[0])!==null&&w!==void 0?w:100}),r=R(()=>{var O,w;return(w=(O=e.gap)===null||O===void 0?void 0:O[1])!==null&&w!==void 0?w:100}),c=R(()=>a.value/2),d=R(()=>r.value/2),p=R(()=>{var O,w;return(w=(O=e.offset)===null||O===void 0?void 0:O[0])!==null&&w!==void 0?w:c.value}),m=R(()=>{var O,w;return(w=(O=e.offset)===null||O===void 0?void 0:O[1])!==null&&w!==void 0?w:d.value}),f=R(()=>{var O,w;return(w=(O=e.font)===null||O===void 0?void 0:O.fontSize)!==null&&w!==void 0?w:i.value.fontSizeLG}),v=R(()=>{var O,w;return(w=(O=e.font)===null||O===void 0?void 0:O.fontWeight)!==null&&w!==void 0?w:"normal"}),C=R(()=>{var O,w;return(w=(O=e.font)===null||O===void 0?void 0:O.fontStyle)!==null&&w!==void 0?w:"normal"}),b=R(()=>{var O,w;return(w=(O=e.font)===null||O===void 0?void 0:O.fontFamily)!==null&&w!==void 0?w:"sans-serif"}),S=R(()=>{var O,w;return(w=(O=e.font)===null||O===void 0?void 0:O.color)!==null&&w!==void 0?w:i.value.colorFill}),I=R(()=>{var O;const w={zIndex:(O=e.zIndex)!==null&&O!==void 0?O:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let x=p.value-c.value,N=m.value-d.value;return x>0&&(w.left=`${x}px`,w.width=`calc(100% - ${x}px)`,x=0),N>0&&(w.top=`${N}px`,w.height=`calc(100% - ${N}px)`,N=0),w.backgroundPosition=`${x}px ${N}px`,w}),T=()=>{u.value&&(u.value.remove(),u.value=void 0)},$=(O,w)=>{var x;s.value&&u.value&&(l.value=!0,u.value.setAttribute("style",ph(h(h({},I.value),{backgroundImage:`url('${O}')`,backgroundSize:`${(a.value+w)*En}px`}))),(x=s.value)===null||x===void 0||x.append(u.value),setTimeout(()=>{l.value=!1}))},P=O=>{let w=120,x=64;const N=e.content,z=e.image,H=e.width,j=e.height;if(!z&&O.measureText){O.font=`${Number(f.value)}px ${b.value}`;const Z=Array.isArray(N)?N:[N],Q=Z.map(q=>O.measureText(q).width);w=Math.ceil(Math.max(...Q)),x=Number(f.value)*Z.length+(Z.length-1)*fi}return[H!=null?H:w,j!=null?j:x]},y=(O,w,x,N,z)=>{const H=ui(),j=e.content,Z=Number(f.value)*H;O.font=`${C.value} normal ${v.value} ${Z}px/${z}px ${b.value}`,O.fillStyle=S.value,O.textAlign="center",O.textBaseline="top",O.translate(N/2,0);const Q=Array.isArray(j)?j:[j];Q==null||Q.forEach((q,le)=>{O.fillText(q!=null?q:"",w,x+le*(Z+fi*H))})},A=()=>{var O;const w=document.createElement("canvas"),x=w.getContext("2d"),N=e.image,z=(O=e.rotate)!==null&&O!==void 0?O:-22;if(x){u.value||(u.value=document.createElement("div"));const H=ui(),[j,Z]=P(x),Q=(a.value+j)*H,q=(r.value+Z)*H;w.setAttribute("width",`${Q*En}px`),w.setAttribute("height",`${q*En}px`);const le=a.value*H/2,k=r.value*H/2,D=j*H,F=Z*H,_=(D+a.value*H)/2,B=(F+r.value*H)/2,W=le+Q,J=k+q,ie=_+Q,ue=B+q;if(x.save(),On(x,_,B,z),N){const V=new Image;V.onload=()=>{x.drawImage(V,le,k,D,F),x.restore(),On(x,ie,ue,z),x.drawImage(V,W,J,D,F),$(w.toDataURL(),j)},V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=N}else y(x,le,k,D,F),x.restore(),On(x,ie,ue,z),y(x,W,J,D,F),$(w.toDataURL(),j)}};return Qe(()=>{A()}),ce(()=>[e,i.value.colorFill,i.value.fontSizeLG],()=>{A()},{deep:!0,flush:"post"}),Me(()=>{T()}),vh(s,O=>{l.value||O.forEach(w=>{gh(w,u.value)&&(T(),A())})},{attributes:!0}),()=>{var O;return g("div",E(E({},o),{},{ref:s,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[(O=n.default)===null||O===void 0?void 0:O.call(n)])}}}),yh=Je(Sh);function hi(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function pi(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const $h=h({overflow:"hidden"},St),Ch=e=>{const{componentCls:t}=e;return{[t]:h(h(h(h(h({},xe(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":h(h({},pi(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":h({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},$h),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:h(h({},pi(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),hi(`&-disabled ${t}-item`,e)),hi(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},wh=$e("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:i,colorFillSecondary:s,colorBgLayout:u,colorBgElevated:l}=e,a=Ie(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:i,bgColor:u,bgColorHover:s,bgColorSelected:l});return[Ch(a)]}),gi=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,ft=e=>e!==void 0?`${e}px`:void 0,xh=X({props:{value:ke(),getValueIndex:ke(),prefixCls:ke(),motionName:ke(),onMotionStart:ke(),onMotionEnd:ke(),direction:ke(),containerRef:ke()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=te(),i=f=>{var v;const C=e.getValueIndex(f),b=(v=e.containerRef.value)===null||v===void 0?void 0:v.querySelectorAll(`.${e.prefixCls}-item`)[C];return(b==null?void 0:b.offsetParent)&&b},s=te(null),u=te(null);ce(()=>e.value,(f,v)=>{const C=i(v),b=i(f),S=gi(C),I=gi(b);s.value=S,u.value=I,n(C&&b?"motionStart":"motionEnd")},{flush:"post"});const l=R(()=>{var f,v;return e.direction==="rtl"?ft(-((f=s.value)===null||f===void 0?void 0:f.right)):ft((v=s.value)===null||v===void 0?void 0:v.left)}),a=R(()=>{var f,v;return e.direction==="rtl"?ft(-((f=u.value)===null||f===void 0?void 0:f.right)):ft((v=u.value)===null||v===void 0?void 0:v.left)});let r;const c=f=>{clearTimeout(r),et(()=>{f&&(f.style.transform="translateX(var(--thumb-start-left))",f.style.width="var(--thumb-start-width)")})},d=f=>{r=setTimeout(()=>{f&&(zr(f,`${e.motionName}-appear-active`),f.style.transform="translateX(var(--thumb-active-left))",f.style.width="var(--thumb-active-width)")})},p=f=>{s.value=null,u.value=null,f&&(f.style.transform=null,f.style.width=null,Dr(f,`${e.motionName}-appear-active`)),n("motionEnd")},m=R(()=>{var f,v;return{"--thumb-start-left":l.value,"--thumb-start-width":ft((f=s.value)===null||f===void 0?void 0:f.width),"--thumb-active-left":a.value,"--thumb-active-width":ft((v=u.value)===null||v===void 0?void 0:v.width)}});return Me(()=>{clearTimeout(r)}),()=>{const f={ref:o,style:m.value,class:[`${e.prefixCls}-thumb`]};return g(Gn,{appear:!0,onBeforeEnter:c,onEnter:d,onAfterEnter:p},{default:()=>[!s.value||!u.value?null:g("div",f,null)]})}}}),Ih=xh;function Th(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const Ph=()=>({prefixCls:String,options:Pe(),block:Y(),disabled:Y(),size:se(),value:h(h({},pe([String,Number])),{required:!0}),motionName:String,onChange:U(),"onUpdate:value":U()}),Ol=(e,t)=>{let{slots:n,emit:o}=t;const{value:i,disabled:s,payload:u,title:l,prefixCls:a,label:r=n.label,checked:c,className:d}=e,p=m=>{s||o("change",m,i)};return g("label",{class:K({[`${a}-item-disabled`]:s},d)},[g("input",{class:`${a}-item-input`,type:"radio",disabled:s,checked:c,onChange:p},null),g("div",{class:`${a}-item-label`,title:typeof l=="string"?l:""},[typeof r=="function"?r({value:i,disabled:s,payload:u,title:l}):r!=null?r:i])])};Ol.inheritAttrs=!1;const Ah=X({name:"ASegmented",inheritAttrs:!1,props:ye(Ph(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:i}=t;const{prefixCls:s,direction:u,size:l}=me("segmented",e),[a,r]=wh(s),c=ee(),d=ee(!1),p=R(()=>Th(e.options)),m=(f,v)=>{e.disabled||(n("update:value",v),n("change",v))};return()=>{const f=s.value;return a(g("div",E(E({},i),{},{class:K(f,{[r.value]:!0,[`${f}-block`]:e.block,[`${f}-disabled`]:e.disabled,[`${f}-lg`]:l.value=="large",[`${f}-sm`]:l.value=="small",[`${f}-rtl`]:u.value==="rtl"},i.class),ref:c}),[g("div",{class:`${f}-group`},[g(Ih,{containerRef:c,prefixCls:f,value:e.value,motionName:`${f}-${e.motionName}`,direction:u.value,getValueIndex:v=>p.value.findIndex(C=>C.value===v),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),p.value.map(v=>g(Ol,E(E({key:v.value,prefixCls:f,checked:v.value===e.value,onChange:m},v),{},{className:K(v.className,`${f}-item`,{[`${f}-item-selected`]:v.value===e.value&&!d.value}),disabled:!!e.disabled||!!v.disabled}),o))])]))}}}),Oh=Je(Ah),Eh=e=>{const{componentCls:t}=e;return{[t]:h(h({},xe(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},Nh=$e("QRCode",e=>Eh(Ie(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var Rh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const Mh=Rh;function mi(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:se("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:Ne()}),Bh=()=>h(h({},Io()),{errorLevel:se("M"),icon:String,iconSize:{type:Number,default:40},status:se("active"),bordered:{type:Boolean,default:!0}});var ct;(function(e){class t{static encodeText(l,a){const r=e.QrSegment.makeSegments(l);return t.encodeSegments(r,a)}static encodeBinary(l,a){const r=e.QrSegment.makeBytes(l);return t.encodeSegments([r],a)}static encodeSegments(l,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=r&&r<=c&&c<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let m,f;for(m=r;;m++){const S=t.getNumDataCodewords(m,a)*8,I=s.getTotalBits(l,m);if(I<=S){f=I;break}if(m>=c)throw new RangeError("Data too long")}for(const S of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])p&&f<=t.getNumDataCodewords(m,S)*8&&(a=S);const v=[];for(const S of l){n(S.mode.modeBits,4,v),n(S.numChars,S.mode.numCharCountBits(m),v);for(const I of S.getData())v.push(I)}i(v.length==f);const C=t.getNumDataCodewords(m,a)*8;i(v.length<=C),n(0,Math.min(4,C-v.length),v),n(0,(8-v.length%8)%8,v),i(v.length%8==0);for(let S=236;v.lengthb[I>>>3]|=S<<7-(I&7)),new t(m,a,b,d)}constructor(l,a,r,c){if(this.version=l,this.errorCorrectionLevel=a,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=l*4+17;const d=[];for(let m=0;m>>9)*1335;const c=(a<<10|r)^21522;i(c>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,o(c,d));this.setFunctionModule(8,7,o(c,6)),this.setFunctionModule(8,8,o(c,7)),this.setFunctionModule(7,8,o(c,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,o(c,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,o(c,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,o(c,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let r=0;r<12;r++)l=l<<1^(l>>>11)*7973;const a=this.version<<12|l;i(a>>>18==0);for(let r=0;r<18;r++){const c=o(a,r),d=this.size-11+r%3,p=Math.floor(r/3);this.setFunctionModule(d,p,c),this.setFunctionModule(p,d,c)}}drawFinderPattern(l,a){for(let r=-4;r<=4;r++)for(let c=-4;c<=4;c++){const d=Math.max(Math.abs(c),Math.abs(r)),p=l+c,m=a+r;0<=p&&p{(S!=f-d||T>=m)&&b.push(I[S])});return i(b.length==p),b}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let a=0;for(let r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(let c=0;c>>3],7-(a&7)),a++)}}i(a==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let a=0;a5&&l++):(this.finderPenaltyAddHistory(m,f),p||(l+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),p=this.modules[d][v],m=1);l+=this.finderPenaltyTerminateAndCount(p,m,f)*t.PENALTY_N3}for(let d=0;d5&&l++):(this.finderPenaltyAddHistory(m,f),p||(l+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),p=this.modules[v][d],m=1);l+=this.finderPenaltyTerminateAndCount(p,m,f)*t.PENALTY_N3}for(let d=0;dp+(m?1:0),a);const r=this.size*this.size,c=Math.ceil(Math.abs(a*20-r*10)/r)-1;return i(0<=c&&c<=9),l+=c*t.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,a=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2,r=[6];for(let c=this.size-7;r.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let a=(16*l+128)*l+64;if(l>=2){const r=Math.floor(l/7)+2;a-=(25*r-10)*r-55,l>=7&&(a-=36)}return i(208<=a&&a<=29648),a}static getNumDataCodewords(l,a){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[a.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");const a=[];for(let c=0;c0);for(const c of l){const d=c^r.shift();r.push(0),a.forEach((p,m)=>r[m]^=t.reedSolomonMultiply(p,d))}return r}static reedSolomonMultiply(l,a){if(l>>>8!=0||a>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let c=7;c>=0;c--)r=r<<1^(r>>>7)*285,r^=(a>>>c&1)*l;return i(r>>>8==0),r}finderPenaltyCountPatterns(l){const a=l[1];i(a<=this.size*3);const r=a>0&&l[2]==a&&l[3]==a*3&&l[4]==a&&l[5]==a;return(r&&l[0]>=a*4&&l[6]>=a?1:0)+(r&&l[6]>=a*4&&l[0]>=a?1:0)}finderPenaltyTerminateAndCount(l,a,r){return l&&(this.finderPenaltyAddHistory(a,r),a=0),a+=this.size,this.finderPenaltyAddHistory(a,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(l,a){a[0]==0&&(l+=this.size),a.pop(),a.unshift(l)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(u,l,a){if(l<0||l>31||u>>>l!=0)throw new RangeError("Value out of range");for(let r=l-1;r>=0;r--)a.push(u>>>r&1)}function o(u,l){return(u>>>l&1)!=0}function i(u){if(!u)throw new Error("Assertion error")}class s{static makeBytes(l){const a=[];for(const r of l)n(r,8,a);return new s(s.Mode.BYTE,l.length,a)}static makeNumeric(l){if(!s.isNumeric(l))throw new RangeError("String contains non-numeric characters");const a=[];for(let r=0;r=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(o,i){let s=null;o.forEach(function(u,l){if(!u&&s!==null){n.push(`M${s+t} ${i+t}h${l-s}v1H${s+t}z`),s=null;return}if(l===o.length-1){if(!u)return;s===null?n.push(`M${l+t},${i+t} h1v1H${l+t}z`):n.push(`M${s+t},${i+t} h${l+1-s}v1H${s+t}z`);return}u&&s===null&&(s=l)})}),n.join("")}function Bl(e,t){return e.slice().map((n,o)=>o=t.y+t.h?n:n.map((i,s)=>s=t.x+t.w?i:!1))}function zl(e,t,n,o){if(o==null)return null;const i=e.length+n*2,s=Math.floor(t*Hh),u=i/t,l=(o.width||s)*u,a=(o.height||s)*u,r=o.x==null?e.length/2-l/2:o.x*u,c=o.y==null?e.length/2-a/2:o.y*u;let d=null;if(o.excavate){const p=Math.floor(r),m=Math.floor(c),f=Math.ceil(l+r-p),v=Math.ceil(a+c-m);d={x:p,y:m,w:f,h:v}}return{x:r,y:c,h:a,w:l,excavation:d}}function Dl(e,t){return t!=null?Math.floor(t):e?zh:Dh}const _h=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Fh=X({name:"QRCodeCanvas",inheritAttrs:!1,props:h(h({},Io()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const i=R(()=>{var a;return(a=e.imageSettings)===null||a===void 0?void 0:a.src}),s=ee(null),u=ee(null),l=ee(!1);return o({toDataURL:(a,r)=>{var c;return(c=s.value)===null||c===void 0?void 0:c.toDataURL(a,r)}}),Be(()=>{const{value:a,size:r=Xn,level:c=Nl,bgColor:d=Rl,fgColor:p=Ml,includeMargin:m=Ll,marginSize:f,imageSettings:v}=e;if(s.value!=null){const C=s.value,b=C.getContext("2d");if(!b)return;let S=mt.QrCode.encodeText(a,El[c]).getModules();const I=Dl(m,f),T=S.length+I*2,$=zl(S,r,I,v),P=u.value,y=l.value&&$!=null&&P!==null&&P.complete&&P.naturalHeight!==0&&P.naturalWidth!==0;y&&$.excavation!=null&&(S=Bl(S,$.excavation));const A=window.devicePixelRatio||1;C.height=C.width=r*A;const M=r/T*A;b.scale(M,M),b.fillStyle=d,b.fillRect(0,0,T,T),b.fillStyle=p,_h?b.fill(new Path2D(kl(S,I))):S.forEach(function(O,w){O.forEach(function(x,N){x&&b.fillRect(N+I,w+I,1,1)})}),y&&b.drawImage(P,$.x+I,$.y+I,$.w,$.h)}},{flush:"post"}),ce(i,()=>{l.value=!1}),()=>{var a;const r=(a=e.size)!==null&&a!==void 0?a:Xn,c={height:`${r}px`,width:`${r}px`};let d=null;return i.value!=null&&(d=g("img",{src:i.value,key:i.value,style:{display:"none"},onLoad:()=>{l.value=!0},ref:u},null)),g(je,null,[g("canvas",E(E({},n),{},{style:[c,n.style],ref:s}),null),d])}}}),Wh=X({name:"QRCodeSVG",inheritAttrs:!1,props:h(h({},Io()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,i=null,s=null,u=null;return Be(()=>{const{value:l,size:a=Xn,level:r=Nl,includeMargin:c=Ll,marginSize:d,imageSettings:p}=e;t=mt.QrCode.encodeText(l,El[r]).getModules(),n=Dl(c,d),o=t.length+n*2,i=zl(t,a,n,p),p!=null&&i!=null&&(i.excavation!=null&&(t=Bl(t,i.excavation)),u=g("image",{"xlink:href":p.src,height:i.h,width:i.w,x:i.x+n,y:i.y+n,preserveAspectRatio:"none"},null)),s=kl(t,n)}),()=>{const l=e.bgColor&&Rl,a=e.fgColor&&Ml;return g("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&g("title",null,[e.title]),g("path",{fill:l,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),g("path",{fill:a,d:s,"shape-rendering":"crispEdges"},null),u])}}}),Vh=X({name:"AQrcode",inheritAttrs:!1,props:Bh(),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:i}=t;const[s]=Hr("QRCode"),{prefixCls:u}=me("qrcode",e),[l,a]=Nh(u),[,r]=Jn(),c=te();i({toDataURL:(p,m)=>{var f;return(f=c.value)===null||f===void 0?void 0:f.toDataURL(p,m)}});const d=R(()=>{const{value:p,icon:m="",size:f=160,iconSize:v=40,color:C=r.value.colorText,bgColor:b="transparent",errorLevel:S="M"}=e,I={src:m,x:void 0,y:void 0,height:v,width:v,excavate:!0};return{value:p,size:f-(r.value.paddingSM+r.value.lineWidth)*2,level:S,bgColor:b,fgColor:C,imageSettings:m?I:void 0}});return()=>{const p=u.value;return l(g("div",E(E({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[a.value,p,{[`${p}-borderless`]:!e.bordered}]}),[e.status!=="active"&&g("div",{class:`${p}-mask`},[e.status==="loading"&&g(rn,null,null),e.status==="expired"&&g(je,null,[g("p",{class:`${p}-expired`},[s.value.expired]),g(yt,{type:"link",onClick:m=>n("refresh",m)},{default:()=>[s.value.refresh],icon:()=>g(kh,null,null)})])]),e.type==="canvas"?g(Fh,E({ref:c},d.value),null):g(Wh,d.value,null)]))}}}),jh=Je(Vh);function Kh(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:i,bottom:s,left:u}=e.getBoundingClientRect();return o>=0&&u>=0&&i<=t&&s<=n}function Xh(e,t,n,o){const[i,s]=Ro(void 0);Be(()=>{const c=typeof e.value=="function"?e.value():e.value;s(c||null)},{flush:"post"});const[u,l]=Ro(null),a=()=>{if(!t.value){l(null);return}if(i.value){!Kh(i.value)&&t.value&&i.value.scrollIntoView(o.value);const{left:c,top:d,width:p,height:m}=i.value.getBoundingClientRect(),f={left:c,top:d,width:p,height:m,radius:0};JSON.stringify(u.value)!==JSON.stringify(f)&&l(f)}else l(null)};return Qe(()=>{ce([t,i],()=>{a()},{flush:"post",immediate:!0}),window.addEventListener("resize",a)}),Me(()=>{window.removeEventListener("resize",a)}),[R(()=>{var c,d;if(!u.value)return u.value;const p=((c=n.value)===null||c===void 0?void 0:c.offset)||6,m=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:u.value.left-p,top:u.value.top-p,width:u.value.width+p*2,height:u.value.height+p*2,radius:m}}),i]}const Gh=()=>({arrow:pe([Boolean,Object]),target:pe([String,Function,Object]),title:pe([String,Object]),description:pe([String,Object]),placement:se(),mask:pe([Object,Boolean],!0),className:{type:String},style:Ne(),scrollIntoViewOptions:pe([Boolean,Object])}),To=()=>h(h({},Gh()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:U(),onFinish:U(),renderPanel:U(),onPrev:U(),onNext:U()}),Uh=X({name:"DefaultPanel",inheritAttrs:!1,props:To(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:o,current:i,total:s,title:u,description:l,onClose:a,onPrev:r,onNext:c,onFinish:d}=e;return g("div",E(E({},n),{},{class:K(`${o}-content`,n.class)}),[g("div",{class:`${o}-inner`},[g("button",{type:"button",onClick:a,"aria-label":"Close",class:`${o}-close`},[g("span",{class:`${o}-close-x`},[rt("\xD7")])]),g("div",{class:`${o}-header`},[g("div",{class:`${o}-title`},[u])]),g("div",{class:`${o}-description`},[l]),g("div",{class:`${o}-footer`},[g("div",{class:`${o}-sliders`},[s>1?[...Array.from({length:s}).keys()].map((p,m)=>g("span",{key:p,class:m===i?"active":""},null)):null]),g("div",{class:`${o}-buttons`},[i!==0?g("button",{class:`${o}-prev-btn`,onClick:r},[rt("Prev")]):null,i===s-1?g("button",{class:`${o}-finish-btn`,onClick:d},[rt("Finish")]):g("button",{class:`${o}-next-btn`,onClick:c},[rt("Next")])])])])])}}}),Yh=Uh,qh=X({name:"TourStep",inheritAttrs:!1,props:To(),setup(e,t){let{attrs:n}=t;return()=>{const{current:o,renderPanel:i}=e;return g(je,null,[typeof i=="function"?i(h(h({},n),e),o):g(Yh,E(E({},n),e),null)])}}}),Zh=qh;let vi=0;const Jh=Ai();function Qh(){let e;return Jh?(e=vi,vi+=1):e="TEST_OR_SSR",e}function ep(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te("");const t=`vc_unique_${Qh()}`;return e.value||t}const Dt={fill:"transparent","pointer-events":"auto"},tp=X({name:"TourMask",props:{prefixCls:{type:String},pos:Ne(),rootClassName:{type:String},showMask:Y(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Y(),animated:pe([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=ep();return()=>{const{prefixCls:i,open:s,rootClassName:u,pos:l,showMask:a,fill:r,animated:c,zIndex:d}=e,p=`${i}-mask-${o}`,m=typeof c=="object"?c==null?void 0:c.placeholder:c;return g(Ki,{visible:s,autoLock:!0},{default:()=>s&&g("div",E(E({},n),{},{class:K(`${i}-mask`,u,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[a?g("svg",{style:{width:"100%",height:"100%"}},[g("defs",null,[g("mask",{id:p},[g("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),l&&g("rect",{x:l.left,y:l.top,rx:l.radius,width:l.width,height:l.height,fill:"black",class:m?`${i}-placeholder-animated`:""},null)])]),g("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:r,mask:`url(#${p})`},null),l&&g(je,null,[g("rect",E(E({},Dt),{},{x:"0",y:"0",width:"100%",height:l.top}),null),g("rect",E(E({},Dt),{},{x:"0",y:"0",width:l.left,height:"100%"}),null),g("rect",E(E({},Dt),{},{x:"0",y:l.top+l.height,width:"100%",height:`calc(100vh - ${l.top+l.height}px)`}),null),g("rect",E(E({},Dt),{},{x:l.left+l.width,y:"0",width:`calc(100vw - ${l.left+l.width}px)`,height:"100%"}),null)])]):null])})}}}),np=tp,op=[0,0],bi={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Hl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(bi).forEach(n=>{t[n]=h(h({},bi[n]),{autoArrow:e,targetOffset:op})}),t}Hl();var ip=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i{const{builtinPlacements:e,popupAlign:t}=_r();return{builtinPlacements:e,popupAlign:t,steps:Pe(),open:Y(),defaultCurrent:{type:Number},current:{type:Number},onChange:U(),onClose:U(),onFinish:U(),mask:pe([Boolean,Object],!0),arrow:pe([Boolean,Object],!0),rootClassName:{type:String},placement:se("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:U(),gap:Ne(),animated:pe([Boolean,Object]),scrollIntoViewOptions:pe([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},lp=X({name:"Tour",inheritAttrs:!1,props:ye(_l(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:i,open:s,gap:u,arrow:l}=an(e),a=te(),[r,c]=Pt(0,{value:R(()=>e.current),defaultValue:t.value}),[d,p]=Pt(void 0,{value:R(()=>e.open),postState:y=>r.value<0||r.value>=e.steps.length?!1:y!=null?y:!0}),m=ee(d.value);Be(()=>{d.value&&!m.value&&c(0),m.value=d.value});const f=R(()=>e.steps[r.value]||{}),v=R(()=>{var y;return(y=f.value.placement)!==null&&y!==void 0?y:n.value}),C=R(()=>{var y;return d.value&&((y=f.value.mask)!==null&&y!==void 0?y:o.value)}),b=R(()=>{var y;return(y=f.value.scrollIntoViewOptions)!==null&&y!==void 0?y:i.value}),[S,I]=Xh(R(()=>f.value.target),s,u,b),T=R(()=>I.value?typeof f.value.arrow>"u"?l.value:f.value.arrow:!1),$=R(()=>typeof T.value=="object"?T.value.pointAtCenter:!1);ce($,()=>{var y;(y=a.value)===null||y===void 0||y.forcePopupAlign()}),ce(r,()=>{var y;(y=a.value)===null||y===void 0||y.forcePopupAlign()});const P=y=>{var A;c(y),(A=e.onChange)===null||A===void 0||A.call(e,y)};return()=>{var y;const{prefixCls:A,steps:M,onClose:O,onFinish:w,rootClassName:x,renderPanel:N,animated:z,zIndex:H}=e,j=ip(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if(I.value===void 0)return null;const Z=()=>{p(!1),O==null||O(r.value)},Q=typeof C.value=="boolean"?C.value:!!C.value,q=typeof C.value=="boolean"?void 0:C.value,le=()=>I.value||document.body,k=()=>g(Zh,E({arrow:T.value,key:"content",prefixCls:A,total:M.length,renderPanel:N,onPrev:()=>{P(r.value-1)},onNext:()=>{P(r.value+1)},onClose:Z,current:r.value,onFinish:()=>{Z(),w==null||w()}},f.value),null),D=R(()=>{const F=S.value||Nn,_={};return Object.keys(F).forEach(B=>{typeof F[B]=="number"?_[B]=`${F[B]}px`:_[B]=F[B]}),_});return d.value?g(je,null,[g(np,{zIndex:H,prefixCls:A,pos:S.value,showMask:Q,style:q==null?void 0:q.style,fill:q==null?void 0:q.color,open:d.value,animated:z,rootClassName:x},null),g(_i,E(E({},j),{},{builtinPlacements:f.value.target?(y=j.builtinPlacements)!==null&&y!==void 0?y:Hl($.value):void 0,ref:a,popupStyle:f.value.target?f.value.style:h(h({},f.value.style),{position:"fixed",left:Nn.left,top:Nn.top,transform:"translate(-50%, -50%)"}),popupPlacement:v.value,popupVisible:d.value,popupClassName:K(x,f.value.className),prefixCls:A,popup:k,forceRender:!1,destroyPopupOnHide:!0,zIndex:H,mask:!1,getTriggerDOMNode:le}),{default:()=>[g(Ki,{visible:d.value,autoLock:!0},{default:()=>[g("div",{class:K(x,`${A}-target-placeholder`),style:h(h({},D.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),rp=lp,ap=()=>h(h({},_l()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),sp=()=>h(h({},To()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),cp=X({name:"ATourPanel",inheritAttrs:!1,props:sp(),setup(e,t){let{attrs:n,slots:o}=t;const{current:i,total:s}=an(e),u=R(()=>i.value===s.value-1),l=r=>{var c;const d=e.prevButtonProps;(c=e.onPrev)===null||c===void 0||c.call(e,r),typeof(d==null?void 0:d.onClick)=="function"&&(d==null||d.onClick())},a=r=>{var c,d;const p=e.nextButtonProps;u.value?(c=e.onFinish)===null||c===void 0||c.call(e,r):(d=e.onNext)===null||d===void 0||d.call(e,r),typeof(p==null?void 0:p.onClick)=="function"&&(p==null||p.onClick())};return()=>{const{prefixCls:r,title:c,onClose:d,cover:p,description:m,type:f,arrow:v}=e,C=e.prevButtonProps,b=e.nextButtonProps;let S;c&&(S=g("div",{class:`${r}-header`},[g("div",{class:`${r}-title`},[c])]));let I;m&&(I=g("div",{class:`${r}-description`},[m]));let T;p&&(T=g("div",{class:`${r}-cover`},[p]));let $;o.indicatorsRender?$=o.indicatorsRender({current:i.value,total:s}):$=[...Array.from({length:s.value}).keys()].map((A,M)=>g("span",{key:A,class:K(M===i.value&&`${r}-indicator-active`,`${r}-indicator`)},null));const P=f==="primary"?"default":"primary",y={type:"default",ghost:f==="primary"};return g(to,{componentName:"Tour",defaultLocale:eo.Tour},{default:A=>{var M,O;return g("div",E(E({},n),{},{class:K(f==="primary"?`${r}-primary`:"",n.class,`${r}-content`)}),[v&&g("div",{class:`${r}-arrow`,key:"arrow"},null),g("div",{class:`${r}-inner`},[g(Yn,{class:`${r}-close`,onClick:d},null),T,S,I,g("div",{class:`${r}-footer`},[s.value>1&&g("div",{class:`${r}-indicators`},[$]),g("div",{class:`${r}-buttons`},[i.value!==0?g(yt,E(E(E({},y),C),{},{onClick:l,size:"small",class:K(`${r}-prev-btn`,C==null?void 0:C.className)}),{default:()=>[(M=C==null?void 0:C.children)!==null&&M!==void 0?M:A.Previous]}):null,g(yt,E(E({type:P},b),{},{onClick:a,size:"small",class:K(`${r}-next-btn`,b==null?void 0:b.className)}),{default:()=>[(O=b==null?void 0:b.children)!==null&&O!==void 0?O:u.value?A.Finish:A.Next]})])])])])}})}}}),dp=cp,up=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:i}=e;const s=te(i==null?void 0:i.value),u=R(()=>o==null?void 0:o.value);ce(u,c=>{s.value=c!=null?c:i==null?void 0:i.value},{immediate:!0});const l=c=>{s.value=c},a=R(()=>{var c,d;return typeof s.value=="number"?n&&((d=(c=n.value)===null||c===void 0?void 0:c[s.value])===null||d===void 0?void 0:d.type):t==null?void 0:t.value});return{currentMergedType:R(()=>{var c;return(c=a.value)!==null&&c!==void 0?c:t==null?void 0:t.value}),updateInnerCurrent:l}},fp=up,hp=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:i,borderRadius:s,borderRadiusXS:u,colorPrimary:l,colorText:a,colorFill:r,indicatorHeight:c,indicatorWidth:d,boxShadowTertiary:p,tourZIndexPopup:m,fontSize:f,colorBgContainer:v,fontWeightStrong:C,marginXS:b,colorTextLightSolid:S,tourBorderRadius:I,colorWhite:T,colorBgTextHover:$,tourCloseSize:P,motionDurationSlow:y,antCls:A}=e;return[{[t]:h(h({},xe(e)),{color:a,position:"absolute",zIndex:m,display:"block",visibility:"visible",fontSize:f,lineHeight:n,width:520,"--antd-arrow-background-color":v,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:I,boxShadow:p,position:"relative",backgroundColor:v,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:P,height:P,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+P+i}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${i}px`,[`${t}-title`]:{lineHeight:n,fontSize:f,fontWeight:C}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${i}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${u}px ${u}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:c,display:"inline-block",borderRadius:"50%",background:r,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:l}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${A}-btn`]:{marginInlineStart:b}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":l,[`${t}-inner`]:{color:S,textAlign:"start",textDecoration:"none",backgroundColor:l,borderRadius:s,boxShadow:p,[`${t}-close`]:{color:S},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new Mt(S).setAlpha(.15).toRgbString(),"&-active":{background:S}}},[`${t}-prev-btn`]:{color:S,borderColor:new Mt(S).setAlpha(.15).toRgbString(),backgroundColor:l,"&:hover":{backgroundColor:new Mt(S).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:l,borderColor:"transparent",background:T,"&:hover":{background:new Mt($).onBackground(T).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${y}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(I,Fr)}}},Wr(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:I,limitVerticalRadius:!0})]},pp=$e("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,i=Ie(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[hp(i)]});var gp=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i{const{steps:v,current:C,type:b,rootClassName:S}=e,I=gp(e,["steps","current","type","rootClassName"]),T=K({[`${r.value}-primary`]:m.value==="primary",[`${r.value}-rtl`]:c.value==="rtl"},p.value,S),$=(A,M)=>g(dp,E(E({},A),{},{type:b,current:M}),{indicatorsRender:i.indicatorsRender}),P=A=>{f(A),o("update:current",A),o("change",A)},y=R(()=>Vr({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(g(rp,E(E(E({},n),I),{},{rootClassName:T,prefixCls:r.value,current:C,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:$,onChange:P,steps:v,builtinPlacements:y.value}),null))}}}),vp=Je(mp),Fl=Symbol("appConfigContext"),bp=e=>nt(Fl,e),Sp=()=>dt(Fl,{}),Wl=Symbol("appContext"),yp=e=>nt(Wl,e),$p=$t({message:{},notification:{},modal:{}}),Cp=()=>dt(Wl,$p),wp=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:i,fontFamily:s}=e;return{[t]:{color:n,fontSize:o,lineHeight:i,fontFamily:s}}},xp=$e("App",e=>[wp(e)]),Ip=()=>({rootClassName:String,message:Ne(),notification:Ne()}),Tp=()=>Cp(),Tt=X({name:"AApp",props:ye(Ip(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=me("app",e),[i,s]=xp(o),u=R(()=>K(s.value,o.value,e.rootClassName)),l=Sp(),a=R(()=>({message:h(h({},l.message),e.message),notification:h(h({},l.notification),e.notification)}));bp(a.value);const[r,c]=jr(a.value.message),[d,p]=Kr(a.value.notification),[m,f]=Xr(),v=R(()=>({message:r,notification:d,modal:m}));return yp(v.value),()=>{var C;return i(g("div",{class:u.value},[f(),c(),p(),(C=n.default)===null||C===void 0?void 0:C.call(n)]))}}});Tt.useApp=Tp;Tt.install=function(e){e.component(Tt.name,Tt)};const Pp=Tt,Si=Object.freeze(Object.defineProperty({__proto__:null,Affix:Ji,Anchor:it,AnchorLink:no,AutoComplete:dc,AutoCompleteOptGroup:cc,AutoCompleteOption:sc,Alert:ss,Avatar:Fs,AvatarGroup:cs,Badge:Yi,BadgeRibbon:As,Breadcrumb:ds,BreadcrumbItem:us,BreadcrumbSeparator:fs,Button:yt,ButtonGroup:Gr,Calendar:Ur,Card:Ms,CardGrid:ps,CardMeta:gs,Collapse:Ws,CollapsePanel:Vs,Carousel:Kc,Cascader:bs,Checkbox:Qn,CheckboxGroup:Yr,Col:rs,Comment:Zc,ConfigProvider:Xi,DatePicker:Ss,MonthPicker:ys,WeekPicker:$s,RangePicker:Cs,QuarterPicker:ws,Descriptions:xs,DescriptionsItem:Is,Divider:Ts,Dropdown:ji,DropdownButton:qr,Drawer:Ps,Empty:Zr,FloatButton:tt,FloatButtonGroup:Jt,BackTop:Qt,Form:Jr,FormItem:Qr,FormItemRest:ea,Grid:Xc,Input:Wi,InputGroup:ta,InputPassword:na,InputSearch:oa,Textarea:ia,Image:la,ImagePreviewGroup:ra,InputNumber:kd,Layout:Jd,LayoutHeader:Ud,LayoutSider:qd,LayoutFooter:Yd,LayoutContent:Zd,List:Es,ListItem:Ns,ListItemMeta:Rs,message:Gi,Menu:Ue,MenuDivider:aa,MenuItem:Ht,MenuItemGroup:sa,SubMenu:ca,Mentions:Su,MentionsOption:Xt,Modal:ot,Statistic:qe,StatisticCountdown:Ou,notification:Ui,PageHeader:hs,Pagination:Vi,Popconfirm:da,Popover:ua,Progress:Fi,Radio:fa,RadioButton:ha,RadioGroup:pa,Rate:Ku,Result:Hs,Row:as,Select:Ln,SelectOptGroup:ga,SelectOption:ma,Skeleton:qi,SkeletonButton:Ls,SkeletonAvatar:ks,SkeletonInput:Bs,SkeletonImage:zs,SkeletonTitle:Ds,Slider:va,Space:_s,Compact:ba,Spin:rn,Steps:Sf,Step:Gt,Switch:Sa,Table:ya,TableColumn:$a,TableColumnGroup:Ca,TableSummary:wa,TableSummaryRow:xa,TableSummaryCell:Ia,Transfer:Wf,Tree:Ta,TreeNode:Pa,DirectoryTree:Aa,TreeSelect:fh,TreeSelectNode:Kn,Tabs:js,TabPane:Ks,Tag:Oa,CheckableTag:Ea,TimePicker:Na,TimeRangePicker:Ra,Timeline:ms,TimelineItem:vs,Tooltip:nn,Typography:Ma,TypographyLink:La,TypographyParagraph:ka,TypographyText:Ba,TypographyTitle:za,Upload:Da,UploadDragger:Ha,LocaleProvider:_a,Watermark:yh,Segmented:Oh,QRCode:jh,Tour:vp,App:Pp,Flex:Fa},Symbol.toStringTag,{value:"Module"})),Ap=function(e){return Object.keys(Si).forEach(t=>{const n=Si[t];n.install&&e.use(n)}),e.use(Va.StyleProvider),e.config.globalProperties.$message=Gi,e.config.globalProperties.$notification=Ui,e.config.globalProperties.$info=ot.info,e.config.globalProperties.$success=ot.success,e.config.globalProperties.$error=ot.error,e.config.globalProperties.$warning=ot.warning,e.config.globalProperties.$confirm=ot.confirm,e.config.globalProperties.$destroyAll=ot.destroyAll,e},Op={version:Wa,install:Ap},Ep=X({__name:"App",setup(e){const t={token:{colorPrimary:"#EA576A",colorLink:"#813841",colorLinkHover:"#EA576A"}};return(n,o)=>{const i=ja("RouterView");return Ka(),Xa(Ua(Xi),{theme:t,"page-header":{ghost:!1}},{default:Ga(()=>[g(i)]),_:1})}}});(async()=>{const e=Ya({render:()=>ns(Ep)});qa.init(),Za(e,Mo),e.use(Mo),e.use(Ja),e.use(Op),e.mount("#app"),e.component("VSelect",Qa),e.component("Markdown",es),e.component("Message",ts),mn(e,os),mn(e,is),mn(e,ls)})(); -//# sourceMappingURL=console.a316fa27.js.map +//# sourceMappingURL=console.6cdcbc4a.js.map diff --git a/abstra_statics/dist/assets/cssMode.02cc791c.js b/abstra_statics/dist/assets/cssMode.a76de97d.js similarity index 99% rename from abstra_statics/dist/assets/cssMode.02cc791c.js rename to abstra_statics/dist/assets/cssMode.a76de97d.js index 8179ddfd0..ded6658a8 100644 --- a/abstra_statics/dist/assets/cssMode.02cc791c.js +++ b/abstra_statics/dist/assets/cssMode.a76de97d.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="752924f9-5609-484a-b215-85e8e9dee352",e._sentryDebugIdIdentifier="sentry-dbid-752924f9-5609-484a-b215-85e8e9dee352")}catch{}})();/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="05542608-7b36-44cb-8a06-bb63d226883e",e._sentryDebugIdIdentifier="sentry-dbid-05542608-7b36-44cb-8a06-bb63d226883e")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -7,4 +7,4 @@ var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,config `,a==="\r"&&t+10&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,A,N){return n.call(f)==="[object Number]"&&A<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,A){return Array.isArray(f)&&f.every(A)}e.typedArray=b})(s||(s={}));var $e=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>Qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function qe(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:qe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Ge=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),y(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ze(d.command),range:u,kind:Ye(d.kind)};return d.textEdit&&(Je(d.textEdit)?v.range={insert:m(d.textEdit.insert),replace:m(d.textEdit.replace)}:v.range=m(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function y(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Je(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ye(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:m(e.range),text:e.newText}}function Ze(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ke=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),y(n))).then(t=>{if(!!t)return{range:m(t.range),contents:tt(t.contents)}})}};function et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function De(e){return typeof e=="string"?{value:e}:et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function tt(e){if(!!e)return Array.isArray(e)?e.map(De):[De(e)]}var rt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),y(n))).then(t=>{if(!!t)return t.map(a=>({range:m(a.range),kind:nt(a.kind)}))})}};function nt(e){switch(e){case P.Read:return c.languages.DocumentHighlightKind.Read;case P.Write:return c.languages.DocumentHighlightKind.Write;case P.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var it=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),y(n))).then(t=>{if(!!t)return[Te(t)]})}};function Te(e){return{uri:c.Uri.parse(e.uri),range:m(e.range)}}var at=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),y(n))).then(a=>{if(!!a)return a.map(Te)})}},ot=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),y(n),i)).then(a=>st(a))}};function st(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var ut=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ct(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]}))})}};function ct(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var wt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},dt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Se(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},ft=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Se(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Se(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var gt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},lt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ht(a.kind)),o})})}};function ht(e){switch(e){case D.Comment:return c.languages.FoldingRangeKind.Comment;case D.Imports:return c.languages.FoldingRangeKind.Imports;case D.Region:return c.languages.FoldingRangeKind.Region}}var vt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(y))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:m(a.range)}),a=a.parent;return o})})}};function kt(e){const n=[],i=[],r=new Xe(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Fe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Ge(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ke(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new rt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new it(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new at(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new ut(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new ot(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new gt(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new lt(t))),u.diagnostics&&i.push(new $e(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new vt(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new dt(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ft(t)))}return a(),n.push(Pe(i)),Pe(n)}function Pe(e){return{dispose:()=>Fe(e)}}function Fe(e){for(;e.length;)e.pop().dispose()}export{Ge as CompletionAdapter,it as DefinitionAdapter,$e as DiagnosticsAdapter,gt as DocumentColorAdapter,dt as DocumentFormattingEditProvider,rt as DocumentHighlightAdapter,wt as DocumentLinkAdapter,ft as DocumentRangeFormattingEditProvider,ut as DocumentSymbolAdapter,lt as FoldingRangeAdapter,Ke as HoverAdapter,at as ReferenceAdapter,ot as RenameAdapter,vt as SelectionRangeAdapter,Xe as WorkerManager,y as fromPosition,Me as fromRange,kt as setupMode,m as toRange,j as toTextEdit}; -//# sourceMappingURL=cssMode.02cc791c.js.map +//# sourceMappingURL=cssMode.a76de97d.js.map diff --git a/abstra_statics/dist/assets/datetime.269334b3.js b/abstra_statics/dist/assets/datetime.744b5391.js similarity index 66% rename from abstra_statics/dist/assets/datetime.269334b3.js rename to abstra_statics/dist/assets/datetime.744b5391.js index 8ece63da1..a0a17e993 100644 --- a/abstra_statics/dist/assets/datetime.269334b3.js +++ b/abstra_statics/dist/assets/datetime.744b5391.js @@ -1,2 +1,2 @@ -import{C as n}from"./gateway.e77556e5.js";import"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="8e0b56d7-b3a7-4ece-8f79-b33386dafd29",o._sentryDebugIdIdentifier="sentry-dbid-8e0b56d7-b3a7-4ece-8f79-b33386dafd29")}catch{}})();class c{async list(t){return n.get(`projects/${t}/builds`)}async get(t){return n.get(`builds/${t}`)}async download(t){return n.get(`builds/${t}/download`)}}const d=new c;class l{constructor(t){this.dto=t}static async list(t){return(await d.list(t)).map(i=>new l(i))}get id(){return this.dto.id}get projectId(){return this.dto.projectId}get createdAt(){return new Date(this.dto.createdAt)}get status(){return this.dto.status}get log(){return this.dto.log}get latest(){return this.dto.latest}get abstraVersion(){return this.dto.abstraVersion}async download(){const t=await d.download(this.id);if(!t)throw new Error("Download failed");window.open(t.url,"_blank")}}class g{constructor(t,s,i,r){this.projectId=t,this.buildId=s,this.abstraVersion=i,this.project=r}static fromV0(t,s,i,r){const a={hooks:r.hooks.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),forms:r.forms.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({id:e.identifier,logQuery:{buildId:s,stageId:e.identifier,stageTitle:e.title},...e})),scripts:[]};return new g(t,s,i,a)}static fromDTO(t,s,i,r){const a={hooks:r.hooks.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),forms:r.forms.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),scripts:r.scripts.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e}))};return new g(t,s,i,a)}static async get(t){const s=await d.get(t);if(!s)throw new Error("Build not found");const{projectId:i,abstraJson:r,abstraVersion:a}=s;if(!r||!a)return null;const e=JSON.parse(r);if(!e.version)throw new Error("Version is invalid");return e.version==="0.1"?this.fromV0(i,t,a,e):this.fromDTO(i,t,a,e)}get runtimes(){return[...this.project.forms.map(t=>({...t,type:"form"})),...this.project.hooks.map(t=>({...t,type:"hook"})),...this.project.jobs.map(t=>({...t,type:"job"})),...this.project.scripts.map(t=>({...t,type:"script"}))]}}function f(o,t){return o.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...t})}export{l as B,g as a,c as b,f as g}; -//# sourceMappingURL=datetime.269334b3.js.map +import{C as n}from"./gateway.c564a1cf.js";import"./vue-router.3fd92176.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="3ebcbb1a-8c7a-42a2-b464-1a620bad3df9",a._sentryDebugIdIdentifier="sentry-dbid-3ebcbb1a-8c7a-42a2-b464-1a620bad3df9")}catch{}})();class c{async list(t){return n.get(`projects/${t}/builds`)}async get(t){return n.get(`builds/${t}`)}async download(t){return n.get(`builds/${t}/download`)}}const d=new c;class l{constructor(t){this.dto=t}static async list(t){return(await d.list(t)).map(i=>new l(i))}get id(){return this.dto.id}get projectId(){return this.dto.projectId}get createdAt(){return new Date(this.dto.createdAt)}get status(){return this.dto.status}get log(){return this.dto.log}get latest(){return this.dto.latest}get abstraVersion(){return this.dto.abstraVersion}async download(){const t=await d.download(this.id);if(!t)throw new Error("Download failed");window.open(t.url,"_blank")}}class g{constructor(t,s,i,r){this.projectId=t,this.buildId=s,this.abstraVersion=i,this.project=r}static fromV0(t,s,i,r){const o={hooks:r.hooks.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),forms:r.forms.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({id:e.identifier,logQuery:{buildId:s,stageId:e.identifier,stageTitle:e.title},...e})),scripts:[]};return new g(t,s,i,o)}static fromDTO(t,s,i,r){const o={hooks:r.hooks.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),forms:r.forms.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),scripts:r.scripts.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e}))};return new g(t,s,i,o)}static async get(t){const s=await d.get(t);if(!s)throw new Error("Build not found");const{projectId:i,abstraJson:r,abstraVersion:o}=s;if(!r||!o)return null;const e=JSON.parse(r);if(!e.version)throw new Error("Version is invalid");return e.version==="0.1"?this.fromV0(i,t,o,e):this.fromDTO(i,t,o,e)}get runtimes(){return[...this.project.forms.map(t=>({...t,type:"form"})),...this.project.hooks.map(t=>({...t,type:"hook"})),...this.project.jobs.map(t=>({...t,type:"job"})),...this.project.scripts.map(t=>({...t,type:"script"}))]}}function h(a,t){return a.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...t})}export{l as B,g as a,c as b,h as g}; +//# sourceMappingURL=datetime.744b5391.js.map diff --git a/abstra_statics/dist/assets/dayjs.86e1a5b6.js b/abstra_statics/dist/assets/dayjs.86e1a5b6.js new file mode 100644 index 000000000..a448b6f9e --- /dev/null +++ b/abstra_statics/dist/assets/dayjs.86e1a5b6.js @@ -0,0 +1,2 @@ +import{S as s,dC as d,dD as i}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="2cad6199-53f8-4292-b0ee-b160482b9cd3",e._sentryDebugIdIdentifier="sentry-dbid-2cad6199-53f8-4292-b0ee-b160482b9cd3")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:b,QuarterPicker:o,RangePicker:a}=d(i),u=s(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:a,TimePicker:b,QuarterPicker:o,install:e=>(e.component(n.name,n),e.component(a.name,a),e.component(r.name,r),e.component(t.name,t),e.component(o.name,o),e)});export{u as D,r as M,o as Q,a as R,t as W}; +//# sourceMappingURL=dayjs.86e1a5b6.js.map diff --git a/abstra_statics/dist/assets/dayjs.c2ac9d43.js b/abstra_statics/dist/assets/dayjs.c2ac9d43.js deleted file mode 100644 index a3a8c7c94..000000000 --- a/abstra_statics/dist/assets/dayjs.c2ac9d43.js +++ /dev/null @@ -1,2 +0,0 @@ -import{S as s,dC as d,dD as i}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ef3c1f82-cf82-43ed-9c40-4b33d92cbae6",e._sentryDebugIdIdentifier="sentry-dbid-ef3c1f82-cf82-43ed-9c40-4b33d92cbae6")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:m,QuarterPicker:c,RangePicker:o}=d(i),u=s(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:o,TimePicker:m,QuarterPicker:c,install:e=>(e.component(n.name,n),e.component(o.name,o),e.component(r.name,r),e.component(t.name,t),e.component(c.name,c),e)});export{u as D,r as M,c as Q,o as R,t as W}; -//# sourceMappingURL=dayjs.c2ac9d43.js.map diff --git a/abstra_statics/dist/assets/editor.49995faa.js b/abstra_statics/dist/assets/editor.49995faa.js deleted file mode 100644 index 38e9f3af0..000000000 --- a/abstra_statics/dist/assets/editor.49995faa.js +++ /dev/null @@ -1,2 +0,0 @@ -var k=Object.defineProperty;var T=(o,e,t)=>e in o?k(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var r=(o,e,t)=>(T(o,typeof e!="symbol"?e+"":e,t),t);import{d as A,r as I,o as V,c as j,w as D,a as O,b as C,u as S,A as U,l as f,e as g,f as w,g as E,h as x,i as $,_ as a,j as N,k as W,T as B,m as M,P as q,C as F,M as H,s as J,n as m,p as z,q as G,t as Y,v as K}from"./vue-router.4c13f3d4.js";import{d as Q,r as X,u as Z,g as ee,s as te,c as oe}from"./workspaceStore.ae240ce8.js";import{a as ae}from"./asyncComputed.d0f14ed3.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="4528e514-ab28-4d7b-b47f-140ab0f19b55",o._sentryDebugIdIdentifier="sentry-dbid-4528e514-ab28-4d7b-b47f-140ab0f19b55")}catch{}})();const ne={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},re=A({__name:"App",setup(o){const e={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(t,n)=>{const l=I("RouterView");return V(),j(S(U),{theme:e,"page-header":{ghost:!1}},{default:D(()=>[O("div",ne,[C(l)])]),_:1})}}});class b{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}static getLoginUrl(e){return"https://cloud.abstra.io/api-key?"+new URLSearchParams(e)}}class se{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,t){const n=await fetch(`/_editor/api/linters/fix/${e}/${t}`,{method:"POST"});if(!n.ok)throw new Error("Failed to fix");return _.refetch(),n.json()}}const v=new se,_=ae(async()=>(await v.check()).map(e=>new le(e)));class ie{constructor(e,t){r(this,"name");r(this,"label");r(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=t}async fix(){await v.fix(this.ruleName,this.name)}}class ce{constructor(e,t){r(this,"label");r(this,"fixes");this.ruleName=t,this.label=e.label,this.fixes=e.fixes.map(n=>new ie(n,t))}}class le{constructor(e){r(this,"name");r(this,"label");r(this,"type");r(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(t=>new ce(t,this.name))}static get asyncComputed(){return _}static fromName(e){var n;const t=(n=_.result.value)==null?void 0:n.find(l=>l.name===e);if(!t)throw new Error(`Rule ${e} not found`);return t}}const i=class{static dispatch(e,t,n=0){window.Intercom?window.Intercom(e,t):n<10?setTimeout(()=>i.dispatch(e,t),100):console.error("Intercom not loaded")}static boot(e,t){i.booted||(i.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),i.booted=!0)}static shutdown(){i.dispatch("shutdown"),i.booted=!1}};let p=i;r(p,"booted",!1);const de={"console-url":"https://cloud.abstra.io"},pe=o=>{const e="VITE_"+f.toUpper(f.snakeCase(o)),t={VITE_SENTRY_RELEASE:"748e6ebb6293b3e54ab2ab1474d587e29fdb47e1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||de[o]},d={consoleUrl:pe("console-url")},ue=Q("cloud-project",()=>{const o=new b,e=g(null),t=g(null),n=w(()=>{var s,c;return(c=(s=e.value)==null?void 0:s.logged)!=null?c:!1}),l=w(()=>t.value?{project:`${d.consoleUrl}/projects/${t.value.id}`,users:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${d.consoleUrl}/projects/${t.value.id}/builds`,login:`${d.consoleUrl}/api-key`}:null),y=async()=>{!n.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},L=async s=>{const c=await o.createLogin(s);e.value=c,c.logged&&await h()},h=async()=>t.value=await o.getCloudProject(),P=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,h),E(()=>e.value,async s=>{if(s&&"info"in s){const{email:c,intercomHash:R}=s.info;p.boot(c,R)}else p.shutdown()}),{loadLogin:P,createLogin:L,deleteLogin:y,loginInfo:e,cloudProject:t,isLogged:n,links:l}}),me=X.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),u=x({history:$("/"),routes:[{path:"/_editor/",name:"app",component:()=>a(()=>import("./Home.77051e79.js"),["assets/Home.77051e79.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/Home.02a69158.css"]),children:[{path:"",name:"workspace",component:()=>a(()=>import("./Workspace.2fe00dc2.js"),["assets/Workspace.2fe00dc2.js","assets/BaseLayout.e1793d5b.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/PhSignOut.vue.e09114f0.js","assets/NavbarControls.651b74bd.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/CloseCircleOutlined.6201ef3d.js","assets/index.e5bdb21b.js","assets/index.ec6b7808.js","assets/workspaces.1ee4ae8d.js","assets/record.34d5b504.js","assets/popupNotifcation.d2ca3d78.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/PhChats.vue.3f8c120c.js","assets/NavbarControls.88cd9418.css","assets/Logo.1a35ae4d.js","assets/Logo.21e86751.css","assets/PhIdentificationBadge.vue.7047bcd0.js","assets/PhCaretRight.vue.d968b597.js","assets/PhFlowArrow.vue.d45d2075.js","assets/PhKanban.vue.b5dcf2c4.js","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js","assets/asyncComputed.d0f14ed3.js","assets/Workspace.f4e56ef5.css"]),redirect:()=>({name:"workflowEditor"}),children:[{path:"stages",name:"stages",component:()=>a(()=>import("./Stages.e3fc0dff.js"),["assets/Stages.e3fc0dff.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/CrudView.e4956a79.js","assets/router.87582bcc.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/ant-design.57cbe6fb.js","assets/asyncComputed.d0f14ed3.js","assets/string.eaeb96c3.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/forms.4f960625.js","assets/record.34d5b504.js","assets/scripts.709f5489.js","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/colorHelpers.c5724389.js","assets/index.e5bdb21b.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/validations.f7853e39.js","assets/Stages.a1bc3033.css"]),meta:{title:"Stages"}},{path:"workflow",name:"workflowEditor",component:()=>a(()=>import("./WorkflowEditor.9e62fb31.js"),["assets/WorkflowEditor.9e62fb31.js","assets/api.a5810267.js","assets/fetch.492045fb.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/Workflow.602b68d4.js","assets/PhArrowClockwise.vue.5c4db05c.js","assets/PhArrowCounterClockwise.vue.548df89b.js","assets/validations.f7853e39.js","assets/string.eaeb96c3.js","assets/uuid.27635aee.js","assets/index.52fae423.js","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/record.34d5b504.js","assets/polling.ce5b4e64.js","assets/index.40c3f00c.js","assets/Badge.49622b8e.js","assets/isNumeric.75337b1e.js","assets/Workflow.6fe906b3.css","assets/asyncComputed.d0f14ed3.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/index.c2ef572b.js","assets/WorkflowEditor.f9f21f8b.css"]),meta:{title:"Workflow Editor"}},{path:"threads",name:"workflowThreads",component:()=>a(()=>import("./WorkflowThreads.7e5ba87a.js"),["assets/WorkflowThreads.7e5ba87a.js","assets/api.a5810267.js","assets/fetch.492045fb.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/WorkflowView.11202833.js","assets/polling.ce5b4e64.js","assets/asyncComputed.d0f14ed3.js","assets/PhQuestion.vue.500e5a18.js","assets/ant-design.57cbe6fb.js","assets/index.ec6b7808.js","assets/index.3f22f3b8.js","assets/index.03e5f55c.js","assets/CollapsePanel.d6e0f903.js","assets/index.c2ef572b.js","assets/index.c9c8d27c.js","assets/isNumeric.75337b1e.js","assets/PhArrowCounterClockwise.vue.548df89b.js","assets/Workflow.602b68d4.js","assets/PhArrowClockwise.vue.5c4db05c.js","assets/validations.f7853e39.js","assets/string.eaeb96c3.js","assets/uuid.27635aee.js","assets/index.52fae423.js","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/record.34d5b504.js","assets/index.40c3f00c.js","assets/Badge.49622b8e.js","assets/Workflow.6fe906b3.css","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/LoadingOutlined.6c0b95d8.js","assets/DeleteOutlined.a943fe4d.js","assets/PhDownloadSimple.vue.285a519c.js","assets/utils.b9d20cd5.js","assets/LoadingContainer.01cf1024.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.78019367.css"]),meta:{title:"Workflow Threads"}},{path:"preferences",name:"settingsPreferences",component:()=>a(()=>import("./PreferencesEditor.a206533a.js"),["assets/PreferencesEditor.a206533a.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/record.34d5b504.js","assets/PlayerNavbar.78adf027.js","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/PhSignOut.vue.e09114f0.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js","assets/PlayerNavbar.b72557ee.css","assets/PlayerConfigProvider.8a3bab63.js","assets/index.52fae423.js","assets/PlayerConfigProvider.8864c905.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/LoadingContainer.01cf1024.js","assets/LoadingContainer.56fa997a.css","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/asyncComputed.d0f14ed3.js","assets/PreferencesEditor.a7201214.css"]),meta:{title:"Preferences"}},{path:"requirements",name:"settingsRequirements",component:()=>a(()=>import("./RequirementsEditor.c2fb4715.js"),["assets/RequirementsEditor.c2fb4715.js","assets/ContentLayout.f8da2f52.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/ContentLayout.ee57a545.css","assets/CrudView.e4956a79.js","assets/router.87582bcc.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.d0f14ed3.js","assets/polling.ce5b4e64.js","assets/record.34d5b504.js","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/colorHelpers.c5724389.js"]),meta:{title:"Requirements"}},{path:"env-vars",name:"env-vars",component:()=>a(()=>import("./EnvVarsEditor.a36c5b80.js"),["assets/EnvVarsEditor.a36c5b80.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/record.34d5b504.js","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/View.vue_vue_type_script_setup_true_lang.08004338.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/fetch.492045fb.js","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/CrudView.e4956a79.js","assets/router.87582bcc.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/PhRocketLaunch.vue.82bfbb41.js","assets/asyncComputed.d0f14ed3.js","assets/polling.ce5b4e64.js","assets/PhPencil.vue.f2283e7d.js","assets/index.e5bdb21b.js"]),meta:{title:"Environment Variables"}},{path:"vs-code",name:"vs-code",component:()=>a(()=>import("./VSCodeConnection.2f34f261.js"),["assets/VSCodeConnection.2f34f261.js","assets/ContentLayout.f8da2f52.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/ContentLayout.ee57a545.css","assets/polling.ce5b4e64.js","assets/index.ec6b7808.js"]),meta:{title:"VS Code integration"}},{path:"access-control",name:"accessControl",component:()=>a(()=>import("./AccessControlEditor.c653e384.js"),["assets/AccessControlEditor.c653e384.js","assets/ContentLayout.f8da2f52.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/ContentLayout.ee57a545.css","assets/fetch.492045fb.js","assets/record.34d5b504.js","assets/repository.a59a08e6.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/asyncComputed.d0f14ed3.js","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/PhGlobe.vue.9df45e5b.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/index.c2ef572b.js","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/index.e5bdb21b.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/AccessControlEditor.b7d1ceb9.css"]),meta:{title:"Access Control"}}]},{path:"project-login",name:"projectLogin",component:()=>a(()=>import("./ProjectLogin.779c0cc6.js"),["assets/ProjectLogin.779c0cc6.js","assets/BaseLayout.e1793d5b.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/Logo.1a35ae4d.js","assets/Logo.21e86751.css","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js","assets/index.ec6b7808.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/asyncComputed.d0f14ed3.js","assets/ProjectLogin.34e74986.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:"form/:id",name:"formEditor",component:()=>a(()=>import("./FormEditor.ed04179f.js"),["assets/FormEditor.ed04179f.js","assets/api.a5810267.js","assets/fetch.492045fb.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/PlayerNavbar.78adf027.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/PhSignOut.vue.e09114f0.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js","assets/PlayerNavbar.b72557ee.css","assets/BaseLayout.e1793d5b.js","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.493d1c63.js","assets/uuid.27635aee.js","assets/scripts.709f5489.js","assets/record.34d5b504.js","assets/validations.f7853e39.js","assets/string.eaeb96c3.js","assets/PhCopy.vue.300f48e4.js","assets/PhCopySimple.vue.39f63820.js","assets/PhCaretRight.vue.d968b597.js","assets/Badge.49622b8e.js","assets/isNumeric.75337b1e.js","assets/PhQuestion.vue.500e5a18.js","assets/LoadingOutlined.6c0b95d8.js","assets/workspaces.1ee4ae8d.js","assets/asyncComputed.d0f14ed3.js","assets/polling.ce5b4e64.js","assets/PhPencil.vue.f2283e7d.js","assets/toggleHighContrast.017fb466.js","assets/toggleHighContrast.30d77c87.css","assets/index.e5bdb21b.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/SourceCode.c657f354.css","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/FormRunner.2728cecd.js","assets/Login.vue_vue_type_script_setup_true_lang.8e55196d.js","assets/CircularLoading.b40e14c8.js","assets/CircularLoading.e156a2b0.css","assets/PhArrowClockwise.vue.5c4db05c.js","assets/Login.d43fdc58.css","assets/Steps.2273c005.js","assets/Steps.d681065f.css","assets/Watermark.31f43e38.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.30bf18bf.css","assets/PlayerConfigProvider.8a3bab63.js","assets/index.52fae423.js","assets/PlayerConfigProvider.8864c905.css","assets/PhArrowSquareOut.vue.340970aa.js","assets/PhFlowArrow.vue.d45d2075.js","assets/forms.4f960625.js","assets/ThreadSelector.788dee18.js","assets/index.3f22f3b8.js","assets/index.c2ef572b.js","assets/ThreadSelector.8aa77ab2.css","assets/index.ec6b7808.js","assets/NavbarControls.651b74bd.js","assets/CloseCircleOutlined.6201ef3d.js","assets/popupNotifcation.d2ca3d78.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/PhChats.vue.3f8c120c.js","assets/NavbarControls.88cd9418.css","assets/index.c2d72be7.js","assets/FormEditor.2de57d1a.css"]),meta:{title:"Form Editor"}},{path:"job/:id",name:"jobEditor",component:()=>a(()=>import("./JobEditor.c222ee56.js"),["assets/JobEditor.c222ee56.js","assets/BaseLayout.e1793d5b.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.493d1c63.js","assets/uuid.27635aee.js","assets/scripts.709f5489.js","assets/record.34d5b504.js","assets/validations.f7853e39.js","assets/string.eaeb96c3.js","assets/PhCopy.vue.300f48e4.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhCopySimple.vue.39f63820.js","assets/PhCaretRight.vue.d968b597.js","assets/Badge.49622b8e.js","assets/isNumeric.75337b1e.js","assets/PhBug.vue.e9805eb3.js","assets/PhQuestion.vue.500e5a18.js","assets/LoadingOutlined.6c0b95d8.js","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/asyncComputed.d0f14ed3.js","assets/polling.ce5b4e64.js","assets/PhPencil.vue.f2283e7d.js","assets/toggleHighContrast.017fb466.js","assets/toggleHighContrast.30d77c87.css","assets/index.e5bdb21b.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/SourceCode.c657f354.css","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/index.2d05e5d1.js","assets/index.ec6b7808.js","assets/RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js","assets/NavbarControls.651b74bd.js","assets/CloseCircleOutlined.6201ef3d.js","assets/popupNotifcation.d2ca3d78.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/PhChats.vue.3f8c120c.js","assets/NavbarControls.88cd9418.css","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js"]),meta:{title:"Job Editor"}},{path:"hook/:id",name:"hookEditor",component:()=>a(()=>import("./HookEditor.3a1c3b35.js"),["assets/HookEditor.3a1c3b35.js","assets/BaseLayout.e1793d5b.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.493d1c63.js","assets/uuid.27635aee.js","assets/scripts.709f5489.js","assets/record.34d5b504.js","assets/validations.f7853e39.js","assets/string.eaeb96c3.js","assets/PhCopy.vue.300f48e4.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhCopySimple.vue.39f63820.js","assets/PhCaretRight.vue.d968b597.js","assets/Badge.49622b8e.js","assets/isNumeric.75337b1e.js","assets/PhBug.vue.e9805eb3.js","assets/PhQuestion.vue.500e5a18.js","assets/LoadingOutlined.6c0b95d8.js","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/asyncComputed.d0f14ed3.js","assets/polling.ce5b4e64.js","assets/PhPencil.vue.f2283e7d.js","assets/toggleHighContrast.017fb466.js","assets/toggleHighContrast.30d77c87.css","assets/index.e5bdb21b.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/SourceCode.c657f354.css","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js","assets/api.a5810267.js","assets/fetch.492045fb.js","assets/metadata.d6f3a171.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/ThreadSelector.788dee18.js","assets/index.3f22f3b8.js","assets/index.c2ef572b.js","assets/ThreadSelector.8aa77ab2.css","assets/index.431b228d.js","assets/CollapsePanel.d6e0f903.js","assets/index.ec6b7808.js","assets/NavbarControls.651b74bd.js","assets/CloseCircleOutlined.6201ef3d.js","assets/popupNotifcation.d2ca3d78.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/PhChats.vue.3f8c120c.js","assets/NavbarControls.88cd9418.css","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js"]),meta:{title:"Hook Editor"}},{path:"script/:id",name:"scriptEditor",component:()=>a(()=>import("./ScriptEditor.2b50300d.js"),["assets/ScriptEditor.2b50300d.js","assets/BaseLayout.e1793d5b.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.493d1c63.js","assets/uuid.27635aee.js","assets/scripts.709f5489.js","assets/record.34d5b504.js","assets/validations.f7853e39.js","assets/string.eaeb96c3.js","assets/PhCopy.vue.300f48e4.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhCopySimple.vue.39f63820.js","assets/PhCaretRight.vue.d968b597.js","assets/Badge.49622b8e.js","assets/isNumeric.75337b1e.js","assets/PhBug.vue.e9805eb3.js","assets/PhQuestion.vue.500e5a18.js","assets/LoadingOutlined.6c0b95d8.js","assets/workspaces.1ee4ae8d.js","assets/workspaceStore.ae240ce8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/asyncComputed.d0f14ed3.js","assets/polling.ce5b4e64.js","assets/PhPencil.vue.f2283e7d.js","assets/toggleHighContrast.017fb466.js","assets/toggleHighContrast.30d77c87.css","assets/index.e5bdb21b.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/SourceCode.c657f354.css","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/RunButton.vue_vue_type_script_setup_true_lang.55c2d6c3.js","assets/ThreadSelector.788dee18.js","assets/index.3f22f3b8.js","assets/index.c2ef572b.js","assets/ThreadSelector.8aa77ab2.css","assets/NavbarControls.651b74bd.js","assets/CloseCircleOutlined.6201ef3d.js","assets/index.ec6b7808.js","assets/popupNotifcation.d2ca3d78.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/PhChats.vue.3f8c120c.js","assets/NavbarControls.88cd9418.css","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js","assets/CollapsePanel.d6e0f903.js"]),meta:{title:"Script Editor"}}]},{path:"/:path(.*)*",name:"form",component:()=>a(()=>import("./App.e3fc5288.js"),["assets/App.e3fc5288.js","assets/App.vue_vue_type_style_index_0_lang.b3029d8c.js","assets/workspaceStore.ae240ce8.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/PlayerConfigProvider.8a3bab63.js","assets/index.52fae423.js","assets/PlayerConfigProvider.8864c905.css","assets/App.bf2707f8.css"]),children:me}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),_e=ee(u);u.beforeEach(async(o,e)=>{if(await Z().actions.fetch(),o.meta.playerRoute)return _e(o,e);N(o,e);const t=ue();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const n={redirect:location.origin+"/_editor/project-login"};window.open(b.getLoginUrl(n),"_self")}});(async()=>{await te();const o=oe(),e=W({render:()=>z(re)});B.init(),M(e,u),e.use(u),e.use(q),e.use(o),e.mount("#app"),e.component("VSelect",F),e.component("Markdown",H),e.component("Message",J),m(e,G),m(e,Y),m(e,K)})();export{d as E,le as L,ue as u}; -//# sourceMappingURL=editor.49995faa.js.map diff --git a/abstra_statics/dist/assets/editor.519c2dc1.js b/abstra_statics/dist/assets/editor.519c2dc1.js new file mode 100644 index 000000000..c6c0b4ef0 --- /dev/null +++ b/abstra_statics/dist/assets/editor.519c2dc1.js @@ -0,0 +1,2 @@ +var k=Object.defineProperty;var T=(o,e,t)=>e in o?k(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var r=(o,e,t)=>(T(o,typeof e!="symbol"?e+"":e,t),t);import{d as A,r as I,o as V,c as j,w as D,a as O,b as C,u as S,A as U,l as f,e as g,f as w,g as E,h as x,i as $,_ as a,j as N,k as W,T as B,m as M,P as q,C as F,M as H,s as J,n as m,p as z,q as G,t as Y,v as K}from"./vue-router.3fd92176.js";import{d as Q,r as X,u as Z,g as ee,s as te,c as oe}from"./workspaceStore.411ef1fe.js";import{a as ae}from"./asyncComputed.295e9e03.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="05b35735-02ee-48c0-9226-379e55dd4625",o._sentryDebugIdIdentifier="sentry-dbid-05b35735-02ee-48c0-9226-379e55dd4625")}catch{}})();const ne={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},re=A({__name:"App",setup(o){const e={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(t,n)=>{const l=I("RouterView");return V(),j(S(U),{theme:e,"page-header":{ghost:!1}},{default:D(()=>[O("div",ne,[C(l)])]),_:1})}}});class v{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}static getLoginUrl(e){return"https://cloud.abstra.io/api-key?"+new URLSearchParams(e)}}class se{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,t){const n=await fetch(`/_editor/api/linters/fix/${e}/${t}`,{method:"POST"});if(!n.ok)throw new Error("Failed to fix");return _.refetch(),n.json()}}const b=new se,_=ae(async()=>(await b.check()).map(e=>new le(e)));class ie{constructor(e,t){r(this,"name");r(this,"label");r(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=t}async fix(){await b.fix(this.ruleName,this.name)}}class ce{constructor(e,t){r(this,"label");r(this,"fixes");this.ruleName=t,this.label=e.label,this.fixes=e.fixes.map(n=>new ie(n,t))}}class le{constructor(e){r(this,"name");r(this,"label");r(this,"type");r(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(t=>new ce(t,this.name))}static get asyncComputed(){return _}static fromName(e){var n;const t=(n=_.result.value)==null?void 0:n.find(l=>l.name===e);if(!t)throw new Error(`Rule ${e} not found`);return t}}const i=class{static dispatch(e,t,n=0){window.Intercom?window.Intercom(e,t):n<10?setTimeout(()=>i.dispatch(e,t),100):console.error("Intercom not loaded")}static boot(e,t){i.booted||(i.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),i.booted=!0)}static shutdown(){i.dispatch("shutdown"),i.booted=!1}};let p=i;r(p,"booted",!1);const de={"console-url":"https://cloud.abstra.io"},pe=o=>{const e="VITE_"+f.toUpper(f.snakeCase(o)),t={VITE_SENTRY_RELEASE:"e20785eb45a1b14ffe51f8e09f2bd2adbd28c4c5",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||de[o]},d={consoleUrl:pe("console-url")},ue=Q("cloud-project",()=>{const o=new v,e=g(null),t=g(null),n=w(()=>{var s,c;return(c=(s=e.value)==null?void 0:s.logged)!=null?c:!1}),l=w(()=>t.value?{project:`${d.consoleUrl}/projects/${t.value.id}`,users:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${d.consoleUrl}/projects/${t.value.id}/builds`,login:`${d.consoleUrl}/api-key`}:null),y=async()=>{!n.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},L=async s=>{const c=await o.createLogin(s);e.value=c,c.logged&&await h()},h=async()=>t.value=await o.getCloudProject(),P=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,h),E(()=>e.value,async s=>{if(s&&"info"in s){const{email:c,intercomHash:R}=s.info;p.boot(c,R)}else p.shutdown()}),{loadLogin:P,createLogin:L,deleteLogin:y,loginInfo:e,cloudProject:t,isLogged:n,links:l}}),me=X.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),u=x({history:$("/"),routes:[{path:"/_editor/",name:"app",component:()=>a(()=>import("./Home.a55cc38e.js"),["assets/Home.a55cc38e.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/Home.02a69158.css"]),children:[{path:"",name:"workspace",component:()=>a(()=>import("./Workspace.5af8309f.js"),["assets/Workspace.5af8309f.js","assets/BaseLayout.294a6887.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/PhSignOut.vue.154299d7.js","assets/NavbarControls.a8a61aa1.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/CloseCircleOutlined.f8dfd09a.js","assets/index.4fbbd10e.js","assets/index.063f7c9e.js","assets/workspaces.b456ec6a.js","assets/record.cbb43e89.js","assets/popupNotifcation.0e86d6a8.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/PhChats.vue.aa1113d9.js","assets/NavbarControls.88cd9418.css","assets/Logo.6e947620.js","assets/Logo.21e86751.css","assets/PhIdentificationBadge.vue.8d7f4c19.js","assets/PhCaretRight.vue.f72488ac.js","assets/PhFlowArrow.vue.d1d247ee.js","assets/PhKanban.vue.b52985f0.js","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js","assets/asyncComputed.295e9e03.js","assets/Workspace.f4e56ef5.css"]),redirect:()=>({name:"workflowEditor"}),children:[{path:"stages",name:"stages",component:()=>a(()=>import("./Stages.41a6c387.js"),["assets/Stages.41a6c387.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/CrudView.b65b5675.js","assets/router.59916c0d.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/ant-design.38477595.js","assets/asyncComputed.295e9e03.js","assets/string.e75a34fd.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/forms.665a9dac.js","assets/record.cbb43e89.js","assets/scripts.32887e06.js","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/colorHelpers.f04087b3.js","assets/index.4fbbd10e.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/validations.0afef3f1.js","assets/Stages.a1bc3033.css"]),meta:{title:"Stages"}},{path:"workflow",name:"workflowEditor",component:()=>a(()=>import("./WorkflowEditor.4a125a3f.js"),["assets/WorkflowEditor.4a125a3f.js","assets/api.854a5e4c.js","assets/fetch.8c5b12c2.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/Workflow.c11e942b.js","assets/PhArrowClockwise.vue.2725755a.js","assets/PhArrowCounterClockwise.vue.8fbc5885.js","assets/validations.0afef3f1.js","assets/string.e75a34fd.js","assets/uuid.06ef1e24.js","assets/index.bd967757.js","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/record.cbb43e89.js","assets/polling.4e30c061.js","assets/index.f6dcc8cb.js","assets/Badge.bcc65740.js","assets/isNumeric.75337b1e.js","assets/Workflow.6fe906b3.css","assets/asyncComputed.295e9e03.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/index.c6ce1c1c.js","assets/WorkflowEditor.f9f21f8b.css"]),meta:{title:"Workflow Editor"}},{path:"threads",name:"workflowThreads",component:()=>a(()=>import("./WorkflowThreads.ff4ec453.js"),["assets/WorkflowThreads.ff4ec453.js","assets/api.854a5e4c.js","assets/fetch.8c5b12c2.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/WorkflowView.3fb1431f.js","assets/polling.4e30c061.js","assets/asyncComputed.295e9e03.js","assets/PhQuestion.vue.129febdc.js","assets/ant-design.38477595.js","assets/index.063f7c9e.js","assets/index.61e7dffa.js","assets/index.82d1f1ac.js","assets/CollapsePanel.87687b29.js","assets/index.c6ce1c1c.js","assets/index.9c5136e0.js","assets/isNumeric.75337b1e.js","assets/PhArrowCounterClockwise.vue.8fbc5885.js","assets/Workflow.c11e942b.js","assets/PhArrowClockwise.vue.2725755a.js","assets/validations.0afef3f1.js","assets/string.e75a34fd.js","assets/uuid.06ef1e24.js","assets/index.bd967757.js","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/record.cbb43e89.js","assets/index.f6dcc8cb.js","assets/Badge.bcc65740.js","assets/Workflow.6fe906b3.css","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/LoadingOutlined.dad6ee6e.js","assets/DeleteOutlined.a95bba08.js","assets/PhDownloadSimple.vue.33128e79.js","assets/utils.4c5a1d76.js","assets/LoadingContainer.cc61e2fd.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.78019367.css"]),meta:{title:"Workflow Threads"}},{path:"preferences",name:"settingsPreferences",component:()=>a(()=>import("./PreferencesEditor.7f20a5ae.js"),["assets/PreferencesEditor.7f20a5ae.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/record.cbb43e89.js","assets/PlayerNavbar.56197f01.js","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/PhSignOut.vue.154299d7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js","assets/PlayerNavbar.b72557ee.css","assets/PlayerConfigProvider.44427467.js","assets/index.bd967757.js","assets/PlayerConfigProvider.8864c905.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/LoadingContainer.cc61e2fd.js","assets/LoadingContainer.56fa997a.css","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/asyncComputed.295e9e03.js","assets/PreferencesEditor.a7201214.css"]),meta:{title:"Preferences"}},{path:"requirements",name:"settingsRequirements",component:()=>a(()=>import("./RequirementsEditor.6fcb258b.js"),["assets/RequirementsEditor.6fcb258b.js","assets/ContentLayout.72beb65c.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/ContentLayout.ee57a545.css","assets/CrudView.b65b5675.js","assets/router.59916c0d.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.295e9e03.js","assets/polling.4e30c061.js","assets/record.cbb43e89.js","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/colorHelpers.f04087b3.js"]),meta:{title:"Requirements"}},{path:"env-vars",name:"env-vars",component:()=>a(()=>import("./EnvVarsEditor.178020b9.js"),["assets/EnvVarsEditor.178020b9.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/record.cbb43e89.js","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/View.vue_vue_type_script_setup_true_lang.3ec7f61f.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/fetch.8c5b12c2.js","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/CrudView.b65b5675.js","assets/router.59916c0d.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/PhRocketLaunch.vue.c412030e.js","assets/asyncComputed.295e9e03.js","assets/polling.4e30c061.js","assets/PhPencil.vue.a2604470.js","assets/index.4fbbd10e.js"]),meta:{title:"Environment Variables"}},{path:"vs-code",name:"vs-code",component:()=>a(()=>import("./VSCodeConnection.e06697af.js"),["assets/VSCodeConnection.e06697af.js","assets/ContentLayout.72beb65c.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/ContentLayout.ee57a545.css","assets/polling.4e30c061.js","assets/index.063f7c9e.js"]),meta:{title:"VS Code integration"}},{path:"access-control",name:"accessControl",component:()=>a(()=>import("./AccessControlEditor.c8a08e74.js"),["assets/AccessControlEditor.c8a08e74.js","assets/ContentLayout.72beb65c.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/ContentLayout.ee57a545.css","assets/fetch.8c5b12c2.js","assets/record.cbb43e89.js","assets/repository.9283185a.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/asyncComputed.295e9e03.js","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/PhGlobe.vue.69f38b7f.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/index.c6ce1c1c.js","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/index.4fbbd10e.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/AccessControlEditor.b7d1ceb9.css"]),meta:{title:"Access Control"}}]},{path:"project-login",name:"projectLogin",component:()=>a(()=>import("./ProjectLogin.4854bcae.js"),["assets/ProjectLogin.4854bcae.js","assets/BaseLayout.294a6887.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/Logo.6e947620.js","assets/Logo.21e86751.css","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js","assets/index.063f7c9e.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/asyncComputed.295e9e03.js","assets/ProjectLogin.34e74986.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:"form/:id",name:"formEditor",component:()=>a(()=>import("./FormEditor.9b532b4a.js"),["assets/FormEditor.9b532b4a.js","assets/api.854a5e4c.js","assets/fetch.8c5b12c2.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/PlayerNavbar.56197f01.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/PhSignOut.vue.154299d7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js","assets/PlayerNavbar.b72557ee.css","assets/BaseLayout.294a6887.js","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.db5c4074.js","assets/uuid.06ef1e24.js","assets/scripts.32887e06.js","assets/record.cbb43e89.js","assets/validations.0afef3f1.js","assets/string.e75a34fd.js","assets/PhCopy.vue.0ae3f8ab.js","assets/PhCopySimple.vue.992b99ff.js","assets/PhCaretRight.vue.f72488ac.js","assets/Badge.bcc65740.js","assets/isNumeric.75337b1e.js","assets/PhQuestion.vue.129febdc.js","assets/LoadingOutlined.dad6ee6e.js","assets/workspaces.b456ec6a.js","assets/asyncComputed.295e9e03.js","assets/polling.4e30c061.js","assets/PhPencil.vue.a2604470.js","assets/toggleHighContrast.db48a34e.js","assets/toggleHighContrast.30d77c87.css","assets/index.4fbbd10e.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/SourceCode.c657f354.css","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/FormRunner.7499affa.js","assets/Login.vue_vue_type_script_setup_true_lang.8de09e2d.js","assets/CircularLoading.b920c29a.js","assets/CircularLoading.e156a2b0.css","assets/PhArrowClockwise.vue.2725755a.js","assets/Login.d43fdc58.css","assets/Steps.767c106d.js","assets/Steps.d681065f.css","assets/Watermark.43182479.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.30bf18bf.css","assets/PlayerConfigProvider.44427467.js","assets/index.bd967757.js","assets/PlayerConfigProvider.8864c905.css","assets/PhArrowSquareOut.vue.188b81dc.js","assets/PhFlowArrow.vue.d1d247ee.js","assets/forms.665a9dac.js","assets/ThreadSelector.23af8b2c.js","assets/index.61e7dffa.js","assets/index.c6ce1c1c.js","assets/ThreadSelector.8aa77ab2.css","assets/index.063f7c9e.js","assets/NavbarControls.a8a61aa1.js","assets/CloseCircleOutlined.f8dfd09a.js","assets/popupNotifcation.0e86d6a8.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/PhChats.vue.aa1113d9.js","assets/NavbarControls.88cd9418.css","assets/index.5ccdbcb7.js","assets/FormEditor.2de57d1a.css"]),meta:{title:"Form Editor"}},{path:"job/:id",name:"jobEditor",component:()=>a(()=>import("./JobEditor.aaa65932.js"),["assets/JobEditor.aaa65932.js","assets/BaseLayout.294a6887.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.db5c4074.js","assets/uuid.06ef1e24.js","assets/scripts.32887e06.js","assets/record.cbb43e89.js","assets/validations.0afef3f1.js","assets/string.e75a34fd.js","assets/PhCopy.vue.0ae3f8ab.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhCopySimple.vue.992b99ff.js","assets/PhCaretRight.vue.f72488ac.js","assets/Badge.bcc65740.js","assets/isNumeric.75337b1e.js","assets/PhBug.vue.00bc4255.js","assets/PhQuestion.vue.129febdc.js","assets/LoadingOutlined.dad6ee6e.js","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/asyncComputed.295e9e03.js","assets/polling.4e30c061.js","assets/PhPencil.vue.a2604470.js","assets/toggleHighContrast.db48a34e.js","assets/toggleHighContrast.30d77c87.css","assets/index.4fbbd10e.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/SourceCode.c657f354.css","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/index.eafefd9b.js","assets/index.063f7c9e.js","assets/RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js","assets/NavbarControls.a8a61aa1.js","assets/CloseCircleOutlined.f8dfd09a.js","assets/popupNotifcation.0e86d6a8.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/PhChats.vue.aa1113d9.js","assets/NavbarControls.88cd9418.css","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js"]),meta:{title:"Job Editor"}},{path:"hook/:id",name:"hookEditor",component:()=>a(()=>import("./HookEditor.be8024c5.js"),["assets/HookEditor.be8024c5.js","assets/BaseLayout.294a6887.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.db5c4074.js","assets/uuid.06ef1e24.js","assets/scripts.32887e06.js","assets/record.cbb43e89.js","assets/validations.0afef3f1.js","assets/string.e75a34fd.js","assets/PhCopy.vue.0ae3f8ab.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhCopySimple.vue.992b99ff.js","assets/PhCaretRight.vue.f72488ac.js","assets/Badge.bcc65740.js","assets/isNumeric.75337b1e.js","assets/PhBug.vue.00bc4255.js","assets/PhQuestion.vue.129febdc.js","assets/LoadingOutlined.dad6ee6e.js","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/asyncComputed.295e9e03.js","assets/polling.4e30c061.js","assets/PhPencil.vue.a2604470.js","assets/toggleHighContrast.db48a34e.js","assets/toggleHighContrast.30d77c87.css","assets/index.4fbbd10e.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/SourceCode.c657f354.css","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js","assets/api.854a5e4c.js","assets/fetch.8c5b12c2.js","assets/metadata.789df59c.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/ThreadSelector.23af8b2c.js","assets/index.61e7dffa.js","assets/index.c6ce1c1c.js","assets/ThreadSelector.8aa77ab2.css","assets/index.2c515076.js","assets/CollapsePanel.87687b29.js","assets/index.063f7c9e.js","assets/NavbarControls.a8a61aa1.js","assets/CloseCircleOutlined.f8dfd09a.js","assets/popupNotifcation.0e86d6a8.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/PhChats.vue.aa1113d9.js","assets/NavbarControls.88cd9418.css","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js"]),meta:{title:"Hook Editor"}},{path:"script/:id",name:"scriptEditor",component:()=>a(()=>import("./ScriptEditor.85d9edf4.js"),["assets/ScriptEditor.85d9edf4.js","assets/BaseLayout.294a6887.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.db5c4074.js","assets/uuid.06ef1e24.js","assets/scripts.32887e06.js","assets/record.cbb43e89.js","assets/validations.0afef3f1.js","assets/string.e75a34fd.js","assets/PhCopy.vue.0ae3f8ab.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhCopySimple.vue.992b99ff.js","assets/PhCaretRight.vue.f72488ac.js","assets/Badge.bcc65740.js","assets/isNumeric.75337b1e.js","assets/PhBug.vue.00bc4255.js","assets/PhQuestion.vue.129febdc.js","assets/LoadingOutlined.dad6ee6e.js","assets/workspaces.b456ec6a.js","assets/workspaceStore.411ef1fe.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/asyncComputed.295e9e03.js","assets/polling.4e30c061.js","assets/PhPencil.vue.a2604470.js","assets/toggleHighContrast.db48a34e.js","assets/toggleHighContrast.30d77c87.css","assets/index.4fbbd10e.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/SourceCode.c657f354.css","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/RunButton.vue_vue_type_script_setup_true_lang.e5bff228.js","assets/ThreadSelector.23af8b2c.js","assets/index.61e7dffa.js","assets/index.c6ce1c1c.js","assets/ThreadSelector.8aa77ab2.css","assets/NavbarControls.a8a61aa1.js","assets/CloseCircleOutlined.f8dfd09a.js","assets/index.063f7c9e.js","assets/popupNotifcation.0e86d6a8.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/PhChats.vue.aa1113d9.js","assets/NavbarControls.88cd9418.css","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js","assets/CollapsePanel.87687b29.js"]),meta:{title:"Script Editor"}}]},{path:"/:path(.*)*",name:"form",component:()=>a(()=>import("./App.ba11635e.js"),["assets/App.ba11635e.js","assets/App.vue_vue_type_style_index_0_lang.f9e04732.js","assets/workspaceStore.411ef1fe.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/PlayerConfigProvider.44427467.js","assets/index.bd967757.js","assets/PlayerConfigProvider.8864c905.css","assets/App.bf2707f8.css"]),children:me}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),_e=ee(u);u.beforeEach(async(o,e)=>{if(await Z().actions.fetch(),o.meta.playerRoute)return _e(o,e);N(o,e);const t=ue();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const n={redirect:location.origin+"/_editor/project-login"};window.open(v.getLoginUrl(n),"_self")}});(async()=>{await te();const o=oe(),e=W({render:()=>z(re)});B.init(),M(e,u),e.use(u),e.use(q),e.use(o),e.mount("#app"),e.component("VSelect",F),e.component("Markdown",H),e.component("Message",J),m(e,G),m(e,Y),m(e,K)})();export{d as E,le as L,ue as u}; +//# sourceMappingURL=editor.519c2dc1.js.map diff --git a/abstra_statics/dist/assets/editor.main.36d84e90.js b/abstra_statics/dist/assets/editor.main.36d84e90.js deleted file mode 100644 index 51b25b129..000000000 --- a/abstra_statics/dist/assets/editor.main.36d84e90.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C as t,E as d,K as i,a as c,M as f,c as l,P as y,R as b,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="a4716e92-419f-4513-8284-9ceacddb6454",e._sentryDebugIdIdentifier="sentry-dbid-a4716e92-419f-4513-8284-9ceacddb6454")}catch{}})();export{t as CancellationTokenSource,d as Emitter,i as KeyCode,c as KeyMod,f as MarkerSeverity,l as MarkerTag,y as Position,b as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages}; -//# sourceMappingURL=editor.main.36d84e90.js.map diff --git a/abstra_statics/dist/assets/editor.main.aa5ba997.js b/abstra_statics/dist/assets/editor.main.aa5ba997.js new file mode 100644 index 000000000..44b966498 --- /dev/null +++ b/abstra_statics/dist/assets/editor.main.aa5ba997.js @@ -0,0 +1,2 @@ +import{C as t,E as i,K as d,a as c,M as f,c as b,P as l,R as y,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="0b0582f5-2920-411b-89ac-a0a64c0e1206",e._sentryDebugIdIdentifier="sentry-dbid-0b0582f5-2920-411b-89ac-a0a64c0e1206")}catch{}})();export{t as CancellationTokenSource,i as Emitter,d as KeyCode,c as KeyMod,f as MarkerSeverity,b as MarkerTag,l as Position,y as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages}; +//# sourceMappingURL=editor.main.aa5ba997.js.map diff --git a/abstra_statics/dist/assets/fetch.492045fb.js b/abstra_statics/dist/assets/fetch.492045fb.js deleted file mode 100644 index bc4959227..000000000 --- a/abstra_statics/dist/assets/fetch.492045fb.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="47c5e0ab-4f48-4d7c-978f-ced1ca77a79d",e._sentryDebugIdIdentifier="sentry-dbid-47c5e0ab-4f48-4d7c-978f-ced1ca77a79d")}catch{}})();const c=(...e)=>window.fetch(...e);export{c as l}; -//# sourceMappingURL=fetch.492045fb.js.map diff --git a/abstra_statics/dist/assets/fetch.8c5b12c2.js b/abstra_statics/dist/assets/fetch.8c5b12c2.js new file mode 100644 index 000000000..206c0f6a8 --- /dev/null +++ b/abstra_statics/dist/assets/fetch.8c5b12c2.js @@ -0,0 +1,2 @@ +import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5ba73891-2b01-41f5-8b59-613046f1b00c",e._sentryDebugIdIdentifier="sentry-dbid-5ba73891-2b01-41f5-8b59-613046f1b00c")}catch{}})();const b=(...e)=>window.fetch(...e);export{b as l}; +//# sourceMappingURL=fetch.8c5b12c2.js.map diff --git a/abstra_statics/dist/assets/forms.4f960625.js b/abstra_statics/dist/assets/forms.665a9dac.js similarity index 93% rename from abstra_statics/dist/assets/forms.4f960625.js rename to abstra_statics/dist/assets/forms.665a9dac.js index 22697bb59..8bfafdac1 100644 --- a/abstra_statics/dist/assets/forms.4f960625.js +++ b/abstra_statics/dist/assets/forms.665a9dac.js @@ -1,2 +1,2 @@ -var c=Object.defineProperty;var d=(r,t,e)=>t in r?c(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>(d(r,typeof t!="symbol"?t+"":t,e),e);import{A as g}from"./record.34d5b504.js";import"./vue-router.4c13f3d4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="c510a554-875e-4bc3-aa20-1a782e8c3dc3",r._sentryDebugIdIdentifier="sentry-dbid-c510a554-875e-4bc3-aa20-1a782e8c3dc3")}catch{}})();class h{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,s){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/forms/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",o=`/_editor/api/forms/${t}`+s;await fetch(o,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const a=new h;class i{constructor(t){n(this,"record");this.record=g.create(a,t)}static async list(){return(await a.list()).map(e=>new i(e))}static async create(t,e,s){const o=await a.create(t,e,s);return new i(o)}static async get(t){const e=await a.get(t);return new i(e)}get id(){return this.record.get("id")}get type(){return"form"}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,s)=>(this.record.set("notification_trigger",{...t,[e]:s}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await a.delete(this.id,t)}async duplicate(){const t=await a.duplicate(this.id);return new i(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,allowRestart:this.allowRestart,welcomeTitle:this.welcomeTitle,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText,restartButtonText:this.restartButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new i(t)}}export{i as F}; -//# sourceMappingURL=forms.4f960625.js.map +var c=Object.defineProperty;var d=(r,t,e)=>t in r?c(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>(d(r,typeof t!="symbol"?t+"":t,e),e);import{A as g}from"./record.cbb43e89.js";import"./vue-router.3fd92176.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="6254314b-4949-4dac-83aa-dc9a47cd47af",r._sentryDebugIdIdentifier="sentry-dbid-6254314b-4949-4dac-83aa-dc9a47cd47af")}catch{}})();class h{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,s){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/forms/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",o=`/_editor/api/forms/${t}`+s;await fetch(o,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const a=new h;class i{constructor(t){n(this,"record");this.record=g.create(a,t)}static async list(){return(await a.list()).map(e=>new i(e))}static async create(t,e,s){const o=await a.create(t,e,s);return new i(o)}static async get(t){const e=await a.get(t);return new i(e)}get id(){return this.record.get("id")}get type(){return"form"}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,s)=>(this.record.set("notification_trigger",{...t,[e]:s}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await a.delete(this.id,t)}async duplicate(){const t=await a.duplicate(this.id);return new i(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,allowRestart:this.allowRestart,welcomeTitle:this.welcomeTitle,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText,restartButtonText:this.restartButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new i(t)}}export{i as F}; +//# sourceMappingURL=forms.665a9dac.js.map diff --git a/abstra_statics/dist/assets/freemarker2.9c65c42f.js b/abstra_statics/dist/assets/freemarker2.3806a069.js similarity index 98% rename from abstra_statics/dist/assets/freemarker2.9c65c42f.js rename to abstra_statics/dist/assets/freemarker2.3806a069.js index 84710c5f8..dbe8d1d8e 100644 --- a/abstra_statics/dist/assets/freemarker2.9c65c42f.js +++ b/abstra_statics/dist/assets/freemarker2.3806a069.js @@ -1,4 +1,4 @@ -import{m as b}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="6f1fe078-ad9e-4410-ba2b-7fbf76702e54",t._sentryDebugIdIdentifier="sentry-dbid-6f1fe078-ad9e-4410-ba2b-7fbf76702e54")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as b}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="650c5015-1f47-4fd8-b6f2-35a2417952b8",t._sentryDebugIdIdentifier="sentry-dbid-650c5015-1f47-4fd8-b6f2-35a2417952b8")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -6,4 +6,4 @@ import{m as b}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d *-----------------------------------------------------------------------------*/var F=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&F(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,b);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var w={conf:l(a),language:i(a,k)},h={conf:l(u),language:i(u,k)},T={conf:l(a),language:i(a,p)},S={conf:l(u),language:i(u,p)},y={conf:A(),language:m(k)},P={conf:A(),language:m(p)};export{T as TagAngleInterpolationBracket,w as TagAngleInterpolationDollar,P as TagAutoInterpolationBracket,y as TagAutoInterpolationDollar,S as TagBracketInterpolationBracket,h as TagBracketInterpolationDollar}; -//# sourceMappingURL=freemarker2.9c65c42f.js.map +//# sourceMappingURL=freemarker2.3806a069.js.map diff --git a/abstra_statics/dist/assets/gateway.c564a1cf.js b/abstra_statics/dist/assets/gateway.c564a1cf.js new file mode 100644 index 000000000..d060b8fd3 --- /dev/null +++ b/abstra_statics/dist/assets/gateway.c564a1cf.js @@ -0,0 +1,2 @@ +var w=Object.defineProperty;var g=(o,t,e)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var h=(o,t,e)=>(g(o,typeof t!="symbol"?t+"":t,e),e);import{p as b}from"./popupNotifcation.0e86d6a8.js";import{L as y,N as E,O as A,l}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="e16a67b0-63cb-46ae-8163-c191147aea5a",o._sentryDebugIdIdentifier="sentry-dbid-e16a67b0-63cb-46ae-8163-c191147aea5a")}catch{}})();class m{constructor(){h(this,"storage");this.storage=new y(E.string(),"auth:jwt")}async authenticate(t){f.post("authn/authenticate",{email:t})}async verify(t,e){const n=await f.post("authn/verify",{email:t,token:e});if(!(n&&"jwt"in n))throw new Error("Invalid token");return this.saveJWT(n.jwt),this.getAuthor()}saveJWT(t){this.storage.set(t)}getAuthor(){const t=this.storage.get();if(t)try{const e=A(t);if(e.exp&&e.exp>Date.now()/1e3)return{jwt:t,claims:e}}catch{console.warn("Invalid JWT")}return null}removeAuthor(){this.storage.remove()}get headers(){const t=this.getAuthor();return t?{"Author-Authorization":`Bearer ${t.jwt}`}:{}}}const i=new m,T=()=>window.location.host.includes(".abstra.io"),R={"cloud-api":"/api/cloud-api",onboarding:"https://onboarding.abstra.app"},O={"cloud-api":"https://cloud-api.abstra.cloud",onboarding:"https://onboarding.abstra.app"},d=o=>{const t="VITE_"+l.toUpper(l.snakeCase(o)),e={VITE_SENTRY_RELEASE:"e20785eb45a1b14ffe51f8e09f2bd2adbd28c4c5",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[t];return e||(T()?R[o]:O[o])},c={cloudApi:d("cloud-api"),onboarding:d("onboarding")};class u extends Error{constructor(t,e){super(t),this.status=e}static async fromResponse(t){const e=await t.text();return new u(e,t.status)}}class f{static async get(t,e){const n=Object.fromEntries(Object.entries(e!=null?e:{}).filter(([,p])=>p!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await fetch(`${c.cloudApi}/console/${t}${s}`,{headers:{...i.headers}});if(a.status===403){b("You are not authorized to access this resource","Click here to go back to the home page.",()=>{window.location.href="/"});return}const r=await a.text();return r?JSON.parse(r):null}static async getBlob(t){return await(await fetch(`${c.cloudApi}/console/${t}`,{headers:{...i.headers}})).blob()}static async post(t,e,n){const s=!!(n!=null&&n["Content-Type"])&&n["Content-Type"]!=="application/json",a=await fetch(`${c.cloudApi}/console/${t}`,{method:"POST",headers:{"Content-Type":"application/json",...i.headers,...n},body:s?e:JSON.stringify(e)});if(!a.ok)throw await u.fromResponse(a);const r=await a.text();return r?JSON.parse(r):null}static async patch(t,e){const n=await fetch(`${c.cloudApi}/console/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json",...i.headers},body:JSON.stringify(e)});if(!n.ok)throw await u.fromResponse(n);const s=await n.text();return s?JSON.parse(s):null}static async delete(t){const e=await fetch(`${c.cloudApi}/console/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",...i.headers}});if(!e.ok)throw await u.fromResponse(e)}}export{f as C,c as E,i as a}; +//# sourceMappingURL=gateway.c564a1cf.js.map diff --git a/abstra_statics/dist/assets/gateway.e77556e5.js b/abstra_statics/dist/assets/gateway.e77556e5.js deleted file mode 100644 index cb78611f7..000000000 --- a/abstra_statics/dist/assets/gateway.e77556e5.js +++ /dev/null @@ -1,2 +0,0 @@ -var w=Object.defineProperty;var b=(o,t,e)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var h=(o,t,e)=>(b(o,typeof t!="symbol"?t+"":t,e),e);import{p as g}from"./popupNotifcation.d2ca3d78.js";import{L as y,N as E,O as A,l as d}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="52b201d0-9e79-4bf7-9732-6b51bf94e486",o._sentryDebugIdIdentifier="sentry-dbid-52b201d0-9e79-4bf7-9732-6b51bf94e486")}catch{}})();class m{constructor(){h(this,"storage");this.storage=new y(E.string(),"auth:jwt")}async authenticate(t){f.post("authn/authenticate",{email:t})}async verify(t,e){const n=await f.post("authn/verify",{email:t,token:e});if(!(n&&"jwt"in n))throw new Error("Invalid token");return this.saveJWT(n.jwt),this.getAuthor()}saveJWT(t){this.storage.set(t)}getAuthor(){const t=this.storage.get();if(t)try{const e=A(t);if(e.exp&&e.exp>Date.now()/1e3)return{jwt:t,claims:e}}catch{console.warn("Invalid JWT")}return null}removeAuthor(){this.storage.remove()}get headers(){const t=this.getAuthor();return t?{"Author-Authorization":`Bearer ${t.jwt}`}:{}}}const i=new m,T=()=>window.location.host.includes(".abstra.io"),R={"cloud-api":"/api/cloud-api",onboarding:"https://onboarding.abstra.app"},O={"cloud-api":"https://cloud-api.abstra.cloud",onboarding:"https://onboarding.abstra.app"},l=o=>{const t="VITE_"+d.toUpper(d.snakeCase(o)),e={VITE_SENTRY_RELEASE:"748e6ebb6293b3e54ab2ab1474d587e29fdb47e1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[t];return e||(T()?R[o]:O[o])},c={cloudApi:l("cloud-api"),onboarding:l("onboarding")};class u extends Error{constructor(t,e){super(t),this.status=e}static async fromResponse(t){const e=await t.text();return new u(e,t.status)}}class f{static async get(t,e){const n=Object.fromEntries(Object.entries(e!=null?e:{}).filter(([,p])=>p!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await fetch(`${c.cloudApi}/console/${t}${s}`,{headers:{...i.headers}});if(a.status===403){g("You are not authorized to access this resource","Click here to go back to the home page.",()=>{window.location.href="/"});return}const r=await a.text();return r?JSON.parse(r):null}static async getBlob(t){return await(await fetch(`${c.cloudApi}/console/${t}`,{headers:{...i.headers}})).blob()}static async post(t,e,n){const s=!!(n!=null&&n["Content-Type"])&&n["Content-Type"]!=="application/json",a=await fetch(`${c.cloudApi}/console/${t}`,{method:"POST",headers:{"Content-Type":"application/json",...i.headers,...n},body:s?e:JSON.stringify(e)});if(!a.ok)throw await u.fromResponse(a);const r=await a.text();return r?JSON.parse(r):null}static async patch(t,e){const n=await fetch(`${c.cloudApi}/console/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json",...i.headers},body:JSON.stringify(e)});if(!n.ok)throw await u.fromResponse(n);const s=await n.text();return s?JSON.parse(s):null}static async delete(t){const e=await fetch(`${c.cloudApi}/console/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",...i.headers}});if(!e.ok)throw await u.fromResponse(e)}}export{f as C,c as E,i as a}; -//# sourceMappingURL=gateway.e77556e5.js.map diff --git a/abstra_statics/dist/assets/handlebars.863cb9e2.js b/abstra_statics/dist/assets/handlebars.76a5e9e9.js similarity index 91% rename from abstra_statics/dist/assets/handlebars.863cb9e2.js rename to abstra_statics/dist/assets/handlebars.76a5e9e9.js index 3f3e21552..88f8d588e 100644 --- a/abstra_statics/dist/assets/handlebars.863cb9e2.js +++ b/abstra_statics/dist/assets/handlebars.76a5e9e9.js @@ -1,7 +1,7 @@ -import{m as l}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0081b150-da4f-4a75-8949-d98fe3bf319d",t._sentryDebugIdIdentifier="sentry-dbid-0081b150-da4f-4a75-8949-d98fe3bf319d")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as l}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f6d2efc1-ec7a-4dac-b25a-9afcf0b2201a",t._sentryDebugIdIdentifier="sentry-dbid-f6d2efc1-ec7a-4dac-b25a-9afcf0b2201a")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!p.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=s(e,r))||o.enumerable});return t},h=(t,e,n)=>(i(t,e,"default"),n&&i(n,e,"default")),a={};h(a,l);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; -//# sourceMappingURL=handlebars.863cb9e2.js.map + *-----------------------------------------------------------------------------*/var d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of c(e))!p.call(t,a)&&a!==n&&d(t,a,{get:()=>e[a],enumerable:!(o=s(e,a))||o.enumerable});return t},h=(t,e,n)=>(i(t,e,"default"),n&&i(n,e,"default")),r={};h(r,l);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; +//# sourceMappingURL=handlebars.76a5e9e9.js.map diff --git a/abstra_statics/dist/assets/html.8243278a.js b/abstra_statics/dist/assets/html.489aa539.js similarity index 91% rename from abstra_statics/dist/assets/html.8243278a.js rename to abstra_statics/dist/assets/html.489aa539.js index 72be908cd..60e945607 100644 --- a/abstra_statics/dist/assets/html.8243278a.js +++ b/abstra_statics/dist/assets/html.489aa539.js @@ -1,7 +1,7 @@ -import{m as d}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e1cf1a8e-3bba-499f-b91b-2296a1ae9152",t._sentryDebugIdIdentifier="sentry-dbid-e1cf1a8e-3bba-499f-b91b-2296a1ae9152")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as s}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="de891c43-b132-49d3-b6bc-d91c9a334993",t._sentryDebugIdIdentifier="sentry-dbid-de891c43-b132-49d3-b6bc-d91c9a334993")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var p=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!c.call(t,n)&&n!==r&&p(t,n,{get:()=>e[n],enumerable:!(o=l(e,n))||o.enumerable});return t},u=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};u(i,d);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{x as conf,g as language}; -//# sourceMappingURL=html.8243278a.js.map + *-----------------------------------------------------------------------------*/var p=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!c.call(t,n)&&n!==r&&p(t,n,{get:()=>e[n],enumerable:!(o=l(e,n))||o.enumerable});return t},u=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};u(i,s);var d=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${d.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{x as conf,g as language}; +//# sourceMappingURL=html.489aa539.js.map diff --git a/abstra_statics/dist/assets/htmlMode.e7157056.js b/abstra_statics/dist/assets/htmlMode.adc6d55e.js similarity index 99% rename from abstra_statics/dist/assets/htmlMode.e7157056.js rename to abstra_statics/dist/assets/htmlMode.adc6d55e.js index 9140685ac..6a9d79345 100644 --- a/abstra_statics/dist/assets/htmlMode.e7157056.js +++ b/abstra_statics/dist/assets/htmlMode.adc6d55e.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e053ccb7-b48a-4160-9ba5-3a9c3f769702",e._sentryDebugIdIdentifier="sentry-dbid-e053ccb7-b48a-4160-9ba5-3a9c3f769702")}catch{}})();/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0eaa84cb-d34b-45c9-8742-2e28a0244d98",e._sentryDebugIdIdentifier="sentry-dbid-0eaa84cb-d34b-45c9-8742-2e28a0244d98")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -7,4 +7,4 @@ var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,config `,a==="\r"&&t+10&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,I,N){return n.call(f)==="[object Number]"&&I<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,I){return Array.isArray(f)&&f.every(I)}e.typedArray=b})(s||(s={}));var mt=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>nt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function rt(e){switch(e){case A.Error:return c.MarkerSeverity.Error;case A.Warning:return c.MarkerSeverity.Warning;case A.Information:return c.MarkerSeverity.Info;case A.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function nt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var it=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),C(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:st(d.command),range:u,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function C(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Se(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:_(e.range),text:e.newText}}function st(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),C(n))).then(t=>{if(!!t)return{range:_(t.range),contents:ct(t.contents)}})}};function ut(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:ut(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function ct(e){if(!!e)return Array.isArray(e)?e.map(Re):[Re(e)]}var Fe=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),C(n))).then(t=>{if(!!t)return t.map(a=>({range:_(a.range),kind:dt(a.kind)}))})}};function dt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var _t=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),C(n))).then(t=>{if(!!t)return[Le(t)]})}};function Le(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var wt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),C(n))).then(a=>{if(!!a)return a.map(Le)})}},je=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),C(n),i)).then(a=>ft(a))}};function ft(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var Ne=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:gt(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function gt(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var We=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},He=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Oe(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},Ue=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Se(n),Oe(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Oe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var kt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Se(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Ve=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=lt(a.kind)),o})})}};function lt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var ze=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(C))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},Xe=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function bt(e){const n=new Me(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new Xe(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Fe(i)),c.languages.registerLinkProvider(r,new We(i)),c.languages.registerFoldingRangeProvider(r,new Ve(i)),c.languages.registerDocumentSymbolProvider(r,new Ne(i)),c.languages.registerSelectionRangeProvider(r,new ze(i)),c.languages.registerRenameProvider(r,new je(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new He(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new Ue(i)))}function Et(e){const n=[],i=[],r=new Me(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Be(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Xe(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Fe(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new We(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new Ne(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new je(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Ve(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new ze(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new He(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new Ue(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Be(e)}}function Be(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,_t as DefinitionAdapter,mt as DiagnosticsAdapter,kt as DocumentColorAdapter,He as DocumentFormattingEditProvider,Fe as DocumentHighlightAdapter,We as DocumentLinkAdapter,Ue as DocumentRangeFormattingEditProvider,Ne as DocumentSymbolAdapter,Ve as FoldingRangeAdapter,Te as HoverAdapter,wt as ReferenceAdapter,je as RenameAdapter,ze as SelectionRangeAdapter,Me as WorkerManager,C as fromPosition,Se as fromRange,Et as setupMode,bt as setupMode1,_ as toRange,j as toTextEdit}; -//# sourceMappingURL=htmlMode.e7157056.js.map +//# sourceMappingURL=htmlMode.adc6d55e.js.map diff --git a/abstra_statics/dist/assets/index.ec6b7808.js b/abstra_statics/dist/assets/index.063f7c9e.js similarity index 61% rename from abstra_statics/dist/assets/index.ec6b7808.js rename to abstra_statics/dist/assets/index.063f7c9e.js index 2e107e496..a9faffa54 100644 --- a/abstra_statics/dist/assets/index.ec6b7808.js +++ b/abstra_statics/dist/assets/index.063f7c9e.js @@ -1,2 +1,2 @@ -import{d as Q,ah as T,dQ as V,dR as L,f as o,e as O,g as U,aQ as W,b as f,S as m,aR as q,ak as G,cU as h,au as R,bt as j,aM as H,ai as J}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="22064518-154d-4988-8f8e-cdec345446b9",e._sentryDebugIdIdentifier="sentry-dbid-22064518-154d-4988-8f8e-cdec345446b9")}catch{}})();const K={small:8,middle:16,large:24},X=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:R.oneOf(j("horizontal","vertical")).def("horizontal"),align:R.oneOf(j("start","end","center","baseline")),wrap:H()});function Y(e){return typeof e=="string"?K[e]:e||0}const r=Q({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:X(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:x}=T("space",e),[k,B]=V(n),z=L(),s=o(()=>{var t,a,i;return(i=(t=e.size)!==null&&t!==void 0?t:(a=y==null?void 0:y.value)===null||a===void 0?void 0:a.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();U(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(t=>Y(t))},{immediate:!0});const w=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),E=o(()=>J(n.value,B.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:x.value==="rtl",[`${n.value}-align-${w.value}`]:w.value})),F=o(()=>x.value==="rtl"?"marginLeft":"marginRight"),M=o(()=>{const t={};return z.value&&(t.columnGap=`${b.value}px`,t.rowGap=`${u.value}px`),m(m({},t),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var t,a;const{wrap:i,direction:P="horizontal"}=e,_=(t=l.default)===null||t===void 0?void 0:t.call(l),C=W(_),I=C.length;if(I===0)return null;const d=(a=l.split)===null||a===void 0?void 0:a.call(l),A=`${n.value}-item`,D=b.value,S=I-1;return f("div",G(G({},g),{},{class:[E.value,g.class],style:[M.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return z.value||(P==="vertical"?v({prefixCls:String,size:{type:[String,Number,Array]},direction:R.oneOf(j("horizontal","vertical")).def("horizontal"),align:R.oneOf(j("start","end","center","baseline")),wrap:H()});function Y(e){return typeof e=="string"?K[e]:e||0}const r=Q({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:X(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:x}=T("space",e),[k,B]=V(n),z=L(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=y==null?void 0:y.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();U(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>Y(a))},{immediate:!0});const w=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),E=o(()=>J(n.value,B.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:x.value==="rtl",[`${n.value}-align-${w.value}`]:w.value})),F=o(()=>x.value==="rtl"?"marginLeft":"marginRight"),M=o(()=>{const a={};return z.value&&(a.columnGap=`${b.value}px`,a.rowGap=`${u.value}px`),m(m({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:P="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),C=W(_),I=C.length;if(I===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),A=`${n.value}-item`,D=b.value,S=I-1;return f("div",G(G({},g),{},{class:[E.value,g.class],style:[M.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return z.value||(P==="vertical"?v{const{itemPrefixCls:t,component:n,span:o,labelStyle:l,contentStyle:a,bordered:d,label:r,content:s,colon:u}=e,p=n;return d?i(p,{class:[{[`${t}-item-label`]:I(r),[`${t}-item-content`]:I(s)}],colSpan:o},{default:()=>[I(r)&&i("span",{style:l},[r]),I(s)&&i("span",{style:a},[s])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(r||r===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:l},[r]),(s||s===0)&&i("span",{class:`${t}-item-content`,style:a},[s])])]})},R=fe,be=e=>{const t=(u,p,L)=>{let{colon:f,prefixCls:h,bordered:m}=p,{component:y,type:w,showLabel:P,showContent:D,labelStyle:g,contentStyle:S}=L;return u.map((b,C)=>{var $,v;const M=b.props||{},{prefixCls:_=h,span:j=1,labelStyle:O=M["label-style"],contentStyle:H=M["content-style"],label:N=(v=($=b.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=M,W=Y(b),E=Z(b),z=k(b),{key:A}=b;return typeof y=="string"?i(R,{key:`${w}-${String(A)||C}`,class:E,style:z,labelStyle:c(c({},g),O),contentStyle:c(c({},S),H),span:j,colon:f,component:y,itemPrefixCls:_,bordered:m,label:P?N:null,content:D?W:null},null):[i(R,{key:`label-${String(A)||C}`,class:E,style:c(c(c({},g),z),O),span:1,colon:f,component:y[0],itemPrefixCls:_,bordered:m,label:N},null),i(R,{key:`content-${String(A)||C}`,class:E,style:c(c(c({},S),z),H),span:j*2-1,component:y[1],itemPrefixCls:_,bordered:m,content:W},null)]})},{prefixCls:n,vertical:o,row:l,index:a,bordered:d}=e,{labelStyle:r,contentStyle:s}=K(J,{labelStyle:T({}),contentStyle:T({})});return o?i(Q,null,[i("tr",{key:`label-${a}`,class:`${n}-row`},[t(l,e,{component:"th",type:"label",showLabel:!0,labelStyle:r.value,contentStyle:s.value})]),i("tr",{key:`content-${a}`,class:`${n}-row`},[t(l,e,{component:"td",type:"content",showContent:!0,labelStyle:r.value,contentStyle:s.value})])]):i("tr",{key:a,class:`${n}-row`},[t(l,e,{component:d?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:r.value,contentStyle:s.value})])},me=be,ye=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:l,descriptionsBg:a}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:a,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},ge=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:l,descriptionsItemLabelColonMarginLeft:a,descriptionsTitleMarginBottom:d}=e;return{[t]:c(c(c({},le(e)),ye(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:d},[`${t}-title`]:c(c({},ne),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${a}px ${l}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Se=ee("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,l=`${e.paddingXS}px ${e.padding}px`,a=`${e.padding}px ${e.paddingLG}px`,d=`${e.paddingSM}px ${e.paddingLG}px`,r=e.padding,s=e.marginXS,u=e.marginXXS/2,p=te(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:r,descriptionsSmallPadding:l,descriptionsDefaultPadding:a,descriptionsMiddlePadding:d,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[ge(p)]});B.any;const $e=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),ve=V({compatConfig:{MODE:3},name:"ADescriptionsItem",props:$e(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),q={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function xe(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=pe(e,{span:t}),ue()),o}function he(e,t){const n=ce(e),o=[];let l=[],a=t;return n.forEach((d,r)=>{var s;const u=(s=d.props)===null||s===void 0?void 0:s.span,p=u||1;if(r===n.length-1){l.push(U(d,a,u)),o.push(l);return}p({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>q},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),J=Symbol("descriptionsContext"),x=V({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:Ce(),slots:Object,Item:ve,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l,direction:a}=oe("descriptions",e);let d;const r=T({}),[s,u]=Se(l),p=ie();ae(()=>{d=p.value.subscribe(f=>{typeof e.column=="object"&&(r.value=f)})}),se(()=>{p.value.unsubscribe(d)}),re(J,{labelStyle:G(e,"labelStyle"),contentStyle:G(e,"contentStyle")});const L=de(()=>xe(e.column,r.value));return()=>{var f,h,m;const{size:y,bordered:w=!1,layout:P="horizontal",colon:D=!0,title:g=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:S=(h=n.extra)===null||h===void 0?void 0:h.call(n)}=e,b=(m=n.default)===null||m===void 0?void 0:m.call(n),C=he(b,L.value);return s(i("div",F(F({},o),{},{class:[l.value,{[`${l.value}-${y}`]:y!=="default",[`${l.value}-bordered`]:!!w,[`${l.value}-rtl`]:a.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${l.value}-header`},[g&&i("div",{class:`${l.value}-title`},[g]),S&&i("div",{class:`${l.value}-extra`},[S])]),i("div",{class:`${l.value}-view`},[i("table",null,[i("tbody",null,[C.map(($,v)=>i(me,{key:v,index:v,colon:D,prefixCls:l.value,vertical:P==="vertical",bordered:w,row:$},null))])])])]))}}});x.install=function(e){return e.component(x.name,x),e.component(x.Item.name,x.Item),e};const Ie=x;export{Ie as A,ve as D}; -//# sourceMappingURL=index.431b228d.js.map +import{b as i,B as K,e as T,aR as Q,aJ as Y,dE as Z,dF as k,S as c,ac as ee,ad as te,an as ne,ao as le,au as B,d as V,ah as oe,dG as ie,dH as se,aq as ae,V as re,bA as G,f as de,ak as F,aC as ce,dI as X,aE as pe,ay as ue}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e51369d6-8e47-40e2-8209-f759ff5b11d0",e._sentryDebugIdIdentifier="sentry-dbid-e51369d6-8e47-40e2-8209-f759ff5b11d0")}catch{}})();function I(e){return e!=null}const fe=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:l,contentStyle:s,bordered:d,label:r,content:a,colon:u}=e,p=n;return d?i(p,{class:[{[`${t}-item-label`]:I(r),[`${t}-item-content`]:I(a)}],colSpan:o},{default:()=>[I(r)&&i("span",{style:l},[r]),I(a)&&i("span",{style:s},[a])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(r||r===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:l},[r]),(a||a===0)&&i("span",{class:`${t}-item-content`,style:s},[a])])]})},R=fe,be=e=>{const t=(u,p,L)=>{let{colon:f,prefixCls:h,bordered:m}=p,{component:y,type:w,showLabel:P,showContent:D,labelStyle:g,contentStyle:S}=L;return u.map((b,C)=>{var $,v;const M=b.props||{},{prefixCls:_=h,span:j=1,labelStyle:O=M["label-style"],contentStyle:H=M["content-style"],label:N=(v=($=b.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=M,W=Y(b),E=Z(b),z=k(b),{key:A}=b;return typeof y=="string"?i(R,{key:`${w}-${String(A)||C}`,class:E,style:z,labelStyle:c(c({},g),O),contentStyle:c(c({},S),H),span:j,colon:f,component:y,itemPrefixCls:_,bordered:m,label:P?N:null,content:D?W:null},null):[i(R,{key:`label-${String(A)||C}`,class:E,style:c(c(c({},g),z),O),span:1,colon:f,component:y[0],itemPrefixCls:_,bordered:m,label:N},null),i(R,{key:`content-${String(A)||C}`,class:E,style:c(c(c({},S),z),H),span:j*2-1,component:y[1],itemPrefixCls:_,bordered:m,content:W},null)]})},{prefixCls:n,vertical:o,row:l,index:s,bordered:d}=e,{labelStyle:r,contentStyle:a}=K(J,{labelStyle:T({}),contentStyle:T({})});return o?i(Q,null,[i("tr",{key:`label-${s}`,class:`${n}-row`},[t(l,e,{component:"th",type:"label",showLabel:!0,labelStyle:r.value,contentStyle:a.value})]),i("tr",{key:`content-${s}`,class:`${n}-row`},[t(l,e,{component:"td",type:"content",showContent:!0,labelStyle:r.value,contentStyle:a.value})])]):i("tr",{key:s,class:`${n}-row`},[t(l,e,{component:d?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:r.value,contentStyle:a.value})])},me=be,ye=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:l,descriptionsBg:s}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:s,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},ge=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:l,descriptionsItemLabelColonMarginLeft:s,descriptionsTitleMarginBottom:d}=e;return{[t]:c(c(c({},le(e)),ye(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:d},[`${t}-title`]:c(c({},ne),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${s}px ${l}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Se=ee("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,l=`${e.paddingXS}px ${e.padding}px`,s=`${e.padding}px ${e.paddingLG}px`,d=`${e.paddingSM}px ${e.paddingLG}px`,r=e.padding,a=e.marginXS,u=e.marginXXS/2,p=te(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:r,descriptionsSmallPadding:l,descriptionsDefaultPadding:s,descriptionsMiddlePadding:d,descriptionsItemLabelColonMarginRight:a,descriptionsItemLabelColonMarginLeft:u});return[ge(p)]});B.any;const $e=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),ve=V({compatConfig:{MODE:3},name:"ADescriptionsItem",props:$e(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),q={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function xe(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=pe(e,{span:t}),ue()),o}function he(e,t){const n=ce(e),o=[];let l=[],s=t;return n.forEach((d,r)=>{var a;const u=(a=d.props)===null||a===void 0?void 0:a.span,p=u||1;if(r===n.length-1){l.push(U(d,s,u)),o.push(l);return}p({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>q},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),J=Symbol("descriptionsContext"),x=V({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:Ce(),slots:Object,Item:ve,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l,direction:s}=oe("descriptions",e);let d;const r=T({}),[a,u]=Se(l),p=ie();se(()=>{d=p.value.subscribe(f=>{typeof e.column=="object"&&(r.value=f)})}),ae(()=>{p.value.unsubscribe(d)}),re(J,{labelStyle:G(e,"labelStyle"),contentStyle:G(e,"contentStyle")});const L=de(()=>xe(e.column,r.value));return()=>{var f,h,m;const{size:y,bordered:w=!1,layout:P="horizontal",colon:D=!0,title:g=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:S=(h=n.extra)===null||h===void 0?void 0:h.call(n)}=e,b=(m=n.default)===null||m===void 0?void 0:m.call(n),C=he(b,L.value);return a(i("div",F(F({},o),{},{class:[l.value,{[`${l.value}-${y}`]:y!=="default",[`${l.value}-bordered`]:!!w,[`${l.value}-rtl`]:s.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${l.value}-header`},[g&&i("div",{class:`${l.value}-title`},[g]),S&&i("div",{class:`${l.value}-extra`},[S])]),i("div",{class:`${l.value}-view`},[i("table",null,[i("tbody",null,[C.map(($,v)=>i(me,{key:v,index:v,colon:D,prefixCls:l.value,vertical:P==="vertical",bordered:w,row:$},null))])])])]))}}});x.install=function(e){return e.component(x.name,x),e.component(x.Item.name,x.Item),e};const Ie=x;export{Ie as A,ve as D}; +//# sourceMappingURL=index.2c515076.js.map diff --git a/abstra_statics/dist/assets/index.5cb791be.js b/abstra_statics/dist/assets/index.30885e4b.js similarity index 94% rename from abstra_statics/dist/assets/index.5cb791be.js rename to abstra_statics/dist/assets/index.30885e4b.js index 53d3a698f..db8418e95 100644 --- a/abstra_statics/dist/assets/index.5cb791be.js +++ b/abstra_statics/dist/assets/index.30885e4b.js @@ -1,2 +1,2 @@ -import{b as l,aP as $,ac as S,ad as b,d as I,ah as y,f as x,ak as w,au as p,ai as H,dl as _,dn as T,dp as O}from"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="a9f19476-c3be-4026-9b64-e1d0d1cde694",t._sentryDebugIdIdentifier="sentry-dbid-a9f19476-c3be-4026-9b64-e1d0d1cde694")}catch{}})();var V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const P=V;function A(t){for(var n=1;nl("svg",{width:"252",height:"294"},[l("defs",null,[l("path",{d:"M0 .387h251.772v251.772H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .012)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),l("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),l("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),l("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),l("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),l("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),l("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),l("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),l("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),l("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),l("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),l("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),l("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),l("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),l("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),l("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),l("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),l("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),l("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),l("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),l("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),l("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),l("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),l("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),l("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),l("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),l("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),l("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),l("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),l("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),l("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),l("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),l("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),l("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),l("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),l("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),l("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),G=R,L=()=>l("svg",{width:"254",height:"294"},[l("defs",null,[l("path",{d:"M0 .335h253.49v253.49H0z"},null),l("path",{d:"M0 293.665h253.49V.401H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .067)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),l("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),l("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),l("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),l("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),l("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),l("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),l("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),l("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),l("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),l("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),l("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),l("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),l("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),l("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),l("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),l("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),l("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),l("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),l("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),l("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),l("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),l("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),l("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),l("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),l("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),l("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),l("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),l("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),l("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),l("mask",{fill:"#fff"},null),l("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),l("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),l("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),l("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),X=L,U=()=>l("svg",{width:"251",height:"294"},[l("g",{fill:"none","fill-rule":"evenodd"},[l("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),l("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),l("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),l("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),l("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),l("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),l("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),l("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),l("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),l("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),l("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),l("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),l("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),l("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),l("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),l("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),l("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),l("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),l("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),l("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),l("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),l("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),l("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),l("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),l("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),l("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),l("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),l("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),l("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),l("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),l("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),l("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),l("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),l("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),l("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),l("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),q=U,J=t=>{const{componentCls:n,lineHeightHeading3:e,iconCls:o,padding:s,paddingXL:r,paddingXS:i,paddingLG:a,marginXS:u,lineHeight:d}=t;return{[n]:{padding:`${a*2}px ${r}px`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:t.resultIconFontSize}},[`${n} ${n}-title`]:{color:t.colorTextHeading,fontSize:t.resultTitleFontSize,lineHeight:e,marginBlock:u,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:t.colorTextDescription,fontSize:t.resultSubtitleFontSize,lineHeight:d,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:a,padding:`${a}px ${s*2.5}px`,backgroundColor:t.colorFillAlter},[`${n} ${n}-extra`]:{margin:t.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Q=t=>{const{componentCls:n,iconCls:e}=t;return{[`${n}-success ${n}-icon > ${e}`]:{color:t.resultSuccessIconColor},[`${n}-error ${n}-icon > ${e}`]:{color:t.resultErrorIconColor},[`${n}-info ${n}-icon > ${e}`]:{color:t.resultInfoIconColor},[`${n}-warning ${n}-icon > ${e}`]:{color:t.resultWarningIconColor}}},Y=t=>[J(t),Q(t)],Z=t=>Y(t),K=S("Result",t=>{const{paddingLG:n,fontSizeHeading3:e}=t,o=t.fontSize,s=`${n}px 0 0 0`,r=t.colorInfo,i=t.colorError,a=t.colorSuccess,u=t.colorWarning,d=b(t,{resultTitleFontSize:e,resultSubtitleFontSize:o,resultIconFontSize:e*3,resultExtraMargin:s,resultInfoIconColor:r,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:u});return[Z(d)]},{imageWidth:250,imageHeight:295}),l1={success:_,error:T,info:O,warning:N},M={404:G,500:X,403:q},t1=Object.keys(M),n1=()=>({prefixCls:String,icon:p.any,status:{type:[Number,String],default:"info"},title:p.any,subTitle:p.any,extra:p.any}),e1=(t,n)=>{let{status:e,icon:o}=n;if(t1.includes(`${e}`)){const i=M[e];return l("div",{class:`${t}-icon ${t}-image`},[l(i,null,null)])}const s=l1[e],r=o||l(s,null,null);return l("div",{class:`${t}-icon`},[r])},s1=(t,n)=>n&&l("div",{class:`${t}-extra`},[n]),c=I({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:n1(),slots:Object,setup(t,n){let{slots:e,attrs:o}=n;const{prefixCls:s,direction:r}=y("result",t),[i,a]=K(s),u=x(()=>H(s.value,a.value,`${s.value}-${t.status}`,{[`${s.value}-rtl`]:r.value==="rtl"}));return()=>{var d,k,F,f,v,B,g,E;const m=(d=t.title)!==null&&d!==void 0?d:(k=e.title)===null||k===void 0?void 0:k.call(e),D=(F=t.subTitle)!==null&&F!==void 0?F:(f=e.subTitle)===null||f===void 0?void 0:f.call(e),j=(v=t.icon)!==null&&v!==void 0?v:(B=e.icon)===null||B===void 0?void 0:B.call(e),z=(g=t.extra)!==null&&g!==void 0?g:(E=e.extra)===null||E===void 0?void 0:E.call(e),h=s.value;return i(l("div",w(w({},o),{},{class:[u.value,o.class]}),[e1(h,{status:t.status,icon:j}),l("div",{class:`${h}-title`},[m]),D&&l("div",{class:`${h}-subtitle`},[D]),s1(h,z),e.default&&l("div",{class:`${h}-content`},[e.default()])]))}}});c.PRESENTED_IMAGE_403=M[403];c.PRESENTED_IMAGE_404=M[404];c.PRESENTED_IMAGE_500=M[500];c.install=function(t){return t.component(c.name,c),t};const a1=c;export{a1 as A}; -//# sourceMappingURL=index.5cb791be.js.map +import{b as l,aP as $,ac as S,ad as b,d as I,ah as y,f as x,ak as w,au as p,ai as H,dl as _,dn as T,dp as O}from"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="adba3ca5-dcac-44a9-9709-596f98f30881",t._sentryDebugIdIdentifier="sentry-dbid-adba3ca5-dcac-44a9-9709-596f98f30881")}catch{}})();var V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const P=V;function A(t){for(var n=1;nl("svg",{width:"252",height:"294"},[l("defs",null,[l("path",{d:"M0 .387h251.772v251.772H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .012)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),l("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),l("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),l("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),l("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),l("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),l("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),l("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),l("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),l("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),l("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),l("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),l("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),l("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),l("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),l("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),l("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),l("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),l("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),l("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),l("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),l("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),l("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),l("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),l("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),l("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),l("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),l("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),l("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),l("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),l("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),l("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),l("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),l("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),l("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),l("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),l("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),G=R,L=()=>l("svg",{width:"254",height:"294"},[l("defs",null,[l("path",{d:"M0 .335h253.49v253.49H0z"},null),l("path",{d:"M0 293.665h253.49V.401H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .067)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),l("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),l("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),l("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),l("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),l("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),l("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),l("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),l("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),l("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),l("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),l("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),l("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),l("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),l("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),l("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),l("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),l("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),l("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),l("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),l("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),l("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),l("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),l("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),l("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),l("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),l("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),l("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),l("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),l("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),l("mask",{fill:"#fff"},null),l("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),l("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),l("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),l("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),X=L,U=()=>l("svg",{width:"251",height:"294"},[l("g",{fill:"none","fill-rule":"evenodd"},[l("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),l("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),l("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),l("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),l("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),l("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),l("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),l("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),l("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),l("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),l("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),l("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),l("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),l("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),l("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),l("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),l("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),l("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),l("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),l("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),l("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),l("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),l("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),l("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),l("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),l("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),l("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),l("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),l("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),l("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),l("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),l("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),l("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),l("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),l("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),l("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),q=U,J=t=>{const{componentCls:n,lineHeightHeading3:s,iconCls:o,padding:e,paddingXL:r,paddingXS:i,paddingLG:a,marginXS:u,lineHeight:d}=t;return{[n]:{padding:`${a*2}px ${r}px`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:t.resultIconFontSize}},[`${n} ${n}-title`]:{color:t.colorTextHeading,fontSize:t.resultTitleFontSize,lineHeight:s,marginBlock:u,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:t.colorTextDescription,fontSize:t.resultSubtitleFontSize,lineHeight:d,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:a,padding:`${a}px ${e*2.5}px`,backgroundColor:t.colorFillAlter},[`${n} ${n}-extra`]:{margin:t.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Q=t=>{const{componentCls:n,iconCls:s}=t;return{[`${n}-success ${n}-icon > ${s}`]:{color:t.resultSuccessIconColor},[`${n}-error ${n}-icon > ${s}`]:{color:t.resultErrorIconColor},[`${n}-info ${n}-icon > ${s}`]:{color:t.resultInfoIconColor},[`${n}-warning ${n}-icon > ${s}`]:{color:t.resultWarningIconColor}}},Y=t=>[J(t),Q(t)],Z=t=>Y(t),K=S("Result",t=>{const{paddingLG:n,fontSizeHeading3:s}=t,o=t.fontSize,e=`${n}px 0 0 0`,r=t.colorInfo,i=t.colorError,a=t.colorSuccess,u=t.colorWarning,d=b(t,{resultTitleFontSize:s,resultSubtitleFontSize:o,resultIconFontSize:s*3,resultExtraMargin:e,resultInfoIconColor:r,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:u});return[Z(d)]},{imageWidth:250,imageHeight:295}),l1={success:_,error:T,info:O,warning:N},M={404:G,500:X,403:q},t1=Object.keys(M),n1=()=>({prefixCls:String,icon:p.any,status:{type:[Number,String],default:"info"},title:p.any,subTitle:p.any,extra:p.any}),s1=(t,n)=>{let{status:s,icon:o}=n;if(t1.includes(`${s}`)){const i=M[s];return l("div",{class:`${t}-icon ${t}-image`},[l(i,null,null)])}const e=l1[s],r=o||l(e,null,null);return l("div",{class:`${t}-icon`},[r])},e1=(t,n)=>n&&l("div",{class:`${t}-extra`},[n]),c=I({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:n1(),slots:Object,setup(t,n){let{slots:s,attrs:o}=n;const{prefixCls:e,direction:r}=y("result",t),[i,a]=K(e),u=x(()=>H(e.value,a.value,`${e.value}-${t.status}`,{[`${e.value}-rtl`]:r.value==="rtl"}));return()=>{var d,k,F,f,v,B,g,E;const m=(d=t.title)!==null&&d!==void 0?d:(k=s.title)===null||k===void 0?void 0:k.call(s),D=(F=t.subTitle)!==null&&F!==void 0?F:(f=s.subTitle)===null||f===void 0?void 0:f.call(s),j=(v=t.icon)!==null&&v!==void 0?v:(B=s.icon)===null||B===void 0?void 0:B.call(s),z=(g=t.extra)!==null&&g!==void 0?g:(E=s.extra)===null||E===void 0?void 0:E.call(s),h=e.value;return i(l("div",w(w({},o),{},{class:[u.value,o.class]}),[s1(h,{status:t.status,icon:j}),l("div",{class:`${h}-title`},[m]),D&&l("div",{class:`${h}-subtitle`},[D]),e1(h,z),s.default&&l("div",{class:`${h}-content`},[s.default()])]))}}});c.PRESENTED_IMAGE_403=M[403];c.PRESENTED_IMAGE_404=M[404];c.PRESENTED_IMAGE_500=M[500];c.install=function(t){return t.component(c.name,c),t};const a1=c;export{a1 as A}; +//# sourceMappingURL=index.30885e4b.js.map diff --git a/abstra_statics/dist/assets/index.3f22f3b8.js b/abstra_statics/dist/assets/index.3f22f3b8.js deleted file mode 100644 index 47b2f5a43..000000000 --- a/abstra_statics/dist/assets/index.3f22f3b8.js +++ /dev/null @@ -1,2 +0,0 @@ -import{eN as t,eO as d}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9969fdcd-b559-4c57-987b-3f2f7475a07d",e._sentryDebugIdIdentifier="sentry-dbid-9969fdcd-b559-4c57-987b-3f2f7475a07d")}catch{}})();function o(e,n){return t(1,arguments),d(e,Date.now(),n)}export{o as f}; -//# sourceMappingURL=index.3f22f3b8.js.map diff --git a/abstra_statics/dist/assets/index.40c3f00c.js b/abstra_statics/dist/assets/index.40c3f00c.js deleted file mode 100644 index 0378b0053..000000000 --- a/abstra_statics/dist/assets/index.40c3f00c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{B as n,R as f}from"./Badge.49622b8e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="966f33a3-7d02-4701-8f9f-4f6d92011a35",e._sentryDebugIdIdentifier="sentry-dbid-966f33a3-7d02-4701-8f9f-4f6d92011a35")}catch{}})();n.install=function(e){return e.component(n.name,n),e.component(f.name,f),e}; -//# sourceMappingURL=index.40c3f00c.js.map diff --git a/abstra_statics/dist/assets/index.e5bdb21b.js b/abstra_statics/dist/assets/index.4fbbd10e.js similarity index 80% rename from abstra_statics/dist/assets/index.e5bdb21b.js rename to abstra_statics/dist/assets/index.4fbbd10e.js index 3e0ea4b39..7e66520c6 100644 --- a/abstra_statics/dist/assets/index.e5bdb21b.js +++ b/abstra_statics/dist/assets/index.4fbbd10e.js @@ -1,4 +1,4 @@ -import{ac as Y,ad as Z,S as _,ao as J,ae as K,bt as U,d as ee,ah as oe,Q as w,f as ne,ai as te,b as s,a$ as le,az as ie,aE as ae,aX as se,aZ as re,a_ as ce,ak as R,aY as de,dl as ue,dm as ge,dn as fe,dp as pe,dq as me,dr as ve,ds as $e,dt as ye,au as v}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="605baf6b-bc04-4bdb-b44a-8ecaca85831e",e._sentryDebugIdIdentifier="sentry-dbid-605baf6b-bc04-4bdb-b44a-8ecaca85831e")}catch{}})();const B=(e,o,n,i,a)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${o}`,[`${a}-icon`]:{color:n}}),be=e=>{const{componentCls:o,motionDurationSlow:n,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:r,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:y,paddingMD:h,paddingContentHorizontalLG:C}=e;return{[o]:_(_({},J(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${m}px ${y}px`,wordWrap:"break-word",borderRadius:$,[`&${o}-rtl`]:{direction:"rtl"},[`${o}-content`]:{flex:1,minWidth:0},[`${o}-icon`]:{marginInlineEnd:i,lineHeight:0},["&-description"]:{display:"none",fontSize:u,lineHeight:g},"&-message":{color:p},[`&${o}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, +import{ac as Y,ad as Z,S as _,ao as J,ae as K,bt as U,d as ee,ah as oe,Q as w,f as ne,ai as te,b as s,a$ as le,az as ie,aE as ae,aX as se,aZ as re,a_ as ce,ak as R,aY as de,dl as ue,dm as ge,dn as fe,dp as pe,dq as me,dr as ve,ds as $e,dt as ye,au as v}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="05d39874-73b4-41cd-95ae-e46af687bcfd",e._sentryDebugIdIdentifier="sentry-dbid-05d39874-73b4-41cd-95ae-e46af687bcfd")}catch{}})();const B=(e,o,n,i,a)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${o}`,[`${a}-icon`]:{color:n}}),he=e=>{const{componentCls:o,motionDurationSlow:n,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:r,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:y,paddingMD:b,paddingContentHorizontalLG:C}=e;return{[o]:_(_({},J(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${m}px ${y}px`,wordWrap:"break-word",borderRadius:$,[`&${o}-rtl`]:{direction:"rtl"},[`${o}-content`]:{flex:1,minWidth:0},[`${o}-icon`]:{marginInlineEnd:i,lineHeight:0},["&-description"]:{display:"none",fontSize:u,lineHeight:g},"&-message":{color:p},[`&${o}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${o}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${o}-with-description`]:{alignItems:"flex-start",paddingInline:C,paddingBlock:h,[`${o}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${o}-message`]:{display:"block",marginBottom:i,color:p,fontSize:r},[`${o}-description`]:{display:"block"}},[`${o}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},he=e=>{const{componentCls:o,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:r,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:m,colorInfoBg:y}=e;return{[o]:{"&-success":B(a,i,n,e,o),"&-info":B(y,m,p,e,o),"&-warning":B(g,r,u,e,o),"&-error":_(_({},B(d,c,$,e,o)),{[`${o}-description > pre`]:{margin:0,padding:0}})}}},Ce=e=>{const{componentCls:o,iconCls:n,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:r,colorIconHover:g}=e;return{[o]:{["&-action"]:{marginInlineStart:a},[`${o}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:r,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:r,transition:`color ${i}`,"&:hover":{color:g}}}}},Ie=e=>[be(e),he(e),Ce(e)],Se=Y("Alert",e=>{const{fontSizeHeading3:o}=e,n=Z(e,{alertIconSizeLG:o,alertPaddingHorizontal:12});return[Ie(n)]}),xe={success:ue,info:ge,error:fe,warning:pe},we={success:me,info:ve,error:$e,warning:ye},Be=U("success","info","warning","error"),_e=()=>({type:v.oneOf(Be),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),He=ee({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:_e(),setup(e,o){let{slots:n,emit:i,attrs:a,expose:u}=o;const{prefixCls:r,direction:g}=oe("alert",e),[$,c]=Se(r),d=w(!1),p=w(!1),m=w(),y=l=>{l.preventDefault();const f=m.value;f.style.height=`${f.offsetHeight}px`,f.style.height=`${f.offsetHeight}px`,d.value=!0,i("close",l)},h=()=>{var l;d.value=!1,p.value=!0,(l=e.afterClose)===null||l===void 0||l.call(e)},C=ne(()=>{const{type:l}=e;return l!==void 0?l:e.banner?"warning":"info"});u({animationEnd:h});const N=w({});return()=>{var l,f,H,T,E,z,A,D,O,L;const{banner:P,closeIcon:W=(l=n.closeIcon)===null||l===void 0?void 0:l.call(n)}=e;let{closable:F,showIcon:b}=e;const M=(f=e.closeText)!==null&&f!==void 0?f:(H=n.closeText)===null||H===void 0?void 0:H.call(n),I=(T=e.description)!==null&&T!==void 0?T:(E=n.description)===null||E===void 0?void 0:E.call(n),k=(z=e.message)!==null&&z!==void 0?z:(A=n.message)===null||A===void 0?void 0:A.call(n),S=(D=e.icon)!==null&&D!==void 0?D:(O=n.icon)===null||O===void 0?void 0:O.call(n),G=(L=n.action)===null||L===void 0?void 0:L.call(n);b=P&&b===void 0?!0:b;const V=(I?we:xe)[C.value]||null;M&&(F=!0);const t=r.value,j=te(t,{[`${t}-${C.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!I,[`${t}-no-icon`]:!b,[`${t}-banner`]:!!P,[`${t}-closable`]:F,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),X=F?s("button",{type:"button",onClick:y,class:`${t}-close-icon`,tabindex:0},[M?s("span",{class:`${t}-close-text`},[M]):W===void 0?s(le,null,null):W]):null,q=S&&(ie(S)?ae(S,{class:`${t}-icon`}):s("span",{class:`${t}-icon`},[S]))||s(V,{class:`${t}-icon`},null),Q=se(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:h,onBeforeLeave:x=>{x.style.maxHeight=`${x.offsetHeight}px`},onLeave:x=>{x.style.maxHeight="0px"}});return $(p.value?null:s(de,Q,{default:()=>[re(s("div",R(R({role:"alert"},a),{},{style:[a.style,N.value],class:[a.class,j],"data-show":!d.value,ref:m}),[b?q:null,s("div",{class:`${t}-content`},[k?s("div",{class:`${t}-message`},[k]):null,I?s("div",{class:`${t}-description`},[I]):null]),G?s("div",{class:`${t}-action`},[G]):null,X]),[[ce,!d.value]])]}))}}}),Ee=K(He);export{Ee as A}; -//# sourceMappingURL=index.e5bdb21b.js.map + margin-bottom ${n} ${c}`},[`&${o}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${o}-with-description`]:{alignItems:"flex-start",paddingInline:C,paddingBlock:b,[`${o}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${o}-message`]:{display:"block",marginBottom:i,color:p,fontSize:r},[`${o}-description`]:{display:"block"}},[`${o}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},be=e=>{const{componentCls:o,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:r,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:m,colorInfoBg:y}=e;return{[o]:{"&-success":B(a,i,n,e,o),"&-info":B(y,m,p,e,o),"&-warning":B(g,r,u,e,o),"&-error":_(_({},B(d,c,$,e,o)),{[`${o}-description > pre`]:{margin:0,padding:0}})}}},Ce=e=>{const{componentCls:o,iconCls:n,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:r,colorIconHover:g}=e;return{[o]:{["&-action"]:{marginInlineStart:a},[`${o}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:r,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:r,transition:`color ${i}`,"&:hover":{color:g}}}}},Ie=e=>[he(e),be(e),Ce(e)],Se=Y("Alert",e=>{const{fontSizeHeading3:o}=e,n=Z(e,{alertIconSizeLG:o,alertPaddingHorizontal:12});return[Ie(n)]}),xe={success:ue,info:ge,error:fe,warning:pe},we={success:me,info:ve,error:$e,warning:ye},Be=U("success","info","warning","error"),_e=()=>({type:v.oneOf(Be),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),He=ee({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:_e(),setup(e,o){let{slots:n,emit:i,attrs:a,expose:u}=o;const{prefixCls:r,direction:g}=oe("alert",e),[$,c]=Se(r),d=w(!1),p=w(!1),m=w(),y=l=>{l.preventDefault();const f=m.value;f.style.height=`${f.offsetHeight}px`,f.style.height=`${f.offsetHeight}px`,d.value=!0,i("close",l)},b=()=>{var l;d.value=!1,p.value=!0,(l=e.afterClose)===null||l===void 0||l.call(e)},C=ne(()=>{const{type:l}=e;return l!==void 0?l:e.banner?"warning":"info"});u({animationEnd:b});const N=w({});return()=>{var l,f,H,T,E,z,A,D,O,L;const{banner:P,closeIcon:W=(l=n.closeIcon)===null||l===void 0?void 0:l.call(n)}=e;let{closable:F,showIcon:h}=e;const M=(f=e.closeText)!==null&&f!==void 0?f:(H=n.closeText)===null||H===void 0?void 0:H.call(n),I=(T=e.description)!==null&&T!==void 0?T:(E=n.description)===null||E===void 0?void 0:E.call(n),k=(z=e.message)!==null&&z!==void 0?z:(A=n.message)===null||A===void 0?void 0:A.call(n),S=(D=e.icon)!==null&&D!==void 0?D:(O=n.icon)===null||O===void 0?void 0:O.call(n),G=(L=n.action)===null||L===void 0?void 0:L.call(n);h=P&&h===void 0?!0:h;const V=(I?we:xe)[C.value]||null;M&&(F=!0);const t=r.value,j=te(t,{[`${t}-${C.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!I,[`${t}-no-icon`]:!h,[`${t}-banner`]:!!P,[`${t}-closable`]:F,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),X=F?s("button",{type:"button",onClick:y,class:`${t}-close-icon`,tabindex:0},[M?s("span",{class:`${t}-close-text`},[M]):W===void 0?s(le,null,null):W]):null,q=S&&(ie(S)?ae(S,{class:`${t}-icon`}):s("span",{class:`${t}-icon`},[S]))||s(V,{class:`${t}-icon`},null),Q=se(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:b,onBeforeLeave:x=>{x.style.maxHeight=`${x.offsetHeight}px`},onLeave:x=>{x.style.maxHeight="0px"}});return $(p.value?null:s(de,Q,{default:()=>[re(s("div",R(R({role:"alert"},a),{},{style:[a.style,N.value],class:[a.class,j],"data-show":!d.value,ref:m}),[h?q:null,s("div",{class:`${t}-content`},[k?s("div",{class:`${t}-message`},[k]):null,I?s("div",{class:`${t}-description`},[I]):null]),G?s("div",{class:`${t}-action`},[G]):null,X]),[[ce,!d.value]])]}))}}}),Ee=K(He);export{Ee as A}; +//# sourceMappingURL=index.4fbbd10e.js.map diff --git a/abstra_statics/dist/assets/index.c2d72be7.js b/abstra_statics/dist/assets/index.5ccdbcb7.js similarity index 96% rename from abstra_statics/dist/assets/index.c2d72be7.js rename to abstra_statics/dist/assets/index.5ccdbcb7.js index 77addc837..6e145c9db 100644 --- a/abstra_statics/dist/assets/index.c2d72be7.js +++ b/abstra_statics/dist/assets/index.5ccdbcb7.js @@ -1,5 +1,5 @@ -import{d as M,ah as D,bT as j,b as o,ak as v,au as z,as as re,du as ie,bn as se,bQ as ce,ac as ae,ad as te,S as C,dv as de,ao as ne,aC as Q,ay as ue,dw as ge,by as be,aP as le,dx as me,an as Z,ae as pe,Q as fe,dy as ve,f as he,ai as ye,al as Se,bE as T,aQ as Oe,dz as $e,bL as Ce,bO as _e}from"./vue-router.4c13f3d4.js";import"./index.b16edfcc.js";import{A as we}from"./index.ec6b7808.js";import{A as xe}from"./Avatar.6f67d038.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8e79c272-923b-489b-82b3-70258cbcf56f",e._sentryDebugIdIdentifier="sentry-dbid-8e79c272-923b-489b-82b3-70258cbcf56f")}catch{}})();var He=globalThis&&globalThis.__rest||function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n({prefixCls:String,href:String,separator:z.any,dropdownProps:re(),overlay:z.any,onClick:ie()}),L=M({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Pe(),slots:Object,setup(e,a){let{slots:t,attrs:r,emit:n}=a;const{prefixCls:s}=D("breadcrumb",e),h=(b,f)=>{const p=j(t,e,"overlay");return p?o(ce,v(v({},e.dropdownProps),{},{overlay:p,placement:"bottom"}),{default:()=>[o("span",{class:`${f}-overlay-link`},[b,o(se,null,null)])]}):b},y=b=>{n("click",b)};return()=>{var b;const f=(b=j(t,e,"separator"))!==null&&b!==void 0?b:"/",p=j(t,e),{class:u,style:g}=r,d=He(r,["class","style"]);let m;return e.href!==void 0?m=o("a",v({class:`${s.value}-link`,onClick:y},d),[p]):m=o("span",v({class:`${s.value}-link`,onClick:y},d),[p]),m=h(m,s.value),p!=null?o("li",{class:u,style:g},[m,f&&o("span",{class:`${s.value}-separator`},[f])]):null}}}),Te=e=>{const{componentCls:a,iconCls:t}=e;return{[a]:C(C({},ne(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[t]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:C({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},de(e)),["li:last-child"]:{color:e.breadcrumbLastItemColor,[`& > ${a}-separator`]:{display:"none"}},[`${a}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${a}-link`]:{[` +import{d as M,ah as D,bT as j,b as o,ak as v,au as z,as as re,du as ie,bn as se,bQ as ce,ac as ae,ad as te,S as C,dv as de,ao as ne,aC as Q,ay as ue,dw as ge,by as be,aP as le,dx as me,an as Z,ae as pe,Q as fe,dy as ve,f as he,ai as ye,al as Se,bE as T,aQ as Oe,dz as $e,bL as Ce,bO as _e}from"./vue-router.3fd92176.js";import"./index.66903cf4.js";import{A as we}from"./index.063f7c9e.js";import{A as xe}from"./Avatar.2107fa31.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ea573bf4-647d-4e8b-8944-52c215140ffd",e._sentryDebugIdIdentifier="sentry-dbid-ea573bf4-647d-4e8b-8944-52c215140ffd")}catch{}})();var He=globalThis&&globalThis.__rest||function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n({prefixCls:String,href:String,separator:z.any,dropdownProps:re(),overlay:z.any,onClick:ie()}),L=M({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Pe(),slots:Object,setup(e,a){let{slots:t,attrs:r,emit:n}=a;const{prefixCls:s}=D("breadcrumb",e),h=(b,f)=>{const p=j(t,e,"overlay");return p?o(ce,v(v({},e.dropdownProps),{},{overlay:p,placement:"bottom"}),{default:()=>[o("span",{class:`${f}-overlay-link`},[b,o(se,null,null)])]}):b},y=b=>{n("click",b)};return()=>{var b;const f=(b=j(t,e,"separator"))!==null&&b!==void 0?b:"/",p=j(t,e),{class:u,style:g}=r,d=He(r,["class","style"]);let m;return e.href!==void 0?m=o("a",v({class:`${s.value}-link`,onClick:y},d),[p]):m=o("span",v({class:`${s.value}-link`,onClick:y},d),[p]),m=h(m,s.value),p!=null?o("li",{class:u,style:g},[m,f&&o("span",{class:`${s.value}-separator`},[f])]):null}}}),Te=e=>{const{componentCls:a,iconCls:t}=e;return{[a]:C(C({},ne(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[t]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:C({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},de(e)),["li:last-child"]:{color:e.breadcrumbLastItemColor,[`& > ${a}-separator`]:{display:"none"}},[`${a}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${a}-link`]:{[` > ${t} + span, > ${t} + a `]:{marginInlineStart:e.marginXXS}},[`${a}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Ae=ae("Breadcrumb",e=>{const a=te(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[Te(a)]}),Be=()=>({prefixCls:String,routes:{type:Array},params:z.any,separator:z.any,itemRender:{type:Function}});function Re(e,a){if(!e.breadcrumbName)return null;const t=Object.keys(a).join("|");return e.breadcrumbName.replace(new RegExp(`:(${t})`,"g"),(n,s)=>a[s]||n)}function K(e){const{route:a,params:t,routes:r,paths:n}=e,s=r.indexOf(a)===r.length-1,h=Re(a,t);return s?o("span",null,[h]):o("a",{href:`#/${n.join("/")}`},[h])}const A=M({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:Be(),slots:Object,setup(e,a){let{slots:t,attrs:r}=a;const{prefixCls:n,direction:s}=D("breadcrumb",e),[h,y]=Ae(n),b=(u,g)=>(u=(u||"").replace(/^\//,""),Object.keys(g).forEach(d=>{u=u.replace(`:${d}`,g[d])}),u),f=(u,g,d)=>{const m=[...u],S=b(g||"",d);return S&&m.push(S),m},p=u=>{let{routes:g=[],params:d={},separator:m,itemRender:S=K}=u;const _=[];return g.map(O=>{const w=b(O.path,d);w&&_.push(w);const $=[..._];let l=null;O.children&&O.children.length&&(l=o(be,{items:O.children.map(c=>({key:c.path||c.breadcrumbName,label:S({route:c,params:d,routes:g,paths:f($,c.path,d)})}))},null));const i={separator:m};return l&&(i.overlay=l),o(L,v(v({},i),{},{key:w||O.breadcrumbName}),{default:()=>[S({route:O,params:d,routes:g,paths:$})]})})};return()=>{var u;let g;const{routes:d,params:m={}}=e,S=Q(j(t,e)),_=(u=j(t,e,"separator"))!==null&&u!==void 0?u:"/",O=e.itemRender||t.itemRender||K;d&&d.length>0?g=p({routes:d,params:m,separator:_,itemRender:O}):S.length&&(g=S.map(($,l)=>(ue(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),ge($,{separator:_,key:l}))));const w={[n.value]:!0,[`${n.value}-rtl`]:s.value==="rtl",[`${r.class}`]:!!r.class,[y.value]:!0};return h(o("nav",v(v({},r),{},{class:w}),[o("ol",null,[g])]))}}});var Ie=globalThis&&globalThis.__rest||function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n({prefixCls:String}),U=M({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:je(),setup(e,a){let{slots:t,attrs:r}=a;const{prefixCls:n}=D("breadcrumb",e);return()=>{var s;const{separator:h,class:y}=r,b=Ie(r,["separator","class"]),f=Q((s=t.default)===null||s===void 0?void 0:s.call(t));return o("span",v({class:[`${n.value}-separator`,y]},b),[f.length>0?f:"/"])}}});A.Item=L;A.Separator=U;A.install=function(e){return e.component(A.name,A),e.component(L.name,L),e.component(U.name,U),e};var ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const Le=ze;function k(e){for(var a=1;a{const{componentCls:a,antCls:t}=e;return{[a]:C(C({},ne(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${a}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},["&.has-footer"]:{paddingBottom:0},[`${a}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,["&-button"]:C(C({},me(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${t}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${t}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${a}-heading`]:{display:"flex",justifyContent:"space-between",["&-left"]:{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},["&-title"]:C({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Z),[`${t}-avatar`]:{marginRight:e.marginSM},["&-sub-title"]:C({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Z),["&-extra"]:{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap",["> *"]:{marginLeft:e.marginSM,whiteSpace:"unset"},["> *:first-child"]:{marginLeft:0}}},[`${a}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${a}-footer`]:{marginTop:e.marginMD,[`${t}-tabs`]:{[`> ${t}-tabs-nav`]:{margin:0,["&::before"]:{border:"none"}},[`${t}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${a}-compact ${a}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Ge=ae("PageHeader",e=>{const a=te(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[Ve(a)]}),Ue=()=>({backIcon:T(),prefixCls:String,title:T(),subTitle:T(),breadcrumb:z.object,tags:T(),footer:T(),extra:T(),avatar:re(),ghost:{type:Boolean,default:void 0},onBack:Function}),Qe=M({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:Ue(),slots:Object,setup(e,a){let{emit:t,slots:r,attrs:n}=a;const{prefixCls:s,direction:h,pageHeader:y}=D("page-header",e),[b,f]=Ge(s),p=fe(!1),u=ve(),g=l=>{let{width:i}=l;u.value||(p.value=i<768)},d=he(()=>{var l,i,c;return(c=(l=e.ghost)!==null&&l!==void 0?l:(i=y==null?void 0:y.value)===null||i===void 0?void 0:i.ghost)!==null&&c!==void 0?c:!0}),m=()=>{var l,i,c;return(c=(l=e.backIcon)!==null&&l!==void 0?l:(i=r.backIcon)===null||i===void 0?void 0:i.call(r))!==null&&c!==void 0?c:h.value==="rtl"?o(Fe,null,null):o(De,null,null)},S=l=>!l||!e.onBack?null:o(_e,{componentName:"PageHeader",children:i=>{let{back:c}=i;return o("div",{class:`${s.value}-back`},[o(Ce,{onClick:x=>{t("back",x)},class:`${s.value}-back-button`,"aria-label":c},{default:()=>[l]})])}},null),_=()=>{var l;return e.breadcrumb?o(A,e.breadcrumb,null):(l=r.breadcrumb)===null||l===void 0?void 0:l.call(r)},O=()=>{var l,i,c,x,H,B,E,N,X;const{avatar:F}=e,R=(l=e.title)!==null&&l!==void 0?l:(i=r.title)===null||i===void 0?void 0:i.call(r),I=(c=e.subTitle)!==null&&c!==void 0?c:(x=r.subTitle)===null||x===void 0?void 0:x.call(r),V=(H=e.tags)!==null&&H!==void 0?H:(B=r.tags)===null||B===void 0?void 0:B.call(r),G=(E=e.extra)!==null&&E!==void 0?E:(N=r.extra)===null||N===void 0?void 0:N.call(r),P=`${s.value}-heading`,J=R||I||V||G;if(!J)return null;const oe=m(),Y=S(oe);return o("div",{class:P},[(Y||F||J)&&o("div",{class:`${P}-left`},[Y,F?o(xe,F,null):(X=r.avatar)===null||X===void 0?void 0:X.call(r),R&&o("span",{class:`${P}-title`,title:typeof R=="string"?R:void 0},[R]),I&&o("span",{class:`${P}-sub-title`,title:typeof I=="string"?I:void 0},[I]),V&&o("span",{class:`${P}-tags`},[V])]),G&&o("span",{class:`${P}-extra`},[o(we,null,{default:()=>[G]})])])},w=()=>{var l,i;const c=(l=e.footer)!==null&&l!==void 0?l:Oe((i=r.footer)===null||i===void 0?void 0:i.call(r));return $e(c)?null:o("div",{class:`${s.value}-footer`},[c])},$=l=>o("div",{class:`${s.value}-content`},[l]);return()=>{var l,i;const c=((l=e.breadcrumb)===null||l===void 0?void 0:l.routes)||r.breadcrumb,x=e.footer||r.footer,H=Q((i=r.default)===null||i===void 0?void 0:i.call(r)),B=ye(s.value,{"has-breadcrumb":c,"has-footer":x,[`${s.value}-ghost`]:d.value,[`${s.value}-rtl`]:h.value==="rtl",[`${s.value}-compact`]:p.value},n.class,f.value);return b(o(Se,{onResize:g},{default:()=>[o("div",v(v({},n),{},{class:B}),[_(),O(),H.length?$(H):null,w()])]}))}}}),Ke=pe(Qe);export{L as A,A as B,U as a,Ke as b}; -//# sourceMappingURL=index.c2d72be7.js.map +//# sourceMappingURL=index.5ccdbcb7.js.map diff --git a/abstra_statics/dist/assets/index.61e7dffa.js b/abstra_statics/dist/assets/index.61e7dffa.js new file mode 100644 index 000000000..55fa73d1c --- /dev/null +++ b/abstra_statics/dist/assets/index.61e7dffa.js @@ -0,0 +1,2 @@ +import{eN as t,eO as r}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9b224b24-c8cd-4b71-b593-b9d69508c82c",e._sentryDebugIdIdentifier="sentry-dbid-9b224b24-c8cd-4b71-b593-b9d69508c82c")}catch{}})();function s(e,n){return t(1,arguments),r(e,Date.now(),n)}export{s as f}; +//# sourceMappingURL=index.61e7dffa.js.map diff --git a/abstra_statics/dist/assets/index.b16edfcc.js b/abstra_statics/dist/assets/index.66903cf4.js similarity index 55% rename from abstra_statics/dist/assets/index.b16edfcc.js rename to abstra_statics/dist/assets/index.66903cf4.js index 206c44e73..627a67d1b 100644 --- a/abstra_statics/dist/assets/index.b16edfcc.js +++ b/abstra_statics/dist/assets/index.66903cf4.js @@ -1,2 +1,2 @@ -import{u as w,A as r,a as A}from"./Avatar.6f67d038.js";import{d as I,ah as $,f as k,aK as D,bT as E,aC as G,aE as N,b as l,cN as _,ak as c}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="abc91303-954f-4178-abff-b71fce7116af",e._sentryDebugIdIdentifier="sentry-dbid-abc91303-954f-4178-abff-b71fce7116af")}catch{}})();const j=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),O=I({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:j(),setup(e,n){let{slots:m,attrs:t}=n;const{prefixCls:y,direction:h}=$("avatar",e),i=k(()=>`${y.value}-group`),[v,b]=w(y);return D(()=>{const u={size:e.size,shape:e.shape};A(u)}),()=>{const{maxPopoverPlacement:u="top",maxCount:a,maxStyle:x,maxPopoverTrigger:C="hover",shape:S}=e,g={[i.value]:!0,[`${i.value}-rtl`]:h.value==="rtl",[`${t.class}`]:!!t.class,[b.value]:!0},P=E(m,e),s=G(P).map((o,d)=>N(o,{key:`avatar-key-${d}`})),f=s.length;if(a&&a[l(r,{style:x,shape:S},{default:()=>[`+${f-a}`]})]})),v(l("div",c(c({},t),{},{class:g,style:t.style}),[o]))}return v(l("div",c(c({},t),{},{class:g,style:t.style}),[s]))}}}),p=O;r.Group=p;r.install=function(e){return e.component(r.name,r),e.component(p.name,p),e};export{p as G}; -//# sourceMappingURL=index.b16edfcc.js.map +import{u as w,A as r,a as A}from"./Avatar.2107fa31.js";import{d as I,ah as $,f as k,aK as D,bT as E,aC as G,aE as N,b as l,cN as _,ak as c}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="82a420b9-c758-4252-ada7-f415d4a1b968",e._sentryDebugIdIdentifier="sentry-dbid-82a420b9-c758-4252-ada7-f415d4a1b968")}catch{}})();const j=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),O=I({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:j(),setup(e,n){let{slots:m,attrs:t}=n;const{prefixCls:y,direction:h}=$("avatar",e),i=k(()=>`${y.value}-group`),[v,b]=w(y);return D(()=>{const u={size:e.size,shape:e.shape};A(u)}),()=>{const{maxPopoverPlacement:u="top",maxCount:a,maxStyle:x,maxPopoverTrigger:C="hover",shape:S}=e,g={[i.value]:!0,[`${i.value}-rtl`]:h.value==="rtl",[`${t.class}`]:!!t.class,[b.value]:!0},P=E(m,e),s=G(P).map((o,p)=>N(o,{key:`avatar-key-${p}`})),d=s.length;if(a&&a[l(r,{style:x,shape:S},{default:()=>[`+${d-a}`]})]})),v(l("div",c(c({},t),{},{class:g,style:t.style}),[o]))}return v(l("div",c(c({},t),{},{class:g,style:t.style}),[s]))}}}),f=O;r.Group=f;r.install=function(e){return e.component(r.name,r),e.component(f.name,f),e};export{f as G}; +//# sourceMappingURL=index.66903cf4.js.map diff --git a/abstra_statics/dist/assets/index.7ab41b83.js b/abstra_statics/dist/assets/index.78793691.js similarity index 98% rename from abstra_statics/dist/assets/index.7ab41b83.js rename to abstra_statics/dist/assets/index.78793691.js index 28b0e268c..c261ac32f 100644 --- a/abstra_statics/dist/assets/index.7ab41b83.js +++ b/abstra_statics/dist/assets/index.78793691.js @@ -1,5 +1,5 @@ -import{f as b,bZ as Ne,S as k,Q as ke,e as q,aK as ve,az as Me,aE as Fe,V as je,B as We,bU as be,cj as He,g as _e,b7 as Q,b as E,d as Se,W as Be,ak as J,ap as Ae,b$ as ze,bA as de,aW as Ie,c0 as Xe,K as Ue,c3 as qe,b_ as me,aj as ye,as as Ge,au as Ce,c4 as Qe,ac as Ye,c6 as Ze,an as Je,b9 as et,ae as tt,bi as nt,bj as lt,ah as at,bk as ot,bl as st,c8 as it,bv as ct,bu as rt,dA as ut,c9 as dt,bm as vt,dB as Oe,cb as pt,bq as ht,ai as ft}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f04edb89-3ab1-434d-856e-0b48afaf98f2",e._sentryDebugIdIdentifier="sentry-dbid-f04edb89-3ab1-434d-856e-0b48afaf98f2")}catch{}})();const we="__RC_CASCADER_SPLIT__",De="SHOW_PARENT",$e="SHOW_CHILD";function ee(e){return e.join(we)}function oe(e){return e.map(ee)}function gt(e){return e.split(we)}function mt(e){const{label:n,value:t,children:a}=e||{},l=t||"value";return{label:n||"label",value:l,key:l,children:a||"children"}}function ie(e,n){var t,a;return(t=e.isLeaf)!==null&&t!==void 0?t:!(!((a=e[n.children])===null||a===void 0)&&a.length)}function Ct(e){const n=e.parentElement;if(!n)return;const t=e.offsetTop-n.offsetTop;t-n.scrollTop<0?n.scrollTo({top:t}):t+e.offsetHeight-n.scrollTop>n.offsetHeight&&n.scrollTo({top:t+e.offsetHeight-n.offsetHeight})}const bt=(e,n)=>b(()=>Ne(e.value,{fieldNames:n.value,initWrapper:a=>k(k({},a),{pathKeyEntities:{}}),processEntity:(a,l)=>{const i=a.nodes.map(r=>r[n.value.value]).join(we);l.pathKeyEntities[i]=a,a.key=i}}).pathKeyEntities);function St(e){const n=ke(!1),t=q({});return ve(()=>{if(!e.value){n.value=!1,t.value={};return}let a={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(a=k(k({},a),e.value)),a.limit<=0&&delete a.limit,n.value=!0,t.value=a}),{showSearch:n,searchConfig:t}}const ce="__rc_cascader_search_mark__",yt=(e,n,t)=>{let{label:a}=t;return n.some(l=>String(l[a]).toLowerCase().includes(e.toLowerCase()))},wt=e=>{let{path:n,fieldNames:t}=e;return n.map(a=>a[t.label]).join(" / ")},xt=(e,n,t,a,l,i)=>b(()=>{const{filter:r=yt,render:d=wt,limit:v=50,sort:c}=l.value,o=[];if(!e.value)return[];function C(O,y){O.forEach($=>{if(!c&&v>0&&o.length>=v)return;const g=[...y,$],w=$[t.value.children];(!w||w.length===0||i.value)&&r(e.value,g,{label:t.value.label})&&o.push(k(k({},$),{[t.value.label]:d({inputValue:e.value,path:g,prefixCls:a.value,fieldNames:t.value}),[ce]:g})),w&&C($[t.value.children],g)})}return C(n.value,[]),c&&o.sort((O,y)=>c(O[ce],y[ce],e.value,t.value)),v>0?o.slice(0,v):o});function Pe(e,n,t){const a=new Set(e);return e.filter(l=>{const i=n[l],r=i?i.parent:null,d=i?i.children:null;return t===$e?!(d&&d.some(v=>v.key&&a.has(v.key))):!(r&&!r.node.disabled&&a.has(r.key))})}function re(e,n,t){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var l;let i=n;const r=[];for(let d=0;d{const O=C[t.value];return a?String(O)===String(v):O===v}),o=c!==-1?i==null?void 0:i[c]:null;r.push({value:(l=o==null?void 0:o[t.value])!==null&&l!==void 0?l:v,index:c,option:o}),i=o==null?void 0:o[t.children]}return r}const It=(e,n,t)=>b(()=>{const a=[],l=[];return t.value.forEach(i=>{re(i,e.value,n.value).every(d=>d.option)?l.push(i):a.push(i)}),[l,a]}),Ot=(e,n,t,a,l)=>b(()=>{const i=l.value||(r=>{let{labels:d}=r;const v=a.value?d.slice(-1):d,c=" / ";return v.every(o=>["string","number"].includes(typeof o))?v.join(c):v.reduce((o,C,O)=>{const y=Me(C)?Fe(C,{key:O}):C;return O===0?[y]:[...o,c,y]},[])});return e.value.map(r=>{const d=re(r,n.value,t.value),v=i({labels:d.map(o=>{let{option:C,value:O}=o;var y;return(y=C==null?void 0:C[t.value.label])!==null&&y!==void 0?y:O}),selectedOptions:d.map(o=>{let{option:C}=o;return C})}),c=ee(r);return{label:v,value:c,key:c,valueCells:r}})}),Ee=Symbol("CascaderContextKey"),Pt=e=>{je(Ee,e)},pe=()=>We(Ee),Vt=()=>{const e=be(),{values:n}=pe(),[t,a]=He([]);return _e(()=>e.open,()=>{if(e.open&&!e.multiple){const l=n.value[0];a(l||[])}},{immediate:!0}),[t,a]},kt=(e,n,t,a,l,i)=>{const r=be(),d=b(()=>r.direction==="rtl"),[v,c,o]=[q([]),q(),q([])];ve(()=>{let g=-1,w=n.value;const p=[],x=[],D=a.value.length;for(let _=0;_T[t.value.value]===a.value[_]);if(R===-1)break;g=R,p.push(g),x.push(a.value[_]),w=w[g][t.value.children]}let P=n.value;for(let _=0;_{l(g)},O=g=>{const w=o.value.length;let p=c.value;p===-1&&g<0&&(p=w);for(let x=0;x{if(v.value.length>1){const g=v.value.slice(0,-1);C(g)}else r.toggleOpen(!1)},$=()=>{var g;const p=(((g=o.value[c.value])===null||g===void 0?void 0:g[t.value.children])||[]).find(x=>!x.disabled);if(p){const x=[...v.value,p[t.value.value]];C(x)}};e.expose({onKeydown:g=>{const{which:w}=g;switch(w){case Q.UP:case Q.DOWN:{let p=0;w===Q.UP?p=-1:w===Q.DOWN&&(p=1),p!==0&&O(p);break}case Q.LEFT:{d.value?$():y();break}case Q.RIGHT:{d.value?y():$();break}case Q.BACKSPACE:{r.searchValue||y();break}case Q.ENTER:{if(v.value.length){const p=o.value[c.value],x=(p==null?void 0:p[ce])||[];x.length?i(x.map(D=>D[t.value.value]),x[x.length-1]):i(v.value,p)}break}case Q.ESC:r.toggleOpen(!1),open&&g.stopPropagation()}},onKeyup:()=>{}})};function he(e){let{prefixCls:n,checked:t,halfChecked:a,disabled:l,onClick:i}=e;const{customSlots:r,checkable:d}=pe(),v=d.value!==!1?r.value.checkable:d.value,c=typeof v=="function"?v():typeof v=="boolean"?null:v;return E("span",{class:{[n]:!0,[`${n}-checked`]:t,[`${n}-indeterminate`]:!t&&a,[`${n}-disabled`]:l},onClick:i},[c])}he.props=["prefixCls","checked","halfChecked","disabled","onClick"];he.displayName="Checkbox";he.inheritAttrs=!1;const Te="__cascader_fix_label__";function fe(e){let{prefixCls:n,multiple:t,options:a,activeValue:l,prevValuePath:i,onToggleOpen:r,onSelect:d,onActive:v,checkedSet:c,halfCheckedSet:o,loadingKeys:C,isSelectable:O}=e;var y,$,g,w,p,x;const D=`${n}-menu`,P=`${n}-menu-item`,{fieldNames:_,changeOnSelect:R,expandTrigger:T,expandIcon:X,loadingIcon:Y,dropdownMenuColumnStyle:U,customSlots:M}=pe(),F=(y=X.value)!==null&&y!==void 0?y:(g=($=M.value).expandIcon)===null||g===void 0?void 0:g.call($),j=(w=Y.value)!==null&&w!==void 0?w:(x=(p=M.value).loadingIcon)===null||x===void 0?void 0:x.call(p),te=T.value==="hover";return E("ul",{class:D,role:"menu"},[a.map(L=>{var h;const{disabled:I}=L,s=L[ce],S=(h=L[Te])!==null&&h!==void 0?h:L[_.value.label],m=L[_.value.value],V=ie(L,_.value),N=s?s.map(u=>u[_.value.value]):[...i,m],W=ee(N),H=C.includes(W),Z=c.has(W),ne=o.has(W),le=()=>{!I&&(!te||!V)&&v(N)},B=()=>{O(L)&&d(N,V)};let G;return typeof L.title=="string"?G=L.title:typeof S=="string"&&(G=S),E("li",{key:W,class:[P,{[`${P}-expand`]:!V,[`${P}-active`]:l===m,[`${P}-disabled`]:I,[`${P}-loading`]:H}],style:U.value,role:"menuitemcheckbox",title:G,"aria-checked":Z,"data-path-key":W,onClick:()=>{le(),(!t||V)&&B()},onDblclick:()=>{R.value&&r(!1)},onMouseenter:()=>{te&&le()},onMousedown:u=>{u.preventDefault()}},[t&&E(he,{prefixCls:`${n}-checkbox`,checked:Z,halfChecked:ne,disabled:I,onClick:u=>{u.stopPropagation(),B()}},null),E("div",{class:`${P}-content`},[S]),!H&&F&&!V&&E("div",{class:`${P}-expand-icon`},[F]),H&&j&&E("div",{class:`${P}-loading-icon`},[j])])})])}fe.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];fe.displayName="Column";fe.inheritAttrs=!1;const _t=Se({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,n){const{attrs:t,slots:a}=n,l=be(),i=q(),r=b(()=>l.direction==="rtl"),{options:d,values:v,halfValues:c,fieldNames:o,changeOnSelect:C,onSelect:O,searchOptions:y,dropdownPrefixCls:$,loadData:g,expandTrigger:w,customSlots:p}=pe(),x=b(()=>$.value||l.prefixCls),D=ke([]),P=h=>{if(!g.value||l.searchValue)return;const s=re(h,d.value,o.value).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];if(S&&!ie(S,o.value)){const m=ee(h);D.value=[...D.value,m],g.value(s)}};ve(()=>{D.value.length&&D.value.forEach(h=>{const I=gt(h),s=re(I,d.value,o.value,!0).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];(!S||S[o.value.children]||ie(S,o.value))&&(D.value=D.value.filter(m=>m!==h))})});const _=b(()=>new Set(oe(v.value))),R=b(()=>new Set(oe(c.value))),[T,X]=Vt(),Y=h=>{X(h),P(h)},U=h=>{const{disabled:I}=h,s=ie(h,o.value);return!I&&(s||C.value||l.multiple)},M=function(h,I){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;O(h),!l.multiple&&(I||C.value&&(w.value==="hover"||s))&&l.toggleOpen(!1)},F=b(()=>l.searchValue?y.value:d.value),j=b(()=>{const h=[{options:F.value}];let I=F.value;for(let s=0;sN[o.value.value]===S),V=m==null?void 0:m[o.value.children];if(!(V!=null&&V.length))break;I=V,h.push({options:V})}return h});kt(n,F,o,T,Y,(h,I)=>{U(I)&&M(h,ie(I,o.value),!0)});const L=h=>{h.preventDefault()};return Be(()=>{_e(T,h=>{var I;for(let s=0;s{var h,I,s,S,m;const{notFoundContent:V=((h=a.notFoundContent)===null||h===void 0?void 0:h.call(a))||((s=(I=p.value).notFoundContent)===null||s===void 0?void 0:s.call(I)),multiple:N,toggleOpen:W}=l,H=!(!((m=(S=j.value[0])===null||S===void 0?void 0:S.options)===null||m===void 0)&&m.length),Z=[{[o.value.value]:"__EMPTY__",[Te]:V,disabled:!0}],ne=k(k({},t),{multiple:!H&&N,onSelect:M,onActive:Y,onToggleOpen:W,checkedSet:_.value,halfCheckedSet:R.value,loadingKeys:D.value,isSelectable:U}),B=(H?[{options:Z}]:j.value).map((G,u)=>{const f=T.value.slice(0,u),A=T.value[u];return E(fe,J(J({key:u},ne),{},{prefixCls:x.value,options:G.options,prevValuePath:f,activeValue:A}),null)});return E("div",{class:[`${x.value}-menus`,{[`${x.value}-menu-empty`]:H,[`${x.value}-rtl`]:r.value}],onMousedown:L,ref:i},[B])}}});function At(){return k(k({},ye(Qe(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Ge(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:De},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Ce.any,loadingIcon:Ce.any})}function Re(){return k(k({},At()),{onChange:Function,customSlots:Object})}function Dt(e){return Array.isArray(e)&&Array.isArray(e[0])}function Ve(e){return e?Dt(e)?e:(e.length===0?[]:[e]).map(n=>Array.isArray(n)?n:[n]):[]}const $t=Se({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Ae(Re(),{}),setup(e,n){let{attrs:t,expose:a,slots:l}=n;const i=ze(de(e,"id")),r=b(()=>!!e.checkable),[d,v]=Ie(e.defaultValue,{value:b(()=>e.value),postState:Ve}),c=b(()=>mt(e.fieldNames)),o=b(()=>e.options||[]),C=bt(o,c),O=u=>{const f=C.value;return u.map(A=>{const{nodes:K}=f[A];return K.map(z=>z[c.value.value])})},[y,$]=Ie("",{value:b(()=>e.searchValue),postState:u=>u||""}),g=(u,f)=>{$(u),f.source!=="blur"&&e.onSearch&&e.onSearch(u)},{showSearch:w,searchConfig:p}=St(de(e,"showSearch")),x=xt(y,o,c,b(()=>e.dropdownPrefixCls||e.prefixCls),p,de(e,"changeOnSelect")),D=It(o,c,d),[P,_,R]=[q([]),q([]),q([])],{maxLevel:T,levelEntities:X}=Xe(C);ve(()=>{const[u,f]=D.value;if(!r.value||!d.value.length){[P.value,_.value,R.value]=[u,[],f];return}const A=oe(u),K=C.value,{checkedKeys:z,halfCheckedKeys:se}=me(A,!0,K,T.value,X.value);[P.value,_.value,R.value]=[O(z),O(se),f]});const Y=b(()=>{const u=oe(P.value),f=Pe(u,C.value,e.showCheckedStrategy);return[...R.value,...O(f)]}),U=Ot(Y,o,c,r,de(e,"displayRender")),M=u=>{if(v(u),e.onChange){const f=Ve(u),A=f.map(se=>re(se,o.value,c.value).map(ue=>ue.option)),K=r.value?f:f[0],z=r.value?A:A[0];e.onChange(K,z)}},F=u=>{if($(""),!r.value)M(u);else{const f=ee(u),A=oe(P.value),K=oe(_.value),z=A.includes(f),se=R.value.some(ae=>ee(ae)===f);let ue=P.value,xe=R.value;if(se&&!z)xe=R.value.filter(ae=>ee(ae)!==f);else{const ae=z?A.filter(Ke=>Ke!==f):[...A,f];let ge;z?{checkedKeys:ge}=me(ae,{checked:!1,halfCheckedKeys:K},C.value,T.value,X.value):{checkedKeys:ge}=me(ae,!0,C.value,T.value,X.value);const Le=Pe(ge,C.value,e.showCheckedStrategy);ue=O(Le)}M([...xe,...ue])}},j=(u,f)=>{if(f.type==="clear"){M([]);return}const{valueCells:A}=f.values[0];F(A)},te=b(()=>e.open!==void 0?e.open:e.popupVisible),L=b(()=>e.dropdownClassName||e.popupClassName),h=b(()=>e.dropdownStyle||e.popupStyle||{}),I=b(()=>e.placement||e.popupPlacement),s=u=>{var f,A;(f=e.onDropdownVisibleChange)===null||f===void 0||f.call(e,u),(A=e.onPopupVisibleChange)===null||A===void 0||A.call(e,u)},{changeOnSelect:S,checkable:m,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Z,dropdownMenuColumnStyle:ne,customSlots:le}=Ue(e);Pt({options:o,fieldNames:c,values:P,halfValues:_,changeOnSelect:S,onSelect:F,checkable:m,searchOptions:x,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Z,dropdownMenuColumnStyle:ne,customSlots:le});const B=q();a({focus(){var u;(u=B.value)===null||u===void 0||u.focus()},blur(){var u;(u=B.value)===null||u===void 0||u.blur()},scrollTo(u){var f;(f=B.value)===null||f===void 0||f.scrollTo(u)}});const G=b(()=>ye(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const u=!(y.value?x.value:o.value).length,{dropdownMatchSelectWidth:f=!1}=e,A=y.value&&p.value.matchInputWidth||u?{}:{minWidth:"auto"};return E(qe,J(J(J({},G.value),t),{},{ref:B,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:f,dropdownStyle:k(k({},h.value),A),displayValues:U.value,onDisplayValuesChange:j,mode:r.value?"multiple":void 0,searchValue:y.value,onSearch:g,showSearch:w.value,OptionList:_t,emptyOptions:u,open:te.value,dropdownClassName:L.value,placement:I.value,onDropdownVisibleChange:s,getRawInputElement:()=>{var K;return(K=l.default)===null||K===void 0?void 0:K.call(l)}}),l)}}}),Et=e=>{const{prefixCls:n,componentCls:t,antCls:a}=e,l=`${t}-menu-item`,i=` +import{f as b,bZ as Ne,S as k,Q as ke,e as q,aK as ve,az as Me,aE as Fe,V as je,B as We,bU as be,cj as He,g as _e,b7 as Q,b as E,d as Se,W as Be,ak as J,ap as Ae,b$ as ze,bA as de,aW as Ie,c0 as Xe,K as Ue,c3 as qe,b_ as me,aj as ye,as as Ge,au as Ce,c4 as Qe,ac as Ye,c6 as Ze,an as Je,b9 as et,ae as tt,bi as nt,bj as lt,ah as at,bk as ot,bl as st,c8 as it,bv as ct,bu as rt,dA as ut,c9 as dt,bm as vt,dB as Oe,cb as pt,bq as ht,ai as ft}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="62e57136-13ee-4492-9bba-b0c4ea92bd10",e._sentryDebugIdIdentifier="sentry-dbid-62e57136-13ee-4492-9bba-b0c4ea92bd10")}catch{}})();const we="__RC_CASCADER_SPLIT__",De="SHOW_PARENT",$e="SHOW_CHILD";function ee(e){return e.join(we)}function oe(e){return e.map(ee)}function gt(e){return e.split(we)}function mt(e){const{label:n,value:t,children:a}=e||{},l=t||"value";return{label:n||"label",value:l,key:l,children:a||"children"}}function ie(e,n){var t,a;return(t=e.isLeaf)!==null&&t!==void 0?t:!(!((a=e[n.children])===null||a===void 0)&&a.length)}function Ct(e){const n=e.parentElement;if(!n)return;const t=e.offsetTop-n.offsetTop;t-n.scrollTop<0?n.scrollTo({top:t}):t+e.offsetHeight-n.scrollTop>n.offsetHeight&&n.scrollTo({top:t+e.offsetHeight-n.offsetHeight})}const bt=(e,n)=>b(()=>Ne(e.value,{fieldNames:n.value,initWrapper:a=>k(k({},a),{pathKeyEntities:{}}),processEntity:(a,l)=>{const i=a.nodes.map(r=>r[n.value.value]).join(we);l.pathKeyEntities[i]=a,a.key=i}}).pathKeyEntities);function St(e){const n=ke(!1),t=q({});return ve(()=>{if(!e.value){n.value=!1,t.value={};return}let a={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(a=k(k({},a),e.value)),a.limit<=0&&delete a.limit,n.value=!0,t.value=a}),{showSearch:n,searchConfig:t}}const ce="__rc_cascader_search_mark__",yt=(e,n,t)=>{let{label:a}=t;return n.some(l=>String(l[a]).toLowerCase().includes(e.toLowerCase()))},wt=e=>{let{path:n,fieldNames:t}=e;return n.map(a=>a[t.label]).join(" / ")},xt=(e,n,t,a,l,i)=>b(()=>{const{filter:r=yt,render:d=wt,limit:v=50,sort:c}=l.value,o=[];if(!e.value)return[];function C(O,y){O.forEach($=>{if(!c&&v>0&&o.length>=v)return;const g=[...y,$],w=$[t.value.children];(!w||w.length===0||i.value)&&r(e.value,g,{label:t.value.label})&&o.push(k(k({},$),{[t.value.label]:d({inputValue:e.value,path:g,prefixCls:a.value,fieldNames:t.value}),[ce]:g})),w&&C($[t.value.children],g)})}return C(n.value,[]),c&&o.sort((O,y)=>c(O[ce],y[ce],e.value,t.value)),v>0?o.slice(0,v):o});function Pe(e,n,t){const a=new Set(e);return e.filter(l=>{const i=n[l],r=i?i.parent:null,d=i?i.children:null;return t===$e?!(d&&d.some(v=>v.key&&a.has(v.key))):!(r&&!r.node.disabled&&a.has(r.key))})}function re(e,n,t){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var l;let i=n;const r=[];for(let d=0;d{const O=C[t.value];return a?String(O)===String(v):O===v}),o=c!==-1?i==null?void 0:i[c]:null;r.push({value:(l=o==null?void 0:o[t.value])!==null&&l!==void 0?l:v,index:c,option:o}),i=o==null?void 0:o[t.children]}return r}const It=(e,n,t)=>b(()=>{const a=[],l=[];return t.value.forEach(i=>{re(i,e.value,n.value).every(d=>d.option)?l.push(i):a.push(i)}),[l,a]}),Ot=(e,n,t,a,l)=>b(()=>{const i=l.value||(r=>{let{labels:d}=r;const v=a.value?d.slice(-1):d,c=" / ";return v.every(o=>["string","number"].includes(typeof o))?v.join(c):v.reduce((o,C,O)=>{const y=Me(C)?Fe(C,{key:O}):C;return O===0?[y]:[...o,c,y]},[])});return e.value.map(r=>{const d=re(r,n.value,t.value),v=i({labels:d.map(o=>{let{option:C,value:O}=o;var y;return(y=C==null?void 0:C[t.value.label])!==null&&y!==void 0?y:O}),selectedOptions:d.map(o=>{let{option:C}=o;return C})}),c=ee(r);return{label:v,value:c,key:c,valueCells:r}})}),Ee=Symbol("CascaderContextKey"),Pt=e=>{je(Ee,e)},pe=()=>We(Ee),Vt=()=>{const e=be(),{values:n}=pe(),[t,a]=He([]);return _e(()=>e.open,()=>{if(e.open&&!e.multiple){const l=n.value[0];a(l||[])}},{immediate:!0}),[t,a]},kt=(e,n,t,a,l,i)=>{const r=be(),d=b(()=>r.direction==="rtl"),[v,c,o]=[q([]),q(),q([])];ve(()=>{let g=-1,w=n.value;const p=[],x=[],D=a.value.length;for(let _=0;_T[t.value.value]===a.value[_]);if(R===-1)break;g=R,p.push(g),x.push(a.value[_]),w=w[g][t.value.children]}let P=n.value;for(let _=0;_{l(g)},O=g=>{const w=o.value.length;let p=c.value;p===-1&&g<0&&(p=w);for(let x=0;x{if(v.value.length>1){const g=v.value.slice(0,-1);C(g)}else r.toggleOpen(!1)},$=()=>{var g;const p=(((g=o.value[c.value])===null||g===void 0?void 0:g[t.value.children])||[]).find(x=>!x.disabled);if(p){const x=[...v.value,p[t.value.value]];C(x)}};e.expose({onKeydown:g=>{const{which:w}=g;switch(w){case Q.UP:case Q.DOWN:{let p=0;w===Q.UP?p=-1:w===Q.DOWN&&(p=1),p!==0&&O(p);break}case Q.LEFT:{d.value?$():y();break}case Q.RIGHT:{d.value?y():$();break}case Q.BACKSPACE:{r.searchValue||y();break}case Q.ENTER:{if(v.value.length){const p=o.value[c.value],x=(p==null?void 0:p[ce])||[];x.length?i(x.map(D=>D[t.value.value]),x[x.length-1]):i(v.value,p)}break}case Q.ESC:r.toggleOpen(!1),open&&g.stopPropagation()}},onKeyup:()=>{}})};function he(e){let{prefixCls:n,checked:t,halfChecked:a,disabled:l,onClick:i}=e;const{customSlots:r,checkable:d}=pe(),v=d.value!==!1?r.value.checkable:d.value,c=typeof v=="function"?v():typeof v=="boolean"?null:v;return E("span",{class:{[n]:!0,[`${n}-checked`]:t,[`${n}-indeterminate`]:!t&&a,[`${n}-disabled`]:l},onClick:i},[c])}he.props=["prefixCls","checked","halfChecked","disabled","onClick"];he.displayName="Checkbox";he.inheritAttrs=!1;const Te="__cascader_fix_label__";function fe(e){let{prefixCls:n,multiple:t,options:a,activeValue:l,prevValuePath:i,onToggleOpen:r,onSelect:d,onActive:v,checkedSet:c,halfCheckedSet:o,loadingKeys:C,isSelectable:O}=e;var y,$,g,w,p,x;const D=`${n}-menu`,P=`${n}-menu-item`,{fieldNames:_,changeOnSelect:R,expandTrigger:T,expandIcon:X,loadingIcon:Y,dropdownMenuColumnStyle:U,customSlots:M}=pe(),F=(y=X.value)!==null&&y!==void 0?y:(g=($=M.value).expandIcon)===null||g===void 0?void 0:g.call($),j=(w=Y.value)!==null&&w!==void 0?w:(x=(p=M.value).loadingIcon)===null||x===void 0?void 0:x.call(p),te=T.value==="hover";return E("ul",{class:D,role:"menu"},[a.map(L=>{var h;const{disabled:I}=L,s=L[ce],S=(h=L[Te])!==null&&h!==void 0?h:L[_.value.label],m=L[_.value.value],V=ie(L,_.value),N=s?s.map(u=>u[_.value.value]):[...i,m],W=ee(N),H=C.includes(W),Z=c.has(W),ne=o.has(W),le=()=>{!I&&(!te||!V)&&v(N)},B=()=>{O(L)&&d(N,V)};let G;return typeof L.title=="string"?G=L.title:typeof S=="string"&&(G=S),E("li",{key:W,class:[P,{[`${P}-expand`]:!V,[`${P}-active`]:l===m,[`${P}-disabled`]:I,[`${P}-loading`]:H}],style:U.value,role:"menuitemcheckbox",title:G,"aria-checked":Z,"data-path-key":W,onClick:()=>{le(),(!t||V)&&B()},onDblclick:()=>{R.value&&r(!1)},onMouseenter:()=>{te&&le()},onMousedown:u=>{u.preventDefault()}},[t&&E(he,{prefixCls:`${n}-checkbox`,checked:Z,halfChecked:ne,disabled:I,onClick:u=>{u.stopPropagation(),B()}},null),E("div",{class:`${P}-content`},[S]),!H&&F&&!V&&E("div",{class:`${P}-expand-icon`},[F]),H&&j&&E("div",{class:`${P}-loading-icon`},[j])])})])}fe.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];fe.displayName="Column";fe.inheritAttrs=!1;const _t=Se({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,n){const{attrs:t,slots:a}=n,l=be(),i=q(),r=b(()=>l.direction==="rtl"),{options:d,values:v,halfValues:c,fieldNames:o,changeOnSelect:C,onSelect:O,searchOptions:y,dropdownPrefixCls:$,loadData:g,expandTrigger:w,customSlots:p}=pe(),x=b(()=>$.value||l.prefixCls),D=ke([]),P=h=>{if(!g.value||l.searchValue)return;const s=re(h,d.value,o.value).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];if(S&&!ie(S,o.value)){const m=ee(h);D.value=[...D.value,m],g.value(s)}};ve(()=>{D.value.length&&D.value.forEach(h=>{const I=gt(h),s=re(I,d.value,o.value,!0).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];(!S||S[o.value.children]||ie(S,o.value))&&(D.value=D.value.filter(m=>m!==h))})});const _=b(()=>new Set(oe(v.value))),R=b(()=>new Set(oe(c.value))),[T,X]=Vt(),Y=h=>{X(h),P(h)},U=h=>{const{disabled:I}=h,s=ie(h,o.value);return!I&&(s||C.value||l.multiple)},M=function(h,I){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;O(h),!l.multiple&&(I||C.value&&(w.value==="hover"||s))&&l.toggleOpen(!1)},F=b(()=>l.searchValue?y.value:d.value),j=b(()=>{const h=[{options:F.value}];let I=F.value;for(let s=0;sN[o.value.value]===S),V=m==null?void 0:m[o.value.children];if(!(V!=null&&V.length))break;I=V,h.push({options:V})}return h});kt(n,F,o,T,Y,(h,I)=>{U(I)&&M(h,ie(I,o.value),!0)});const L=h=>{h.preventDefault()};return Be(()=>{_e(T,h=>{var I;for(let s=0;s{var h,I,s,S,m;const{notFoundContent:V=((h=a.notFoundContent)===null||h===void 0?void 0:h.call(a))||((s=(I=p.value).notFoundContent)===null||s===void 0?void 0:s.call(I)),multiple:N,toggleOpen:W}=l,H=!(!((m=(S=j.value[0])===null||S===void 0?void 0:S.options)===null||m===void 0)&&m.length),Z=[{[o.value.value]:"__EMPTY__",[Te]:V,disabled:!0}],ne=k(k({},t),{multiple:!H&&N,onSelect:M,onActive:Y,onToggleOpen:W,checkedSet:_.value,halfCheckedSet:R.value,loadingKeys:D.value,isSelectable:U}),B=(H?[{options:Z}]:j.value).map((G,u)=>{const f=T.value.slice(0,u),A=T.value[u];return E(fe,J(J({key:u},ne),{},{prefixCls:x.value,options:G.options,prevValuePath:f,activeValue:A}),null)});return E("div",{class:[`${x.value}-menus`,{[`${x.value}-menu-empty`]:H,[`${x.value}-rtl`]:r.value}],onMousedown:L,ref:i},[B])}}});function At(){return k(k({},ye(Qe(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Ge(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:De},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Ce.any,loadingIcon:Ce.any})}function Re(){return k(k({},At()),{onChange:Function,customSlots:Object})}function Dt(e){return Array.isArray(e)&&Array.isArray(e[0])}function Ve(e){return e?Dt(e)?e:(e.length===0?[]:[e]).map(n=>Array.isArray(n)?n:[n]):[]}const $t=Se({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Ae(Re(),{}),setup(e,n){let{attrs:t,expose:a,slots:l}=n;const i=ze(de(e,"id")),r=b(()=>!!e.checkable),[d,v]=Ie(e.defaultValue,{value:b(()=>e.value),postState:Ve}),c=b(()=>mt(e.fieldNames)),o=b(()=>e.options||[]),C=bt(o,c),O=u=>{const f=C.value;return u.map(A=>{const{nodes:K}=f[A];return K.map(z=>z[c.value.value])})},[y,$]=Ie("",{value:b(()=>e.searchValue),postState:u=>u||""}),g=(u,f)=>{$(u),f.source!=="blur"&&e.onSearch&&e.onSearch(u)},{showSearch:w,searchConfig:p}=St(de(e,"showSearch")),x=xt(y,o,c,b(()=>e.dropdownPrefixCls||e.prefixCls),p,de(e,"changeOnSelect")),D=It(o,c,d),[P,_,R]=[q([]),q([]),q([])],{maxLevel:T,levelEntities:X}=Xe(C);ve(()=>{const[u,f]=D.value;if(!r.value||!d.value.length){[P.value,_.value,R.value]=[u,[],f];return}const A=oe(u),K=C.value,{checkedKeys:z,halfCheckedKeys:se}=me(A,!0,K,T.value,X.value);[P.value,_.value,R.value]=[O(z),O(se),f]});const Y=b(()=>{const u=oe(P.value),f=Pe(u,C.value,e.showCheckedStrategy);return[...R.value,...O(f)]}),U=Ot(Y,o,c,r,de(e,"displayRender")),M=u=>{if(v(u),e.onChange){const f=Ve(u),A=f.map(se=>re(se,o.value,c.value).map(ue=>ue.option)),K=r.value?f:f[0],z=r.value?A:A[0];e.onChange(K,z)}},F=u=>{if($(""),!r.value)M(u);else{const f=ee(u),A=oe(P.value),K=oe(_.value),z=A.includes(f),se=R.value.some(ae=>ee(ae)===f);let ue=P.value,xe=R.value;if(se&&!z)xe=R.value.filter(ae=>ee(ae)!==f);else{const ae=z?A.filter(Ke=>Ke!==f):[...A,f];let ge;z?{checkedKeys:ge}=me(ae,{checked:!1,halfCheckedKeys:K},C.value,T.value,X.value):{checkedKeys:ge}=me(ae,!0,C.value,T.value,X.value);const Le=Pe(ge,C.value,e.showCheckedStrategy);ue=O(Le)}M([...xe,...ue])}},j=(u,f)=>{if(f.type==="clear"){M([]);return}const{valueCells:A}=f.values[0];F(A)},te=b(()=>e.open!==void 0?e.open:e.popupVisible),L=b(()=>e.dropdownClassName||e.popupClassName),h=b(()=>e.dropdownStyle||e.popupStyle||{}),I=b(()=>e.placement||e.popupPlacement),s=u=>{var f,A;(f=e.onDropdownVisibleChange)===null||f===void 0||f.call(e,u),(A=e.onPopupVisibleChange)===null||A===void 0||A.call(e,u)},{changeOnSelect:S,checkable:m,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Z,dropdownMenuColumnStyle:ne,customSlots:le}=Ue(e);Pt({options:o,fieldNames:c,values:P,halfValues:_,changeOnSelect:S,onSelect:F,checkable:m,searchOptions:x,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Z,dropdownMenuColumnStyle:ne,customSlots:le});const B=q();a({focus(){var u;(u=B.value)===null||u===void 0||u.focus()},blur(){var u;(u=B.value)===null||u===void 0||u.blur()},scrollTo(u){var f;(f=B.value)===null||f===void 0||f.scrollTo(u)}});const G=b(()=>ye(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const u=!(y.value?x.value:o.value).length,{dropdownMatchSelectWidth:f=!1}=e,A=y.value&&p.value.matchInputWidth||u?{}:{minWidth:"auto"};return E(qe,J(J(J({},G.value),t),{},{ref:B,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:f,dropdownStyle:k(k({},h.value),A),displayValues:U.value,onDisplayValuesChange:j,mode:r.value?"multiple":void 0,searchValue:y.value,onSearch:g,showSearch:w.value,OptionList:_t,emptyOptions:u,open:te.value,dropdownClassName:L.value,placement:I.value,onDropdownVisibleChange:s,getRawInputElement:()=>{var K;return(K=l.default)===null||K===void 0?void 0:K.call(l)}}),l)}}}),Et=e=>{const{prefixCls:n,componentCls:t,antCls:a}=e,l=`${t}-menu-item`,i=` &${l}-expand ${l}-expand-icon, ${l}-loading-icon `,r=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[Ze(`${n}-checkbox`,e),{[`&${a}-select-dropdown`]:{padding:0}},{[t]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${t}-menu-empty`]:{[`${t}-menu`]:{width:"100%",height:"auto",[l]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":k(k({},Je),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${r}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${l}-disabled)`]:{["&, &:hover"]:{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},et(e)]},Tt=Ye("Cascader",e=>[Et(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var Rt=globalThis&&globalThis.__rest||function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);lv===0?[d]:[...r,n,d],[]),l=[];let i=0;return a.forEach((r,d)=>{const v=i+r.length;let c=e.slice(i,v);i=v,d%2===1&&(c=E("span",{class:`${t}-menu-item-keyword`,key:"seperator"},[c])),l.push(c)}),l}const Kt=e=>{let{inputValue:n,path:t,prefixCls:a,fieldNames:l}=e;const i=[],r=n.toLowerCase();return t.forEach((d,v)=>{v!==0&&i.push(" / ");let c=d[l.label];const o=typeof c;(o==="string"||o==="number")&&(c=Lt(String(c),r,a)),i.push(c)}),i};function Nt(){return k(k({},ye(Re(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Ce.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const Mt=Se({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Ae(Nt(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,n){let{attrs:t,expose:a,slots:l,emit:i}=n;const r=nt(),d=lt.useInject(),v=b(()=>ht(d.status,e.status)),{prefixCls:c,rootPrefixCls:o,getPrefixCls:C,direction:O,getPopupContainer:y,renderEmpty:$,size:g,disabled:w}=at("cascader",e),p=b(()=>C("select",e.prefixCls)),{compactSize:x,compactItemClassnames:D}=ot(p,O),P=b(()=>x.value||g.value),_=st(),R=b(()=>{var s;return(s=w.value)!==null&&s!==void 0?s:_.value}),[T,X]=it(p),[Y]=Tt(c),U=b(()=>O.value==="rtl"),M=b(()=>{if(!e.showSearch)return e.showSearch;let s={render:Kt};return typeof e.showSearch=="object"&&(s=k(k({},s),e.showSearch)),s}),F=b(()=>ft(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:U.value},X.value)),j=q();a({focus(){var s;(s=j.value)===null||s===void 0||s.focus()},blur(){var s;(s=j.value)===null||s===void 0||s.blur()}});const te=function(){for(var s=arguments.length,S=new Array(s),m=0;me.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),I=b(()=>e.placement!==void 0?e.placement:O.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var s,S;const{notFoundContent:m=(s=l.notFoundContent)===null||s===void 0?void 0:s.call(l),expandIcon:V=(S=l.expandIcon)===null||S===void 0?void 0:S.call(l),multiple:N,bordered:W,allowClear:H,choiceTransitionName:Z,transitionName:ne,id:le=r.id.value}=e,B=Rt(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),G=m||$("Cascader");let u=V;V||(u=U.value?E(ct,null,null):E(rt,null,null));const f=E("span",{class:`${p.value}-menu-item-loading-icon`},[E(ut,{spin:!0},null)]),{suffixIcon:A,removeIcon:K,clearIcon:z}=dt(k(k({},e),{hasFeedback:d.hasFeedback,feedbackIcon:d.feedbackIcon,multiple:N,prefixCls:p.value,showArrow:h.value}),l);return Y(T(E($t,J(J(J({},B),t),{},{id:le,prefixCls:p.value,class:[c.value,{[`${p.value}-lg`]:P.value==="large",[`${p.value}-sm`]:P.value==="small",[`${p.value}-rtl`]:U.value,[`${p.value}-borderless`]:!W,[`${p.value}-in-form-item`]:d.isFormItemInput},vt(p.value,v.value,d.hasFeedback),D.value,t.class,X.value],disabled:R.value,direction:O.value,placement:I.value,notFoundContent:G,allowClear:H,showSearch:M.value,expandIcon:u,inputIcon:A,removeIcon:K,clearIcon:z,loadingIcon:f,checkable:!!N,dropdownClassName:F.value,dropdownPrefixCls:c.value,choiceTransitionName:Oe(o.value,"",Z),transitionName:Oe(o.value,pt(I.value),ne),getPopupContainer:y==null?void 0:y.value,customSlots:k(k({},l),{checkable:()=>E("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||l.tagRender,displayRender:e.displayRender||l.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,showArrow:d.hasFeedback||e.showArrow,onChange:te,onBlur:L,ref:j}),l)))}}}),jt=tt(k(Mt,{SHOW_CHILD:$e,SHOW_PARENT:De}));export{jt as A}; -//# sourceMappingURL=index.7ab41b83.js.map +//# sourceMappingURL=index.78793691.js.map diff --git a/abstra_statics/dist/assets/index.03e5f55c.js b/abstra_statics/dist/assets/index.82d1f1ac.js similarity index 79% rename from abstra_statics/dist/assets/index.03e5f55c.js rename to abstra_statics/dist/assets/index.82d1f1ac.js index ff0cd0a81..9d43c53f0 100644 --- a/abstra_statics/dist/assets/index.03e5f55c.js +++ b/abstra_statics/dist/assets/index.82d1f1ac.js @@ -1,4 +1,4 @@ -import{C as f,A as x}from"./CollapsePanel.d6e0f903.js";import{d as A,ap as D,ah as E,f as L,b as s,au as c,aM as M,bt as O,ac as G,ad as Q,S as P,ao as q,aQ as F,dA as J,dw as K,ai as W,ak as _}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ee7e76a1-3708-426c-9c2b-55845fbf86b5",e._sentryDebugIdIdentifier="sentry-dbid-ee7e76a1-3708-426c-9c2b-55845fbf86b5")}catch{}})();f.Panel=x;f.install=function(e){return e.component(f.name,f),e.component(x.name,x),e};const U=()=>({prefixCls:String,color:String,dot:c.any,pending:M(),position:c.oneOf(O("left","right","")).def(""),label:c.any}),b=A({compatConfig:{MODE:3},name:"ATimelineItem",props:D(U(),{color:"blue",pending:!1}),slots:Object,setup(e,i){let{slots:l}=i;const{prefixCls:n}=E("timeline",e),t=L(()=>({[`${n.value}-item`]:!0,[`${n.value}-item-pending`]:e.pending})),u=L(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),v=L(()=>({[`${n.value}-item-head`]:!0,[`${n.value}-item-head-${e.color||"blue"}`]:!u.value}));return()=>{var g,p,r;const{label:o=(g=l.label)===null||g===void 0?void 0:g.call(l),dot:a=(p=l.dot)===null||p===void 0?void 0:p.call(l)}=e;return s("li",{class:t.value},[o&&s("div",{class:`${n.value}-item-label`},[o]),s("div",{class:`${n.value}-item-tail`},null),s("div",{class:[v.value,!!a&&`${n.value}-item-head-custom`],style:{borderColor:u.value,color:u.value}},[a]),s("div",{class:`${n.value}-item-content`},[(r=l.default)===null||r===void 0?void 0:r.call(l)])])}}}),Y=e=>{const{componentCls:i}=e;return{[i]:P(P({},q(e)),{margin:0,padding:0,listStyle:"none",[`${i}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${i}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${i}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${i}-item-tail`]:{display:"none"},[`> ${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${i}-alternate, +import{C as S,A as x}from"./CollapsePanel.87687b29.js";import{d as A,ap as D,ah as E,f as L,b as d,au as c,aM as M,bt as O,ac as G,ad as Q,S as P,ao as q,aQ as F,dA as J,dw as K,ai as W,ak as _}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="8a2e1130-d314-4238-825a-dfb64c1c9294",e._sentryDebugIdIdentifier="sentry-dbid-8a2e1130-d314-4238-825a-dfb64c1c9294")}catch{}})();S.Panel=x;S.install=function(e){return e.component(S.name,S),e.component(x.name,x),e};const U=()=>({prefixCls:String,color:String,dot:c.any,pending:M(),position:c.oneOf(O("left","right","")).def(""),label:c.any}),v=A({compatConfig:{MODE:3},name:"ATimelineItem",props:D(U(),{color:"blue",pending:!1}),slots:Object,setup(e,i){let{slots:l}=i;const{prefixCls:n}=E("timeline",e),t=L(()=>({[`${n.value}-item`]:!0,[`${n.value}-item-pending`]:e.pending})),u=L(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),b=L(()=>({[`${n.value}-item-head`]:!0,[`${n.value}-item-head-${e.color||"blue"}`]:!u.value}));return()=>{var g,p,r;const{label:o=(g=l.label)===null||g===void 0?void 0:g.call(l),dot:a=(p=l.dot)===null||p===void 0?void 0:p.call(l)}=e;return d("li",{class:t.value},[o&&d("div",{class:`${n.value}-item-label`},[o]),d("div",{class:`${n.value}-item-tail`},null),d("div",{class:[b.value,!!a&&`${n.value}-item-head-custom`],style:{borderColor:u.value,color:u.value}},[a]),d("div",{class:`${n.value}-item-content`},[(r=l.default)===null||r===void 0?void 0:r.call(l)])])}}}),Y=e=>{const{componentCls:i}=e;return{[i]:P(P({},q(e)),{margin:0,padding:0,listStyle:"none",[`${i}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${i}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${i}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${i}-item-tail`]:{display:"none"},[`> ${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${i}-alternate, &${i}-right, &${i}-label`]:{[`${i}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${i}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${i}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${i}-right`]:{[`${i}-item-right`]:{[`${i}-item-tail, ${i}-item-head, @@ -6,5 +6,5 @@ import{C as f,A as x}from"./CollapsePanel.d6e0f903.js";import{d as A,ap as D,ah ${i}-item-last ${i}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${i}-reverse ${i}-item-last - ${i}-item-tail`]:{display:"none"},[`&${i}-reverse ${i}-item-pending`]:{[`${i}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${i}-label`]:{[`${i}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${i}-item-right`]:{[`${i}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${i}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Z=G("Timeline",e=>{const i=Q(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Y(i)]}),k=()=>({prefixCls:String,pending:c.any,pendingDot:c.any,reverse:M(),mode:c.oneOf(O("left","alternate","right",""))}),S=A({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:D(k(),{reverse:!1,mode:""}),slots:Object,setup(e,i){let{slots:l,attrs:n}=i;const{prefixCls:t,direction:u}=E("timeline",e),[v,g]=Z(t),p=(r,o)=>{const a=r.props||{};return e.mode==="alternate"?a.position==="right"?`${t.value}-item-right`:a.position==="left"?`${t.value}-item-left`:o%2===0?`${t.value}-item-left`:`${t.value}-item-right`:e.mode==="left"?`${t.value}-item-left`:e.mode==="right"?`${t.value}-item-right`:a.position==="right"?`${t.value}-item-right`:""};return()=>{var r,o,a;const{pending:m=(r=l.pending)===null||r===void 0?void 0:r.call(l),pendingDot:X=(o=l.pendingDot)===null||o===void 0?void 0:o.call(l),reverse:I,mode:H}=e,N=typeof m=="boolean"?null:m,y=F((a=l.default)===null||a===void 0?void 0:a.call(l)),T=m?s(b,{pending:!!m,dot:X||s(J,null,null)},{default:()=>[N]}):null;T&&y.push(T);const C=I?y.reverse():y,z=C.length,B=`${t.value}-item-last`,j=C.map(($,d)=>{const h=d===z-2?B:"",R=d===z-1?B:"";return K($,{class:W([!I&&!!m?h:R,p($,d)])})}),w=C.some($=>{var d,h;return!!(((d=$.props)===null||d===void 0?void 0:d.label)||((h=$.children)===null||h===void 0?void 0:h.label))}),V=W(t.value,{[`${t.value}-pending`]:!!m,[`${t.value}-reverse`]:!!I,[`${t.value}-${H}`]:!!H&&!w,[`${t.value}-label`]:w,[`${t.value}-rtl`]:u.value==="rtl"},n.class,g.value);return v(s("ul",_(_({},n),{},{class:V}),[j]))}}});S.Item=b;S.install=function(e){return e.component(S.name,S),e.component(b.name,b),e};export{b as A,S as T}; -//# sourceMappingURL=index.03e5f55c.js.map + ${i}-item-tail`]:{display:"none"},[`&${i}-reverse ${i}-item-pending`]:{[`${i}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${i}-label`]:{[`${i}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${i}-item-right`]:{[`${i}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${i}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Z=G("Timeline",e=>{const i=Q(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Y(i)]}),k=()=>({prefixCls:String,pending:c.any,pendingDot:c.any,reverse:M(),mode:c.oneOf(O("left","alternate","right",""))}),f=A({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:D(k(),{reverse:!1,mode:""}),slots:Object,setup(e,i){let{slots:l,attrs:n}=i;const{prefixCls:t,direction:u}=E("timeline",e),[b,g]=Z(t),p=(r,o)=>{const a=r.props||{};return e.mode==="alternate"?a.position==="right"?`${t.value}-item-right`:a.position==="left"?`${t.value}-item-left`:o%2===0?`${t.value}-item-left`:`${t.value}-item-right`:e.mode==="left"?`${t.value}-item-left`:e.mode==="right"?`${t.value}-item-right`:a.position==="right"?`${t.value}-item-right`:""};return()=>{var r,o,a;const{pending:m=(r=l.pending)===null||r===void 0?void 0:r.call(l),pendingDot:X=(o=l.pendingDot)===null||o===void 0?void 0:o.call(l),reverse:I,mode:H}=e,N=typeof m=="boolean"?null:m,y=F((a=l.default)===null||a===void 0?void 0:a.call(l)),T=m?d(v,{pending:!!m,dot:X||d(J,null,null)},{default:()=>[N]}):null;T&&y.push(T);const C=I?y.reverse():y,z=C.length,B=`${t.value}-item-last`,j=C.map(($,s)=>{const h=s===z-2?B:"",R=s===z-1?B:"";return K($,{class:W([!I&&!!m?h:R,p($,s)])})}),w=C.some($=>{var s,h;return!!(((s=$.props)===null||s===void 0?void 0:s.label)||((h=$.children)===null||h===void 0?void 0:h.label))}),V=W(t.value,{[`${t.value}-pending`]:!!m,[`${t.value}-reverse`]:!!I,[`${t.value}-${H}`]:!!H&&!w,[`${t.value}-label`]:w,[`${t.value}-rtl`]:u.value==="rtl"},n.class,g.value);return b(d("ul",_(_({},n),{},{class:V}),[j]))}}});f.Item=v;f.install=function(e){return e.component(f.name,f),e.component(v.name,v),e};export{v as A,f as T}; +//# sourceMappingURL=index.82d1f1ac.js.map diff --git a/abstra_statics/dist/assets/index.8321252a.js b/abstra_statics/dist/assets/index.8321252a.js new file mode 100644 index 000000000..9cc7df1a4 --- /dev/null +++ b/abstra_statics/dist/assets/index.8321252a.js @@ -0,0 +1,2 @@ +import{C as o}from"./Card.0ce127d8.js";import{d as p,ah as g,bT as i,b as r,bE as d,f as y}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8f7831f1-be11-4f44-b7f5-ead7f6bfc96f",e._sentryDebugIdIdentifier="sentry-dbid-8f7831f1-be11-4f44-b7f5-ead7f6bfc96f")}catch{}})();const _=()=>({prefixCls:String,title:d(),description:d(),avatar:d()}),c=p({compatConfig:{MODE:3},name:"ACardMeta",props:_(),slots:Object,setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e);return()=>{const l={[`${t.value}-meta`]:!0},s=i(a,e,"avatar"),u=i(a,e,"title"),v=i(a,e,"description"),C=s?r("div",{class:`${t.value}-meta-avatar`},[s]):null,m=u?r("div",{class:`${t.value}-meta-title`},[u]):null,b=v?r("div",{class:`${t.value}-meta-description`},[v]):null,D=m||b?r("div",{class:`${t.value}-meta-detail`},[m,b]):null;return r("div",{class:l},[C,D])}}}),M=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),f=p({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:M(),setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e),l=y(()=>({[`${t.value}-grid`]:!0,[`${t.value}-grid-hoverable`]:e.hoverable}));return()=>{var s;return r("div",{class:l.value},[(s=a.default)===null||s===void 0?void 0:s.call(a)])}}});o.Meta=c;o.Grid=f;o.install=function(e){return e.component(o.name,o),e.component(c.name,c),e.component(f.name,f),e};export{f as G,c as M}; +//# sourceMappingURL=index.8321252a.js.map diff --git a/abstra_statics/dist/assets/index.c9c8d27c.js b/abstra_statics/dist/assets/index.9c5136e0.js similarity index 86% rename from abstra_statics/dist/assets/index.c9c8d27c.js rename to abstra_statics/dist/assets/index.9c5136e0.js index 766a327a0..951404552 100644 --- a/abstra_statics/dist/assets/index.c9c8d27c.js +++ b/abstra_statics/dist/assets/index.9c5136e0.js @@ -1,2 +1,2 @@ -import{S as j,au as d,as as B,at as Se,aN as ke,d as q,Q as O,W as ue,J as W,g as E,ag as fe,ai as G,b as u,aY as ne,aZ as oe,a_ as ae,ak as D,aj as pe,b7 as $e,ap as me,e as xe,ck as Oe,ac as De,ad as Pe,ae as _e,f as T,B as Ne,ah as Te,c7 as Ie,V as Me,bo as Be,bT as K,aX as le,dB as re,a$ as je}from"./vue-router.4c13f3d4.js";import{i as ie}from"./isNumeric.75337b1e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="96db16b9-6b60-4369-9e88-b3a63ac62e36",e._sentryDebugIdIdentifier="sentry-dbid-96db16b9-6b60-4369-9e88-b3a63ac62e36")}catch{}})();const ye=()=>({prefixCls:String,width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:B(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:Se(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ke(),maskMotion:B()}),Ee=()=>j(j({},ye()),{forceRender:{type:Boolean,default:void 0},getContainer:d.oneOfType([d.string,d.func,d.object,d.looseBool])}),Ae=()=>j(j({},ye()),{getContainer:Function,getOpenCount:Function,scrollLocker:d.any,inline:Boolean});function Fe(e){return Array.isArray(e)?e:[e]}const ve={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},Ve=Object.keys(ve).filter(e=>{if(typeof document>"u")return!1;const o=document.getElementsByTagName("html")[0];return e in(o?o.style:{})})[0];ve[Ve];const ze=!(typeof window<"u"&&window.document&&window.document.createElement);var We=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{W(()=>{var a;const{open:s,getContainer:f,showMask:k,autofocus:y}=e,p=f==null?void 0:f();_(e),s&&(p&&(p.parentNode,document.body),W(()=>{y&&h()}),k&&((a=e.scrollLocker)===null||a===void 0||a.lock()))})}),E(()=>e.level,()=>{_(e)},{flush:"post"}),E(()=>e.open,()=>{const{open:a,getContainer:s,scrollLocker:f,showMask:k,autofocus:y}=e,p=s==null?void 0:s();p&&(p.parentNode,document.body),a?(y&&h(),k&&(f==null||f.lock())):f==null||f.unLock()},{flush:"post"}),fe(()=>{var a;const{open:s}=e;s&&(document.body.style.touchAction=""),(a=e.scrollLocker)===null||a===void 0||a.unLock()}),E(()=>e.placement,a=>{a&&(w.value=null)});const h=()=>{var a,s;(s=(a=S.value)===null||a===void 0?void 0:a.focus)===null||s===void 0||s.call(a)},v=a=>{r("close",a)},b=a=>{a.keyCode===$e.ESC&&(a.stopPropagation(),v(a))},C=()=>{const{open:a,afterVisibleChange:s}=e;s&&s(!!a)},_=a=>{let{level:s,getContainer:f}=a;if(ze)return;const k=f==null?void 0:f(),y=k?k.parentNode:null;m=[],s==="all"?(y?Array.prototype.slice.call(y.children):[]).forEach($=>{$.nodeName!=="SCRIPT"&&$.nodeName!=="STYLE"&&$.nodeName!=="LINK"&&$!==k&&m.push($)}):s&&Fe(s).forEach(p=>{document.querySelectorAll(p).forEach($=>{m.push($)})})},I=a=>{r("handleClick",a)},N=O(!1);return E(S,()=>{W(()=>{N.value=!0})}),()=>{var a,s;const{width:f,height:k,open:y,prefixCls:p,placement:$,level:A,levelMove:F,ease:J,duration:Q,getContainer:Z,onChange:ee,afterVisibleChange:te,showMask:V,maskClosable:L,maskStyle:H,keyboard:R,getOpenCount:n,scrollLocker:l,contentWrapperStyle:c,style:x,class:M,rootClassName:X,rootStyle:Y,maskMotion:he,motion:U,inline:be}=e,ge=We(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),z=y&&N.value,we=G(p,{[`${p}-${$}`]:!0,[`${p}-open`]:z,[`${p}-inline`]:be,"no-mask":!V,[X]:!0}),Ce=typeof U=="function"?U($):U;return u("div",D(D({},pe(ge,["autofocus"])),{},{tabindex:-1,class:we,style:Y,ref:S,onKeydown:z&&R?b:void 0}),[u(ne,he,{default:()=>[V&&oe(u("div",{class:`${p}-mask`,onClick:L?v:void 0,style:H,ref:P},null),[[ae,z]])]}),u(ne,D(D({},Ce),{},{onAfterEnter:C,onAfterLeave:C}),{default:()=>[oe(u("div",{class:`${p}-content-wrapper`,style:[c],ref:i},[u("div",{class:[`${p}-content`,M],style:x,ref:w},[(a=t.default)===null||a===void 0?void 0:a.call(t)]),t.handler?u("div",{onClick:I,ref:g},[(s=t.handler)===null||s===void 0?void 0:s.call(t)]):null]),[[ae,z]])]})])}}}),se=Le;var de=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,o){let{emit:r,slots:t}=o;const i=xe(null),S=g=>{r("handleClick",g)},P=g=>{r("close",g)};return()=>{const{getContainer:g,wrapperClassName:w,rootClassName:m,rootStyle:h,forceRender:v}=e,b=de(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let C=null;if(!g)return u(se,D(D({},b),{},{rootClassName:m,rootStyle:h,open:e.open,onClose:P,onHandleClick:S,inline:!0}),t);const _=!!t.handler||v;return(_||e.open||i.value)&&(C=u(Oe,{autoLock:!0,visible:e.open,forceRender:_,getContainer:g,wrapperClassName:w},{default:I=>{var{visible:N,afterClose:a}=I,s=de(I,["visible","afterClose"]);return u(se,D(D(D({ref:i},b),s),{},{rootClassName:m,rootStyle:h,open:N!==void 0?N:e.open,afterVisibleChange:a!==void 0?a:e.afterVisibleChange,onClose:P,onHandleClick:S}),t)}})),C}}}),Re=He,Xe=e=>{const{componentCls:o,motionDurationSlow:r}=e,t={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${r}`}}};return{[o]:{[`${o}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${r}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${o}-panel-motion`]:{"&-left":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},Ye=Xe,Ue=e=>{const{componentCls:o,zIndexPopup:r,colorBgMask:t,colorBgElevated:i,motionDurationSlow:S,motionDurationMid:P,padding:g,paddingLG:w,fontSizeLG:m,lineHeightLG:h,lineWidth:v,lineType:b,colorSplit:C,marginSM:_,colorIcon:I,colorIconHover:N,colorText:a,fontWeightStrong:s,drawerFooterPaddingVertical:f,drawerFooterPaddingHorizontal:k}=e,y=`${o}-content-wrapper`;return{[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:t,pointerEvents:"auto"},[y]:{position:"absolute",zIndex:r,transition:`all ${S}`,"&-hidden":{display:"none"}},[`&-left > ${y}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${y}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${y}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${y}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${g}px ${w}px`,fontSize:m,lineHeight:h,borderBottom:`${v}px ${b} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-block",marginInlineEnd:_,color:I,fontWeight:s,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${P}`,textRendering:"auto","&:focus, &:hover":{color:N,textDecoration:"none"}},[`${o}-title`]:{flex:1,margin:0,color:a,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:h},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:w,overflow:"auto"},[`${o}-footer`]:{flexShrink:0,padding:`${f}px ${k}px`,borderTop:`${v}px ${b} ${C}`},"&-rtl":{direction:"rtl"}}}},Ke=De("Drawer",e=>{const o=Pe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Ue(o),Ye(o)]},e=>({zIndexPopup:e.zIndexPopupBase}));var Ge=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:d.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:B(),rootClassName:String,rootStyle:B(),size:{type:String},drawerStyle:B(),headerStyle:B(),bodyStyle:B(),contentWrapperStyle:{type:Object,default:void 0},title:d.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),zIndex:Number,prefixCls:String,push:d.oneOfType([d.looseBool,{type:Object}]),placement:d.oneOf(qe),keyboard:{type:Boolean,default:void 0},extra:d.any,footer:d.any,footerStyle:B(),level:d.any,levelMove:{type:[Number,Array,Function]},handle:d.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),Qe=q({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:me(Je(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:ce}),slots:Object,setup(e,o){let{emit:r,slots:t,attrs:i}=o;const S=O(!1),P=O(!1),g=O(null),w=O(!1),m=O(!1),h=T(()=>{var n;return(n=e.open)!==null&&n!==void 0?n:e.visible});E(h,()=>{h.value?w.value=!0:m.value=!1},{immediate:!0}),E([h,w],()=>{h.value&&w.value&&(m.value=!0)},{immediate:!0});const v=Ne("parentDrawerOpts",null),{prefixCls:b,getPopupContainer:C,direction:_}=Te("drawer",e),[I,N]=Ke(b),a=T(()=>e.getContainer===void 0&&(C==null?void 0:C.value)?()=>C.value(document.body):e.getContainer);Ie(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Me("parentDrawerOpts",{setPush:()=>{S.value=!0},setPull:()=>{S.value=!1,W(()=>{k()})}}),ue(()=>{h.value&&v&&v.setPush()}),fe(()=>{v&&v.setPull()}),E(m,()=>{v&&(m.value?v.setPush():v.setPull())},{flush:"post"});const k=()=>{var n,l;(l=(n=g.value)===null||n===void 0?void 0:n.domFocus)===null||l===void 0||l.call(n)},y=n=>{r("update:visible",!1),r("update:open",!1),r("close",n)},p=n=>{var l;n||(P.value===!1&&(P.value=!0),e.destroyOnClose&&(w.value=!1)),(l=e.afterVisibleChange)===null||l===void 0||l.call(e,n),r("afterVisibleChange",n),r("afterOpenChange",n)},$=T(()=>{const{push:n,placement:l}=e;let c;return typeof n=="boolean"?c=n?ce.distance:0:c=n.distance,c=parseFloat(String(c||0)),l==="left"||l==="right"?`translateX(${l==="left"?c:-c}px)`:l==="top"||l==="bottom"?`translateY(${l==="top"?c:-c}px)`:null}),A=T(()=>{var n;return(n=e.width)!==null&&n!==void 0?n:e.size==="large"?736:378}),F=T(()=>{var n;return(n=e.height)!==null&&n!==void 0?n:e.size==="large"?736:378}),J=T(()=>{const{mask:n,placement:l}=e;if(!m.value&&!n)return{};const c={};return l==="left"||l==="right"?c.width=ie(A.value)?`${A.value}px`:A.value:c.height=ie(F.value)?`${F.value}px`:F.value,c}),Q=T(()=>{const{zIndex:n,contentWrapperStyle:l}=e,c=J.value;return[{zIndex:n,transform:S.value?$.value:void 0},j({},l),c]}),Z=n=>{const{closable:l,headerStyle:c}=e,x=K(t,e,"extra"),M=K(t,e,"title");return!M&&!l?null:u("div",{class:G(`${n}-header`,{[`${n}-header-close-only`]:l&&!M&&!x}),style:c},[u("div",{class:`${n}-header-title`},[ee(n),M&&u("div",{class:`${n}-title`},[M])]),x&&u("div",{class:`${n}-extra`},[x])])},ee=n=>{var l;const{closable:c}=e,x=t.closeIcon?(l=t.closeIcon)===null||l===void 0?void 0:l.call(t):e.closeIcon;return c&&u("button",{key:"closer",onClick:y,"aria-label":"Close",class:`${n}-close`},[x===void 0?u(je,null,null):x])},te=n=>{var l;if(P.value&&!e.forceRender&&!w.value)return null;const{bodyStyle:c,drawerStyle:x}=e;return u("div",{class:`${n}-wrapper-body`,style:x},[Z(n),u("div",{key:"body",class:`${n}-body`,style:c},[(l=t.default)===null||l===void 0?void 0:l.call(t)]),V(n)])},V=n=>{const l=K(t,e,"footer");if(!l)return null;const c=`${n}-footer`;return u("div",{class:c,style:e.footerStyle},[l])},L=T(()=>G({"no-mask":!e.mask,[`${b.value}-rtl`]:_.value==="rtl"},e.rootClassName,N.value)),H=T(()=>le(re(b.value,"mask-motion"))),R=n=>le(re(b.value,`panel-motion-${n}`));return()=>{const{width:n,height:l,placement:c,mask:x,forceRender:M}=e,X=Ge(e,["width","height","placement","mask","forceRender"]),Y=j(j(j({},i),pe(X,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:M,onClose:y,afterVisibleChange:p,handler:!1,prefixCls:b.value,open:m.value,showMask:x,placement:c,ref:g});return I(u(Be,null,{default:()=>[u(Re,D(D({},Y),{},{maskMotion:H.value,motion:R,width:A.value,height:F.value,getContainer:a.value,rootClassName:L.value,rootStyle:e.rootStyle,contentWrapperStyle:Q.value}),{handler:e.handle?()=>e.handle:t.handle,default:()=>te(b.value)})]}))}}}),tt=_e(Qe);export{tt as A}; -//# sourceMappingURL=index.c9c8d27c.js.map +import{S as j,au as d,as as B,at as Se,aN as ke,d as q,Q as O,W as ue,J as W,g as E,ag as fe,ai as G,b as u,aY as ne,aZ as oe,a_ as ae,ak as D,aj as pe,b7 as $e,ap as me,e as xe,ck as Oe,ac as De,ad as Pe,ae as _e,f as T,B as Ne,ah as Te,c7 as Ie,V as Me,bo as Be,bT as K,aX as le,dB as re,a$ as je}from"./vue-router.3fd92176.js";import{i as ie}from"./isNumeric.75337b1e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="56e2300f-a87c-4705-8297-5d5e711b65bd",e._sentryDebugIdIdentifier="sentry-dbid-56e2300f-a87c-4705-8297-5d5e711b65bd")}catch{}})();const ye=()=>({prefixCls:String,width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:B(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:Se(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ke(),maskMotion:B()}),Ee=()=>j(j({},ye()),{forceRender:{type:Boolean,default:void 0},getContainer:d.oneOfType([d.string,d.func,d.object,d.looseBool])}),Ae=()=>j(j({},ye()),{getContainer:Function,getOpenCount:Function,scrollLocker:d.any,inline:Boolean});function Fe(e){return Array.isArray(e)?e:[e]}const ve={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},Ve=Object.keys(ve).filter(e=>{if(typeof document>"u")return!1;const o=document.getElementsByTagName("html")[0];return e in(o?o.style:{})})[0];ve[Ve];const ze=!(typeof window<"u"&&window.document&&window.document.createElement);var We=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{W(()=>{var a;const{open:s,getContainer:f,showMask:k,autofocus:y}=e,p=f==null?void 0:f();_(e),s&&(p&&(p.parentNode,document.body),W(()=>{y&&h()}),k&&((a=e.scrollLocker)===null||a===void 0||a.lock()))})}),E(()=>e.level,()=>{_(e)},{flush:"post"}),E(()=>e.open,()=>{const{open:a,getContainer:s,scrollLocker:f,showMask:k,autofocus:y}=e,p=s==null?void 0:s();p&&(p.parentNode,document.body),a?(y&&h(),k&&(f==null||f.lock())):f==null||f.unLock()},{flush:"post"}),fe(()=>{var a;const{open:s}=e;s&&(document.body.style.touchAction=""),(a=e.scrollLocker)===null||a===void 0||a.unLock()}),E(()=>e.placement,a=>{a&&(w.value=null)});const h=()=>{var a,s;(s=(a=S.value)===null||a===void 0?void 0:a.focus)===null||s===void 0||s.call(a)},v=a=>{r("close",a)},g=a=>{a.keyCode===$e.ESC&&(a.stopPropagation(),v(a))},C=()=>{const{open:a,afterVisibleChange:s}=e;s&&s(!!a)},_=a=>{let{level:s,getContainer:f}=a;if(ze)return;const k=f==null?void 0:f(),y=k?k.parentNode:null;m=[],s==="all"?(y?Array.prototype.slice.call(y.children):[]).forEach($=>{$.nodeName!=="SCRIPT"&&$.nodeName!=="STYLE"&&$.nodeName!=="LINK"&&$!==k&&m.push($)}):s&&Fe(s).forEach(p=>{document.querySelectorAll(p).forEach($=>{m.push($)})})},I=a=>{r("handleClick",a)},N=O(!1);return E(S,()=>{W(()=>{N.value=!0})}),()=>{var a,s;const{width:f,height:k,open:y,prefixCls:p,placement:$,level:A,levelMove:F,ease:J,duration:Q,getContainer:Z,onChange:ee,afterVisibleChange:te,showMask:V,maskClosable:L,maskStyle:H,keyboard:R,getOpenCount:n,scrollLocker:l,contentWrapperStyle:c,style:x,class:M,rootClassName:X,rootStyle:Y,maskMotion:he,motion:U,inline:ge}=e,be=We(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),z=y&&N.value,we=G(p,{[`${p}-${$}`]:!0,[`${p}-open`]:z,[`${p}-inline`]:ge,"no-mask":!V,[X]:!0}),Ce=typeof U=="function"?U($):U;return u("div",D(D({},pe(be,["autofocus"])),{},{tabindex:-1,class:we,style:Y,ref:S,onKeydown:z&&R?g:void 0}),[u(ne,he,{default:()=>[V&&oe(u("div",{class:`${p}-mask`,onClick:L?v:void 0,style:H,ref:P},null),[[ae,z]])]}),u(ne,D(D({},Ce),{},{onAfterEnter:C,onAfterLeave:C}),{default:()=>[oe(u("div",{class:`${p}-content-wrapper`,style:[c],ref:i},[u("div",{class:[`${p}-content`,M],style:x,ref:w},[(a=t.default)===null||a===void 0?void 0:a.call(t)]),t.handler?u("div",{onClick:I,ref:b},[(s=t.handler)===null||s===void 0?void 0:s.call(t)]):null]),[[ae,z]])]})])}}}),se=Le;var de=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,o){let{emit:r,slots:t}=o;const i=xe(null),S=b=>{r("handleClick",b)},P=b=>{r("close",b)};return()=>{const{getContainer:b,wrapperClassName:w,rootClassName:m,rootStyle:h,forceRender:v}=e,g=de(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let C=null;if(!b)return u(se,D(D({},g),{},{rootClassName:m,rootStyle:h,open:e.open,onClose:P,onHandleClick:S,inline:!0}),t);const _=!!t.handler||v;return(_||e.open||i.value)&&(C=u(Oe,{autoLock:!0,visible:e.open,forceRender:_,getContainer:b,wrapperClassName:w},{default:I=>{var{visible:N,afterClose:a}=I,s=de(I,["visible","afterClose"]);return u(se,D(D(D({ref:i},g),s),{},{rootClassName:m,rootStyle:h,open:N!==void 0?N:e.open,afterVisibleChange:a!==void 0?a:e.afterVisibleChange,onClose:P,onHandleClick:S}),t)}})),C}}}),Re=He,Xe=e=>{const{componentCls:o,motionDurationSlow:r}=e,t={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${r}`}}};return{[o]:{[`${o}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${r}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${o}-panel-motion`]:{"&-left":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},Ye=Xe,Ue=e=>{const{componentCls:o,zIndexPopup:r,colorBgMask:t,colorBgElevated:i,motionDurationSlow:S,motionDurationMid:P,padding:b,paddingLG:w,fontSizeLG:m,lineHeightLG:h,lineWidth:v,lineType:g,colorSplit:C,marginSM:_,colorIcon:I,colorIconHover:N,colorText:a,fontWeightStrong:s,drawerFooterPaddingVertical:f,drawerFooterPaddingHorizontal:k}=e,y=`${o}-content-wrapper`;return{[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:t,pointerEvents:"auto"},[y]:{position:"absolute",zIndex:r,transition:`all ${S}`,"&-hidden":{display:"none"}},[`&-left > ${y}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${y}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${y}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${y}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${b}px ${w}px`,fontSize:m,lineHeight:h,borderBottom:`${v}px ${g} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-block",marginInlineEnd:_,color:I,fontWeight:s,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${P}`,textRendering:"auto","&:focus, &:hover":{color:N,textDecoration:"none"}},[`${o}-title`]:{flex:1,margin:0,color:a,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:h},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:w,overflow:"auto"},[`${o}-footer`]:{flexShrink:0,padding:`${f}px ${k}px`,borderTop:`${v}px ${g} ${C}`},"&-rtl":{direction:"rtl"}}}},Ke=De("Drawer",e=>{const o=Pe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Ue(o),Ye(o)]},e=>({zIndexPopup:e.zIndexPopupBase}));var Ge=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:d.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:B(),rootClassName:String,rootStyle:B(),size:{type:String},drawerStyle:B(),headerStyle:B(),bodyStyle:B(),contentWrapperStyle:{type:Object,default:void 0},title:d.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),zIndex:Number,prefixCls:String,push:d.oneOfType([d.looseBool,{type:Object}]),placement:d.oneOf(qe),keyboard:{type:Boolean,default:void 0},extra:d.any,footer:d.any,footerStyle:B(),level:d.any,levelMove:{type:[Number,Array,Function]},handle:d.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),Qe=q({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:me(Je(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:ce}),slots:Object,setup(e,o){let{emit:r,slots:t,attrs:i}=o;const S=O(!1),P=O(!1),b=O(null),w=O(!1),m=O(!1),h=T(()=>{var n;return(n=e.open)!==null&&n!==void 0?n:e.visible});E(h,()=>{h.value?w.value=!0:m.value=!1},{immediate:!0}),E([h,w],()=>{h.value&&w.value&&(m.value=!0)},{immediate:!0});const v=Ne("parentDrawerOpts",null),{prefixCls:g,getPopupContainer:C,direction:_}=Te("drawer",e),[I,N]=Ke(g),a=T(()=>e.getContainer===void 0&&(C==null?void 0:C.value)?()=>C.value(document.body):e.getContainer);Ie(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Me("parentDrawerOpts",{setPush:()=>{S.value=!0},setPull:()=>{S.value=!1,W(()=>{k()})}}),ue(()=>{h.value&&v&&v.setPush()}),fe(()=>{v&&v.setPull()}),E(m,()=>{v&&(m.value?v.setPush():v.setPull())},{flush:"post"});const k=()=>{var n,l;(l=(n=b.value)===null||n===void 0?void 0:n.domFocus)===null||l===void 0||l.call(n)},y=n=>{r("update:visible",!1),r("update:open",!1),r("close",n)},p=n=>{var l;n||(P.value===!1&&(P.value=!0),e.destroyOnClose&&(w.value=!1)),(l=e.afterVisibleChange)===null||l===void 0||l.call(e,n),r("afterVisibleChange",n),r("afterOpenChange",n)},$=T(()=>{const{push:n,placement:l}=e;let c;return typeof n=="boolean"?c=n?ce.distance:0:c=n.distance,c=parseFloat(String(c||0)),l==="left"||l==="right"?`translateX(${l==="left"?c:-c}px)`:l==="top"||l==="bottom"?`translateY(${l==="top"?c:-c}px)`:null}),A=T(()=>{var n;return(n=e.width)!==null&&n!==void 0?n:e.size==="large"?736:378}),F=T(()=>{var n;return(n=e.height)!==null&&n!==void 0?n:e.size==="large"?736:378}),J=T(()=>{const{mask:n,placement:l}=e;if(!m.value&&!n)return{};const c={};return l==="left"||l==="right"?c.width=ie(A.value)?`${A.value}px`:A.value:c.height=ie(F.value)?`${F.value}px`:F.value,c}),Q=T(()=>{const{zIndex:n,contentWrapperStyle:l}=e,c=J.value;return[{zIndex:n,transform:S.value?$.value:void 0},j({},l),c]}),Z=n=>{const{closable:l,headerStyle:c}=e,x=K(t,e,"extra"),M=K(t,e,"title");return!M&&!l?null:u("div",{class:G(`${n}-header`,{[`${n}-header-close-only`]:l&&!M&&!x}),style:c},[u("div",{class:`${n}-header-title`},[ee(n),M&&u("div",{class:`${n}-title`},[M])]),x&&u("div",{class:`${n}-extra`},[x])])},ee=n=>{var l;const{closable:c}=e,x=t.closeIcon?(l=t.closeIcon)===null||l===void 0?void 0:l.call(t):e.closeIcon;return c&&u("button",{key:"closer",onClick:y,"aria-label":"Close",class:`${n}-close`},[x===void 0?u(je,null,null):x])},te=n=>{var l;if(P.value&&!e.forceRender&&!w.value)return null;const{bodyStyle:c,drawerStyle:x}=e;return u("div",{class:`${n}-wrapper-body`,style:x},[Z(n),u("div",{key:"body",class:`${n}-body`,style:c},[(l=t.default)===null||l===void 0?void 0:l.call(t)]),V(n)])},V=n=>{const l=K(t,e,"footer");if(!l)return null;const c=`${n}-footer`;return u("div",{class:c,style:e.footerStyle},[l])},L=T(()=>G({"no-mask":!e.mask,[`${g.value}-rtl`]:_.value==="rtl"},e.rootClassName,N.value)),H=T(()=>le(re(g.value,"mask-motion"))),R=n=>le(re(g.value,`panel-motion-${n}`));return()=>{const{width:n,height:l,placement:c,mask:x,forceRender:M}=e,X=Ge(e,["width","height","placement","mask","forceRender"]),Y=j(j(j({},i),pe(X,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:M,onClose:y,afterVisibleChange:p,handler:!1,prefixCls:g.value,open:m.value,showMask:x,placement:c,ref:b});return I(u(Be,null,{default:()=>[u(Re,D(D({},Y),{},{maskMotion:H.value,motion:R,width:A.value,height:F.value,getContainer:a.value,rootClassName:L.value,rootStyle:e.rootStyle,contentWrapperStyle:Q.value}),{handler:e.handle?()=>e.handle:t.handle,default:()=>te(g.value)})]}))}}}),tt=_e(Qe);export{tt as A}; +//# sourceMappingURL=index.9c5136e0.js.map diff --git a/abstra_statics/dist/assets/index.bb32f6bd.js b/abstra_statics/dist/assets/index.bb32f6bd.js deleted file mode 100644 index 5ea9e2b87..000000000 --- a/abstra_statics/dist/assets/index.bb32f6bd.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C as o}from"./Card.b3c66431.js";import{d as p,ah as g,bT as c,b as r,bE as d,f as y}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c368c240-1df0-4f0b-b3d7-3cd34b0ec647",e._sentryDebugIdIdentifier="sentry-dbid-c368c240-1df0-4f0b-b3d7-3cd34b0ec647")}catch{}})();const _=()=>({prefixCls:String,title:d(),description:d(),avatar:d()}),i=p({compatConfig:{MODE:3},name:"ACardMeta",props:_(),slots:Object,setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e);return()=>{const l={[`${t.value}-meta`]:!0},s=c(a,e,"avatar"),f=c(a,e,"title"),v=c(a,e,"description"),C=s?r("div",{class:`${t.value}-meta-avatar`},[s]):null,m=f?r("div",{class:`${t.value}-meta-title`},[f]):null,b=v?r("div",{class:`${t.value}-meta-description`},[v]):null,D=m||b?r("div",{class:`${t.value}-meta-detail`},[m,b]):null;return r("div",{class:l},[C,D])}}}),M=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),u=p({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:M(),setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e),l=y(()=>({[`${t.value}-grid`]:!0,[`${t.value}-grid-hoverable`]:e.hoverable}));return()=>{var s;return r("div",{class:l.value},[(s=a.default)===null||s===void 0?void 0:s.call(a)])}}});o.Meta=i;o.Grid=u;o.install=function(e){return e.component(o.name,o),e.component(i.name,i),e.component(u.name,u),e};export{u as G,i as M}; -//# sourceMappingURL=index.bb32f6bd.js.map diff --git a/abstra_statics/dist/assets/index.52fae423.js b/abstra_statics/dist/assets/index.bd967757.js similarity index 84% rename from abstra_statics/dist/assets/index.52fae423.js rename to abstra_statics/dist/assets/index.bd967757.js index efb516778..d629020e3 100644 --- a/abstra_statics/dist/assets/index.52fae423.js +++ b/abstra_statics/dist/assets/index.bd967757.js @@ -1,2 +1,2 @@ -import{a0 as f,a1 as S,a2 as y,S as n,a3 as i,a4 as h,a5 as z,a6 as b,a7 as g,a8 as C}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="1fe8c544-35bd-4a77-96b9-0a439fd1804f",o._sentryDebugIdIdentifier="sentry-dbid-1fe8c544-35bd-4a77-96b9-0a439fd1804f")}catch{}})();const a=(o,e)=>new f(o).setAlpha(e).toRgbString(),l=(o,e)=>new f(o).lighten(e).toHexString(),B=o=>{const e=S(o,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},M=(o,e)=>{const r=o||"#000",t=e||"#fff";return{colorBgBase:r,colorTextBase:t,colorText:a(t,.85),colorTextSecondary:a(t,.65),colorTextTertiary:a(t,.45),colorTextQuaternary:a(t,.25),colorFill:a(t,.18),colorFillSecondary:a(t,.12),colorFillTertiary:a(t,.08),colorFillQuaternary:a(t,.04),colorBgElevated:l(r,12),colorBgContainer:l(r,8),colorBgLayout:l(r,0),colorBgSpotlight:l(r,26),colorBorder:l(r,26),colorBorderSecondary:l(r,19)}},p=(o,e)=>{const r=Object.keys(y).map(s=>{const c=S(o[s],{theme:"dark"});return new Array(10).fill(1).reduce((d,A,u)=>(d[`${s}-${u+1}`]=c[u],d),{})}).reduce((s,c)=>(s=n(n({},s),c),s),{}),t=e!=null?e:i(o);return n(n(n({},t),r),h(o,{generateColorPalettes:B,generateNeutralColorPalettes:M}))},v=p;function w(o){const{sizeUnit:e,sizeStep:r}=o,t=r-2;return{sizeXXL:e*(t+10),sizeXL:e*(t+6),sizeLG:e*(t+2),sizeMD:e*(t+2),sizeMS:e*(t+1),size:e*t,sizeSM:e*t,sizeXS:e*(t-1),sizeXXS:e*(t-1)}}const x=(o,e)=>{const r=e!=null?e:i(o),t=r.fontSizeSM,s=r.controlHeight-4;return n(n(n(n(n({},r),w(e!=null?e:o)),b(t)),{controlHeight:s}),z(n(n({},r),{controlHeight:s})))},T=x;function m(){const[o,e,r]=C();return{theme:o,token:e,hashId:r}}const X={defaultConfig:g,defaultSeed:g.token,useToken:m,defaultAlgorithm:i,darkAlgorithm:v,compactAlgorithm:T};export{X as t}; -//# sourceMappingURL=index.52fae423.js.map +import{a0 as f,a1 as S,a2 as y,S as n,a3 as i,a4 as h,a5 as z,a6 as b,a7 as g,a8 as C}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="d232086b-02e5-45a5-967a-a45912af2089",o._sentryDebugIdIdentifier="sentry-dbid-d232086b-02e5-45a5-967a-a45912af2089")}catch{}})();const a=(o,e)=>new f(o).setAlpha(e).toRgbString(),l=(o,e)=>new f(o).lighten(e).toHexString(),B=o=>{const e=S(o,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},M=(o,e)=>{const r=o||"#000",t=e||"#fff";return{colorBgBase:r,colorTextBase:t,colorText:a(t,.85),colorTextSecondary:a(t,.65),colorTextTertiary:a(t,.45),colorTextQuaternary:a(t,.25),colorFill:a(t,.18),colorFillSecondary:a(t,.12),colorFillTertiary:a(t,.08),colorFillQuaternary:a(t,.04),colorBgElevated:l(r,12),colorBgContainer:l(r,8),colorBgLayout:l(r,0),colorBgSpotlight:l(r,26),colorBorder:l(r,26),colorBorderSecondary:l(r,19)}},p=(o,e)=>{const r=Object.keys(y).map(s=>{const c=S(o[s],{theme:"dark"});return new Array(10).fill(1).reduce((d,A,u)=>(d[`${s}-${u+1}`]=c[u],d),{})}).reduce((s,c)=>(s=n(n({},s),c),s),{}),t=e!=null?e:i(o);return n(n(n({},t),r),h(o,{generateColorPalettes:B,generateNeutralColorPalettes:M}))},v=p;function w(o){const{sizeUnit:e,sizeStep:r}=o,t=r-2;return{sizeXXL:e*(t+10),sizeXL:e*(t+6),sizeLG:e*(t+2),sizeMD:e*(t+2),sizeMS:e*(t+1),size:e*t,sizeSM:e*t,sizeXS:e*(t-1),sizeXXS:e*(t-1)}}const x=(o,e)=>{const r=e!=null?e:i(o),t=r.fontSizeSM,s=r.controlHeight-4;return n(n(n(n(n({},r),w(e!=null?e:o)),b(t)),{controlHeight:s}),z(n(n({},r),{controlHeight:s})))},T=x;function m(){const[o,e,r]=C();return{theme:o,token:e,hashId:r}}const X={defaultConfig:g,defaultSeed:g.token,useToken:m,defaultAlgorithm:i,darkAlgorithm:v,compactAlgorithm:T};export{X as t}; +//# sourceMappingURL=index.bd967757.js.map diff --git a/abstra_statics/dist/assets/index.c2ef572b.js b/abstra_statics/dist/assets/index.c2ef572b.js deleted file mode 100644 index d27996ccd..000000000 --- a/abstra_statics/dist/assets/index.c2ef572b.js +++ /dev/null @@ -1,2 +0,0 @@ -import{ac as S,ad as w,S as s,ao as y,ae as z,d as C,ah as M,f as d,aC as I,b as f,ak as u}from"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2c5bed27-1663-44ac-8eb1-29132864c4dd",t._sentryDebugIdIdentifier="sentry-dbid-2c5bed27-1663-44ac-8eb1-29132864c4dd")}catch{}})();const D=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:i}=t;return{[e]:s(s({},y(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStart:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:o}}})}},B=S("Divider",t=>{const e=w(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[D(e)]},{sizePaddingEdgeHorizontal:0}),E=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),G=C({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:E(),setup(t,e){let{slots:o,attrs:r}=e;const{prefixCls:i,direction:b}=M("divider",t),[v,c]=B(i),g=d(()=>t.orientation==="left"&&t.orientationMargin!=null),h=d(()=>t.orientation==="right"&&t.orientationMargin!=null),$=d(()=>{const{type:n,dashed:l,plain:x}=t,a=i.value;return{[a]:!0,[c.value]:!!c.value,[`${a}-${n}`]:!0,[`${a}-dashed`]:!!l,[`${a}-plain`]:!!x,[`${a}-rtl`]:b.value==="rtl",[`${a}-no-default-orientation-margin-left`]:g.value,[`${a}-no-default-orientation-margin-right`]:h.value}}),m=d(()=>{const n=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return s(s({},g.value&&{marginLeft:n}),h.value&&{marginRight:n})}),p=d(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var n;const l=I((n=o.default)===null||n===void 0?void 0:n.call(o));return v(f("div",u(u({},r),{},{class:[$.value,l.length?`${i.value}-with-text ${i.value}-with-text${p.value}`:"",r.class],role:"separator"}),[l.length?f("span",{class:`${i.value}-inner-text`,style:m.value},[l]):null]))}}}),W=z(G);export{W as A}; -//# sourceMappingURL=index.c2ef572b.js.map diff --git a/abstra_statics/dist/assets/index.c6ce1c1c.js b/abstra_statics/dist/assets/index.c6ce1c1c.js new file mode 100644 index 000000000..d7d3b6f4d --- /dev/null +++ b/abstra_statics/dist/assets/index.c6ce1c1c.js @@ -0,0 +1,2 @@ +import{ac as S,ad as w,S as s,ao as y,ae as z,d as C,ah as M,f as d,aC as I,b as c,ak as u}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e196d76a-e6e8-42f8-8bac-a768fbe1f252",e._sentryDebugIdIdentifier="sentry-dbid-e196d76a-e6e8-42f8-8bac-a768fbe1f252")}catch{}})();const D=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:i}=e;return{[t]:s(s({},y(e)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}})}},B=S("Divider",e=>{const t=w(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[D(t)]},{sizePaddingEdgeHorizontal:0}),E=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),G=C({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:E(),setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:i,direction:b}=M("divider",e),[v,f]=B(i),g=d(()=>e.orientation==="left"&&e.orientationMargin!=null),h=d(()=>e.orientation==="right"&&e.orientationMargin!=null),$=d(()=>{const{type:n,dashed:l,plain:x}=e,a=i.value;return{[a]:!0,[f.value]:!!f.value,[`${a}-${n}`]:!0,[`${a}-dashed`]:!!l,[`${a}-plain`]:!!x,[`${a}-rtl`]:b.value==="rtl",[`${a}-no-default-orientation-margin-left`]:g.value,[`${a}-no-default-orientation-margin-right`]:h.value}}),m=d(()=>{const n=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return s(s({},g.value&&{marginLeft:n}),h.value&&{marginRight:n})}),p=d(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var n;const l=I((n=o.default)===null||n===void 0?void 0:n.call(o));return v(c("div",u(u({},r),{},{class:[$.value,l.length?`${i.value}-with-text ${i.value}-with-text${p.value}`:"",r.class],role:"separator"}),[l.length?c("span",{class:`${i.value}-inner-text`,style:m.value},[l]):null]))}}}),W=z(G);export{W as A}; +//# sourceMappingURL=index.c6ce1c1c.js.map diff --git a/abstra_statics/dist/assets/index.2d05e5d1.js b/abstra_statics/dist/assets/index.eafefd9b.js similarity index 96% rename from abstra_statics/dist/assets/index.2d05e5d1.js rename to abstra_statics/dist/assets/index.eafefd9b.js index 236844c72..8ac66de1a 100644 --- a/abstra_statics/dist/assets/index.2d05e5d1.js +++ b/abstra_statics/dist/assets/index.eafefd9b.js @@ -1,2 +1,2 @@ -import{d as Y,ah as q,b as r,au as A,B as ve,e as D,aC as le,ak as E,ai as oe,di as $e,aE as fe,dJ as pe,dK as he,ac as ye,ad as Se,S as w,ao as be,ap as xe,V as Ie,bA as te,f as C,g as Ce,aO as _e,dL as Le,bP as ze,dj as we,bx as Me,aM as ie,at as Pe,bE as W,as as ne,b6 as J,aN as Ee,dI as ae}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8120f628-af05-42bf-9290-1c1ebd226188",e._sentryDebugIdIdentifier="sentry-dbid-8120f628-af05-42bf-9290-1c1ebd226188")}catch{}})();const Te=()=>({avatar:A.any,description:A.any,prefixCls:String,title:A.any}),Ae=Y({compatConfig:{MODE:3},name:"AListItemMeta",props:Te(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:i}=t;const{prefixCls:l}=q("list",e);return()=>{var o,c,v,a,y,d;const u=`${l.value}-item-meta`,g=(o=e.title)!==null&&o!==void 0?o:(c=i.title)===null||c===void 0?void 0:c.call(i),s=(v=e.description)!==null&&v!==void 0?v:(a=i.description)===null||a===void 0?void 0:a.call(i),p=(y=e.avatar)!==null&&y!==void 0?y:(d=i.avatar)===null||d===void 0?void 0:d.call(i),$=r("div",{class:`${l.value}-item-meta-content`},[g&&r("h4",{class:`${l.value}-item-meta-title`},[g]),s&&r("div",{class:`${l.value}-item-meta-description`},[s])]);return r("div",{class:u},[p&&r("div",{class:`${l.value}-item-meta-avatar`},[p]),(g||s)&&$])}}}),re=Symbol("ListContextKey");var Be=globalThis&&globalThis.__rest||function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o({prefixCls:String,extra:A.any,actions:A.array,grid:Object,colStyle:{type:Object,default:void 0}}),je=Y({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:Ae,props:Oe(),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;const{itemLayout:o,grid:c}=ve(re,{grid:D(),itemLayout:D()}),{prefixCls:v}=q("list",e),a=()=>{var d;const u=((d=i.default)===null||d===void 0?void 0:d.call(i))||[];let g;return u.forEach(s=>{pe(s)&&!he(s)&&(g=!0)}),g&&u.length>1},y=()=>{var d,u;const g=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i);return o.value==="vertical"?!!g:!a()};return()=>{var d,u,g,s,p;const{class:$}=l,x=Be(l,["class"]),h=v.value,L=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i),B=(g=i.default)===null||g===void 0?void 0:g.call(i);let f=(s=e.actions)!==null&&s!==void 0?s:le((p=i.actions)===null||p===void 0?void 0:p.call(i));f=f&&!Array.isArray(f)?[f]:f;const M=f&&f.length>0&&r("ul",{class:`${h}-item-action`,key:"actions"},[f.map((I,T)=>r("li",{key:`${h}-item-action-${T}`},[I,T!==f.length-1&&r("em",{class:`${h}-item-action-split`},null)]))]),O=c.value?"div":"li",j=r(O,E(E({},x),{},{class:oe(`${h}-item`,{[`${h}-item-no-flex`]:!y()},$)}),{default:()=>[o.value==="vertical"&&L?[r("div",{class:`${h}-item-main`,key:"content"},[B,M]),r("div",{class:`${h}-item-extra`,key:"extra"},[L])]:[B,M,fe(L,{key:"extra"})]]});return c.value?r($e,{flex:1,style:e.colStyle},{default:()=>[j]}):j}}}),He=e=>{const{listBorderedCls:t,componentCls:i,paddingLG:l,margin:o,padding:c,listItemPaddingSM:v,marginLG:a,borderRadiusLG:y}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:y,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:l},[`${i}-pagination`]:{margin:`${o}px ${a}px`}},[`${t}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:v}},[`${t}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:`${c}px ${l}px`}}}},We=e=>{const{componentCls:t,screenSM:i,screenMD:l,marginLG:o,marginSM:c,margin:v}=e;return{[`@media screen and (max-width:${l})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${i})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:c}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${v}px`}}}}}},De=e=>{const{componentCls:t,antCls:i,controlHeight:l,minHeight:o,paddingSM:c,marginLG:v,padding:a,listItemPadding:y,colorPrimary:d,listItemPaddingSM:u,listItemPaddingLG:g,paddingXS:s,margin:p,colorText:$,colorTextDescription:x,motionDurationSlow:h,lineWidth:L}=e;return{[`${t}`]:w(w({},be(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:c},[`${t}-pagination`]:{marginBlockStart:v,textAlign:"end",[`${i}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:y,color:$,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:$},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:$,transition:`all ${h}`,["&:hover"]:{color:d}}},[`${t}-item-meta-description`]:{color:x,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${s}px`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:L,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${i}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:v},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:c,color:$,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:l},[`${t}-split${t}-something-after-last-item ${i}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Ge=ye("List",e=>{const t=Se(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[De(t),He(t),We(t)]},{contentWidth:220}),Ke=()=>({bordered:ie(),dataSource:Pe(),extra:W(),grid:ne(),itemLayout:String,loading:J([Boolean,Object]),loadMore:W(),pagination:J([Boolean,Object]),prefixCls:String,rowKey:J([String,Number,Function]),renderItem:Ee(),size:String,split:ie(),header:W(),footer:W(),locale:ne()}),_=Y({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:je,props:xe(Ke(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;var o,c;Ie(re,{grid:te(e,"grid"),itemLayout:te(e,"itemLayout")});const v={current:1,total:0},{prefixCls:a,direction:y,renderEmpty:d}=q("list",e),[u,g]=Ge(a),s=C(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),p=D((o=s.value.defaultCurrent)!==null&&o!==void 0?o:1),$=D((c=s.value.defaultPageSize)!==null&&c!==void 0?c:10);Ce(s,()=>{"current"in s.value&&(p.value=s.value.current),"pageSize"in s.value&&($.value=s.value.pageSize)});const x=[],h=n=>(m,S)=>{p.value=m,$.value=S,s.value[n]&&s.value[n](m,S)},L=h("onChange"),B=h("onShowSizeChange"),f=C(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),M=C(()=>f.value&&f.value.spinning),O=C(()=>{let n="";switch(e.size){case"large":n="lg";break;case"small":n="sm";break}return n}),j=C(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${O.value}`]:O.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:M.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:y.value==="rtl"})),I=C(()=>{const n=w(w(w({},v),{total:e.dataSource.length,current:p.value,pageSize:$.value}),e.pagination||{}),m=Math.ceil(n.total/n.pageSize);return n.current>m&&(n.current=m),n}),T=C(()=>{let n=[...e.dataSource];return e.pagination&&e.dataSource.length>(I.value.current-1)*I.value.pageSize&&(n=[...e.dataSource].splice((I.value.current-1)*I.value.pageSize,I.value.pageSize)),n}),se=_e(),G=Le(()=>{for(let n=0;n{if(!e.grid)return;const n=G.value&&e.grid[G.value]?e.grid[G.value]:e.grid.column;if(n)return{width:`${100/n}%`,maxWidth:`${100/n}%`}}),ce=(n,m)=>{var S;const P=(S=e.renderItem)!==null&&S!==void 0?S:i.renderItem;if(!P)return null;let b;const z=typeof e.rowKey;return z==="function"?b=e.rowKey(n):z==="string"||z==="number"?b=n[e.rowKey]:b=n.key,b||(b=`list-item-${m}`),x[m]=b,P({item:n,index:m})};return()=>{var n,m,S,P,b,z,K,N;const Q=(n=e.loadMore)!==null&&n!==void 0?n:(m=i.loadMore)===null||m===void 0?void 0:m.call(i),X=(S=e.footer)!==null&&S!==void 0?S:(P=i.footer)===null||P===void 0?void 0:P.call(i),U=(b=e.header)!==null&&b!==void 0?b:(z=i.header)===null||z===void 0?void 0:z.call(i),Z=le((K=i.default)===null||K===void 0?void 0:K.call(i)),ue=!!(Q||e.pagination||X),ge=oe(w(w({},j.value),{[`${a.value}-something-after-last-item`]:ue}),l.class,g.value),k=e.pagination?r("div",{class:`${a.value}-pagination`},[r(ze,E(E({},I.value),{},{onChange:L,onShowSizeChange:B}),null)]):null;let R=M.value&&r("div",{style:{minHeight:"53px"}},null);if(T.value.length>0){x.length=0;const ee=T.value.map((V,F)=>ce(V,F)),me=ee.map((V,F)=>r("div",{key:x[F],style:de.value},[V]));R=e.grid?r(we,{gutter:e.grid.gutter},{default:()=>[me]}):r("ul",{class:`${a.value}-items`},[ee])}else!Z.length&&!M.value&&(R=r("div",{class:`${a.value}-empty-text`},[((N=e.locale)===null||N===void 0?void 0:N.emptyText)||d("List")]));const H=I.value.position||"bottom";return u(r("div",E(E({},l),{},{class:ge}),[(H==="top"||H==="both")&&k,U&&r("div",{class:`${a.value}-header`},[U]),r(Me,f.value,{default:()=>[R,Z]}),X&&r("div",{class:`${a.value}-footer`},[X]),Q||(H==="bottom"||H==="both")&&k]))}}});_.install=function(e){return e.component(_.name,_),e.component(_.Item.name,_.Item),e.component(_.Item.Meta.name,_.Item.Meta),e};const Xe=_;export{Xe as A,Ae as I,je as a}; -//# sourceMappingURL=index.2d05e5d1.js.map +import{d as Y,ah as q,b as r,au as A,B as ve,e as D,aC as le,ak as E,ai as oe,di as $e,aE as fe,dJ as pe,dK as he,ac as ye,ad as Se,S as w,ao as be,ap as xe,V as Ie,bA as te,f as C,g as Ce,aO as _e,dL as Le,bP as ze,dj as we,bx as Me,aM as ie,at as Pe,bE as W,as as ne,b6 as J,aN as Ee,dI as ae}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="de34b868-c12f-47b6-980c-5e65b75a9e87",e._sentryDebugIdIdentifier="sentry-dbid-de34b868-c12f-47b6-980c-5e65b75a9e87")}catch{}})();const Te=()=>({avatar:A.any,description:A.any,prefixCls:String,title:A.any}),Ae=Y({compatConfig:{MODE:3},name:"AListItemMeta",props:Te(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:i}=t;const{prefixCls:l}=q("list",e);return()=>{var o,c,v,a,y,d;const u=`${l.value}-item-meta`,g=(o=e.title)!==null&&o!==void 0?o:(c=i.title)===null||c===void 0?void 0:c.call(i),s=(v=e.description)!==null&&v!==void 0?v:(a=i.description)===null||a===void 0?void 0:a.call(i),p=(y=e.avatar)!==null&&y!==void 0?y:(d=i.avatar)===null||d===void 0?void 0:d.call(i),$=r("div",{class:`${l.value}-item-meta-content`},[g&&r("h4",{class:`${l.value}-item-meta-title`},[g]),s&&r("div",{class:`${l.value}-item-meta-description`},[s])]);return r("div",{class:u},[p&&r("div",{class:`${l.value}-item-meta-avatar`},[p]),(g||s)&&$])}}}),re=Symbol("ListContextKey");var Be=globalThis&&globalThis.__rest||function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o({prefixCls:String,extra:A.any,actions:A.array,grid:Object,colStyle:{type:Object,default:void 0}}),je=Y({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:Ae,props:Oe(),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;const{itemLayout:o,grid:c}=ve(re,{grid:D(),itemLayout:D()}),{prefixCls:v}=q("list",e),a=()=>{var d;const u=((d=i.default)===null||d===void 0?void 0:d.call(i))||[];let g;return u.forEach(s=>{pe(s)&&!he(s)&&(g=!0)}),g&&u.length>1},y=()=>{var d,u;const g=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i);return o.value==="vertical"?!!g:!a()};return()=>{var d,u,g,s,p;const{class:$}=l,x=Be(l,["class"]),h=v.value,L=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i),B=(g=i.default)===null||g===void 0?void 0:g.call(i);let f=(s=e.actions)!==null&&s!==void 0?s:le((p=i.actions)===null||p===void 0?void 0:p.call(i));f=f&&!Array.isArray(f)?[f]:f;const M=f&&f.length>0&&r("ul",{class:`${h}-item-action`,key:"actions"},[f.map((I,T)=>r("li",{key:`${h}-item-action-${T}`},[I,T!==f.length-1&&r("em",{class:`${h}-item-action-split`},null)]))]),O=c.value?"div":"li",j=r(O,E(E({},x),{},{class:oe(`${h}-item`,{[`${h}-item-no-flex`]:!y()},$)}),{default:()=>[o.value==="vertical"&&L?[r("div",{class:`${h}-item-main`,key:"content"},[B,M]),r("div",{class:`${h}-item-extra`,key:"extra"},[L])]:[B,M,fe(L,{key:"extra"})]]});return c.value?r($e,{flex:1,style:e.colStyle},{default:()=>[j]}):j}}}),He=e=>{const{listBorderedCls:t,componentCls:i,paddingLG:l,margin:o,padding:c,listItemPaddingSM:v,marginLG:a,borderRadiusLG:y}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:y,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:l},[`${i}-pagination`]:{margin:`${o}px ${a}px`}},[`${t}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:v}},[`${t}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:`${c}px ${l}px`}}}},We=e=>{const{componentCls:t,screenSM:i,screenMD:l,marginLG:o,marginSM:c,margin:v}=e;return{[`@media screen and (max-width:${l})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${i})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:c}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${v}px`}}}}}},De=e=>{const{componentCls:t,antCls:i,controlHeight:l,minHeight:o,paddingSM:c,marginLG:v,padding:a,listItemPadding:y,colorPrimary:d,listItemPaddingSM:u,listItemPaddingLG:g,paddingXS:s,margin:p,colorText:$,colorTextDescription:x,motionDurationSlow:h,lineWidth:L}=e;return{[`${t}`]:w(w({},be(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:c},[`${t}-pagination`]:{marginBlockStart:v,textAlign:"end",[`${i}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:y,color:$,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:$},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:$,transition:`all ${h}`,["&:hover"]:{color:d}}},[`${t}-item-meta-description`]:{color:x,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${s}px`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:L,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${i}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:v},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:c,color:$,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:l},[`${t}-split${t}-something-after-last-item ${i}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Ge=ye("List",e=>{const t=Se(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[De(t),He(t),We(t)]},{contentWidth:220}),Ke=()=>({bordered:ie(),dataSource:Pe(),extra:W(),grid:ne(),itemLayout:String,loading:J([Boolean,Object]),loadMore:W(),pagination:J([Boolean,Object]),prefixCls:String,rowKey:J([String,Number,Function]),renderItem:Ee(),size:String,split:ie(),header:W(),footer:W(),locale:ne()}),_=Y({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:je,props:xe(Ke(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;var o,c;Ie(re,{grid:te(e,"grid"),itemLayout:te(e,"itemLayout")});const v={current:1,total:0},{prefixCls:a,direction:y,renderEmpty:d}=q("list",e),[u,g]=Ge(a),s=C(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),p=D((o=s.value.defaultCurrent)!==null&&o!==void 0?o:1),$=D((c=s.value.defaultPageSize)!==null&&c!==void 0?c:10);Ce(s,()=>{"current"in s.value&&(p.value=s.value.current),"pageSize"in s.value&&($.value=s.value.pageSize)});const x=[],h=n=>(m,S)=>{p.value=m,$.value=S,s.value[n]&&s.value[n](m,S)},L=h("onChange"),B=h("onShowSizeChange"),f=C(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),M=C(()=>f.value&&f.value.spinning),O=C(()=>{let n="";switch(e.size){case"large":n="lg";break;case"small":n="sm";break}return n}),j=C(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${O.value}`]:O.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:M.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:y.value==="rtl"})),I=C(()=>{const n=w(w(w({},v),{total:e.dataSource.length,current:p.value,pageSize:$.value}),e.pagination||{}),m=Math.ceil(n.total/n.pageSize);return n.current>m&&(n.current=m),n}),T=C(()=>{let n=[...e.dataSource];return e.pagination&&e.dataSource.length>(I.value.current-1)*I.value.pageSize&&(n=[...e.dataSource].splice((I.value.current-1)*I.value.pageSize,I.value.pageSize)),n}),se=_e(),G=Le(()=>{for(let n=0;n{if(!e.grid)return;const n=G.value&&e.grid[G.value]?e.grid[G.value]:e.grid.column;if(n)return{width:`${100/n}%`,maxWidth:`${100/n}%`}}),ce=(n,m)=>{var S;const P=(S=e.renderItem)!==null&&S!==void 0?S:i.renderItem;if(!P)return null;let b;const z=typeof e.rowKey;return z==="function"?b=e.rowKey(n):z==="string"||z==="number"?b=n[e.rowKey]:b=n.key,b||(b=`list-item-${m}`),x[m]=b,P({item:n,index:m})};return()=>{var n,m,S,P,b,z,K,N;const Q=(n=e.loadMore)!==null&&n!==void 0?n:(m=i.loadMore)===null||m===void 0?void 0:m.call(i),X=(S=e.footer)!==null&&S!==void 0?S:(P=i.footer)===null||P===void 0?void 0:P.call(i),U=(b=e.header)!==null&&b!==void 0?b:(z=i.header)===null||z===void 0?void 0:z.call(i),Z=le((K=i.default)===null||K===void 0?void 0:K.call(i)),ue=!!(Q||e.pagination||X),ge=oe(w(w({},j.value),{[`${a.value}-something-after-last-item`]:ue}),l.class,g.value),k=e.pagination?r("div",{class:`${a.value}-pagination`},[r(ze,E(E({},I.value),{},{onChange:L,onShowSizeChange:B}),null)]):null;let R=M.value&&r("div",{style:{minHeight:"53px"}},null);if(T.value.length>0){x.length=0;const ee=T.value.map((V,F)=>ce(V,F)),me=ee.map((V,F)=>r("div",{key:x[F],style:de.value},[V]));R=e.grid?r(we,{gutter:e.grid.gutter},{default:()=>[me]}):r("ul",{class:`${a.value}-items`},[ee])}else!Z.length&&!M.value&&(R=r("div",{class:`${a.value}-empty-text`},[((N=e.locale)===null||N===void 0?void 0:N.emptyText)||d("List")]));const H=I.value.position||"bottom";return u(r("div",E(E({},l),{},{class:ge}),[(H==="top"||H==="both")&&k,U&&r("div",{class:`${a.value}-header`},[U]),r(Me,f.value,{default:()=>[R,Z]}),X&&r("div",{class:`${a.value}-footer`},[X]),Q||(H==="bottom"||H==="both")&&k]))}}});_.install=function(e){return e.component(_.name,_),e.component(_.Item.name,_.Item),e.component(_.Item.Meta.name,_.Item.Meta),e};const Xe=_;export{Xe as A,Ae as I,je as a}; +//# sourceMappingURL=index.eafefd9b.js.map diff --git a/abstra_statics/dist/assets/index.f6dcc8cb.js b/abstra_statics/dist/assets/index.f6dcc8cb.js new file mode 100644 index 000000000..08f48a76b --- /dev/null +++ b/abstra_statics/dist/assets/index.f6dcc8cb.js @@ -0,0 +1,2 @@ +import{B as n,R as o}from"./Badge.bcc65740.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7a905722-447e-47ec-acb0-f3f7be070727",e._sentryDebugIdIdentifier="sentry-dbid-7a905722-447e-47ec-acb0-f3f7be070727")}catch{}})();n.install=function(e){return e.component(n.name,n),e.component(o.name,o),e}; +//# sourceMappingURL=index.f6dcc8cb.js.map diff --git a/abstra_statics/dist/assets/javascript.802e4030.js b/abstra_statics/dist/assets/javascript.21420475.js similarity index 64% rename from abstra_statics/dist/assets/javascript.802e4030.js rename to abstra_statics/dist/assets/javascript.21420475.js index 37147d2ae..c9edc020d 100644 --- a/abstra_statics/dist/assets/javascript.802e4030.js +++ b/abstra_statics/dist/assets/javascript.21420475.js @@ -1,7 +1,7 @@ -import{conf as i,language as e}from"./typescript.902b12cd.js";import"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="af93fad2-935a-4592-8414-d2acb69c7895",t._sentryDebugIdIdentifier="sentry-dbid-af93fad2-935a-4592-8414-d2acb69c7895")}catch{}})();/*!----------------------------------------------------------------------------- +import{conf as i,language as e}from"./typescript.e19112ef.js";import"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="bcf98fc9-f3db-49fa-b65c-82db862bc005",t._sentryDebugIdIdentifier="sentry-dbid-bcf98fc9-f3db-49fa-b65c-82db862bc005")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var d=i,c={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{d as conf,c as language}; -//# sourceMappingURL=javascript.802e4030.js.map + *-----------------------------------------------------------------------------*/var a=i,c={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{a as conf,c as language}; +//# sourceMappingURL=javascript.21420475.js.map diff --git a/abstra_statics/dist/assets/jsonMode.9a008227.js b/abstra_statics/dist/assets/jsonMode.d4351b14.js similarity index 99% rename from abstra_statics/dist/assets/jsonMode.9a008227.js rename to abstra_statics/dist/assets/jsonMode.d4351b14.js index 932f03c20..7a2ec188f 100644 --- a/abstra_statics/dist/assets/jsonMode.9a008227.js +++ b/abstra_statics/dist/assets/jsonMode.d4351b14.js @@ -1,4 +1,4 @@ -var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="76d361e5-edc5-47a7-b83e-a22cbc46b74a",e._sentryDebugIdIdentifier="sentry-dbid-76d361e5-edc5-47a7-b83e-a22cbc46b74a")}catch{}})();/*!----------------------------------------------------------------------------- +var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4634f767-dcec-4b6e-9086-4d028da288ae",e._sentryDebugIdIdentifier="sentry-dbid-4634f767-dcec-4b6e-9086-4d028da288ae")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -9,4 +9,4 @@ var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,config `+e.value+"\n```\n"}}function pt(e){if(!!e)return Array.isArray(e)?e.map(We):[We(e)]}var qt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),L(n))).then(t=>{if(!!t)return t.map(a=>({range:y(a.range),kind:_t(a.kind)}))})}};function _t(e){switch(e){case U.Read:return l.languages.DocumentHighlightKind.Read;case U.Write:return l.languages.DocumentHighlightKind.Write;case U.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Xt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),L(n))).then(t=>{if(!!t)return[qe(t)]})}};function qe(e){return{uri:l.Uri.parse(e.uri),range:y(e.range)}}var Jt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),L(n))).then(a=>{if(!!a)return a.map(qe)})}},Yt=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),L(n),i)).then(a=>mt(a))}};function mt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=l.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:y(t.range),text:t.newText}})}return{edits:n}}var kt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:wt(t.kind),range:y(t.location.range),selectionRange:y(t.location.range),tags:[]}))})}};function wt(e){let n=l.languages.SymbolKind;switch(e){case _.File:return n.Array;case _.Module:return n.Module;case _.Namespace:return n.Namespace;case _.Package:return n.Package;case _.Class:return n.Class;case _.Method:return n.Method;case _.Property:return n.Property;case _.Field:return n.Field;case _.Constructor:return n.Constructor;case _.Enum:return n.Enum;case _.Interface:return n.Interface;case _.Function:return n.Function;case _.Variable:return n.Variable;case _.Constant:return n.Constant;case _.String:return n.String;case _.Number:return n.Number;case _.Boolean:return n.Boolean;case _.Array:return n.Array}return n.Function}var $t=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:y(t.range),url:t.target}))}})}},bt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Xe(n)).then(a=>{if(!(!a||a.length===0))return a.map(X)}))}},Ct=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Be(n),Xe(i)).then(s=>{if(!(!s||s.length===0))return s.map(X)}))}};function Xe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Et=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:y(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Be(n.range))).then(t=>{if(!!t)return t.map(a=>{let s={label:a.label};return a.textEdit&&(s.textEdit=X(a.textEdit)),a.additionalTextEdits&&(s.additionalTextEdits=a.additionalTextEdits.map(X)),s})})}},At=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const s={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(s.kind=yt(a.kind)),s})})}};function yt(e){switch(e){case W.Comment:return l.languages.FoldingRangeKind.Comment;case W.Imports:return l.languages.FoldingRangeKind.Imports;case W.Region:return l.languages.FoldingRangeKind.Region}}var It=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(L))).then(t=>{if(!!t)return t.map(a=>{const s=[];for(;a;)s.push({range:y(a.range)}),a=a.parent;return s})})}};function St(e,n){n===void 0&&(n=!1);var i=e.length,r=0,t="",a=0,s=16,u=0,c=0,d=0,v=0,g=0;function b(f,C){for(var I=0,E=0;I=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;r++,I++}return I=i){f+=e.substring(C,r),g=2;break}var I=e.charCodeAt(r);if(I===34){f+=e.substring(C,r),r++;break}if(I===92){if(f+=e.substring(C,r),r++,r>=i){g=2;break}var E=e.charCodeAt(r++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=` `;break;case 114:f+="\r";break;case 116:f+=" ";break;case 117:var k=b(4,!0);k>=0?f+=String.fromCharCode(k):g=4;break;default:g=5}C=r;continue}if(I>=0&&I<=31)if(F(I)){f+=e.substring(C,r),g=2;break}else g=6;r++}return f}function j(){if(t="",g=0,a=r,c=u,v=d,r>=i)return a=i,s=17;var f=e.charCodeAt(r);if(ee(f)){do r++,t+=String.fromCharCode(f),f=e.charCodeAt(r);while(ee(f));return s=15}if(F(f))return r++,t+=String.fromCharCode(f),f===13&&e.charCodeAt(r)===10&&(r++,t+=` `),u++,d=r,s=14;switch(f){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,t=M(),s=10;case 47:var C=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r=12&&f<=15);return f}return{setPosition:h,getPosition:function(){return r},scan:n?$e:j,getToken:function(){return s},getTokenValue:function(){return t},getTokenOffset:function(){return a},getTokenLength:function(){return r-a},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return a-v},getTokenError:function(){return g}}}function ee(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function F(e){return e===10||e===13||e===8232||e===8233}function R(e){return e>=48&&e<=57}var Ue;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ue||(Ue={}));var Tt=St;function Dt(e){return{getInitialState:()=>new K(null,null,!1,null),tokenize:(n,i)=>Wt(e,n,i)}}var Ve="delimiter.bracket.json",He="delimiter.array.json",Pt="delimiter.colon.json",Lt="delimiter.comma.json",Mt="keyword.json",Rt="keyword.json",Nt="string.value.json",Ot="number.json",xt="string.key.json",jt="comment.block.json",Ft="comment.line.json",O=class{constructor(e,n){this.parent=e,this.type=n}static pop(e){return e?e.parent:null}static push(e,n){return new O(e,n)}static equals(e,n){if(!e&&!n)return!0;if(!e||!n)return!1;for(;e&&n;){if(e===n)return!0;if(e.type!==n.type)return!1;e=e.parent,n=n.parent}return!0}},K=class{constructor(e,n,i,r){A(this,"_state");A(this,"scanError");A(this,"lastWasColon");A(this,"parents");this._state=e,this.scanError=n,this.lastWasColon=i,this.parents=r}clone(){return new K(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this?!0:!e||!(e instanceof K)?!1:this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&O.equals(this.parents,e.parents)}getStateData(){return this._state}setStateData(e){this._state=e}};function Wt(e,n,i,r=0){let t=0,a=!1;switch(i.scanError){case 2:n='"'+n,t=1;break;case 1:n="/*"+n,t=2;break}const s=Tt(n);let u=i.lastWasColon,c=i.parents;const d={tokens:[],endState:i.clone()};for(;;){let v=r+s.getPosition(),g="";const b=s.scan();if(b===17)break;if(v===r+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+n.substr(s.getPosition(),3));switch(a&&(v-=t),a=t>0,b){case 1:c=O.push(c,0),g=Ve,u=!1;break;case 2:c=O.pop(c),g=Ve,u=!1;break;case 3:c=O.push(c,1),g=He,u=!1;break;case 4:c=O.pop(c),g=He,u=!1;break;case 6:g=Pt,u=!0;break;case 5:g=Lt,u=!1;break;case 8:case 9:g=Mt,u=!1;break;case 7:g=Rt,u=!1;break;case 10:const S=(c?c.type:0)===1;g=u||S?Nt:xt,u=!1;break;case 11:g=Ot,u=!1;break}if(e)switch(b){case 12:g=Ft;break;case 13:g=jt;break}d.endState=new K(i.getStateData(),s.getTokenError(),u,c),d.tokens.push({startIndex:v,scopes:g})}return d}var Ut=class extends ot{constructor(e,n,i){super(e,n,i.onDidChange),this._disposables.push(l.editor.onWillDisposeModel(r=>{this._resetSchema(r.uri)})),this._disposables.push(l.editor.onDidChangeModelLanguage(r=>{this._resetSchema(r.model.uri)}))}_resetSchema(e){this._worker().then(n=>{n.resetSchema(e.toString())})}};function Gt(e){const n=[],i=[],r=new at(e);n.push(r);const t=(...u)=>r.getLanguageServiceWorker(...u);function a(){const{languageId:u,modeConfiguration:c}=e;Je(i),c.documentFormattingEdits&&i.push(l.languages.registerDocumentFormattingEditProvider(u,new bt(t))),c.documentRangeFormattingEdits&&i.push(l.languages.registerDocumentRangeFormattingEditProvider(u,new Ct(t))),c.completionItems&&i.push(l.languages.registerCompletionItemProvider(u,new dt(t,[" ",":",'"']))),c.hovers&&i.push(l.languages.registerHoverProvider(u,new ht(t))),c.documentSymbols&&i.push(l.languages.registerDocumentSymbolProvider(u,new kt(t))),c.tokens&&i.push(l.languages.setTokensProvider(u,Dt(!0))),c.colors&&i.push(l.languages.registerColorProvider(u,new Et(t))),c.foldingRanges&&i.push(l.languages.registerFoldingRangeProvider(u,new At(t))),c.diagnostics&&i.push(new Ut(u,t,e)),c.selectionRanges&&i.push(l.languages.registerSelectionRangeProvider(u,new It(t)))}a(),n.push(l.languages.setLanguageConfiguration(e.languageId,Vt));let s=e.modeConfiguration;return e.onDidChange(u=>{u.modeConfiguration!==s&&(s=u.modeConfiguration,a())}),n.push(ze(i)),ze(n)}function ze(e){return{dispose:()=>Je(e)}}function Je(e){for(;e.length;)e.pop().dispose()}var Vt={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{dt as CompletionAdapter,Xt as DefinitionAdapter,ot as DiagnosticsAdapter,Et as DocumentColorAdapter,bt as DocumentFormattingEditProvider,qt as DocumentHighlightAdapter,$t as DocumentLinkAdapter,Ct as DocumentRangeFormattingEditProvider,kt as DocumentSymbolAdapter,At as FoldingRangeAdapter,ht as HoverAdapter,Jt as ReferenceAdapter,Yt as RenameAdapter,It as SelectionRangeAdapter,at as WorkerManager,L as fromPosition,Be as fromRange,Gt as setupMode,y as toRange,X as toTextEdit}; -//# sourceMappingURL=jsonMode.9a008227.js.map +//# sourceMappingURL=jsonMode.d4351b14.js.map diff --git a/abstra_statics/dist/assets/liquid.acb04b21.js b/abstra_statics/dist/assets/liquid.47ad104a.js similarity index 91% rename from abstra_statics/dist/assets/liquid.acb04b21.js rename to abstra_statics/dist/assets/liquid.47ad104a.js index 43ac8d1cc..54a5b0e44 100644 --- a/abstra_statics/dist/assets/liquid.acb04b21.js +++ b/abstra_statics/dist/assets/liquid.47ad104a.js @@ -1,7 +1,7 @@ -import{m as d}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="10de95fe-9e26-49fc-afbf-1ef955cd2db0",t._sentryDebugIdIdentifier="sentry-dbid-10de95fe-9e26-49fc-afbf-1ef955cd2db0")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as d}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dfcbb10c-bc49-4ec2-a68d-f5e84963fbb7",t._sentryDebugIdIdentifier="sentry-dbid-dfcbb10c-bc49-4ec2-a68d-f5e84963fbb7")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=c(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{b as conf,g as language}; -//# sourceMappingURL=liquid.acb04b21.js.map + *-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=c(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],w={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{w as conf,g as language}; +//# sourceMappingURL=liquid.47ad104a.js.map diff --git a/abstra_statics/dist/assets/member.557bc064.js b/abstra_statics/dist/assets/member.863895af.js similarity index 78% rename from abstra_statics/dist/assets/member.557bc064.js rename to abstra_statics/dist/assets/member.863895af.js index 78e853ce6..8f4258e39 100644 --- a/abstra_statics/dist/assets/member.557bc064.js +++ b/abstra_statics/dist/assets/member.863895af.js @@ -1,2 +1,2 @@ -import{C as a}from"./gateway.e77556e5.js";import"./vue-router.4c13f3d4.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="69bff75f-1710-442c-8461-d07b89acf533",n._sentryDebugIdIdentifier="sentry-dbid-69bff75f-1710-442c-8461-d07b89acf533")}catch{}})();class i{async create(t){return a.post(`organizations/${t.organizationId}/members`,{email:t.email})}async delete(t){return a.delete(`organizations/${t.organizationId}/members/${t.authorId}`)}async list(t){return a.get(`organizations/${t}/members`)}async get(t,e){return a.get(`organizations/${t}/members/${e}`)}async onboarding(){return a.get("authors/onboarding")}}const o=new i;class s{constructor(t){this.dto=t}static async onboarding(){return o.onboarding()}static async list(t){return(await o.list(t)).map(r=>new s(r))}static async create(t,e){const r=await o.create({organizationId:t,email:e});return new s(r)}static async get(t,e){const r=await o.get(t,e);return new s(r)}static async delete(t,e){return o.delete({organizationId:t,authorId:e})}get email(){return this.dto.email}get name(){return this.dto.name}get role(){return this.dto.role}get id(){return this.dto.authorId}get authorId(){return this.dto.authorId}}export{s as M}; -//# sourceMappingURL=member.557bc064.js.map +import{C as a}from"./gateway.c564a1cf.js";import"./vue-router.3fd92176.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="1cc9bf9c-27b1-4987-9e75-cfea13f014fb",n._sentryDebugIdIdentifier="sentry-dbid-1cc9bf9c-27b1-4987-9e75-cfea13f014fb")}catch{}})();class i{async create(t){return a.post(`organizations/${t.organizationId}/members`,{email:t.email})}async delete(t){return a.delete(`organizations/${t.organizationId}/members/${t.authorId}`)}async list(t){return a.get(`organizations/${t}/members`)}async get(t,e){return a.get(`organizations/${t}/members/${e}`)}async onboarding(){return a.get("authors/onboarding")}}const o=new i;class s{constructor(t){this.dto=t}static async onboarding(){return o.onboarding()}static async list(t){return(await o.list(t)).map(r=>new s(r))}static async create(t,e){const r=await o.create({organizationId:t,email:e});return new s(r)}static async get(t,e){const r=await o.get(t,e);return new s(r)}static async delete(t,e){return o.delete({organizationId:t,authorId:e})}get email(){return this.dto.email}get name(){return this.dto.name}get role(){return this.dto.role}get id(){return this.dto.authorId}get authorId(){return this.dto.authorId}}export{s as M}; +//# sourceMappingURL=member.863895af.js.map diff --git a/abstra_statics/dist/assets/metadata.789df59c.js b/abstra_statics/dist/assets/metadata.789df59c.js new file mode 100644 index 000000000..73629796d --- /dev/null +++ b/abstra_statics/dist/assets/metadata.789df59c.js @@ -0,0 +1,2 @@ +import{G as V}from"./PhBug.vue.00bc4255.js";import{H as A}from"./PhCheckCircle.vue.d8163a77.js";import{d as g,B as n,f as s,X as t,Z as c,R as Z,eb as y,o as l,a as i}from"./vue-router.3fd92176.js";import{G as M}from"./PhKanban.vue.b52985f0.js";import{F as f,G as w,a as k,I as b}from"./PhWebhooksLogo.vue.73a10b16.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="f8c8b1ba-e3b2-4c34-b097-347f0e57bfaf",r._sentryDebugIdIdentifier="sentry-dbid-f8c8b1ba-e3b2-4c34-b097-347f0e57bfaf")}catch{}})();const N=["width","height","fill","transform"],S={key:0},P=i("path",{d:"M228,160a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,160ZM40,108H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Z"},null,-1),z=[P],B={key:1},x=i("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),C=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),I=[x,C],O={key:2},L=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,160H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Zm0-48H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"},null,-1),F=[L],G={key:3},E=i("path",{d:"M222,160a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,160ZM40,102H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Z"},null,-1),j=[E],_={key:4},D=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),W=[D],q={key:5},J=i("path",{d:"M220,160a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,160ZM40,100H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Z"},null,-1),R=[J],X={name:"PhEquals"},K=g({...X,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(l(),t("g",S,z)):o.value==="duotone"?(l(),t("g",B,I)):o.value==="fill"?(l(),t("g",O,F)):o.value==="light"?(l(),t("g",G,j)):o.value==="regular"?(l(),t("g",_,W)):o.value==="thin"?(l(),t("g",q,R)):Z("",!0)],16,N))}}),Q=["width","height","fill","transform"],T={key:0},U=i("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),Y=[U],a0={key:1},e0=i("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),t0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),l0=[e0,t0],i0={key:2},o0=i("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),r0=[o0],n0={key:3},s0=i("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),h0=[s0],H0={key:4},d0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),u0=[d0],v0={key:5},m0=i("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),p0=[m0],g0={name:"PhHouse"},c0=g({...g0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(l(),t("g",T,Y)):o.value==="duotone"?(l(),t("g",a0,l0)):o.value==="fill"?(l(),t("g",i0,r0)):o.value==="light"?(l(),t("g",n0,h0)):o.value==="regular"?(l(),t("g",H0,u0)):o.value==="thin"?(l(),t("g",v0,p0)):Z("",!0)],16,Q))}}),Z0=["width","height","fill","transform"],y0={key:0},$0=i("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z"},null,-1),V0=[$0],A0={key:1},M0=i("path",{d:"M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z",opacity:"0.2"},null,-1),f0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),w0=[M0,f0],k0={key:2},b0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"},null,-1),N0=[b0],S0={key:3},P0=i("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z"},null,-1),z0=[P0],B0={key:4},x0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),C0=[x0],I0={key:5},O0=i("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z"},null,-1),L0=[O0],F0={name:"PhListMagnifyingGlass"},G0=g({...F0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(l(),t("g",y0,V0)):o.value==="duotone"?(l(),t("g",A0,w0)):o.value==="fill"?(l(),t("g",k0,N0)):o.value==="light"?(l(),t("g",S0,z0)):o.value==="regular"?(l(),t("g",B0,C0)):o.value==="thin"?(l(),t("g",I0,L0)):Z("",!0)],16,Z0))}}),E0=["width","height","fill","transform"],j0={key:0},_0=i("path",{d:"M228,128a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM116,76H216a12,12,0,0,0,0-24H116a12,12,0,0,0,0,24ZM216,180H116a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,59.31V104a12,12,0,0,0,24,0V40A12,12,0,0,0,50.64,29.27l-16,8a12,12,0,0,0,9.36,22Zm39.73,96.86a27.7,27.7,0,0,0-11.2-18.63A28.89,28.89,0,0,0,32.9,143a27.71,27.71,0,0,0-4.17,7.54,12,12,0,0,0,22.55,8.21,4,4,0,0,1,.58-1,4.78,4.78,0,0,1,6.5-.82,3.82,3.82,0,0,1,1.61,2.6,3.63,3.63,0,0,1-.77,2.77l-.13.17L30.39,200.82A12,12,0,0,0,40,220H72a12,12,0,0,0,0-24H64l14.28-19.11A27.48,27.48,0,0,0,83.73,156.17Z"},null,-1),D0=[_0],W0={key:1},q0=i("path",{d:"M216,64V192H104V64Z",opacity:"0.2"},null,-1),J0=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),R0=[q0,J0],X0={key:2},K0=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM56.84,75.58a8,8,0,0,1,3.58-10.74l16-8A8,8,0,0,1,88,64v48a8,8,0,0,1-16,0V76.94l-4.42,2.22A8,8,0,0,1,56.84,75.58ZM92,180a8,8,0,0,1,0,16H68a8,8,0,0,1-6.4-12.8l21.67-28.89A3.92,3.92,0,0,0,84,152a4,4,0,0,0-7.77-1.33,8,8,0,0,1-15.09-5.34,20,20,0,1,1,35,18.53L84,180Zm100,4H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Z"},null,-1),Q0=[K0],T0={key:3},U0=i("path",{d:"M222,128a6,6,0,0,1-6,6H104a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM104,70H216a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12ZM216,186H104a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM42.68,53.37,50,49.71V104a6,6,0,0,0,12,0V40a6,6,0,0,0-8.68-5.37l-16,8a6,6,0,0,0,5.36,10.74ZM72,202H52l21.48-28.74A21.5,21.5,0,0,0,77.79,157,21.75,21.75,0,0,0,69,142.38a22.86,22.86,0,0,0-31.35,4.31,22.18,22.18,0,0,0-3.28,5.92,6,6,0,0,0,11.28,4.11,9.87,9.87,0,0,1,1.48-2.67,10.78,10.78,0,0,1,14.78-2,9.89,9.89,0,0,1,4,6.61,9.64,9.64,0,0,1-2,7.28l-.06.09L35.2,204.41A6,6,0,0,0,40,214H72a6,6,0,0,0,0-12Z"},null,-1),Y0=[U0],a1={key:4},e1=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),t1=[e1],l1={key:5},i1=i("path",{d:"M220,128a4,4,0,0,1-4,4H104a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM104,68H216a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8ZM216,188H104a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM41.79,51.58,52,46.47V104a4,4,0,0,0,8,0V40a4,4,0,0,0-5.79-3.58l-16,8a4,4,0,1,0,3.58,7.16ZM72,204H48l23.85-31.92a19.54,19.54,0,0,0,4-14.8,19.76,19.76,0,0,0-8-13.28,20.84,20.84,0,0,0-28.59,3.92,19.85,19.85,0,0,0-3,5.38A4,4,0,0,0,43.76,156a12.1,12.1,0,0,1,1.78-3.22,12.78,12.78,0,0,1,17.54-2.37,11.85,11.85,0,0,1,4.81,7.94,11.65,11.65,0,0,1-2.41,8.85L36.8,205.61A4,4,0,0,0,40,212H72a4,4,0,0,0,0-8Z"},null,-1),o1=[i1],r1={name:"PhListNumbers"},n1=g({...r1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(l(),t("g",j0,D0)):o.value==="duotone"?(l(),t("g",W0,R0)):o.value==="fill"?(l(),t("g",X0,Q0)):o.value==="light"?(l(),t("g",T0,Y0)):o.value==="regular"?(l(),t("g",a1,t1)):o.value==="thin"?(l(),t("g",l1,o1)):Z("",!0)],16,E0))}}),s1=["width","height","fill","transform"],h1={key:0},H1=i("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"},null,-1),d1=[H1],u1={key:1},v1=i("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"},null,-1),m1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),p1=[v1,m1],g1={key:2},c1=i("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"},null,-1),Z1=[c1],y1={key:3},$1=i("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"},null,-1),V1=[$1],A1={key:4},M1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),f1=[M1],w1={key:5},k1=i("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"},null,-1),b1=[k1],N1={name:"PhTreeStructure"},S1=g({...N1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(l(),t("g",h1,d1)):o.value==="duotone"?(l(),t("g",u1,p1)):o.value==="fill"?(l(),t("g",g1,Z1)):o.value==="light"?(l(),t("g",y1,V1)):o.value==="regular"?(l(),t("g",A1,f1)):o.value==="thin"?(l(),t("g",w1,b1)):Z("",!0)],16,s1))}}),P1={stages:[{icon:f,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms",startingOnly:!1,transitions:[{typeName:"forms:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"forms:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"hooks",title:"Hooks",startingOnly:!0,icon:w,description:"Wait for an external API call",key:"H",transitions:[{typeName:"hooks:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"hooks:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"jobs",title:"Jobs",startingOnly:!0,icon:k,description:"Scheduled tasks",key:"J",transitions:[{typeName:"jobs:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"jobs:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"scripts",title:"Scripts",startingOnly:!1,icon:b,description:"Run a script",key:"S",transitions:[{typeName:"scripts:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"scripts:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"conditions",title:"Conditions",startingOnly:!1,icon:S1,description:"Make a decision",key:"C",transitions:[{typeName:"conditions:patternMatched",icon:K,title:"Pattern Matched",additionalPayload:[]}]},{typeName:"iterators",title:"Iterators",startingOnly:!1,icon:n1,description:"Split thread for each element in a list",key:"I",transitions:[{typeName:"iterators:each",icon:G0,title:"Each",additionalPayload:[{key:"item",type:"typing.Any",title:"Item"}]}]}]};function z1(r){const e=P1.stages.find(H=>H.typeName===r||H.typeName===`${r}s`);if(!e)throw new Error(`No metadata found for stage ${r}`);return e.icon}const L1=r=>r==="kanban"?M:r==="home"?c0:z1(r);export{G0 as F,L1 as i,z1 as s,P1 as w}; +//# sourceMappingURL=metadata.789df59c.js.map diff --git a/abstra_statics/dist/assets/metadata.d6f3a171.js b/abstra_statics/dist/assets/metadata.d6f3a171.js deleted file mode 100644 index 3666494bc..000000000 --- a/abstra_statics/dist/assets/metadata.d6f3a171.js +++ /dev/null @@ -1,2 +0,0 @@ -import{G as V}from"./PhBug.vue.e9805eb3.js";import{H as A}from"./PhCheckCircle.vue.aa5f3146.js";import{d as g,B as n,f as s,X as t,Z,R as c,eb as y,o as l,a as i}from"./vue-router.4c13f3d4.js";import{G as M}from"./PhKanban.vue.b5dcf2c4.js";import{F as f,G as w,a as k,I as N}from"./PhWebhooksLogo.vue.1b61227c.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="87759f99-d0de-4e79-92fe-5d606cf7f551",r._sentryDebugIdIdentifier="sentry-dbid-87759f99-d0de-4e79-92fe-5d606cf7f551")}catch{}})();const S=["width","height","fill","transform"],b={key:0},P=i("path",{d:"M228,160a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,160ZM40,108H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Z"},null,-1),z=[P],B={key:1},x=i("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),C=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),I=[x,C],O={key:2},L=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,160H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Zm0-48H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"},null,-1),F=[L],G={key:3},E=i("path",{d:"M222,160a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,160ZM40,102H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Z"},null,-1),j=[E],_={key:4},D=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),W=[D],q={key:5},J=i("path",{d:"M220,160a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,160ZM40,100H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Z"},null,-1),R=[J],X={name:"PhEquals"},K=g({...X,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[Z(a.$slots,"default"),o.value==="bold"?(l(),t("g",b,z)):o.value==="duotone"?(l(),t("g",B,I)):o.value==="fill"?(l(),t("g",O,F)):o.value==="light"?(l(),t("g",G,j)):o.value==="regular"?(l(),t("g",_,W)):o.value==="thin"?(l(),t("g",q,R)):c("",!0)],16,S))}}),Q=["width","height","fill","transform"],T={key:0},U=i("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),Y=[U],a0={key:1},e0=i("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),t0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),l0=[e0,t0],i0={key:2},o0=i("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),r0=[o0],n0={key:3},s0=i("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),h0=[s0],H0={key:4},d0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),u0=[d0],v0={key:5},m0=i("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),p0=[m0],g0={name:"PhHouse"},Z0=g({...g0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[Z(a.$slots,"default"),o.value==="bold"?(l(),t("g",T,Y)):o.value==="duotone"?(l(),t("g",a0,l0)):o.value==="fill"?(l(),t("g",i0,r0)):o.value==="light"?(l(),t("g",n0,h0)):o.value==="regular"?(l(),t("g",H0,u0)):o.value==="thin"?(l(),t("g",v0,p0)):c("",!0)],16,Q))}}),c0=["width","height","fill","transform"],y0={key:0},$0=i("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z"},null,-1),V0=[$0],A0={key:1},M0=i("path",{d:"M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z",opacity:"0.2"},null,-1),f0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),w0=[M0,f0],k0={key:2},N0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"},null,-1),S0=[N0],b0={key:3},P0=i("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z"},null,-1),z0=[P0],B0={key:4},x0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),C0=[x0],I0={key:5},O0=i("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z"},null,-1),L0=[O0],F0={name:"PhListMagnifyingGlass"},G0=g({...F0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[Z(a.$slots,"default"),o.value==="bold"?(l(),t("g",y0,V0)):o.value==="duotone"?(l(),t("g",A0,w0)):o.value==="fill"?(l(),t("g",k0,S0)):o.value==="light"?(l(),t("g",b0,z0)):o.value==="regular"?(l(),t("g",B0,C0)):o.value==="thin"?(l(),t("g",I0,L0)):c("",!0)],16,c0))}}),E0=["width","height","fill","transform"],j0={key:0},_0=i("path",{d:"M228,128a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM116,76H216a12,12,0,0,0,0-24H116a12,12,0,0,0,0,24ZM216,180H116a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,59.31V104a12,12,0,0,0,24,0V40A12,12,0,0,0,50.64,29.27l-16,8a12,12,0,0,0,9.36,22Zm39.73,96.86a27.7,27.7,0,0,0-11.2-18.63A28.89,28.89,0,0,0,32.9,143a27.71,27.71,0,0,0-4.17,7.54,12,12,0,0,0,22.55,8.21,4,4,0,0,1,.58-1,4.78,4.78,0,0,1,6.5-.82,3.82,3.82,0,0,1,1.61,2.6,3.63,3.63,0,0,1-.77,2.77l-.13.17L30.39,200.82A12,12,0,0,0,40,220H72a12,12,0,0,0,0-24H64l14.28-19.11A27.48,27.48,0,0,0,83.73,156.17Z"},null,-1),D0=[_0],W0={key:1},q0=i("path",{d:"M216,64V192H104V64Z",opacity:"0.2"},null,-1),J0=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),R0=[q0,J0],X0={key:2},K0=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM56.84,75.58a8,8,0,0,1,3.58-10.74l16-8A8,8,0,0,1,88,64v48a8,8,0,0,1-16,0V76.94l-4.42,2.22A8,8,0,0,1,56.84,75.58ZM92,180a8,8,0,0,1,0,16H68a8,8,0,0,1-6.4-12.8l21.67-28.89A3.92,3.92,0,0,0,84,152a4,4,0,0,0-7.77-1.33,8,8,0,0,1-15.09-5.34,20,20,0,1,1,35,18.53L84,180Zm100,4H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Z"},null,-1),Q0=[K0],T0={key:3},U0=i("path",{d:"M222,128a6,6,0,0,1-6,6H104a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM104,70H216a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12ZM216,186H104a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM42.68,53.37,50,49.71V104a6,6,0,0,0,12,0V40a6,6,0,0,0-8.68-5.37l-16,8a6,6,0,0,0,5.36,10.74ZM72,202H52l21.48-28.74A21.5,21.5,0,0,0,77.79,157,21.75,21.75,0,0,0,69,142.38a22.86,22.86,0,0,0-31.35,4.31,22.18,22.18,0,0,0-3.28,5.92,6,6,0,0,0,11.28,4.11,9.87,9.87,0,0,1,1.48-2.67,10.78,10.78,0,0,1,14.78-2,9.89,9.89,0,0,1,4,6.61,9.64,9.64,0,0,1-2,7.28l-.06.09L35.2,204.41A6,6,0,0,0,40,214H72a6,6,0,0,0,0-12Z"},null,-1),Y0=[U0],a1={key:4},e1=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),t1=[e1],l1={key:5},i1=i("path",{d:"M220,128a4,4,0,0,1-4,4H104a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM104,68H216a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8ZM216,188H104a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM41.79,51.58,52,46.47V104a4,4,0,0,0,8,0V40a4,4,0,0,0-5.79-3.58l-16,8a4,4,0,1,0,3.58,7.16ZM72,204H48l23.85-31.92a19.54,19.54,0,0,0,4-14.8,19.76,19.76,0,0,0-8-13.28,20.84,20.84,0,0,0-28.59,3.92,19.85,19.85,0,0,0-3,5.38A4,4,0,0,0,43.76,156a12.1,12.1,0,0,1,1.78-3.22,12.78,12.78,0,0,1,17.54-2.37,11.85,11.85,0,0,1,4.81,7.94,11.65,11.65,0,0,1-2.41,8.85L36.8,205.61A4,4,0,0,0,40,212H72a4,4,0,0,0,0-8Z"},null,-1),o1=[i1],r1={name:"PhListNumbers"},n1=g({...r1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[Z(a.$slots,"default"),o.value==="bold"?(l(),t("g",j0,D0)):o.value==="duotone"?(l(),t("g",W0,R0)):o.value==="fill"?(l(),t("g",X0,Q0)):o.value==="light"?(l(),t("g",T0,Y0)):o.value==="regular"?(l(),t("g",a1,t1)):o.value==="thin"?(l(),t("g",l1,o1)):c("",!0)],16,E0))}}),s1=["width","height","fill","transform"],h1={key:0},H1=i("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"},null,-1),d1=[H1],u1={key:1},v1=i("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"},null,-1),m1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),p1=[v1,m1],g1={key:2},Z1=i("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"},null,-1),c1=[Z1],y1={key:3},$1=i("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"},null,-1),V1=[$1],A1={key:4},M1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),f1=[M1],w1={key:5},k1=i("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"},null,-1),N1=[k1],S1={name:"PhTreeStructure"},b1=g({...S1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[Z(a.$slots,"default"),o.value==="bold"?(l(),t("g",h1,d1)):o.value==="duotone"?(l(),t("g",u1,p1)):o.value==="fill"?(l(),t("g",g1,c1)):o.value==="light"?(l(),t("g",y1,V1)):o.value==="regular"?(l(),t("g",A1,f1)):o.value==="thin"?(l(),t("g",w1,N1)):c("",!0)],16,s1))}}),P1={stages:[{icon:f,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms",startingOnly:!1,transitions:[{typeName:"forms:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"forms:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"hooks",title:"Hooks",startingOnly:!0,icon:w,description:"Wait for an external API call",key:"H",transitions:[{typeName:"hooks:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"hooks:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"jobs",title:"Jobs",startingOnly:!0,icon:k,description:"Scheduled tasks",key:"J",transitions:[{typeName:"jobs:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"jobs:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"scripts",title:"Scripts",startingOnly:!1,icon:N,description:"Run a script",key:"S",transitions:[{typeName:"scripts:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"scripts:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"conditions",title:"Conditions",startingOnly:!1,icon:b1,description:"Make a decision",key:"C",transitions:[{typeName:"conditions:patternMatched",icon:K,title:"Pattern Matched",additionalPayload:[]}]},{typeName:"iterators",title:"Iterators",startingOnly:!1,icon:n1,description:"Split thread for each element in a list",key:"I",transitions:[{typeName:"iterators:each",icon:G0,title:"Each",additionalPayload:[{key:"item",type:"typing.Any",title:"Item"}]}]}]};function z1(r){const e=P1.stages.find(H=>H.typeName===r||H.typeName===`${r}s`);if(!e)throw new Error(`No metadata found for stage ${r}`);return e.icon}const L1=r=>r==="kanban"?M:r==="home"?Z0:z1(r);export{G0 as F,L1 as i,z1 as s,P1 as w}; -//# sourceMappingURL=metadata.d6f3a171.js.map diff --git a/abstra_statics/dist/assets/organization.6af6e7be.js b/abstra_statics/dist/assets/organization.ed97e5a8.js similarity index 69% rename from abstra_statics/dist/assets/organization.6af6e7be.js rename to abstra_statics/dist/assets/organization.ed97e5a8.js index 1027fa4be..92768b181 100644 --- a/abstra_statics/dist/assets/organization.6af6e7be.js +++ b/abstra_statics/dist/assets/organization.ed97e5a8.js @@ -1,2 +1,2 @@ -var d=Object.defineProperty;var c=(a,t,e)=>t in a?d(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(c(a,typeof t!="symbol"?t+"":t,e),e);import{C as s}from"./gateway.e77556e5.js";import"./vue-router.4c13f3d4.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="d8d4add0-86d2-4796-92eb-157ecc7f8729",a._sentryDebugIdIdentifier="sentry-dbid-d8d4add0-86d2-4796-92eb-157ecc7f8729")}catch{}})();class o{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}}const n=new o;class r{constructor(t){this.dto=t}static async list(){return(await n.list()).map(e=>new r(e))}static async create(t){const e=await n.create({name:t});return new r(e)}static async get(t){const e=await n.get(t);return new r(e)}async delete(){await n.delete(this.id)}static async rename(t,e){return n.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}}export{r as O}; -//# sourceMappingURL=organization.6af6e7be.js.map +var c=Object.defineProperty;var d=(a,t,e)=>t in a?c(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(d(a,typeof t!="symbol"?t+"":t,e),e);import{C as s}from"./gateway.c564a1cf.js";import"./vue-router.3fd92176.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="e6f22956-8c4a-4534-8f3c-215d0613880c",a._sentryDebugIdIdentifier="sentry-dbid-e6f22956-8c4a-4534-8f3c-215d0613880c")}catch{}})();class o{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}}const n=new o;class r{constructor(t){this.dto=t}static async list(){return(await n.list()).map(e=>new r(e))}static async create(t){const e=await n.create({name:t});return new r(e)}static async get(t){const e=await n.get(t);return new r(e)}async delete(){await n.delete(this.id)}static async rename(t,e){return n.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}}export{r as O}; +//# sourceMappingURL=organization.ed97e5a8.js.map diff --git a/abstra_statics/dist/assets/player.1b337bfb.js b/abstra_statics/dist/assets/player.1b337bfb.js new file mode 100644 index 000000000..1844f6432 --- /dev/null +++ b/abstra_statics/dist/assets/player.1b337bfb.js @@ -0,0 +1,2 @@ +import{k as i,T as n,m as r,P as o,C as p,M as d,s as c,n as s,p as f,q as m,t as u,v as g}from"./vue-router.3fd92176.js";import{s as b,c as y,a}from"./workspaceStore.411ef1fe.js";import{_ as l}from"./App.vue_vue_type_style_index_0_lang.f9e04732.js";import"./url.5959ae47.js";import"./colorHelpers.f04087b3.js";import"./PlayerConfigProvider.44427467.js";import"./index.bd967757.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="11320a46-1493-4793-a11e-afbabf9a2e46",t._sentryDebugIdIdentifier="sentry-dbid-11320a46-1493-4793-a11e-afbabf9a2e46")}catch{}})();class w{static init(){setInterval(()=>fetch("/_version"),20*1e3)}}(async()=>{await b();const t=y(),e=i({render:()=>f(l)});n.init(),r(e,a),w.init(),e.use(a),e.use(t),e.use(o),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",d),e.component("Message",c),s(e,m),s(e,u),s(e,g)})(); +//# sourceMappingURL=player.1b337bfb.js.map diff --git a/abstra_statics/dist/assets/player.9489fff5.js b/abstra_statics/dist/assets/player.9489fff5.js deleted file mode 100644 index 92c9c3792..000000000 --- a/abstra_statics/dist/assets/player.9489fff5.js +++ /dev/null @@ -1,2 +0,0 @@ -import{k as a,T as n,m as r,P as o,C as d,M as p,s as b,n as s,p as c,q as f,t as m,v as u}from"./vue-router.4c13f3d4.js";import{s as g,c as y,a as i}from"./workspaceStore.ae240ce8.js";import{_ as l}from"./App.vue_vue_type_style_index_0_lang.b3029d8c.js";import"./url.c1b32560.js";import"./colorHelpers.c5724389.js";import"./PlayerConfigProvider.8a3bab63.js";import"./index.52fae423.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="bbfdb2d4-ab0b-48db-9197-305651dba13b",t._sentryDebugIdIdentifier="sentry-dbid-bbfdb2d4-ab0b-48db-9197-305651dba13b")}catch{}})();class w{static init(){setInterval(()=>fetch("/_version"),20*1e3)}}(async()=>{await g();const t=y(),e=a({render:()=>c(l)});n.init(),r(e,i),w.init(),e.use(i),e.use(t),e.use(o),e.mount("#app"),e.component("VSelect",d),e.component("Markdown",p),e.component("Message",b),s(e,f),s(e,m),s(e,u)})(); -//# sourceMappingURL=player.9489fff5.js.map diff --git a/abstra_statics/dist/assets/plotly.min.da1521bf.js b/abstra_statics/dist/assets/plotly.min.c288951c.js similarity index 99% rename from abstra_statics/dist/assets/plotly.min.da1521bf.js rename to abstra_statics/dist/assets/plotly.min.c288951c.js index 4d8d33814..35a8b4140 100644 --- a/abstra_statics/dist/assets/plotly.min.da1521bf.js +++ b/abstra_statics/dist/assets/plotly.min.c288951c.js @@ -1,4 +1,4 @@ -import{eI as Td}from"./vue-router.4c13f3d4.js";(function(){try{var Cs=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Il=new Error().stack;Il&&(Cs._sentryDebugIds=Cs._sentryDebugIds||{},Cs._sentryDebugIds[Il]="7b1b780c-d687-460f-9332-bbe488599e52",Cs._sentryDebugIdIdentifier="sentry-dbid-7b1b780c-d687-460f-9332-bbe488599e52")}catch{}})();function kd(Cs,Il){for(var bl=0;blPs[Ha]})}}}return Object.freeze(Object.defineProperty(Cs,Symbol.toStringTag,{value:"Module"}))}var of={exports:{}};(function(Cs,Il){/*! For license information please see plotly.min.js.LICENSE.txt */(function(bl,Ps){Cs.exports=Ps()})(self,function(){return function(){var bl={98847:function(ee,z,e){var M=e(71828),k={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var l in k){var T=l.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");M.addStyleRule(T,k[l])}},98222:function(ee,z,e){ee.exports=e(82887)},27206:function(ee,z,e){ee.exports=e(60822)},59893:function(ee,z,e){ee.exports=e(23381)},5224:function(ee,z,e){ee.exports=e(83832)},59509:function(ee,z,e){ee.exports=e(72201)},75557:function(ee,z,e){ee.exports=e(91815)},40338:function(ee,z,e){ee.exports=e(21462)},35080:function(ee,z,e){ee.exports=e(51319)},61396:function(ee,z,e){ee.exports=e(57516)},40549:function(ee,z,e){ee.exports=e(98128)},49866:function(ee,z,e){ee.exports=e(99442)},36089:function(ee,z,e){ee.exports=e(93740)},19548:function(ee,z,e){ee.exports=e(8729)},35831:function(ee,z,e){ee.exports=e(93814)},61039:function(ee,z,e){ee.exports=e(14382)},97040:function(ee,z,e){ee.exports=e(51759)},77986:function(ee,z,e){ee.exports=e(10421)},24296:function(ee,z,e){ee.exports=e(43102)},58872:function(ee,z,e){ee.exports=e(92165)},29626:function(ee,z,e){ee.exports=e(3325)},65591:function(ee,z,e){ee.exports=e(36071)},69738:function(ee,z,e){ee.exports=e(43905)},92650:function(ee,z,e){ee.exports=e(35902)},35630:function(ee,z,e){ee.exports=e(69816)},73434:function(ee,z,e){ee.exports=e(94507)},27909:function(ee,z,e){var M=e(19548);M.register([e(27206),e(5224),e(58872),e(65591),e(69738),e(92650),e(49866),e(25743),e(6197),e(97040),e(85461),e(73434),e(54201),e(81299),e(47645),e(35630),e(77986),e(83043),e(93005),e(96881),e(4534),e(50581),e(40549),e(77900),e(47582),e(35080),e(21641),e(17280),e(5861),e(29626),e(10021),e(65317),e(96268),e(61396),e(35831),e(16122),e(46163),e(40344),e(40338),e(48131),e(36089),e(55334),e(75557),e(19440),e(99488),e(59893),e(97393),e(98222),e(61039),e(24296),e(66398),e(59509)]),ee.exports=M},46163:function(ee,z,e){ee.exports=e(15154)},96881:function(ee,z,e){ee.exports=e(64943)},50581:function(ee,z,e){ee.exports=e(21164)},55334:function(ee,z,e){ee.exports=e(54186)},65317:function(ee,z,e){ee.exports=e(94873)},10021:function(ee,z,e){ee.exports=e(67618)},54201:function(ee,z,e){ee.exports=e(58810)},5861:function(ee,z,e){ee.exports=e(20593)},16122:function(ee,z,e){ee.exports=e(29396)},83043:function(ee,z,e){ee.exports=e(13551)},48131:function(ee,z,e){ee.exports=e(46858)},47582:function(ee,z,e){ee.exports=e(17988)},21641:function(ee,z,e){ee.exports=e(68868)},96268:function(ee,z,e){ee.exports=e(20467)},19440:function(ee,z,e){ee.exports=e(91271)},99488:function(ee,z,e){ee.exports=e(21461)},97393:function(ee,z,e){ee.exports=e(85956)},25743:function(ee,z,e){ee.exports=e(52979)},66398:function(ee,z,e){ee.exports=e(32275)},17280:function(ee,z,e){ee.exports=e(6419)},77900:function(ee,z,e){ee.exports=e(61510)},81299:function(ee,z,e){ee.exports=e(87619)},93005:function(ee,z,e){ee.exports=e(93601)},40344:function(ee,z,e){ee.exports=e(96595)},47645:function(ee,z,e){ee.exports=e(70954)},6197:function(ee,z,e){ee.exports=e(47462)},4534:function(ee,z,e){ee.exports=e(17659)},85461:function(ee,z,e){ee.exports=e(19990)},82884:function(ee){ee.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(ee,z,e){var M=e(82884),k=e(41940),l=e(85555),T=e(44467).templatedArray;e(24695),ee.exports=T("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:k({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(ee,z,e){var M=e(71828),k=e(89298),l=e(92605).draw;function T(d){var s=d._fullLayout;M.filterVisible(s.annotations).forEach(function(t){var i=k.getFromId(d,t.xref),r=k.getFromId(d,t.yref),n=k.getRefType(t.xref),o=k.getRefType(t.yref);t._extremes={},n==="range"&&b(t,i),o==="range"&&b(t,r)})}function b(d,s){var t,i=s._id,r=i.charAt(0),n=d[r],o=d["a"+r],a=d[r+"ref"],u=d["a"+r+"ref"],p=d["_"+r+"padplus"],c=d["_"+r+"padminus"],x={x:1,y:-1}[r]*d[r+"shift"],g=3*d.arrowsize*d.arrowwidth||0,h=g+x,m=g-x,v=3*d.startarrowsize*d.arrowwidth||0,y=v+x,_=v-x;if(u===a){var f=k.findExtremes(s,[s.r2c(n)],{ppadplus:h,ppadminus:m}),S=k.findExtremes(s,[s.r2c(o)],{ppadplus:Math.max(p,y),ppadminus:Math.max(c,_)});t={min:[f.min[0],S.min[0]],max:[f.max[0],S.max[0]]}}else y=o?y+o:y,_=o?_-o:_,t=k.findExtremes(s,[s.r2c(n)],{ppadplus:Math.max(p,h,y),ppadminus:Math.max(c,m,_)});d._extremes[i]=t}ee.exports=function(d){var s=d._fullLayout;if(M.filterVisible(s.annotations).length&&d._fullData.length)return M.syncOrAsync([l,T],d)}},44317:function(ee,z,e){var M=e(71828),k=e(73972),l=e(44467).arrayEditor;function T(d,s){var t,i,r,n,o,a,u,p=d._fullLayout.annotations,c=[],x=[],g=[],h=(s||[]).length;for(t=0;t0||t.explicitOff.length>0},onClick:function(d,s){var t,i,r=T(d,s),n=r.on,o=r.off.concat(r.explicitOff),a={},u=d._fullLayout.annotations;if(n.length||o.length){for(t=0;t.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ct]}for(var Ne=!1,fe=["x","y"],Me=0;Me1)&&(at===Ke?((Mt=Qe.r2fraction(h["a"+Ge]))<0||Mt>1)&&(Ne=!0):Ne=!0),be=Qe._offset+Qe.r2p(h[Ge]),Re=.5}else{var Ye=Pt==="domain";Ge==="x"?(Fe=h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.l+E.w*Fe):(Fe=1-h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.t+E.h*Fe),Re=h.showarrow?.5:Fe}if(h.showarrow){wt.head=be;var Xe=h["a"+Ge];if(He=xt*ze(.5,h.xanchor)-st*ze(.5,h.yanchor),at===Ke){var Ve=d.getRefType(at);Ve==="domain"?(Ge==="y"&&(Xe=1-Xe),wt.tail=Qe._offset+Qe._length*Xe):Ve==="paper"?Ge==="y"?(Xe=1-Xe,wt.tail=E.t+E.h*Xe):wt.tail=E.l+E.w*Xe:wt.tail=Qe._offset+Qe.r2p(Xe),Ce=He}else wt.tail=be+Xe,Ce=He+Xe;wt.text=wt.tail+He;var We=w[Ge==="x"?"width":"height"];if(Ke==="paper"&&(wt.head=T.constrain(wt.head,1,We-1)),at==="pixel"){var nt=-Math.max(wt.tail-3,wt.text),rt=Math.min(wt.tail+3,wt.text)-We;nt>0?(wt.tail+=nt,wt.text+=nt):rt>0&&(wt.tail-=rt,wt.text-=rt)}wt.tail+=Tt,wt.head+=Tt}else Ce=He=ot*ze(Re,mt),wt.text=be+He;wt.text+=Tt,He+=Tt,Ce+=Tt,h["_"+Ge+"padplus"]=ot/2+Ce,h["_"+Ge+"padminus"]=ot/2-Ce,h["_"+Ge+"size"]=ot,h["_"+Ge+"shift"]=He}if(Ne)K.remove();else{var Ie=0,De=0;if(h.align!=="left"&&(Ie=(ne-le)*(h.align==="center"?.5:1)),h.valign!=="top"&&(De=(ve-se)*(h.valign==="middle"?.5:1)),ke)Oe.select("svg").attr({x:W+Ie-1,y:W+De}).call(t.setClipUrl,re?O:null,g);else{var et=W+De-Te.top,tt=W+Ie-Te.left;pe.call(r.positionText,tt,et).call(t.setClipUrl,re?O:null,g)}ie.select("rect").call(t.setRect,W,W,ne,ve),Q.call(t.setRect,J/2,J/2,Ee-J,_e-J),K.call(t.setTranslate,Math.round(V.x.text-Ee/2),Math.round(V.y.text-_e/2)),H.attr({transform:"rotate("+N+","+V.x.text+","+V.y.text+")"});var gt,ht=function(dt,ct){B.selectAll(".annotation-arrow-g").remove();var kt=V.x.head,ut=V.y.head,ft=V.x.tail+dt,bt=V.y.tail+ct,It=V.x.text+dt,Rt=V.y.text+ct,Dt=T.rotationXYMatrix(N,It,Rt),Kt=T.apply2DTransform(Dt),qt=T.apply2DTransform2(Dt),Wt=+Q.attr("width"),Ht=+Q.attr("height"),hn=It-.5*Wt,yn=hn+Wt,un=Rt-.5*Ht,jt=un+Ht,nn=[[hn,un,hn,jt],[hn,jt,yn,jt],[yn,jt,yn,un],[yn,un,hn,un]].map(qt);if(!nn.reduce(function($n,Gn){return $n^!!T.segmentsIntersect(kt,ut,kt+1e6,ut+1e6,Gn[0],Gn[1],Gn[2],Gn[3])},!1)){nn.forEach(function($n){var Gn=T.segmentsIntersect(ft,bt,kt,ut,$n[0],$n[1],$n[2],$n[3]);Gn&&(ft=Gn.x,bt=Gn.y)});var Jt=h.arrowwidth,rn=h.arrowcolor,fn=h.arrowside,vn=B.append("g").style({opacity:s.opacity(rn)}).classed("annotation-arrow-g",!0),Mn=vn.append("path").attr("d","M"+ft+","+bt+"L"+kt+","+ut).style("stroke-width",Jt+"px").call(s.stroke,s.rgb(rn));if(u(Mn,fn,h),L.annotationPosition&&Mn.node().parentNode&&!v){var En=kt,bn=ut;if(h.standoff){var Ln=Math.sqrt(Math.pow(kt-ft,2)+Math.pow(ut-bt,2));En+=h.standoff*(ft-kt)/Ln,bn+=h.standoff*(bt-ut)/Ln}var Wn,Qn,ir=vn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ft-En)+","+(bt-bn),transform:b(En,bn)}).style("stroke-width",Jt+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");o.init({element:ir.node(),gd:g,prepFn:function(){var $n=t.getTranslate(K);Wn=$n.x,Qn=$n.y,y&&y.autorange&&P(y._name+".autorange",!0),_&&_.autorange&&P(_._name+".autorange",!0)},moveFn:function($n,Gn){var dr=Kt(Wn,Qn),Bt=dr[0]+$n,tn=dr[1]+Gn;K.call(t.setTranslate,Bt,tn),R("x",c(y,$n,"x",E,h)),R("y",c(_,Gn,"y",E,h)),h.axref===h.xref&&R("ax",c(y,$n,"ax",E,h)),h.ayref===h.yref&&R("ay",c(_,Gn,"ay",E,h)),vn.attr("transform",b($n,Gn)),H.attr({transform:"rotate("+N+","+Bt+","+tn+")"})},doneFn:function(){k.call("_guiRelayout",g,G());var $n=document.querySelector(".js-notes-box-panel");$n&&$n.redraw($n.selectedObj)}})}}};h.showarrow&&ht(0,0),q&&o.init({element:K.node(),gd:g,prepFn:function(){gt=H.attr("transform")},moveFn:function(dt,ct){var kt="pointer";if(h.showarrow)h.axref===h.xref?R("ax",c(y,dt,"ax",E,h)):R("ax",h.ax+dt),h.ayref===h.yref?R("ay",c(_,ct,"ay",E.w,h)):R("ay",h.ay+ct),ht(dt,ct);else{if(v)return;var ut,ft;if(y)ut=c(y,dt,"x",E,h);else{var bt=h._xsize/E.w,It=h.x+(h._xshift-h.xshift)/E.w-bt/2;ut=o.align(It+dt/E.w,bt,0,1,h.xanchor)}if(_)ft=c(_,ct,"y",E,h);else{var Rt=h._ysize/E.h,Dt=h.y-(h._yshift+h.yshift)/E.h-Rt/2;ft=o.align(Dt-ct/E.h,Rt,0,1,h.yanchor)}R("x",ut),R("y",ft),y&&_||(kt=o.getCursor(y?.5:ut,_?.5:ft,h.xanchor,h.yanchor))}H.attr({transform:b(dt,ct)+gt}),n(K,kt)},clickFn:function(dt,ct){h.captureevents&&g.emit("plotly_clickannotation",ge(ct))},doneFn:function(){n(K),k.call("_guiRelayout",g,G());var dt=document.querySelector(".js-notes-box-panel");dt&&dt.redraw(dt.selectedObj)}})}}}ee.exports={draw:function(g){var h=g._fullLayout;h._infolayer.selectAll(".annotation").remove();for(var m=0;m=0,v=i.indexOf("end")>=0,y=c.backoff*g+r.standoff,_=x.backoff*h+r.startstandoff;if(p.nodeName==="line"){n={x:+t.attr("x1"),y:+t.attr("y1")},o={x:+t.attr("x2"),y:+t.attr("y2")};var f=n.x-o.x,S=n.y-o.y;if(u=(a=Math.atan2(S,f))+Math.PI,y&&_&&y+_>Math.sqrt(f*f+S*S))return void B();if(y){if(y*y>f*f+S*S)return void B();var w=y*Math.cos(a),E=y*Math.sin(a);o.x+=w,o.y+=E,t.attr({x2:o.x,y2:o.y})}if(_){if(_*_>f*f+S*S)return void B();var L=_*Math.cos(a),C=_*Math.sin(a);n.x-=L,n.y-=C,t.attr({x1:n.x,y1:n.y})}}else if(p.nodeName==="path"){var P=p.getTotalLength(),R="";if(P1){r=!0;break}}r?T.fullLayout._infolayer.select(".annotation-"+T.id+'[data-index="'+t+'"]').remove():(i._pdata=k(T.glplot.cameraParams,[b.xaxis.r2l(i.x)*d[0],b.yaxis.r2l(i.y)*d[1],b.zaxis.r2l(i.z)*d[2]]),M(T.graphDiv,i,t,T.id,i._xa,i._ya))}}},2468:function(ee,z,e){var M=e(73972),k=e(71828);ee.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(26997)}}},layoutAttributes:e(26997),handleDefaults:e(20226),includeBasePlot:function(l,T){var b=M.subplotsRegistry.gl3d;if(b)for(var d=b.attrRegex,s=Object.keys(l),t=0;t=0)))return i;if(u===3)o[u]>1&&(o[u]=1);else if(o[u]>=1)return i}var p=Math.round(255*o[0])+", "+Math.round(255*o[1])+", "+Math.round(255*o[2]);return a?"rgba("+p+", "+o[3]+")":"rgb("+p+")"}T.tinyRGB=function(i){var r=i.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"},T.rgb=function(i){return T.tinyRGB(M(i))},T.opacity=function(i){return i?M(i).getAlpha():0},T.addOpacity=function(i,r){var n=M(i).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+r+")"},T.combine=function(i,r){var n=M(i).toRgb();if(n.a===1)return M(i).toRgbString();var o=M(r||s).toRgb(),a=o.a===1?o:{r:255*(1-o.a)+o.r*o.a,g:255*(1-o.a)+o.g*o.a,b:255*(1-o.a)+o.b*o.a},u={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return M(u).toRgbString()},T.contrast=function(i,r,n){var o=M(i);return o.getAlpha()!==1&&(o=M(T.combine(i,s))),(o.isDark()?r?o.lighten(r):s:n?o.darken(n):d).toString()},T.stroke=function(i,r){var n=M(r);i.style({stroke:T.tinyRGB(n),"stroke-opacity":n.getAlpha()})},T.fill=function(i,r){var n=M(r);i.style({fill:T.tinyRGB(n),"fill-opacity":n.getAlpha()})},T.clean=function(i){if(i&&typeof i=="object"){var r,n,o,a,u=Object.keys(i);for(r=0;r0?rt>=gt:rt<=gt));Ie++)rt>dt&&rt0?rt>=gt:rt<=gt));Ie++)rt>nt[0]&&rt1){var st=Math.pow(10,Math.floor(Math.log(xt)/Math.LN10));Qe*=st*s.roundUp(xt/st,[2,5,10]),(Math.abs(le.start)/le.size+1e-6)%1<2e-6&&(Ke.tick0=0)}Ke.dtick=Qe}Ke.domain=G?[He+W/pe.h,He+Ne-W/pe.h]:[He+Y/pe.w,He+Ne-Y/pe.w],Ke.setScale(),C.attr("transform",t(Math.round(pe.l),Math.round(pe.t)));var ot,mt=C.select("."+_.cbtitleunshift).attr("transform",t(-Math.round(pe.l),-Math.round(pe.t))),Tt=Ke.ticklabelposition,wt=Ke.title.font.size,Pt=C.select("."+_.cbaxis),Mt=0,Ye=0;function Xe(Ve,We){var nt={propContainer:Ke,propName:P._propPrefix+"title",traceIndex:P._traceIndex,_meta:P._meta,placeholder:ce._dfltTitle.colorbar,containerGroup:C.select("."+_.cbtitle)},rt=Ve.charAt(0)==="h"?Ve.substr(1):"h"+Ve;C.selectAll("."+rt+",."+rt+"-math-group").remove(),a.draw(R,Ve,i(nt,We||{}))}return s.syncOrAsync([l.previousPromises,function(){var Ve,We;(G&&at||!G&&!at)&&(me==="top"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He-Ne)+3+.75*wt),me==="bottom"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He)-3-.25*wt),me==="right"&&(We=W+pe.t+Me*re+3+.75*wt,Ve=Y+pe.l+fe*He),Xe(Ke._id+"title",{attributes:{x:Ve,y:We,"text-anchor":G?"start":"middle"}}))},function(){if(!G&&!at||G&&at){var Ve,We=C.select("."+_.cbtitle),nt=We.select("text"),rt=[-H/2,H/2],Ie=We.select(".h"+Ke._id+"title-math-group").node(),De=15.6;if(nt.node()&&(De=parseInt(nt.node().style.fontSize,10)*m),Ie?(Ve=n.bBox(Ie),Ye=Ve.width,(Mt=Ve.height)>De&&(rt[1]-=(Mt-De)/2)):nt.node()&&!nt.classed(_.jsPlaceholder)&&(Ve=n.bBox(nt.node()),Ye=Ve.width,Mt=Ve.height),G){if(Mt){if(Mt+=5,me==="top")Ke.domain[1]-=Mt/pe.h,rt[1]*=-1;else{Ke.domain[0]+=Mt/pe.h;var et=u.lineCount(nt);rt[1]+=(1-et)*De}We.attr("transform",t(rt[0],rt[1])),Ke.setScale()}}else Ye&&(me==="right"&&(Ke.domain[0]+=(Ye+wt/2)/pe.w),We.attr("transform",t(rt[0],rt[1])),Ke.setScale())}C.selectAll("."+_.cbfills+",."+_.cblines).attr("transform",G?t(0,Math.round(pe.h*(1-Ke.domain[1]))):t(Math.round(pe.w*Ke.domain[0]),0)),Pt.attr("transform",G?t(0,Math.round(-pe.t)):t(Math.round(-pe.l),0));var tt=C.select("."+_.cbfills).selectAll("rect."+_.cbfill).attr("style","").data(ne);tt.enter().append("rect").classed(_.cbfill,!0).attr("style",""),tt.exit().remove();var gt=Oe.map(Ke.c2p).map(Math.round).sort(function(ut,ft){return ut-ft});tt.each(function(ut,ft){var bt=[ft===0?Oe[0]:(ne[ft]+ne[ft-1])/2,ft===ne.length-1?Oe[1]:(ne[ft]+ne[ft+1])/2].map(Ke.c2p).map(Math.round);G&&(bt[1]=s.constrain(bt[1]+(bt[1]>bt[0])?1:-1,gt[0],gt[1]));var It=M.select(this).attr(G?"x":"y",be).attr(G?"y":"x",M.min(bt)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(M.max(bt)-M.min(bt),2));if(P._fillgradient)n.gradient(It,R,P._id,G?"vertical":"horizontalreversed",P._fillgradient,"fill");else{var Rt=Te(ut).replace("e-","");It.attr("fill",k(Rt).toHexString())}});var ht=C.select("."+_.cblines).selectAll("path."+_.cbline).data(we.color&&we.width?ve:[]);ht.enter().append("path").classed(_.cbline,!0),ht.exit().remove(),ht.each(function(ut){var ft=be,bt=Math.round(Ke.c2p(ut))+we.width/2%1;M.select(this).attr("d","M"+(G?ft+","+bt:bt+","+ft)+(G?"h":"v")+Ee).call(n.lineGroupStyle,we.width,ke(ut),we.dash)}),Pt.selectAll("g."+Ke._id+"tick,path").remove();var dt=be+Ee+(H||0)/2-(P.ticks==="outside"?1:0),ct=b.calcTicks(Ke),kt=b.getTickSigns(Ke)[2];return b.drawTicks(R,Ke,{vals:Ke.ticks==="inside"?b.clipEnds(Ke,ct):ct,layer:Pt,path:b.makeTickPath(Ke,dt,kt),transFn:b.makeTransTickFn(Ke)}),b.drawLabels(R,Ke,{vals:ct,layer:Pt,transFn:b.makeTransTickLabelFn(Ke),labelFns:b.makeLabelFns(Ke,dt)})},function(){if(G&&!at||!G&&at){var Ve,We,nt=Ke.position||0,rt=Ke._offset+Ke._length/2;if(me==="right")We=rt,Ve=pe.l+fe*nt+10+wt*(Ke.showticklabels?1:.5);else if(Ve=rt,me==="bottom"&&(We=pe.t+Me*nt+10+(Tt.indexOf("inside")===-1?Ke.tickfont.size:0)+(Ke.ticks!=="intside"&&P.ticklen||0)),me==="top"){var Ie=ye.text.split("
").length;We=pe.t+Me*nt+10-Ee-m*wt*Ie}Xe((G?"h":"v")+Ke._id+"title",{avoid:{selection:M.select(R).selectAll("g."+Ke._id+"tick"),side:me,offsetTop:G?0:pe.t,offsetLeft:G?pe.l:0,maxShift:G?ce.width:ce.height},attributes:{x:Ve,y:We,"text-anchor":"middle"},transform:{rotate:G?-90:0,offset:0}})}},l.previousPromises,function(){var Ve,We=Ee+H/2;Tt.indexOf("inside")===-1&&(Ve=n.bBox(Pt.node()),We+=G?Ve.width:Ve.height),ot=mt.select("text");var nt=0,rt=G&&me==="top",Ie=!G&&me==="right",De=0;if(ot.node()&&!ot.classed(_.jsPlaceholder)){var et,tt=mt.select(".h"+Ke._id+"title-math-group").node();tt&&(G&&at||!G&&!at)?(nt=(Ve=n.bBox(tt)).width,et=Ve.height):(nt=(Ve=n.bBox(mt.node())).right-pe.l-(G?be:Ge),et=Ve.bottom-pe.t-(G?Ge:be),G||me!=="top"||(We+=Ve.height,De=Ve.height)),Ie&&(ot.attr("transform",t(nt/2+wt/2,0)),nt*=2),We=Math.max(We,G?nt:et)}var gt=2*(G?Y:W)+We+q+H/2,ht=0;!G&&ye.text&&J==="bottom"&&re<=0&&(gt+=ht=gt/2,De+=ht),ce._hColorbarMoveTitle=ht,ce._hColorbarMoveCBTitle=De;var dt=q+H,ct=(G?be:Ge)-dt/2-(G?Y:0),kt=(G?Ge:be)-(G?ze:W+De-ht);C.select("."+_.cbbg).attr("x",ct).attr("y",kt).attr(G?"width":"height",Math.max(gt-ht,2)).attr(G?"height":"width",Math.max(ze+dt,2)).call(o.fill,te).call(o.stroke,P.bordercolor).style("stroke-width",q);var ut=Ie?Math.max(nt-10,0):0;C.selectAll("."+_.cboutline).attr("x",(G?be:Ge+Y)+ut).attr("y",(G?Ge+W-ze:be)+(rt?Mt:0)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(ze-(G?2*W+Mt:2*Y+ut),2)).call(o.stroke,P.outlinecolor).style({fill:"none","stroke-width":H});var ft=G?Ce*gt:0,bt=G?0:(1-Fe)*gt-De;if(ft=oe?pe.l-ft:-ft,bt=ie?pe.t-bt:-bt,C.attr("transform",t(ft,bt)),!G&&(q||k(te).getAlpha()&&!k.equals(ce.paper_bgcolor,te))){var It=Pt.selectAll("text"),Rt=It[0].length,Dt=C.select("."+_.cbbg).node(),Kt=n.bBox(Dt),qt=n.getTranslate(C);It.each(function(fn,vn){var Mn=Rt-1;if(vn===0||vn===Mn){var En,bn=n.bBox(this),Ln=n.getTranslate(this);if(vn===Mn){var Wn=bn.right+Ln.x;(En=Kt.right+qt.x+Ge-q-2+Q-Wn)>0&&(En=0)}else if(vn===0){var Qn=bn.left+Ln.x;(En=Kt.left+qt.x+Ge+q+2-Qn)<0&&(En=0)}En&&(Rt<3?this.setAttribute("transform","translate("+En+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Wt={},Ht=v[K],hn=y[K],yn=v[J],un=y[J],jt=gt-Ee;G?(V==="pixels"?(Wt.y=re,Wt.t=ze*yn,Wt.b=ze*un):(Wt.t=Wt.b=0,Wt.yt=re+O*yn,Wt.yb=re-O*un),B==="pixels"?(Wt.x=Q,Wt.l=gt*Ht,Wt.r=gt*hn):(Wt.l=jt*Ht,Wt.r=jt*hn,Wt.xl=Q-N*Ht,Wt.xr=Q+N*hn)):(V==="pixels"?(Wt.x=Q,Wt.l=ze*Ht,Wt.r=ze*hn):(Wt.l=Wt.r=0,Wt.xl=Q+O*Ht,Wt.xr=Q-O*hn),B==="pixels"?(Wt.y=1-re,Wt.t=gt*yn,Wt.b=gt*un):(Wt.t=jt*yn,Wt.b=jt*un,Wt.yt=re-N*yn,Wt.yb=re+N*un));var nn=P.y<.5?"b":"t",Jt=P.x<.5?"l":"r";R._fullLayout._reservedMargin[P._id]={};var rn={r:ce.width-ct-ft,l:ct+Wt.r,b:ce.height-kt-bt,t:kt+Wt.b};oe&&ie?l.autoMargin(R,P._id,Wt):oe?R._fullLayout._reservedMargin[P._id][nn]=rn[nn]:ie||G?R._fullLayout._reservedMargin[P._id][Jt]=rn[Jt]:R._fullLayout._reservedMargin[P._id][nn]=rn[nn]}],R)}(E,w,f);L&&L.then&&(f._promises||[]).push(L),f._context.edits.colorbarPosition&&function(C,P,R){var G,O,V,N=P.orientation==="v",B=R._fullLayout._size;d.init({element:C.node(),gd:R,prepFn:function(){G=C.attr("transform"),r(C)},moveFn:function(H,q){C.attr("transform",G+t(H,q)),O=d.align((N?P._uFrac:P._vFrac)+H/B.w,N?P._thickFrac:P._lenFrac,0,1,P.xanchor),V=d.align((N?P._vFrac:1-P._uFrac)-q/B.h,N?P._lenFrac:P._thickFrac,0,1,P.yanchor);var te=d.getCursor(O,V,P.xanchor,P.yanchor);r(C,te)},doneFn:function(){if(r(C),O!==void 0&&V!==void 0){var H={};H[P._propPrefix+"x"]=O,H[P._propPrefix+"y"]=V,P._traceIndex!==void 0?T.call("_guiRestyle",R,H,P._traceIndex):T.call("_guiRelayout",R,H)}}})}(E,w,f)}),S.exit().each(function(w){l.autoMargin(f,w._id)}).remove(),S.order()}}},76228:function(ee,z,e){var M=e(71828);ee.exports=function(k){return M.isPlainObject(k.colorbar)}},12311:function(ee,z,e){ee.exports={moduleType:"component",name:"colorbar",attributes:e(63583),supplyDefaults:e(62499),draw:e(98981).draw,hasColorbar:e(76228)}},50693:function(ee,z,e){var M=e(63583),k=e(30587).counter,l=e(78607),T=e(63282).scales;function b(d){return"`"+d+"`"}l(T),ee.exports=function(d,s){d=d||"";var t,i=(s=s||{}).cLetter||"c",r=("onlyIfNumerical"in s?s.onlyIfNumerical:Boolean(d),"noScale"in s?s.noScale:d==="marker.line"),n="showScaleDflt"in s?s.showScaleDflt:i==="z",o=typeof s.colorscaleDflt=="string"?T[s.colorscaleDflt]:null,a=s.editTypeOverride||"",u=d?d+".":"";"colorAttr"in s?(t=s.colorAttr,s.colorAttr):b(u+(t={z:"z",c:"color"}[i]));var p=i+"auto",c=i+"min",x=i+"max",g=i+"mid",h={};h[c]=h[x]=void 0;var m={};m[p]=!1;var v={};return t==="color"&&(v.color={valType:"color",arrayOk:!0,editType:a||"style"},s.anim&&(v.color.anim=!0)),v[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:h},v[c]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[x]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:h},v.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},v.autocolorscale={valType:"boolean",dflt:s.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},v.reversescale={valType:"boolean",dflt:!1,editType:"plot"},r||(v.showscale={valType:"boolean",dflt:n,editType:"calc"},v.colorbar=M),s.noColorAxis||(v.coloraxis={valType:"subplotid",regex:k("coloraxis"),dflt:null,editType:"calc"}),v}},78803:function(ee,z,e){var M=e(92770),k=e(71828),l=e(52075).extractOpts;ee.exports=function(T,b,d){var s,t=T._fullLayout,i=d.vals,r=d.containerStr,n=r?k.nestedProperty(b,r).get():b,o=l(n),a=o.auto!==!1,u=o.min,p=o.max,c=o.mid,x=function(){return k.aggNums(Math.min,null,i)},g=function(){return k.aggNums(Math.max,null,i)};u===void 0?u=x():a&&(u=n._colorAx&&M(u)?Math.min(u,x()):x()),p===void 0?p=g():a&&(p=n._colorAx&&M(p)?Math.max(p,g()):g()),a&&c!==void 0&&(p-c>c-u?u=c-(p-c):p-c=0?t.colorscale.sequential:t.colorscale.sequentialminus,o._sync("colorscale",s))}},33046:function(ee,z,e){var M=e(71828),k=e(52075).hasColorscale,l=e(52075).extractOpts;ee.exports=function(T,b){function d(a,u){var p=a["_"+u];p!==void 0&&(a[u]=p)}function s(a,u){var p=u.container?M.nestedProperty(a,u.container).get():a;if(p)if(p.coloraxis)p._colorAx=b[p.coloraxis];else{var c=l(p),x=c.auto;(x||c.min===void 0)&&d(p,u.min),(x||c.max===void 0)&&d(p,u.max),c.autocolorscale&&d(p,"colorscale")}}for(var t=0;t=0;x--,g++){var h=u[x];c[g]=[1-h[0],h[1]]}return c}function o(u,p){p=p||{};for(var c=u.domain,x=u.range,g=x.length,h=new Array(g),m=0;m1.3333333333333333-d?b:d}},70461:function(ee,z,e){var M=e(71828),k=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ee.exports=function(l,T,b,d){return l=b==="left"?0:b==="center"?1:b==="right"?2:M.constrain(Math.floor(3*l),0,2),T=d==="bottom"?0:d==="middle"?1:d==="top"?2:M.constrain(Math.floor(3*T),0,2),k[T][l]}},64505:function(ee,z){z.selectMode=function(e){return e==="lasso"||e==="select"},z.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.openMode=function(e){return e==="drawline"||e==="drawopenpath"},z.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},z.selectingOrDrawing=function(e){return z.freeMode(e)||z.rectMode(e)}},28569:function(ee,z,e){var M=e(48956),k=e(57035),l=e(38520),T=e(71828).removeElement,b=e(85555),d=ee.exports={};d.align=e(92807),d.getCursor=e(70461);var s=e(26041);function t(){var r=document.createElement("div");r.className="dragcover";var n=r.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(r),r}function i(r){return M(r.changedTouches?r.changedTouches[0]:r,document.body)}d.unhover=s.wrapped,d.unhoverRaw=s.raw,d.init=function(r){var n,o,a,u,p,c,x,g,h=r.gd,m=1,v=h._context.doubleClickDelay,y=r.element;h._mouseDownTime||(h._mouseDownTime=0),y.style.pointerEvents="all",y.onmousedown=f,l?(y._ontouchstart&&y.removeEventListener("touchstart",y._ontouchstart),y._ontouchstart=f,y.addEventListener("touchstart",f,{passive:!1})):y.ontouchstart=f;var _=r.clampFn||function(E,L,C){return Math.abs(E)v&&(m=Math.max(m-1,1)),h._dragged)r.doneFn&&r.doneFn();else if(r.clickFn&&r.clickFn(m,c),!g){var L;try{L=new MouseEvent("click",E)}catch{var C=i(E);(L=document.createEvent("MouseEvents")).initMouseEvent("click",E.bubbles,E.cancelable,E.view,E.detail,E.screenX,E.screenY,C[0],C[1],E.ctrlKey,E.altKey,E.shiftKey,E.metaKey,E.button,E.relatedTarget)}x.dispatchEvent(L)}h._dragging=!1,h._dragged=!1}else h._dragged=!1}},d.coverSlip=t},26041:function(ee,z,e){var M=e(11086),k=e(79990),l=e(24401).getGraphDiv,T=e(26675),b=ee.exports={};b.wrapped=function(d,s,t){(d=l(d))._fullLayout&&k.clear(d._fullLayout._uid+T.HOVERID),b.raw(d,s,t)},b.raw=function(d,s){var t=d._fullLayout,i=d._hoverdata;s||(s={}),s.target&&!d._dragged&&M.triggerHandler(d,"plotly_beforehover",s)===!1||(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),d._hoverdata=void 0,s.target&&i&&d.emit("plotly_unhover",{event:s,points:i}))}},79952:function(ee,z){z.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},z.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(ee,z,e){var M=e(39898),k=e(71828),l=k.numberFormat,T=e(92770),b=e(84267),d=e(73972),s=e(7901),t=e(21081),i=k.strTranslate,r=e(63893),n=e(77922),o=e(18783).LINE_SPACING,a=e(37822).DESELECTDIM,u=e(34098),p=e(39984),c=e(23469).appendArrayPointValue,x=ee.exports={};function g(ke,Te,le){var se=Te.fillpattern,ne=se&&x.getPatternAttr(se.shape,0,"");if(ne){var ve=x.getPatternAttr(se.bgcolor,0,null),Ee=x.getPatternAttr(se.fgcolor,0,null),_e=se.fgopacity,ze=x.getPatternAttr(se.size,0,8),Ne=x.getPatternAttr(se.solidity,0,.3),fe=Te.uid;x.pattern(ke,"point",le,fe,ne,ze,Ne,void 0,se.fillmode,ve,Ee,_e)}else Te.fillcolor&&ke.call(s.fill,Te.fillcolor)}x.font=function(ke,Te,le,se){k.isPlainObject(Te)&&(se=Te.color,le=Te.size,Te=Te.family),Te&&ke.style("font-family",Te),le+1&&ke.style("font-size",le+"px"),se&&ke.call(s.fill,se)},x.setPosition=function(ke,Te,le){ke.attr("x",Te).attr("y",le)},x.setSize=function(ke,Te,le){ke.attr("width",Te).attr("height",le)},x.setRect=function(ke,Te,le,se,ne){ke.call(x.setPosition,Te,le).call(x.setSize,se,ne)},x.translatePoint=function(ke,Te,le,se){var ne=le.c2p(ke.x),ve=se.c2p(ke.y);return!!(T(ne)&&T(ve)&&Te.node())&&(Te.node().nodeName==="text"?Te.attr("x",ne).attr("y",ve):Te.attr("transform",i(ne,ve)),!0)},x.translatePoints=function(ke,Te,le){ke.each(function(se){var ne=M.select(this);x.translatePoint(se,ne,Te,le)})},x.hideOutsideRangePoint=function(ke,Te,le,se,ne,ve){Te.attr("display",le.isPtWithinRange(ke,ne)&&se.isPtWithinRange(ke,ve)?null:"none")},x.hideOutsideRangePoints=function(ke,Te){if(Te._hasClipOnAxisFalse){var le=Te.xaxis,se=Te.yaxis;ke.each(function(ne){var ve=ne[0].trace,Ee=ve.xcalendar,_e=ve.ycalendar,ze=d.traceIs(ve,"bar-like")?".bartext":".point,.textpoint";ke.selectAll(ze).each(function(Ne){x.hideOutsideRangePoint(Ne,M.select(this),le,se,Ee,_e)})})}},x.crispRound=function(ke,Te,le){return Te&&T(Te)?ke._context.staticPlot?Te:Te<1?1:Math.round(Te):le||0},x.singleLineStyle=function(ke,Te,le,se,ne){Te.style("fill","none");var ve=(((ke||[])[0]||{}).trace||{}).line||{},Ee=le||ve.width||0,_e=ne||ve.dash||"";s.stroke(Te,se||ve.color),x.dashLine(Te,_e,Ee)},x.lineGroupStyle=function(ke,Te,le,se){ke.style("fill","none").each(function(ne){var ve=(((ne||[])[0]||{}).trace||{}).line||{},Ee=Te||ve.width||0,_e=se||ve.dash||"";M.select(this).call(s.stroke,le||ve.color).call(x.dashLine,_e,Ee)})},x.dashLine=function(ke,Te,le){le=+le||0,Te=x.dashStyle(Te,le),ke.style({"stroke-dasharray":Te,"stroke-width":le+"px"})},x.dashStyle=function(ke,Te){Te=+Te||1;var le=Math.max(Te,3);return ke==="solid"?ke="":ke==="dot"?ke=le+"px,"+le+"px":ke==="dash"?ke=3*le+"px,"+3*le+"px":ke==="longdash"?ke=5*le+"px,"+5*le+"px":ke==="dashdot"?ke=3*le+"px,"+le+"px,"+le+"px,"+le+"px":ke==="longdashdot"&&(ke=5*le+"px,"+2*le+"px,"+le+"px,"+2*le+"px"),ke},x.singleFillStyle=function(ke,Te){var le=M.select(ke.node());g(ke,((le.data()[0]||[])[0]||{}).trace||{},Te)},x.fillGroupStyle=function(ke,Te){ke.style("stroke-width",0).each(function(le){var se=M.select(this);le[0].trace&&g(se,le[0].trace,Te)})};var h=e(90998);x.symbolNames=[],x.symbolFuncs=[],x.symbolBackOffs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(h).forEach(function(ke){var Te=h[ke],le=Te.n;x.symbolList.push(le,String(le),ke,le+100,String(le+100),ke+"-open"),x.symbolNames[le]=ke,x.symbolFuncs[le]=Te.f,x.symbolBackOffs[le]=Te.backoff||0,Te.needLine&&(x.symbolNeedLines[le]=!0),Te.noDot?x.symbolNoDot[le]=!0:x.symbolList.push(le+200,String(le+200),ke+"-dot",le+300,String(le+300),ke+"-open-dot"),Te.noFill&&(x.symbolNoFill[le]=!0)});var m=x.symbolNames.length;function v(ke,Te,le,se){var ne=ke%100;return x.symbolFuncs[ne](Te,le,se)+(ke>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(ke){if(T(ke))ke=+ke;else if(typeof ke=="string"){var Te=0;ke.indexOf("-open")>0&&(Te=100,ke=ke.replace("-open","")),ke.indexOf("-dot")>0&&(Te+=200,ke=ke.replace("-dot","")),(ke=x.symbolNames.indexOf(ke))>=0&&(ke+=Te)}return ke%100>=m||ke>=400?0:Math.floor(Math.max(ke,0))};var y={x1:1,x2:0,y1:0,y2:0},_={x1:0,x2:0,y1:1,y2:0},f=l("~f"),S={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:y},horizontalreversed:{node:"linearGradient",attrs:y,reversed:!0},vertical:{node:"linearGradient",attrs:_},verticalreversed:{node:"linearGradient",attrs:_,reversed:!0}};x.gradient=function(ke,Te,le,se,ne,ve){for(var Ee=ne.length,_e=S[se],ze=new Array(Ee),Ne=0;Ne=0&&ke.i===void 0&&(ke.i=ve.i),Te.style("opacity",se.selectedOpacityFn?se.selectedOpacityFn(ke):ke.mo===void 0?Ee.opacity:ke.mo),se.ms2mrc){var ze;ze=ke.ms==="various"||Ee.size==="various"?3:se.ms2mrc(ke.ms),ke.mrc=ze,se.selectedSizeFn&&(ze=ke.mrc=se.selectedSizeFn(ke));var Ne=x.symbolNumber(ke.mx||Ee.symbol)||0;ke.om=Ne%200>=100;var fe=Oe(ke,le),Me=W(ke,le);Te.attr("d",v(Ne,ze,fe,Me))}var be,Ce,Fe,Re=!1;if(ke.so)Fe=_e.outlierwidth,Ce=_e.outliercolor,be=Ee.outliercolor;else{var He=(_e||{}).width;Fe=(ke.mlw+1||He+1||(ke.trace?(ke.trace.marker.line||{}).width:0)+1)-1||0,Ce="mlc"in ke?ke.mlcc=se.lineScale(ke.mlc):k.isArrayOrTypedArray(_e.color)?s.defaultLine:_e.color,k.isArrayOrTypedArray(Ee.color)&&(be=s.defaultLine,Re=!0),be="mc"in ke?ke.mcc=se.markerScale(ke.mc):Ee.color||Ee.colors||"rgba(0,0,0,0)",se.selectedColorFn&&(be=se.selectedColorFn(ke))}if(ke.om)Te.call(s.stroke,be).style({"stroke-width":(Fe||1)+"px",fill:"none"});else{Te.style("stroke-width",(ke.isBlank?0:Fe)+"px");var Ge=Ee.gradient,Ke=ke.mgt;Ke?Re=!0:Ke=Ge&&Ge.type,k.isArrayOrTypedArray(Ke)&&(Ke=Ke[0],S[Ke]||(Ke=0));var at=Ee.pattern,Qe=at&&x.getPatternAttr(at.shape,ke.i,"");if(Ke&&Ke!=="none"){var vt=ke.mgc;vt?Re=!0:vt=Ge.color;var xt=le.uid;Re&&(xt+="-"+ke.i),x.gradient(Te,ne,xt,Ke,[[0,vt],[1,be]],"fill")}else if(Qe){var st=!1,ot=at.fgcolor;!ot&&ve&&ve.color&&(ot=ve.color,st=!0);var mt=x.getPatternAttr(ot,ke.i,ve&&ve.color||null),Tt=x.getPatternAttr(at.bgcolor,ke.i,null),wt=at.fgopacity,Pt=x.getPatternAttr(at.size,ke.i,8),Mt=x.getPatternAttr(at.solidity,ke.i,.3);st=st||ke.mcc||k.isArrayOrTypedArray(at.shape)||k.isArrayOrTypedArray(at.bgcolor)||k.isArrayOrTypedArray(at.fgcolor)||k.isArrayOrTypedArray(at.size)||k.isArrayOrTypedArray(at.solidity);var Ye=le.uid;st&&(Ye+="-"+ke.i),x.pattern(Te,"point",ne,Ye,Qe,Pt,Mt,ke.mcc,at.fillmode,Tt,mt,wt)}else k.isArrayOrTypedArray(be)?s.fill(Te,be[ke.i]):s.fill(Te,be);Fe&&s.stroke(Te,Ce)}},x.makePointStyleFns=function(ke){var Te={},le=ke.marker;return Te.markerScale=x.tryColorscale(le,""),Te.lineScale=x.tryColorscale(le,"line"),d.traceIs(ke,"symbols")&&(Te.ms2mrc=u.isBubble(ke)?p(ke):function(){return(le.size||6)/2}),ke.selectedpoints&&k.extendFlat(Te,x.makeSelectedPointStyleFns(ke)),Te},x.makeSelectedPointStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.marker||{},ve=le.marker||{},Ee=se.marker||{},_e=ne.opacity,ze=ve.opacity,Ne=Ee.opacity,fe=ze!==void 0,Me=Ne!==void 0;(k.isArrayOrTypedArray(_e)||fe||Me)&&(Te.selectedOpacityFn=function(Qe){var vt=Qe.mo===void 0?ne.opacity:Qe.mo;return Qe.selected?fe?ze:vt:Me?Ne:a*vt});var be=ne.color,Ce=ve.color,Fe=Ee.color;(Ce||Fe)&&(Te.selectedColorFn=function(Qe){var vt=Qe.mcc||be;return Qe.selected?Ce||vt:Fe||vt});var Re=ne.size,He=ve.size,Ge=Ee.size,Ke=He!==void 0,at=Ge!==void 0;return d.traceIs(ke,"symbols")&&(Ke||at)&&(Te.selectedSizeFn=function(Qe){var vt=Qe.mrc||Re/2;return Qe.selected?Ke?He/2:vt:at?Ge/2:vt}),Te},x.makeSelectedTextStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.textfont||{},ve=le.textfont||{},Ee=se.textfont||{},_e=ne.color,ze=ve.color,Ne=Ee.color;return Te.selectedTextColorFn=function(fe){var Me=fe.tc||_e;return fe.selected?ze||Me:Ne||(ze?Me:s.addOpacity(Me,a))},Te},x.selectedPointStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedPointStyleFns(Te),se=Te.marker||{},ne=[];le.selectedOpacityFn&&ne.push(function(ve,Ee){ve.style("opacity",le.selectedOpacityFn(Ee))}),le.selectedColorFn&&ne.push(function(ve,Ee){s.fill(ve,le.selectedColorFn(Ee))}),le.selectedSizeFn&&ne.push(function(ve,Ee){var _e=Ee.mx||se.symbol||0,ze=le.selectedSizeFn(Ee);ve.attr("d",v(x.symbolNumber(_e),ze,Oe(Ee,Te),W(Ee,Te))),Ee.mrc2=ze}),ne.length&&ke.each(function(ve){for(var Ee=M.select(this),_e=0;_e0?le:0}function R(ke,Te,le){return le&&(ke=H(ke)),Te?O(ke[1]):G(ke[0])}function G(ke){var Te=M.round(ke,2);return w=Te,Te}function O(ke){var Te=M.round(ke,2);return E=Te,Te}function V(ke,Te,le,se){var ne=ke[0]-Te[0],ve=ke[1]-Te[1],Ee=le[0]-Te[0],_e=le[1]-Te[1],ze=Math.pow(ne*ne+ve*ve,.25),Ne=Math.pow(Ee*Ee+_e*_e,.25),fe=(Ne*Ne*ne-ze*ze*Ee)*se,Me=(Ne*Ne*ve-ze*ze*_e)*se,be=3*Ne*(ze+Ne),Ce=3*ze*(ze+Ne);return[[G(Te[0]+(be&&fe/be)),O(Te[1]+(be&&Me/be))],[G(Te[0]-(Ce&&fe/Ce)),O(Te[1]-(Ce&&Me/Ce))]]}x.textPointStyle=function(ke,Te,le){if(ke.size()){var se;if(Te.selectedpoints){var ne=x.makeSelectedTextStyleFns(Te);se=ne.selectedTextColorFn}var ve=Te.texttemplate,Ee=le._fullLayout;ke.each(function(_e){var ze=M.select(this),Ne=ve?k.extractOption(_e,Te,"txt","texttemplate"):k.extractOption(_e,Te,"tx","text");if(Ne||Ne===0){if(ve){var fe=Te._module.formatLabels,Me=fe?fe(_e,Te,Ee):{},be={};c(be,Te,_e.i);var Ce=Te._meta||{};Ne=k.texttemplateString(Ne,Me,Ee._d3locale,be,_e,Ce)}var Fe=_e.tp||Te.textposition,Re=P(_e,Te),He=se?se(_e):_e.tc||Te.textfont.color;ze.call(x.font,_e.tf||Te.textfont.family,Re,He).text(Ne).call(r.convertToTspans,le).call(C,Fe,Re,_e.mrc)}else ze.remove()})}},x.selectedTextStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedTextStyleFns(Te);ke.each(function(se){var ne=M.select(this),ve=le.selectedTextColorFn(se),Ee=se.tp||Te.textposition,_e=P(se,Te);s.fill(ne,ve);var ze=d.traceIs(Te,"bar-like");C(ne,Ee,_e,se.mrc2||se.mrc,ze)})}},x.smoothopen=function(ke,Te){if(ke.length<3)return"M"+ke.join("L");var le,se="M"+ke[0],ne=[];for(le=1;le=ze||Qe>=fe&&Qe<=ze)&&(vt<=Me&&vt>=Ne||vt>=Me&&vt<=Ne)&&(ke=[Qe,vt])}return ke}x.steps=function(ke){var Te=N[ke]||B;return function(le){for(var se="M"+G(le[0][0])+","+O(le[0][1]),ne=le.length,ve=1;ve=1e4&&(x.savedBBoxes={},q=0),le&&(x.savedBBoxes[le]=Ce),q++,k.extendFlat({},Ce)},x.setClipUrl=function(ke,Te,le){ke.attr("clip-path",K(Te,le))},x.getTranslate=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||0,y:+Te[1]||0}},x.setTranslate=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||0,le=le||0,ve=ve.replace(/(\btranslate\(.*?\);?)/,"").trim(),ve=(ve+=i(Te,le)).trim(),ke[ne]("transform",ve),ve},x.getScale=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||1,y:+Te[1]||1}},x.setScale=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||1,le=le||1,ve=ve.replace(/(\bscale\(.*?\);?)/,"").trim(),ve=(ve+="scale("+Te+","+le+")").trim(),ke[ne]("transform",ve),ve};var J=/\s*sc.*/;x.setPointGroupScale=function(ke,Te,le){if(Te=Te||1,le=le||1,ke){var se=Te===1&&le===1?"":"scale("+Te+","+le+")";ke.each(function(){var ne=(this.getAttribute("transform")||"").replace(J,"");ne=(ne+=se).trim(),this.setAttribute("transform",ne)})}};var Y=/translate\([^)]*\)\s*$/;function W(ke,Te){var le;return ke&&(le=ke.mf),le===void 0&&(le=Te.marker&&Te.marker.standoff||0),Te._geo||Te._xA?le:-le}x.setTextPointsScale=function(ke,Te,le){ke&&ke.each(function(){var se,ne=M.select(this),ve=ne.select("text");if(ve.node()){var Ee=parseFloat(ve.attr("x")||0),_e=parseFloat(ve.attr("y")||0),ze=(ne.attr("transform")||"").match(Y);se=Te===1&&le===1?[]:[i(Ee,_e),"scale("+Te+","+le+")",i(-Ee,-_e)],ze&&se.push(ze),ne.attr("transform",se.join(""))}})},x.getMarkerStandoff=W;var Q,re,ie,oe,ce,pe,ge=Math.atan2,we=Math.cos,ye=Math.sin;function me(ke,Te){var le=Te[0],se=Te[1];return[le*we(ke)-se*ye(ke),le*ye(ke)+se*we(ke)]}function Oe(ke,Te){var le,se,ne=ke.ma;ne===void 0&&(ne=Te.marker.angle||0);var ve=Te.marker.angleref;if(ve==="previous"||ve==="north"){if(Te._geo){var Ee=Te._geo.project(ke.lonlat);le=Ee[0],se=Ee[1]}else{var _e=Te._xA,ze=Te._yA;if(!_e||!ze)return 90;le=_e.c2p(ke.x),se=ze.c2p(ke.y)}if(Te._geo){var Ne,fe=ke.lonlat[0],Me=ke.lonlat[1],be=Te._geo.project([fe,Me+1e-5]),Ce=Te._geo.project([fe+1e-5,Me]),Fe=ge(Ce[1]-se,Ce[0]-le),Re=ge(be[1]-se,be[0]-le);if(ve==="north")Ne=ne/180*Math.PI;else if(ve==="previous"){var He=fe/180*Math.PI,Ge=Me/180*Math.PI,Ke=Q/180*Math.PI,at=re/180*Math.PI,Qe=Ke-He,vt=we(at)*ye(Qe),xt=ye(at)*we(Ge)-we(at)*ye(Ge)*we(Qe);Ne=-ge(vt,xt)-Math.PI,Q=fe,re=Me}var st=me(Fe,[we(Ne),0]),ot=me(Re,[ye(Ne),0]);ne=ge(st[1]+ot[1],st[0]+ot[0])/Math.PI*180,ve!=="previous"||pe===Te.uid&&ke.i===ce+1||(ne=null)}if(ve==="previous"&&!Te._geo)if(pe===Te.uid&&ke.i===ce+1&&T(le)&&T(se)){var mt=le-ie,Tt=se-oe,wt=Te.line&&Te.line.shape||"",Pt=wt.slice(wt.length-1);Pt==="h"&&(Tt=0),Pt==="v"&&(mt=0),ne+=ge(Tt,mt)/Math.PI*180+90}else ne=null}return ie=le,oe=se,ce=ke.i,pe=Te.uid,ne}x.getMarkerAngle=Oe},90998:function(ee,z,e){var M,k,l,T,b=e(95616),d=e(39898).round,s="M0,0Z",t=Math.sqrt(2),i=Math.sqrt(3),r=Math.PI,n=Math.cos,o=Math.sin;function a(p){return p===null}function u(p,c,x){if(!(p&&p%360!=0||c))return x;if(l===p&&T===c&&M===x)return k;function g(R,G){var O=n(R),V=o(R),N=G[0],B=G[1]+(c||0);return[N*O-B*V,N*V+B*O]}l=p,T=c,M=x;for(var h=p/180*r,m=0,v=0,y=b(x),_="",f=0;f0,o=b._context.staticPlot;d.each(function(a){var u,p=a[0].trace,c=p.error_x||{},x=p.error_y||{};p.ids&&(u=function(v){return v.id});var g=T.hasMarkers(p)&&p.marker.maxdisplayed>0;x.visible||c.visible||(a=[]);var h=M.select(this).selectAll("g.errorbar").data(a,u);if(h.exit().remove(),a.length){c.visible||h.selectAll("path.xerror").remove(),x.visible||h.selectAll("path.yerror").remove(),h.style("opacity",1);var m=h.enter().append("g").classed("errorbar",!0);n&&m.style("opacity",0).transition().duration(t.duration).style("opacity",1),l.setClipUrl(h,s.layerClipId,b),h.each(function(v){var y=M.select(this),_=function(C,P,R){var G={x:P.c2p(C.x),y:R.c2p(C.y)};return C.yh!==void 0&&(G.yh=R.c2p(C.yh),G.ys=R.c2p(C.ys),k(G.ys)||(G.noYS=!0,G.ys=R.c2p(C.ys,!0))),C.xh!==void 0&&(G.xh=P.c2p(C.xh),G.xs=P.c2p(C.xs),k(G.xs)||(G.noXS=!0,G.xs=P.c2p(C.xs,!0))),G}(v,i,r);if(!g||v.vis){var f,S=y.select("path.yerror");if(x.visible&&k(_.x)&&k(_.yh)&&k(_.ys)){var w=x.width;f="M"+(_.x-w)+","+_.yh+"h"+2*w+"m-"+w+",0V"+_.ys,_.noYS||(f+="m-"+w+",0h"+2*w),S.size()?n&&(S=S.transition().duration(t.duration).ease(t.easing)):S=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("yerror",!0),S.attr("d",f)}else S.remove();var E=y.select("path.xerror");if(c.visible&&k(_.y)&&k(_.xh)&&k(_.xs)){var L=(c.copy_ystyle?x:c).width;f="M"+_.xh+","+(_.y-L)+"v"+2*L+"m0,-"+L+"H"+_.xs,_.noXS||(f+="m0,-"+L+"v"+2*L),E.size()?n&&(E=E.transition().duration(t.duration).ease(t.easing)):E=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("xerror",!0),E.attr("d",f)}else E.remove()}})}})}},62662:function(ee,z,e){var M=e(39898),k=e(7901);ee.exports=function(l){l.each(function(T){var b=T[0].trace,d=b.error_y||{},s=b.error_x||{},t=M.select(this);t.selectAll("path.yerror").style("stroke-width",d.thickness+"px").call(k.stroke,d.color),s.copy_ystyle&&(s=d),t.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(k.stroke,s.color)})}},77914:function(ee,z,e){var M=e(41940),k=e(528).hoverlabel,l=e(1426).extendFlat;ee.exports={hoverlabel:{bgcolor:l({},k.bgcolor,{arrayOk:!0}),bordercolor:l({},k.bordercolor,{arrayOk:!0}),font:M({arrayOk:!0,editType:"none"}),align:l({},k.align,{arrayOk:!0}),namelength:l({},k.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(ee,z,e){var M=e(71828),k=e(73972);function l(T,b,d,s){s=s||M.identity,Array.isArray(T)&&(b[0][d]=s(T))}ee.exports=function(T){var b=T.calcdata,d=T._fullLayout;function s(o){return function(a){return M.coerceHoverinfo({hoverinfo:a},{_module:o._module},d)}}for(var t=0;t=0&&i.indexne[0]._length||Xe<0||Xe>ve[0]._length)return o.unhoverRaw(oe,ce)}else Ye="xpx"in ce?ce.xpx:ne[0]._length/2,Xe="ypx"in ce?ce.ypx:ve[0]._length/2;if(ce.pointerX=Ye+ne[0]._offset,ce.pointerY=Xe+ve[0]._offset,Ce="xval"in ce?p.flat(ye,ce.xval):p.p2c(ne,Ye),Fe="yval"in ce?p.flat(ye,ce.yval):p.p2c(ve,Xe),!k(Ce[0])||!k(Fe[0]))return T.warn("Fx.hover failed",ce,oe),o.unhoverRaw(oe,ce)}var nt=1/0;function rt(Bt,tn){for(He=0;Hemt&&(Tt.splice(0,mt),nt=Tt[0].distance),Te&&be!==0&&Tt.length===0){ot.distance=be,ot.index=!1;var In=Ke._module.hoverPoints(ot,xt,st,"closest",{hoverLayer:me._hoverlayer});if(In&&(In=In.filter(function(Gt){return Gt.spikeDistance<=be})),In&&In.length){var zn,Kn=In.filter(function(Gt){return Gt.xa.showspikes&&Gt.xa.spikesnap!=="hovered data"});if(Kn.length){var Ut=Kn[0];k(Ut.x0)&&k(Ut.y0)&&(zn=De(Ut),(!Pt.vLinePoint||Pt.vLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.vLinePoint=zn))}var _n=In.filter(function(Gt){return Gt.ya.showspikes&&Gt.ya.spikesnap!=="hovered data"});if(_n.length){var At=_n[0];k(At.x0)&&k(At.y0)&&(zn=De(At),(!Pt.hLinePoint||Pt.hLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.hLinePoint=zn))}}}}}function Ie(Bt,tn,cn){for(var dn,kn=null,Vn=1/0,In=0;In0&&Math.abs(Bt.distance)It-1;Rt--)Wt(Tt[Rt]);Tt=Dt,ht()}var Ht=oe._hoverdata,hn=[],yn=te(oe),un=K(oe);for(Re=0;Re1||Tt.length>1)||fe==="closest"&&Mt&&Tt.length>1,ir=n.combine(me.plot_bgcolor||n.background,me.paper_bgcolor),$n=P(Tt,{gd:oe,hovermode:fe,rotateLabels:Qn,bgColor:ir,container:me._hoverlayer,outerContainer:me._paper.node(),commonLabelOpts:me.hoverlabel,hoverdistance:me.hoverdistance}),Gn=$n.hoverLabels;if(p.isUnifiedHover(fe)||(function(Bt,tn,cn,dn){var kn,Vn,In,zn,Kn,Ut,_n,At=tn?"xa":"ya",Gt=tn?"ya":"xa",$t=0,mn=1,xn=Bt.size(),An=new Array(xn),sn=0,Yt=dn.minX,Xt=dn.maxX,on=dn.minY,ln=dn.maxY,Sn=function(ur){return ur*cn._invScaleX},Cn=function(ur){return ur*cn._invScaleY};function jn(ur){var br=ur[0],Zn=ur[ur.length-1];if(Vn=br.pmin-br.pos-br.dp+br.size,In=Zn.pos+Zn.dp+Zn.size-br.pmax,Vn>.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp+=Vn;kn=!1}if(!(In<.01)){if(Vn<-.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp-=In;kn=!1}if(kn){var pr=0;for(zn=0;znbr.pmax&&pr++;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos>br.pmax-1&&(Ut.del=!0,pr--);for(zn=0;zn=0;Kn--)ur[Kn].dp-=In;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos+Ut.dp+Ut.size>br.pmax&&(Ut.del=!0,pr--)}}}for(Bt.each(function(ur){var br=ur[At],Zn=ur[Gt],pr=br._id.charAt(0)==="x",Sr=br.range;sn===0&&Sr&&Sr[0]>Sr[1]!==pr&&(mn=-1);var Gr=0,ai=pr?cn.width:cn.height;if(cn.hovermode==="x"||cn.hovermode==="y"){var ni,ci,Kr=G(ur,tn),bi=ur.anchor,qa=bi==="end"?-1:1;if(bi==="middle")ci=(ni=ur.crossPos+(pr?Cn(Kr.y-ur.by/2):Sn(ur.bx/2+ur.tx2width/2)))+(pr?Cn(ur.by):Sn(ur.bx));else if(pr)ci=(ni=ur.crossPos+Cn(f+Kr.y)-Cn(ur.by/2-f))+Cn(ur.by);else{var ha=Sn(qa*f+Kr.x),to=ha+Sn(qa*ur.bx);ni=ur.crossPos+Math.min(ha,to),ci=ur.crossPos+Math.max(ha,to)}pr?on!==void 0&&ln!==void 0&&Math.min(ci,ln)-Math.max(ni,on)>1&&(Zn.side==="left"?(Gr=Zn._mainLinePosition,ai=cn.width):ai=Zn._mainLinePosition):Yt!==void 0&&Xt!==void 0&&Math.min(ci,Xt)-Math.max(ni,Yt)>1&&(Zn.side==="top"?(Gr=Zn._mainLinePosition,ai=cn.height):ai=Zn._mainLinePosition)}An[sn++]=[{datum:ur,traceIndex:ur.trace.index,dp:0,pos:ur.pos,posref:ur.posref,size:ur.by*(pr?v:1)/2,pmin:Gr,pmax:ai}]}),An.sort(function(ur,br){return ur[0].posref-br[0].posref||mn*(br[0].traceIndex-ur[0].traceIndex)});!kn&&$t<=xn;){for($t++,kn=!0,zn=0;zn.01&&Hn.pmin===nr.pmin&&Hn.pmax===nr.pmax){for(Kn=Xn.length-1;Kn>=0;Kn--)Xn[Kn].dp+=Vn;for(Fn.push.apply(Fn,Xn),An.splice(zn+1,1),_n=0,Kn=Fn.length-1;Kn>=0;Kn--)_n+=Fn[Kn].dp;for(In=_n/Fn.length,Kn=Fn.length-1;Kn>=0;Kn--)Fn[Kn].dp-=In;kn=!1}else zn++}An.forEach(jn)}for(zn=An.length-1;zn>=0;zn--){var er=An[zn];for(Kn=er.length-1;Kn>=0;Kn--){var tr=er[Kn],lr=tr.datum;lr.offset=tr.dp,lr.del=tr.del}}}(Gn,Qn,me,$n.commonLabelBoundingBox),O(Gn,Qn,me._invScaleX,me._invScaleY)),we&&we.tagName){var dr=u.getComponentMethod("annotations","hasClickToShow")(oe,hn);i(M.select(we),dr?"pointer":"")}we&&!ge&&function(Bt,tn,cn){if(!cn||cn.length!==Bt._hoverdata.length)return!0;for(var dn=cn.length-1;dn>=0;dn--){var kn=cn[dn],Vn=Bt._hoverdata[dn];if(kn.curveNumber!==Vn.curveNumber||String(kn.pointNumber)!==String(Vn.pointNumber)||String(kn.pointNumbers)!==String(Vn.pointNumbers))return!0}return!1}(oe,0,Ht)&&(Ht&&oe.emit("plotly_unhover",{event:ce,points:Ht}),oe.emit("plotly_hover",{event:ce,points:oe._hoverdata,xaxes:ne,yaxes:ve,xvals:Ce,yvals:Fe}))})(Y,W,Q,re,ie)})},z.loneHover=function(Y,W){var Q=!0;Array.isArray(Y)||(Q=!1,Y=[Y]);var re=W.gd,ie=te(re),oe=K(re),ce=P(Y.map(function(we){var ye=we._x0||we.x0||we.x||0,me=we._x1||we.x1||we.x||0,Oe=we._y0||we.y0||we.y||0,ke=we._y1||we.y1||we.y||0,Te=we.eventData;if(Te){var le=Math.min(ye,me),se=Math.max(ye,me),ne=Math.min(Oe,ke),ve=Math.max(Oe,ke),Ee=we.trace;if(u.traceIs(Ee,"gl3d")){var _e=re._fullLayout[Ee.scene]._scene.container,ze=_e.offsetLeft,Ne=_e.offsetTop;le+=ze,se+=ze,ne+=Ne,ve+=Ne}Te.bbox={x0:le+oe,x1:se+oe,y0:ne+ie,y1:ve+ie},W.inOut_bbox&&W.inOut_bbox.push(Te.bbox)}else Te=!1;return{color:we.color||n.defaultLine,x0:we.x0||we.x||0,x1:we.x1||we.x||0,y0:we.y0||we.y||0,y1:we.y1||we.y||0,xLabel:we.xLabel,yLabel:we.yLabel,zLabel:we.zLabel,text:we.text,name:we.name,idealAlign:we.idealAlign,borderColor:we.borderColor,fontFamily:we.fontFamily,fontSize:we.fontSize,fontColor:we.fontColor,nameLength:we.nameLength,textAlign:we.textAlign,trace:we.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:we.hovertemplate||!1,hovertemplateLabels:we.hovertemplateLabels||!1,eventData:Te}}),{gd:re,hovermode:"closest",rotateLabels:!1,bgColor:W.bgColor||n.background,container:M.select(W.container),outerContainer:W.outerContainer||W.container}).hoverLabels,pe=0,ge=0;return ce.sort(function(we,ye){return we.y0-ye.y0}).each(function(we,ye){var me=we.y0-we.by/2;we.offset=me-5([\s\S]*)<\/extra>/;function P(Y,W){var Q=W.gd,re=Q._fullLayout,ie=W.hovermode,oe=W.rotateLabels,ce=W.bgColor,pe=W.container,ge=W.outerContainer,we=W.commonLabelOpts||{};if(Y.length===0)return[[]];var ye=W.fontFamily||c.HOVERFONT,me=W.fontSize||c.HOVERFONTSIZE,Oe=Y[0],ke=Oe.xa,Te=Oe.ya,le=ie.charAt(0),se=le+"Label",ne=Oe[se];if(ne===void 0&&ke.type==="multicategory")for(var ve=0;vere.width-un?(Wt=re.width-un,bt.attr("d","M"+(un-f)+",0L"+un+","+yn+f+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H"+(un-2*f)+"Z")):bt.attr("d","M0,0L"+f+","+yn+f+"H"+un+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H-"+f+"Z"),He.minX=Wt-un,He.maxX=Wt+un,ke.side==="top"?(He.minY=Ht-(2*S+hn.height),He.maxY=Ht-S):(He.minY=Ht+S,He.maxY=Ht+(2*S+hn.height))}else{var jt,nn,Jt;Te.side==="right"?(jt="start",nn=1,Jt="",Wt=ke._offset+ke._length):(jt="end",nn=-1,Jt="-",Wt=ke._offset),Ht=Te._offset+(Oe.y0+Oe.y1)/2,It.attr("text-anchor",jt),bt.attr("d","M0,0L"+Jt+f+","+f+"V"+(S+hn.height/2)+"h"+Jt+(2*S+hn.width)+"V-"+(S+hn.height/2)+"H"+Jt+f+"V-"+f+"Z"),He.minY=Ht-(S+hn.height/2),He.maxY=Ht+(S+hn.height/2),Te.side==="right"?(He.minX=Wt+f,He.maxX=Wt+f+(2*S+hn.width)):(He.minX=Wt-f-(2*S+hn.width),He.maxX=Wt-f);var rn,fn=hn.height/2,vn=_e-hn.top-fn,Mn="clip"+re._uid+"commonlabel"+Te._id;if(Wt=0?Xe:Ve+rt=0?Ve:ct+rt=0?Mt:Ye+Ie=0?Ye:kt+Ie=0,ft.idealAlign!=="top"&&Wn||!Qn?Wn?(fn+=Mn/2,ft.anchor="start"):ft.anchor="middle":(fn-=Mn/2,ft.anchor="end"),ft.crossPos=fn;else{if(ft.pos=fn,Wn=rn+vn/2+ir<=ze,Qn=rn-vn/2-ir>=0,ft.idealAlign!=="left"&&Wn||!Qn)if(Wn)rn+=vn/2,ft.anchor="start";else{ft.anchor="middle";var $n=ir/2,Gn=rn+$n-ze,dr=rn-$n;Gn>0&&(rn-=Gn),dr<0&&(rn+=-dr)}else rn-=vn/2,ft.anchor="end";ft.crossPos=rn}yn.attr("text-anchor",ft.anchor),jt&&un.attr("text-anchor",ft.anchor),bt.attr("transform",b(rn,fn)+(oe?d(h):""))}),{hoverLabels:ut,commonLabelBoundingBox:He}}function R(Y,W,Q,re,ie,oe){var ce="",pe="";Y.nameOverride!==void 0&&(Y.name=Y.nameOverride),Y.name&&(Y.trace._meta&&(Y.name=T.templateString(Y.name,Y.trace._meta)),ce=H(Y.name,Y.nameLength));var ge=Q.charAt(0),we=ge==="x"?"y":"x";Y.zLabel!==void 0?(Y.xLabel!==void 0&&(pe+="x: "+Y.xLabel+"
"),Y.yLabel!==void 0&&(pe+="y: "+Y.yLabel+"
"),Y.trace.type!=="choropleth"&&Y.trace.type!=="choroplethmapbox"&&(pe+=(pe?"z: ":"")+Y.zLabel)):W&&Y[ge+"Label"]===ie?pe=Y[we+"Label"]||"":Y.xLabel===void 0?Y.yLabel!==void 0&&Y.trace.type!=="scattercarpet"&&(pe=Y.yLabel):pe=Y.yLabel===void 0?Y.xLabel:"("+Y.xLabel+", "+Y.yLabel+")",!Y.text&&Y.text!==0||Array.isArray(Y.text)||(pe+=(pe?"
":"")+Y.text),Y.extraText!==void 0&&(pe+=(pe?"
":"")+Y.extraText),oe&&pe===""&&!Y.hovertemplate&&(ce===""&&oe.remove(),pe=ce);var ye=Y.hovertemplate||!1;if(ye){var me=Y.hovertemplateLabels||Y;Y[ge+"Label"]!==ie&&(me[ge+"other"]=me[ge+"Val"],me[ge+"otherLabel"]=me[ge+"Label"]),pe=(pe=T.hovertemplateString(ye,me,re._d3locale,Y.eventData[0]||{},Y.trace._meta)).replace(C,function(Oe,ke){return ce=H(ke,Y.nameLength),""})}return[pe,ce]}function G(Y,W){var Q=0,re=Y.offset;return W&&(re*=-_,Q=Y.offset*y),{x:Q,y:re}}function O(Y,W,Q,re){var ie=function(ce){return ce*Q},oe=function(ce){return ce*re};Y.each(function(ce){var pe=M.select(this);if(ce.del)return pe.remove();var ge,we,ye,me,Oe=pe.select("text.nums"),ke=ce.anchor,Te=ke==="end"?-1:1,le=(me=(ye=(we={start:1,end:-1,middle:0}[(ge=ce).anchor])*(f+S))+we*(ge.txwidth+S),ge.anchor==="middle"&&(ye-=ge.tx2width/2,me+=ge.txwidth/2+S),{alignShift:we,textShiftX:ye,text2ShiftX:me}),se=G(ce,W),ne=se.x,ve=se.y,Ee=ke==="middle";pe.select("path").attr("d",Ee?"M-"+ie(ce.bx/2+ce.tx2width/2)+","+oe(ve-ce.by/2)+"h"+ie(ce.bx)+"v"+oe(ce.by)+"h-"+ie(ce.bx)+"Z":"M0,0L"+ie(Te*f+ne)+","+oe(f+ve)+"v"+oe(ce.by/2-f)+"h"+ie(Te*ce.bx)+"v-"+oe(ce.by)+"H"+ie(Te*f+ne)+"V"+oe(ve-f)+"Z");var _e=ne+le.textShiftX,ze=ve+ce.ty0-ce.by/2+S,Ne=ce.textAlign||"auto";Ne!=="auto"&&(Ne==="left"&&ke!=="start"?(Oe.attr("text-anchor","start"),_e=Ee?-ce.bx/2-ce.tx2width/2+S:-ce.bx-S):Ne==="right"&&ke!=="end"&&(Oe.attr("text-anchor","end"),_e=Ee?ce.bx/2-ce.tx2width/2-S:ce.bx+S)),Oe.call(t.positionText,ie(_e),oe(ze)),ce.tx2width&&(pe.select("text.name").call(t.positionText,ie(le.text2ShiftX+le.alignShift*S+ne),oe(ve+ce.ty0-ce.by/2+S)),pe.select("rect").call(r.setRect,ie(le.text2ShiftX+(le.alignShift-1)*ce.tx2width/2+ne),oe(ve-ce.by/2-1),ie(ce.tx2width),oe(ce.by+2)))})}function V(Y,W){var Q=Y.index,re=Y.trace||{},ie=Y.cd[0],oe=Y.cd[Q]||{};function ce(Oe){return Oe||k(Oe)&&Oe===0}var pe=Array.isArray(Q)?function(Oe,ke){var Te=T.castOption(ie,Q,Oe);return ce(Te)?Te:T.extractOption({},re,"",ke)}:function(Oe,ke){return T.extractOption(oe,re,Oe,ke)};function ge(Oe,ke,Te){var le=pe(ke,Te);ce(le)&&(Y[Oe]=le)}if(ge("hoverinfo","hi","hoverinfo"),ge("bgcolor","hbg","hoverlabel.bgcolor"),ge("borderColor","hbc","hoverlabel.bordercolor"),ge("fontFamily","htf","hoverlabel.font.family"),ge("fontSize","hts","hoverlabel.font.size"),ge("fontColor","htc","hoverlabel.font.color"),ge("nameLength","hnl","hoverlabel.namelength"),ge("textAlign","hta","hoverlabel.align"),Y.posref=W==="y"||W==="closest"&&re.orientation==="h"?Y.xa._offset+(Y.x0+Y.x1)/2:Y.ya._offset+(Y.y0+Y.y1)/2,Y.x0=T.constrain(Y.x0,0,Y.xa._length),Y.x1=T.constrain(Y.x1,0,Y.xa._length),Y.y0=T.constrain(Y.y0,0,Y.ya._length),Y.y1=T.constrain(Y.y1,0,Y.ya._length),Y.xLabelVal!==void 0&&(Y.xLabel="xLabel"in Y?Y.xLabel:a.hoverLabelText(Y.xa,Y.xLabelVal,re.xhoverformat),Y.xVal=Y.xa.c2d(Y.xLabelVal)),Y.yLabelVal!==void 0&&(Y.yLabel="yLabel"in Y?Y.yLabel:a.hoverLabelText(Y.ya,Y.yLabelVal,re.yhoverformat),Y.yVal=Y.ya.c2d(Y.yLabelVal)),Y.zLabelVal!==void 0&&Y.zLabel===void 0&&(Y.zLabel=String(Y.zLabelVal)),!(isNaN(Y.xerr)||Y.xa.type==="log"&&Y.xerr<=0)){var we=a.tickText(Y.xa,Y.xa.c2l(Y.xerr),"hover").text;Y.xerrneg!==void 0?Y.xLabel+=" +"+we+" / -"+a.tickText(Y.xa,Y.xa.c2l(Y.xerrneg),"hover").text:Y.xLabel+=" \xB1 "+we,W==="x"&&(Y.distance+=1)}if(!(isNaN(Y.yerr)||Y.ya.type==="log"&&Y.yerr<=0)){var ye=a.tickText(Y.ya,Y.ya.c2l(Y.yerr),"hover").text;Y.yerrneg!==void 0?Y.yLabel+=" +"+ye+" / -"+a.tickText(Y.ya,Y.ya.c2l(Y.yerrneg),"hover").text:Y.yLabel+=" \xB1 "+ye,W==="y"&&(Y.distance+=1)}var me=Y.hoverinfo||Y.trace.hoverinfo;return me&&me!=="all"&&((me=Array.isArray(me)?me:me.split("+")).indexOf("x")===-1&&(Y.xLabel=void 0),me.indexOf("y")===-1&&(Y.yLabel=void 0),me.indexOf("z")===-1&&(Y.zLabel=void 0),me.indexOf("text")===-1&&(Y.text=void 0),me.indexOf("name")===-1&&(Y.name=void 0)),Y}function N(Y,W,Q){var re,ie,oe=Q.container,ce=Q.fullLayout,pe=ce._size,ge=Q.event,we=!!W.hLinePoint,ye=!!W.vLinePoint;if(oe.selectAll(".spikeline").remove(),ye||we){var me=n.combine(ce.plot_bgcolor,ce.paper_bgcolor);if(we){var Oe,ke,Te=W.hLinePoint;re=Te&&Te.xa,(ie=Te&&Te.ya).spikesnap==="cursor"?(Oe=ge.pointerX,ke=ge.pointerY):(Oe=re._offset+Te.x,ke=ie._offset+Te.y);var le,se,ne=l.readability(Te.color,me)<1.5?n.contrast(me):Te.color,ve=ie.spikemode,Ee=ie.spikethickness,_e=ie.spikecolor||ne,ze=a.getPxPosition(Y,ie);if(ve.indexOf("toaxis")!==-1||ve.indexOf("across")!==-1){if(ve.indexOf("toaxis")!==-1&&(le=ze,se=Oe),ve.indexOf("across")!==-1){var Ne=ie._counterDomainMin,fe=ie._counterDomainMax;ie.anchor==="free"&&(Ne=Math.min(Ne,ie.position),fe=Math.max(fe,ie.position)),le=pe.l+Ne*pe.w,se=pe.l+fe*pe.w}oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee,stroke:_e,"stroke-dasharray":r.dashStyle(ie.spikedash,Ee)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}ve.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:ze+(ie.side!=="right"?Ee:-Ee),cy:ke,r:Ee,fill:_e}).classed("spikeline",!0)}if(ye){var Me,be,Ce=W.vLinePoint;re=Ce&&Ce.xa,ie=Ce&&Ce.ya,re.spikesnap==="cursor"?(Me=ge.pointerX,be=ge.pointerY):(Me=re._offset+Ce.x,be=ie._offset+Ce.y);var Fe,Re,He=l.readability(Ce.color,me)<1.5?n.contrast(me):Ce.color,Ge=re.spikemode,Ke=re.spikethickness,at=re.spikecolor||He,Qe=a.getPxPosition(Y,re);if(Ge.indexOf("toaxis")!==-1||Ge.indexOf("across")!==-1){if(Ge.indexOf("toaxis")!==-1&&(Fe=Qe,Re=be),Ge.indexOf("across")!==-1){var vt=re._counterDomainMin,xt=re._counterDomainMax;re.anchor==="free"&&(vt=Math.min(vt,re.position),xt=Math.max(xt,re.position)),Fe=pe.t+(1-xt)*pe.h,Re=pe.t+(1-vt)*pe.h}oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke,stroke:at,"stroke-dasharray":r.dashStyle(re.spikedash,Ke)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}Ge.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:Me,cy:Qe-(re.side!=="top"?Ke:-Ke),r:Ke,fill:at}).classed("spikeline",!0)}}}function B(Y,W){return!W||W.vLinePoint!==Y._spikepoints.vLinePoint||W.hLinePoint!==Y._spikepoints.hLinePoint}function H(Y,W){return t.plainText(Y||"",{len:W,allowedTags:["br","sub","sup","b","i","em"]})}function q(Y,W,Q){var re=W[Y+"a"],ie=W[Y+"Val"],oe=W.cd[0];if(re.type==="category"||re.type==="multicategory")ie=re._categoriesMap[ie];else if(re.type==="date"){var ce=W.trace[Y+"periodalignment"];if(ce){var pe=W.cd[W.index],ge=pe[Y+"Start"];ge===void 0&&(ge=pe[Y]);var we=pe[Y+"End"];we===void 0&&(we=pe[Y]);var ye=we-ge;ce==="end"?ie+=ye:ce==="middle"&&(ie+=ye/2)}ie=re.d2c(ie)}return oe&&oe.t&&oe.t.posLetter===re._id&&(Q.boxmode!=="group"&&Q.violinmode!=="group"||(ie+=oe.t.dPos)),ie}function te(Y){return Y.offsetTop+Y.clientTop}function K(Y){return Y.offsetLeft+Y.clientLeft}function J(Y,W){var Q=Y._fullLayout,re=W.getBoundingClientRect(),ie=re.left,oe=re.top,ce=ie+re.width,pe=oe+re.height,ge=T.apply3DTransform(Q._invTransform)(ie,oe),we=T.apply3DTransform(Q._invTransform)(ce,pe),ye=ge[0],me=ge[1],Oe=we[0],ke=we[1];return{x:ye,y:me,width:Oe-ye,height:ke-me,top:Math.min(me,ke),left:Math.min(ye,Oe),right:Math.max(ye,Oe),bottom:Math.max(me,ke)}}},38048:function(ee,z,e){var M=e(71828),k=e(7901),l=e(23469).isUnifiedHover;ee.exports=function(T,b,d,s){s=s||{};var t=b.legend;function i(r){s.font[r]||(s.font[r]=t?b.legend.font[r]:b.font[r])}b&&l(b.hovermode)&&(s.font||(s.font={}),i("size"),i("family"),i("color"),t?(s.bgcolor||(s.bgcolor=k.combine(b.legend.bgcolor,b.paper_bgcolor)),s.bordercolor||(s.bordercolor=b.legend.bordercolor)):s.bgcolor||(s.bgcolor=b.paper_bgcolor)),d("hoverlabel.bgcolor",s.bgcolor),d("hoverlabel.bordercolor",s.bordercolor),d("hoverlabel.namelength",s.namelength),M.coerceFont(d,"hoverlabel.font",s.font),d("hoverlabel.align",s.align)}},98212:function(ee,z,e){var M=e(71828),k=e(528);ee.exports=function(l,T){function b(d,s){return T[d]!==void 0?T[d]:M.coerce(l,T,k,d,s)}return b("clickmode"),b("hovermode")}},30211:function(ee,z,e){var M=e(39898),k=e(71828),l=e(28569),T=e(23469),b=e(528),d=e(88335);ee.exports={moduleType:"component",name:"fx",constants:e(26675),schema:{layout:b},attributes:e(77914),layoutAttributes:b,supplyLayoutGlobalDefaults:e(22774),supplyDefaults:e(54268),supplyLayoutDefaults:e(34938),calc:e(30732),getDistanceFunction:T.getDistanceFunction,getClosest:T.getClosest,inbox:T.inbox,quadrature:T.quadrature,appendArrayPointValue:T.appendArrayPointValue,castHoverOption:function(s,t,i){return k.castOption(s,t,"hoverlabel."+i)},castHoverinfo:function(s,t,i){return k.castOption(s,i,"hoverinfo",function(r){return k.coerceHoverinfo({hoverinfo:r},{_module:s._module},t)})},hover:d.hover,unhover:l.unhover,loneHover:d.loneHover,loneUnhover:function(s){var t=k.isD3Selection(s)?s:M.select(s);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e(75914)}},528:function(ee,z,e){var M=e(26675),k=e(41940),l=k({editType:"none"});l.family.dflt=M.HOVERFONT,l.size.dflt=M.HOVERFONTSIZE,ee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:l,grouptitlefont:k({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(ee,z,e){var M=e(71828),k=e(528),l=e(98212),T=e(38048);ee.exports=function(b,d){function s(n,o){return M.coerce(b,d,k,n,o)}l(b,d)&&(s("hoverdistance"),s("spikedistance")),s("dragmode")==="select"&&s("selectdirection");var t=d._has("mapbox"),i=d._has("geo"),r=d._basePlotModules.length;d.dragmode==="zoom"&&((t||i)&&r===1||t&&i&&r===2)&&(d.dragmode="pan"),T(b,d,s),M.coerceFont(s,"hoverlabel.grouptitlefont",d.hoverlabel.font)}},22774:function(ee,z,e){var M=e(71828),k=e(38048),l=e(528);ee.exports=function(T,b){k(T,b,function(d,s){return M.coerce(T,b,l,d,s)})}},83312:function(ee,z,e){var M=e(71828),k=e(30587).counter,l=e(27670).Y,T=e(85555).idRegex,b=e(44467),d={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[k("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:l({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function s(r,n,o){var a=n[o+"axes"],u=Object.keys((r._splomAxes||{})[o]||{});return Array.isArray(a)?a:u.length?u:void 0}function t(r,n,o,a,u,p){var c=n(r+"gap",o),x=n("domain."+r);n(r+"side",a);for(var g=new Array(u),h=x[0],m=(x[1]-h)/(u-c),v=m*(1-c),y=0;y1){x||g||h||C("pattern")==="independent"&&(x=!0),v._hasSubplotGrid=x;var f,S,w=C("roworder")==="top to bottom",E=x?.2:.1,L=x?.3:.1;m&&n._splomGridDflt&&(f=n._splomGridDflt.xside,S=n._splomGridDflt.yside),v._domains={x:t("x",C,E,f,_),y:t("y",C,L,S,y,w)}}else delete n.grid}function C(P,R){return M.coerce(o,v,d,P,R)}},contentDefaults:function(r,n){var o=n.grid;if(o&&o._domains){var a,u,p,c,x,g,h,m=r.grid||{},v=n._subplots,y=o._hasSubplotGrid,_=o.rows,f=o.columns,S=o.pattern==="independent",w=o._axisMap={};if(y){var E=m.subplots||[];g=o.subplots=new Array(_);var L=1;for(a=0;a<_;a++){var C=g[a]=new Array(f),P=E[a]||[];for(u=0;u(i==="legend"?1:0));if(L===!1&&(n[i]=void 0),(L!==!1||a.uirevision)&&(p("uirevision",n.uirevision),L!==!1)){p("borderwidth");var C,P,R,G=p("orientation")==="h",O=p("yref")==="paper",V=p("xref")==="paper",N="left";if(G?(C=0,M.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(P=1.1,R="bottom"):(P=1,R="top"):O?(P=-.1,R="top"):(P=0,R="bottom")):(P=1,R="auto",V?C=1.02:(C=1,N="right")),k.coerce(a,u,{x:{valType:"number",editType:"legend",min:V?-2:0,max:V?3:1,dflt:C}},"x"),k.coerce(a,u,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:P}},"y"),p("traceorder",_),s.isGrouped(n[i])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",N),p("yanchor",R),p("valign"),k.noneOrAll(a,u,["x","y"]),p("title.text")){p("title.side",G?"left":"top");var B=k.extendFlat({},c,{size:k.bigFont(c.size)});k.coerceFont(p,"title.font",B)}}}}ee.exports=function(i,r,n){var o,a=n.slice(),u=r.shapes;if(u)for(o=0;o1)}var re=B.hiddenlabels||[];if(!(q||B.showlegend&&te.length))return V.selectAll("."+H).remove(),B._topdefs.select("#"+O).remove(),l.autoMargin(R,H);var ie=k.ensureSingle(V,"g",H,function(ke){q||ke.attr("pointer-events","all")}),oe=k.ensureSingleById(B._topdefs,"clipPath",O,function(ke){ke.append("rect")}),ce=k.ensureSingle(ie,"rect","bg",function(ke){ke.attr("shape-rendering","crispEdges")});ce.call(t.stroke,N.bordercolor).call(t.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px");var pe=k.ensureSingle(ie,"g","scrollbox"),ge=N.title;if(N._titleWidth=0,N._titleHeight=0,ge.text){var we=k.ensureSingle(pe,"text",H+"titletext");we.attr("text-anchor","start").call(s.font,ge.font).text(ge.text),E(we,pe,R,N,h)}else pe.selectAll("."+H+"titletext").remove();var ye=k.ensureSingle(ie,"rect","scrollbar",function(ke){ke.attr(n.scrollBarEnterAttrs).call(t.fill,n.scrollBarColor)}),me=pe.selectAll("g.groups").data(te);me.enter().append("g").attr("class","groups"),me.exit().remove();var Oe=me.selectAll("g.traces").data(k.identity);Oe.enter().append("g").attr("class","traces"),Oe.exit().remove(),Oe.style("opacity",function(ke){var Te=ke[0].trace;return T.traceIs(Te,"pie-like")?re.indexOf(ke[0].label)!==-1?.5:1:Te.visible==="legendonly"?.5:1}).each(function(){M.select(this).call(f,R,N)}).call(x,R,N).each(function(){q||M.select(this).call(w,R,H)}),k.syncOrAsync([l.previousPromises,function(){return function(ke,Te,le,se){var ne=ke._fullLayout,ve=P(se);se||(se=ne[ve]);var Ee=ne._size,_e=g.isVertical(se),ze=g.isGrouped(se),Ne=se.entrywidthmode==="fraction",fe=se.borderwidth,Me=2*fe,be=n.itemGap,Ce=se.itemwidth+2*be,Fe=2*(fe+be),Re=C(se),He=se.y<0||se.y===0&&Re==="top",Ge=se.y>1||se.y===1&&Re==="bottom",Ke=se.tracegroupgap,at={};se._maxHeight=Math.max(He||Ge?ne.height/2:Ee.h,30);var Qe=0;se._width=0,se._height=0;var vt=function(ht){var dt=0,ct=0,kt=ht.title.side;return kt&&(kt.indexOf("left")!==-1&&(dt=ht._titleWidth),kt.indexOf("top")!==-1&&(ct=ht._titleHeight)),[dt,ct]}(se);if(_e)le.each(function(ht){var dt=ht[0].height;s.setTranslate(this,fe+vt[0],fe+vt[1]+se._height+dt/2+be),se._height+=dt,se._width=Math.max(se._width,ht[0].width)}),Qe=Ce+se._width,se._width+=be+Ce+Me,se._height+=Fe,ze&&(Te.each(function(ht,dt){s.setTranslate(this,0,dt*se.tracegroupgap)}),se._height+=(se._lgroupsLength-1)*se.tracegroupgap);else{var xt=L(se),st=se.x<0||se.x===0&&xt==="right",ot=se.x>1||se.x===1&&xt==="left",mt=Ge||He,Tt=ne.width/2;se._maxWidth=Math.max(st?mt&&xt==="left"?Ee.l+Ee.w:Tt:ot?mt&&xt==="right"?Ee.r+Ee.w:Tt:Ee.w,2*Ce);var wt=0,Pt=0;le.each(function(ht){var dt=y(ht,se,Ce);wt=Math.max(wt,dt),Pt+=dt}),Qe=null;var Mt=0;if(ze){var Ye=0,Xe=0,Ve=0;Te.each(function(){var ht=0,dt=0;M.select(this).selectAll("g.traces").each(function(kt){var ut=y(kt,se,Ce),ft=kt[0].height;s.setTranslate(this,vt[0],vt[1]+fe+be+ft/2+dt),dt+=ft,ht=Math.max(ht,ut),at[kt[0].trace.legendgroup]=ht});var ct=ht+be;Xe>0&&ct+fe+Xe>se._maxWidth?(Mt=Math.max(Mt,Xe),Xe=0,Ve+=Ye+Ke,Ye=dt):Ye=Math.max(Ye,dt),s.setTranslate(this,Xe,Ve),Xe+=ct}),se._width=Math.max(Mt,Xe)+fe,se._height=Ve+Ye+Fe}else{var We=le.size(),nt=Pt+Me+(We-1)*be=se._maxWidth&&(Mt=Math.max(Mt,et),Ie=0,De+=rt,se._height+=rt,rt=0),s.setTranslate(this,vt[0]+fe+Ie,vt[1]+fe+De+dt/2+be),et=Ie+ct+be,Ie+=kt,rt=Math.max(rt,dt)}),nt?(se._width=Ie+Me,se._height=rt+Fe):(se._width=Math.max(Mt,et)+Me,se._height+=rt+Fe)}}se._width=Math.ceil(Math.max(se._width+vt[0],se._titleWidth+2*(fe+n.titlePad))),se._height=Math.ceil(Math.max(se._height+vt[1],se._titleHeight+2*(fe+n.itemGap))),se._effHeight=Math.min(se._height,se._maxHeight);var tt=ke._context.edits,gt=tt.legendText||tt.legendPosition;le.each(function(ht){var dt=M.select(this).select("."+ve+"toggle"),ct=ht[0].height,kt=ht[0].trace.legendgroup,ut=y(ht,se,Ce);ze&&kt!==""&&(ut=at[kt]);var ft=gt?Ce:Qe||ut;_e||Ne||(ft+=be/2),s.setRect(dt,0,-ct/2,ft,ct)})}(R,me,Oe,N)},function(){var ke,Te,le,se,ne=B._size,ve=N.borderwidth,Ee=N.xref==="paper",_e=N.yref==="paper";if(!q){var ze,Ne;ze=Ee?ne.l+ne.w*N.x-u[L(N)]*N._width:B.width*N.x-u[L(N)]*N._width,Ne=_e?ne.t+ne.h*(1-N.y)-u[C(N)]*N._effHeight:B.height*(1-N.y)-u[C(N)]*N._effHeight;var fe=function(mt,Tt,wt,Pt){var Mt=mt._fullLayout,Ye=Mt[Tt],Xe=L(Ye),Ve=C(Ye),We=Ye.xref==="paper",nt=Ye.yref==="paper";mt._fullLayout._reservedMargin[Tt]={};var rt=Ye.y<.5?"b":"t",Ie=Ye.x<.5?"l":"r",De={r:Mt.width-wt,l:wt+Ye._width,b:Mt.height-Pt,t:Pt+Ye._effHeight};if(We&&nt)return l.autoMargin(mt,Tt,{x:Ye.x,y:Ye.y,l:Ye._width*u[Xe],r:Ye._width*p[Xe],b:Ye._effHeight*p[Ve],t:Ye._effHeight*u[Ve]});We?mt._fullLayout._reservedMargin[Tt][rt]=De[rt]:nt||Ye.orientation==="v"?mt._fullLayout._reservedMargin[Tt][Ie]=De[Ie]:mt._fullLayout._reservedMargin[Tt][rt]=De[rt]}(R,H,ze,Ne);if(fe)return;if(B.margin.autoexpand){var Me=ze,be=Ne;ze=Ee?k.constrain(ze,0,B.width-N._width):Me,Ne=_e?k.constrain(Ne,0,B.height-N._effHeight):be,ze!==Me&&k.log("Constrain "+H+".x to make legend fit inside graph"),Ne!==be&&k.log("Constrain "+H+".y to make legend fit inside graph")}s.setTranslate(ie,ze,Ne)}if(ye.on(".drag",null),ie.on("wheel",null),q||N._height<=N._maxHeight||R._context.staticPlot){var Ce=N._effHeight;q&&(Ce=N._height),ce.attr({width:N._width-ve,height:Ce-ve,x:ve/2,y:ve/2}),s.setTranslate(pe,0,0),oe.select("rect").attr({width:N._width-2*ve,height:Ce-2*ve,x:ve,y:ve}),s.setClipUrl(pe,O,R),s.setRect(ye,0,0,0,0),delete N._scrollY}else{var Fe,Re,He,Ge=Math.max(n.scrollBarMinHeight,N._effHeight*N._effHeight/N._height),Ke=N._effHeight-Ge-2*n.scrollBarMargin,at=N._height-N._effHeight,Qe=Ke/at,vt=Math.min(N._scrollY||0,at);ce.attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-ve,x:ve/2,y:ve/2}),oe.select("rect").attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-2*ve,x:ve,y:ve+vt}),s.setClipUrl(pe,O,R),ot(vt,Ge,Qe),ie.on("wheel",function(){ot(vt=k.constrain(N._scrollY+M.event.deltaY/Ke*at,0,at),Ge,Qe),vt!==0&&vt!==at&&M.event.preventDefault()});var xt=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;Fe=mt.type==="touchstart"?mt.changedTouches[0].clientY:mt.clientY,He=vt}).on("drag",function(){var mt=M.event.sourceEvent;mt.buttons===2||mt.ctrlKey||(Re=mt.type==="touchmove"?mt.changedTouches[0].clientY:mt.clientY,vt=function(Tt,wt,Pt){var Mt=(Pt-wt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});ye.call(xt);var st=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;mt.type==="touchstart"&&(Fe=mt.changedTouches[0].clientY,He=vt)}).on("drag",function(){var mt=M.event.sourceEvent;mt.type==="touchmove"&&(Re=mt.changedTouches[0].clientY,vt=function(Tt,wt,Pt){var Mt=(wt-Pt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});pe.call(st)}function ot(mt,Tt,wt){N._scrollY=R._fullLayout[H]._scrollY=mt,s.setTranslate(pe,0,-mt),s.setRect(ye,N._width,n.scrollBarMargin+mt*wt,n.scrollBarWidth,Tt),oe.select("rect").attr("y",ve+mt)}R._context.edits.legendPosition&&(ie.classed("cursor-move",!0),d.init({element:ie.node(),gd:R,prepFn:function(){var mt=s.getTranslate(ie);le=mt.x,se=mt.y},moveFn:function(mt,Tt){var wt=le+mt,Pt=se+Tt;s.setTranslate(ie,wt,Pt),ke=d.align(wt,N._width,ne.l,ne.l+ne.w,N.xanchor),Te=d.align(Pt+N._height,-N._height,ne.t+ne.h,ne.t,N.yanchor)},doneFn:function(){if(ke!==void 0&&Te!==void 0){var mt={};mt[H+".x"]=ke,mt[H+".y"]=Te,T.call("_guiRelayout",R,mt)}},clickFn:function(mt,Tt){var wt=V.selectAll("g.traces").filter(function(){var Pt=this.getBoundingClientRect();return Tt.clientX>=Pt.left&&Tt.clientX<=Pt.right&&Tt.clientY>=Pt.top&&Tt.clientY<=Pt.bottom});wt.size()>0&&_(R,ie,wt,mt,Tt)}}))}],R)}}function y(R,G,O){var V=R[0],N=V.width,B=G.entrywidthmode,H=V.trace.legendwidth||G.entrywidth;return B==="fraction"?G._maxWidth*H:O+(H||N)}function _(R,G,O,V,N){var B=O.data()[0][0].trace,H={event:N,node:O.node(),curveNumber:B.index,expandedIndex:B._expandedIndex,data:R.data,layout:R.layout,frames:R._transitionData._frames,config:R._context,fullData:R._fullData,fullLayout:R._fullLayout};B._group&&(H.group=B._group),T.traceIs(B,"pie-like")&&(H.label=O.datum()[0].label),b.triggerHandler(R,"plotly_legendclick",H)!==!1&&(V===1?G._clickTimeout=setTimeout(function(){R._fullLayout&&r(O,R,V)},R._context.doubleClickDelay):V===2&&(G._clickTimeout&&clearTimeout(G._clickTimeout),R._legendMouseDownTime=0,b.triggerHandler(R,"plotly_legenddoubleclick",H)!==!1&&r(O,R,V)))}function f(R,G,O){var V,N,B=P(O),H=R.data()[0][0],q=H.trace,te=T.traceIs(q,"pie-like"),K=!O._inHover&&G._context.edits.legendText&&!te,J=O._maxNameLength;H.groupTitle?(V=H.groupTitle.text,N=H.groupTitle.font):(N=O.font,O.entries?V=H.text:(V=te?H.label:q.name,q._meta&&(V=k.templateString(V,q._meta))));var Y=k.ensureSingle(R,"text",B+"text");Y.attr("text-anchor","start").call(s.font,N).text(K?S(V,J):V);var W=O.itemwidth+2*n.itemGap;i.positionText(Y,W,0),K?Y.call(i.makeEditable,{gd:G,text:V}).call(E,R,G,O).on("edit",function(Q){this.text(S(Q,J)).call(E,R,G,O);var re=H.trace._fullInput||{},ie={};if(T.hasTransform(re,"groupby")){var oe=T.getTransformIndices(re,"groupby"),ce=oe[oe.length-1],pe=k.keyedContainer(re,"transforms["+ce+"].styles","target","value.name");pe.set(H.trace._group,Q),ie=pe.constructUpdate()}else ie.name=Q;return re._isShape?T.call("_guiRelayout",G,"shapes["+q.index+"].name",ie.name):T.call("_guiRestyle",G,ie,q.index)}):E(Y,R,G,O)}function S(R,G){var O=Math.max(4,G);if(R&&R.trim().length>=O/2)return R;for(var V=O-(R=R||"").length;V>0;V--)R+=" ";return R}function w(R,G,O){var V,N=G._context.doubleClickDelay,B=1,H=k.ensureSingle(R,"rect",O+"toggle",function(q){G._context.staticPlot||q.style("cursor","pointer").attr("pointer-events","all"),q.call(t.fill,"rgba(0,0,0,0)")});G._context.staticPlot||(H.on("mousedown",function(){(V=new Date().getTime())-G._legendMouseDownTimeN&&(B=Math.max(B-1,1)),_(G,q,R,B,M.event)}}))}function E(R,G,O,V,N){V._inHover&&R.attr("data-notex",!0),i.convertToTspans(R,O,function(){(function(B,H,q,te){var K=B.data()[0][0];if(q._inHover||!K||K.trace.showlegend){var J=B.select("g[class*=math-group]"),Y=J.node(),W=P(q);q||(q=H._fullLayout[W]);var Q,re,ie=q.borderwidth,oe=(te===h?q.title.font:K.groupTitle?K.groupTitle.font:q.font).size*a;if(Y){var ce=s.bBox(Y);Q=ce.height,re=ce.width,te===h?s.setTranslate(J,ie,ie+.75*Q):s.setTranslate(J,0,.25*Q)}else{var pe="."+W+(te===h?"title":"")+"text",ge=B.select(pe),we=i.lineCount(ge),ye=ge.node();if(Q=oe*we,re=ye?s.bBox(ye).width:0,te===h){var me=0;q.title.side==="left"?re+=2*n.itemGap:q.title.side==="top center"?q._width&&(me=.5*(q._width-2*ie-2*n.titlePad-re)):q.title.side==="top right"&&q._width&&(me=q._width-2*ie-2*n.titlePad-re),i.positionText(ge,ie+n.titlePad+me,ie+oe)}else{var Oe=2*n.itemGap+q.itemwidth;K.groupTitle&&(Oe=n.itemGap,re-=q.itemwidth),i.positionText(ge,Oe,-oe*((we-1)/2-.3))}}te===h?(q._titleWidth=re,q._titleHeight=Q):(K.lineHeight=oe,K.height=Math.max(Q,16)+3,K.width=re)}else B.remove()})(G,O,V,N)})}function L(R){return k.isRightAnchor(R)?"right":k.isCenterAnchor(R)?"center":"left"}function C(R){return k.isBottomAnchor(R)?"bottom":k.isMiddleAnchor(R)?"middle":"top"}function P(R){return R._id||"legend"}ee.exports=function(R,G){if(G)v(R,G);else{var O=R._fullLayout,V=O._legends;O._infolayer.selectAll('[class^="legend"]').each(function(){var H=M.select(this),q=H.attr("class").split(" ")[0];q.match(m)&&V.indexOf(q)===-1&&H.remove()});for(var N=0;NL&&(E=L)}S[d][0]._groupMinRank=E,S[d][0]._preGroupSort=d}var C=function(V,N){return V.trace.legendrank-N.trace.legendrank||V._preSort-N._preSort};for(S.forEach(function(V,N){V[0]._preGroupSort=N}),S.sort(function(V,N){return V[0]._groupMinRank-N[0]._groupMinRank||V[0]._preGroupSort-N[0]._preGroupSort}),d=0;dx?x:p}ee.exports=function(p,c,x){var g=c._fullLayout;x||(x=g.legend);var h=x.itemsizing==="constant",m=x.itemwidth,v=(m+2*n.itemGap)/2,y=T(v,0),_=function(w,E,L,C){var P;if(w+1)P=w;else{if(!(E&&E.width>0))return 0;P=E.width}return h?C:Math.min(P,L)};function f(w,E,L){var C=w[0].trace,P=C.marker||{},R=P.line||{},G=L?C.visible&&C.type===L:k.traceIs(C,"bar"),O=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(G?[w]:[]);O.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),O.exit().remove(),O.each(function(V){var N=M.select(this),B=V[0],H=_(B.mlw,P.line,5,2);N.style("stroke-width",H+"px");var q=B.mcc;if(!x._inHover&&"mc"in B){var te=s(P),K=te.mid;K===void 0&&(K=(te.max+te.min)/2),q=b.tryColorscale(P,"")(K)}var J=q||B.mc||P.color,Y=P.pattern,W=Y&&b.getPatternAttr(Y.shape,0,"");if(W){var Q=b.getPatternAttr(Y.bgcolor,0,null),re=b.getPatternAttr(Y.fgcolor,0,null),ie=Y.fgopacity,oe=u(Y.size,8,10),ce=u(Y.solidity,.5,1),pe="legend-"+C.uid;N.call(b.pattern,"legend",c,pe,W,oe,ce,q,Y.fillmode,Q,re,ie)}else N.call(d.fill,J);H&&d.stroke(N,B.mlc||R.color)})}function S(w,E,L){var C=w[0],P=C.trace,R=L?P.visible&&P.type===L:k.traceIs(P,L),G=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(R?[w]:[]);if(G.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),G.exit().remove(),G.size()){var O=P.marker||{},V=_(r(O.line.width,C.pts),O.line,5,2),N="pieLike",B=l.minExtend(P,{marker:{line:{width:V}}},N),H=l.minExtend(C,{trace:B},N);i(G,H,B,c)}}p.each(function(w){var E=M.select(this),L=l.ensureSingle(E,"g","layers");L.style("opacity",w[0].trace.opacity);var C=x.valign,P=w[0].lineHeight,R=w[0].height;if(C!=="middle"&&P&&R){var G={top:1,bottom:-1}[C]*(.5*(P-R+3));L.attr("transform",T(0,G))}else L.attr("transform",null);L.selectAll("g.legendfill").data([w]).enter().append("g").classed("legendfill",!0),L.selectAll("g.legendlines").data([w]).enter().append("g").classed("legendlines",!0);var O=L.selectAll("g.legendsymbols").data([w]);O.enter().append("g").classed("legendsymbols",!0),O.selectAll("g.legendpoints").data([w]).enter().append("g").classed("legendpoints",!0)}).each(function(w){var E,L=w[0].trace,C=[];if(L.visible)switch(L.type){case"histogram2d":case"heatmap":C=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":C=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":C=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":C=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":C=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":C=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1}var P=M.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(C);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",y).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,G){var O,V=M.select(this),N=s(L),B=N.colorscale,H=N.reversescale;if(B){if(!E){var q=B.length;O=G===0?B[H?q-1:0][1]:G===1?B[H?0:q-1][1]:B[Math.floor((q-1)/2)][1]}}else{var te=L.vertexcolor||L.facecolor||L.color;O=l.isArrayOrTypedArray(te)?te[G]||te[0]:te}V.attr("d",R[0]),O?V.call(d.fill,O):V.call(function(K){if(K.size()){var J="legendfill-"+L.uid;b.gradient(K,c,J,o(H,E==="radial"),B,"fill")}})})}).each(function(w){var E=w[0].trace,L=E.type==="waterfall";if(w[0]._distinct&&L){var C=w[0].trace[w[0].dir].marker;return w[0].mc=C.color,w[0].mlw=C.line.width,w[0].mlc=C.line.color,f(w,this,"waterfall")}var P=[];E.visible&&L&&(P=w[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=M.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",y).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(G){var O=M.select(this),V=E[G[0]].marker,N=_(void 0,V.line,5,2);O.attr("d",G[1]).style("stroke-width",N+"px").call(d.fill,V.color),N&&O.call(d.stroke,V.line.color)})}).each(function(w){f(w,this,"funnel")}).each(function(w){f(w,this)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&k.traceIs(E,"box-violin")?[w]:[]);L.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),L.exit().remove(),L.each(function(){var C=M.select(this);if(E.boxpoints!=="all"&&E.points!=="all"||d.opacity(E.fillcolor)!==0||d.opacity((E.line||{}).color)!==0){var P=_(void 0,E.line,5,2);C.style("stroke-width",P+"px").call(d.fill,E.fillcolor),P&&d.stroke(C,E.line.color)}else{var R=l.minExtend(E,{marker:{size:h?12:l.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});L.call(b.pointStyle,R,c)}})}).each(function(w){S(w,this,"funnelarea")}).each(function(w){S(w,this,"pie")}).each(function(w){var E,L,C=a(w),P=C.showFill,R=C.showLine,G=C.showGradientLine,O=C.showGradientFill,V=C.anyFill,N=C.anyLine,B=w[0],H=B.trace,q=s(H),te=q.colorscale,K=q.reversescale,J=t.hasMarkers(H)||!V?"M5,0":N?"M5,-2":"M5,-3",Y=M.select(this),W=Y.select(".legendfill").selectAll("path").data(P||O?[w]:[]);if(W.enter().append("path").classed("js-fill",!0),W.exit().remove(),W.attr("d",J+"h"+m+"v6h-"+m+"z").call(function(ie){if(ie.size())if(P)b.fillGroupStyle(ie,c);else{var oe="legendfill-"+H.uid;b.gradient(ie,c,oe,o(K),te,"fill")}}),R||G){var Q=_(void 0,H.line,10,5);L=l.minExtend(H,{line:{width:Q}}),E=[l.minExtend(B,{trace:L})]}var re=Y.select(".legendlines").selectAll("path").data(R||G?[E]:[]);re.enter().append("path").classed("js-line",!0),re.exit().remove(),re.attr("d",J+(G?"l"+m+",0.0001":"h"+m)).call(R?b.lineGroupStyle:function(ie){if(ie.size()){var oe="legendline-"+H.uid;b.lineGroupStyle(ie),b.gradient(ie,c,oe,o(K),te,"stroke")}})}).each(function(w){var E,L,C=a(w),P=C.anyFill,R=C.anyLine,G=C.showLine,O=C.showMarker,V=w[0],N=V.trace,B=!O&&!R&&!P&&t.hasText(N);function H(re,ie,oe,ce){var pe=l.nestedProperty(N,re).get(),ge=l.isArrayOrTypedArray(pe)&&ie?ie(pe):pe;if(h&&ge&&ce!==void 0&&(ge=ce),oe){if(geoe[1])return oe[1]}return ge}function q(re){return V._distinct&&V.index&&re[V.index]?re[V.index]:re[0]}if(O||B||G){var te={},K={};if(O){te.mc=H("marker.color",q),te.mx=H("marker.symbol",q),te.mo=H("marker.opacity",l.mean,[.2,1]),te.mlc=H("marker.line.color",q),te.mlw=H("marker.line.width",l.mean,[0,5],2),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var J=H("marker.size",l.mean,[2,16],12);te.ms=J,K.marker.size=J}G&&(K.line={width:H("line.width",q,[0,10],5)}),B&&(te.tx="Aa",te.tp=H("textposition",q),te.ts=10,te.tc=H("textfont.color",q),te.tf=H("textfont.family",q)),E=[l.minExtend(V,te)],(L=l.minExtend(N,K)).selectedpoints=null,L.texttemplate=null}var Y=M.select(this).select("g.legendpoints"),W=Y.selectAll("path.scatterpts").data(O?E:[]);W.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",y),W.exit().remove(),W.call(b.pointStyle,L,c),O&&(E[0].mrc=3);var Q=Y.selectAll("g.pointtext").data(B?E:[]);Q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",y),Q.exit().remove(),Q.selectAll("text").call(b.textPointStyle,L,c)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[w,w]:[]);L.enter().append("path").classed("legendcandle",!0).attr("d",function(C,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("stroke-width",O+"px").call(d.fill,G.fillcolor),O&&d.stroke(R,G.line.color)})}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[w,w]:[]);L.enter().append("path").classed("legendohlc",!0).attr("d",function(C,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("fill","none").call(b.dashLine,G.line.dash,O),O&&d.stroke(R,G.line.color)})})}},42068:function(ee,z,e){e(93348),ee.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(ee,z,e){var M=e(73972),k=e(74875),l=e(41675),T=e(24255),b=e(34031).eraseActiveShape,d=e(71828),s=d._,t=ee.exports={};function i(g,h){var m,v,y=h.currentTarget,_=y.getAttribute("data-attr"),f=y.getAttribute("data-val")||!0,S=g._fullLayout,w={},E=l.list(g,null,!0),L=S._cartesianSpikesEnabled;if(_==="zoom"){var C,P=f==="in"?.5:2,R=(1+P)/2,G=(1-P)/2;for(v=0;v1?(J=["toggleHover"],Y=["resetViews"]):w?(K=["zoomInGeo","zoomOutGeo"],J=["hoverClosestGeo"],Y=["resetGeo"]):S?(J=["hoverClosest3d"],Y=["resetCameraDefault3d","resetCameraLastSave3d"]):R?(K=["zoomInMapbox","zoomOutMapbox"],J=["toggleHover"],Y=["resetViewMapbox"]):C?J=["hoverClosestGl2d"]:E?J=["hoverClosestPie"]:V?(J=["hoverClosestCartesian","hoverCompareCartesian"],Y=["resetViewSankey"]):J=["toggleHover"],f&&(J=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(pe){for(var ge=0;ge0)){var c=function(g,h,m){for(var v=m.filter(function(S){return h[S].anchor===g._id}),y=0,_=0;_=ye.max)ge=ie[we+1];else if(pe=ye.pmax)ge=ie[we+1];else if(pewe._length||_e+Re<0)return;be=Ee+Re,Ce=_e+Re;break;case Oe:if(Fe="col-resize",Ee+Re>we._length)return;be=Ee+Re,Ce=_e;break;case ke:if(Fe="col-resize",_e+Re<0)return;be=Ee,Ce=_e+Re;break;default:Fe="ew-resize",be=ve,Ce=ve+Re}if(Ce=0;C--){var P=h.append("path").attr(v).style("opacity",C?.1:y).call(T.stroke,f).call(T.fill,_).call(b.dashLine,C?"solid":w,C?4+S:S);if(o(P,u,x),E){var R=d(u.layout,"selections",x);P.style({cursor:"move"});var G={element:P.node(),plotinfo:g,gd:u,editHelpers:R,isActiveSelection:!0},O=M(m,u);k(O,P,G)}else P.style("pointer-events",C?"all":"none");L[C]=P}var V=L[0];L[1].node().addEventListener("click",function(){return function(N,B){if(r(N)){var H=+B.node().getAttribute("data-index");if(H>=0){if(H===N._fullLayout._activeSelectionIndex)return void a(N);N._fullLayout._activeSelectionIndex=H,N._fullLayout._deactivateSelection=a,i(N)}}}(u,V)})}(u._fullLayout._selectionLayer)}function o(u,p,c){var x=c.xref+c.yref;b.setClipUrl(u,"clip"+p._fullLayout._uid+x,p)}function a(u){r(u)&&u._fullLayout._activeSelectionIndex>=0&&(l(u),delete u._fullLayout._activeSelectionIndex,i(u))}ee.exports={draw:i,drawOne:n,activateLastSelection:function(u){if(r(u)){var p=u._fullLayout.selections.length-1;u._fullLayout._activeSelectionIndex=p,u._fullLayout._deactivateSelection=a,i(u)}}}},53777:function(ee,z,e){var M=e(79952).P,k=e(1426).extendFlat;ee.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:k({},M,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(ee){ee.exports=function(z,e,M){M("newselection.mode"),M("newselection.line.width")&&(M("newselection.line.color"),M("newselection.line.dash")),M("activeselection.fillcolor"),M("activeselection.opacity")}},35855:function(ee,z,e){var M=e(64505).selectMode,k=e(51873).clearOutline,l=e(60165),T=l.readPaths,b=l.writePaths,d=l.fixDatesForPaths;ee.exports=function(s,t){if(s.length){var i=s[0][0];if(i){var r=i.getAttribute("d"),n=t.gd,o=n._fullLayout.newselection,a=t.plotinfo,u=a.xaxis,p=a.yaxis,c=t.isActiveSelection,x=t.dragmode,g=(n.layout||{}).selections||[];if(!M(x)&&c!==void 0){var h=n._fullLayout._activeSelectionIndex;if(h-1,Pt=[];if(function(We){return We&&Array.isArray(We)&&We[0].hoverOnBox!==!0}(Tt)){Q(fe,Me,Re);var Mt=function(We,nt){var rt,Ie,De=We[0],et=-1,tt=[];for(Ie=0;Ie0?function(We,nt){var rt,Ie,De,et=[];for(De=0;De0&&et.push(rt);if(et.length===1&&et[0]===nt.searchInfo&&(Ie=nt.searchInfo.cd[0].trace).selectedpoints.length===nt.pointNumbers.length){for(De=0;De1||(Ie+=nt.selectedpoints.length)>1))return!1;return Ie===1}(Ge)&&(xt=pe(Mt))){for(He&&He.remove(),mt=0;mt=0})(Fe)&&Fe._fullLayout._deactivateShape(Fe),function(vt){return vt._fullLayout._activeSelectionIndex>=0}(Fe)&&Fe._fullLayout._deactivateSelection(Fe);var Re=Fe._fullLayout._zoomlayer,He=n(be),Ge=a(be);if(He||Ge){var Ke,at,Qe=Re.selectAll(".select-outline-"+Ce.id);Qe&&Fe._fullLayout._outlining&&(He&&(Ke=v(Qe,fe)),Ke&&l.call("_guiRelayout",Fe,{shapes:Ke}),Ge&&!te(fe)&&(at=y(Qe,fe)),at&&(Fe._fullLayout._noEmitSelectedAtStart=!0,l.call("_guiRelayout",Fe,{selections:at}).then(function(){Me&&_(Fe)})),Fe._fullLayout._outlining=!1)}Ce.selection={},Ce.selection.selectionDefs=fe.selectionDefs=[],Ce.selection.mergedPolygons=fe.mergedPolygons=[]}function ie(fe){return fe._id}function oe(fe,Me,be,Ce){if(!fe.calcdata)return[];var Fe,Re,He,Ge=[],Ke=Me.map(ie),at=be.map(ie);for(He=0;He0?Ce[0]:be;return!!Me.selectedpoints&&Me.selectedpoints.indexOf(Fe)>-1}function ge(fe,Me,be){var Ce,Fe;for(Ce=0;Ce-1&&Me;if(!Re&&Me){var nn=se(fe,!0);if(nn.length){var Jt=nn[0].xref,rn=nn[0].yref;if(Jt&&rn){var fn=Ee(nn);_e([L(fe,Jt,"x"),L(fe,rn,"y")])(un,fn)}}fe._fullLayout._noEmitSelectedAtStart?fe._fullLayout._noEmitSelectedAtStart=!1:jt&&ze(fe,un),xt._reselect=!1}if(!Re&&xt._deselect){var vn=xt._deselect;(function(Mn,En,bn){for(var Ln=0;Ln=0)st._fullLayout._deactivateShape(st);else if(!at){var fn=ot.clickmode;E.done(yn).then(function(){if(E.clear(yn),Jt===2){for(Dt.remove(),De=0;De-1&&K(rn,st,Ce.xaxes,Ce.yaxes,Ce.subplot,Ce,Dt),fn==="event"&&ze(st,void 0);d.click(st,rn)}).catch(f.error)}},Ce.doneFn=function(){Ht.remove(),E.done(yn).then(function(){E.clear(yn),!mt&&Ie&&Ce.selectionDefs&&(Ie.subtract=Rt,Ce.selectionDefs.push(Ie),Ce.mergedPolygons.length=0,[].push.apply(Ce.mergedPolygons,rt)),(mt||at)&&re(Ce,mt),Ce.doneFnCompleted&&Ce.doneFnCompleted(un),Qe&&ze(st,tt)}).catch(f.error)}},clearOutline:x,clearSelectionsCache:re,selectOnClick:K}},89827:function(ee,z,e){var M=e(50215),k=e(41940),l=e(82196).line,T=e(79952).P,b=e(1426).extendFlat,d=e(44467).templatedArray,s=(e(24695),e(9012)),t=e(5386).R,i=e(37281);ee.exports=d("shape",{visible:b({},s.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:b({},s.legend,{editType:"calc+arraydraw"}),legendgroup:b({},s.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:b({},s.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:k({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:b({},s.legendrank,{editType:"calc+arraydraw"}),legendwidth:b({},s.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:b({},M.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:b({},M.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:b({},l.color,{editType:"arraydraw"}),width:b({},l.width,{editType:"calc+arraydraw"}),dash:b({},T,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:t({},{keys:Object.keys(i)}),font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(ee,z,e){var M=e(71828),k=e(89298),l=e(21459),T=e(30477);function b(i){return s(i.line.width,i.xsizemode,i.x0,i.x1,i.path,!1)}function d(i){return s(i.line.width,i.ysizemode,i.y0,i.y1,i.path,!0)}function s(i,r,n,o,a,u){var p=i/2,c=u;if(r==="pixel"){var x=a?T.extractPathCoords(a,u?l.paramIsY:l.paramIsX):[n,o],g=M.aggNums(Math.max,null,x),h=M.aggNums(Math.min,null,x),m=h<0?Math.abs(h)+p:p,v=g>0?g+p:p;return{ppad:p,ppadplus:c?m:v,ppadminus:c?v:m}}return{ppad:p}}function t(i,r,n,o,a){var u=i.type==="category"||i.type==="multicategory"?i.r2c:i.d2c;if(r!==void 0)return[u(r),u(n)];if(o){var p,c,x,g,h=1/0,m=-1/0,v=o.match(l.segmentRE);for(i.type==="date"&&(u=T.decodeDate(u)),p=0;pm&&(m=g)));return m>=h?[h,m]:void 0}}ee.exports=function(i){var r=i._fullLayout,n=M.filterVisible(r.shapes);if(n.length&&i._fullData.length)for(var o=0;o=ie?oe-pe:pe-oe,-180/Math.PI*Math.atan2(ge,we)}(m,y,v,_):0),w.call(function(ie){return ie.call(T.font,S).attr({}),l.convertToTspans(ie,r),ie});var Y=function(ie,oe,ce,pe,ge,we,ye){var me,Oe,ke,Te,le=ge.label.textposition,se=ge.label.textangle,ne=ge.label.padding,ve=ge.type,Ee=Math.PI/180*we,_e=Math.sin(Ee),ze=Math.cos(Ee),Ne=ge.label.xanchor,fe=ge.label.yanchor;if(ve==="line"){le==="start"?(me=ie,Oe=oe):le==="end"?(me=ce,Oe=pe):(me=(ie+ce)/2,Oe=(oe+pe)/2),Ne==="auto"&&(Ne=le==="start"?se==="auto"?ce>ie?"left":ceie?"right":ceie?"right":ceie?"left":ce1&&(me.length!==2||me[1][0]!=="Z")&&(V===0&&(me[0][0]="M"),f[O]=me,C(),P())}}()}}function ie(ge,we){(function(ye,me){if(f.length)for(var Oe=0;OeOe?(le=ye,Ee="y0",se=Oe,_e="y1"):(le=Oe,Ee="y1",se=ye,_e="y0"),Ye(rt),We(pe,oe),function(Ie,De,et){var tt=De.xref,gt=De.yref,ht=T.getFromId(et,tt),dt=T.getFromId(et,gt),ct="";tt==="paper"||ht.autorange||(ct+=tt),gt==="paper"||dt.autorange||(ct+=gt),r.setClipUrl(Ie,ct?"clip"+et._fullLayout._uid+ct:null,et)}(ie,oe,re),Mt.moveFn=Me==="move"?Xe:Ve,Mt.altKey=rt.altKey)},doneFn:function(){g(re)||(a(ie),nt(pe),v(ie,re,oe),k.call("_guiRelayout",re,ge.getUpdateObj()))},clickFn:function(){g(re)||nt(pe)}};function Ye(rt){if(g(re))Me=null;else if(He)Me=rt.target.tagName==="path"?"move":rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ie=Mt.element.getBoundingClientRect(),De=Ie.right-Ie.left,et=Ie.bottom-Ie.top,tt=rt.clientX-Ie.left,gt=rt.clientY-Ie.top,ht=!Ge&&De>be&&et>Ce&&!rt.shiftKey?o.getCursor(tt/De,1-gt/et):"move";a(ie,ht),Me=ht.split("-")[0]}}function Xe(rt,Ie){if(oe.type==="path"){var De=function(gt){return gt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(gt){return Tt(ot(gt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(gt){return wt(mt(gt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(Ke("x0",oe.x0=Tt(we+rt)),Ke("x1",oe.x1=Tt(me+rt))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(Ke("y0",oe.y0=wt(ye+Ie)),Ke("y1",oe.y1=wt(Oe+Ie)));ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function Ve(rt,Ie){if(Ge){var De=function(Wt){return Wt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(Wt){return Tt(ot(Wt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(Wt){return wt(mt(Wt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else if(He){if(Me==="resize-over-start-point"){var gt=we+rt,ht=Re?ye-Ie:ye+Ie;Ke("x0",oe.x0=Fe?gt:Tt(gt)),Ke("y0",oe.y0=Re?ht:wt(ht))}else if(Me==="resize-over-end-point"){var dt=me+rt,ct=Re?Oe-Ie:Oe+Ie;Ke("x1",oe.x1=Fe?dt:Tt(dt)),Ke("y1",oe.y1=Re?ct:wt(ct))}}else{var kt=function(Wt){return Me.indexOf(Wt)!==-1},ut=kt("n"),ft=kt("s"),bt=kt("w"),It=kt("e"),Rt=ut?le+Ie:le,Dt=ft?se+Ie:se,Kt=bt?ne+rt:ne,qt=It?ve+rt:ve;Re&&(ut&&(Rt=le-Ie),ft&&(Dt=se-Ie)),(!Re&&Dt-Rt>Ce||Re&&Rt-Dt>Ce)&&(Ke(Ee,oe[Ee]=Re?Rt:wt(Rt)),Ke(_e,oe[_e]=Re?Dt:wt(Dt))),qt-Kt>be&&(Ke(ze,oe[ze]=Fe?Kt:Tt(Kt)),Ke(Ne,oe[Ne]=Fe?qt:Tt(qt)))}ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function We(rt,Ie){(Fe||Re)&&function(){var De=Ie.type!=="path",et=rt.selectAll(".visual-cue").data([0]);et.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var tt=ot(Fe?Ie.xanchor:l.midRange(De?[Ie.x0,Ie.x1]:p.extractPathCoords(Ie.path,u.paramIsX))),gt=mt(Re?Ie.yanchor:l.midRange(De?[Ie.y0,Ie.y1]:p.extractPathCoords(Ie.path,u.paramIsY)));if(tt=p.roundPositionForSharpStrokeRendering(tt,1),gt=p.roundPositionForSharpStrokeRendering(gt,1),Fe&&Re){var ht="M"+(tt-1-1)+","+(gt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";et.attr("d",ht)}else if(Fe){var dt="M"+(tt-1-1)+","+(gt-9-1)+"v18 h2 v-18 Z";et.attr("d",dt)}else{var ct="M"+(tt-9-1)+","+(gt-1-1)+"h18 v2 h-18 Z";et.attr("d",ct)}}()}function nt(rt){rt.selectAll(".visual-cue").remove()}o.init(Mt),Pt.node().onmousemove=Ye}(f,Y,E,S,P,K):E.editable===!0&&Y.style("pointer-events",q||i.opacity(V)*O<=.5?"stroke":"all");Y.node().addEventListener("click",function(){return function(re,ie){if(h(re)){var oe=+ie.node().getAttribute("data-index");if(oe>=0){if(oe===re._fullLayout._activeShapeIndex)return void _(re);re._fullLayout._activeShapeIndex=oe,re._fullLayout._deactivateShape=_,x(re)}}}(f,Y)})}E._input&&E.visible===!0&&(E.layer!=="below"?C(f._fullLayout._shapeUpperLayer):E.xref==="paper"||E.yref==="paper"?C(f._fullLayout._shapeLowerLayer):L._hadPlotinfo?C((L.mainplotinfo||L).shapelayer):C(f._fullLayout._shapeLowerLayer))}function v(f,S,w){var E=(w.xref+w.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");r.setClipUrl(f,E?"clip"+S._fullLayout._uid+E:null,S)}function y(f,S,w){return f.replace(u.segmentRE,function(E){var L=0,C=E.charAt(0),P=u.paramIsX[C],R=u.paramIsY[C],G=u.numParams[C];return C+E.substr(1).replace(u.paramRE,function(O){return L>=G||(P[L]?O=S(O):R[L]&&(O=w(O)),L++),O})})}function _(f){h(f)&&f._fullLayout._activeShapeIndex>=0&&(t(f),delete f._fullLayout._activeShapeIndex,x(f))}ee.exports={draw:x,drawOne:m,eraseActiveShape:function(f){if(h(f)){t(f);var S=f._fullLayout._activeShapeIndex,w=(f.layout||{}).shapes||[];if(S0&&mJ&&(W="X"),W});return H>J&&(Y=Y.replace(/[\s,]*X.*/,""),k.log("Ignoring extra params in segment "+B)),q+Y})}(b,s,i);if(b.xsizemode==="pixel"){var m=s(b.xanchor);r=m+b.x0,n=m+b.x1}else r=s(b.x0),n=s(b.x1);if(b.ysizemode==="pixel"){var v=i(b.yanchor);o=v-b.y0,a=v-b.y1}else o=i(b.y0),a=i(b.y1);if(u==="line")return"M"+r+","+o+"L"+n+","+a;if(u==="rect")return"M"+r+","+o+"H"+n+"V"+a+"H"+r+"Z";var y=(r+n)/2,_=(o+a)/2,f=Math.abs(y-r),S=Math.abs(_-o),w="A"+f+","+S,E=y+f+","+_;return"M"+E+w+" 0 1,1 "+y+","+(_-S)+w+" 0 0,1 "+E+"Z"}},89853:function(ee,z,e){var M=e(34031);ee.exports={moduleType:"component",name:"shapes",layoutAttributes:e(89827),supplyLayoutDefaults:e(84726),supplyDrawNewShapeDefaults:e(45547),includeBasePlot:e(76325)("shapes"),calcAutorange:e(5627),draw:M.draw,drawOne:M.drawOne}},37281:function(ee){function z(l,T){return T?T.d2l(l):l}function e(l,T){return T?T.l2d(l):l}function M(l,T){return z(l.x1,T)-z(l.x0,T)}function k(l,T,b){return z(l.y1,b)-z(l.y0,b)}ee.exports={x0:function(l){return l.x0},x1:function(l){return l.x1},y0:function(l){return l.y0},y1:function(l){return l.y1},slope:function(l,T,b){return l.type!=="line"?void 0:k(l,0,b)/M(l,T)},dx:M,dy:k,width:function(l,T){return Math.abs(M(l,T))},height:function(l,T,b){return Math.abs(k(l,0,b))},length:function(l,T,b){return l.type!=="line"?void 0:Math.sqrt(Math.pow(M(l,T),2)+Math.pow(k(l,0,b),2))},xcenter:function(l,T){return e((z(l.x1,T)+z(l.x0,T))/2,T)},ycenter:function(l,T,b){return e((z(l.y1,b)+z(l.y0,b))/2,b)}}},75067:function(ee,z,e){var M=e(41940),k=e(35025),l=e(1426).extendDeepAll,T=e(30962).overrideAll,b=e(85594),d=e(44467).templatedArray,s=e(98292),t=d("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:t,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:l(k({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:b.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:M({})},font:M({}),activebgcolor:{valType:"color",dflt:s.gripBgActiveColor},bgcolor:{valType:"color",dflt:s.railBgColor},bordercolor:{valType:"color",dflt:s.railBorderColor},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth},ticklen:{valType:"number",min:0,dflt:s.tickLength},tickcolor:{valType:"color",dflt:s.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength}}),"arraydraw","from-root")},98292:function(ee){ee.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(ee,z,e){var M=e(71828),k=e(85501),l=e(75067),T=e(98292).name,b=l.steps;function d(t,i,r){function n(c,x){return M.coerce(t,i,l,c,x)}for(var o=k(t,i,{name:"steps",handleItemDefaults:s}),a=0,u=0;u0&&(H=H.transition().duration(R.transition.duration).ease(R.transition.easing)),H.attr("transform",d(B-.5*i.gripWidth,R._dims.currentValueTotalHeight))}}function w(P,R){var G=P._dims;return G.inputAreaStart+i.stepInset+(G.inputAreaLength-2*i.stepInset)*Math.min(1,Math.max(0,R))}function E(P,R){var G=P._dims;return Math.min(1,Math.max(0,(R-i.stepInset-G.inputAreaStart)/(G.inputAreaLength-2*i.stepInset-2*G.inputAreaStart)))}function L(P,R,G){var O=G._dims,V=b.ensureSingle(P,"rect",i.railTouchRectClass,function(N){N.call(_,R,P,G).style("pointer-events","all")});V.attr({width:O.inputAreaLength,height:Math.max(O.inputAreaWidth,i.tickOffset+G.ticklen+O.labelHeight)}).call(l.fill,G.bgcolor).attr("opacity",0),T.setTranslate(V,0,O.currentValueTotalHeight)}function C(P,R){var G=R._dims,O=G.inputAreaLength-2*i.railInset,V=b.ensureSingle(P,"rect",i.railRectClass);V.attr({width:O,height:i.railWidth,rx:i.railRadius,ry:i.railRadius,"shape-rendering":"crispEdges"}).call(l.stroke,R.bordercolor).call(l.fill,R.bgcolor).style("stroke-width",R.borderwidth+"px"),T.setTranslate(V,i.railInset,.5*(G.inputAreaWidth-i.railWidth)+G.currentValueTotalHeight)}ee.exports=function(P){var R=P._context.staticPlot,G=P._fullLayout,O=function(te,K){for(var J=te[i.name],Y=[],W=0;W0?[0]:[]);function N(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),k.autoMargin(P,u(te))}if(V.enter().append("g").classed(i.containerClassName,!0).style("cursor",R?null:"ew-resize"),V.exit().each(function(){M.select(this).selectAll("g."+i.groupClassName).each(N)}).remove(),O.length!==0){var B=V.selectAll("g."+i.groupClassName).data(O,p);B.enter().append("g").classed(i.groupClassName,!0),B.exit().each(N).remove();for(var H=0;H0||me<0){var le={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[v.side];Y.attr("transform",d(le[0],le[1]))}}}return H.call(q),V&&(C?H.on(".opacity",null):(w=0,E=!0,H.text(h).on("mouseover.opacity",function(){M.select(this).transition().duration(r.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){M.select(this).transition().duration(r.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(i.makeEditable,{gd:a}).on("edit",function(J){m!==void 0?T.call("_guiRestyle",a,g,J,m):T.call("_guiRelayout",a,g,J)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(q)}).on("input",function(J){this.text(J||" ").call(i.positionText,y.x,y.y)})),H.classed("js-placeholder",E),f}}},7163:function(ee,z,e){var M=e(41940),k=e(22399),l=e(1426).extendFlat,T=e(30962).overrideAll,b=e(35025),d=e(44467).templatedArray,s=d("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:s,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:l(b({editType:"arraydraw"}),{}),font:M({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:k.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(ee){ee.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}},64897:function(ee,z,e){var M=e(71828),k=e(85501),l=e(7163),T=e(75909).name,b=l.buttons;function d(t,i,r){function n(o,a){return M.coerce(t,i,l,o,a)}n("visible",k(t,i,{name:"buttons",handleItemDefaults:s}).length>0)&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),M.noneOrAll(t,i,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),M.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function s(t,i){function r(n,o){return M.coerce(t,i,b,n,o)}r("visible",t.method==="skip"||Array.isArray(t.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}ee.exports=function(t,i){k(t,i,{name:T,handleItemDefaults:d})}},13689:function(ee,z,e){var M=e(39898),k=e(74875),l=e(7901),T=e(91424),b=e(71828),d=e(63893),s=e(44467).arrayEditor,t=e(18783).LINE_SPACING,i=e(75909),r=e(25849);function n(w){return w._index}function o(w,E){return+w.attr(i.menuIndexAttrName)===E._index}function a(w,E,L,C,P,R,G,O){E.active=G,s(w.layout,i.name,E).applyUpdate("active",G),E.type==="buttons"?p(w,C,null,null,E):E.type==="dropdown"&&(P.attr(i.menuIndexAttrName,"-1"),u(w,C,P,R,E),O||p(w,C,P,R,E))}function u(w,E,L,C,P){var R=b.ensureSingle(E,"g",i.headerClassName,function(H){H.style("pointer-events","all")}),G=P._dims,O=P.active,V=P.buttons[O]||i.blankHeaderOpts,N={y:P.pad.t,yPad:0,x:P.pad.l,xPad:0,index:0},B={width:G.headerWidth,height:G.headerHeight};R.call(c,P,V,w).call(f,P,N,B),b.ensureSingle(E,"text",i.headerArrowClassName,function(H){H.attr("text-anchor","end").call(T.font,P.font).text(i.arrowSymbol[P.direction])}).attr({x:G.headerWidth-i.arrowOffsetX+P.pad.l,y:G.headerHeight/2+i.textOffsetY+P.pad.t}),R.on("click",function(){L.call(S,String(o(L,P)?-1:P._index)),p(w,E,L,C,P)}),R.on("mouseover",function(){R.call(m)}),R.on("mouseout",function(){R.call(v,P)}),T.setTranslate(E,G.lx,G.ly)}function p(w,E,L,C,P){L||(L=E).attr("pointer-events","all");var R=function(Y){return+Y.attr(i.menuIndexAttrName)==-1}(L)&&P.type!=="buttons"?[]:P.buttons,G=P.type==="dropdown"?i.dropdownButtonClassName:i.buttonClassName,O=L.selectAll("g."+G).data(b.filterVisible(R)),V=O.enter().append("g").classed(G,!0),N=O.exit();P.type==="dropdown"?(V.attr("opacity","0").transition().attr("opacity","1"),N.transition().attr("opacity","0").remove()):N.remove();var B=0,H=0,q=P._dims,te=["up","down"].indexOf(P.direction)!==-1;P.type==="dropdown"&&(te?H=q.headerHeight+i.gapButtonHeader:B=q.headerWidth+i.gapButtonHeader),P.type==="dropdown"&&P.direction==="up"&&(H=-i.gapButtonHeader+i.gapButton-q.openHeight),P.type==="dropdown"&&P.direction==="left"&&(B=-i.gapButtonHeader+i.gapButton-q.openWidth);var K={x:q.lx+B+P.pad.l,y:q.ly+H+P.pad.t,yPad:i.gapButton,xPad:i.gapButton,index:0},J={l:K.x+P.borderwidth,t:K.y+P.borderwidth};O.each(function(Y,W){var Q=M.select(this);Q.call(c,P,Y,w).call(f,P,K),Q.on("click",function(){M.event.defaultPrevented||(Y.execute&&(Y.args2&&P.active===W?(a(w,P,0,E,L,C,-1),k.executeAPICommand(w,Y.method,Y.args2)):(a(w,P,0,E,L,C,W),k.executeAPICommand(w,Y.method,Y.args))),w.emit("plotly_buttonclicked",{menu:P,button:Y,active:P.active}))}),Q.on("mouseover",function(){Q.call(m)}),Q.on("mouseout",function(){Q.call(v,P),O.call(h,P)})}),O.call(h,P),te?(J.w=Math.max(q.openWidth,q.headerWidth),J.h=K.y-J.t):(J.w=K.x-J.l,J.h=Math.max(q.openHeight,q.headerHeight)),J.direction=P.direction,C&&(O.size()?function(Y,W,Q,re,ie,oe){var ce,pe,ge,we=ie.direction,ye=we==="up"||we==="down",me=ie._dims,Oe=ie.active;if(ye)for(pe=0,ge=0;ge0?[0]:[]);if(P.enter().append("g").classed(i.containerClassName,!0).style("cursor","pointer"),P.exit().each(function(){M.select(this).selectAll("g."+i.headerGroupClassName).each(C)}).remove(),L.length!==0){var R=P.selectAll("g."+i.headerGroupClassName).data(L,n);R.enter().append("g").classed(i.headerGroupClassName,!0);for(var G=b.ensureSingle(P,"g",i.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),O=0;Of,E=b.barLength+2*b.barPad,L=b.barWidth+2*b.barPad,C=c,P=g+h;P+L>n&&(P=n-L);var R=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(k.fill,b.barColor),w?(this.hbar=R.attr({rx:b.barRadius,ry:b.barRadius,x:C,y:P,width:E,height:L}),this._hbarXMin=C+E/2,this._hbarTranslateMax=f-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var G=h>S,O=b.barWidth+2*b.barPad,V=b.barLength+2*b.barPad,N=c+x,B=g;N+O>r&&(N=r-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(G?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(k.fill,b.barColor),G?(this.vbar=H.attr({rx:b.barRadius,ry:b.barRadius,x:N,y:B,width:O,height:V}),this._vbarYMin=B+V/2,this._vbarTranslateMax=S-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var q=this.id,te=o-.5,K=G?a+O+.5:a+.5,J=u-.5,Y=w?p+L+.5:p+.5,W=i._topdefs.selectAll("#"+q).data(w||G?[0]:[]);if(W.exit().remove(),W.enter().append("clipPath").attr("id",q).append("rect"),w||G?(this._clipRect=W.select("rect").attr({x:Math.floor(te),y:Math.floor(J),width:Math.ceil(K)-Math.floor(te),height:Math.ceil(Y)-Math.floor(J)}),this.container.call(l.setClipUrl,q,this.gd),this.bg.attr({x:c,y:g,width:x,height:h})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),w||G){var Q=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var re=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault(),M.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(re),G&&this.vbar.on(".drag",null).call(re)}this.setTranslate(s,t)},b.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},b.prototype._onBoxDrag=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d-=M.event.dx),this.vbar&&(s-=M.event.dy),this.setTranslate(d,s)},b.prototype._onBoxWheel=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d+=M.event.deltaY),this.vbar&&(s+=M.event.deltaY),this.setTranslate(d,s)},b.prototype._onBarDrag=function(){var d=this.translateX,s=this.translateY;if(this.hbar){var t=d+this._hbarXMin,i=t+this._hbarTranslateMax;d=(T.constrain(M.event.x,t,i)-t)/(i-t)*(this.position.w-this._box.w)}if(this.vbar){var r=s+this._vbarYMin,n=r+this._vbarTranslateMax;s=(T.constrain(M.event.y,r,n)-r)/(n-r)*(this.position.h-this._box.h)}this.setTranslate(d,s)},b.prototype.setTranslate=function(d,s){var t=this.position.w-this._box.w,i=this.position.h-this._box.h;if(d=T.constrain(d||0,0,t),s=T.constrain(s||0,0,i),this.translateX=d,this.translateY=s,this.container.call(l.setTranslate,this._box.l-this.position.l-d,this._box.t-this.position.t-s),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+d-.5),y:Math.floor(this.position.t+s-.5)}),this.hbar){var r=d/t;this.hbar.call(l.setTranslate,d+r*this._hbarTranslateMax,s)}if(this.vbar){var n=s/i;this.vbar.call(l.setTranslate,d,s+n*this._vbarTranslateMax)}}},18783:function(ee){ee.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(ee){ee.exports={axisRefDescription:function(z,e,M){return["If set to a",z,"axis id (e.g. *"+z+"* or","*"+z+"2*), the `"+z+"` position refers to a",z,"coordinate. If set to *paper*, the `"+z+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+M+"). If set to a",z,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+z+"2 domain* refers to the domain of the second",z," axis and a",z,"position of 0.5 refers to the","point between the",e,"and the",M,"of the domain of the","second",z,"axis."].join(" ")}}},22372:function(ee){ee.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}},31562:function(ee){ee.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(ee){ee.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},29659:function(ee){ee.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87381:function(ee){ee.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}},37822:function(ee){ee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(ee){ee.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},32396:function(ee,z){z.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],z.STYLE=z.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},77922:function(ee,z){z.xmlns="http://www.w3.org/2000/xmlns/",z.svg="http://www.w3.org/2000/svg",z.xlink="http://www.w3.org/1999/xlink",z.svgAttrs={xmlns:z.svg,"xmlns:xlink":z.xlink}},8729:function(ee,z,e){z.version=e(11506).version,e(7417),e(98847);for(var M=e(73972),k=z.register=M.register,l=e(10641),T=Object.keys(l),b=0;b",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(ee,z){z.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},z.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},z.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},z.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},z.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},z.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},26348:function(ee,z,e){var M=e(64872),k=M.mod,l=M.modHalf,T=Math.PI,b=2*T;function d(r){return Math.abs(r[1]-r[0])>b-1e-14}function s(r,n){return l(n-r,b)}function t(r,n){if(d(n))return!0;var o,a;n[0](a=k(a,b))&&(a+=b);var u=k(r,b),p=u+b;return u>=o&&u<=a||p>=o&&p<=a}function i(r,n,o,a,u,p,c){u=u||0,p=p||0;var x,g,h,m,v,y=d([o,a]);function _(E,L){return[E*Math.cos(L)+u,p-E*Math.sin(L)]}y?(x=0,g=T,h=b):o=u&&r<=p);var u,p},pathArc:function(r,n,o,a,u){return i(null,r,n,o,a,u,0)},pathSector:function(r,n,o,a,u){return i(null,r,n,o,a,u,1)},pathAnnulus:function(r,n,o,a,u,p){return i(r,n,o,a,u,p,1)}}},73627:function(ee,z){var e=Array.isArray,M=ArrayBuffer,k=DataView;function l(d){return M.isView(d)&&!(d instanceof k)}function T(d){return e(d)||l(d)}function b(d,s,t){if(T(d)){if(T(d[0])){for(var i=t,r=0;rp.max?a.set(u):a.set(+o)}},integer:{coerceFunction:function(o,a,u,p){o%1||!M(o)||p.min!==void 0&&op.max?a.set(u):a.set(+o)}},string:{coerceFunction:function(o,a,u,p){if(typeof o!="string"){var c=typeof o=="number";p.strict!==!0&&c?a.set(String(o)):a.set(u)}else p.noBlank&&!o?a.set(u):a.set(o)}},color:{coerceFunction:function(o,a,u){k(o).isValid()?a.set(o):a.set(u)}},colorlist:{coerceFunction:function(o,a,u){Array.isArray(o)&&o.length&&o.every(function(p){return k(p).isValid()})?a.set(o):a.set(u)}},colorscale:{coerceFunction:function(o,a,u){a.set(T.get(o,u))}},angle:{coerceFunction:function(o,a,u){o==="auto"?a.set("auto"):M(o)?a.set(i(+o,360)):a.set(u)}},subplotid:{coerceFunction:function(o,a,u,p){var c=p.regex||t(u);typeof o=="string"&&c.test(o)?a.set(o):a.set(u)},validateFunction:function(o,a){var u=a.dflt;return o===u||typeof o=="string"&&!!t(u).test(o)}},flaglist:{coerceFunction:function(o,a,u,p){if((p.extras||[]).indexOf(o)===-1)if(typeof o=="string"){for(var c=o.split("+"),x=0;x=M&&R<=k?R:t}if(typeof R!="string"&&typeof R!="number")return t;R=String(R);var B=h(G),H=R.charAt(0);!B||H!=="G"&&H!=="g"||(R=R.substr(1),G="");var q=B&&G.substr(0,7)==="chinese",te=R.match(q?x:c);if(!te)return t;var K=te[1],J=te[3]||"1",Y=Number(te[5]||1),W=Number(te[7]||0),Q=Number(te[9]||0),re=Number(te[11]||0);if(B){if(K.length===2)return t;var ie;K=Number(K);try{var oe=u.getComponentMethod("calendars","getCal")(G);if(q){var ce=J.charAt(J.length-1)==="i";J=parseInt(J,10),ie=oe.newDate(K,oe.toMonthIndex(K,J,ce),Y)}else ie=oe.newDate(K,Number(J),Y)}catch{return t}return ie?(ie.toJD()-a)*i+W*r+Q*n+re*o:t}K=K.length===2?(Number(K)+2e3-g)%100+g:Number(K),J-=1;var pe=new Date(Date.UTC(2e3,J,Y,W,Q));return pe.setUTCFullYear(K),pe.getUTCMonth()!==J||pe.getUTCDate()!==Y?t:pe.getTime()+re*o},M=z.MIN_MS=z.dateTime2ms("-9999"),k=z.MAX_MS=z.dateTime2ms("9999-12-31 23:59:59.9999"),z.isDateTime=function(R,G){return z.dateTime2ms(R,G)!==t};var v=90*i,y=3*r,_=5*n;function f(R,G,O,V,N){if((G||O||V||N)&&(R+=" "+m(G,2)+":"+m(O,2),(V||N)&&(R+=":"+m(V,2),N))){for(var B=4;N%10==0;)B-=1,N/=10;R+="."+m(N,B)}return R}z.ms2DateTime=function(R,G,O){if(typeof R!="number"||!(R>=M&&R<=k))return t;G||(G=0);var V,N,B,H,q,te,K=Math.floor(10*d(R+.05,1)),J=Math.round(R-K/10);if(h(O)){var Y=Math.floor(J/i)+a,W=Math.floor(d(R,i));try{V=u.getComponentMethod("calendars","getCal")(O).fromJD(Y).formatDate("yyyy-mm-dd")}catch{V=p("G%Y-%m-%d")(new Date(J))}if(V.charAt(0)==="-")for(;V.length<11;)V="-0"+V.substr(1);else for(;V.length<10;)V="0"+V;N=G=M+i&&R<=k-i))return t;var G=Math.floor(10*d(R+.05,1)),O=new Date(Math.round(R-G/10));return f(l("%Y-%m-%d")(O),O.getHours(),O.getMinutes(),O.getSeconds(),10*O.getUTCMilliseconds()+G)},z.cleanDate=function(R,G,O){if(R===t)return G;if(z.isJSDate(R)||typeof R=="number"&&isFinite(R)){if(h(O))return b.error("JS Dates and milliseconds are incompatible with world calendars",R),G;if(!(R=z.ms2DateTimeLocal(+R))&&G!==void 0)return G}else if(!z.isDateTime(R,O))return b.error("unrecognized date",R),G;return R};var S=/%\d?f/g,w=/%h/g,E={1:"1",2:"1",3:"2",4:"2"};function L(R,G,O,V){R=R.replace(S,function(B){var H=Math.min(+B.charAt(1)||6,6);return(G/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var N=new Date(Math.floor(G+.05));if(R=R.replace(w,function(){return E[O("%q")(N)]}),h(V))try{R=u.getComponentMethod("calendars","worldCalFmt")(R,G,V)}catch{return"Invalid"}return O(R)(N)}var C=[59,59.9,59.99,59.999,59.9999];z.formatDate=function(R,G,O,V,N,B){if(N=h(N)&&N,!G)if(O==="y")G=B.year;else if(O==="m")G=B.month;else{if(O!=="d")return function(H,q){var te=d(H+.05,i),K=m(Math.floor(te/r),2)+":"+m(d(Math.floor(te/n),60),2);if(q!=="M"){T(q)||(q=0);var J=(100+Math.min(d(H/o,60),C[q])).toFixed(q).substr(1);q>0&&(J=J.replace(/0+$/,"").replace(/[\.]$/,"")),K+=":"+J}return K}(R,O)+` +import{eI as Td}from"./vue-router.3fd92176.js";(function(){try{var Cs=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Il=new Error().stack;Il&&(Cs._sentryDebugIds=Cs._sentryDebugIds||{},Cs._sentryDebugIds[Il]="78cf6623-7176-4c27-94ac-ea9e6b169a69",Cs._sentryDebugIdIdentifier="sentry-dbid-78cf6623-7176-4c27-94ac-ea9e6b169a69")}catch{}})();function kd(Cs,Il){for(var bl=0;blPs[Ha]})}}}return Object.freeze(Object.defineProperty(Cs,Symbol.toStringTag,{value:"Module"}))}var of={exports:{}};(function(Cs,Il){/*! For license information please see plotly.min.js.LICENSE.txt */(function(bl,Ps){Cs.exports=Ps()})(self,function(){return function(){var bl={98847:function(ee,z,e){var M=e(71828),k={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var l in k){var T=l.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");M.addStyleRule(T,k[l])}},98222:function(ee,z,e){ee.exports=e(82887)},27206:function(ee,z,e){ee.exports=e(60822)},59893:function(ee,z,e){ee.exports=e(23381)},5224:function(ee,z,e){ee.exports=e(83832)},59509:function(ee,z,e){ee.exports=e(72201)},75557:function(ee,z,e){ee.exports=e(91815)},40338:function(ee,z,e){ee.exports=e(21462)},35080:function(ee,z,e){ee.exports=e(51319)},61396:function(ee,z,e){ee.exports=e(57516)},40549:function(ee,z,e){ee.exports=e(98128)},49866:function(ee,z,e){ee.exports=e(99442)},36089:function(ee,z,e){ee.exports=e(93740)},19548:function(ee,z,e){ee.exports=e(8729)},35831:function(ee,z,e){ee.exports=e(93814)},61039:function(ee,z,e){ee.exports=e(14382)},97040:function(ee,z,e){ee.exports=e(51759)},77986:function(ee,z,e){ee.exports=e(10421)},24296:function(ee,z,e){ee.exports=e(43102)},58872:function(ee,z,e){ee.exports=e(92165)},29626:function(ee,z,e){ee.exports=e(3325)},65591:function(ee,z,e){ee.exports=e(36071)},69738:function(ee,z,e){ee.exports=e(43905)},92650:function(ee,z,e){ee.exports=e(35902)},35630:function(ee,z,e){ee.exports=e(69816)},73434:function(ee,z,e){ee.exports=e(94507)},27909:function(ee,z,e){var M=e(19548);M.register([e(27206),e(5224),e(58872),e(65591),e(69738),e(92650),e(49866),e(25743),e(6197),e(97040),e(85461),e(73434),e(54201),e(81299),e(47645),e(35630),e(77986),e(83043),e(93005),e(96881),e(4534),e(50581),e(40549),e(77900),e(47582),e(35080),e(21641),e(17280),e(5861),e(29626),e(10021),e(65317),e(96268),e(61396),e(35831),e(16122),e(46163),e(40344),e(40338),e(48131),e(36089),e(55334),e(75557),e(19440),e(99488),e(59893),e(97393),e(98222),e(61039),e(24296),e(66398),e(59509)]),ee.exports=M},46163:function(ee,z,e){ee.exports=e(15154)},96881:function(ee,z,e){ee.exports=e(64943)},50581:function(ee,z,e){ee.exports=e(21164)},55334:function(ee,z,e){ee.exports=e(54186)},65317:function(ee,z,e){ee.exports=e(94873)},10021:function(ee,z,e){ee.exports=e(67618)},54201:function(ee,z,e){ee.exports=e(58810)},5861:function(ee,z,e){ee.exports=e(20593)},16122:function(ee,z,e){ee.exports=e(29396)},83043:function(ee,z,e){ee.exports=e(13551)},48131:function(ee,z,e){ee.exports=e(46858)},47582:function(ee,z,e){ee.exports=e(17988)},21641:function(ee,z,e){ee.exports=e(68868)},96268:function(ee,z,e){ee.exports=e(20467)},19440:function(ee,z,e){ee.exports=e(91271)},99488:function(ee,z,e){ee.exports=e(21461)},97393:function(ee,z,e){ee.exports=e(85956)},25743:function(ee,z,e){ee.exports=e(52979)},66398:function(ee,z,e){ee.exports=e(32275)},17280:function(ee,z,e){ee.exports=e(6419)},77900:function(ee,z,e){ee.exports=e(61510)},81299:function(ee,z,e){ee.exports=e(87619)},93005:function(ee,z,e){ee.exports=e(93601)},40344:function(ee,z,e){ee.exports=e(96595)},47645:function(ee,z,e){ee.exports=e(70954)},6197:function(ee,z,e){ee.exports=e(47462)},4534:function(ee,z,e){ee.exports=e(17659)},85461:function(ee,z,e){ee.exports=e(19990)},82884:function(ee){ee.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(ee,z,e){var M=e(82884),k=e(41940),l=e(85555),T=e(44467).templatedArray;e(24695),ee.exports=T("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:k({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(ee,z,e){var M=e(71828),k=e(89298),l=e(92605).draw;function T(d){var s=d._fullLayout;M.filterVisible(s.annotations).forEach(function(t){var i=k.getFromId(d,t.xref),r=k.getFromId(d,t.yref),n=k.getRefType(t.xref),o=k.getRefType(t.yref);t._extremes={},n==="range"&&b(t,i),o==="range"&&b(t,r)})}function b(d,s){var t,i=s._id,r=i.charAt(0),n=d[r],o=d["a"+r],a=d[r+"ref"],u=d["a"+r+"ref"],p=d["_"+r+"padplus"],c=d["_"+r+"padminus"],x={x:1,y:-1}[r]*d[r+"shift"],g=3*d.arrowsize*d.arrowwidth||0,h=g+x,m=g-x,v=3*d.startarrowsize*d.arrowwidth||0,y=v+x,_=v-x;if(u===a){var f=k.findExtremes(s,[s.r2c(n)],{ppadplus:h,ppadminus:m}),S=k.findExtremes(s,[s.r2c(o)],{ppadplus:Math.max(p,y),ppadminus:Math.max(c,_)});t={min:[f.min[0],S.min[0]],max:[f.max[0],S.max[0]]}}else y=o?y+o:y,_=o?_-o:_,t=k.findExtremes(s,[s.r2c(n)],{ppadplus:Math.max(p,h,y),ppadminus:Math.max(c,m,_)});d._extremes[i]=t}ee.exports=function(d){var s=d._fullLayout;if(M.filterVisible(s.annotations).length&&d._fullData.length)return M.syncOrAsync([l,T],d)}},44317:function(ee,z,e){var M=e(71828),k=e(73972),l=e(44467).arrayEditor;function T(d,s){var t,i,r,n,o,a,u,p=d._fullLayout.annotations,c=[],x=[],g=[],h=(s||[]).length;for(t=0;t0||t.explicitOff.length>0},onClick:function(d,s){var t,i,r=T(d,s),n=r.on,o=r.off.concat(r.explicitOff),a={},u=d._fullLayout.annotations;if(n.length||o.length){for(t=0;t.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ct]}for(var Ne=!1,fe=["x","y"],Me=0;Me1)&&(at===Ke?((Mt=Qe.r2fraction(h["a"+Ge]))<0||Mt>1)&&(Ne=!0):Ne=!0),be=Qe._offset+Qe.r2p(h[Ge]),Re=.5}else{var Ye=Pt==="domain";Ge==="x"?(Fe=h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.l+E.w*Fe):(Fe=1-h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.t+E.h*Fe),Re=h.showarrow?.5:Fe}if(h.showarrow){wt.head=be;var Xe=h["a"+Ge];if(He=xt*ze(.5,h.xanchor)-st*ze(.5,h.yanchor),at===Ke){var Ve=d.getRefType(at);Ve==="domain"?(Ge==="y"&&(Xe=1-Xe),wt.tail=Qe._offset+Qe._length*Xe):Ve==="paper"?Ge==="y"?(Xe=1-Xe,wt.tail=E.t+E.h*Xe):wt.tail=E.l+E.w*Xe:wt.tail=Qe._offset+Qe.r2p(Xe),Ce=He}else wt.tail=be+Xe,Ce=He+Xe;wt.text=wt.tail+He;var We=w[Ge==="x"?"width":"height"];if(Ke==="paper"&&(wt.head=T.constrain(wt.head,1,We-1)),at==="pixel"){var nt=-Math.max(wt.tail-3,wt.text),rt=Math.min(wt.tail+3,wt.text)-We;nt>0?(wt.tail+=nt,wt.text+=nt):rt>0&&(wt.tail-=rt,wt.text-=rt)}wt.tail+=Tt,wt.head+=Tt}else Ce=He=ot*ze(Re,mt),wt.text=be+He;wt.text+=Tt,He+=Tt,Ce+=Tt,h["_"+Ge+"padplus"]=ot/2+Ce,h["_"+Ge+"padminus"]=ot/2-Ce,h["_"+Ge+"size"]=ot,h["_"+Ge+"shift"]=He}if(Ne)K.remove();else{var Ie=0,De=0;if(h.align!=="left"&&(Ie=(ne-le)*(h.align==="center"?.5:1)),h.valign!=="top"&&(De=(ve-se)*(h.valign==="middle"?.5:1)),ke)Oe.select("svg").attr({x:W+Ie-1,y:W+De}).call(t.setClipUrl,re?O:null,g);else{var et=W+De-Te.top,tt=W+Ie-Te.left;pe.call(r.positionText,tt,et).call(t.setClipUrl,re?O:null,g)}ie.select("rect").call(t.setRect,W,W,ne,ve),Q.call(t.setRect,J/2,J/2,Ee-J,_e-J),K.call(t.setTranslate,Math.round(V.x.text-Ee/2),Math.round(V.y.text-_e/2)),H.attr({transform:"rotate("+N+","+V.x.text+","+V.y.text+")"});var gt,ht=function(dt,ct){B.selectAll(".annotation-arrow-g").remove();var kt=V.x.head,ut=V.y.head,ft=V.x.tail+dt,bt=V.y.tail+ct,It=V.x.text+dt,Rt=V.y.text+ct,Dt=T.rotationXYMatrix(N,It,Rt),Kt=T.apply2DTransform(Dt),qt=T.apply2DTransform2(Dt),Wt=+Q.attr("width"),Ht=+Q.attr("height"),hn=It-.5*Wt,yn=hn+Wt,un=Rt-.5*Ht,jt=un+Ht,nn=[[hn,un,hn,jt],[hn,jt,yn,jt],[yn,jt,yn,un],[yn,un,hn,un]].map(qt);if(!nn.reduce(function($n,Gn){return $n^!!T.segmentsIntersect(kt,ut,kt+1e6,ut+1e6,Gn[0],Gn[1],Gn[2],Gn[3])},!1)){nn.forEach(function($n){var Gn=T.segmentsIntersect(ft,bt,kt,ut,$n[0],$n[1],$n[2],$n[3]);Gn&&(ft=Gn.x,bt=Gn.y)});var Jt=h.arrowwidth,rn=h.arrowcolor,fn=h.arrowside,vn=B.append("g").style({opacity:s.opacity(rn)}).classed("annotation-arrow-g",!0),Mn=vn.append("path").attr("d","M"+ft+","+bt+"L"+kt+","+ut).style("stroke-width",Jt+"px").call(s.stroke,s.rgb(rn));if(u(Mn,fn,h),L.annotationPosition&&Mn.node().parentNode&&!v){var En=kt,bn=ut;if(h.standoff){var Ln=Math.sqrt(Math.pow(kt-ft,2)+Math.pow(ut-bt,2));En+=h.standoff*(ft-kt)/Ln,bn+=h.standoff*(bt-ut)/Ln}var Wn,Qn,ir=vn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ft-En)+","+(bt-bn),transform:b(En,bn)}).style("stroke-width",Jt+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");o.init({element:ir.node(),gd:g,prepFn:function(){var $n=t.getTranslate(K);Wn=$n.x,Qn=$n.y,y&&y.autorange&&P(y._name+".autorange",!0),_&&_.autorange&&P(_._name+".autorange",!0)},moveFn:function($n,Gn){var dr=Kt(Wn,Qn),Bt=dr[0]+$n,tn=dr[1]+Gn;K.call(t.setTranslate,Bt,tn),R("x",c(y,$n,"x",E,h)),R("y",c(_,Gn,"y",E,h)),h.axref===h.xref&&R("ax",c(y,$n,"ax",E,h)),h.ayref===h.yref&&R("ay",c(_,Gn,"ay",E,h)),vn.attr("transform",b($n,Gn)),H.attr({transform:"rotate("+N+","+Bt+","+tn+")"})},doneFn:function(){k.call("_guiRelayout",g,G());var $n=document.querySelector(".js-notes-box-panel");$n&&$n.redraw($n.selectedObj)}})}}};h.showarrow&&ht(0,0),q&&o.init({element:K.node(),gd:g,prepFn:function(){gt=H.attr("transform")},moveFn:function(dt,ct){var kt="pointer";if(h.showarrow)h.axref===h.xref?R("ax",c(y,dt,"ax",E,h)):R("ax",h.ax+dt),h.ayref===h.yref?R("ay",c(_,ct,"ay",E.w,h)):R("ay",h.ay+ct),ht(dt,ct);else{if(v)return;var ut,ft;if(y)ut=c(y,dt,"x",E,h);else{var bt=h._xsize/E.w,It=h.x+(h._xshift-h.xshift)/E.w-bt/2;ut=o.align(It+dt/E.w,bt,0,1,h.xanchor)}if(_)ft=c(_,ct,"y",E,h);else{var Rt=h._ysize/E.h,Dt=h.y-(h._yshift+h.yshift)/E.h-Rt/2;ft=o.align(Dt-ct/E.h,Rt,0,1,h.yanchor)}R("x",ut),R("y",ft),y&&_||(kt=o.getCursor(y?.5:ut,_?.5:ft,h.xanchor,h.yanchor))}H.attr({transform:b(dt,ct)+gt}),n(K,kt)},clickFn:function(dt,ct){h.captureevents&&g.emit("plotly_clickannotation",ge(ct))},doneFn:function(){n(K),k.call("_guiRelayout",g,G());var dt=document.querySelector(".js-notes-box-panel");dt&&dt.redraw(dt.selectedObj)}})}}}ee.exports={draw:function(g){var h=g._fullLayout;h._infolayer.selectAll(".annotation").remove();for(var m=0;m=0,v=i.indexOf("end")>=0,y=c.backoff*g+r.standoff,_=x.backoff*h+r.startstandoff;if(p.nodeName==="line"){n={x:+t.attr("x1"),y:+t.attr("y1")},o={x:+t.attr("x2"),y:+t.attr("y2")};var f=n.x-o.x,S=n.y-o.y;if(u=(a=Math.atan2(S,f))+Math.PI,y&&_&&y+_>Math.sqrt(f*f+S*S))return void B();if(y){if(y*y>f*f+S*S)return void B();var w=y*Math.cos(a),E=y*Math.sin(a);o.x+=w,o.y+=E,t.attr({x2:o.x,y2:o.y})}if(_){if(_*_>f*f+S*S)return void B();var L=_*Math.cos(a),C=_*Math.sin(a);n.x-=L,n.y-=C,t.attr({x1:n.x,y1:n.y})}}else if(p.nodeName==="path"){var P=p.getTotalLength(),R="";if(P1){r=!0;break}}r?T.fullLayout._infolayer.select(".annotation-"+T.id+'[data-index="'+t+'"]').remove():(i._pdata=k(T.glplot.cameraParams,[b.xaxis.r2l(i.x)*d[0],b.yaxis.r2l(i.y)*d[1],b.zaxis.r2l(i.z)*d[2]]),M(T.graphDiv,i,t,T.id,i._xa,i._ya))}}},2468:function(ee,z,e){var M=e(73972),k=e(71828);ee.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(26997)}}},layoutAttributes:e(26997),handleDefaults:e(20226),includeBasePlot:function(l,T){var b=M.subplotsRegistry.gl3d;if(b)for(var d=b.attrRegex,s=Object.keys(l),t=0;t=0)))return i;if(u===3)o[u]>1&&(o[u]=1);else if(o[u]>=1)return i}var p=Math.round(255*o[0])+", "+Math.round(255*o[1])+", "+Math.round(255*o[2]);return a?"rgba("+p+", "+o[3]+")":"rgb("+p+")"}T.tinyRGB=function(i){var r=i.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"},T.rgb=function(i){return T.tinyRGB(M(i))},T.opacity=function(i){return i?M(i).getAlpha():0},T.addOpacity=function(i,r){var n=M(i).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+r+")"},T.combine=function(i,r){var n=M(i).toRgb();if(n.a===1)return M(i).toRgbString();var o=M(r||s).toRgb(),a=o.a===1?o:{r:255*(1-o.a)+o.r*o.a,g:255*(1-o.a)+o.g*o.a,b:255*(1-o.a)+o.b*o.a},u={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return M(u).toRgbString()},T.contrast=function(i,r,n){var o=M(i);return o.getAlpha()!==1&&(o=M(T.combine(i,s))),(o.isDark()?r?o.lighten(r):s:n?o.darken(n):d).toString()},T.stroke=function(i,r){var n=M(r);i.style({stroke:T.tinyRGB(n),"stroke-opacity":n.getAlpha()})},T.fill=function(i,r){var n=M(r);i.style({fill:T.tinyRGB(n),"fill-opacity":n.getAlpha()})},T.clean=function(i){if(i&&typeof i=="object"){var r,n,o,a,u=Object.keys(i);for(r=0;r0?rt>=gt:rt<=gt));Ie++)rt>dt&&rt0?rt>=gt:rt<=gt));Ie++)rt>nt[0]&&rt1){var st=Math.pow(10,Math.floor(Math.log(xt)/Math.LN10));Qe*=st*s.roundUp(xt/st,[2,5,10]),(Math.abs(le.start)/le.size+1e-6)%1<2e-6&&(Ke.tick0=0)}Ke.dtick=Qe}Ke.domain=G?[He+W/pe.h,He+Ne-W/pe.h]:[He+Y/pe.w,He+Ne-Y/pe.w],Ke.setScale(),C.attr("transform",t(Math.round(pe.l),Math.round(pe.t)));var ot,mt=C.select("."+_.cbtitleunshift).attr("transform",t(-Math.round(pe.l),-Math.round(pe.t))),Tt=Ke.ticklabelposition,wt=Ke.title.font.size,Pt=C.select("."+_.cbaxis),Mt=0,Ye=0;function Xe(Ve,We){var nt={propContainer:Ke,propName:P._propPrefix+"title",traceIndex:P._traceIndex,_meta:P._meta,placeholder:ce._dfltTitle.colorbar,containerGroup:C.select("."+_.cbtitle)},rt=Ve.charAt(0)==="h"?Ve.substr(1):"h"+Ve;C.selectAll("."+rt+",."+rt+"-math-group").remove(),a.draw(R,Ve,i(nt,We||{}))}return s.syncOrAsync([l.previousPromises,function(){var Ve,We;(G&&at||!G&&!at)&&(me==="top"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He-Ne)+3+.75*wt),me==="bottom"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He)-3-.25*wt),me==="right"&&(We=W+pe.t+Me*re+3+.75*wt,Ve=Y+pe.l+fe*He),Xe(Ke._id+"title",{attributes:{x:Ve,y:We,"text-anchor":G?"start":"middle"}}))},function(){if(!G&&!at||G&&at){var Ve,We=C.select("."+_.cbtitle),nt=We.select("text"),rt=[-H/2,H/2],Ie=We.select(".h"+Ke._id+"title-math-group").node(),De=15.6;if(nt.node()&&(De=parseInt(nt.node().style.fontSize,10)*m),Ie?(Ve=n.bBox(Ie),Ye=Ve.width,(Mt=Ve.height)>De&&(rt[1]-=(Mt-De)/2)):nt.node()&&!nt.classed(_.jsPlaceholder)&&(Ve=n.bBox(nt.node()),Ye=Ve.width,Mt=Ve.height),G){if(Mt){if(Mt+=5,me==="top")Ke.domain[1]-=Mt/pe.h,rt[1]*=-1;else{Ke.domain[0]+=Mt/pe.h;var et=u.lineCount(nt);rt[1]+=(1-et)*De}We.attr("transform",t(rt[0],rt[1])),Ke.setScale()}}else Ye&&(me==="right"&&(Ke.domain[0]+=(Ye+wt/2)/pe.w),We.attr("transform",t(rt[0],rt[1])),Ke.setScale())}C.selectAll("."+_.cbfills+",."+_.cblines).attr("transform",G?t(0,Math.round(pe.h*(1-Ke.domain[1]))):t(Math.round(pe.w*Ke.domain[0]),0)),Pt.attr("transform",G?t(0,Math.round(-pe.t)):t(Math.round(-pe.l),0));var tt=C.select("."+_.cbfills).selectAll("rect."+_.cbfill).attr("style","").data(ne);tt.enter().append("rect").classed(_.cbfill,!0).attr("style",""),tt.exit().remove();var gt=Oe.map(Ke.c2p).map(Math.round).sort(function(ut,ft){return ut-ft});tt.each(function(ut,ft){var bt=[ft===0?Oe[0]:(ne[ft]+ne[ft-1])/2,ft===ne.length-1?Oe[1]:(ne[ft]+ne[ft+1])/2].map(Ke.c2p).map(Math.round);G&&(bt[1]=s.constrain(bt[1]+(bt[1]>bt[0])?1:-1,gt[0],gt[1]));var It=M.select(this).attr(G?"x":"y",be).attr(G?"y":"x",M.min(bt)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(M.max(bt)-M.min(bt),2));if(P._fillgradient)n.gradient(It,R,P._id,G?"vertical":"horizontalreversed",P._fillgradient,"fill");else{var Rt=Te(ut).replace("e-","");It.attr("fill",k(Rt).toHexString())}});var ht=C.select("."+_.cblines).selectAll("path."+_.cbline).data(we.color&&we.width?ve:[]);ht.enter().append("path").classed(_.cbline,!0),ht.exit().remove(),ht.each(function(ut){var ft=be,bt=Math.round(Ke.c2p(ut))+we.width/2%1;M.select(this).attr("d","M"+(G?ft+","+bt:bt+","+ft)+(G?"h":"v")+Ee).call(n.lineGroupStyle,we.width,ke(ut),we.dash)}),Pt.selectAll("g."+Ke._id+"tick,path").remove();var dt=be+Ee+(H||0)/2-(P.ticks==="outside"?1:0),ct=b.calcTicks(Ke),kt=b.getTickSigns(Ke)[2];return b.drawTicks(R,Ke,{vals:Ke.ticks==="inside"?b.clipEnds(Ke,ct):ct,layer:Pt,path:b.makeTickPath(Ke,dt,kt),transFn:b.makeTransTickFn(Ke)}),b.drawLabels(R,Ke,{vals:ct,layer:Pt,transFn:b.makeTransTickLabelFn(Ke),labelFns:b.makeLabelFns(Ke,dt)})},function(){if(G&&!at||!G&&at){var Ve,We,nt=Ke.position||0,rt=Ke._offset+Ke._length/2;if(me==="right")We=rt,Ve=pe.l+fe*nt+10+wt*(Ke.showticklabels?1:.5);else if(Ve=rt,me==="bottom"&&(We=pe.t+Me*nt+10+(Tt.indexOf("inside")===-1?Ke.tickfont.size:0)+(Ke.ticks!=="intside"&&P.ticklen||0)),me==="top"){var Ie=ye.text.split("
").length;We=pe.t+Me*nt+10-Ee-m*wt*Ie}Xe((G?"h":"v")+Ke._id+"title",{avoid:{selection:M.select(R).selectAll("g."+Ke._id+"tick"),side:me,offsetTop:G?0:pe.t,offsetLeft:G?pe.l:0,maxShift:G?ce.width:ce.height},attributes:{x:Ve,y:We,"text-anchor":"middle"},transform:{rotate:G?-90:0,offset:0}})}},l.previousPromises,function(){var Ve,We=Ee+H/2;Tt.indexOf("inside")===-1&&(Ve=n.bBox(Pt.node()),We+=G?Ve.width:Ve.height),ot=mt.select("text");var nt=0,rt=G&&me==="top",Ie=!G&&me==="right",De=0;if(ot.node()&&!ot.classed(_.jsPlaceholder)){var et,tt=mt.select(".h"+Ke._id+"title-math-group").node();tt&&(G&&at||!G&&!at)?(nt=(Ve=n.bBox(tt)).width,et=Ve.height):(nt=(Ve=n.bBox(mt.node())).right-pe.l-(G?be:Ge),et=Ve.bottom-pe.t-(G?Ge:be),G||me!=="top"||(We+=Ve.height,De=Ve.height)),Ie&&(ot.attr("transform",t(nt/2+wt/2,0)),nt*=2),We=Math.max(We,G?nt:et)}var gt=2*(G?Y:W)+We+q+H/2,ht=0;!G&&ye.text&&J==="bottom"&&re<=0&&(gt+=ht=gt/2,De+=ht),ce._hColorbarMoveTitle=ht,ce._hColorbarMoveCBTitle=De;var dt=q+H,ct=(G?be:Ge)-dt/2-(G?Y:0),kt=(G?Ge:be)-(G?ze:W+De-ht);C.select("."+_.cbbg).attr("x",ct).attr("y",kt).attr(G?"width":"height",Math.max(gt-ht,2)).attr(G?"height":"width",Math.max(ze+dt,2)).call(o.fill,te).call(o.stroke,P.bordercolor).style("stroke-width",q);var ut=Ie?Math.max(nt-10,0):0;C.selectAll("."+_.cboutline).attr("x",(G?be:Ge+Y)+ut).attr("y",(G?Ge+W-ze:be)+(rt?Mt:0)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(ze-(G?2*W+Mt:2*Y+ut),2)).call(o.stroke,P.outlinecolor).style({fill:"none","stroke-width":H});var ft=G?Ce*gt:0,bt=G?0:(1-Fe)*gt-De;if(ft=oe?pe.l-ft:-ft,bt=ie?pe.t-bt:-bt,C.attr("transform",t(ft,bt)),!G&&(q||k(te).getAlpha()&&!k.equals(ce.paper_bgcolor,te))){var It=Pt.selectAll("text"),Rt=It[0].length,Dt=C.select("."+_.cbbg).node(),Kt=n.bBox(Dt),qt=n.getTranslate(C);It.each(function(fn,vn){var Mn=Rt-1;if(vn===0||vn===Mn){var En,bn=n.bBox(this),Ln=n.getTranslate(this);if(vn===Mn){var Wn=bn.right+Ln.x;(En=Kt.right+qt.x+Ge-q-2+Q-Wn)>0&&(En=0)}else if(vn===0){var Qn=bn.left+Ln.x;(En=Kt.left+qt.x+Ge+q+2-Qn)<0&&(En=0)}En&&(Rt<3?this.setAttribute("transform","translate("+En+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Wt={},Ht=v[K],hn=y[K],yn=v[J],un=y[J],jt=gt-Ee;G?(V==="pixels"?(Wt.y=re,Wt.t=ze*yn,Wt.b=ze*un):(Wt.t=Wt.b=0,Wt.yt=re+O*yn,Wt.yb=re-O*un),B==="pixels"?(Wt.x=Q,Wt.l=gt*Ht,Wt.r=gt*hn):(Wt.l=jt*Ht,Wt.r=jt*hn,Wt.xl=Q-N*Ht,Wt.xr=Q+N*hn)):(V==="pixels"?(Wt.x=Q,Wt.l=ze*Ht,Wt.r=ze*hn):(Wt.l=Wt.r=0,Wt.xl=Q+O*Ht,Wt.xr=Q-O*hn),B==="pixels"?(Wt.y=1-re,Wt.t=gt*yn,Wt.b=gt*un):(Wt.t=jt*yn,Wt.b=jt*un,Wt.yt=re-N*yn,Wt.yb=re+N*un));var nn=P.y<.5?"b":"t",Jt=P.x<.5?"l":"r";R._fullLayout._reservedMargin[P._id]={};var rn={r:ce.width-ct-ft,l:ct+Wt.r,b:ce.height-kt-bt,t:kt+Wt.b};oe&&ie?l.autoMargin(R,P._id,Wt):oe?R._fullLayout._reservedMargin[P._id][nn]=rn[nn]:ie||G?R._fullLayout._reservedMargin[P._id][Jt]=rn[Jt]:R._fullLayout._reservedMargin[P._id][nn]=rn[nn]}],R)}(E,w,f);L&&L.then&&(f._promises||[]).push(L),f._context.edits.colorbarPosition&&function(C,P,R){var G,O,V,N=P.orientation==="v",B=R._fullLayout._size;d.init({element:C.node(),gd:R,prepFn:function(){G=C.attr("transform"),r(C)},moveFn:function(H,q){C.attr("transform",G+t(H,q)),O=d.align((N?P._uFrac:P._vFrac)+H/B.w,N?P._thickFrac:P._lenFrac,0,1,P.xanchor),V=d.align((N?P._vFrac:1-P._uFrac)-q/B.h,N?P._lenFrac:P._thickFrac,0,1,P.yanchor);var te=d.getCursor(O,V,P.xanchor,P.yanchor);r(C,te)},doneFn:function(){if(r(C),O!==void 0&&V!==void 0){var H={};H[P._propPrefix+"x"]=O,H[P._propPrefix+"y"]=V,P._traceIndex!==void 0?T.call("_guiRestyle",R,H,P._traceIndex):T.call("_guiRelayout",R,H)}}})}(E,w,f)}),S.exit().each(function(w){l.autoMargin(f,w._id)}).remove(),S.order()}}},76228:function(ee,z,e){var M=e(71828);ee.exports=function(k){return M.isPlainObject(k.colorbar)}},12311:function(ee,z,e){ee.exports={moduleType:"component",name:"colorbar",attributes:e(63583),supplyDefaults:e(62499),draw:e(98981).draw,hasColorbar:e(76228)}},50693:function(ee,z,e){var M=e(63583),k=e(30587).counter,l=e(78607),T=e(63282).scales;function b(d){return"`"+d+"`"}l(T),ee.exports=function(d,s){d=d||"";var t,i=(s=s||{}).cLetter||"c",r=("onlyIfNumerical"in s?s.onlyIfNumerical:Boolean(d),"noScale"in s?s.noScale:d==="marker.line"),n="showScaleDflt"in s?s.showScaleDflt:i==="z",o=typeof s.colorscaleDflt=="string"?T[s.colorscaleDflt]:null,a=s.editTypeOverride||"",u=d?d+".":"";"colorAttr"in s?(t=s.colorAttr,s.colorAttr):b(u+(t={z:"z",c:"color"}[i]));var p=i+"auto",c=i+"min",x=i+"max",g=i+"mid",h={};h[c]=h[x]=void 0;var m={};m[p]=!1;var v={};return t==="color"&&(v.color={valType:"color",arrayOk:!0,editType:a||"style"},s.anim&&(v.color.anim=!0)),v[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:h},v[c]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[x]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:h},v.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},v.autocolorscale={valType:"boolean",dflt:s.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},v.reversescale={valType:"boolean",dflt:!1,editType:"plot"},r||(v.showscale={valType:"boolean",dflt:n,editType:"calc"},v.colorbar=M),s.noColorAxis||(v.coloraxis={valType:"subplotid",regex:k("coloraxis"),dflt:null,editType:"calc"}),v}},78803:function(ee,z,e){var M=e(92770),k=e(71828),l=e(52075).extractOpts;ee.exports=function(T,b,d){var s,t=T._fullLayout,i=d.vals,r=d.containerStr,n=r?k.nestedProperty(b,r).get():b,o=l(n),a=o.auto!==!1,u=o.min,p=o.max,c=o.mid,x=function(){return k.aggNums(Math.min,null,i)},g=function(){return k.aggNums(Math.max,null,i)};u===void 0?u=x():a&&(u=n._colorAx&&M(u)?Math.min(u,x()):x()),p===void 0?p=g():a&&(p=n._colorAx&&M(p)?Math.max(p,g()):g()),a&&c!==void 0&&(p-c>c-u?u=c-(p-c):p-c=0?t.colorscale.sequential:t.colorscale.sequentialminus,o._sync("colorscale",s))}},33046:function(ee,z,e){var M=e(71828),k=e(52075).hasColorscale,l=e(52075).extractOpts;ee.exports=function(T,b){function d(a,u){var p=a["_"+u];p!==void 0&&(a[u]=p)}function s(a,u){var p=u.container?M.nestedProperty(a,u.container).get():a;if(p)if(p.coloraxis)p._colorAx=b[p.coloraxis];else{var c=l(p),x=c.auto;(x||c.min===void 0)&&d(p,u.min),(x||c.max===void 0)&&d(p,u.max),c.autocolorscale&&d(p,"colorscale")}}for(var t=0;t=0;x--,g++){var h=u[x];c[g]=[1-h[0],h[1]]}return c}function o(u,p){p=p||{};for(var c=u.domain,x=u.range,g=x.length,h=new Array(g),m=0;m1.3333333333333333-d?b:d}},70461:function(ee,z,e){var M=e(71828),k=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ee.exports=function(l,T,b,d){return l=b==="left"?0:b==="center"?1:b==="right"?2:M.constrain(Math.floor(3*l),0,2),T=d==="bottom"?0:d==="middle"?1:d==="top"?2:M.constrain(Math.floor(3*T),0,2),k[T][l]}},64505:function(ee,z){z.selectMode=function(e){return e==="lasso"||e==="select"},z.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.openMode=function(e){return e==="drawline"||e==="drawopenpath"},z.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},z.selectingOrDrawing=function(e){return z.freeMode(e)||z.rectMode(e)}},28569:function(ee,z,e){var M=e(48956),k=e(57035),l=e(38520),T=e(71828).removeElement,b=e(85555),d=ee.exports={};d.align=e(92807),d.getCursor=e(70461);var s=e(26041);function t(){var r=document.createElement("div");r.className="dragcover";var n=r.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(r),r}function i(r){return M(r.changedTouches?r.changedTouches[0]:r,document.body)}d.unhover=s.wrapped,d.unhoverRaw=s.raw,d.init=function(r){var n,o,a,u,p,c,x,g,h=r.gd,m=1,v=h._context.doubleClickDelay,y=r.element;h._mouseDownTime||(h._mouseDownTime=0),y.style.pointerEvents="all",y.onmousedown=f,l?(y._ontouchstart&&y.removeEventListener("touchstart",y._ontouchstart),y._ontouchstart=f,y.addEventListener("touchstart",f,{passive:!1})):y.ontouchstart=f;var _=r.clampFn||function(E,L,C){return Math.abs(E)v&&(m=Math.max(m-1,1)),h._dragged)r.doneFn&&r.doneFn();else if(r.clickFn&&r.clickFn(m,c),!g){var L;try{L=new MouseEvent("click",E)}catch{var C=i(E);(L=document.createEvent("MouseEvents")).initMouseEvent("click",E.bubbles,E.cancelable,E.view,E.detail,E.screenX,E.screenY,C[0],C[1],E.ctrlKey,E.altKey,E.shiftKey,E.metaKey,E.button,E.relatedTarget)}x.dispatchEvent(L)}h._dragging=!1,h._dragged=!1}else h._dragged=!1}},d.coverSlip=t},26041:function(ee,z,e){var M=e(11086),k=e(79990),l=e(24401).getGraphDiv,T=e(26675),b=ee.exports={};b.wrapped=function(d,s,t){(d=l(d))._fullLayout&&k.clear(d._fullLayout._uid+T.HOVERID),b.raw(d,s,t)},b.raw=function(d,s){var t=d._fullLayout,i=d._hoverdata;s||(s={}),s.target&&!d._dragged&&M.triggerHandler(d,"plotly_beforehover",s)===!1||(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),d._hoverdata=void 0,s.target&&i&&d.emit("plotly_unhover",{event:s,points:i}))}},79952:function(ee,z){z.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},z.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(ee,z,e){var M=e(39898),k=e(71828),l=k.numberFormat,T=e(92770),b=e(84267),d=e(73972),s=e(7901),t=e(21081),i=k.strTranslate,r=e(63893),n=e(77922),o=e(18783).LINE_SPACING,a=e(37822).DESELECTDIM,u=e(34098),p=e(39984),c=e(23469).appendArrayPointValue,x=ee.exports={};function g(ke,Te,le){var se=Te.fillpattern,ne=se&&x.getPatternAttr(se.shape,0,"");if(ne){var ve=x.getPatternAttr(se.bgcolor,0,null),Ee=x.getPatternAttr(se.fgcolor,0,null),_e=se.fgopacity,ze=x.getPatternAttr(se.size,0,8),Ne=x.getPatternAttr(se.solidity,0,.3),fe=Te.uid;x.pattern(ke,"point",le,fe,ne,ze,Ne,void 0,se.fillmode,ve,Ee,_e)}else Te.fillcolor&&ke.call(s.fill,Te.fillcolor)}x.font=function(ke,Te,le,se){k.isPlainObject(Te)&&(se=Te.color,le=Te.size,Te=Te.family),Te&&ke.style("font-family",Te),le+1&&ke.style("font-size",le+"px"),se&&ke.call(s.fill,se)},x.setPosition=function(ke,Te,le){ke.attr("x",Te).attr("y",le)},x.setSize=function(ke,Te,le){ke.attr("width",Te).attr("height",le)},x.setRect=function(ke,Te,le,se,ne){ke.call(x.setPosition,Te,le).call(x.setSize,se,ne)},x.translatePoint=function(ke,Te,le,se){var ne=le.c2p(ke.x),ve=se.c2p(ke.y);return!!(T(ne)&&T(ve)&&Te.node())&&(Te.node().nodeName==="text"?Te.attr("x",ne).attr("y",ve):Te.attr("transform",i(ne,ve)),!0)},x.translatePoints=function(ke,Te,le){ke.each(function(se){var ne=M.select(this);x.translatePoint(se,ne,Te,le)})},x.hideOutsideRangePoint=function(ke,Te,le,se,ne,ve){Te.attr("display",le.isPtWithinRange(ke,ne)&&se.isPtWithinRange(ke,ve)?null:"none")},x.hideOutsideRangePoints=function(ke,Te){if(Te._hasClipOnAxisFalse){var le=Te.xaxis,se=Te.yaxis;ke.each(function(ne){var ve=ne[0].trace,Ee=ve.xcalendar,_e=ve.ycalendar,ze=d.traceIs(ve,"bar-like")?".bartext":".point,.textpoint";ke.selectAll(ze).each(function(Ne){x.hideOutsideRangePoint(Ne,M.select(this),le,se,Ee,_e)})})}},x.crispRound=function(ke,Te,le){return Te&&T(Te)?ke._context.staticPlot?Te:Te<1?1:Math.round(Te):le||0},x.singleLineStyle=function(ke,Te,le,se,ne){Te.style("fill","none");var ve=(((ke||[])[0]||{}).trace||{}).line||{},Ee=le||ve.width||0,_e=ne||ve.dash||"";s.stroke(Te,se||ve.color),x.dashLine(Te,_e,Ee)},x.lineGroupStyle=function(ke,Te,le,se){ke.style("fill","none").each(function(ne){var ve=(((ne||[])[0]||{}).trace||{}).line||{},Ee=Te||ve.width||0,_e=se||ve.dash||"";M.select(this).call(s.stroke,le||ve.color).call(x.dashLine,_e,Ee)})},x.dashLine=function(ke,Te,le){le=+le||0,Te=x.dashStyle(Te,le),ke.style({"stroke-dasharray":Te,"stroke-width":le+"px"})},x.dashStyle=function(ke,Te){Te=+Te||1;var le=Math.max(Te,3);return ke==="solid"?ke="":ke==="dot"?ke=le+"px,"+le+"px":ke==="dash"?ke=3*le+"px,"+3*le+"px":ke==="longdash"?ke=5*le+"px,"+5*le+"px":ke==="dashdot"?ke=3*le+"px,"+le+"px,"+le+"px,"+le+"px":ke==="longdashdot"&&(ke=5*le+"px,"+2*le+"px,"+le+"px,"+2*le+"px"),ke},x.singleFillStyle=function(ke,Te){var le=M.select(ke.node());g(ke,((le.data()[0]||[])[0]||{}).trace||{},Te)},x.fillGroupStyle=function(ke,Te){ke.style("stroke-width",0).each(function(le){var se=M.select(this);le[0].trace&&g(se,le[0].trace,Te)})};var h=e(90998);x.symbolNames=[],x.symbolFuncs=[],x.symbolBackOffs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(h).forEach(function(ke){var Te=h[ke],le=Te.n;x.symbolList.push(le,String(le),ke,le+100,String(le+100),ke+"-open"),x.symbolNames[le]=ke,x.symbolFuncs[le]=Te.f,x.symbolBackOffs[le]=Te.backoff||0,Te.needLine&&(x.symbolNeedLines[le]=!0),Te.noDot?x.symbolNoDot[le]=!0:x.symbolList.push(le+200,String(le+200),ke+"-dot",le+300,String(le+300),ke+"-open-dot"),Te.noFill&&(x.symbolNoFill[le]=!0)});var m=x.symbolNames.length;function v(ke,Te,le,se){var ne=ke%100;return x.symbolFuncs[ne](Te,le,se)+(ke>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(ke){if(T(ke))ke=+ke;else if(typeof ke=="string"){var Te=0;ke.indexOf("-open")>0&&(Te=100,ke=ke.replace("-open","")),ke.indexOf("-dot")>0&&(Te+=200,ke=ke.replace("-dot","")),(ke=x.symbolNames.indexOf(ke))>=0&&(ke+=Te)}return ke%100>=m||ke>=400?0:Math.floor(Math.max(ke,0))};var y={x1:1,x2:0,y1:0,y2:0},_={x1:0,x2:0,y1:1,y2:0},f=l("~f"),S={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:y},horizontalreversed:{node:"linearGradient",attrs:y,reversed:!0},vertical:{node:"linearGradient",attrs:_},verticalreversed:{node:"linearGradient",attrs:_,reversed:!0}};x.gradient=function(ke,Te,le,se,ne,ve){for(var Ee=ne.length,_e=S[se],ze=new Array(Ee),Ne=0;Ne=0&&ke.i===void 0&&(ke.i=ve.i),Te.style("opacity",se.selectedOpacityFn?se.selectedOpacityFn(ke):ke.mo===void 0?Ee.opacity:ke.mo),se.ms2mrc){var ze;ze=ke.ms==="various"||Ee.size==="various"?3:se.ms2mrc(ke.ms),ke.mrc=ze,se.selectedSizeFn&&(ze=ke.mrc=se.selectedSizeFn(ke));var Ne=x.symbolNumber(ke.mx||Ee.symbol)||0;ke.om=Ne%200>=100;var fe=Oe(ke,le),Me=W(ke,le);Te.attr("d",v(Ne,ze,fe,Me))}var be,Ce,Fe,Re=!1;if(ke.so)Fe=_e.outlierwidth,Ce=_e.outliercolor,be=Ee.outliercolor;else{var He=(_e||{}).width;Fe=(ke.mlw+1||He+1||(ke.trace?(ke.trace.marker.line||{}).width:0)+1)-1||0,Ce="mlc"in ke?ke.mlcc=se.lineScale(ke.mlc):k.isArrayOrTypedArray(_e.color)?s.defaultLine:_e.color,k.isArrayOrTypedArray(Ee.color)&&(be=s.defaultLine,Re=!0),be="mc"in ke?ke.mcc=se.markerScale(ke.mc):Ee.color||Ee.colors||"rgba(0,0,0,0)",se.selectedColorFn&&(be=se.selectedColorFn(ke))}if(ke.om)Te.call(s.stroke,be).style({"stroke-width":(Fe||1)+"px",fill:"none"});else{Te.style("stroke-width",(ke.isBlank?0:Fe)+"px");var Ge=Ee.gradient,Ke=ke.mgt;Ke?Re=!0:Ke=Ge&&Ge.type,k.isArrayOrTypedArray(Ke)&&(Ke=Ke[0],S[Ke]||(Ke=0));var at=Ee.pattern,Qe=at&&x.getPatternAttr(at.shape,ke.i,"");if(Ke&&Ke!=="none"){var vt=ke.mgc;vt?Re=!0:vt=Ge.color;var xt=le.uid;Re&&(xt+="-"+ke.i),x.gradient(Te,ne,xt,Ke,[[0,vt],[1,be]],"fill")}else if(Qe){var st=!1,ot=at.fgcolor;!ot&&ve&&ve.color&&(ot=ve.color,st=!0);var mt=x.getPatternAttr(ot,ke.i,ve&&ve.color||null),Tt=x.getPatternAttr(at.bgcolor,ke.i,null),wt=at.fgopacity,Pt=x.getPatternAttr(at.size,ke.i,8),Mt=x.getPatternAttr(at.solidity,ke.i,.3);st=st||ke.mcc||k.isArrayOrTypedArray(at.shape)||k.isArrayOrTypedArray(at.bgcolor)||k.isArrayOrTypedArray(at.fgcolor)||k.isArrayOrTypedArray(at.size)||k.isArrayOrTypedArray(at.solidity);var Ye=le.uid;st&&(Ye+="-"+ke.i),x.pattern(Te,"point",ne,Ye,Qe,Pt,Mt,ke.mcc,at.fillmode,Tt,mt,wt)}else k.isArrayOrTypedArray(be)?s.fill(Te,be[ke.i]):s.fill(Te,be);Fe&&s.stroke(Te,Ce)}},x.makePointStyleFns=function(ke){var Te={},le=ke.marker;return Te.markerScale=x.tryColorscale(le,""),Te.lineScale=x.tryColorscale(le,"line"),d.traceIs(ke,"symbols")&&(Te.ms2mrc=u.isBubble(ke)?p(ke):function(){return(le.size||6)/2}),ke.selectedpoints&&k.extendFlat(Te,x.makeSelectedPointStyleFns(ke)),Te},x.makeSelectedPointStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.marker||{},ve=le.marker||{},Ee=se.marker||{},_e=ne.opacity,ze=ve.opacity,Ne=Ee.opacity,fe=ze!==void 0,Me=Ne!==void 0;(k.isArrayOrTypedArray(_e)||fe||Me)&&(Te.selectedOpacityFn=function(Qe){var vt=Qe.mo===void 0?ne.opacity:Qe.mo;return Qe.selected?fe?ze:vt:Me?Ne:a*vt});var be=ne.color,Ce=ve.color,Fe=Ee.color;(Ce||Fe)&&(Te.selectedColorFn=function(Qe){var vt=Qe.mcc||be;return Qe.selected?Ce||vt:Fe||vt});var Re=ne.size,He=ve.size,Ge=Ee.size,Ke=He!==void 0,at=Ge!==void 0;return d.traceIs(ke,"symbols")&&(Ke||at)&&(Te.selectedSizeFn=function(Qe){var vt=Qe.mrc||Re/2;return Qe.selected?Ke?He/2:vt:at?Ge/2:vt}),Te},x.makeSelectedTextStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.textfont||{},ve=le.textfont||{},Ee=se.textfont||{},_e=ne.color,ze=ve.color,Ne=Ee.color;return Te.selectedTextColorFn=function(fe){var Me=fe.tc||_e;return fe.selected?ze||Me:Ne||(ze?Me:s.addOpacity(Me,a))},Te},x.selectedPointStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedPointStyleFns(Te),se=Te.marker||{},ne=[];le.selectedOpacityFn&&ne.push(function(ve,Ee){ve.style("opacity",le.selectedOpacityFn(Ee))}),le.selectedColorFn&&ne.push(function(ve,Ee){s.fill(ve,le.selectedColorFn(Ee))}),le.selectedSizeFn&&ne.push(function(ve,Ee){var _e=Ee.mx||se.symbol||0,ze=le.selectedSizeFn(Ee);ve.attr("d",v(x.symbolNumber(_e),ze,Oe(Ee,Te),W(Ee,Te))),Ee.mrc2=ze}),ne.length&&ke.each(function(ve){for(var Ee=M.select(this),_e=0;_e0?le:0}function R(ke,Te,le){return le&&(ke=H(ke)),Te?O(ke[1]):G(ke[0])}function G(ke){var Te=M.round(ke,2);return w=Te,Te}function O(ke){var Te=M.round(ke,2);return E=Te,Te}function V(ke,Te,le,se){var ne=ke[0]-Te[0],ve=ke[1]-Te[1],Ee=le[0]-Te[0],_e=le[1]-Te[1],ze=Math.pow(ne*ne+ve*ve,.25),Ne=Math.pow(Ee*Ee+_e*_e,.25),fe=(Ne*Ne*ne-ze*ze*Ee)*se,Me=(Ne*Ne*ve-ze*ze*_e)*se,be=3*Ne*(ze+Ne),Ce=3*ze*(ze+Ne);return[[G(Te[0]+(be&&fe/be)),O(Te[1]+(be&&Me/be))],[G(Te[0]-(Ce&&fe/Ce)),O(Te[1]-(Ce&&Me/Ce))]]}x.textPointStyle=function(ke,Te,le){if(ke.size()){var se;if(Te.selectedpoints){var ne=x.makeSelectedTextStyleFns(Te);se=ne.selectedTextColorFn}var ve=Te.texttemplate,Ee=le._fullLayout;ke.each(function(_e){var ze=M.select(this),Ne=ve?k.extractOption(_e,Te,"txt","texttemplate"):k.extractOption(_e,Te,"tx","text");if(Ne||Ne===0){if(ve){var fe=Te._module.formatLabels,Me=fe?fe(_e,Te,Ee):{},be={};c(be,Te,_e.i);var Ce=Te._meta||{};Ne=k.texttemplateString(Ne,Me,Ee._d3locale,be,_e,Ce)}var Fe=_e.tp||Te.textposition,Re=P(_e,Te),He=se?se(_e):_e.tc||Te.textfont.color;ze.call(x.font,_e.tf||Te.textfont.family,Re,He).text(Ne).call(r.convertToTspans,le).call(C,Fe,Re,_e.mrc)}else ze.remove()})}},x.selectedTextStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedTextStyleFns(Te);ke.each(function(se){var ne=M.select(this),ve=le.selectedTextColorFn(se),Ee=se.tp||Te.textposition,_e=P(se,Te);s.fill(ne,ve);var ze=d.traceIs(Te,"bar-like");C(ne,Ee,_e,se.mrc2||se.mrc,ze)})}},x.smoothopen=function(ke,Te){if(ke.length<3)return"M"+ke.join("L");var le,se="M"+ke[0],ne=[];for(le=1;le=ze||Qe>=fe&&Qe<=ze)&&(vt<=Me&&vt>=Ne||vt>=Me&&vt<=Ne)&&(ke=[Qe,vt])}return ke}x.steps=function(ke){var Te=N[ke]||B;return function(le){for(var se="M"+G(le[0][0])+","+O(le[0][1]),ne=le.length,ve=1;ve=1e4&&(x.savedBBoxes={},q=0),le&&(x.savedBBoxes[le]=Ce),q++,k.extendFlat({},Ce)},x.setClipUrl=function(ke,Te,le){ke.attr("clip-path",K(Te,le))},x.getTranslate=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||0,y:+Te[1]||0}},x.setTranslate=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||0,le=le||0,ve=ve.replace(/(\btranslate\(.*?\);?)/,"").trim(),ve=(ve+=i(Te,le)).trim(),ke[ne]("transform",ve),ve},x.getScale=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||1,y:+Te[1]||1}},x.setScale=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||1,le=le||1,ve=ve.replace(/(\bscale\(.*?\);?)/,"").trim(),ve=(ve+="scale("+Te+","+le+")").trim(),ke[ne]("transform",ve),ve};var J=/\s*sc.*/;x.setPointGroupScale=function(ke,Te,le){if(Te=Te||1,le=le||1,ke){var se=Te===1&&le===1?"":"scale("+Te+","+le+")";ke.each(function(){var ne=(this.getAttribute("transform")||"").replace(J,"");ne=(ne+=se).trim(),this.setAttribute("transform",ne)})}};var Y=/translate\([^)]*\)\s*$/;function W(ke,Te){var le;return ke&&(le=ke.mf),le===void 0&&(le=Te.marker&&Te.marker.standoff||0),Te._geo||Te._xA?le:-le}x.setTextPointsScale=function(ke,Te,le){ke&&ke.each(function(){var se,ne=M.select(this),ve=ne.select("text");if(ve.node()){var Ee=parseFloat(ve.attr("x")||0),_e=parseFloat(ve.attr("y")||0),ze=(ne.attr("transform")||"").match(Y);se=Te===1&&le===1?[]:[i(Ee,_e),"scale("+Te+","+le+")",i(-Ee,-_e)],ze&&se.push(ze),ne.attr("transform",se.join(""))}})},x.getMarkerStandoff=W;var Q,re,ie,oe,ce,pe,ge=Math.atan2,we=Math.cos,ye=Math.sin;function me(ke,Te){var le=Te[0],se=Te[1];return[le*we(ke)-se*ye(ke),le*ye(ke)+se*we(ke)]}function Oe(ke,Te){var le,se,ne=ke.ma;ne===void 0&&(ne=Te.marker.angle||0);var ve=Te.marker.angleref;if(ve==="previous"||ve==="north"){if(Te._geo){var Ee=Te._geo.project(ke.lonlat);le=Ee[0],se=Ee[1]}else{var _e=Te._xA,ze=Te._yA;if(!_e||!ze)return 90;le=_e.c2p(ke.x),se=ze.c2p(ke.y)}if(Te._geo){var Ne,fe=ke.lonlat[0],Me=ke.lonlat[1],be=Te._geo.project([fe,Me+1e-5]),Ce=Te._geo.project([fe+1e-5,Me]),Fe=ge(Ce[1]-se,Ce[0]-le),Re=ge(be[1]-se,be[0]-le);if(ve==="north")Ne=ne/180*Math.PI;else if(ve==="previous"){var He=fe/180*Math.PI,Ge=Me/180*Math.PI,Ke=Q/180*Math.PI,at=re/180*Math.PI,Qe=Ke-He,vt=we(at)*ye(Qe),xt=ye(at)*we(Ge)-we(at)*ye(Ge)*we(Qe);Ne=-ge(vt,xt)-Math.PI,Q=fe,re=Me}var st=me(Fe,[we(Ne),0]),ot=me(Re,[ye(Ne),0]);ne=ge(st[1]+ot[1],st[0]+ot[0])/Math.PI*180,ve!=="previous"||pe===Te.uid&&ke.i===ce+1||(ne=null)}if(ve==="previous"&&!Te._geo)if(pe===Te.uid&&ke.i===ce+1&&T(le)&&T(se)){var mt=le-ie,Tt=se-oe,wt=Te.line&&Te.line.shape||"",Pt=wt.slice(wt.length-1);Pt==="h"&&(Tt=0),Pt==="v"&&(mt=0),ne+=ge(Tt,mt)/Math.PI*180+90}else ne=null}return ie=le,oe=se,ce=ke.i,pe=Te.uid,ne}x.getMarkerAngle=Oe},90998:function(ee,z,e){var M,k,l,T,b=e(95616),d=e(39898).round,s="M0,0Z",t=Math.sqrt(2),i=Math.sqrt(3),r=Math.PI,n=Math.cos,o=Math.sin;function a(p){return p===null}function u(p,c,x){if(!(p&&p%360!=0||c))return x;if(l===p&&T===c&&M===x)return k;function g(R,G){var O=n(R),V=o(R),N=G[0],B=G[1]+(c||0);return[N*O-B*V,N*V+B*O]}l=p,T=c,M=x;for(var h=p/180*r,m=0,v=0,y=b(x),_="",f=0;f0,o=b._context.staticPlot;d.each(function(a){var u,p=a[0].trace,c=p.error_x||{},x=p.error_y||{};p.ids&&(u=function(v){return v.id});var g=T.hasMarkers(p)&&p.marker.maxdisplayed>0;x.visible||c.visible||(a=[]);var h=M.select(this).selectAll("g.errorbar").data(a,u);if(h.exit().remove(),a.length){c.visible||h.selectAll("path.xerror").remove(),x.visible||h.selectAll("path.yerror").remove(),h.style("opacity",1);var m=h.enter().append("g").classed("errorbar",!0);n&&m.style("opacity",0).transition().duration(t.duration).style("opacity",1),l.setClipUrl(h,s.layerClipId,b),h.each(function(v){var y=M.select(this),_=function(C,P,R){var G={x:P.c2p(C.x),y:R.c2p(C.y)};return C.yh!==void 0&&(G.yh=R.c2p(C.yh),G.ys=R.c2p(C.ys),k(G.ys)||(G.noYS=!0,G.ys=R.c2p(C.ys,!0))),C.xh!==void 0&&(G.xh=P.c2p(C.xh),G.xs=P.c2p(C.xs),k(G.xs)||(G.noXS=!0,G.xs=P.c2p(C.xs,!0))),G}(v,i,r);if(!g||v.vis){var f,S=y.select("path.yerror");if(x.visible&&k(_.x)&&k(_.yh)&&k(_.ys)){var w=x.width;f="M"+(_.x-w)+","+_.yh+"h"+2*w+"m-"+w+",0V"+_.ys,_.noYS||(f+="m-"+w+",0h"+2*w),S.size()?n&&(S=S.transition().duration(t.duration).ease(t.easing)):S=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("yerror",!0),S.attr("d",f)}else S.remove();var E=y.select("path.xerror");if(c.visible&&k(_.y)&&k(_.xh)&&k(_.xs)){var L=(c.copy_ystyle?x:c).width;f="M"+_.xh+","+(_.y-L)+"v"+2*L+"m0,-"+L+"H"+_.xs,_.noXS||(f+="m0,-"+L+"v"+2*L),E.size()?n&&(E=E.transition().duration(t.duration).ease(t.easing)):E=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("xerror",!0),E.attr("d",f)}else E.remove()}})}})}},62662:function(ee,z,e){var M=e(39898),k=e(7901);ee.exports=function(l){l.each(function(T){var b=T[0].trace,d=b.error_y||{},s=b.error_x||{},t=M.select(this);t.selectAll("path.yerror").style("stroke-width",d.thickness+"px").call(k.stroke,d.color),s.copy_ystyle&&(s=d),t.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(k.stroke,s.color)})}},77914:function(ee,z,e){var M=e(41940),k=e(528).hoverlabel,l=e(1426).extendFlat;ee.exports={hoverlabel:{bgcolor:l({},k.bgcolor,{arrayOk:!0}),bordercolor:l({},k.bordercolor,{arrayOk:!0}),font:M({arrayOk:!0,editType:"none"}),align:l({},k.align,{arrayOk:!0}),namelength:l({},k.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(ee,z,e){var M=e(71828),k=e(73972);function l(T,b,d,s){s=s||M.identity,Array.isArray(T)&&(b[0][d]=s(T))}ee.exports=function(T){var b=T.calcdata,d=T._fullLayout;function s(o){return function(a){return M.coerceHoverinfo({hoverinfo:a},{_module:o._module},d)}}for(var t=0;t=0&&i.indexne[0]._length||Xe<0||Xe>ve[0]._length)return o.unhoverRaw(oe,ce)}else Ye="xpx"in ce?ce.xpx:ne[0]._length/2,Xe="ypx"in ce?ce.ypx:ve[0]._length/2;if(ce.pointerX=Ye+ne[0]._offset,ce.pointerY=Xe+ve[0]._offset,Ce="xval"in ce?p.flat(ye,ce.xval):p.p2c(ne,Ye),Fe="yval"in ce?p.flat(ye,ce.yval):p.p2c(ve,Xe),!k(Ce[0])||!k(Fe[0]))return T.warn("Fx.hover failed",ce,oe),o.unhoverRaw(oe,ce)}var nt=1/0;function rt(Bt,tn){for(He=0;Hemt&&(Tt.splice(0,mt),nt=Tt[0].distance),Te&&be!==0&&Tt.length===0){ot.distance=be,ot.index=!1;var In=Ke._module.hoverPoints(ot,xt,st,"closest",{hoverLayer:me._hoverlayer});if(In&&(In=In.filter(function(Gt){return Gt.spikeDistance<=be})),In&&In.length){var zn,Kn=In.filter(function(Gt){return Gt.xa.showspikes&&Gt.xa.spikesnap!=="hovered data"});if(Kn.length){var Ut=Kn[0];k(Ut.x0)&&k(Ut.y0)&&(zn=De(Ut),(!Pt.vLinePoint||Pt.vLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.vLinePoint=zn))}var _n=In.filter(function(Gt){return Gt.ya.showspikes&&Gt.ya.spikesnap!=="hovered data"});if(_n.length){var At=_n[0];k(At.x0)&&k(At.y0)&&(zn=De(At),(!Pt.hLinePoint||Pt.hLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.hLinePoint=zn))}}}}}function Ie(Bt,tn,cn){for(var dn,kn=null,Vn=1/0,In=0;In0&&Math.abs(Bt.distance)It-1;Rt--)Wt(Tt[Rt]);Tt=Dt,ht()}var Ht=oe._hoverdata,hn=[],yn=te(oe),un=K(oe);for(Re=0;Re1||Tt.length>1)||fe==="closest"&&Mt&&Tt.length>1,ir=n.combine(me.plot_bgcolor||n.background,me.paper_bgcolor),$n=P(Tt,{gd:oe,hovermode:fe,rotateLabels:Qn,bgColor:ir,container:me._hoverlayer,outerContainer:me._paper.node(),commonLabelOpts:me.hoverlabel,hoverdistance:me.hoverdistance}),Gn=$n.hoverLabels;if(p.isUnifiedHover(fe)||(function(Bt,tn,cn,dn){var kn,Vn,In,zn,Kn,Ut,_n,At=tn?"xa":"ya",Gt=tn?"ya":"xa",$t=0,mn=1,xn=Bt.size(),An=new Array(xn),sn=0,Yt=dn.minX,Xt=dn.maxX,on=dn.minY,ln=dn.maxY,Sn=function(ur){return ur*cn._invScaleX},Cn=function(ur){return ur*cn._invScaleY};function jn(ur){var br=ur[0],Zn=ur[ur.length-1];if(Vn=br.pmin-br.pos-br.dp+br.size,In=Zn.pos+Zn.dp+Zn.size-br.pmax,Vn>.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp+=Vn;kn=!1}if(!(In<.01)){if(Vn<-.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp-=In;kn=!1}if(kn){var pr=0;for(zn=0;znbr.pmax&&pr++;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos>br.pmax-1&&(Ut.del=!0,pr--);for(zn=0;zn=0;Kn--)ur[Kn].dp-=In;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos+Ut.dp+Ut.size>br.pmax&&(Ut.del=!0,pr--)}}}for(Bt.each(function(ur){var br=ur[At],Zn=ur[Gt],pr=br._id.charAt(0)==="x",Sr=br.range;sn===0&&Sr&&Sr[0]>Sr[1]!==pr&&(mn=-1);var Gr=0,ai=pr?cn.width:cn.height;if(cn.hovermode==="x"||cn.hovermode==="y"){var ni,ci,Kr=G(ur,tn),bi=ur.anchor,qa=bi==="end"?-1:1;if(bi==="middle")ci=(ni=ur.crossPos+(pr?Cn(Kr.y-ur.by/2):Sn(ur.bx/2+ur.tx2width/2)))+(pr?Cn(ur.by):Sn(ur.bx));else if(pr)ci=(ni=ur.crossPos+Cn(f+Kr.y)-Cn(ur.by/2-f))+Cn(ur.by);else{var ha=Sn(qa*f+Kr.x),to=ha+Sn(qa*ur.bx);ni=ur.crossPos+Math.min(ha,to),ci=ur.crossPos+Math.max(ha,to)}pr?on!==void 0&&ln!==void 0&&Math.min(ci,ln)-Math.max(ni,on)>1&&(Zn.side==="left"?(Gr=Zn._mainLinePosition,ai=cn.width):ai=Zn._mainLinePosition):Yt!==void 0&&Xt!==void 0&&Math.min(ci,Xt)-Math.max(ni,Yt)>1&&(Zn.side==="top"?(Gr=Zn._mainLinePosition,ai=cn.height):ai=Zn._mainLinePosition)}An[sn++]=[{datum:ur,traceIndex:ur.trace.index,dp:0,pos:ur.pos,posref:ur.posref,size:ur.by*(pr?v:1)/2,pmin:Gr,pmax:ai}]}),An.sort(function(ur,br){return ur[0].posref-br[0].posref||mn*(br[0].traceIndex-ur[0].traceIndex)});!kn&&$t<=xn;){for($t++,kn=!0,zn=0;zn.01&&Hn.pmin===nr.pmin&&Hn.pmax===nr.pmax){for(Kn=Xn.length-1;Kn>=0;Kn--)Xn[Kn].dp+=Vn;for(Fn.push.apply(Fn,Xn),An.splice(zn+1,1),_n=0,Kn=Fn.length-1;Kn>=0;Kn--)_n+=Fn[Kn].dp;for(In=_n/Fn.length,Kn=Fn.length-1;Kn>=0;Kn--)Fn[Kn].dp-=In;kn=!1}else zn++}An.forEach(jn)}for(zn=An.length-1;zn>=0;zn--){var er=An[zn];for(Kn=er.length-1;Kn>=0;Kn--){var tr=er[Kn],lr=tr.datum;lr.offset=tr.dp,lr.del=tr.del}}}(Gn,Qn,me,$n.commonLabelBoundingBox),O(Gn,Qn,me._invScaleX,me._invScaleY)),we&&we.tagName){var dr=u.getComponentMethod("annotations","hasClickToShow")(oe,hn);i(M.select(we),dr?"pointer":"")}we&&!ge&&function(Bt,tn,cn){if(!cn||cn.length!==Bt._hoverdata.length)return!0;for(var dn=cn.length-1;dn>=0;dn--){var kn=cn[dn],Vn=Bt._hoverdata[dn];if(kn.curveNumber!==Vn.curveNumber||String(kn.pointNumber)!==String(Vn.pointNumber)||String(kn.pointNumbers)!==String(Vn.pointNumbers))return!0}return!1}(oe,0,Ht)&&(Ht&&oe.emit("plotly_unhover",{event:ce,points:Ht}),oe.emit("plotly_hover",{event:ce,points:oe._hoverdata,xaxes:ne,yaxes:ve,xvals:Ce,yvals:Fe}))})(Y,W,Q,re,ie)})},z.loneHover=function(Y,W){var Q=!0;Array.isArray(Y)||(Q=!1,Y=[Y]);var re=W.gd,ie=te(re),oe=K(re),ce=P(Y.map(function(we){var ye=we._x0||we.x0||we.x||0,me=we._x1||we.x1||we.x||0,Oe=we._y0||we.y0||we.y||0,ke=we._y1||we.y1||we.y||0,Te=we.eventData;if(Te){var le=Math.min(ye,me),se=Math.max(ye,me),ne=Math.min(Oe,ke),ve=Math.max(Oe,ke),Ee=we.trace;if(u.traceIs(Ee,"gl3d")){var _e=re._fullLayout[Ee.scene]._scene.container,ze=_e.offsetLeft,Ne=_e.offsetTop;le+=ze,se+=ze,ne+=Ne,ve+=Ne}Te.bbox={x0:le+oe,x1:se+oe,y0:ne+ie,y1:ve+ie},W.inOut_bbox&&W.inOut_bbox.push(Te.bbox)}else Te=!1;return{color:we.color||n.defaultLine,x0:we.x0||we.x||0,x1:we.x1||we.x||0,y0:we.y0||we.y||0,y1:we.y1||we.y||0,xLabel:we.xLabel,yLabel:we.yLabel,zLabel:we.zLabel,text:we.text,name:we.name,idealAlign:we.idealAlign,borderColor:we.borderColor,fontFamily:we.fontFamily,fontSize:we.fontSize,fontColor:we.fontColor,nameLength:we.nameLength,textAlign:we.textAlign,trace:we.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:we.hovertemplate||!1,hovertemplateLabels:we.hovertemplateLabels||!1,eventData:Te}}),{gd:re,hovermode:"closest",rotateLabels:!1,bgColor:W.bgColor||n.background,container:M.select(W.container),outerContainer:W.outerContainer||W.container}).hoverLabels,pe=0,ge=0;return ce.sort(function(we,ye){return we.y0-ye.y0}).each(function(we,ye){var me=we.y0-we.by/2;we.offset=me-5([\s\S]*)<\/extra>/;function P(Y,W){var Q=W.gd,re=Q._fullLayout,ie=W.hovermode,oe=W.rotateLabels,ce=W.bgColor,pe=W.container,ge=W.outerContainer,we=W.commonLabelOpts||{};if(Y.length===0)return[[]];var ye=W.fontFamily||c.HOVERFONT,me=W.fontSize||c.HOVERFONTSIZE,Oe=Y[0],ke=Oe.xa,Te=Oe.ya,le=ie.charAt(0),se=le+"Label",ne=Oe[se];if(ne===void 0&&ke.type==="multicategory")for(var ve=0;vere.width-un?(Wt=re.width-un,bt.attr("d","M"+(un-f)+",0L"+un+","+yn+f+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H"+(un-2*f)+"Z")):bt.attr("d","M0,0L"+f+","+yn+f+"H"+un+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H-"+f+"Z"),He.minX=Wt-un,He.maxX=Wt+un,ke.side==="top"?(He.minY=Ht-(2*S+hn.height),He.maxY=Ht-S):(He.minY=Ht+S,He.maxY=Ht+(2*S+hn.height))}else{var jt,nn,Jt;Te.side==="right"?(jt="start",nn=1,Jt="",Wt=ke._offset+ke._length):(jt="end",nn=-1,Jt="-",Wt=ke._offset),Ht=Te._offset+(Oe.y0+Oe.y1)/2,It.attr("text-anchor",jt),bt.attr("d","M0,0L"+Jt+f+","+f+"V"+(S+hn.height/2)+"h"+Jt+(2*S+hn.width)+"V-"+(S+hn.height/2)+"H"+Jt+f+"V-"+f+"Z"),He.minY=Ht-(S+hn.height/2),He.maxY=Ht+(S+hn.height/2),Te.side==="right"?(He.minX=Wt+f,He.maxX=Wt+f+(2*S+hn.width)):(He.minX=Wt-f-(2*S+hn.width),He.maxX=Wt-f);var rn,fn=hn.height/2,vn=_e-hn.top-fn,Mn="clip"+re._uid+"commonlabel"+Te._id;if(Wt=0?Xe:Ve+rt=0?Ve:ct+rt=0?Mt:Ye+Ie=0?Ye:kt+Ie=0,ft.idealAlign!=="top"&&Wn||!Qn?Wn?(fn+=Mn/2,ft.anchor="start"):ft.anchor="middle":(fn-=Mn/2,ft.anchor="end"),ft.crossPos=fn;else{if(ft.pos=fn,Wn=rn+vn/2+ir<=ze,Qn=rn-vn/2-ir>=0,ft.idealAlign!=="left"&&Wn||!Qn)if(Wn)rn+=vn/2,ft.anchor="start";else{ft.anchor="middle";var $n=ir/2,Gn=rn+$n-ze,dr=rn-$n;Gn>0&&(rn-=Gn),dr<0&&(rn+=-dr)}else rn-=vn/2,ft.anchor="end";ft.crossPos=rn}yn.attr("text-anchor",ft.anchor),jt&&un.attr("text-anchor",ft.anchor),bt.attr("transform",b(rn,fn)+(oe?d(h):""))}),{hoverLabels:ut,commonLabelBoundingBox:He}}function R(Y,W,Q,re,ie,oe){var ce="",pe="";Y.nameOverride!==void 0&&(Y.name=Y.nameOverride),Y.name&&(Y.trace._meta&&(Y.name=T.templateString(Y.name,Y.trace._meta)),ce=H(Y.name,Y.nameLength));var ge=Q.charAt(0),we=ge==="x"?"y":"x";Y.zLabel!==void 0?(Y.xLabel!==void 0&&(pe+="x: "+Y.xLabel+"
"),Y.yLabel!==void 0&&(pe+="y: "+Y.yLabel+"
"),Y.trace.type!=="choropleth"&&Y.trace.type!=="choroplethmapbox"&&(pe+=(pe?"z: ":"")+Y.zLabel)):W&&Y[ge+"Label"]===ie?pe=Y[we+"Label"]||"":Y.xLabel===void 0?Y.yLabel!==void 0&&Y.trace.type!=="scattercarpet"&&(pe=Y.yLabel):pe=Y.yLabel===void 0?Y.xLabel:"("+Y.xLabel+", "+Y.yLabel+")",!Y.text&&Y.text!==0||Array.isArray(Y.text)||(pe+=(pe?"
":"")+Y.text),Y.extraText!==void 0&&(pe+=(pe?"
":"")+Y.extraText),oe&&pe===""&&!Y.hovertemplate&&(ce===""&&oe.remove(),pe=ce);var ye=Y.hovertemplate||!1;if(ye){var me=Y.hovertemplateLabels||Y;Y[ge+"Label"]!==ie&&(me[ge+"other"]=me[ge+"Val"],me[ge+"otherLabel"]=me[ge+"Label"]),pe=(pe=T.hovertemplateString(ye,me,re._d3locale,Y.eventData[0]||{},Y.trace._meta)).replace(C,function(Oe,ke){return ce=H(ke,Y.nameLength),""})}return[pe,ce]}function G(Y,W){var Q=0,re=Y.offset;return W&&(re*=-_,Q=Y.offset*y),{x:Q,y:re}}function O(Y,W,Q,re){var ie=function(ce){return ce*Q},oe=function(ce){return ce*re};Y.each(function(ce){var pe=M.select(this);if(ce.del)return pe.remove();var ge,we,ye,me,Oe=pe.select("text.nums"),ke=ce.anchor,Te=ke==="end"?-1:1,le=(me=(ye=(we={start:1,end:-1,middle:0}[(ge=ce).anchor])*(f+S))+we*(ge.txwidth+S),ge.anchor==="middle"&&(ye-=ge.tx2width/2,me+=ge.txwidth/2+S),{alignShift:we,textShiftX:ye,text2ShiftX:me}),se=G(ce,W),ne=se.x,ve=se.y,Ee=ke==="middle";pe.select("path").attr("d",Ee?"M-"+ie(ce.bx/2+ce.tx2width/2)+","+oe(ve-ce.by/2)+"h"+ie(ce.bx)+"v"+oe(ce.by)+"h-"+ie(ce.bx)+"Z":"M0,0L"+ie(Te*f+ne)+","+oe(f+ve)+"v"+oe(ce.by/2-f)+"h"+ie(Te*ce.bx)+"v-"+oe(ce.by)+"H"+ie(Te*f+ne)+"V"+oe(ve-f)+"Z");var _e=ne+le.textShiftX,ze=ve+ce.ty0-ce.by/2+S,Ne=ce.textAlign||"auto";Ne!=="auto"&&(Ne==="left"&&ke!=="start"?(Oe.attr("text-anchor","start"),_e=Ee?-ce.bx/2-ce.tx2width/2+S:-ce.bx-S):Ne==="right"&&ke!=="end"&&(Oe.attr("text-anchor","end"),_e=Ee?ce.bx/2-ce.tx2width/2-S:ce.bx+S)),Oe.call(t.positionText,ie(_e),oe(ze)),ce.tx2width&&(pe.select("text.name").call(t.positionText,ie(le.text2ShiftX+le.alignShift*S+ne),oe(ve+ce.ty0-ce.by/2+S)),pe.select("rect").call(r.setRect,ie(le.text2ShiftX+(le.alignShift-1)*ce.tx2width/2+ne),oe(ve-ce.by/2-1),ie(ce.tx2width),oe(ce.by+2)))})}function V(Y,W){var Q=Y.index,re=Y.trace||{},ie=Y.cd[0],oe=Y.cd[Q]||{};function ce(Oe){return Oe||k(Oe)&&Oe===0}var pe=Array.isArray(Q)?function(Oe,ke){var Te=T.castOption(ie,Q,Oe);return ce(Te)?Te:T.extractOption({},re,"",ke)}:function(Oe,ke){return T.extractOption(oe,re,Oe,ke)};function ge(Oe,ke,Te){var le=pe(ke,Te);ce(le)&&(Y[Oe]=le)}if(ge("hoverinfo","hi","hoverinfo"),ge("bgcolor","hbg","hoverlabel.bgcolor"),ge("borderColor","hbc","hoverlabel.bordercolor"),ge("fontFamily","htf","hoverlabel.font.family"),ge("fontSize","hts","hoverlabel.font.size"),ge("fontColor","htc","hoverlabel.font.color"),ge("nameLength","hnl","hoverlabel.namelength"),ge("textAlign","hta","hoverlabel.align"),Y.posref=W==="y"||W==="closest"&&re.orientation==="h"?Y.xa._offset+(Y.x0+Y.x1)/2:Y.ya._offset+(Y.y0+Y.y1)/2,Y.x0=T.constrain(Y.x0,0,Y.xa._length),Y.x1=T.constrain(Y.x1,0,Y.xa._length),Y.y0=T.constrain(Y.y0,0,Y.ya._length),Y.y1=T.constrain(Y.y1,0,Y.ya._length),Y.xLabelVal!==void 0&&(Y.xLabel="xLabel"in Y?Y.xLabel:a.hoverLabelText(Y.xa,Y.xLabelVal,re.xhoverformat),Y.xVal=Y.xa.c2d(Y.xLabelVal)),Y.yLabelVal!==void 0&&(Y.yLabel="yLabel"in Y?Y.yLabel:a.hoverLabelText(Y.ya,Y.yLabelVal,re.yhoverformat),Y.yVal=Y.ya.c2d(Y.yLabelVal)),Y.zLabelVal!==void 0&&Y.zLabel===void 0&&(Y.zLabel=String(Y.zLabelVal)),!(isNaN(Y.xerr)||Y.xa.type==="log"&&Y.xerr<=0)){var we=a.tickText(Y.xa,Y.xa.c2l(Y.xerr),"hover").text;Y.xerrneg!==void 0?Y.xLabel+=" +"+we+" / -"+a.tickText(Y.xa,Y.xa.c2l(Y.xerrneg),"hover").text:Y.xLabel+=" \xB1 "+we,W==="x"&&(Y.distance+=1)}if(!(isNaN(Y.yerr)||Y.ya.type==="log"&&Y.yerr<=0)){var ye=a.tickText(Y.ya,Y.ya.c2l(Y.yerr),"hover").text;Y.yerrneg!==void 0?Y.yLabel+=" +"+ye+" / -"+a.tickText(Y.ya,Y.ya.c2l(Y.yerrneg),"hover").text:Y.yLabel+=" \xB1 "+ye,W==="y"&&(Y.distance+=1)}var me=Y.hoverinfo||Y.trace.hoverinfo;return me&&me!=="all"&&((me=Array.isArray(me)?me:me.split("+")).indexOf("x")===-1&&(Y.xLabel=void 0),me.indexOf("y")===-1&&(Y.yLabel=void 0),me.indexOf("z")===-1&&(Y.zLabel=void 0),me.indexOf("text")===-1&&(Y.text=void 0),me.indexOf("name")===-1&&(Y.name=void 0)),Y}function N(Y,W,Q){var re,ie,oe=Q.container,ce=Q.fullLayout,pe=ce._size,ge=Q.event,we=!!W.hLinePoint,ye=!!W.vLinePoint;if(oe.selectAll(".spikeline").remove(),ye||we){var me=n.combine(ce.plot_bgcolor,ce.paper_bgcolor);if(we){var Oe,ke,Te=W.hLinePoint;re=Te&&Te.xa,(ie=Te&&Te.ya).spikesnap==="cursor"?(Oe=ge.pointerX,ke=ge.pointerY):(Oe=re._offset+Te.x,ke=ie._offset+Te.y);var le,se,ne=l.readability(Te.color,me)<1.5?n.contrast(me):Te.color,ve=ie.spikemode,Ee=ie.spikethickness,_e=ie.spikecolor||ne,ze=a.getPxPosition(Y,ie);if(ve.indexOf("toaxis")!==-1||ve.indexOf("across")!==-1){if(ve.indexOf("toaxis")!==-1&&(le=ze,se=Oe),ve.indexOf("across")!==-1){var Ne=ie._counterDomainMin,fe=ie._counterDomainMax;ie.anchor==="free"&&(Ne=Math.min(Ne,ie.position),fe=Math.max(fe,ie.position)),le=pe.l+Ne*pe.w,se=pe.l+fe*pe.w}oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee,stroke:_e,"stroke-dasharray":r.dashStyle(ie.spikedash,Ee)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}ve.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:ze+(ie.side!=="right"?Ee:-Ee),cy:ke,r:Ee,fill:_e}).classed("spikeline",!0)}if(ye){var Me,be,Ce=W.vLinePoint;re=Ce&&Ce.xa,ie=Ce&&Ce.ya,re.spikesnap==="cursor"?(Me=ge.pointerX,be=ge.pointerY):(Me=re._offset+Ce.x,be=ie._offset+Ce.y);var Fe,Re,He=l.readability(Ce.color,me)<1.5?n.contrast(me):Ce.color,Ge=re.spikemode,Ke=re.spikethickness,at=re.spikecolor||He,Qe=a.getPxPosition(Y,re);if(Ge.indexOf("toaxis")!==-1||Ge.indexOf("across")!==-1){if(Ge.indexOf("toaxis")!==-1&&(Fe=Qe,Re=be),Ge.indexOf("across")!==-1){var vt=re._counterDomainMin,xt=re._counterDomainMax;re.anchor==="free"&&(vt=Math.min(vt,re.position),xt=Math.max(xt,re.position)),Fe=pe.t+(1-xt)*pe.h,Re=pe.t+(1-vt)*pe.h}oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke,stroke:at,"stroke-dasharray":r.dashStyle(re.spikedash,Ke)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}Ge.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:Me,cy:Qe-(re.side!=="top"?Ke:-Ke),r:Ke,fill:at}).classed("spikeline",!0)}}}function B(Y,W){return!W||W.vLinePoint!==Y._spikepoints.vLinePoint||W.hLinePoint!==Y._spikepoints.hLinePoint}function H(Y,W){return t.plainText(Y||"",{len:W,allowedTags:["br","sub","sup","b","i","em"]})}function q(Y,W,Q){var re=W[Y+"a"],ie=W[Y+"Val"],oe=W.cd[0];if(re.type==="category"||re.type==="multicategory")ie=re._categoriesMap[ie];else if(re.type==="date"){var ce=W.trace[Y+"periodalignment"];if(ce){var pe=W.cd[W.index],ge=pe[Y+"Start"];ge===void 0&&(ge=pe[Y]);var we=pe[Y+"End"];we===void 0&&(we=pe[Y]);var ye=we-ge;ce==="end"?ie+=ye:ce==="middle"&&(ie+=ye/2)}ie=re.d2c(ie)}return oe&&oe.t&&oe.t.posLetter===re._id&&(Q.boxmode!=="group"&&Q.violinmode!=="group"||(ie+=oe.t.dPos)),ie}function te(Y){return Y.offsetTop+Y.clientTop}function K(Y){return Y.offsetLeft+Y.clientLeft}function J(Y,W){var Q=Y._fullLayout,re=W.getBoundingClientRect(),ie=re.left,oe=re.top,ce=ie+re.width,pe=oe+re.height,ge=T.apply3DTransform(Q._invTransform)(ie,oe),we=T.apply3DTransform(Q._invTransform)(ce,pe),ye=ge[0],me=ge[1],Oe=we[0],ke=we[1];return{x:ye,y:me,width:Oe-ye,height:ke-me,top:Math.min(me,ke),left:Math.min(ye,Oe),right:Math.max(ye,Oe),bottom:Math.max(me,ke)}}},38048:function(ee,z,e){var M=e(71828),k=e(7901),l=e(23469).isUnifiedHover;ee.exports=function(T,b,d,s){s=s||{};var t=b.legend;function i(r){s.font[r]||(s.font[r]=t?b.legend.font[r]:b.font[r])}b&&l(b.hovermode)&&(s.font||(s.font={}),i("size"),i("family"),i("color"),t?(s.bgcolor||(s.bgcolor=k.combine(b.legend.bgcolor,b.paper_bgcolor)),s.bordercolor||(s.bordercolor=b.legend.bordercolor)):s.bgcolor||(s.bgcolor=b.paper_bgcolor)),d("hoverlabel.bgcolor",s.bgcolor),d("hoverlabel.bordercolor",s.bordercolor),d("hoverlabel.namelength",s.namelength),M.coerceFont(d,"hoverlabel.font",s.font),d("hoverlabel.align",s.align)}},98212:function(ee,z,e){var M=e(71828),k=e(528);ee.exports=function(l,T){function b(d,s){return T[d]!==void 0?T[d]:M.coerce(l,T,k,d,s)}return b("clickmode"),b("hovermode")}},30211:function(ee,z,e){var M=e(39898),k=e(71828),l=e(28569),T=e(23469),b=e(528),d=e(88335);ee.exports={moduleType:"component",name:"fx",constants:e(26675),schema:{layout:b},attributes:e(77914),layoutAttributes:b,supplyLayoutGlobalDefaults:e(22774),supplyDefaults:e(54268),supplyLayoutDefaults:e(34938),calc:e(30732),getDistanceFunction:T.getDistanceFunction,getClosest:T.getClosest,inbox:T.inbox,quadrature:T.quadrature,appendArrayPointValue:T.appendArrayPointValue,castHoverOption:function(s,t,i){return k.castOption(s,t,"hoverlabel."+i)},castHoverinfo:function(s,t,i){return k.castOption(s,i,"hoverinfo",function(r){return k.coerceHoverinfo({hoverinfo:r},{_module:s._module},t)})},hover:d.hover,unhover:l.unhover,loneHover:d.loneHover,loneUnhover:function(s){var t=k.isD3Selection(s)?s:M.select(s);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e(75914)}},528:function(ee,z,e){var M=e(26675),k=e(41940),l=k({editType:"none"});l.family.dflt=M.HOVERFONT,l.size.dflt=M.HOVERFONTSIZE,ee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:l,grouptitlefont:k({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(ee,z,e){var M=e(71828),k=e(528),l=e(98212),T=e(38048);ee.exports=function(b,d){function s(n,o){return M.coerce(b,d,k,n,o)}l(b,d)&&(s("hoverdistance"),s("spikedistance")),s("dragmode")==="select"&&s("selectdirection");var t=d._has("mapbox"),i=d._has("geo"),r=d._basePlotModules.length;d.dragmode==="zoom"&&((t||i)&&r===1||t&&i&&r===2)&&(d.dragmode="pan"),T(b,d,s),M.coerceFont(s,"hoverlabel.grouptitlefont",d.hoverlabel.font)}},22774:function(ee,z,e){var M=e(71828),k=e(38048),l=e(528);ee.exports=function(T,b){k(T,b,function(d,s){return M.coerce(T,b,l,d,s)})}},83312:function(ee,z,e){var M=e(71828),k=e(30587).counter,l=e(27670).Y,T=e(85555).idRegex,b=e(44467),d={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[k("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:l({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function s(r,n,o){var a=n[o+"axes"],u=Object.keys((r._splomAxes||{})[o]||{});return Array.isArray(a)?a:u.length?u:void 0}function t(r,n,o,a,u,p){var c=n(r+"gap",o),x=n("domain."+r);n(r+"side",a);for(var g=new Array(u),h=x[0],m=(x[1]-h)/(u-c),v=m*(1-c),y=0;y1){x||g||h||C("pattern")==="independent"&&(x=!0),v._hasSubplotGrid=x;var f,S,w=C("roworder")==="top to bottom",E=x?.2:.1,L=x?.3:.1;m&&n._splomGridDflt&&(f=n._splomGridDflt.xside,S=n._splomGridDflt.yside),v._domains={x:t("x",C,E,f,_),y:t("y",C,L,S,y,w)}}else delete n.grid}function C(P,R){return M.coerce(o,v,d,P,R)}},contentDefaults:function(r,n){var o=n.grid;if(o&&o._domains){var a,u,p,c,x,g,h,m=r.grid||{},v=n._subplots,y=o._hasSubplotGrid,_=o.rows,f=o.columns,S=o.pattern==="independent",w=o._axisMap={};if(y){var E=m.subplots||[];g=o.subplots=new Array(_);var L=1;for(a=0;a<_;a++){var C=g[a]=new Array(f),P=E[a]||[];for(u=0;u(i==="legend"?1:0));if(L===!1&&(n[i]=void 0),(L!==!1||a.uirevision)&&(p("uirevision",n.uirevision),L!==!1)){p("borderwidth");var C,P,R,G=p("orientation")==="h",O=p("yref")==="paper",V=p("xref")==="paper",N="left";if(G?(C=0,M.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(P=1.1,R="bottom"):(P=1,R="top"):O?(P=-.1,R="top"):(P=0,R="bottom")):(P=1,R="auto",V?C=1.02:(C=1,N="right")),k.coerce(a,u,{x:{valType:"number",editType:"legend",min:V?-2:0,max:V?3:1,dflt:C}},"x"),k.coerce(a,u,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:P}},"y"),p("traceorder",_),s.isGrouped(n[i])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",N),p("yanchor",R),p("valign"),k.noneOrAll(a,u,["x","y"]),p("title.text")){p("title.side",G?"left":"top");var B=k.extendFlat({},c,{size:k.bigFont(c.size)});k.coerceFont(p,"title.font",B)}}}}ee.exports=function(i,r,n){var o,a=n.slice(),u=r.shapes;if(u)for(o=0;o1)}var re=B.hiddenlabels||[];if(!(q||B.showlegend&&te.length))return V.selectAll("."+H).remove(),B._topdefs.select("#"+O).remove(),l.autoMargin(R,H);var ie=k.ensureSingle(V,"g",H,function(ke){q||ke.attr("pointer-events","all")}),oe=k.ensureSingleById(B._topdefs,"clipPath",O,function(ke){ke.append("rect")}),ce=k.ensureSingle(ie,"rect","bg",function(ke){ke.attr("shape-rendering","crispEdges")});ce.call(t.stroke,N.bordercolor).call(t.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px");var pe=k.ensureSingle(ie,"g","scrollbox"),ge=N.title;if(N._titleWidth=0,N._titleHeight=0,ge.text){var we=k.ensureSingle(pe,"text",H+"titletext");we.attr("text-anchor","start").call(s.font,ge.font).text(ge.text),E(we,pe,R,N,h)}else pe.selectAll("."+H+"titletext").remove();var ye=k.ensureSingle(ie,"rect","scrollbar",function(ke){ke.attr(n.scrollBarEnterAttrs).call(t.fill,n.scrollBarColor)}),me=pe.selectAll("g.groups").data(te);me.enter().append("g").attr("class","groups"),me.exit().remove();var Oe=me.selectAll("g.traces").data(k.identity);Oe.enter().append("g").attr("class","traces"),Oe.exit().remove(),Oe.style("opacity",function(ke){var Te=ke[0].trace;return T.traceIs(Te,"pie-like")?re.indexOf(ke[0].label)!==-1?.5:1:Te.visible==="legendonly"?.5:1}).each(function(){M.select(this).call(f,R,N)}).call(x,R,N).each(function(){q||M.select(this).call(w,R,H)}),k.syncOrAsync([l.previousPromises,function(){return function(ke,Te,le,se){var ne=ke._fullLayout,ve=P(se);se||(se=ne[ve]);var Ee=ne._size,_e=g.isVertical(se),ze=g.isGrouped(se),Ne=se.entrywidthmode==="fraction",fe=se.borderwidth,Me=2*fe,be=n.itemGap,Ce=se.itemwidth+2*be,Fe=2*(fe+be),Re=C(se),He=se.y<0||se.y===0&&Re==="top",Ge=se.y>1||se.y===1&&Re==="bottom",Ke=se.tracegroupgap,at={};se._maxHeight=Math.max(He||Ge?ne.height/2:Ee.h,30);var Qe=0;se._width=0,se._height=0;var vt=function(ht){var dt=0,ct=0,kt=ht.title.side;return kt&&(kt.indexOf("left")!==-1&&(dt=ht._titleWidth),kt.indexOf("top")!==-1&&(ct=ht._titleHeight)),[dt,ct]}(se);if(_e)le.each(function(ht){var dt=ht[0].height;s.setTranslate(this,fe+vt[0],fe+vt[1]+se._height+dt/2+be),se._height+=dt,se._width=Math.max(se._width,ht[0].width)}),Qe=Ce+se._width,se._width+=be+Ce+Me,se._height+=Fe,ze&&(Te.each(function(ht,dt){s.setTranslate(this,0,dt*se.tracegroupgap)}),se._height+=(se._lgroupsLength-1)*se.tracegroupgap);else{var xt=L(se),st=se.x<0||se.x===0&&xt==="right",ot=se.x>1||se.x===1&&xt==="left",mt=Ge||He,Tt=ne.width/2;se._maxWidth=Math.max(st?mt&&xt==="left"?Ee.l+Ee.w:Tt:ot?mt&&xt==="right"?Ee.r+Ee.w:Tt:Ee.w,2*Ce);var wt=0,Pt=0;le.each(function(ht){var dt=y(ht,se,Ce);wt=Math.max(wt,dt),Pt+=dt}),Qe=null;var Mt=0;if(ze){var Ye=0,Xe=0,Ve=0;Te.each(function(){var ht=0,dt=0;M.select(this).selectAll("g.traces").each(function(kt){var ut=y(kt,se,Ce),ft=kt[0].height;s.setTranslate(this,vt[0],vt[1]+fe+be+ft/2+dt),dt+=ft,ht=Math.max(ht,ut),at[kt[0].trace.legendgroup]=ht});var ct=ht+be;Xe>0&&ct+fe+Xe>se._maxWidth?(Mt=Math.max(Mt,Xe),Xe=0,Ve+=Ye+Ke,Ye=dt):Ye=Math.max(Ye,dt),s.setTranslate(this,Xe,Ve),Xe+=ct}),se._width=Math.max(Mt,Xe)+fe,se._height=Ve+Ye+Fe}else{var We=le.size(),nt=Pt+Me+(We-1)*be=se._maxWidth&&(Mt=Math.max(Mt,et),Ie=0,De+=rt,se._height+=rt,rt=0),s.setTranslate(this,vt[0]+fe+Ie,vt[1]+fe+De+dt/2+be),et=Ie+ct+be,Ie+=kt,rt=Math.max(rt,dt)}),nt?(se._width=Ie+Me,se._height=rt+Fe):(se._width=Math.max(Mt,et)+Me,se._height+=rt+Fe)}}se._width=Math.ceil(Math.max(se._width+vt[0],se._titleWidth+2*(fe+n.titlePad))),se._height=Math.ceil(Math.max(se._height+vt[1],se._titleHeight+2*(fe+n.itemGap))),se._effHeight=Math.min(se._height,se._maxHeight);var tt=ke._context.edits,gt=tt.legendText||tt.legendPosition;le.each(function(ht){var dt=M.select(this).select("."+ve+"toggle"),ct=ht[0].height,kt=ht[0].trace.legendgroup,ut=y(ht,se,Ce);ze&&kt!==""&&(ut=at[kt]);var ft=gt?Ce:Qe||ut;_e||Ne||(ft+=be/2),s.setRect(dt,0,-ct/2,ft,ct)})}(R,me,Oe,N)},function(){var ke,Te,le,se,ne=B._size,ve=N.borderwidth,Ee=N.xref==="paper",_e=N.yref==="paper";if(!q){var ze,Ne;ze=Ee?ne.l+ne.w*N.x-u[L(N)]*N._width:B.width*N.x-u[L(N)]*N._width,Ne=_e?ne.t+ne.h*(1-N.y)-u[C(N)]*N._effHeight:B.height*(1-N.y)-u[C(N)]*N._effHeight;var fe=function(mt,Tt,wt,Pt){var Mt=mt._fullLayout,Ye=Mt[Tt],Xe=L(Ye),Ve=C(Ye),We=Ye.xref==="paper",nt=Ye.yref==="paper";mt._fullLayout._reservedMargin[Tt]={};var rt=Ye.y<.5?"b":"t",Ie=Ye.x<.5?"l":"r",De={r:Mt.width-wt,l:wt+Ye._width,b:Mt.height-Pt,t:Pt+Ye._effHeight};if(We&&nt)return l.autoMargin(mt,Tt,{x:Ye.x,y:Ye.y,l:Ye._width*u[Xe],r:Ye._width*p[Xe],b:Ye._effHeight*p[Ve],t:Ye._effHeight*u[Ve]});We?mt._fullLayout._reservedMargin[Tt][rt]=De[rt]:nt||Ye.orientation==="v"?mt._fullLayout._reservedMargin[Tt][Ie]=De[Ie]:mt._fullLayout._reservedMargin[Tt][rt]=De[rt]}(R,H,ze,Ne);if(fe)return;if(B.margin.autoexpand){var Me=ze,be=Ne;ze=Ee?k.constrain(ze,0,B.width-N._width):Me,Ne=_e?k.constrain(Ne,0,B.height-N._effHeight):be,ze!==Me&&k.log("Constrain "+H+".x to make legend fit inside graph"),Ne!==be&&k.log("Constrain "+H+".y to make legend fit inside graph")}s.setTranslate(ie,ze,Ne)}if(ye.on(".drag",null),ie.on("wheel",null),q||N._height<=N._maxHeight||R._context.staticPlot){var Ce=N._effHeight;q&&(Ce=N._height),ce.attr({width:N._width-ve,height:Ce-ve,x:ve/2,y:ve/2}),s.setTranslate(pe,0,0),oe.select("rect").attr({width:N._width-2*ve,height:Ce-2*ve,x:ve,y:ve}),s.setClipUrl(pe,O,R),s.setRect(ye,0,0,0,0),delete N._scrollY}else{var Fe,Re,He,Ge=Math.max(n.scrollBarMinHeight,N._effHeight*N._effHeight/N._height),Ke=N._effHeight-Ge-2*n.scrollBarMargin,at=N._height-N._effHeight,Qe=Ke/at,vt=Math.min(N._scrollY||0,at);ce.attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-ve,x:ve/2,y:ve/2}),oe.select("rect").attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-2*ve,x:ve,y:ve+vt}),s.setClipUrl(pe,O,R),ot(vt,Ge,Qe),ie.on("wheel",function(){ot(vt=k.constrain(N._scrollY+M.event.deltaY/Ke*at,0,at),Ge,Qe),vt!==0&&vt!==at&&M.event.preventDefault()});var xt=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;Fe=mt.type==="touchstart"?mt.changedTouches[0].clientY:mt.clientY,He=vt}).on("drag",function(){var mt=M.event.sourceEvent;mt.buttons===2||mt.ctrlKey||(Re=mt.type==="touchmove"?mt.changedTouches[0].clientY:mt.clientY,vt=function(Tt,wt,Pt){var Mt=(Pt-wt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});ye.call(xt);var st=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;mt.type==="touchstart"&&(Fe=mt.changedTouches[0].clientY,He=vt)}).on("drag",function(){var mt=M.event.sourceEvent;mt.type==="touchmove"&&(Re=mt.changedTouches[0].clientY,vt=function(Tt,wt,Pt){var Mt=(wt-Pt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});pe.call(st)}function ot(mt,Tt,wt){N._scrollY=R._fullLayout[H]._scrollY=mt,s.setTranslate(pe,0,-mt),s.setRect(ye,N._width,n.scrollBarMargin+mt*wt,n.scrollBarWidth,Tt),oe.select("rect").attr("y",ve+mt)}R._context.edits.legendPosition&&(ie.classed("cursor-move",!0),d.init({element:ie.node(),gd:R,prepFn:function(){var mt=s.getTranslate(ie);le=mt.x,se=mt.y},moveFn:function(mt,Tt){var wt=le+mt,Pt=se+Tt;s.setTranslate(ie,wt,Pt),ke=d.align(wt,N._width,ne.l,ne.l+ne.w,N.xanchor),Te=d.align(Pt+N._height,-N._height,ne.t+ne.h,ne.t,N.yanchor)},doneFn:function(){if(ke!==void 0&&Te!==void 0){var mt={};mt[H+".x"]=ke,mt[H+".y"]=Te,T.call("_guiRelayout",R,mt)}},clickFn:function(mt,Tt){var wt=V.selectAll("g.traces").filter(function(){var Pt=this.getBoundingClientRect();return Tt.clientX>=Pt.left&&Tt.clientX<=Pt.right&&Tt.clientY>=Pt.top&&Tt.clientY<=Pt.bottom});wt.size()>0&&_(R,ie,wt,mt,Tt)}}))}],R)}}function y(R,G,O){var V=R[0],N=V.width,B=G.entrywidthmode,H=V.trace.legendwidth||G.entrywidth;return B==="fraction"?G._maxWidth*H:O+(H||N)}function _(R,G,O,V,N){var B=O.data()[0][0].trace,H={event:N,node:O.node(),curveNumber:B.index,expandedIndex:B._expandedIndex,data:R.data,layout:R.layout,frames:R._transitionData._frames,config:R._context,fullData:R._fullData,fullLayout:R._fullLayout};B._group&&(H.group=B._group),T.traceIs(B,"pie-like")&&(H.label=O.datum()[0].label),b.triggerHandler(R,"plotly_legendclick",H)!==!1&&(V===1?G._clickTimeout=setTimeout(function(){R._fullLayout&&r(O,R,V)},R._context.doubleClickDelay):V===2&&(G._clickTimeout&&clearTimeout(G._clickTimeout),R._legendMouseDownTime=0,b.triggerHandler(R,"plotly_legenddoubleclick",H)!==!1&&r(O,R,V)))}function f(R,G,O){var V,N,B=P(O),H=R.data()[0][0],q=H.trace,te=T.traceIs(q,"pie-like"),K=!O._inHover&&G._context.edits.legendText&&!te,J=O._maxNameLength;H.groupTitle?(V=H.groupTitle.text,N=H.groupTitle.font):(N=O.font,O.entries?V=H.text:(V=te?H.label:q.name,q._meta&&(V=k.templateString(V,q._meta))));var Y=k.ensureSingle(R,"text",B+"text");Y.attr("text-anchor","start").call(s.font,N).text(K?S(V,J):V);var W=O.itemwidth+2*n.itemGap;i.positionText(Y,W,0),K?Y.call(i.makeEditable,{gd:G,text:V}).call(E,R,G,O).on("edit",function(Q){this.text(S(Q,J)).call(E,R,G,O);var re=H.trace._fullInput||{},ie={};if(T.hasTransform(re,"groupby")){var oe=T.getTransformIndices(re,"groupby"),ce=oe[oe.length-1],pe=k.keyedContainer(re,"transforms["+ce+"].styles","target","value.name");pe.set(H.trace._group,Q),ie=pe.constructUpdate()}else ie.name=Q;return re._isShape?T.call("_guiRelayout",G,"shapes["+q.index+"].name",ie.name):T.call("_guiRestyle",G,ie,q.index)}):E(Y,R,G,O)}function S(R,G){var O=Math.max(4,G);if(R&&R.trim().length>=O/2)return R;for(var V=O-(R=R||"").length;V>0;V--)R+=" ";return R}function w(R,G,O){var V,N=G._context.doubleClickDelay,B=1,H=k.ensureSingle(R,"rect",O+"toggle",function(q){G._context.staticPlot||q.style("cursor","pointer").attr("pointer-events","all"),q.call(t.fill,"rgba(0,0,0,0)")});G._context.staticPlot||(H.on("mousedown",function(){(V=new Date().getTime())-G._legendMouseDownTimeN&&(B=Math.max(B-1,1)),_(G,q,R,B,M.event)}}))}function E(R,G,O,V,N){V._inHover&&R.attr("data-notex",!0),i.convertToTspans(R,O,function(){(function(B,H,q,te){var K=B.data()[0][0];if(q._inHover||!K||K.trace.showlegend){var J=B.select("g[class*=math-group]"),Y=J.node(),W=P(q);q||(q=H._fullLayout[W]);var Q,re,ie=q.borderwidth,oe=(te===h?q.title.font:K.groupTitle?K.groupTitle.font:q.font).size*a;if(Y){var ce=s.bBox(Y);Q=ce.height,re=ce.width,te===h?s.setTranslate(J,ie,ie+.75*Q):s.setTranslate(J,0,.25*Q)}else{var pe="."+W+(te===h?"title":"")+"text",ge=B.select(pe),we=i.lineCount(ge),ye=ge.node();if(Q=oe*we,re=ye?s.bBox(ye).width:0,te===h){var me=0;q.title.side==="left"?re+=2*n.itemGap:q.title.side==="top center"?q._width&&(me=.5*(q._width-2*ie-2*n.titlePad-re)):q.title.side==="top right"&&q._width&&(me=q._width-2*ie-2*n.titlePad-re),i.positionText(ge,ie+n.titlePad+me,ie+oe)}else{var Oe=2*n.itemGap+q.itemwidth;K.groupTitle&&(Oe=n.itemGap,re-=q.itemwidth),i.positionText(ge,Oe,-oe*((we-1)/2-.3))}}te===h?(q._titleWidth=re,q._titleHeight=Q):(K.lineHeight=oe,K.height=Math.max(Q,16)+3,K.width=re)}else B.remove()})(G,O,V,N)})}function L(R){return k.isRightAnchor(R)?"right":k.isCenterAnchor(R)?"center":"left"}function C(R){return k.isBottomAnchor(R)?"bottom":k.isMiddleAnchor(R)?"middle":"top"}function P(R){return R._id||"legend"}ee.exports=function(R,G){if(G)v(R,G);else{var O=R._fullLayout,V=O._legends;O._infolayer.selectAll('[class^="legend"]').each(function(){var H=M.select(this),q=H.attr("class").split(" ")[0];q.match(m)&&V.indexOf(q)===-1&&H.remove()});for(var N=0;NL&&(E=L)}S[d][0]._groupMinRank=E,S[d][0]._preGroupSort=d}var C=function(V,N){return V.trace.legendrank-N.trace.legendrank||V._preSort-N._preSort};for(S.forEach(function(V,N){V[0]._preGroupSort=N}),S.sort(function(V,N){return V[0]._groupMinRank-N[0]._groupMinRank||V[0]._preGroupSort-N[0]._preGroupSort}),d=0;dx?x:p}ee.exports=function(p,c,x){var g=c._fullLayout;x||(x=g.legend);var h=x.itemsizing==="constant",m=x.itemwidth,v=(m+2*n.itemGap)/2,y=T(v,0),_=function(w,E,L,C){var P;if(w+1)P=w;else{if(!(E&&E.width>0))return 0;P=E.width}return h?C:Math.min(P,L)};function f(w,E,L){var C=w[0].trace,P=C.marker||{},R=P.line||{},G=L?C.visible&&C.type===L:k.traceIs(C,"bar"),O=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(G?[w]:[]);O.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),O.exit().remove(),O.each(function(V){var N=M.select(this),B=V[0],H=_(B.mlw,P.line,5,2);N.style("stroke-width",H+"px");var q=B.mcc;if(!x._inHover&&"mc"in B){var te=s(P),K=te.mid;K===void 0&&(K=(te.max+te.min)/2),q=b.tryColorscale(P,"")(K)}var J=q||B.mc||P.color,Y=P.pattern,W=Y&&b.getPatternAttr(Y.shape,0,"");if(W){var Q=b.getPatternAttr(Y.bgcolor,0,null),re=b.getPatternAttr(Y.fgcolor,0,null),ie=Y.fgopacity,oe=u(Y.size,8,10),ce=u(Y.solidity,.5,1),pe="legend-"+C.uid;N.call(b.pattern,"legend",c,pe,W,oe,ce,q,Y.fillmode,Q,re,ie)}else N.call(d.fill,J);H&&d.stroke(N,B.mlc||R.color)})}function S(w,E,L){var C=w[0],P=C.trace,R=L?P.visible&&P.type===L:k.traceIs(P,L),G=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(R?[w]:[]);if(G.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),G.exit().remove(),G.size()){var O=P.marker||{},V=_(r(O.line.width,C.pts),O.line,5,2),N="pieLike",B=l.minExtend(P,{marker:{line:{width:V}}},N),H=l.minExtend(C,{trace:B},N);i(G,H,B,c)}}p.each(function(w){var E=M.select(this),L=l.ensureSingle(E,"g","layers");L.style("opacity",w[0].trace.opacity);var C=x.valign,P=w[0].lineHeight,R=w[0].height;if(C!=="middle"&&P&&R){var G={top:1,bottom:-1}[C]*(.5*(P-R+3));L.attr("transform",T(0,G))}else L.attr("transform",null);L.selectAll("g.legendfill").data([w]).enter().append("g").classed("legendfill",!0),L.selectAll("g.legendlines").data([w]).enter().append("g").classed("legendlines",!0);var O=L.selectAll("g.legendsymbols").data([w]);O.enter().append("g").classed("legendsymbols",!0),O.selectAll("g.legendpoints").data([w]).enter().append("g").classed("legendpoints",!0)}).each(function(w){var E,L=w[0].trace,C=[];if(L.visible)switch(L.type){case"histogram2d":case"heatmap":C=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":C=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":C=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":C=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":C=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":C=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1}var P=M.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(C);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",y).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,G){var O,V=M.select(this),N=s(L),B=N.colorscale,H=N.reversescale;if(B){if(!E){var q=B.length;O=G===0?B[H?q-1:0][1]:G===1?B[H?0:q-1][1]:B[Math.floor((q-1)/2)][1]}}else{var te=L.vertexcolor||L.facecolor||L.color;O=l.isArrayOrTypedArray(te)?te[G]||te[0]:te}V.attr("d",R[0]),O?V.call(d.fill,O):V.call(function(K){if(K.size()){var J="legendfill-"+L.uid;b.gradient(K,c,J,o(H,E==="radial"),B,"fill")}})})}).each(function(w){var E=w[0].trace,L=E.type==="waterfall";if(w[0]._distinct&&L){var C=w[0].trace[w[0].dir].marker;return w[0].mc=C.color,w[0].mlw=C.line.width,w[0].mlc=C.line.color,f(w,this,"waterfall")}var P=[];E.visible&&L&&(P=w[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=M.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",y).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(G){var O=M.select(this),V=E[G[0]].marker,N=_(void 0,V.line,5,2);O.attr("d",G[1]).style("stroke-width",N+"px").call(d.fill,V.color),N&&O.call(d.stroke,V.line.color)})}).each(function(w){f(w,this,"funnel")}).each(function(w){f(w,this)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&k.traceIs(E,"box-violin")?[w]:[]);L.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),L.exit().remove(),L.each(function(){var C=M.select(this);if(E.boxpoints!=="all"&&E.points!=="all"||d.opacity(E.fillcolor)!==0||d.opacity((E.line||{}).color)!==0){var P=_(void 0,E.line,5,2);C.style("stroke-width",P+"px").call(d.fill,E.fillcolor),P&&d.stroke(C,E.line.color)}else{var R=l.minExtend(E,{marker:{size:h?12:l.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});L.call(b.pointStyle,R,c)}})}).each(function(w){S(w,this,"funnelarea")}).each(function(w){S(w,this,"pie")}).each(function(w){var E,L,C=a(w),P=C.showFill,R=C.showLine,G=C.showGradientLine,O=C.showGradientFill,V=C.anyFill,N=C.anyLine,B=w[0],H=B.trace,q=s(H),te=q.colorscale,K=q.reversescale,J=t.hasMarkers(H)||!V?"M5,0":N?"M5,-2":"M5,-3",Y=M.select(this),W=Y.select(".legendfill").selectAll("path").data(P||O?[w]:[]);if(W.enter().append("path").classed("js-fill",!0),W.exit().remove(),W.attr("d",J+"h"+m+"v6h-"+m+"z").call(function(ie){if(ie.size())if(P)b.fillGroupStyle(ie,c);else{var oe="legendfill-"+H.uid;b.gradient(ie,c,oe,o(K),te,"fill")}}),R||G){var Q=_(void 0,H.line,10,5);L=l.minExtend(H,{line:{width:Q}}),E=[l.minExtend(B,{trace:L})]}var re=Y.select(".legendlines").selectAll("path").data(R||G?[E]:[]);re.enter().append("path").classed("js-line",!0),re.exit().remove(),re.attr("d",J+(G?"l"+m+",0.0001":"h"+m)).call(R?b.lineGroupStyle:function(ie){if(ie.size()){var oe="legendline-"+H.uid;b.lineGroupStyle(ie),b.gradient(ie,c,oe,o(K),te,"stroke")}})}).each(function(w){var E,L,C=a(w),P=C.anyFill,R=C.anyLine,G=C.showLine,O=C.showMarker,V=w[0],N=V.trace,B=!O&&!R&&!P&&t.hasText(N);function H(re,ie,oe,ce){var pe=l.nestedProperty(N,re).get(),ge=l.isArrayOrTypedArray(pe)&&ie?ie(pe):pe;if(h&&ge&&ce!==void 0&&(ge=ce),oe){if(geoe[1])return oe[1]}return ge}function q(re){return V._distinct&&V.index&&re[V.index]?re[V.index]:re[0]}if(O||B||G){var te={},K={};if(O){te.mc=H("marker.color",q),te.mx=H("marker.symbol",q),te.mo=H("marker.opacity",l.mean,[.2,1]),te.mlc=H("marker.line.color",q),te.mlw=H("marker.line.width",l.mean,[0,5],2),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var J=H("marker.size",l.mean,[2,16],12);te.ms=J,K.marker.size=J}G&&(K.line={width:H("line.width",q,[0,10],5)}),B&&(te.tx="Aa",te.tp=H("textposition",q),te.ts=10,te.tc=H("textfont.color",q),te.tf=H("textfont.family",q)),E=[l.minExtend(V,te)],(L=l.minExtend(N,K)).selectedpoints=null,L.texttemplate=null}var Y=M.select(this).select("g.legendpoints"),W=Y.selectAll("path.scatterpts").data(O?E:[]);W.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",y),W.exit().remove(),W.call(b.pointStyle,L,c),O&&(E[0].mrc=3);var Q=Y.selectAll("g.pointtext").data(B?E:[]);Q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",y),Q.exit().remove(),Q.selectAll("text").call(b.textPointStyle,L,c)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[w,w]:[]);L.enter().append("path").classed("legendcandle",!0).attr("d",function(C,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("stroke-width",O+"px").call(d.fill,G.fillcolor),O&&d.stroke(R,G.line.color)})}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[w,w]:[]);L.enter().append("path").classed("legendohlc",!0).attr("d",function(C,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("fill","none").call(b.dashLine,G.line.dash,O),O&&d.stroke(R,G.line.color)})})}},42068:function(ee,z,e){e(93348),ee.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(ee,z,e){var M=e(73972),k=e(74875),l=e(41675),T=e(24255),b=e(34031).eraseActiveShape,d=e(71828),s=d._,t=ee.exports={};function i(g,h){var m,v,y=h.currentTarget,_=y.getAttribute("data-attr"),f=y.getAttribute("data-val")||!0,S=g._fullLayout,w={},E=l.list(g,null,!0),L=S._cartesianSpikesEnabled;if(_==="zoom"){var C,P=f==="in"?.5:2,R=(1+P)/2,G=(1-P)/2;for(v=0;v1?(J=["toggleHover"],Y=["resetViews"]):w?(K=["zoomInGeo","zoomOutGeo"],J=["hoverClosestGeo"],Y=["resetGeo"]):S?(J=["hoverClosest3d"],Y=["resetCameraDefault3d","resetCameraLastSave3d"]):R?(K=["zoomInMapbox","zoomOutMapbox"],J=["toggleHover"],Y=["resetViewMapbox"]):C?J=["hoverClosestGl2d"]:E?J=["hoverClosestPie"]:V?(J=["hoverClosestCartesian","hoverCompareCartesian"],Y=["resetViewSankey"]):J=["toggleHover"],f&&(J=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(pe){for(var ge=0;ge0)){var c=function(g,h,m){for(var v=m.filter(function(S){return h[S].anchor===g._id}),y=0,_=0;_=ye.max)ge=ie[we+1];else if(pe=ye.pmax)ge=ie[we+1];else if(pewe._length||_e+Re<0)return;be=Ee+Re,Ce=_e+Re;break;case Oe:if(Fe="col-resize",Ee+Re>we._length)return;be=Ee+Re,Ce=_e;break;case ke:if(Fe="col-resize",_e+Re<0)return;be=Ee,Ce=_e+Re;break;default:Fe="ew-resize",be=ve,Ce=ve+Re}if(Ce=0;C--){var P=h.append("path").attr(v).style("opacity",C?.1:y).call(T.stroke,f).call(T.fill,_).call(b.dashLine,C?"solid":w,C?4+S:S);if(o(P,u,x),E){var R=d(u.layout,"selections",x);P.style({cursor:"move"});var G={element:P.node(),plotinfo:g,gd:u,editHelpers:R,isActiveSelection:!0},O=M(m,u);k(O,P,G)}else P.style("pointer-events",C?"all":"none");L[C]=P}var V=L[0];L[1].node().addEventListener("click",function(){return function(N,B){if(r(N)){var H=+B.node().getAttribute("data-index");if(H>=0){if(H===N._fullLayout._activeSelectionIndex)return void a(N);N._fullLayout._activeSelectionIndex=H,N._fullLayout._deactivateSelection=a,i(N)}}}(u,V)})}(u._fullLayout._selectionLayer)}function o(u,p,c){var x=c.xref+c.yref;b.setClipUrl(u,"clip"+p._fullLayout._uid+x,p)}function a(u){r(u)&&u._fullLayout._activeSelectionIndex>=0&&(l(u),delete u._fullLayout._activeSelectionIndex,i(u))}ee.exports={draw:i,drawOne:n,activateLastSelection:function(u){if(r(u)){var p=u._fullLayout.selections.length-1;u._fullLayout._activeSelectionIndex=p,u._fullLayout._deactivateSelection=a,i(u)}}}},53777:function(ee,z,e){var M=e(79952).P,k=e(1426).extendFlat;ee.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:k({},M,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(ee){ee.exports=function(z,e,M){M("newselection.mode"),M("newselection.line.width")&&(M("newselection.line.color"),M("newselection.line.dash")),M("activeselection.fillcolor"),M("activeselection.opacity")}},35855:function(ee,z,e){var M=e(64505).selectMode,k=e(51873).clearOutline,l=e(60165),T=l.readPaths,b=l.writePaths,d=l.fixDatesForPaths;ee.exports=function(s,t){if(s.length){var i=s[0][0];if(i){var r=i.getAttribute("d"),n=t.gd,o=n._fullLayout.newselection,a=t.plotinfo,u=a.xaxis,p=a.yaxis,c=t.isActiveSelection,x=t.dragmode,g=(n.layout||{}).selections||[];if(!M(x)&&c!==void 0){var h=n._fullLayout._activeSelectionIndex;if(h-1,Pt=[];if(function(We){return We&&Array.isArray(We)&&We[0].hoverOnBox!==!0}(Tt)){Q(fe,Me,Re);var Mt=function(We,nt){var rt,Ie,De=We[0],et=-1,tt=[];for(Ie=0;Ie0?function(We,nt){var rt,Ie,De,et=[];for(De=0;De0&&et.push(rt);if(et.length===1&&et[0]===nt.searchInfo&&(Ie=nt.searchInfo.cd[0].trace).selectedpoints.length===nt.pointNumbers.length){for(De=0;De1||(Ie+=nt.selectedpoints.length)>1))return!1;return Ie===1}(Ge)&&(xt=pe(Mt))){for(He&&He.remove(),mt=0;mt=0})(Fe)&&Fe._fullLayout._deactivateShape(Fe),function(vt){return vt._fullLayout._activeSelectionIndex>=0}(Fe)&&Fe._fullLayout._deactivateSelection(Fe);var Re=Fe._fullLayout._zoomlayer,He=n(be),Ge=a(be);if(He||Ge){var Ke,at,Qe=Re.selectAll(".select-outline-"+Ce.id);Qe&&Fe._fullLayout._outlining&&(He&&(Ke=v(Qe,fe)),Ke&&l.call("_guiRelayout",Fe,{shapes:Ke}),Ge&&!te(fe)&&(at=y(Qe,fe)),at&&(Fe._fullLayout._noEmitSelectedAtStart=!0,l.call("_guiRelayout",Fe,{selections:at}).then(function(){Me&&_(Fe)})),Fe._fullLayout._outlining=!1)}Ce.selection={},Ce.selection.selectionDefs=fe.selectionDefs=[],Ce.selection.mergedPolygons=fe.mergedPolygons=[]}function ie(fe){return fe._id}function oe(fe,Me,be,Ce){if(!fe.calcdata)return[];var Fe,Re,He,Ge=[],Ke=Me.map(ie),at=be.map(ie);for(He=0;He0?Ce[0]:be;return!!Me.selectedpoints&&Me.selectedpoints.indexOf(Fe)>-1}function ge(fe,Me,be){var Ce,Fe;for(Ce=0;Ce-1&&Me;if(!Re&&Me){var nn=se(fe,!0);if(nn.length){var Jt=nn[0].xref,rn=nn[0].yref;if(Jt&&rn){var fn=Ee(nn);_e([L(fe,Jt,"x"),L(fe,rn,"y")])(un,fn)}}fe._fullLayout._noEmitSelectedAtStart?fe._fullLayout._noEmitSelectedAtStart=!1:jt&&ze(fe,un),xt._reselect=!1}if(!Re&&xt._deselect){var vn=xt._deselect;(function(Mn,En,bn){for(var Ln=0;Ln=0)st._fullLayout._deactivateShape(st);else if(!at){var fn=ot.clickmode;E.done(yn).then(function(){if(E.clear(yn),Jt===2){for(Dt.remove(),De=0;De-1&&K(rn,st,Ce.xaxes,Ce.yaxes,Ce.subplot,Ce,Dt),fn==="event"&&ze(st,void 0);d.click(st,rn)}).catch(f.error)}},Ce.doneFn=function(){Ht.remove(),E.done(yn).then(function(){E.clear(yn),!mt&&Ie&&Ce.selectionDefs&&(Ie.subtract=Rt,Ce.selectionDefs.push(Ie),Ce.mergedPolygons.length=0,[].push.apply(Ce.mergedPolygons,rt)),(mt||at)&&re(Ce,mt),Ce.doneFnCompleted&&Ce.doneFnCompleted(un),Qe&&ze(st,tt)}).catch(f.error)}},clearOutline:x,clearSelectionsCache:re,selectOnClick:K}},89827:function(ee,z,e){var M=e(50215),k=e(41940),l=e(82196).line,T=e(79952).P,b=e(1426).extendFlat,d=e(44467).templatedArray,s=(e(24695),e(9012)),t=e(5386).R,i=e(37281);ee.exports=d("shape",{visible:b({},s.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:b({},s.legend,{editType:"calc+arraydraw"}),legendgroup:b({},s.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:b({},s.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:k({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:b({},s.legendrank,{editType:"calc+arraydraw"}),legendwidth:b({},s.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:b({},M.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:b({},M.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:b({},l.color,{editType:"arraydraw"}),width:b({},l.width,{editType:"calc+arraydraw"}),dash:b({},T,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:t({},{keys:Object.keys(i)}),font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(ee,z,e){var M=e(71828),k=e(89298),l=e(21459),T=e(30477);function b(i){return s(i.line.width,i.xsizemode,i.x0,i.x1,i.path,!1)}function d(i){return s(i.line.width,i.ysizemode,i.y0,i.y1,i.path,!0)}function s(i,r,n,o,a,u){var p=i/2,c=u;if(r==="pixel"){var x=a?T.extractPathCoords(a,u?l.paramIsY:l.paramIsX):[n,o],g=M.aggNums(Math.max,null,x),h=M.aggNums(Math.min,null,x),m=h<0?Math.abs(h)+p:p,v=g>0?g+p:p;return{ppad:p,ppadplus:c?m:v,ppadminus:c?v:m}}return{ppad:p}}function t(i,r,n,o,a){var u=i.type==="category"||i.type==="multicategory"?i.r2c:i.d2c;if(r!==void 0)return[u(r),u(n)];if(o){var p,c,x,g,h=1/0,m=-1/0,v=o.match(l.segmentRE);for(i.type==="date"&&(u=T.decodeDate(u)),p=0;pm&&(m=g)));return m>=h?[h,m]:void 0}}ee.exports=function(i){var r=i._fullLayout,n=M.filterVisible(r.shapes);if(n.length&&i._fullData.length)for(var o=0;o=ie?oe-pe:pe-oe,-180/Math.PI*Math.atan2(ge,we)}(m,y,v,_):0),w.call(function(ie){return ie.call(T.font,S).attr({}),l.convertToTspans(ie,r),ie});var Y=function(ie,oe,ce,pe,ge,we,ye){var me,Oe,ke,Te,le=ge.label.textposition,se=ge.label.textangle,ne=ge.label.padding,ve=ge.type,Ee=Math.PI/180*we,_e=Math.sin(Ee),ze=Math.cos(Ee),Ne=ge.label.xanchor,fe=ge.label.yanchor;if(ve==="line"){le==="start"?(me=ie,Oe=oe):le==="end"?(me=ce,Oe=pe):(me=(ie+ce)/2,Oe=(oe+pe)/2),Ne==="auto"&&(Ne=le==="start"?se==="auto"?ce>ie?"left":ceie?"right":ceie?"right":ceie?"left":ce1&&(me.length!==2||me[1][0]!=="Z")&&(V===0&&(me[0][0]="M"),f[O]=me,C(),P())}}()}}function ie(ge,we){(function(ye,me){if(f.length)for(var Oe=0;OeOe?(le=ye,Ee="y0",se=Oe,_e="y1"):(le=Oe,Ee="y1",se=ye,_e="y0"),Ye(rt),We(pe,oe),function(Ie,De,et){var tt=De.xref,gt=De.yref,ht=T.getFromId(et,tt),dt=T.getFromId(et,gt),ct="";tt==="paper"||ht.autorange||(ct+=tt),gt==="paper"||dt.autorange||(ct+=gt),r.setClipUrl(Ie,ct?"clip"+et._fullLayout._uid+ct:null,et)}(ie,oe,re),Mt.moveFn=Me==="move"?Xe:Ve,Mt.altKey=rt.altKey)},doneFn:function(){g(re)||(a(ie),nt(pe),v(ie,re,oe),k.call("_guiRelayout",re,ge.getUpdateObj()))},clickFn:function(){g(re)||nt(pe)}};function Ye(rt){if(g(re))Me=null;else if(He)Me=rt.target.tagName==="path"?"move":rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ie=Mt.element.getBoundingClientRect(),De=Ie.right-Ie.left,et=Ie.bottom-Ie.top,tt=rt.clientX-Ie.left,gt=rt.clientY-Ie.top,ht=!Ge&&De>be&&et>Ce&&!rt.shiftKey?o.getCursor(tt/De,1-gt/et):"move";a(ie,ht),Me=ht.split("-")[0]}}function Xe(rt,Ie){if(oe.type==="path"){var De=function(gt){return gt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(gt){return Tt(ot(gt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(gt){return wt(mt(gt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(Ke("x0",oe.x0=Tt(we+rt)),Ke("x1",oe.x1=Tt(me+rt))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(Ke("y0",oe.y0=wt(ye+Ie)),Ke("y1",oe.y1=wt(Oe+Ie)));ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function Ve(rt,Ie){if(Ge){var De=function(Wt){return Wt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(Wt){return Tt(ot(Wt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(Wt){return wt(mt(Wt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else if(He){if(Me==="resize-over-start-point"){var gt=we+rt,ht=Re?ye-Ie:ye+Ie;Ke("x0",oe.x0=Fe?gt:Tt(gt)),Ke("y0",oe.y0=Re?ht:wt(ht))}else if(Me==="resize-over-end-point"){var dt=me+rt,ct=Re?Oe-Ie:Oe+Ie;Ke("x1",oe.x1=Fe?dt:Tt(dt)),Ke("y1",oe.y1=Re?ct:wt(ct))}}else{var kt=function(Wt){return Me.indexOf(Wt)!==-1},ut=kt("n"),ft=kt("s"),bt=kt("w"),It=kt("e"),Rt=ut?le+Ie:le,Dt=ft?se+Ie:se,Kt=bt?ne+rt:ne,qt=It?ve+rt:ve;Re&&(ut&&(Rt=le-Ie),ft&&(Dt=se-Ie)),(!Re&&Dt-Rt>Ce||Re&&Rt-Dt>Ce)&&(Ke(Ee,oe[Ee]=Re?Rt:wt(Rt)),Ke(_e,oe[_e]=Re?Dt:wt(Dt))),qt-Kt>be&&(Ke(ze,oe[ze]=Fe?Kt:Tt(Kt)),Ke(Ne,oe[Ne]=Fe?qt:Tt(qt)))}ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function We(rt,Ie){(Fe||Re)&&function(){var De=Ie.type!=="path",et=rt.selectAll(".visual-cue").data([0]);et.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var tt=ot(Fe?Ie.xanchor:l.midRange(De?[Ie.x0,Ie.x1]:p.extractPathCoords(Ie.path,u.paramIsX))),gt=mt(Re?Ie.yanchor:l.midRange(De?[Ie.y0,Ie.y1]:p.extractPathCoords(Ie.path,u.paramIsY)));if(tt=p.roundPositionForSharpStrokeRendering(tt,1),gt=p.roundPositionForSharpStrokeRendering(gt,1),Fe&&Re){var ht="M"+(tt-1-1)+","+(gt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";et.attr("d",ht)}else if(Fe){var dt="M"+(tt-1-1)+","+(gt-9-1)+"v18 h2 v-18 Z";et.attr("d",dt)}else{var ct="M"+(tt-9-1)+","+(gt-1-1)+"h18 v2 h-18 Z";et.attr("d",ct)}}()}function nt(rt){rt.selectAll(".visual-cue").remove()}o.init(Mt),Pt.node().onmousemove=Ye}(f,Y,E,S,P,K):E.editable===!0&&Y.style("pointer-events",q||i.opacity(V)*O<=.5?"stroke":"all");Y.node().addEventListener("click",function(){return function(re,ie){if(h(re)){var oe=+ie.node().getAttribute("data-index");if(oe>=0){if(oe===re._fullLayout._activeShapeIndex)return void _(re);re._fullLayout._activeShapeIndex=oe,re._fullLayout._deactivateShape=_,x(re)}}}(f,Y)})}E._input&&E.visible===!0&&(E.layer!=="below"?C(f._fullLayout._shapeUpperLayer):E.xref==="paper"||E.yref==="paper"?C(f._fullLayout._shapeLowerLayer):L._hadPlotinfo?C((L.mainplotinfo||L).shapelayer):C(f._fullLayout._shapeLowerLayer))}function v(f,S,w){var E=(w.xref+w.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");r.setClipUrl(f,E?"clip"+S._fullLayout._uid+E:null,S)}function y(f,S,w){return f.replace(u.segmentRE,function(E){var L=0,C=E.charAt(0),P=u.paramIsX[C],R=u.paramIsY[C],G=u.numParams[C];return C+E.substr(1).replace(u.paramRE,function(O){return L>=G||(P[L]?O=S(O):R[L]&&(O=w(O)),L++),O})})}function _(f){h(f)&&f._fullLayout._activeShapeIndex>=0&&(t(f),delete f._fullLayout._activeShapeIndex,x(f))}ee.exports={draw:x,drawOne:m,eraseActiveShape:function(f){if(h(f)){t(f);var S=f._fullLayout._activeShapeIndex,w=(f.layout||{}).shapes||[];if(S0&&mJ&&(W="X"),W});return H>J&&(Y=Y.replace(/[\s,]*X.*/,""),k.log("Ignoring extra params in segment "+B)),q+Y})}(b,s,i);if(b.xsizemode==="pixel"){var m=s(b.xanchor);r=m+b.x0,n=m+b.x1}else r=s(b.x0),n=s(b.x1);if(b.ysizemode==="pixel"){var v=i(b.yanchor);o=v-b.y0,a=v-b.y1}else o=i(b.y0),a=i(b.y1);if(u==="line")return"M"+r+","+o+"L"+n+","+a;if(u==="rect")return"M"+r+","+o+"H"+n+"V"+a+"H"+r+"Z";var y=(r+n)/2,_=(o+a)/2,f=Math.abs(y-r),S=Math.abs(_-o),w="A"+f+","+S,E=y+f+","+_;return"M"+E+w+" 0 1,1 "+y+","+(_-S)+w+" 0 0,1 "+E+"Z"}},89853:function(ee,z,e){var M=e(34031);ee.exports={moduleType:"component",name:"shapes",layoutAttributes:e(89827),supplyLayoutDefaults:e(84726),supplyDrawNewShapeDefaults:e(45547),includeBasePlot:e(76325)("shapes"),calcAutorange:e(5627),draw:M.draw,drawOne:M.drawOne}},37281:function(ee){function z(l,T){return T?T.d2l(l):l}function e(l,T){return T?T.l2d(l):l}function M(l,T){return z(l.x1,T)-z(l.x0,T)}function k(l,T,b){return z(l.y1,b)-z(l.y0,b)}ee.exports={x0:function(l){return l.x0},x1:function(l){return l.x1},y0:function(l){return l.y0},y1:function(l){return l.y1},slope:function(l,T,b){return l.type!=="line"?void 0:k(l,0,b)/M(l,T)},dx:M,dy:k,width:function(l,T){return Math.abs(M(l,T))},height:function(l,T,b){return Math.abs(k(l,0,b))},length:function(l,T,b){return l.type!=="line"?void 0:Math.sqrt(Math.pow(M(l,T),2)+Math.pow(k(l,0,b),2))},xcenter:function(l,T){return e((z(l.x1,T)+z(l.x0,T))/2,T)},ycenter:function(l,T,b){return e((z(l.y1,b)+z(l.y0,b))/2,b)}}},75067:function(ee,z,e){var M=e(41940),k=e(35025),l=e(1426).extendDeepAll,T=e(30962).overrideAll,b=e(85594),d=e(44467).templatedArray,s=e(98292),t=d("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:t,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:l(k({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:b.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:M({})},font:M({}),activebgcolor:{valType:"color",dflt:s.gripBgActiveColor},bgcolor:{valType:"color",dflt:s.railBgColor},bordercolor:{valType:"color",dflt:s.railBorderColor},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth},ticklen:{valType:"number",min:0,dflt:s.tickLength},tickcolor:{valType:"color",dflt:s.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength}}),"arraydraw","from-root")},98292:function(ee){ee.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(ee,z,e){var M=e(71828),k=e(85501),l=e(75067),T=e(98292).name,b=l.steps;function d(t,i,r){function n(c,x){return M.coerce(t,i,l,c,x)}for(var o=k(t,i,{name:"steps",handleItemDefaults:s}),a=0,u=0;u0&&(H=H.transition().duration(R.transition.duration).ease(R.transition.easing)),H.attr("transform",d(B-.5*i.gripWidth,R._dims.currentValueTotalHeight))}}function w(P,R){var G=P._dims;return G.inputAreaStart+i.stepInset+(G.inputAreaLength-2*i.stepInset)*Math.min(1,Math.max(0,R))}function E(P,R){var G=P._dims;return Math.min(1,Math.max(0,(R-i.stepInset-G.inputAreaStart)/(G.inputAreaLength-2*i.stepInset-2*G.inputAreaStart)))}function L(P,R,G){var O=G._dims,V=b.ensureSingle(P,"rect",i.railTouchRectClass,function(N){N.call(_,R,P,G).style("pointer-events","all")});V.attr({width:O.inputAreaLength,height:Math.max(O.inputAreaWidth,i.tickOffset+G.ticklen+O.labelHeight)}).call(l.fill,G.bgcolor).attr("opacity",0),T.setTranslate(V,0,O.currentValueTotalHeight)}function C(P,R){var G=R._dims,O=G.inputAreaLength-2*i.railInset,V=b.ensureSingle(P,"rect",i.railRectClass);V.attr({width:O,height:i.railWidth,rx:i.railRadius,ry:i.railRadius,"shape-rendering":"crispEdges"}).call(l.stroke,R.bordercolor).call(l.fill,R.bgcolor).style("stroke-width",R.borderwidth+"px"),T.setTranslate(V,i.railInset,.5*(G.inputAreaWidth-i.railWidth)+G.currentValueTotalHeight)}ee.exports=function(P){var R=P._context.staticPlot,G=P._fullLayout,O=function(te,K){for(var J=te[i.name],Y=[],W=0;W0?[0]:[]);function N(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),k.autoMargin(P,u(te))}if(V.enter().append("g").classed(i.containerClassName,!0).style("cursor",R?null:"ew-resize"),V.exit().each(function(){M.select(this).selectAll("g."+i.groupClassName).each(N)}).remove(),O.length!==0){var B=V.selectAll("g."+i.groupClassName).data(O,p);B.enter().append("g").classed(i.groupClassName,!0),B.exit().each(N).remove();for(var H=0;H0||me<0){var le={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[v.side];Y.attr("transform",d(le[0],le[1]))}}}return H.call(q),V&&(C?H.on(".opacity",null):(w=0,E=!0,H.text(h).on("mouseover.opacity",function(){M.select(this).transition().duration(r.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){M.select(this).transition().duration(r.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(i.makeEditable,{gd:a}).on("edit",function(J){m!==void 0?T.call("_guiRestyle",a,g,J,m):T.call("_guiRelayout",a,g,J)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(q)}).on("input",function(J){this.text(J||" ").call(i.positionText,y.x,y.y)})),H.classed("js-placeholder",E),f}}},7163:function(ee,z,e){var M=e(41940),k=e(22399),l=e(1426).extendFlat,T=e(30962).overrideAll,b=e(35025),d=e(44467).templatedArray,s=d("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:s,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:l(b({editType:"arraydraw"}),{}),font:M({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:k.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(ee){ee.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}},64897:function(ee,z,e){var M=e(71828),k=e(85501),l=e(7163),T=e(75909).name,b=l.buttons;function d(t,i,r){function n(o,a){return M.coerce(t,i,l,o,a)}n("visible",k(t,i,{name:"buttons",handleItemDefaults:s}).length>0)&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),M.noneOrAll(t,i,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),M.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function s(t,i){function r(n,o){return M.coerce(t,i,b,n,o)}r("visible",t.method==="skip"||Array.isArray(t.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}ee.exports=function(t,i){k(t,i,{name:T,handleItemDefaults:d})}},13689:function(ee,z,e){var M=e(39898),k=e(74875),l=e(7901),T=e(91424),b=e(71828),d=e(63893),s=e(44467).arrayEditor,t=e(18783).LINE_SPACING,i=e(75909),r=e(25849);function n(w){return w._index}function o(w,E){return+w.attr(i.menuIndexAttrName)===E._index}function a(w,E,L,C,P,R,G,O){E.active=G,s(w.layout,i.name,E).applyUpdate("active",G),E.type==="buttons"?p(w,C,null,null,E):E.type==="dropdown"&&(P.attr(i.menuIndexAttrName,"-1"),u(w,C,P,R,E),O||p(w,C,P,R,E))}function u(w,E,L,C,P){var R=b.ensureSingle(E,"g",i.headerClassName,function(H){H.style("pointer-events","all")}),G=P._dims,O=P.active,V=P.buttons[O]||i.blankHeaderOpts,N={y:P.pad.t,yPad:0,x:P.pad.l,xPad:0,index:0},B={width:G.headerWidth,height:G.headerHeight};R.call(c,P,V,w).call(f,P,N,B),b.ensureSingle(E,"text",i.headerArrowClassName,function(H){H.attr("text-anchor","end").call(T.font,P.font).text(i.arrowSymbol[P.direction])}).attr({x:G.headerWidth-i.arrowOffsetX+P.pad.l,y:G.headerHeight/2+i.textOffsetY+P.pad.t}),R.on("click",function(){L.call(S,String(o(L,P)?-1:P._index)),p(w,E,L,C,P)}),R.on("mouseover",function(){R.call(m)}),R.on("mouseout",function(){R.call(v,P)}),T.setTranslate(E,G.lx,G.ly)}function p(w,E,L,C,P){L||(L=E).attr("pointer-events","all");var R=function(Y){return+Y.attr(i.menuIndexAttrName)==-1}(L)&&P.type!=="buttons"?[]:P.buttons,G=P.type==="dropdown"?i.dropdownButtonClassName:i.buttonClassName,O=L.selectAll("g."+G).data(b.filterVisible(R)),V=O.enter().append("g").classed(G,!0),N=O.exit();P.type==="dropdown"?(V.attr("opacity","0").transition().attr("opacity","1"),N.transition().attr("opacity","0").remove()):N.remove();var B=0,H=0,q=P._dims,te=["up","down"].indexOf(P.direction)!==-1;P.type==="dropdown"&&(te?H=q.headerHeight+i.gapButtonHeader:B=q.headerWidth+i.gapButtonHeader),P.type==="dropdown"&&P.direction==="up"&&(H=-i.gapButtonHeader+i.gapButton-q.openHeight),P.type==="dropdown"&&P.direction==="left"&&(B=-i.gapButtonHeader+i.gapButton-q.openWidth);var K={x:q.lx+B+P.pad.l,y:q.ly+H+P.pad.t,yPad:i.gapButton,xPad:i.gapButton,index:0},J={l:K.x+P.borderwidth,t:K.y+P.borderwidth};O.each(function(Y,W){var Q=M.select(this);Q.call(c,P,Y,w).call(f,P,K),Q.on("click",function(){M.event.defaultPrevented||(Y.execute&&(Y.args2&&P.active===W?(a(w,P,0,E,L,C,-1),k.executeAPICommand(w,Y.method,Y.args2)):(a(w,P,0,E,L,C,W),k.executeAPICommand(w,Y.method,Y.args))),w.emit("plotly_buttonclicked",{menu:P,button:Y,active:P.active}))}),Q.on("mouseover",function(){Q.call(m)}),Q.on("mouseout",function(){Q.call(v,P),O.call(h,P)})}),O.call(h,P),te?(J.w=Math.max(q.openWidth,q.headerWidth),J.h=K.y-J.t):(J.w=K.x-J.l,J.h=Math.max(q.openHeight,q.headerHeight)),J.direction=P.direction,C&&(O.size()?function(Y,W,Q,re,ie,oe){var ce,pe,ge,we=ie.direction,ye=we==="up"||we==="down",me=ie._dims,Oe=ie.active;if(ye)for(pe=0,ge=0;ge0?[0]:[]);if(P.enter().append("g").classed(i.containerClassName,!0).style("cursor","pointer"),P.exit().each(function(){M.select(this).selectAll("g."+i.headerGroupClassName).each(C)}).remove(),L.length!==0){var R=P.selectAll("g."+i.headerGroupClassName).data(L,n);R.enter().append("g").classed(i.headerGroupClassName,!0);for(var G=b.ensureSingle(P,"g",i.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),O=0;Of,E=b.barLength+2*b.barPad,L=b.barWidth+2*b.barPad,C=c,P=g+h;P+L>n&&(P=n-L);var R=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(k.fill,b.barColor),w?(this.hbar=R.attr({rx:b.barRadius,ry:b.barRadius,x:C,y:P,width:E,height:L}),this._hbarXMin=C+E/2,this._hbarTranslateMax=f-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var G=h>S,O=b.barWidth+2*b.barPad,V=b.barLength+2*b.barPad,N=c+x,B=g;N+O>r&&(N=r-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(G?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(k.fill,b.barColor),G?(this.vbar=H.attr({rx:b.barRadius,ry:b.barRadius,x:N,y:B,width:O,height:V}),this._vbarYMin=B+V/2,this._vbarTranslateMax=S-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var q=this.id,te=o-.5,K=G?a+O+.5:a+.5,J=u-.5,Y=w?p+L+.5:p+.5,W=i._topdefs.selectAll("#"+q).data(w||G?[0]:[]);if(W.exit().remove(),W.enter().append("clipPath").attr("id",q).append("rect"),w||G?(this._clipRect=W.select("rect").attr({x:Math.floor(te),y:Math.floor(J),width:Math.ceil(K)-Math.floor(te),height:Math.ceil(Y)-Math.floor(J)}),this.container.call(l.setClipUrl,q,this.gd),this.bg.attr({x:c,y:g,width:x,height:h})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),w||G){var Q=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var re=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault(),M.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(re),G&&this.vbar.on(".drag",null).call(re)}this.setTranslate(s,t)},b.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},b.prototype._onBoxDrag=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d-=M.event.dx),this.vbar&&(s-=M.event.dy),this.setTranslate(d,s)},b.prototype._onBoxWheel=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d+=M.event.deltaY),this.vbar&&(s+=M.event.deltaY),this.setTranslate(d,s)},b.prototype._onBarDrag=function(){var d=this.translateX,s=this.translateY;if(this.hbar){var t=d+this._hbarXMin,i=t+this._hbarTranslateMax;d=(T.constrain(M.event.x,t,i)-t)/(i-t)*(this.position.w-this._box.w)}if(this.vbar){var r=s+this._vbarYMin,n=r+this._vbarTranslateMax;s=(T.constrain(M.event.y,r,n)-r)/(n-r)*(this.position.h-this._box.h)}this.setTranslate(d,s)},b.prototype.setTranslate=function(d,s){var t=this.position.w-this._box.w,i=this.position.h-this._box.h;if(d=T.constrain(d||0,0,t),s=T.constrain(s||0,0,i),this.translateX=d,this.translateY=s,this.container.call(l.setTranslate,this._box.l-this.position.l-d,this._box.t-this.position.t-s),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+d-.5),y:Math.floor(this.position.t+s-.5)}),this.hbar){var r=d/t;this.hbar.call(l.setTranslate,d+r*this._hbarTranslateMax,s)}if(this.vbar){var n=s/i;this.vbar.call(l.setTranslate,d,s+n*this._vbarTranslateMax)}}},18783:function(ee){ee.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(ee){ee.exports={axisRefDescription:function(z,e,M){return["If set to a",z,"axis id (e.g. *"+z+"* or","*"+z+"2*), the `"+z+"` position refers to a",z,"coordinate. If set to *paper*, the `"+z+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+M+"). If set to a",z,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+z+"2 domain* refers to the domain of the second",z," axis and a",z,"position of 0.5 refers to the","point between the",e,"and the",M,"of the domain of the","second",z,"axis."].join(" ")}}},22372:function(ee){ee.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}},31562:function(ee){ee.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(ee){ee.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},29659:function(ee){ee.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87381:function(ee){ee.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}},37822:function(ee){ee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(ee){ee.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},32396:function(ee,z){z.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],z.STYLE=z.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},77922:function(ee,z){z.xmlns="http://www.w3.org/2000/xmlns/",z.svg="http://www.w3.org/2000/svg",z.xlink="http://www.w3.org/1999/xlink",z.svgAttrs={xmlns:z.svg,"xmlns:xlink":z.xlink}},8729:function(ee,z,e){z.version=e(11506).version,e(7417),e(98847);for(var M=e(73972),k=z.register=M.register,l=e(10641),T=Object.keys(l),b=0;b",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(ee,z){z.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},z.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},z.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},z.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},z.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},z.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},26348:function(ee,z,e){var M=e(64872),k=M.mod,l=M.modHalf,T=Math.PI,b=2*T;function d(r){return Math.abs(r[1]-r[0])>b-1e-14}function s(r,n){return l(n-r,b)}function t(r,n){if(d(n))return!0;var o,a;n[0](a=k(a,b))&&(a+=b);var u=k(r,b),p=u+b;return u>=o&&u<=a||p>=o&&p<=a}function i(r,n,o,a,u,p,c){u=u||0,p=p||0;var x,g,h,m,v,y=d([o,a]);function _(E,L){return[E*Math.cos(L)+u,p-E*Math.sin(L)]}y?(x=0,g=T,h=b):o=u&&r<=p);var u,p},pathArc:function(r,n,o,a,u){return i(null,r,n,o,a,u,0)},pathSector:function(r,n,o,a,u){return i(null,r,n,o,a,u,1)},pathAnnulus:function(r,n,o,a,u,p){return i(r,n,o,a,u,p,1)}}},73627:function(ee,z){var e=Array.isArray,M=ArrayBuffer,k=DataView;function l(d){return M.isView(d)&&!(d instanceof k)}function T(d){return e(d)||l(d)}function b(d,s,t){if(T(d)){if(T(d[0])){for(var i=t,r=0;rp.max?a.set(u):a.set(+o)}},integer:{coerceFunction:function(o,a,u,p){o%1||!M(o)||p.min!==void 0&&op.max?a.set(u):a.set(+o)}},string:{coerceFunction:function(o,a,u,p){if(typeof o!="string"){var c=typeof o=="number";p.strict!==!0&&c?a.set(String(o)):a.set(u)}else p.noBlank&&!o?a.set(u):a.set(o)}},color:{coerceFunction:function(o,a,u){k(o).isValid()?a.set(o):a.set(u)}},colorlist:{coerceFunction:function(o,a,u){Array.isArray(o)&&o.length&&o.every(function(p){return k(p).isValid()})?a.set(o):a.set(u)}},colorscale:{coerceFunction:function(o,a,u){a.set(T.get(o,u))}},angle:{coerceFunction:function(o,a,u){o==="auto"?a.set("auto"):M(o)?a.set(i(+o,360)):a.set(u)}},subplotid:{coerceFunction:function(o,a,u,p){var c=p.regex||t(u);typeof o=="string"&&c.test(o)?a.set(o):a.set(u)},validateFunction:function(o,a){var u=a.dflt;return o===u||typeof o=="string"&&!!t(u).test(o)}},flaglist:{coerceFunction:function(o,a,u,p){if((p.extras||[]).indexOf(o)===-1)if(typeof o=="string"){for(var c=o.split("+"),x=0;x=M&&R<=k?R:t}if(typeof R!="string"&&typeof R!="number")return t;R=String(R);var B=h(G),H=R.charAt(0);!B||H!=="G"&&H!=="g"||(R=R.substr(1),G="");var q=B&&G.substr(0,7)==="chinese",te=R.match(q?x:c);if(!te)return t;var K=te[1],J=te[3]||"1",Y=Number(te[5]||1),W=Number(te[7]||0),Q=Number(te[9]||0),re=Number(te[11]||0);if(B){if(K.length===2)return t;var ie;K=Number(K);try{var oe=u.getComponentMethod("calendars","getCal")(G);if(q){var ce=J.charAt(J.length-1)==="i";J=parseInt(J,10),ie=oe.newDate(K,oe.toMonthIndex(K,J,ce),Y)}else ie=oe.newDate(K,Number(J),Y)}catch{return t}return ie?(ie.toJD()-a)*i+W*r+Q*n+re*o:t}K=K.length===2?(Number(K)+2e3-g)%100+g:Number(K),J-=1;var pe=new Date(Date.UTC(2e3,J,Y,W,Q));return pe.setUTCFullYear(K),pe.getUTCMonth()!==J||pe.getUTCDate()!==Y?t:pe.getTime()+re*o},M=z.MIN_MS=z.dateTime2ms("-9999"),k=z.MAX_MS=z.dateTime2ms("9999-12-31 23:59:59.9999"),z.isDateTime=function(R,G){return z.dateTime2ms(R,G)!==t};var v=90*i,y=3*r,_=5*n;function f(R,G,O,V,N){if((G||O||V||N)&&(R+=" "+m(G,2)+":"+m(O,2),(V||N)&&(R+=":"+m(V,2),N))){for(var B=4;N%10==0;)B-=1,N/=10;R+="."+m(N,B)}return R}z.ms2DateTime=function(R,G,O){if(typeof R!="number"||!(R>=M&&R<=k))return t;G||(G=0);var V,N,B,H,q,te,K=Math.floor(10*d(R+.05,1)),J=Math.round(R-K/10);if(h(O)){var Y=Math.floor(J/i)+a,W=Math.floor(d(R,i));try{V=u.getComponentMethod("calendars","getCal")(O).fromJD(Y).formatDate("yyyy-mm-dd")}catch{V=p("G%Y-%m-%d")(new Date(J))}if(V.charAt(0)==="-")for(;V.length<11;)V="-0"+V.substr(1);else for(;V.length<10;)V="0"+V;N=G=M+i&&R<=k-i))return t;var G=Math.floor(10*d(R+.05,1)),O=new Date(Math.round(R-G/10));return f(l("%Y-%m-%d")(O),O.getHours(),O.getMinutes(),O.getSeconds(),10*O.getUTCMilliseconds()+G)},z.cleanDate=function(R,G,O){if(R===t)return G;if(z.isJSDate(R)||typeof R=="number"&&isFinite(R)){if(h(O))return b.error("JS Dates and milliseconds are incompatible with world calendars",R),G;if(!(R=z.ms2DateTimeLocal(+R))&&G!==void 0)return G}else if(!z.isDateTime(R,O))return b.error("unrecognized date",R),G;return R};var S=/%\d?f/g,w=/%h/g,E={1:"1",2:"1",3:"2",4:"2"};function L(R,G,O,V){R=R.replace(S,function(B){var H=Math.min(+B.charAt(1)||6,6);return(G/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var N=new Date(Math.floor(G+.05));if(R=R.replace(w,function(){return E[O("%q")(N)]}),h(V))try{R=u.getComponentMethod("calendars","worldCalFmt")(R,G,V)}catch{return"Invalid"}return O(R)(N)}var C=[59,59.9,59.99,59.999,59.9999];z.formatDate=function(R,G,O,V,N,B){if(N=h(N)&&N,!G)if(O==="y")G=B.year;else if(O==="m")G=B.month;else{if(O!=="d")return function(H,q){var te=d(H+.05,i),K=m(Math.floor(te/r),2)+":"+m(d(Math.floor(te/n),60),2);if(q!=="M"){T(q)||(q=0);var J=(100+Math.min(d(H/o,60),C[q])).toFixed(q).substr(1);q>0&&(J=J.replace(/0+$/,"").replace(/[\.]$/,"")),K+=":"+J}return K}(R,O)+` `+L(B.dayMonthYear,R,V,N);G=B.dayMonth+` `+B.year}return L(G,R,V,N)};var P=3*i;z.incrementMonth=function(R,G,O){O=h(O)&&O;var V=d(R,i);if(R=Math.round(R-V),O)try{var N=Math.round(R/i)+a,B=u.getComponentMethod("calendars","getCal")(O),H=B.fromJD(N);return G%12?B.add(H,G,"m"):B.add(H,G/12,"y"),(H.toJD()-a)*i+V}catch{b.error("invalid ms "+R+" in calendar "+O)}var q=new Date(R+P);return q.setUTCMonth(q.getUTCMonth()+G)+V-P},z.findExactDates=function(R,G){for(var O,V,N=0,B=0,H=0,q=0,te=h(G)&&u.getComponentMethod("calendars","getCal")(G),K=0;K0&&f[S+1][0]<0)return S;return null}switch(p=v==="RUS"||v==="FJI"?function(f){var S;if(_(f)===null)S=f;else for(S=new Array(f.length),g=0;gS?w[E++]=[f[g][0]+360,f[g][1]]:g===S?(w[E++]=f[g],w[E++]=[f[g][0],-90]):w[E++]=f[g];var L=r.tester(w);L.pts.pop(),y.push(L)}:function(f){y.push(r.tester(f))},h.type){case"MultiPolygon":for(c=0;cO&&(O=B,P=N)}else P=R;return T.default(P).geometry.coordinates}(L),w.fIn=f,w.fOut=L,h.push(L)}else s.log(["Location",w.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete g[S]}switch(c.type){case"FeatureCollection":var y=c.features;for(x=0;x100?(clearInterval(S),_("Unexpected error while fetching from "+v)):void f++},50)})}for(var h=0;h0&&(T.push(b),b=[])}return b.length>0&&T.push(b),T},z.makeLine=function(k){return k.length===1?{type:"LineString",coordinates:k[0]}:{type:"MultiLineString",coordinates:k}},z.makePolygon=function(k){if(k.length===1)return{type:"Polygon",coordinates:k};for(var l=new Array(k.length),T=0;T1||y<0||y>1?null:{x:s+p*y,y:t+g*y}}function d(s,t,i,r,n){var o=r*s+n*t;if(o<0)return r*r+n*n;if(o>i){var a=r-s,u=n-t;return a*a+u*u}var p=r*t-n*s;return p*p/i}z.segmentsIntersect=b,z.segmentDistance=function(s,t,i,r,n,o,a,u){if(b(s,t,i,r,n,o,a,u))return 0;var p=i-s,c=r-t,x=a-n,g=u-o,h=p*p+c*c,m=x*x+g*g,v=Math.min(d(p,c,h,n-s,o-t),d(p,c,h,a-s,u-t),d(x,g,m,s-n,t-o),d(x,g,m,i-n,r-o));return Math.sqrt(v)},z.getTextLocation=function(s,t,i,r){if(s===k&&r===l||(M={},k=s,l=r),M[i])return M[i];var n=s.getPointAtLength(T(i-r/2,t)),o=s.getPointAtLength(T(i+r/2,t)),a=Math.atan((o.y-n.y)/(o.x-n.x)),u=s.getPointAtLength(T(i,t)),p={x:(4*u.x+n.x+o.x)/6,y:(4*u.y+n.y+o.y)/6,theta:a};return M[i]=p,p},z.clearLocationCache=function(){k=null},z.getVisibleSegment=function(s,t,i){var r,n,o=t.left,a=t.right,u=t.top,p=t.bottom,c=0,x=s.getTotalLength(),g=x;function h(v){var y=s.getPointAtLength(v);v===0?r=y:v===x&&(n=y);var _=y.xa?y.x-a:0,f=y.yp?y.y-p:0;return Math.sqrt(_*_+f*f)}for(var m=h(c);m;){if((c+=m+i)>g)return;m=h(c)}for(m=h(g);m;){if(c>(g-=m+i))return;m=h(g)}return{min:c,max:g,len:g-c,total:x,isClosed:c===0&&g===x&&Math.abs(r.x-n.x)<.1&&Math.abs(r.y-n.y)<.1}},z.findPointOnPath=function(s,t,i,r){for(var n,o,a,u=(r=r||{}).pathLength||s.getTotalLength(),p=r.tolerance||.001,c=r.iterationLimit||30,x=s.getPointAtLength(0)[i]>s.getPointAtLength(u)[i]?-1:1,g=0,h=0,m=u;g0?m=n:h=n,g++}return o}},81697:function(ee,z,e){var M=e(92770),k=e(84267),l=e(25075),T=e(21081),b=e(22399).defaultLine,d=e(73627).isArrayOrTypedArray,s=l(b);function t(n,o){var a=n;return a[3]*=o,a}function i(n){if(M(n))return s;var o=l(n);return o.length?o:s}function r(n){return M(n)?n:1}ee.exports={formatColor:function(n,o,a){var u,p,c,x,g,h=n.color,m=d(h),v=d(o),y=T.extractOpts(n),_=[];if(u=y.colorscale!==void 0?T.makeColorScaleFuncFromTrace(n):i,p=m?function(S,w){return S[w]===void 0?s:l(u(S[w]))}:i,c=v?function(S,w){return S[w]===void 0?1:r(S[w])}:r,m||v)for(var f=0;f1?(M*z+M*e)/M:z+e,l=String(k).length;if(l>16){var T=String(e).length;if(l>=String(z).length+T){var b=parseFloat(k).toPrecision(12);b.indexOf("e+")===-1&&(k=+b)}}return k}},71828:function(ee,z,e){var M=e(39898),k=e(84096).g0,l=e(60721).WU,T=e(92770),b=e(50606),d=b.FP_SAFE,s=-d,t=b.BADNUM,i=ee.exports={};i.adjustFormat=function(W){return!W||/^\d[.]\df/.test(W)||/[.]\d%/.test(W)?W:W==="0.f"?"~f":/^\d%/.test(W)?"~%":/^\ds/.test(W)?"~s":!/^[~,.0$]/.test(W)&&/[&fps]/.test(W)?"~"+W:W};var r={};i.warnBadFormat=function(W){var Q=String(W);r[Q]||(r[Q]=1,i.warn('encountered bad format: "'+Q+'"'))},i.noFormat=function(W){return String(W)},i.numberFormat=function(W){var Q;try{Q=l(i.adjustFormat(W))}catch{return i.warnBadFormat(W),i.noFormat}return Q},i.nestedProperty=e(65487),i.keyedContainer=e(66636),i.relativeAttr=e(6962),i.isPlainObject=e(41965),i.toLogRange=e(58163),i.relinkPrivateKeys=e(51332);var n=e(73627);i.isTypedArray=n.isTypedArray,i.isArrayOrTypedArray=n.isArrayOrTypedArray,i.isArray1D=n.isArray1D,i.ensureArray=n.ensureArray,i.concat=n.concat,i.maxRowLength=n.maxRowLength,i.minRowLength=n.minRowLength;var o=e(64872);i.mod=o.mod,i.modHalf=o.modHalf;var a=e(96554);i.valObjectMeta=a.valObjectMeta,i.coerce=a.coerce,i.coerce2=a.coerce2,i.coerceFont=a.coerceFont,i.coercePattern=a.coercePattern,i.coerceHoverinfo=a.coerceHoverinfo,i.coerceSelectionMarkerOpacity=a.coerceSelectionMarkerOpacity,i.validate=a.validate;var u=e(41631);i.dateTime2ms=u.dateTime2ms,i.isDateTime=u.isDateTime,i.ms2DateTime=u.ms2DateTime,i.ms2DateTimeLocal=u.ms2DateTimeLocal,i.cleanDate=u.cleanDate,i.isJSDate=u.isJSDate,i.formatDate=u.formatDate,i.incrementMonth=u.incrementMonth,i.dateTick0=u.dateTick0,i.dfltRange=u.dfltRange,i.findExactDates=u.findExactDates,i.MIN_MS=u.MIN_MS,i.MAX_MS=u.MAX_MS;var p=e(65888);i.findBin=p.findBin,i.sorterAsc=p.sorterAsc,i.sorterDes=p.sorterDes,i.distinctVals=p.distinctVals,i.roundUp=p.roundUp,i.sort=p.sort,i.findIndexOfMin=p.findIndexOfMin,i.sortObjectKeys=e(78607);var c=e(80038);i.aggNums=c.aggNums,i.len=c.len,i.mean=c.mean,i.median=c.median,i.midRange=c.midRange,i.variance=c.variance,i.stdev=c.stdev,i.interp=c.interp;var x=e(35657);i.init2dArray=x.init2dArray,i.transposeRagged=x.transposeRagged,i.dot=x.dot,i.translationMatrix=x.translationMatrix,i.rotationMatrix=x.rotationMatrix,i.rotationXYMatrix=x.rotationXYMatrix,i.apply3DTransform=x.apply3DTransform,i.apply2DTransform=x.apply2DTransform,i.apply2DTransform2=x.apply2DTransform2,i.convertCssMatrix=x.convertCssMatrix,i.inverseTransformMatrix=x.inverseTransformMatrix;var g=e(26348);i.deg2rad=g.deg2rad,i.rad2deg=g.rad2deg,i.angleDelta=g.angleDelta,i.angleDist=g.angleDist,i.isFullCircle=g.isFullCircle,i.isAngleInsideSector=g.isAngleInsideSector,i.isPtInsideSector=g.isPtInsideSector,i.pathArc=g.pathArc,i.pathSector=g.pathSector,i.pathAnnulus=g.pathAnnulus;var h=e(99863);i.isLeftAnchor=h.isLeftAnchor,i.isCenterAnchor=h.isCenterAnchor,i.isRightAnchor=h.isRightAnchor,i.isTopAnchor=h.isTopAnchor,i.isMiddleAnchor=h.isMiddleAnchor,i.isBottomAnchor=h.isBottomAnchor;var m=e(87642);i.segmentsIntersect=m.segmentsIntersect,i.segmentDistance=m.segmentDistance,i.getTextLocation=m.getTextLocation,i.clearLocationCache=m.clearLocationCache,i.getVisibleSegment=m.getVisibleSegment,i.findPointOnPath=m.findPointOnPath;var v=e(1426);i.extendFlat=v.extendFlat,i.extendDeep=v.extendDeep,i.extendDeepAll=v.extendDeepAll,i.extendDeepNoArrays=v.extendDeepNoArrays;var y=e(47769);i.log=y.log,i.warn=y.warn,i.error=y.error;var _=e(30587);i.counterRegex=_.counter;var f=e(79990);i.throttle=f.throttle,i.throttleDone=f.done,i.clearThrottle=f.clear;var S=e(24401);function w(W){var Q={};for(var re in W)for(var ie=W[re],oe=0;oed||W=Q)&&T(W)&&W>=0&&W%1==0},i.noop=e(64213),i.identity=e(23389),i.repeat=function(W,Q){for(var re=new Array(Q),ie=0;iere?Math.max(re,Math.min(Q,W)):Math.max(Q,Math.min(re,W))},i.bBoxIntersect=function(W,Q,re){return re=re||0,W.left<=Q.right+re&&Q.left<=W.right+re&&W.top<=Q.bottom+re&&Q.top<=W.bottom+re},i.simpleMap=function(W,Q,re,ie,oe){for(var ce=W.length,pe=new Array(ce),ge=0;ge=Math.pow(2,re)?oe>10?(i.warn("randstr failed uniqueness"),we):W(Q,re,ie,(oe||0)+1):we},i.OptionControl=function(W,Q){W||(W={}),Q||(Q="opt");var re={optionList:[],_newoption:function(ie){ie[Q]=W,re[ie.name]=ie,re.optionList.push(ie)}};return re["_"+Q]=W,re},i.smooth=function(W,Q){if((Q=Math.round(Q)||0)<2)return W;var re,ie,oe,ce,pe=W.length,ge=2*pe,we=2*Q-1,ye=new Array(we),me=new Array(pe);for(re=0;re=ge&&(oe-=ge*Math.floor(oe/ge)),oe<0?oe=-1-oe:oe>=pe&&(oe=ge-1-oe),ce+=W[oe]*ye[ie];me[re]=ce}return me},i.syncOrAsync=function(W,Q,re){var ie;function oe(){return i.syncOrAsync(W,Q,re)}for(;W.length;)if((ie=(0,W.splice(0,1)[0])(Q))&&ie.then)return ie.then(oe);return re&&re(Q)},i.stripTrailingSlash=function(W){return W.substr(-1)==="/"?W.substr(0,W.length-1):W},i.noneOrAll=function(W,Q,re){if(W){var ie,oe=!1,ce=!0;for(ie=0;ie0?oe:0})},i.fillArray=function(W,Q,re,ie){if(ie=ie||i.identity,i.isArrayOrTypedArray(W))for(var oe=0;oe1?oe+pe[1]:"";if(ce&&(pe.length>1||ge.length>4||re))for(;ie.test(ge);)ge=ge.replace(ie,"$1"+ce+"$2");return ge+we},i.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var O=/^\w*$/;i.templateString=function(W,Q){var re={};return W.replace(i.TEMPLATE_STRING_REGEX,function(ie,oe){var ce;return O.test(oe)?ce=Q[oe]:(re[oe]=re[oe]||i.nestedProperty(Q,oe).get,ce=re[oe]()),i.isValidTextValue(ce)?ce:""})};var V={max:10,count:0,name:"hovertemplate"};i.hovertemplateString=function(){return te.apply(V,arguments)};var N={max:10,count:0,name:"texttemplate"};i.texttemplateString=function(){return te.apply(N,arguments)};var B=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};i.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var q=/^[:|\|]/;function te(W,Q,re){var ie=this,oe=arguments;Q||(Q={});var ce={};return W.replace(i.TEMPLATE_STRING_REGEX,function(pe,ge,we){var ye=ge==="_xother"||ge==="_yother",me=ge==="_xother_"||ge==="_yother_",Oe=ge==="xother_"||ge==="yother_",ke=ge==="xother"||ge==="yother"||ye||Oe||me,Te=ge;(ye||me)&&(Te=Te.substring(1)),(Oe||me)&&(Te=Te.substring(0,Te.length-1));var le,se,ne,ve=null,Ee=null;if(ie.parseMultDiv){var _e=function(Me){var be=Me.match(B);return be?{key:be[1],op:be[2],number:Number(be[3])}:{key:Me,op:null,number:null}}(Te);Te=_e.key,ve=_e.op,Ee=_e.number}if(ke){if((le=Q[Te])===void 0)return""}else for(ne=3;ne=48&&pe<=57,ye=ge>=48&&ge<=57;if(we&&(ie=10*ie+pe-48),ye&&(oe=10*oe+ge-48),!we||!ye){if(ie!==oe)return ie-oe;if(pe!==ge)return pe-ge}}return oe-ie};var K=2e9;i.seedPseudoRandom=function(){K=2e9},i.pseudoRandom=function(){var W=K;return K=(69069*K+1)%4294967296,Math.abs(K-W)<429496729?i.pseudoRandom():K/4294967296},i.fillText=function(W,Q,re){var ie=Array.isArray(re)?function(pe){re.push(pe)}:function(pe){re.text=pe},oe=i.extractOption(W,Q,"htx","hovertext");if(i.isValidTextValue(oe))return ie(oe);var ce=i.extractOption(W,Q,"tx","text");return i.isValidTextValue(ce)?ie(ce):void 0},i.isValidTextValue=function(W){return W||W===0},i.formatPercent=function(W,Q){Q=Q||0;for(var re=(Math.round(100*W*Math.pow(10,Q))*Math.pow(.1,Q)).toFixed(Q)+"%",ie=0;ie1&&(ye=1):ye=0,i.strTranslate(oe-ye*(re+pe),ce-ye*(ie+ge))+i.strScale(ye)+(we?"rotate("+we+(Q?"":" "+re+" "+ie)+")":"")},i.setTransormAndDisplay=function(W,Q){W.attr("transform",i.getTextTransform(Q)),W.style("display",Q.scale?null:"none")},i.ensureUniformFontSize=function(W,Q){var re=i.extendFlat({},Q);return re.size=Math.max(Q.size,W._fullLayout.uniformtext.minsize||0),re},i.join2=function(W,Q,re){var ie=W.length;return ie>1?W.slice(0,-1).join(Q)+re+W[ie-1]:W.join(Q)},i.bigFont=function(W){return Math.round(1.2*W)};var J=i.getFirefoxVersion(),Y=J!==null&&J<86;i.getPositionFromD3Event=function(){return Y?[M.event.layerX,M.event.layerY]:[M.event.offsetX,M.event.offsetY]}},41965:function(ee){ee.exports=function(z){return window&&window.process&&window.process.versions?Object.prototype.toString.call(z)==="[object Object]":Object.prototype.toString.call(z)==="[object Object]"&&Object.getPrototypeOf(z).hasOwnProperty("hasOwnProperty")}},66636:function(ee,z,e){var M=e(65487),k=/^\w*$/;ee.exports=function(l,T,b,d){var s,t,i;b=b||"name",d=d||"value";var r={};T&&T.length?(i=M(l,T),t=i.get()):t=l,T=T||"";var n={};if(t)for(s=0;s2)return r[p]=2|r[p],a.set(u,null);if(o){for(s=p;s1){var b=["LOG:"];for(T=0;T1){var d=[];for(T=0;T"),"long")}},l.warn=function(){var T;if(M.logging>0){var b=["WARN:"];for(T=0;T0){var d=[];for(T=0;T"),"stick")}},l.error=function(){var T;if(M.logging>0){var b=["ERROR:"];for(T=0;T0){var d=[];for(T=0;T"),"stick")}}},77310:function(ee,z,e){var M=e(39898);ee.exports=function(k,l,T){var b=k.selectAll("g."+T.replace(/\s/g,".")).data(l,function(s){return s[0].trace.uid});b.exit().remove(),b.enter().append("g").attr("class",T),b.order();var d=k.classed("rangeplot")?"nodeRangePlot3":"node3";return b.each(function(s){s[0][d]=M.select(this)}),b}},35657:function(ee,z,e){var M=e(79576);z.init2dArray=function(k,l){for(var T=new Array(k),b=0;be/2?z-Math.round(z/e)*e:z}}},65487:function(ee,z,e){var M=e(92770),k=e(73627).isArrayOrTypedArray;function l(r,n){return function(){var o,a,u,p,c,x=r;for(p=0;p/g),a=0;at||g===k||gr||c&&n(p))}:function(p,c){var x=p[0],g=p[1];if(x===k||xt||g===k||gr)return!1;var h,m,v,y,_,f=d.length,S=d[0][0],w=d[0][1],E=0;for(h=1;hMath.max(m,S)||g>Math.max(v,w)))if(ga||Math.abs(M(i,p))>s)return!0;return!1},l.filter=function(T,b){var d=[T[0]],s=0,t=0;function i(r){T.push(r);var n=d.length,o=s;d.splice(t+1);for(var a=o+1;a1&&i(T.pop()),{addPt:i,raw:T,filtered:d}}},79749:function(ee,z,e){var M=e(58617),k=e(98580);ee.exports=function(l,T,b){var d=l._fullLayout,s=!0;return d._glcanvas.each(function(t){if(t.regl)t.regl.preloadCachedCode(b);else if(!t.pick||d._has("parcoords")){try{t.regl=k({canvas:this,attributes:{antialias:!t.pick,preserveDrawingBuffer:!0},pixelRatio:l._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:T||[],cachedCode:b||{}})}catch{s=!1}t.regl||(s=!1),s&&this.addEventListener("webglcontextlost",function(i){l&&l.emit&&l.emit("plotly_webglcontextlost",{event:i,layer:t.key})},!1)}}),s||M({container:d._glcontainer.node()}),s}},45142:function(ee,z,e){var M=e(92770),k=e(35791);ee.exports=function(l){var T;if(typeof(T=l&&l.hasOwnProperty("userAgent")?l.userAgent:function(){var n;return typeof navigator<"u"&&(n=navigator.userAgent),n&&n.headers&&typeof n.headers["user-agent"]=="string"&&(n=n.headers["user-agent"]),n}())!="string")return!0;var b=k({ua:{headers:{"user-agent":T}},tablet:!0,featureDetect:!1});if(!b){for(var d=T.split(" "),s=1;s-1;t--){var i=d[t];if(i.substr(0,8)==="Version/"){var r=i.substr(8).split(".")[0];if(M(r)&&(r=+r),r>=13)return!0}}}return b}},75138:function(ee){ee.exports=function(z,e){if(e instanceof RegExp){for(var M=e.toString(),k=0;kk.queueLength&&(T.undoQueue.queue.shift(),T.undoQueue.index--))},startSequence:function(T){T.undoQueue=T.undoQueue||{index:0,queue:[],sequence:!1},T.undoQueue.sequence=!0,T.undoQueue.beginSequence=!0},stopSequence:function(T){T.undoQueue=T.undoQueue||{index:0,queue:[],sequence:!1},T.undoQueue.sequence=!1,T.undoQueue.beginSequence=!1},undo:function(T){var b,d;if(!(T.undoQueue===void 0||isNaN(T.undoQueue.index)||T.undoQueue.index<=0)){for(T.undoQueue.index--,b=T.undoQueue.queue[T.undoQueue.index],T.undoQueue.inSequence=!0,d=0;d=T.undoQueue.queue.length)){for(b=T.undoQueue.queue[T.undoQueue.index],T.undoQueue.inSequence=!0,d=0;dn}function i(r,n){return r>=n}z.findBin=function(r,n,o){if(M(n.start))return o?Math.ceil((r-n.start)/n.size-b)-1:Math.floor((r-n.start)/n.size+b);var a,u,p=0,c=n.length,x=0,g=c>1?(n[c-1]-n[0])/(c-1):1;for(u=g>=0?o?d:s:o?i:t,r+=g*b*(o?-1:1)*(g>=0?1:-1);p90&&k.log("Long binary search..."),p-1},z.sorterAsc=function(r,n){return r-n},z.sorterDes=function(r,n){return n-r},z.distinctVals=function(r){var n,o=r.slice();for(o.sort(z.sorterAsc),n=o.length-1;n>-1&&o[n]===T;n--);for(var a,u=o[n]-o[0]||1,p=u/(n||1)/1e4,c=[],x=0;x<=n;x++){var g=o[x],h=g-a;a===void 0?(c.push(g),a=g):h>p&&(u=Math.min(u,h),c.push(g),a=g)}return{vals:c,minDiff:u}},z.roundUp=function(r,n,o){for(var a,u=0,p=n.length-1,c=0,x=o?0:1,g=o?1:0,h=o?Math.ceil:Math.floor;u0&&(a=1),o&&a)return r.sort(n)}return a?r:r.reverse()},z.findIndexOfMin=function(r,n){n=n||l;for(var o,a=1/0,u=0;ub.length)&&(d=b.length),M(T)||(T=!1),k(b[0])){for(t=new Array(d),s=0;sl.length-1)return l[l.length-1];var b=T%1;return b*l[Math.ceil(T)]+(1-b)*l[Math.floor(T)]}},78614:function(ee,z,e){var M=e(25075);ee.exports=function(k){return k?M(k):[0,0,0,1]}},3883:function(ee,z,e){var M=e(32396),k=e(91424),l=e(71828),T=null;ee.exports=function(){if(T!==null)return T;T=!1;var b=l.isIE()||l.isSafari()||l.isIOS();if(window.navigator.userAgent&&!b){var d=Array.from(M.CSS_DECLARATIONS).reverse(),s=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof s=="function")T=d.some(function(r){return s.apply(null,r)});else{var t=k.tester.append("image").attr("style",M.STYLE),i=window.getComputedStyle(t.node()).imageRendering;T=d.some(function(r){var n=r[1];return i===n||i===n.toLowerCase()}),t.remove()}}return T}},63893:function(ee,z,e){var M=e(39898),k=e(71828),l=k.strTranslate,T=e(77922),b=e(18783).LINE_SPACING,d=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;z.convertToTspans=function(R,G,O){var V=R.text(),N=!R.attr("data-notex")&&G&&G._context.typesetMath&&typeof MathJax<"u"&&V.match(d),B=M.select(R.node().parentNode);if(!B.empty()){var H=R.attr("class")?R.attr("class").split(" ")[0]:"text";return H+="-math",B.selectAll("svg."+H).remove(),B.selectAll("g."+H+"-group").remove(),R.style("display",null).attr({"data-unformatted":V,"data-math":"N"}),N?(G&&G._promises||[]).push(new Promise(function(te){R.style("display","none");var K=parseInt(R.node().style.fontSize,10),J={fontSize:K};(function(Y,W,Q){var re,ie,oe,ce,pe=parseInt((MathJax.version||"").split(".")[0]);if(pe===2||pe===3){var ge=function(){var ye="math-output-"+k.randstr({},64),me=(ce=M.select("body").append("div").attr({id:ye}).style({visibility:"hidden",position:"absolute","font-size":W.fontSize+"px"}).text(Y.replace(s,"\\lt ").replace(t,"\\gt "))).node();return pe===2?MathJax.Hub.Typeset(me):MathJax.typeset([me])},we=function(){var ye=ce.select(pe===2?".MathJax_SVG":".MathJax"),me=!ye.empty()&&ce.select("svg").node();if(me){var Oe,ke=me.getBoundingClientRect();Oe=pe===2?M.select("body").select("#MathJax_SVG_glyphs"):ye.select("defs"),Q(ye,Oe,ke)}else k.log("There was an error in the tex syntax.",Y),Q();ce.remove()};pe===2?MathJax.Hub.Queue(function(){return ie=k.extendDeepAll({},MathJax.Hub.config),oe=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:i},displayAlign:"left"})},function(){if((re=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},ge,we,function(){if(re!=="SVG")return MathJax.Hub.setRenderer(re)},function(){return oe!==void 0&&(MathJax.Hub.processSectionDelay=oe),MathJax.Hub.Config(ie)}):pe===3&&(ie=k.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=i,(re=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){ge(),we(),re!=="svg"&&(MathJax.config.startup.output=re),MathJax.config=ie}))}else k.warn("No MathJax version:",MathJax.version)})(N[2],J,function(Y,W,Q){B.selectAll("svg."+H).remove(),B.selectAll("g."+H+"-group").remove();var re=Y&&Y.select("svg");if(!re||!re.node())return q(),void te();var ie=B.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":V,"data-math":"Y"});ie.node().appendChild(re.node()),W&&W.node()&&re.node().insertBefore(W.node().cloneNode(!0),re.node().firstChild);var oe=Q.width,ce=Q.height;re.attr({class:H,height:ce,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var pe=R.node().style.fill||"black",ge=re.select("g");ge.attr({fill:pe,stroke:pe});var we=ge.node().getBoundingClientRect(),ye=we.width,me=we.height;(ye>oe||me>ce)&&(re.style("overflow","hidden"),ye=(we=re.node().getBoundingClientRect()).width,me=we.height);var Oe=+R.attr("x"),ke=+R.attr("y"),Te=-(K||R.node().getBoundingClientRect().height)/4;if(H[0]==="y")ie.attr({transform:"rotate("+[-90,Oe,ke]+")"+l(-ye/2,Te-me/2)});else if(H[0]==="l")ke=Te-me/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Oe=0,ke=Te;else{var le=R.attr("text-anchor");Oe-=ye*(le==="middle"?.5:le==="end"?1:0),ke=ke+Te-me/2}re.attr({x:Oe,y:ke}),O&&O.call(R,ie),te(ie)})})):q(),R}function q(){B.empty()||(H=R.attr("class")+"-math",B.select("svg."+H).remove()),R.text("").style("white-space","pre");var te=function(K,J){J=J.replace(p," ");var Y,W=!1,Q=[],re=-1;function ie(){re++;var Ee=document.createElementNS(T.svg,"tspan");M.select(Ee).attr({class:"line",dy:re*b+"em"}),K.appendChild(Ee),Y=Ee;var _e=Q;if(Q=[{node:Ee}],_e.length>1)for(var ze=1;ze<_e.length;ze++)oe(_e[ze])}function oe(Ee){var _e,ze=Ee.type,Ne={};if(ze==="a"){_e="a";var fe=Ee.target,Me=Ee.href,be=Ee.popup;Me&&(Ne={"xlink:xlink:show":fe==="_blank"||fe.charAt(0)!=="_"?"new":"replace",target:fe,"xlink:xlink:href":Me},be&&(Ne.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+be+'");return false;'))}else _e="tspan";Ee.style&&(Ne.style=Ee.style);var Ce=document.createElementNS(T.svg,_e);if(ze==="sup"||ze==="sub"){ce(Y,a),Y.appendChild(Ce);var Fe=document.createElementNS(T.svg,"tspan");ce(Fe,a),M.select(Fe).attr("dy",o[ze]),Ne.dy=n[ze],Y.appendChild(Ce),Y.appendChild(Fe)}else Y.appendChild(Ce);M.select(Ce).attr(Ne),Y=Ee.node=Ce,Q.push(Ee)}function ce(Ee,_e){Ee.appendChild(document.createTextNode(_e))}function pe(Ee){if(Q.length!==1){var _e=Q.pop();Ee!==_e.type&&k.log("Start tag <"+_e.type+"> doesnt match end tag <"+Ee+">. Pretending it did match.",J),Y=Q[Q.length-1].node}else k.log("Ignoring unexpected end tag .",J)}g.test(J)?ie():(Y=K,Q=[{node:K}]);for(var ge=J.split(c),we=0;we|>|>)/g,i=[["$","$"],["\\(","\\)"]],r={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},n={sub:"0.3em",sup:"-0.6em"},o={sub:"-0.21em",sup:"0.42em"},a="\u200B",u=["http:","https:","mailto:","",void 0,":"],p=z.NEWLINES=/(\r\n?|\n)/g,c=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,g=//i;z.BR_TAG_ALL=//gi;var h=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,m=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,v=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,y=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _(R,G){if(!R)return null;var O=R.match(G),V=O&&(O[3]||O[4]);return V&&E(V)}var f=/(^|;)\s*color:/;z.plainText=function(R,G){for(var O=(G=G||{}).len!==void 0&&G.len!==-1?G.len:1/0,V=G.allowedTags!==void 0?G.allowedTags:["br"],N=R.split(c),B=[],H="",q=0,te=0;te3?B.push(K.substr(0,Q-3)+"..."):B.push(K.substr(0,Q));break}H=""}}return B.join("")};var S={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},w=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(R){return R.replace(w,function(G,O){return(O.charAt(0)==="#"?function(V){if(!(V>1114111)){var N=String.fromCodePoint;if(N)return N(V);var B=String.fromCharCode;return V<=65535?B(V):B(55232+(V>>10),V%1024+56320)}}(O.charAt(1)==="x"?parseInt(O.substr(2),16):parseInt(O.substr(1),10)):S[O])||G})}function L(R){var G=encodeURI(decodeURI(R)),O=document.createElement("a"),V=document.createElement("a");O.href=R,V.href=G;var N=O.protocol,B=V.protocol;return u.indexOf(N)!==-1&&u.indexOf(B)!==-1?G:""}function C(R,G,O){var V,N,B,H=O.horizontalAlign,q=O.verticalAlign||"top",te=R.node().getBoundingClientRect(),K=G.node().getBoundingClientRect();return N=q==="bottom"?function(){return te.bottom-V.height}:q==="middle"?function(){return te.top+(te.height-V.height)/2}:function(){return te.top},B=H==="right"?function(){return te.right-V.width}:H==="center"?function(){return te.left+(te.width-V.width)/2}:function(){return te.left},function(){V=this.node().getBoundingClientRect();var J=B()-K.left,Y=N()-K.top,W=O.gd||{};if(O.gd){W._fullLayout._calcInverseTransform(W);var Q=k.apply3DTransform(W._fullLayout._invTransform)(J,Y);J=Q[0],Y=Q[1]}return this.style({top:Y+"px",left:J+"px","z-index":1e3}),this}}z.convertEntities=E,z.sanitizeHTML=function(R){R=R.replace(p," ");for(var G=document.createElement("p"),O=G,V=[],N=R.split(c),B=0;Bb.ts+l?t():b.timer=setTimeout(function(){t(),b.timer=null},l)},z.done=function(k){var l=e[k];return l&&l.timer?new Promise(function(T){var b=l.onDone;l.onDone=function(){b&&b(),T(),l.onDone=null}}):Promise.resolve()},z.clear=function(k){if(k)M(e[k]),delete e[k];else for(var l in e)z.clear(l)}},58163:function(ee,z,e){var M=e(92770);ee.exports=function(k,l){if(k>0)return Math.log(k)/Math.LN10;var T=Math.log(Math.min(l[0],l[1]))/Math.LN10;return M(T)||(T=Math.log(Math.max(l[0],l[1]))/Math.LN10-6),T}},90973:function(ee,z,e){var M=ee.exports={},k=e(78776).locationmodeToLayer,l=e(96892).zL;M.getTopojsonName=function(T){return[T.scope.replace(/ /g,"-"),"_",T.resolution.toString(),"m"].join("")},M.getTopojsonPath=function(T,b){return T+b+".json"},M.getTopojsonFeatures=function(T,b){var d=k[T.locationmode],s=b.objects[d];return l(b,s).features}},37815:function(ee){ee.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(ee){ee.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(ee,z,e){var M=e(73972);ee.exports=function(k){for(var l,T,b=M.layoutArrayContainers,d=M.layoutArrayRegexes,s=k.split("[")[0],t=0;t0&&T.log("Clearing previous rejected promises from queue."),m._promises=[]},z.cleanLayout=function(m){var v,y;m||(m={}),m.xaxis1&&(m.xaxis||(m.xaxis=m.xaxis1),delete m.xaxis1),m.yaxis1&&(m.yaxis||(m.yaxis=m.yaxis1),delete m.yaxis1),m.scene1&&(m.scene||(m.scene=m.scene1),delete m.scene1);var _=(b.subplotsRegistry.cartesian||{}).attrRegex,f=(b.subplotsRegistry.polar||{}).attrRegex,S=(b.subplotsRegistry.ternary||{}).attrRegex,w=(b.subplotsRegistry.gl3d||{}).attrRegex,E=Object.keys(m);for(v=0;v3?(Q.x=1.02,Q.xanchor="left"):Q.x<-2&&(Q.x=-.02,Q.xanchor="right"),Q.y>3?(Q.y=1.02,Q.yanchor="bottom"):Q.y<-2&&(Q.y=-.02,Q.yanchor="top")),o(m),m.dragmode==="rotate"&&(m.dragmode="orbit"),s.clean(m),m.template&&m.template.layout&&z.cleanLayout(m.template.layout),m},z.cleanData=function(m){for(var v=0;v0)return m.substr(0,v)}z.hasParent=function(m,v){for(var y=g(v);y;){if(y in m)return!0;y=g(y)}return!1};var h=["x","y","z"];z.clearAxisTypes=function(m,v,y){for(var _=0;_1&&l.warn("Full array edits are incompatible with other edits",a);var m=r[""][""];if(s(m))i.set(null);else{if(!Array.isArray(m))return l.warn("Unrecognized full array edit value",a,m),!0;i.set(m)}return!x&&(u(g,h),p(t),!0)}var v,y,_,f,S,w,E,L,C=Object.keys(r).map(Number).sort(T),P=i.get(),R=P||[],G=o(h,a).get(),O=[],V=-1,N=R.length;for(v=0;vR.length-(E?0:1))l.warn("index out of range",a,_);else if(w!==void 0)S.length>1&&l.warn("Insertion & removal are incompatible with edits to the same index.",a,_),s(w)?O.push(_):E?(w==="add"&&(w={}),R.splice(_,0,w),G&&G.splice(_,0,{})):l.warn("Unrecognized full object edit value",a,_,w),V===-1&&(V=_);else for(y=0;y=0;v--)R.splice(O[v],1),G&&G.splice(O[v],1);if(R.length?P||i.set(R):i.set(null),x)return!1;if(u(g,h),c!==k){var B;if(V===-1)B=C;else{for(N=Math.max(R.length,N),B=[],v=0;v=V);v++)B.push(_);for(v=V;v=ne.data.length||ze<-ne.data.length)throw new Error(Ee+" must be valid indices for gd.data.");if(ve.indexOf(ze,_e+1)>-1||ze>=0&&ve.indexOf(-ne.data.length+ze)>-1||ze<0&&ve.indexOf(ne.data.length+ze)>-1)throw new Error("each index in "+Ee+" must be unique.")}}function P(ne,ve,Ee){if(!Array.isArray(ne.data))throw new Error("gd.data must be an array.");if(ve===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ve)||(ve=[ve]),C(ne,ve,"currentIndices"),Ee===void 0||Array.isArray(Ee)||(Ee=[Ee]),Ee!==void 0&&C(ne,Ee,"newIndices"),Ee!==void 0&&ve.length!==Ee.length)throw new Error("current and new indices must be of equal length.")}function R(ne,ve,Ee,_e,ze){(function(He,Ge,Ke,at){var Qe=T.isPlainObject(at);if(!Array.isArray(He.data))throw new Error("gd.data must be an array");if(!T.isPlainObject(Ge))throw new Error("update must be a key:value object");if(Ke===void 0)throw new Error("indices must be an integer or array of integers");for(var vt in C(He,Ke,"indices"),Ge){if(!Array.isArray(Ge[vt])||Ge[vt].length!==Ke.length)throw new Error("attribute "+vt+" must be an array of length equal to indices array length");if(Qe&&(!(vt in at)||!Array.isArray(at[vt])||at[vt].length!==Ge[vt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ne,ve,Ee,_e);for(var Ne=function(He,Ge,Ke,at){var Qe,vt,xt,st,ot,mt=T.isPlainObject(at),Tt=[];for(var wt in Array.isArray(Ke)||(Ke=[Ke]),Ke=L(Ke,He.data.length-1),Ge)for(var Pt=0;Pt-1&&Ee.indexOf("grouptitlefont")===-1?Me(Ee,Ee.replace("titlefont","title.font")):Ee.indexOf("titleposition")>-1?Me(Ee,Ee.replace("titleposition","title.position")):Ee.indexOf("titleside")>-1?Me(Ee,Ee.replace("titleside","title.side")):Ee.indexOf("titleoffset")>-1&&Me(Ee,Ee.replace("titleoffset","title.offset")):Me(Ee,Ee.replace("title","title.text"));function Me(be,Ce){ne[Ce]=ne[be],delete ne[be]}}function te(ne,ve,Ee){ne=T.getGraphDiv(ne),h.clearPromiseQueue(ne);var _e={};if(typeof ve=="string")_e[ve]=Ee;else{if(!T.isPlainObject(ve))return T.warn("Relayout fail.",ve,Ee),Promise.reject();_e=T.extendFlat({},ve)}Object.keys(_e).length&&(ne.changed=!0);var ze=re(ne,_e),Ne=ze.flags;Ne.calc&&(ne.calcdata=void 0);var fe=[r.previousPromises];Ne.layoutReplot?fe.push(m.layoutReplot):Object.keys(_e).length&&(K(ne,Ne,ze)||r.supplyDefaults(ne),Ne.legend&&fe.push(m.doLegend),Ne.layoutstyle&&fe.push(m.layoutStyles),Ne.axrange&&J(fe,ze.rangesAltered),Ne.ticks&&fe.push(m.doTicksRelayout),Ne.modebar&&fe.push(m.doModeBar),Ne.camera&&fe.push(m.doCamera),Ne.colorbars&&fe.push(m.doColorBars),fe.push(f)),fe.push(r.rehover,r.redrag,r.reselect),s.add(ne,te,[ne,ze.undoit],te,[ne,ze.redoit]);var Me=T.syncOrAsync(fe,ne);return Me&&Me.then||(Me=Promise.resolve(ne)),Me.then(function(){return ne.emit("plotly_relayout",ze.eventData),ne})}function K(ne,ve,Ee){var _e=ne._fullLayout;if(!ve.axrange)return!1;for(var ze in ve)if(ze!=="axrange"&&ve[ze])return!1;for(var Ne in Ee.rangesAltered){var fe=n.id2name(Ne),Me=ne.layout[fe],be=_e[fe];be.autorange=Me.autorange;var Ce=be._rangeInitial0,Fe=be._rangeInitial1;if(Ce===void 0&&Fe!==void 0||Ce!==void 0&&Fe===void 0)return!1;if(Me.range&&(be.range=Me.range.slice()),be.cleanRange(),be._matchGroup){for(var Re in be._matchGroup)if(Re!==Ne){var He=_e[n.id2name(Re)];He.autorange=be.autorange,He.range=be.range.slice(),He._input.range=be.range.slice()}}}return!0}function J(ne,ve){var Ee=ve?function(_e){var ze=[];for(var Ne in ve){var fe=n.getFromId(_e,Ne);if(ze.push(Ne),(fe.ticklabelposition||"").indexOf("inside")!==-1&&fe._anchorAxis&&ze.push(fe._anchorAxis._id),fe._matchGroup)for(var Me in fe._matchGroup)ve[Me]||ze.push(Me)}return n.draw(_e,ze,{skipTitle:!0})}:function(_e){return n.draw(_e,"redraw")};ne.push(c,m.doAutoRangeAndConstraints,Ee,m.drawData,m.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,Q=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function re(ne,ve){var Ee,_e,ze,Ne=ne.layout,fe=ne._fullLayout,Me=fe._guiEditing,be=N(fe._preGUI,Me),Ce=Object.keys(ve),Fe=n.list(ne),Re=T.extendDeepAll({},ve),He={};for(q(ve),Ce=Object.keys(ve),_e=0;_e0&&typeof Pt.parts[Ye]!="string";)Ye--;var Xe=Pt.parts[Ye],Ve=Pt.parts[Ye-1]+"."+Xe,We=Pt.parts.slice(0,Ye).join("."),nt=b(ne.layout,We).get(),rt=b(fe,We).get(),Ie=Pt.get();if(Mt!==void 0){vt[wt]=Mt,xt[wt]=Xe==="reverse"?Mt:V(Ie);var De=i.getLayoutValObject(fe,Pt.parts);if(De&&De.impliedEdits&&Mt!==null)for(var et in De.impliedEdits)st(T.relativeAttr(wt,et),De.impliedEdits[et]);if(["width","height"].indexOf(wt)!==-1)if(Mt){st("autosize",null);var tt=wt==="height"?"width":"height";st(tt,fe[tt])}else fe[wt]=ne._initialAutoSize[wt];else if(wt==="autosize")st("width",Mt?null:fe.width),st("height",Mt?null:fe.height);else if(Ve.match(Y))Tt(Ve),b(fe,We+"._inputRange").set(null);else if(Ve.match(W)){Tt(Ve),b(fe,We+"._inputRange").set(null);var gt=b(fe,We).get();gt._inputDomain&&(gt._input.domain=gt._inputDomain.slice())}else Ve.match(Q)&&b(fe,We+"._inputDomain").set(null);if(Xe==="type"){ot=nt;var ht=rt.type==="linear"&&Mt==="log",dt=rt.type==="log"&&Mt==="linear";if(ht||dt){if(ot&&ot.range)if(rt.autorange)ht&&(ot.range=ot.range[1]>ot.range[0]?[1,2]:[2,1]);else{var ct=ot.range[0],kt=ot.range[1];ht?(ct<=0&&kt<=0&&st(We+".autorange",!0),ct<=0?ct=kt/1e6:kt<=0&&(kt=ct/1e6),st(We+".range[0]",Math.log(ct)/Math.LN10),st(We+".range[1]",Math.log(kt)/Math.LN10)):(st(We+".range[0]",Math.pow(10,ct)),st(We+".range[1]",Math.pow(10,kt)))}else st(We+".autorange",!0);Array.isArray(fe._subplots.polar)&&fe._subplots.polar.length&&fe[Pt.parts[0]]&&Pt.parts[1]==="radialaxis"&&delete fe[Pt.parts[0]]._subplot.viewInitial["radialaxis.range"],t.getComponentMethod("annotations","convertCoords")(ne,rt,Mt,st),t.getComponentMethod("images","convertCoords")(ne,rt,Mt,st)}else st(We+".autorange",!0),st(We+".range",null);b(fe,We+"._inputRange").set(null)}else if(Xe.match(y)){var ut=b(fe,wt).get(),ft=(Mt||{}).type;ft&&ft!=="-"||(ft="linear"),t.getComponentMethod("annotations","convertCoords")(ne,ut,ft,st),t.getComponentMethod("images","convertCoords")(ne,ut,ft,st)}var bt=g.containerArrayMatch(wt);if(bt){Ee=bt.array,_e=bt.index;var It=bt.property,Rt=De||{editType:"calc"};_e!==""&&It===""&&(g.isAddVal(Mt)?xt[wt]=null:g.isRemoveVal(Mt)?xt[wt]=(b(Ne,Ee).get()||[])[_e]:T.warn("unrecognized full object value",ve)),v.update(Qe,Rt),He[Ee]||(He[Ee]={});var Dt=He[Ee][_e];Dt||(Dt=He[Ee][_e]={}),Dt[It]=Mt,delete ve[wt]}else Xe==="reverse"?(nt.range?nt.range.reverse():(st(We+".autorange",!0),nt.range=[1,0]),rt.autorange?Qe.calc=!0:Qe.plot=!0):(wt==="dragmode"&&(Mt===!1&&Ie!==!1||Mt!==!1&&Ie===!1)||fe._has("scatter-like")&&fe._has("regl")&&wt==="dragmode"&&(Mt==="lasso"||Mt==="select")&&Ie!=="lasso"&&Ie!=="select"||fe._has("gl2d")?Qe.plot=!0:De?v.update(Qe,De):Qe.calc=!0,Pt.set(Mt))}}for(Ee in He)g.applyContainerArrayChanges(ne,be(Ne,Ee),He[Ee],Qe,be)||(Qe.plot=!0);for(var Kt in mt){var qt=(ot=n.getFromId(ne,Kt))&&ot._constraintGroup;if(qt)for(var Wt in Qe.calc=!0,qt)mt[Wt]||(n.getFromId(ne,Wt)._constraintShrinkable=!0)}(ie(ne)||ve.height||ve.width)&&(Qe.plot=!0);var Ht=fe.shapes;for(_e=0;_e1;)if(_e.pop(),(Ee=b(ve,_e.join(".")+".uirevision").get())!==void 0)return Ee;return ve.uirevision}function me(ne,ve){for(var Ee=0;Ee=ze.length?ze[0]:ze[Ce]:ze}function Me(Ce){return Array.isArray(Ne)?Ce>=Ne.length?Ne[0]:Ne[Ce]:Ne}function be(Ce,Fe){var Re=0;return function(){if(Ce&&++Re===Fe)return Ce()}}return _e._frameWaitingCnt===void 0&&(_e._frameWaitingCnt=0),new Promise(function(Ce,Fe){function Re(){ne.emit("plotly_animating"),_e._lastFrameAt=-1/0,_e._timeToNext=0,_e._runningTransitions=0,_e._currentFrame=null;var wt=function(){_e._animationRaf=window.requestAnimationFrame(wt),Date.now()-_e._lastFrameAt>_e._timeToNext&&function(){_e._currentFrame&&_e._currentFrame.onComplete&&_e._currentFrame.onComplete();var Pt=_e._currentFrame=_e._frameQueue.shift();if(Pt){var Mt=Pt.name?Pt.name.toString():null;ne._fullLayout._currentFrame=Mt,_e._lastFrameAt=Date.now(),_e._timeToNext=Pt.frameOpts.duration,r.transition(ne,Pt.frame.data,Pt.frame.layout,h.coerceTraceIndices(ne,Pt.frame.traces),Pt.frameOpts,Pt.transitionOpts).then(function(){Pt.onComplete&&Pt.onComplete()}),ne.emit("plotly_animatingframe",{name:Mt,frame:Pt.frame,animation:{frame:Pt.frameOpts,transition:Pt.transitionOpts}})}else ne.emit("plotly_animated"),window.cancelAnimationFrame(_e._animationRaf),_e._animationRaf=null}()};wt()}var He,Ge,Ke=0;function at(wt){return Array.isArray(ze)?Ke>=ze.length?wt.transitionOpts=ze[Ke]:wt.transitionOpts=ze[0]:wt.transitionOpts=ze,Ke++,wt}var Qe=[],vt=ve==null,xt=Array.isArray(ve);if(vt||xt||!T.isPlainObject(ve)){if(vt||["string","number"].indexOf(typeof ve)!==-1)for(He=0;He<_e._frames.length;He++)(Ge=_e._frames[He])&&(vt||String(Ge.group)===String(ve))&&Qe.push({type:"byname",name:String(Ge.name),data:at({name:Ge.name})});else if(xt)for(He=0;He0&&mtmt)&&Tt.push(Ge);Qe=Tt}}Qe.length>0?function(wt){if(wt.length!==0){for(var Pt=0;Pt=0;_e--)if(T.isPlainObject(ve[_e])){var He=ve[_e].name,Ge=(be[He]||Re[He]||{}).name,Ke=ve[_e].name,at=be[Ge]||Re[Ge];Ge&&Ke&&typeof Ke=="number"&&at&&_<5&&(_++,T.warn('addFrames: overwriting frame "'+(be[Ge]||Re[Ge]).name+'" with a frame whose name of type "number" also equates to "'+Ge+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),_===5&&T.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Re[He]={name:He},Fe.push({frame:r.supplyFrameDefaults(ve[_e]),index:Ee&&Ee[_e]!==void 0&&Ee[_e]!==null?Ee[_e]:Ce+_e})}Fe.sort(function(wt,Pt){return wt.index>Pt.index?-1:wt.index=0;_e--){if(typeof(ze=Fe[_e].frame).name=="number"&&T.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ze.name)for(;be[ze.name="frame "+ne._transitionData._counter++];);if(be[ze.name]){for(Ne=0;Ne=0;Ee--)_e=ve[Ee],Ne.push({type:"delete",index:_e}),fe.unshift({type:"insert",index:_e,value:ze[_e]});var Me=r.modifyFrames,be=r.modifyFrames,Ce=[ne,fe],Fe=[ne,Ne];return s&&s.add(ne,Me,Ce,be,Fe),r.modifyFrames(ne,Ne)},z.addTraces=function ne(ve,Ee,_e){ve=T.getGraphDiv(ve);var ze,Ne,fe=[],Me=z.deleteTraces,be=ne,Ce=[ve,fe],Fe=[ve,Ee];for(function(Re,He,Ge){var Ke,at;if(!Array.isArray(Re.data))throw new Error("gd.data must be an array.");if(He===void 0)throw new Error("traces must be defined.");for(Array.isArray(He)||(He=[He]),Ke=0;Ke=0&&Fe=0&&Fe=C.length)return!1;if(f.dimensions===2){if(w++,S.length===w)return f;var P=S[w];if(!h(P))return!1;f=C[L][P]}else f=C[L]}else f=C}}return f}function h(f){return f===Math.round(f)&&f>=0}function m(){var f,S,w={};for(f in i(w,T),M.subplotsRegistry)if((S=M.subplotsRegistry[f]).layoutAttributes)if(Array.isArray(S.attr))for(var E=0;E=P.length)return!1;E=(w=(M.transformsRegistry[P[R].type]||{}).attributes)&&w[S[2]],C=3}else{var G=f._module;if(G||(G=(M.modules[f.type||l.type.dflt]||{})._module),!G)return!1;if(!(E=(w=G.attributes)&&w[L])){var O=G.basePlotModule;O&&O.attributes&&(E=O.attributes[L])}E||(E=l[L])}return g(E,S,C)},z.getLayoutValObject=function(f,S){var w=function(E,L){var C,P,R,G,O=E._basePlotModules;if(O){var V;for(C=0;C=r&&(i._input||{})._templateitemname;o&&(n=r);var a,u=t+"["+n+"]";function p(){a={},o&&(a[u]={},a[u][l]=o)}function c(g,h){o?M.nestedProperty(a[u],g).set(h):a[u+"."+g]=h}function x(){var g=a;return p(),g}return p(),{modifyBase:function(g,h){a[g]=h},modifyItem:c,getUpdateObj:x,applyUpdate:function(g,h){g&&c(g,h);var m=x();for(var v in m)M.nestedProperty(s,v).set(m[v])}}}},61549:function(ee,z,e){var M=e(39898),k=e(73972),l=e(74875),T=e(71828),b=e(63893),d=e(33306),s=e(7901),t=e(91424),i=e(92998),r=e(64168),n=e(89298),o=e(18783),a=e(99082),u=a.enforce,p=a.clean,c=e(71739).doAutoRange,x="start";function g(_,f,S){for(var w=0;w=_[1]||E[1]<=_[0])&&L[0]f[0])return!0}return!1}function h(_){var f,S,w,E,L,C,P=_._fullLayout,R=P._size,G=R.p,O=n.list(_,"",!0);if(P._paperdiv.style({width:_._context.responsive&&P.autosize&&!_._context._hasZeroWidth&&!_.layout.width?"100%":P.width+"px",height:_._context.responsive&&P.autosize&&!_._context._hasZeroHeight&&!_.layout.height?"100%":P.height+"px"}).selectAll(".main-svg").call(t.setSize,P.width,P.height),_._context.setBackground(_,P.paper_bgcolor),z.drawMainTitle(_),r.manage(_),!P._has("cartesian"))return l.previousPromises(_);function V(Re,He,Ge){var Ke=Re._lw/2;return Re._id.charAt(0)==="x"?He?Ge==="top"?He._offset-G-Ke:He._offset+He._length+G+Ke:R.t+R.h*(1-(Re.position||0))+Ke%1:He?Ge==="right"?He._offset+He._length+G+Ke:He._offset-G-Ke:R.l+R.w*(Re.position||0)+Ke%1}for(f=0;f.5?"t":"b",K=V._fullLayout.margin[te],J=0;return N.yref==="paper"?J=B+N.pad.t+N.pad.b:N.yref==="container"&&(J=function(Y,W,Q,re,ie){var oe=0;return Q==="middle"&&(oe+=ie/2),Y==="t"?(Q==="top"&&(oe+=ie),oe+=re-W*re):(Q==="bottom"&&(oe+=ie),oe+=W*re),oe}(te,H,q,V._fullLayout.height,B)+N.pad.t+N.pad.b),J>K?J:0}(_,S,G);O>0&&(function(V,N,B,H){var q="title.automargin",te=V._fullLayout.title,K=te.y>.5?"t":"b",J={x:te.x,y:te.y,t:0,b:0},Y={};te.yref==="paper"&&function(W,Q,re,ie,oe){var ce=Q.yref==="paper"?W._fullLayout._size.h:W._fullLayout.height,pe=T.isTopAnchor(Q)?ie:ie-oe,ge=re==="b"?ce-pe:pe;return!(T.isTopAnchor(Q)&&re==="t"||T.isBottomAnchor(Q)&&re==="b")&&geR?y.push({code:"unused",traceType:w,templateCount:P,dataCount:R}):R>P&&y.push({code:"reused",traceType:w,templateCount:P,dataCount:R})}}else y.push({code:"data"});if(function G(O,V){for(var N in O)if(N.charAt(0)!=="_"){var B=O[N],H=a(O,N,V);k(B)?(Array.isArray(O)&&B._template===!1&&B.templateitemname&&y.push({code:"missing",path:H,templateitemname:B.templateitemname}),G(B,H)):Array.isArray(B)&&u(B)&&G(B,H)}}({data:f,layout:_},""),y.length)return y.map(p)}},403:function(ee,z,e){var M=e(92770),k=e(72391),l=e(74875),T=e(71828),b=e(25095),d=e(5900),s=e(70942),t=e(11506).version,i={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};ee.exports=function(r,n){var o,a,u,p;function c(R){return!(R in n)||T.validate(n[R],i[R])}if(n=n||{},T.isPlainObject(r)?(o=r.data||[],a=r.layout||{},u=r.config||{},p={}):(r=T.getGraphDiv(r),o=T.extendDeep([],r.data),a=T.extendDeep({},r.layout),u=r._context,p=r._fullLayout||{}),!c("width")&&n.width!==null||!c("height")&&n.height!==null)throw new Error("Height and width should be pixel values.");if(!c("format"))throw new Error("Export format is not "+T.join2(i.format.values,", "," or ")+".");var x={};function g(R,G){return T.coerce(n,x,i,R,G)}var h=g("format"),m=g("width"),v=g("height"),y=g("scale"),_=g("setBackground"),f=g("imageDataOnly"),S=document.createElement("div");S.style.position="absolute",S.style.left="-5000px",document.body.appendChild(S);var w=T.extendFlat({},a);m?w.width=m:n.width===null&&M(p.width)&&(w.width=p.width),v?w.height=v:n.height===null&&M(p.height)&&(w.height=p.height);var E=T.extendFlat({},u,{_exportedPlot:!0,staticPlot:!0,setBackground:_}),L=b.getRedrawFunc(S);function C(){return new Promise(function(R){setTimeout(R,b.getDelay(S._fullLayout))})}function P(){return new Promise(function(R,G){var O=d(S,h,y),V=S._fullLayout.width,N=S._fullLayout.height;function B(){k.purge(S),document.body.removeChild(S)}if(h==="full-json"){var H=l.graphJson(S,!1,"keepdata","object",!0,!0);return H.version=t,H=JSON.stringify(H),B(),R(f?H:b.encodeJSON(H))}if(B(),h==="svg")return R(f?O:b.encodeSVG(O));var q=document.createElement("canvas");q.id=T.randstr(),s({format:h,width:V,height:N,scale:y,canvas:q,svg:O,promise:!0}).then(R).catch(G)})}return new Promise(function(R,G){k.newPlot(S,o,w,E).then(L).then(C).then(P).then(function(O){R(function(V){return f?V.replace(b.IMAGE_URL_PREFIX,""):V}(O))}).catch(function(O){G(O)})})}},84936:function(ee,z,e){var M=e(71828),k=e(74875),l=e(86281),T=e(72075).dfltConfig,b=M.isPlainObject,d=Array.isArray,s=M.isArrayOrTypedArray;function t(c,x,g,h,m,v){v=v||[];for(var y=Object.keys(c),_=0;_E.length&&h.push(n("unused",m,S.concat(E.length)));var O,V,N,B,H,q=E.length,te=Array.isArray(G);if(te&&(q=Math.min(q,G.length)),L.dimensions===2)for(V=0;VE[V].length&&h.push(n("unused",m,S.concat(V,E[V].length)));var K=E[V].length;for(O=0;O<(te?Math.min(K,G[V].length):K);O++)N=te?G[V][O]:G,B=w[V][O],H=E[V][O],M.validate(B,N)?H!==B&&H!==+B&&h.push(n("dynamic",m,S.concat(V,O),B,H)):h.push(n("value",m,S.concat(V,O),B))}else h.push(n("array",m,S.concat(V),w[V]));else for(V=0;V1&&v.push(n("object","layout"))),k.supplyDefaults(y);for(var _=y._fullData,f=g.length,S=0;S0&&Math.round(a)===a))return{vals:i};n=a}for(var u=s.calendar,p=r==="start",c=r==="end",x=d[t+"period0"],g=l(x,u)||0,h=[],m=[],v=[],y=i.length,_=0;_E;)w=T(w,-n,u);for(;w<=E;)w=T(w,n,u);S=T(w,-n,u)}else{for(w=g+(f=Math.round((E-g)/o))*o;w>E;)w-=o;for(;w<=E;)w+=o;S=w-o}h[_]=p?S:c?w:(S+w)/2,m[_]=S,v[_]=w}return{vals:h,starts:m,ends:v}}},89502:function(ee){ee.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(ee,z,e){var M=e(39898),k=e(92770),l=e(71828),T=e(50606).FP_SAFE,b=e(73972),d=e(91424),s=e(41675),t=s.getFromId,i=s.isLinked;function r(_,f){var S,w,E=[],L=_._fullLayout,C=o(L,f,0),P=o(L,f,1),R=u(_,f),G=R.min,O=R.max;if(G.length===0||O.length===0)return l.simpleMap(f.range,f.r2l);var V=G[0].val,N=O[0].val;for(S=1;S0&&((W=ce-C(te)-P(K))>pe?Q/W>ge&&(J=te,Y=K,ge=Q/W):Q/ce>ge&&(J={val:te.val,nopad:1},Y={val:K.val,nopad:1},ge=Q/ce));if(V===N){var we=V-1,ye=V+1;if(ie)if(V===0)E=[0,1];else{var me=(V>0?O:G).reduce(function(ke,Te){return Math.max(ke,P(Te))},0),Oe=V/(1-Math.min(.5,me/ce));E=V>0?[0,Oe]:[Oe,0]}else E=oe?[Math.max(0,we),Math.max(1,ye)]:[we,ye]}else ie?(J.val>=0&&(J={val:0,nopad:1}),Y.val<=0&&(Y={val:0,nopad:1})):oe&&(J.val-ge*C(J)<0&&(J={val:0,nopad:1}),Y.val<=0&&(Y={val:1,nopad:1})),ge=(Y.val-J.val-n(f,te.val,K.val))/(ce-C(J)-P(Y)),E=[J.val-ge*C(J),Y.val+ge*P(Y)];return E=y(E,f),f.limitRange&&f.limitRange(),H&&E.reverse(),l.simpleMap(E,f.l2r||Number)}function n(_,f,S){var w=0;if(_.rangebreaks)for(var E=_.locateBreaks(f,S),L=0;L0?S.ppadplus:S.ppadminus)||S.ppad||0),re=W((_._m>0?S.ppadminus:S.ppadplus)||S.ppad||0),ie=W(S.vpadplus||S.vpad),oe=W(S.vpadminus||S.vpad);if(!J){if(O=1/0,V=-1/0,K)for(w=0;w0&&(O=E),E>V&&E-T&&(O=E),E>V&&E=ge;w--)pe(w);return{min:N,max:B,opts:S}},concatExtremes:u};var a=3;function u(_,f,S){var w,E,L,C=f._id,P=_._fullData,R=_._fullLayout,G=[],O=[];function V(te,K){for(w=0;w=S&&(G.extrapad||!C)){P=!1;break}E(f,G.val)&&G.pad<=S&&(C||!G.extrapad)&&(_.splice(R,1),R--)}if(P){var O=L&&f===0;_.push({val:f,pad:O?0:S,extrapad:!O&&C})}}function g(_){return k(_)&&Math.abs(_)=f}function v(_,f,S){return f===void 0||S===void 0||(f=_.d2l(f))<_.d2l(S)}function y(_,f){if(!f||!f.autorangeoptions)return _;var S=_[0],w=_[1],E=f.autorangeoptions.include;if(E!==void 0){var L=f.d2l(S),C=f.d2l(w);l.isArrayOrTypedArray(E)||(E=[E]);for(var P=0;P=R&&(L=R,S=R),C<=R&&(C=R,w=R)}}return S=function(G,O){var V=O.autorangeoptions;return V&&V.minallowed!==void 0&&v(O,V.minallowed,V.maxallowed)?V.minallowed:V&&V.clipmin!==void 0&&v(O,V.clipmin,V.clipmax)?Math.max(G,O.d2l(V.clipmin)):G}(S,f),w=function(G,O){var V=O.autorangeoptions;return V&&V.maxallowed!==void 0&&v(O,V.minallowed,V.maxallowed)?V.maxallowed:V&&V.clipmax!==void 0&&v(O,V.clipmin,V.clipmax)?Math.min(G,O.d2l(V.clipmax)):G}(w,f),[S,w]}},23074:function(ee){ee.exports=function(z,e,M){var k,l;if(M){var T=e==="reversed"||e==="min reversed"||e==="max reversed";k=M[T?1:0],l=M[T?0:1]}var b=z("autorangeoptions.minallowed",l===null?k:void 0),d=z("autorangeoptions.maxallowed",k===null?l:void 0);b===void 0&&z("autorangeoptions.clipmin"),d===void 0&&z("autorangeoptions.clipmax"),z("autorangeoptions.include")}},89298:function(ee,z,e){var M=e(39898),k=e(92770),l=e(74875),T=e(73972),b=e(71828),d=b.strTranslate,s=e(63893),t=e(92998),i=e(7901),r=e(91424),n=e(13838),o=e(66287),a=e(50606),u=a.ONEMAXYEAR,p=a.ONEAVGYEAR,c=a.ONEMINYEAR,x=a.ONEMAXQUARTER,g=a.ONEAVGQUARTER,h=a.ONEMINQUARTER,m=a.ONEMAXMONTH,v=a.ONEAVGMONTH,y=a.ONEMINMONTH,_=a.ONEWEEK,f=a.ONEDAY,S=f/2,w=a.ONEHOUR,E=a.ONEMIN,L=a.ONESEC,C=a.MINUS_SIGN,P=a.BADNUM,R={K:"zeroline"},G={K:"gridline",L:"path"},O={K:"minor-gridline",L:"path"},V={K:"tick",L:"path"},N={K:"tick",L:"text"},B={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=e(18783),q=H.MID_SHIFT,te=H.CAP_SHIFT,K=H.LINE_SPACING,J=H.OPPOSITE_SIDE,Y=ee.exports={};Y.setConvert=e(21994);var W=e(4322),Q=e(41675),re=Q.idSort,ie=Q.isLinked;Y.id2name=Q.id2name,Y.name2id=Q.name2id,Y.cleanId=Q.cleanId,Y.list=Q.list,Y.listIds=Q.listIds,Y.getFromId=Q.getFromId,Y.getFromTrace=Q.getFromTrace;var oe=e(71739);Y.getAutoRange=oe.getAutoRange,Y.findExtremes=oe.findExtremes;var ce=1e-4;function pe(Ie){var De=(Ie[1]-Ie[0])*ce;return[Ie[0]-De,Ie[1]+De]}Y.coerceRef=function(Ie,De,et,tt,gt,ht){var dt=tt.charAt(tt.length-1),ct=et._fullLayout._subplots[dt+"axis"],kt=tt+"ref",ut={};return gt||(gt=ct[0]||(typeof ht=="string"?ht:ht[0])),ht||(ht=gt),ct=ct.concat(ct.map(function(ft){return ft+" domain"})),ut[kt]={valType:"enumerated",values:ct.concat(ht?typeof ht=="string"?[ht]:ht:[]),dflt:gt},b.coerce(Ie,De,ut,kt)},Y.getRefType=function(Ie){return Ie===void 0?Ie:Ie==="paper"?"paper":Ie==="pixel"?"pixel":/( domain)$/.test(Ie)?"domain":"range"},Y.coercePosition=function(Ie,De,et,tt,gt,ht){var dt,ct;if(Y.getRefType(tt)!=="range")dt=b.ensureNumber,ct=et(gt,ht);else{var kt=Y.getFromId(De,tt);ct=et(gt,ht=kt.fraction2r(ht)),dt=kt.cleanPos}Ie[gt]=dt(ct)},Y.cleanPosition=function(Ie,De,et){return(et==="paper"||et==="pixel"?b.ensureNumber:Y.getFromId(De,et).cleanPos)(Ie)},Y.redrawComponents=function(Ie,De){De=De||Y.listIds(Ie);var et=Ie._fullLayout;function tt(gt,ht,dt,ct){for(var kt=T.getComponentMethod(gt,ht),ut={},ft=0;ftet&&ft2e-6||((et-Ie._forceTick0)/Ie._minDtick%1+1.000001)%1>2e-6)&&(Ie._minDtick=0)):Ie._minDtick=0},Y.saveRangeInitial=function(Ie,De){for(var et=Y.list(Ie,"",!0),tt=!1,gt=0;gt.3*vn||rn(hn)||rn(yn))){var Mn=Ht.dtick/2;qt+=qt+Mn.8){var jt=Number(Ht.substr(1));un.exactYears>.8&&jt%12==0?qt=Y.tickIncrement(qt,"M6","reverse")+1.5*f:un.exactMonths>.8?qt=Y.tickIncrement(qt,"M1","reverse")+15.5*f:qt-=S;var nn=Y.tickIncrement(qt,Ht);if(nn<=hn)return nn}return qt}(Kt,Ie,Dt,ct,gt)),Rt=Kt;Rt<=kt;)Rt=Y.tickIncrement(Rt,Dt,!1,gt);return{start:De.c2r(Kt,0,gt),end:De.c2r(Rt,0,gt),size:Dt,_dataSpan:kt-ct}},Y.prepMinorTicks=function(Ie,De,et){if(!De.minor.dtick){delete Ie.dtick;var tt,gt=De.dtick&&k(De._tmin);if(gt){var ht=Y.tickIncrement(De._tmin,De.dtick,!0);tt=[De._tmin,.99*ht+.01*De._tmin]}else{var dt=b.simpleMap(De.range,De.r2l);tt=[dt[0],.8*dt[0]+.2*dt[1]]}if(Ie.range=b.simpleMap(tt,De.l2r),Ie._isMinor=!0,Y.prepTicks(Ie,et),gt){var ct=k(De.dtick),kt=k(Ie.dtick),ut=ct?De.dtick:+De.dtick.substring(1),ft=kt?Ie.dtick:+Ie.dtick.substring(1);ct&&kt?me(ut,ft)?ut===2*_&&ft===2*f&&(Ie.dtick=_):ut===2*_&&ft===3*f?Ie.dtick=_:ut!==_||(De._input.minor||{}).nticks?Oe(ut/ft,2.5)?Ie.dtick=ut/2:Ie.dtick=ut:Ie.dtick=f:String(De.dtick).charAt(0)==="M"?kt?Ie.dtick="M1":me(ut,ft)?ut>=12&&ft===2&&(Ie.dtick="M3"):Ie.dtick=De.dtick:String(Ie.dtick).charAt(0)==="L"?String(De.dtick).charAt(0)==="L"?me(ut,ft)||(Ie.dtick=Oe(ut/ft,2.5)?De.dtick/2:De.dtick):Ie.dtick="D1":Ie.dtick==="D2"&&+De.dtick>1&&(Ie.dtick=1)}Ie.range=De.range}De.minor._tick0Init===void 0&&(Ie.tick0=De.tick0)},Y.prepTicks=function(Ie,De){var et=b.simpleMap(Ie.range,Ie.r2l,void 0,void 0,De);if(Ie.tickmode==="auto"||!Ie.dtick){var tt,gt=Ie.nticks;gt||(Ie.type==="category"||Ie.type==="multicategory"?(tt=Ie.tickfont?b.bigFont(Ie.tickfont.size||12):15,gt=Ie._length/tt):(tt=Ie._id.charAt(0)==="y"?40:80,gt=b.constrain(Ie._length/tt,4,9)+1),Ie._name==="radialaxis"&&(gt*=2)),Ie.minor&&Ie.minor.tickmode!=="array"||Ie.tickmode==="array"&&(gt*=100),Ie._roughDTick=Math.abs(et[1]-et[0])/gt,Y.autoTicks(Ie,Ie._roughDTick),Ie._minDtick>0&&Ie.dtick<2*Ie._minDtick&&(Ie.dtick=Ie._minDtick,Ie.tick0=Ie.l2r(Ie._forceTick0))}Ie.ticklabelmode==="period"&&function(ht){var dt;function ct(){return!(k(ht.dtick)||ht.dtick.charAt(0)!=="M")}var kt=ct(),ut=Y.getTickFormat(ht);if(ut){var ft=ht._dtickInit!==ht.dtick;/%[fLQsSMX]/.test(ut)||(/%[HI]/.test(ut)?(dt=w,ft&&!kt&&ht.dtick=(Wt?0:1);Ht--){var hn=!Ht;Ht?(Ie._dtickInit=Ie.dtick,Ie._tick0Init=Ie.tick0):(Ie.minor._dtickInit=Ie.minor.dtick,Ie.minor._tick0Init=Ie.minor.tick0);var yn=Ht?Ie:b.extendFlat({},Ie,Ie.minor);if(hn?Y.prepMinorTicks(yn,Ie,De):Y.prepTicks(yn,De),yn.tickmode!=="array")if(yn.tickmode!=="sync"){var un=pe(kt),jt=un[0],nn=un[1],Jt=k(yn.dtick),rn=gt==="log"&&!(Jt||yn.dtick.charAt(0)==="L"),fn=Y.tickFirst(yn,De);if(Ht){if(Ie._tmin=fn,fn=nn:bn<=nn;bn=Y.tickIncrement(bn,Ln,ut,ht)){if(Ht&&vn++,yn.rangebreaks&&!ut){if(bn=bt)break}if(Kt.length>It||bn===En)break;En=bn;var Wn={value:bn};Ht?(rn&&bn!==(0|bn)&&(Wn.simpleLabel=!0),dt>1&&vn%dt&&(Wn.skipLabel=!0),Kt.push(Wn)):(Wn.minor=!0,qt.push(Wn))}}else Kt=[],Rt=le(Ie);else Ht?(Kt=[],Rt=se(Ie)):(qt=[],Dt=se(Ie))}if(Wt&&!(Ie.minor.ticks==="inside"&&Ie.ticks==="outside"||Ie.minor.ticks==="outside"&&Ie.ticks==="inside")){for(var Qn=Kt.map(function(At){return At.value}),ir=[],$n=0;$n0?(An=mn-1,sn=mn):(An=mn,sn=mn);var Yt,Xt=At[An].value,on=At[sn].value,ln=Math.abs(on-Xt),Sn=$t||ln,Cn=0;Sn>=c?Cn=ln>=c&&ln<=u?ln:p:$t===g&&Sn>=h?Cn=ln>=h&&ln<=x?ln:g:Sn>=y?Cn=ln>=y&&ln<=m?ln:v:$t===_&&Sn>=_?Cn=_:Sn>=f?Cn=f:$t===S&&Sn>=S?Cn=S:$t===w&&Sn>=w&&(Cn=w),Cn>=ln&&(Cn=ln,Yt=!0);var jn=xn+Cn;if(Gt.rangebreaks&&Cn>0){for(var Fn=0,Xn=0;Xn<84;Xn++){var Hn=(Xn+.5)/84;Gt.maskBreaks(xn*(1-Hn)+Hn*jn)!==P&&Fn++}(Cn*=Fn/84)||(At[mn].drop=!0),Yt&&ln>_&&(Cn=ln)}(Cn>0||mn===0)&&(At[mn].periodX=xn+Cn/2)}}(Kt,Ie,Ie._definedDelta),Ie.rangebreaks){var cn=Ie._id.charAt(0)==="y",dn=1;Ie.tickmode==="auto"&&(dn=Ie.tickfont?Ie.tickfont.size:12);var kn=NaN;for(et=Kt.length-1;et>-1;et--)if(Kt[et].drop)Kt.splice(et,1);else{Kt[et].value=Ve(Kt[et].value,Ie);var Vn=Ie.c2p(Kt[et].value);(cn?kn>Vn-dn:knbt||znbt&&(In.periodX=bt),zn10||tt.substr(5)!=="01-01"?Ie._tickround="d":Ie._tickround=+De.substr(1)%12==0?"y":"m";else if(De>=f&><=10||De>=15*f)Ie._tickround="d";else if(De>=E&><=16||De>=w)Ie._tickround="M";else if(De>=L&><=19||De>=E)Ie._tickround="S";else{var ht=Ie.l2r(et+De).replace(/^-/,"").length;Ie._tickround=Math.max(gt,ht)-20,Ie._tickround<0&&(Ie._tickround=4)}}else if(k(De)||De.charAt(0)==="L"){var dt=Ie.range.map(Ie.r2d||Number);k(De)||(De=Number(De.substr(1))),Ie._tickround=2-Math.floor(Math.log(De)/Math.LN10+.01);var ct=Math.max(Math.abs(dt[0]),Math.abs(dt[1])),kt=Math.floor(Math.log(ct)/Math.LN10+.01),ut=Ie.minexponent===void 0?3:Ie.minexponent;Math.abs(kt)>ut&&(Re(Ie.exponentformat)&&!He(kt)?Ie._tickexponent=3*Math.round((kt-1)/3):Ie._tickexponent=kt)}else Ie._tickround=null}function Ce(Ie,De,et){var tt=Ie.tickfont||{};return{x:De,dx:0,dy:0,text:et||"",fontSize:tt.size,font:tt.family,fontColor:tt.color}}Y.autoTicks=function(Ie,De,et){var tt;function gt(bt){return Math.pow(bt,Math.floor(Math.log(De)/Math.LN10))}if(Ie.type==="date"){Ie.tick0=b.dateTick0(Ie.calendar,0);var ht=2*De;if(ht>p)De/=p,tt=gt(10),Ie.dtick="M"+12*Me(De,tt,ne);else if(ht>v)De/=v,Ie.dtick="M"+Me(De,1,ve);else if(ht>f){if(Ie.dtick=Me(De,f,Ie._hasDayOfWeekBreaks?[1,2,7,14]:_e),!et){var dt=Y.getTickFormat(Ie),ct=Ie.ticklabelmode==="period";ct&&(Ie._rawTick0=Ie.tick0),/%[uVW]/.test(dt)?Ie.tick0=b.dateTick0(Ie.calendar,2):Ie.tick0=b.dateTick0(Ie.calendar,1),ct&&(Ie._dowTick0=Ie.tick0)}}else ht>w?Ie.dtick=Me(De,w,ve):ht>E?Ie.dtick=Me(De,E,Ee):ht>L?Ie.dtick=Me(De,L,Ee):(tt=gt(10),Ie.dtick=Me(De,tt,ne))}else if(Ie.type==="log"){Ie.tick0=0;var kt=b.simpleMap(Ie.range,Ie.r2l);if(Ie._isMinor&&(De*=1.5),De>.7)Ie.dtick=Math.ceil(De);else if(Math.abs(kt[1]-kt[0])<1){var ut=1.5*Math.abs((kt[1]-kt[0])/De);De=Math.abs(Math.pow(10,kt[1])-Math.pow(10,kt[0]))/ut,tt=gt(10),Ie.dtick="L"+Me(De,tt,ne)}else Ie.dtick=De>.3?"D2":"D1"}else Ie.type==="category"||Ie.type==="multicategory"?(Ie.tick0=0,Ie.dtick=Math.ceil(Math.max(De,1))):Xe(Ie)?(Ie.tick0=0,tt=1,Ie.dtick=Me(De,tt,fe)):(Ie.tick0=0,tt=gt(10),Ie.dtick=Me(De,tt,ne));if(Ie.dtick===0&&(Ie.dtick=1),!k(Ie.dtick)&&typeof Ie.dtick!="string"){var ft=Ie.dtick;throw Ie.dtick=1,"ax.dtick error: "+String(ft)}},Y.tickIncrement=function(Ie,De,et,tt){var gt=et?-1:1;if(k(De))return b.increment(Ie,gt*De);var ht=De.charAt(0),dt=gt*Number(De.substr(1));if(ht==="M")return b.incrementMonth(Ie,dt,tt);if(ht==="L")return Math.log(Math.pow(10,Ie)+dt)/Math.LN10;if(ht==="D"){var ct=De==="D2"?Ne:ze,kt=Ie+.01*gt,ut=b.roundUp(b.mod(kt,1),ct,et);return Math.floor(kt)+Math.log(M.round(Math.pow(10,ut),1))/Math.LN10}throw"unrecognized dtick "+String(De)},Y.tickFirst=function(Ie,De){var et=Ie.r2l||Number,tt=b.simpleMap(Ie.range,et,void 0,void 0,De),gt=tt[1] ")}else qt._prevDateHead=jt,nn+="
"+jt;Wt.text=nn}(Ie,ht,et,ct):kt==="log"?function(qt,Wt,Ht,hn,yn){var un=qt.dtick,jt=Wt.x,nn=qt.tickformat,Jt=typeof un=="string"&&un.charAt(0);if(yn==="never"&&(yn=""),hn&&Jt!=="L"&&(un="L3",Jt="L"),nn||Jt==="L")Wt.text=Ge(Math.pow(10,jt),qt,yn,hn);else if(k(un)||Jt==="D"&&b.mod(jt+.01,1)<.1){var rn=Math.round(jt),fn=Math.abs(rn),vn=qt.exponentformat;vn==="power"||Re(vn)&&He(rn)?(Wt.text=rn===0?1:rn===1?"10":"10"+(rn>1?"":C)+fn+"",Wt.fontSize*=1.25):(vn==="e"||vn==="E")&&fn>2?Wt.text="1"+vn+(rn>0?"+":C)+fn:(Wt.text=Ge(Math.pow(10,jt),qt,"","fakehover"),un==="D1"&&qt._id.charAt(0)==="y"&&(Wt.dy-=Wt.fontSize/6))}else{if(Jt!=="D")throw"unrecognized dtick "+String(un);Wt.text=String(Math.round(Math.pow(10,b.mod(jt,1)))),Wt.fontSize*=.75}if(qt.dtick==="D1"){var Mn=String(Wt.text).charAt(0);Mn!=="0"&&Mn!=="1"||(qt._id.charAt(0)==="y"?Wt.dx-=Wt.fontSize/4:(Wt.dy+=Wt.fontSize/2,Wt.dx+=(qt.range[1]>qt.range[0]?1:-1)*Wt.fontSize*(jt<0?.5:.25)))}}(Ie,ht,0,ct,Rt):kt==="category"?function(qt,Wt){var Ht=qt._categories[Math.round(Wt.x)];Ht===void 0&&(Ht=""),Wt.text=String(Ht)}(Ie,ht):kt==="multicategory"?function(qt,Wt,Ht){var hn=Math.round(Wt.x),yn=qt._categories[hn]||[],un=yn[1]===void 0?"":String(yn[1]),jt=yn[0]===void 0?"":String(yn[0]);Ht?Wt.text=jt+" - "+un:(Wt.text=un,Wt.text2=jt)}(Ie,ht,et):Xe(Ie)?function(qt,Wt,Ht,hn,yn){if(qt.thetaunit!=="radians"||Ht)Wt.text=Ge(Wt.x,qt,yn,hn);else{var un=Wt.x/180;if(un===0)Wt.text="0";else{var jt=function(Jt){function rn(En,bn){return Math.abs(En-bn)<=1e-6}var fn=function(En){for(var bn=1;!rn(Math.round(En*bn)/bn,En);)bn*=10;return bn}(Jt),vn=Jt*fn,Mn=Math.abs(function En(bn,Ln){return rn(Ln,0)?bn:En(Ln,bn%Ln)}(vn,fn));return[Math.round(vn/Mn),Math.round(fn/Mn)]}(un);if(jt[1]>=100)Wt.text=Ge(b.deg2rad(Wt.x),qt,yn,hn);else{var nn=Wt.x<0;jt[1]===1?jt[0]===1?Wt.text="\u03C0":Wt.text=jt[0]+"\u03C0":Wt.text=["",jt[0],"","\u2044","",jt[1],"","\u03C0"].join(""),nn&&(Wt.text=C+Wt.text)}}}}(Ie,ht,et,ct,Rt):function(qt,Wt,Ht,hn,yn){yn==="never"?yn="":qt.showexponent==="all"&&Math.abs(Wt.x/qt.dtick)<1e-6&&(yn="hide"),Wt.text=Ge(Wt.x,qt,yn,hn)}(Ie,ht,0,ct,Rt),tt||(Ie.tickprefix&&!It(Ie.showtickprefix)&&(ht.text=Ie.tickprefix+ht.text),Ie.ticksuffix&&!It(Ie.showticksuffix)&&(ht.text+=Ie.ticksuffix)),Ie.labelalias&&Ie.labelalias.hasOwnProperty(ht.text)){var Dt=Ie.labelalias[ht.text];typeof Dt=="string"&&(ht.text=Dt)}if(Ie.tickson==="boundaries"||Ie.showdividers){var Kt=function(qt){var Wt=Ie.l2p(qt);return Wt>=0&&Wt<=Ie._length?qt:null};ht.xbnd=[Kt(ht.x-.5),Kt(ht.x+Ie.dtick-.5)]}return ht},Y.hoverLabelText=function(Ie,De,et){et&&(Ie=b.extendFlat({},Ie,{hoverformat:et}));var tt=Array.isArray(De)?De[0]:De,gt=Array.isArray(De)?De[1]:void 0;if(gt!==void 0&>!==tt)return Y.hoverLabelText(Ie,tt,et)+" - "+Y.hoverLabelText(Ie,gt,et);var ht=Ie.type==="log"&&tt<=0,dt=Y.tickText(Ie,Ie.c2l(ht?-tt:tt),"hover").text;return ht?tt===0?"0":C+dt:dt};var Fe=["f","p","n","\u03BC","m","","k","M","G","T"];function Re(Ie){return Ie==="SI"||Ie==="B"}function He(Ie){return Ie>14||Ie<-15}function Ge(Ie,De,et,tt){var gt=Ie<0,ht=De._tickround,dt=et||De.exponentformat||"B",ct=De._tickexponent,kt=Y.getTickFormat(De),ut=De.separatethousands;if(tt){var ft={exponentformat:dt,minexponent:De.minexponent,dtick:De.showexponent==="none"?De.dtick:k(Ie)&&Math.abs(Ie)||1,range:De.showexponent==="none"?De.range.map(De.r2d):[0,Ie||1]};be(ft),ht=(Number(ft._tickround)||0)+4,ct=ft._tickexponent,De.hoverformat&&(kt=De.hoverformat)}if(kt)return De._numFormat(kt)(Ie).replace(/-/g,C);var bt,It=Math.pow(10,-ht)/2;if(dt==="none"&&(ct=0),(Ie=Math.abs(Ie))"+bt+"":dt==="B"&&ct===9?Ie+="B":Re(dt)&&(Ie+=Fe[ct/3+5])),gt?C+Ie:Ie}function Ke(Ie,De){if(Ie){var et=Object.keys(B).reduce(function(tt,gt){return De.indexOf(gt)!==-1&&B[gt].forEach(function(ht){tt[ht]=1}),tt},{});Object.keys(Ie).forEach(function(tt){et[tt]||(tt.length===1?Ie[tt]=0:delete Ie[tt])})}}function at(Ie,De){for(var et=[],tt={},gt=0;gt1&&et=gt.min&&Ie=0,Wt=ft(It,Rt[1])<=0;return(Dt||qt)&&(Kt||Wt)}if(Ie.tickformatstops&&Ie.tickformatstops.length>0)switch(Ie.type){case"date":case"linear":for(De=0;De=dt(gt)))){et=tt;break}break;case"log":for(De=0;De=0&>.unshift(gt.splice(ut,1).shift())}});var dt={false:{left:0,right:0}};return b.syncOrAsync(gt.map(function(ct){return function(){if(ct){var kt=Y.getFromId(Ie,ct);et||(et={}),et.axShifts=dt,et.overlayingShiftedAx=ht;var ut=Y.drawOne(Ie,kt,et);return kt._shiftPusher&&rt(kt,kt._fullDepth||0,dt,!0),kt._r=kt.range.slice(),kt._rl=b.simpleMap(kt._r,kt.r2l),ut}}}))},Y.drawOne=function(Ie,De,et){var tt,gt,ht,dt=(et=et||{}).axShifts||{},ct=et.overlayingShiftedAx||[];De.setScale();var kt=Ie._fullLayout,ut=De._id,ft=ut.charAt(0),bt=Y.counterLetter(ut),It=kt._plots[De._mainSubplot];if(It){if(De._shiftPusher=De.autoshift||ct.indexOf(De._id)!==-1||ct.indexOf(De.overlaying)!==-1,De._shiftPusher&De.anchor==="free"){var Rt=De.linewidth/2||0;De.ticks==="inside"&&(Rt+=De.ticklen),rt(De,Rt,dt,!0),rt(De,De.shift||0,dt,!1)}et.skipTitle===!0&&De._shift!==void 0||(De._shift=function(sn,Yt){return sn.autoshift?Yt[sn.overlaying][sn.side]:sn.shift||0}(De,dt));var Dt=It[ft+"axislayer"],Kt=De._mainLinePosition,qt=Kt+=De._shift,Wt=De._mainMirrorPosition,Ht=De._vals=Y.calcTicks(De),hn=[De.mirror,qt,Wt].join("_");for(tt=0;tt0?sn.bottom-Cn:0,jn))));var Fn=0,Xn=0;if(De._shiftPusher&&(Fn=Math.max(jn,sn.height>0?ln==="l"?Cn-sn.left:sn.right-Cn:0),De.title.text!==kt._dfltTitle[ft]&&(Xn=(De._titleStandoff||0)+(De._titleScoot||0),ln==="l"&&(Xn+=xt(De))),De._fullDepth=Math.max(Fn,Xn)),De.automargin){Yt={x:0,y:0,r:0,l:0,t:0,b:0};var Hn=[0,1],nr=typeof De._shift=="number"?De._shift:0;if(ft==="x"){if(ln==="b"?Yt[ln]=De._depth:(Yt[ln]=De._depth=Math.max(sn.width>0?Cn-sn.top:0,jn),Hn.reverse()),sn.width>0){var er=sn.right-(De._offset+De._length);er>0&&(Yt.xr=1,Yt.r=er);var tr=De._offset-sn.left;tr>0&&(Yt.xl=0,Yt.l=tr)}}else if(ln==="l"?(De._depth=Math.max(sn.height>0?Cn-sn.left:0,jn),Yt[ln]=De._depth-nr):(De._depth=Math.max(sn.height>0?sn.right-Cn:0,jn),Yt[ln]=De._depth+nr,Hn.reverse()),sn.height>0){var lr=sn.bottom-(De._offset+De._length);lr>0&&(Yt.yb=0,Yt.b=lr);var ur=De._offset-sn.top;ur>0&&(Yt.yt=1,Yt.t=ur)}Yt[bt]=De.anchor==="free"?De.position:De._anchorAxis.domain[Hn[0]],De.title.text!==kt._dfltTitle[ft]&&(Yt[ln]+=xt(De)+(De.title.standoff||0)),De.mirror&&De.anchor!=="free"&&((Xt={x:0,y:0,r:0,l:0,t:0,b:0})[Sn]=De.linewidth,De.mirror&&De.mirror!==!0&&(Xt[Sn]+=jn),De.mirror===!0||De.mirror==="ticks"?Xt[bt]=De._anchorAxis.domain[Hn[1]]:De.mirror!=="all"&&De.mirror!=="allticks"||(Xt[bt]=[De._counterDomainMin,De._counterDomainMax][Hn[1]]))}xn&&(on=T.getComponentMethod("rangeslider","autoMarginOpts")(Ie,De)),typeof De.automargin=="string"&&(Ke(Yt,De.automargin),Ke(Xt,De.automargin)),l.autoMargin(Ie,mt(De),Yt),l.autoMargin(Ie,Tt(De),Xt),l.autoMargin(Ie,wt(De),on)}),b.syncOrAsync($t)}}function An(sn){var Yt=ut+(sn||"tick");return yn[Yt]||(yn[Yt]=function(Xt,on){var ln,Sn,Cn,jn;return Xt._selections[on].size()?(ln=1/0,Sn=-1/0,Cn=1/0,jn=-1/0,Xt._selections[on].each(function(){var Fn=ot(this),Xn=r.bBox(Fn.node().parentNode);ln=Math.min(ln,Xn.top),Sn=Math.max(Sn,Xn.bottom),Cn=Math.min(Cn,Xn.left),jn=Math.max(jn,Xn.right)})):(ln=0,Sn=0,Cn=0,jn=0),{top:ln,bottom:Sn,left:Cn,right:jn,height:Sn-ln,width:jn-Cn}}(De,Yt)),yn[Yt]}},Y.getTickSigns=function(Ie,De){var et=Ie._id.charAt(0),tt={x:"top",y:"right"}[et],gt=Ie.side===tt?1:-1,ht=[-1,1,gt,-gt];return(De?(Ie.minor||{}).ticks:Ie.ticks)!=="inside"==(et==="x")&&(ht=ht.map(function(dt){return-dt})),Ie.side&&ht.push({l:-1,t:-1,r:1,b:1}[Ie.side.charAt(0)]),ht},Y.makeTransTickFn=function(Ie){return Ie._id.charAt(0)==="x"?function(De){return d(Ie._offset+Ie.l2p(De.x),0)}:function(De){return d(0,Ie._offset+Ie.l2p(De.x))}},Y.makeTransTickLabelFn=function(Ie){var De=function(gt){var ht=gt.ticklabelposition||"",dt=function(Wt){return ht.indexOf(Wt)!==-1},ct=dt("top"),kt=dt("left"),ut=dt("right"),ft=dt("bottom"),bt=dt("inside"),It=ft||kt||ct||ut;if(!It&&!bt)return[0,0];var Rt=gt.side,Dt=It?(gt.tickwidth||0)/2:0,Kt=3,qt=gt.tickfont?gt.tickfont.size:12;return(ft||ct)&&(Dt+=qt*te,Kt+=(gt.linewidth||0)/2),(kt||ut)&&(Dt+=(gt.linewidth||0)/2,Kt+=3),bt&&Rt==="top"&&(Kt-=qt*(1-te)),(kt||ct)&&(Dt=-Dt),Rt!=="bottom"&&Rt!=="right"||(Kt=-Kt),[It?Dt:0,bt?Kt:0]}(Ie),et=De[0],tt=De[1];return Ie._id.charAt(0)==="x"?function(gt){return d(et+Ie._offset+Ie.l2p(Qe(gt)),tt)}:function(gt){return d(tt,et+Ie._offset+Ie.l2p(Qe(gt)))}},Y.makeTickPath=function(Ie,De,et,tt){tt||(tt={});var gt=tt.minor;if(gt&&!Ie.minor)return"";var ht=tt.len!==void 0?tt.len:gt?Ie.minor.ticklen:Ie.ticklen,dt=Ie._id.charAt(0),ct=(Ie.linewidth||1)/2;return dt==="x"?"M0,"+(De+ct*et)+"v"+ht*et:"M"+(De+ct*et)+",0h"+ht*et},Y.makeLabelFns=function(Ie,De,et){var tt=Ie.ticklabelposition||"",gt=function(vn){return tt.indexOf(vn)!==-1},ht=gt("top"),dt=gt("left"),ct=gt("right"),kt=gt("bottom")||dt||ht||ct,ut=gt("inside"),ft=tt==="inside"&&Ie.ticks==="inside"||!ut&&Ie.ticks==="outside"&&Ie.tickson!=="boundaries",bt=0,It=0,Rt=ft?Ie.ticklen:0;if(ut?Rt*=-1:kt&&(Rt=0),ft&&(bt+=Rt,et)){var Dt=b.deg2rad(et);bt=Rt*Math.cos(Dt)+1,It=Rt*Math.sin(Dt)}Ie.showticklabels&&(ft||Ie.showline)&&(bt+=.2*Ie.tickfont.size);var Kt,qt,Wt,Ht,hn,yn={labelStandoff:bt+=(Ie.linewidth||1)/2*(ut?-1:1),labelShift:It},un=0,jt=Ie.side,nn=Ie._id.charAt(0),Jt=Ie.tickangle;if(nn==="x")Ht=(hn=!ut&&jt==="bottom"||ut&&jt==="top")?1:-1,ut&&(Ht*=-1),Kt=It*Ht,qt=De+bt*Ht,Wt=hn?1:-.2,Math.abs(Jt)===90&&(ut?Wt+=q:Wt=Jt===-90&&jt==="bottom"?te:Jt===90&&jt==="top"?q:.5,un=q/2*(Jt/90)),yn.xFn=function(vn){return vn.dx+Kt+un*vn.fontSize},yn.yFn=function(vn){return vn.dy+qt+vn.fontSize*Wt},yn.anchorFn=function(vn,Mn){if(kt){if(dt)return"end";if(ct)return"start"}return k(Mn)&&Mn!==0&&Mn!==180?Mn*Ht<0!==ut?"end":"start":"middle"},yn.heightFn=function(vn,Mn,En){return Mn<-60||Mn>60?-.5*En:Ie.side==="top"!==ut?-En:0};else if(nn==="y"){if(Ht=(hn=!ut&&jt==="left"||ut&&jt==="right")?1:-1,ut&&(Ht*=-1),Kt=bt,qt=It*Ht,Wt=0,ut||Math.abs(Jt)!==90||(Wt=Jt===-90&&jt==="left"||Jt===90&&jt==="right"?te:.5),ut){var rn=k(Jt)?+Jt:0;if(rn!==0){var fn=b.deg2rad(rn);un=Math.abs(Math.sin(fn))*te*Ht,Wt=0}}yn.xFn=function(vn){return vn.dx+De-(Kt+vn.fontSize*Wt)*Ht+un*vn.fontSize},yn.yFn=function(vn){return vn.dy+qt+vn.fontSize*q},yn.anchorFn=function(vn,Mn){return k(Mn)&&Math.abs(Mn)===90?"middle":hn?"end":"start"},yn.heightFn=function(vn,Mn,En){return Ie.side==="right"&&(Mn*=-1),Mn<-30?-En:Mn<30?-.5*En:0}}return yn},Y.drawTicks=function(Ie,De,et){et=et||{};var tt=De._id+"tick",gt=[].concat(De.minor&&De.minor.ticks?et.vals.filter(function(dt){return dt.minor&&!dt.noTick}):[]).concat(De.ticks?et.vals.filter(function(dt){return!dt.minor&&!dt.noTick}):[]),ht=et.layer.selectAll("path."+tt).data(gt,vt);ht.exit().remove(),ht.enter().append("path").classed(tt,1).classed("ticks",1).classed("crisp",et.crisp!==!1).each(function(dt){return i.stroke(M.select(this),dt.minor?De.minor.tickcolor:De.tickcolor)}).style("stroke-width",function(dt){return r.crispRound(Ie,dt.minor?De.minor.tickwidth:De.tickwidth,1)+"px"}).attr("d",et.path).style("display",null),nt(De,[V]),ht.attr("transform",et.transFn)},Y.drawGrid=function(Ie,De,et){if(et=et||{},De.tickmode!=="sync"){var tt=De._id+"grid",gt=De.minor&&De.minor.showgrid,ht=gt?et.vals.filter(function(Wt){return Wt.minor}):[],dt=De.showgrid?et.vals.filter(function(Wt){return!Wt.minor}):[],ct=et.counterAxis;if(ct&&Y.shouldShowZeroLine(Ie,De,ct))for(var kt=De.tickmode==="array",ut=0;ut=0;Dt--){var Kt=Dt?It:Rt;if(Kt){var qt=Kt.selectAll("path."+tt).data(Dt?dt:ht,vt);qt.exit().remove(),qt.enter().append("path").classed(tt,1).classed("crisp",et.crisp!==!1),qt.attr("transform",et.transFn).attr("d",et.path).each(function(Wt){return i.stroke(M.select(this),Wt.minor?De.minor.gridcolor:De.gridcolor||"#ddd")}).style("stroke-dasharray",function(Wt){return r.dashStyle(Wt.minor?De.minor.griddash:De.griddash,Wt.minor?De.minor.gridwidth:De.gridwidth)}).style("stroke-width",function(Wt){return(Wt.minor?bt:De._gw)+"px"}).style("display",null),typeof et.path=="function"&&qt.attr("d",et.path)}}nt(De,[G,O])}},Y.drawZeroLine=function(Ie,De,et){et=et||et;var tt=De._id+"zl",gt=Y.shouldShowZeroLine(Ie,De,et.counterAxis),ht=et.layer.selectAll("path."+tt).data(gt?[{x:0,id:De._id}]:[]);ht.exit().remove(),ht.enter().append("path").classed(tt,1).classed("zl",1).classed("crisp",et.crisp!==!1).each(function(){et.layer.selectAll("path").sort(function(dt,ct){return re(dt.id,ct.id)})}),ht.attr("transform",et.transFn).attr("d",et.path).call(i.stroke,De.zerolinecolor||i.defaultLine).style("stroke-width",r.crispRound(Ie,De.zerolinewidth,De._gw||1)+"px").style("display",null),nt(De,[R])},Y.drawLabels=function(Ie,De,et){et=et||{};var tt=Ie._fullLayout,gt=De._id,ht=gt.charAt(0),dt=et.cls||gt+"tick",ct=et.vals.filter(function(Ht){return Ht.text}),kt=et.labelFns,ut=et.secondary?0:De.tickangle,ft=(De._prevTickAngles||{})[dt],bt=et.layer.selectAll("g."+dt).data(De.showticklabels?ct:[],vt),It=[];function Rt(Ht,hn){Ht.each(function(yn){var un=M.select(this),jt=un.select(".text-math-group"),nn=kt.anchorFn(yn,hn),Jt=et.transFn.call(un.node(),yn)+(k(hn)&&+hn!=0?" rotate("+hn+","+kt.xFn(yn)+","+(kt.yFn(yn)-yn.fontSize/2)+")":""),rn=s.lineCount(un),fn=K*yn.fontSize,vn=kt.heightFn(yn,k(hn)?+hn:0,(rn-1)*fn);if(vn&&(Jt+=d(0,vn)),jt.empty()){var Mn=un.select("text");Mn.attr({transform:Jt,"text-anchor":nn}),Mn.style("opacity",1),De._adjustTickLabelsOverflow&&De._adjustTickLabelsOverflow()}else{var En=r.bBox(jt.node()).width*{end:-.5,start:.5}[nn];jt.attr("transform",Jt+d(En,0))}})}bt.enter().append("g").classed(dt,1).append("text").attr("text-anchor","middle").each(function(Ht){var hn=M.select(this),yn=Ie._promises.length;hn.call(s.positionText,kt.xFn(Ht),kt.yFn(Ht)).call(r.font,Ht.font,Ht.fontSize,Ht.fontColor).text(Ht.text).call(s.convertToTspans,Ie),Ie._promises[yn]?It.push(Ie._promises.pop().then(function(){Rt(hn,ut)})):Rt(hn,ut)}),nt(De,[N]),bt.exit().remove(),et.repositionOnUpdate&&bt.each(function(Ht){M.select(this).select("text").call(s.positionText,kt.xFn(Ht),kt.yFn(Ht))}),De._adjustTickLabelsOverflow=function(){var Ht=De.ticklabeloverflow;if(Ht&&Ht!=="allow"){var hn=Ht.indexOf("hide")!==-1,yn=De._id.charAt(0)==="x",un=0,jt=yn?Ie._fullLayout.width:Ie._fullLayout.height;if(Ht.indexOf("domain")!==-1){var nn=b.simpleMap(De.range,De.r2l);un=De.l2p(nn[0])+De._offset,jt=De.l2p(nn[1])+De._offset}var Jt=Math.min(un,jt),rn=Math.max(un,jt),fn=De.side,vn=1/0,Mn=-1/0;for(var En in bt.each(function(Wn){var Qn=M.select(this);if(Qn.select(".text-math-group").empty()){var ir=r.bBox(Qn.node()),$n=0;yn?(ir.right>rn||ir.leftrn||ir.top+(De.tickangle?0:Wn.fontSize/4)De["_visibleLabelMin_"+nn._id]?Ln.style("display","none"):rn.K!=="tick"||Jt||Ln.style("display",null)})})})})},Rt(bt,ft+1?ft:ut);var Dt=null;De._selections&&(De._selections[dt]=bt);var Kt=[function(){return It.length&&Promise.all(It)}];De.automargin&&tt._redrawFromAutoMarginCount&&ft===90?(Dt=90,Kt.push(function(){Rt(bt,ft)})):Kt.push(function(){if(Rt(bt,ut),ct.length&&ht==="x"&&!k(ut)&&(De.type!=="log"||String(De.dtick).charAt(0)!=="D")){Dt=0;var Ht,hn=0,yn=[];if(bt.each(function(Qn){hn=Math.max(hn,Qn.fontSize);var ir=De.l2p(Qn.x),$n=ot(this),Gn=r.bBox($n.node());yn.push({top:0,bottom:10,height:10,left:ir-Gn.width/2,right:ir+Gn.width/2+2,width:Gn.width+2})}),De.tickson!=="boundaries"&&!De.showdividers||et.secondary){var un=ct.length,jt=Math.abs((ct[un-1].x-ct[0].x)*De._m)/(un-1),nn=De.ticklabelposition||"",Jt=function(Qn){return nn.indexOf(Qn)!==-1},rn=Jt("top"),fn=Jt("left"),vn=Jt("right"),Mn=Jt("bottom")||fn||rn||vn?(De.tickwidth||0)+6:0,En=jt<2.5*hn||De.type==="multicategory"||De._name==="realaxis";for(Ht=0;Ht1)for(ct=1;ct2*f}(a,n))return"date";var g=o.autotypenumbers!=="strict";return function(h,m){for(var v=h.length,y=i(v),_=0,f=0,S={},w=0;w2*_}(a,g)?"category":function(h,m){for(var v=h.length,y=0;y=2){var S,w,E="";if(f.length===2){for(S=0;S<2;S++)if(w=h(f[S])){E=p;break}}var L=_("pattern",E);if(L===p)for(S=0;S<2;S++)(w=h(f[S]))&&(v.bounds[S]=f[S]=w-1);if(L)for(S=0;S<2;S++)switch(w=f[S],L){case p:if(!M(w)||(w=+w)!==Math.floor(w)||w<0||w>=7)return void(v.enabled=!1);v.bounds[S]=f[S]=w;break;case c:if(!M(w)||(w=+w)<0||w>24)return void(v.enabled=!1);v.bounds[S]=f[S]=w}if(y.autorange===!1){var C=y.range;if(C[0]C[1])return void(v.enabled=!1)}else if(f[0]>C[0]&&f[1]s?1:-1:+(T.substr(1)||1)-+(b.substr(1)||1)},z.ref2id=function(T){return!!/^[xyz]/.test(T)&&T.split(" ")[0]},z.isLinked=function(T,b){return l(b,T._axisMatchGroups)||l(b,T._axisConstraintGroups)}},15258:function(ee){ee.exports=function(z,e,M,k){if(e.type==="category"){var l,T=z.categoryarray,b=Array.isArray(T)&&T.length>0;b&&(l="array");var d,s=M("categoryorder",l);s==="array"&&(d=M("categoryarray")),b||s!=="array"||(s=e.categoryorder="trace"),s==="trace"?e._initialCategories=[]:s==="array"?e._initialCategories=d.slice():(d=function(t,i){var r,n,o,a=i.dataAttr||t._id.charAt(0),u={};if(i.axData)r=i.axData;else for(r=[],n=0;nh?m.substr(h):v.substr(g))+y:m+v+c*x:y}function u(c,x){for(var g=x._size,h=g.h/g.w,m={},v=Object.keys(c),y=0;ys*C)||O){for(g=0;gW&&oeJ&&(J=oe);f/=(J-K)/(2*Y),K=v.l2r(K),J=v.l2r(J),v.range=v._input.range=H=0?Math.min(oe,.9):1/(1/Math.max(oe,-.3)+3.222))}function H(oe,ce,pe,ge,we){return oe.append("path").attr("class","zoombox").style({fill:ce>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",s(pe,ge)).attr("d",we+"Z")}function q(oe,ce,pe){return oe.append("path").attr("class","zoombox-corners").style({fill:i.background,stroke:i.defaultLine,"stroke-width":1,opacity:0}).attr("transform",s(ce,pe)).attr("d","M0,0Z")}function te(oe,ce,pe,ge,we,ye){oe.attr("d",ge+"M"+pe.l+","+pe.t+"v"+pe.h+"h"+pe.w+"v-"+pe.h+"h-"+pe.w+"Z"),K(oe,ce,we,ye)}function K(oe,ce,pe,ge){pe||(oe.transition().style("fill",ge>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ce.transition().style("opacity",1).duration(200))}function J(oe){M.select(oe).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Y(oe){P&&oe.data&&oe._context.showTips&&(k.notifier(k._(oe,"Double-click to zoom back out"),"long"),P=!1)}function W(oe){var ce=Math.floor(Math.min(oe.b-oe.t,oe.r-oe.l,C)/2);return"M"+(oe.l-3.5)+","+(oe.t-.5+ce)+"h3v"+-ce+"h"+ce+"v-3h-"+(ce+3)+"ZM"+(oe.r+3.5)+","+(oe.t-.5+ce)+"h-3v"+-ce+"h"+-ce+"v-3h"+(ce+3)+"ZM"+(oe.r+3.5)+","+(oe.b+.5-ce)+"h-3v"+ce+"h"+-ce+"v3h"+(ce+3)+"ZM"+(oe.l-3.5)+","+(oe.b+.5-ce)+"h3v"+ce+"h"+ce+"v3h-"+(ce+3)+"Z"}function Q(oe,ce,pe,ge,we){for(var ye,me,Oe,ke,Te=!1,le={},se={},ne=(we||{}).xaHash,ve=(we||{}).yaHash,Ee=0;Ee=0)Jt._fullLayout._deactivateShape(Jt);else{var rn=Jt._fullLayout.clickmode;if(J(Jt),jt!==2||mt||qt(),ot)rn.indexOf("select")>-1&&S(nn,Jt,ne,ve,ce.id,tt),rn.indexOf("event")>-1&&n.click(Jt,nn,ce.id);else if(jt===1&&mt){var fn=me?Te:ke,vn=me==="s"||Oe==="w"?0:1,Mn=fn._name+".range["+vn+"]",En=function(Wn,Qn){var ir,$n=Wn.range[Qn],Gn=Math.abs($n-Wn.range[1-Qn]);return Wn.type==="date"?$n:Wn.type==="log"?(ir=Math.ceil(Math.max(0,-Math.log(Gn)/Math.LN10))+3,l("."+ir+"g")(Math.pow(10,$n))):(ir=Math.floor(Math.log(Math.abs($n))/Math.LN10)-Math.floor(Math.log(Gn)/Math.LN10)+4,l("."+String(ir)+"g")($n))}(fn,vn),bn="left",Ln="middle";if(fn.fixedrange)return;me?(Ln=me==="n"?"top":"bottom",fn.side==="right"&&(bn="right")):Oe==="e"&&(bn="right"),Jt._context.showAxisRangeEntryBoxes&&M.select(Pt).call(t.makeEditable,{gd:Jt,immediate:!0,background:Jt._fullLayout.paper_bgcolor,text:String(En),fill:fn.tickfont?fn.tickfont.color:"#444",horizontalAlign:bn,verticalAlign:Ln}).on("edit",function(Wn){var Qn=fn.d2r(Wn);Qn!==void 0&&d.call("_guiRelayout",Jt,Mn,Qn)})}}}function dt(jt,nn){if(oe._transitioningWithDuration)return!1;var Jt=Math.max(0,Math.min(ze,vt*jt+Mt)),rn=Math.max(0,Math.min(Ne,xt*nn+Ye)),fn=Math.abs(Jt-Mt),vn=Math.abs(rn-Ye);function Mn(){rt="",Xe.r=Xe.l,Xe.t=Xe.b,De.attr("d","M0,0Z")}if(Xe.l=Math.min(Mt,Jt),Xe.r=Math.max(Mt,Jt),Xe.t=Math.min(Ye,rn),Xe.b=Math.max(Ye,rn),fe.isSubplotConstrained)fn>C||vn>C?(rt="xy",fn/ze>vn/Ne?(vn=fn*Ne/ze,Ye>rn?Xe.t=Ye-vn:Xe.b=Ye+vn):(fn=vn*ze/Ne,Mt>Jt?Xe.l=Mt-fn:Xe.r=Mt+fn),De.attr("d",W(Xe))):Mn();else if(Me.isSubplotConstrained)if(fn>C||vn>C){rt="xy";var En=Math.min(Xe.l/ze,(Ne-Xe.b)/Ne),bn=Math.max(Xe.r/ze,(Ne-Xe.t)/Ne);Xe.l=En*ze,Xe.r=bn*ze,Xe.b=(1-En)*Ne,Xe.t=(1-bn)*Ne,De.attr("d",W(Xe))}else Mn();else!Ce||vn0){var Ln;if(Me.isSubplotConstrained||!be&&Ce.length===1){for(Ln=0;Ln1&&(rn.maxallowed!==void 0&&Re===(rn.range[0]1&&(fn.maxallowed!==void 0&&He===(fn.range[0]v[1]-.000244140625&&(T.domain=t),k.noneOrAll(l.domain,T.domain,t),T.tickmode==="sync"&&(T.tickmode="auto")}return b("layer"),T}},89426:function(ee,z,e){var M=e(59652);ee.exports=function(k,l,T,b,d){d||(d={});var s=d.tickSuffixDflt,t=M(k);T("tickprefix")&&T("showtickprefix",t),T("ticksuffix",s)&&T("showticksuffix",t)}},42449:function(ee,z,e){var M=e(18783).FROM_BL;ee.exports=function(k,l,T){T===void 0&&(T=M[k.constraintoward||"center"]);var b=[k.r2l(k.range[0]),k.r2l(k.range[1])],d=b[0]+(b[1]-b[0])*T;k.range=k._input.range=[k.l2r(d+(b[0]-d)*l),k.l2r(d+(b[1]-d)*l)],k.setScale()}},21994:function(ee,z,e){var M=e(39898),k=e(84096).g0,l=e(71828),T=l.numberFormat,b=e(92770),d=l.cleanNumber,s=l.ms2DateTime,t=l.dateTime2ms,i=l.ensureNumber,r=l.isArrayOrTypedArray,n=e(50606),o=n.FP_SAFE,a=n.BADNUM,u=n.LOG_CLIP,p=n.ONEWEEK,c=n.ONEDAY,x=n.ONEHOUR,g=n.ONEMIN,h=n.ONESEC,m=e(41675),v=e(85555),y=v.HOUR_PATTERN,_=v.WEEKDAY_PATTERN;function f(w){return Math.pow(10,w)}function S(w){return w!=null}ee.exports=function(w,E){E=E||{};var L=w._id||"x",C=L.charAt(0);function P(Q,re){if(Q>0)return Math.log(Q)/Math.LN10;if(Q<=0&&re&&w.range&&w.range.length===2){var ie=w.range[0],oe=w.range[1];return .5*(ie+oe-2*u*Math.abs(ie-oe))}return a}function R(Q,re,ie,oe){if((oe||{}).msUTC&&b(Q))return+Q;var ce=t(Q,ie||w.calendar);if(ce===a){if(!b(Q))return a;Q=+Q;var pe=Math.floor(10*l.mod(Q+.05,1)),ge=Math.round(Q-pe/10);ce=t(new Date(ge))+pe/10}return ce}function G(Q,re,ie){return s(Q,re,ie||w.calendar)}function O(Q){return w._categories[Math.round(Q)]}function V(Q){if(S(Q)){if(w._categoriesMap===void 0&&(w._categoriesMap={}),w._categoriesMap[Q]!==void 0)return w._categoriesMap[Q];w._categories.push(typeof Q=="number"?String(Q):Q);var re=w._categories.length-1;return w._categoriesMap[Q]=re,re}return a}function N(Q){if(w._categoriesMap)return w._categoriesMap[Q]}function B(Q){var re=N(Q);return re!==void 0?re:b(Q)?+Q:void 0}function H(Q){return b(Q)?+Q:N(Q)}function q(Q,re,ie){return M.round(ie+re*Q,2)}function te(Q,re,ie){return(Q-ie)/re}var K=function(Q){return b(Q)?q(Q,w._m,w._b):a},J=function(Q){return te(Q,w._m,w._b)};if(w.rangebreaks){var Y=C==="y";K=function(Q){if(!b(Q))return a;var re=w._rangebreaks.length;if(!re)return q(Q,w._m,w._b);var ie=Y;w.range[0]>w.range[1]&&(ie=!ie);for(var oe=ie?-1:1,ce=oe*Q,pe=0,ge=0;geye)){pe=ce<(we+ye)/2?ge:ge+1;break}pe=ge+1}var me=w._B[pe]||0;return isFinite(me)?q(Q,w._m2,me):0},J=function(Q){var re=w._rangebreaks.length;if(!re)return te(Q,w._m,w._b);for(var ie=0,oe=0;oew._rangebreaks[oe].pmax&&(ie=oe+1);return te(Q,w._m2,w._B[ie])}}w.c2l=w.type==="log"?P:i,w.l2c=w.type==="log"?f:i,w.l2p=K,w.p2l=J,w.c2p=w.type==="log"?function(Q,re){return K(P(Q,re))}:K,w.p2c=w.type==="log"?function(Q){return f(J(Q))}:J,["linear","-"].indexOf(w.type)!==-1?(w.d2r=w.r2d=w.d2c=w.r2c=w.d2l=w.r2l=d,w.c2d=w.c2r=w.l2d=w.l2r=i,w.d2p=w.r2p=function(Q){return w.l2p(d(Q))},w.p2d=w.p2r=J,w.cleanPos=i):w.type==="log"?(w.d2r=w.d2l=function(Q,re){return P(d(Q),re)},w.r2d=w.r2c=function(Q){return f(d(Q))},w.d2c=w.r2l=d,w.c2d=w.l2r=i,w.c2r=P,w.l2d=f,w.d2p=function(Q,re){return w.l2p(w.d2r(Q,re))},w.p2d=function(Q){return f(J(Q))},w.r2p=function(Q){return w.l2p(d(Q))},w.p2r=J,w.cleanPos=i):w.type==="date"?(w.d2r=w.r2d=l.identity,w.d2c=w.r2c=w.d2l=w.r2l=R,w.c2d=w.c2r=w.l2d=w.l2r=G,w.d2p=w.r2p=function(Q,re,ie){return w.l2p(R(Q,0,ie))},w.p2d=w.p2r=function(Q,re,ie){return G(J(Q),re,ie)},w.cleanPos=function(Q){return l.cleanDate(Q,a,w.calendar)}):w.type==="category"?(w.d2c=w.d2l=V,w.r2d=w.c2d=w.l2d=O,w.d2r=w.d2l_noadd=B,w.r2c=function(Q){var re=H(Q);return re!==void 0?re:w.fraction2r(.5)},w.l2r=w.c2r=i,w.r2l=H,w.d2p=function(Q){return w.l2p(w.r2c(Q))},w.p2d=function(Q){return O(J(Q))},w.r2p=w.d2p,w.p2r=J,w.cleanPos=function(Q){return typeof Q=="string"&&Q!==""?Q:i(Q)}):w.type==="multicategory"&&(w.r2d=w.c2d=w.l2d=O,w.d2r=w.d2l_noadd=B,w.r2c=function(Q){var re=B(Q);return re!==void 0?re:w.fraction2r(.5)},w.r2c_just_indices=N,w.l2r=w.c2r=i,w.r2l=B,w.d2p=function(Q){return w.l2p(w.r2c(Q))},w.p2d=function(Q){return O(J(Q))},w.r2p=w.d2p,w.p2r=J,w.cleanPos=function(Q){return Array.isArray(Q)||typeof Q=="string"&&Q!==""?Q:i(Q)},w.setupMultiCategory=function(Q){var re,ie,oe=w._traceIndices,ce=w._matchGroup;if(ce&&w._categories.length===0){for(var pe in ce)if(pe!==L){var ge=E[m.id2name(pe)];oe=oe.concat(ge._traceIndices)}}var we=[[0,{}],[0,{}]],ye=[];for(re=0;rege[1]&&(oe[pe?0:1]=ie)}},w.cleanRange=function(Q,re){w._cleanRange(Q,re),w.limitRange(Q)},w._cleanRange=function(Q,re){re||(re={}),Q||(Q="range");var ie,oe,ce=l.nestedProperty(w,Q).get();if(oe=(oe=w.type==="date"?l.dfltRange(w.calendar):C==="y"?v.DFLTRANGEY:w._name==="realaxis"?[0,1]:re.dfltRange||v.DFLTRANGEX).slice(),w.rangemode!=="tozero"&&w.rangemode!=="nonnegative"||(oe[0]=0),ce&&ce.length===2){var pe=ce[0]===null,ge=ce[1]===null;for(w.type!=="date"||w.autorange||(ce[0]=l.cleanDate(ce[0],a,w.calendar),ce[1]=l.cleanDate(ce[1],a,w.calendar)),ie=0;ie<2;ie++)if(w.type==="date"){if(!l.isDateTime(ce[ie],w.calendar)){w[Q]=oe;break}if(w.r2l(ce[0])===w.r2l(ce[1])){var we=l.constrain(w.r2l(ce[0]),l.MIN_MS+1e3,l.MAX_MS-1e3);ce[0]=w.l2r(we-1e3),ce[1]=w.l2r(we+1e3);break}}else{if(!b(ce[ie])){if(pe||ge||!b(ce[1-ie])){w[Q]=oe;break}ce[ie]=ce[1-ie]*(ie?10:.1)}if(ce[ie]<-o?ce[ie]=-o:ce[ie]>o&&(ce[ie]=o),ce[0]===ce[1]){var ye=Math.max(1,Math.abs(1e-6*ce[0]));ce[0]-=ye,ce[1]+=ye}}}else l.nestedProperty(w,Q).set(oe)},w.setScale=function(Q){var re=E._size;if(w.overlaying){var ie=m.getFromId({_fullLayout:E},w.overlaying);w.domain=ie.domain}var oe=Q&&w._r?"_r":"range",ce=w.calendar;w.cleanRange(oe);var pe,ge,we=w.r2l(w[oe][0],ce),ye=w.r2l(w[oe][1],ce),me=C==="y";if(me?(w._offset=re.t+(1-w.domain[1])*re.h,w._length=re.h*(w.domain[1]-w.domain[0]),w._m=w._length/(we-ye),w._b=-w._m*ye):(w._offset=re.l+w.domain[0]*re.w,w._length=re.w*(w.domain[1]-w.domain[0]),w._m=w._length/(ye-we),w._b=-w._m*we),w._rangebreaks=[],w._lBreaks=0,w._m2=0,w._B=[],w.rangebreaks&&(w._rangebreaks=w.locateBreaks(Math.min(we,ye),Math.max(we,ye)),w._rangebreaks.length)){for(pe=0;peye&&(Oe=!Oe),Oe&&w._rangebreaks.reverse();var ke=Oe?-1:1;for(w._m2=ke*w._length/(Math.abs(ye-we)-w._lBreaks),w._B.push(-w._m2*(me?ye:we)),pe=0;peoe&&(oe+=7,ceoe&&(oe+=24,ce=ie&&ce=ie&&Q=Me.min&&(_eMe.max&&(Me.max=ze),Ne=!1)}Ne&&ge.push({min:_e,max:ze})}};for(ie=0;iet.duration?(function(){for(var y={},_=0;_ rect").call(T.setTranslate,0,0).call(T.setScale,1,1),g.plot.call(T.setTranslate,h._offset,m._offset).call(T.setScale,1,1);var v=g.plot.selectAll(".scatterlayer .trace");v.selectAll(".point").call(T.setPointGroupScale,1,1),v.selectAll(".textpoint").call(T.setTextPointsScale,1,1),v.call(T.hideOutsideRangePoints,g)}function x(g,h){var m=g.plotinfo,v=m.xaxis,y=m.yaxis,_=v._length,f=y._length,S=!!g.xr1,w=!!g.yr1,E=[];if(S){var L=l.simpleMap(g.xr0,v.r2l),C=l.simpleMap(g.xr1,v.r2l),P=L[1]-L[0],R=C[1]-C[0];E[0]=(L[0]*(1-h)+h*C[0]-L[0])/(L[1]-L[0])*_,E[2]=_*(1-h+h*R/P),v.range[0]=v.l2r(L[0]*(1-h)+h*C[0]),v.range[1]=v.l2r(L[1]*(1-h)+h*C[1])}else E[0]=0,E[2]=_;if(w){var G=l.simpleMap(g.yr0,y.r2l),O=l.simpleMap(g.yr1,y.r2l),V=G[1]-G[0],N=O[1]-O[0];E[1]=(G[1]*(1-h)+h*O[1]-G[1])/(G[0]-G[1])*f,E[3]=f*(1-h+h*N/V),y.range[0]=v.l2r(G[0]*(1-h)+h*O[0]),y.range[1]=y.l2r(G[1]*(1-h)+h*O[1])}else E[1]=0,E[3]=f;b.drawOne(d,v,{skipTitle:!0}),b.drawOne(d,y,{skipTitle:!0}),b.redrawComponents(d,[v._id,y._id]);var B=S?_/E[2]:1,H=w?f/E[3]:1,q=S?E[0]:0,te=w?E[1]:0,K=S?E[0]/E[2]*_:0,J=w?E[1]/E[3]*f:0,Y=v._offset-K,W=y._offset-J;m.clipRect.call(T.setTranslate,q,te).call(T.setScale,1/B,1/H),m.plot.call(T.setTranslate,Y,W).call(T.setScale,B,H),T.setPointGroupScale(m.zoomScalePts,1/B,1/H),T.setTextPointsScale(m.zoomScaleTxt,1/B,1/H)}b.redrawComponents(d)}},951:function(ee,z,e){var M=e(73972).traceIs,k=e(4322);function l(b){return{v:"x",h:"y"}[b.orientation||"v"]}function T(b,d){var s=l(b),t=M(b,"box-violin"),i=M(b._fullInput||{},"candlestick");return t&&!i&&d===s&&b[s]===void 0&&b[s+"0"]===void 0}ee.exports=function(b,d,s,t){s("autotypenumbers",t.autotypenumbersDflt),s("type",(t.splomStash||{}).type)==="-"&&(function(i,r){if(i.type==="-"){var n,o=i._id,a=o.charAt(0);o.indexOf("scene")!==-1&&(o=a);var u=function(y,_,f){for(var S=0;S0&&(w["_"+f+"axes"]||{})[_]||(w[f+"axis"]||f)===_&&(T(w,f)||(w[f]||[]).length||w[f+"0"]))return w}}(r,o,a);if(u)if(u.type!=="histogram"||a!=={v:"y",h:"x"}[u.orientation||"v"]){var p=a+"calendar",c=u[p],x={noMultiCategory:!M(u,"cartesian")||M(u,"noMultiCategory")};if(u.type==="box"&&u._hasPreCompStats&&a==={h:"x",v:"y"}[u.orientation||"v"]&&(x.noMultiCategory=!0),x.autotypenumbers=i.autotypenumbers,T(u,a)){var g=l(u),h=[];for(n=0;n0?".":"")+n;k.isPlainObject(o)?d(o,t,a,r+1):t(a,n,o)}})}z.manageCommandObserver=function(s,t,i,r){var n={},o=!0;t&&t._commandObserver&&(n=t._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var a=z.hasSimpleAPICommandBindings(s,i,n.lookupTable);if(t&&t._commandObserver){if(a)return n;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,n}if(a){l(s,a,n.cache),n.check=function(){if(o){var c=l(s,a,n.cache);return c.changed&&r&&n.lookupTable[c.value]!==void 0&&(n.disable(),Promise.resolve(r({value:c.value,type:a.type,prop:a.prop,traces:a.traces,index:n.lookupTable[c.value]})).then(n.enable,n.enable)),c.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],p=0;p0&&R<0&&(R+=360);var V=(R-P)/4;return{type:"Polygon",coordinates:[[[P,G],[P,O],[P+V,O],[P+2*V,O],[P+3*V,O],[R,O],[R,G],[R-V,G],[R-2*V,G],[R-3*V,G],[P,G]]]}}ee.exports=function(E){return new f(E)},S.plot=function(E,L,C,P){var R=this;if(P)return R.update(E,L,!0);R._geoCalcData=E,R._fullLayout=L;var G=L[this.id],O=[],V=!1;for(var N in m.layerNameToAdjective)if(N!=="frame"&&G["show"+N]){V=!0;break}for(var B=!1,H=0;H0&&O._module.calcGeoJSON(G,L)}if(!C){if(this.updateProjection(E,L))return;this.viewInitial&&this.scope===P.scope||this.saveViewInitial(P)}this.scope=P.scope,this.updateBaseLayers(L,P),this.updateDims(L,P),this.updateFx(L,P),o.generalUpdatePerTraceModule(this.graphDiv,this,E,P);var V=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=V.selectAll(".point"),this.dataPoints.text=V.selectAll("text"),this.dataPaths.line=V.selectAll(".js-line");var N=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=N.selectAll("path"),this._render()},S.updateProjection=function(E,L){var C=this.graphDiv,P=L[this.id],R=L._size,G=P.domain,O=P.projection,V=P.lonaxis,N=P.lataxis,B=V._ax,H=N._ax,q=this.projection=function(se){var ne=se.projection,ve=ne.type,Ee=m.projNames[ve];Ee="geo"+s.titleCase(Ee);for(var _e=(k[Ee]||b[Ee])(),ze=se._isSatellite?180*Math.acos(1/ne.distance)/Math.PI:se._isClipped?m.lonaxisSpan[ve]/2:null,Ne=["center","rotate","parallels","clipExtent"],fe=function(Ce){return Ce?_e:[]},Me=0;Meze*Math.PI/180}return!1},_e.getPath=function(){return l().projection(_e)},_e.getBounds=function(Ce){return _e.getPath().bounds(Ce)},_e.precision(m.precision),se._isSatellite&&_e.tilt(ne.tilt).distance(ne.distance),ze&&_e.clipAngle(ze-m.clipPad),_e}(P),te=[[R.l+R.w*G.x[0],R.t+R.h*(1-G.y[1])],[R.l+R.w*G.x[1],R.t+R.h*(1-G.y[0])]],K=P.center||{},J=O.rotation||{},Y=V.range||[],W=N.range||[];if(P.fitbounds){B._length=te[1][0]-te[0][0],H._length=te[1][1]-te[0][1],B.range=u(C,B),H.range=u(C,H);var Q=(B.range[0]+B.range[1])/2,re=(H.range[0]+H.range[1])/2;if(P._isScoped)K={lon:Q,lat:re};else if(P._isClipped){K={lon:Q,lat:re},J={lon:Q,lat:re,roll:J.roll};var ie=O.type,oe=m.lonaxisSpan[ie]/2||180,ce=m.lataxisSpan[ie]/2||90;Y=[Q-oe,Q+oe],W=[re-ce,re+ce]}else K={lon:Q,lat:re},J={lon:Q,lat:J.lat,roll:J.roll}}q.center([K.lon-J.lon,K.lat-J.lat]).rotate([-J.lon,-J.lat,J.roll]).parallels(O.parallels);var pe=w(Y,W);q.fitExtent(te,pe);var ge=this.bounds=q.getBounds(pe),we=this.fitScale=q.scale(),ye=q.translate();if(P.fitbounds){var me=q.getBounds(w(B.range,H.range)),Oe=Math.min((ge[1][0]-ge[0][0])/(me[1][0]-me[0][0]),(ge[1][1]-ge[0][1])/(me[1][1]-me[0][1]));isFinite(Oe)?q.scale(Oe*we):s.warn("Something went wrong during"+this.id+"fitbounds computations.")}else q.scale(O.scale*we);var ke=this.midPt=[(ge[0][0]+ge[1][0])/2,(ge[0][1]+ge[1][1])/2];if(q.translate([ye[0]+(ke[0]-ye[0]),ye[1]+(ke[1]-ye[1])]).clipExtent(ge),P._isAlbersUsa){var Te=q([K.lon,K.lat]),le=q.translate();q.translate([le[0]-(Te[0]-le[0]),le[1]-(Te[1]-le[1])])}},S.updateBaseLayers=function(E,L){var C=this,P=C.topojson,R=C.layers,G=C.basePaths;function O(q){return q==="lonaxis"||q==="lataxis"}function V(q){return Boolean(m.lineLayers[q])}function N(q){return Boolean(m.fillLayers[q])}var B=(this.hasChoropleth?m.layersForChoropleth:m.layers).filter(function(q){return V(q)||N(q)?L["show"+q]:!O(q)||L[q].showgrid}),H=C.framework.selectAll(".layer").data(B,String);H.exit().each(function(q){delete R[q],delete G[q],M.select(this).remove()}),H.enter().append("g").attr("class",function(q){return"layer "+q}).each(function(q){var te=R[q]=M.select(this);q==="bg"?C.bgRect=te.append("rect").style("pointer-events","all"):O(q)?G[q]=te.append("path").style("fill","none"):q==="backplot"?te.append("g").classed("choroplethlayer",!0):q==="frontplot"?te.append("g").classed("scatterlayer",!0):V(q)?G[q]=te.append("path").style("fill","none").style("stroke-miterlimit",2):N(q)&&(G[q]=te.append("path").style("stroke","none"))}),H.order(),H.each(function(q){var te=G[q],K=m.layerNameToAdjective[q];q==="frame"?te.datum(m.sphereSVG):V(q)||N(q)?te.datum(_(P,P.objects[q])):O(q)&&te.datum(function(J,Y,W){var Q,re,ie,oe=Y[J],ce=m.scopeDefaults[Y.scope];J==="lonaxis"?(Q=ce.lonaxisRange,re=ce.lataxisRange,ie=function(le,se){return[le,se]}):J==="lataxis"&&(Q=ce.lataxisRange,re=ce.lonaxisRange,ie=function(le,se){return[se,le]});var pe={type:"linear",range:[Q[0],Q[1]-1e-6],tick0:oe.tick0,dtick:oe.dtick};a.setConvert(pe,W);var ge=a.calcTicks(pe);Y.isScoped||J!=="lonaxis"||ge.pop();for(var we=ge.length,ye=new Array(we),me=0;me-1&&g(M.event,P,[C.xaxis],[C.yaxis],C.id,V),O.indexOf("event")>-1&&n.click(P,M.event))})}function N(B){return C.projection.invert([B[0]+C.xaxis._offset,B[1]+C.yaxis._offset])}},S.makeFramework=function(){var E=this,L=E.graphDiv,C=L._fullLayout,P="clip"+C._uid+E.id;E.clipDef=C._clips.append("clipPath").attr("id",P),E.clipRect=E.clipDef.append("rect"),E.framework=M.select(E.container).append("g").attr("class","geo "+E.id).call(r.setClipUrl,P,L),E.project=function(R){var G=E.projection(R);return G?[G[0]-E.xaxis._offset,G[1]-E.yaxis._offset]:[null,null]},E.xaxis={_id:"x",c2p:function(R){return E.project(R)[0]}},E.yaxis={_id:"y",c2p:function(R){return E.project(R)[1]}},E.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},a.setConvert(E.mockAxis,C)},S.saveViewInitial=function(E){var L,C=E.center||{},P=E.projection,R=P.rotation||{};this.viewInitial={fitbounds:E.fitbounds,"projection.scale":P.scale},L=E._isScoped?{"center.lon":C.lon,"center.lat":C.lat}:E._isClipped?{"projection.rotation.lon":R.lon,"projection.rotation.lat":R.lat}:{"center.lon":C.lon,"center.lat":C.lat,"projection.rotation.lon":R.lon},s.extendFlat(this.viewInitial,L)},S.render=function(E){this._hasMarkerAngles&&E?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},S._render=function(){var E,L=this.projection,C=L.getPath();function P(G){var O=L(G.lonlat);return O?t(O[0],O[1]):null}function R(G){return L.isLonLatOverEdges(G.lonlat)?"none":null}for(E in this.basePaths)this.basePaths[E].attr("d",C);for(E in this.dataPaths)this.dataPaths[E].attr("d",function(G){return C(G.geojson)});for(E in this.dataPoints)this.dataPoints[E].attr("display",R).attr("transform",P)}},44622:function(ee,z,e){var M=e(27659).AU,k=e(71828).counterRegex,l=e(69082),T="geo",b=k(T),d={};d[T]={valType:"subplotid",dflt:T,editType:"calc"},ee.exports={attr:T,name:T,idRoot:T,idRegex:b,attrRegex:b,attributes:d,layoutAttributes:e(77519),supplyLayoutDefaults:e(82161),plot:function(s){for(var t=s._fullLayout,i=s.calcdata,r=t._subplots[T],n=0;n0&&N<0&&(N+=360);var B,H,q,te=(V+N)/2;if(!x){var K=g?p.projRotate:[te,0,0];B=r("projection.rotation.lon",K[0]),r("projection.rotation.lat",K[1]),r("projection.rotation.roll",K[2]),r("showcoastlines",!g&&_)&&(r("coastlinecolor"),r("coastlinewidth")),r("showocean",!!_&&void 0)&&r("oceancolor")}x?(H=-96.6,q=38.7):(H=g?te:B,q=(O[0]+O[1])/2),r("center.lon",H),r("center.lat",q),h&&(r("projection.tilt"),r("projection.distance")),m&&r("projection.parallels",p.projParallels||[0,60]),r("projection.scale"),r("showland",!!_&&void 0)&&r("landcolor"),r("showlakes",!!_&&void 0)&&r("lakecolor"),r("showrivers",!!_&&void 0)&&(r("rivercolor"),r("riverwidth")),r("showcountries",g&&u!=="usa"&&_)&&(r("countrycolor"),r("countrywidth")),(u==="usa"||u==="north america"&&a===50)&&(r("showsubunits",_),r("subunitcolor"),r("subunitwidth")),g||r("showframe",_)&&(r("framecolor"),r("framewidth")),r("bgcolor"),r("fitbounds")&&(delete i.projection.scale,g?(delete i.center.lon,delete i.center.lat):v?(delete i.center.lon,delete i.center.lat,delete i.projection.rotation.lon,delete i.projection.rotation.lat,delete i.lonaxis.range,delete i.lataxis.range):(delete i.center.lon,delete i.center.lat,delete i.projection.rotation.lon))}ee.exports=function(t,i,r){k(t,i,r,{type:"geo",attributes:b,handleDefaults:s,fullData:r,partition:"y"})}},74455:function(ee,z,e){var M=e(39898),k=e(71828),l=e(73972),T=Math.PI/180,b=180/Math.PI,d={cursor:"pointer"},s={cursor:"auto"};function t(g,h){return M.behavior.zoom().translate(h.translate()).scale(h.scale())}function i(g,h,m){var v=g.id,y=g.graphDiv,_=y.layout,f=_[v],S=y._fullLayout,w=S[v],E={},L={};function C(P,R){E[v+"."+P]=k.nestedProperty(f,P).get(),l.call("_storeDirectGUIEdit",_,S._preGUI,E);var G=k.nestedProperty(w,P);G.get()!==R&&(G.set(R),k.nestedProperty(f,P).set(R),L[v+"."+P]=R)}m(C),C("projection.scale",h.scale()/g.fitScale),C("fitbounds",!1),y.emit("plotly_relayout",L)}function r(g,h){var m=t(0,h);function v(y){var _=h.invert(g.midPt);y("center.lon",_[0]),y("center.lat",_[1])}return m.on("zoomstart",function(){M.select(this).style(d)}).on("zoom",function(){h.scale(M.event.scale).translate(M.event.translate),g.render(!0);var y=h.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":h.scale()/g.fitScale,"geo.center.lon":y[0],"geo.center.lat":y[1]})}).on("zoomend",function(){M.select(this).style(s),i(g,h,v)}),m}function n(g,h){var m,v,y,_,f,S,w,E,L,C=t(0,h);function P(G){return h.invert(G)}function R(G){var O=h.rotate(),V=h.invert(g.midPt);G("projection.rotation.lon",-O[0]),G("center.lon",V[0]),G("center.lat",V[1])}return C.on("zoomstart",function(){M.select(this).style(d),m=M.mouse(this),v=h.rotate(),y=h.translate(),_=v,f=P(m)}).on("zoom",function(){if(S=M.mouse(this),function(V){var N=P(V);if(!N)return!0;var B=h(N);return Math.abs(B[0]-V[0])>2||Math.abs(B[1]-V[1])>2}(m))return C.scale(h.scale()),void C.translate(h.translate());h.scale(M.event.scale),h.translate([y[0],M.event.translate[1]]),f?P(S)&&(E=P(S),w=[_[0]+(E[0]-f[0]),v[1],v[2]],h.rotate(w),_=w):f=P(m=S),L=!0,g.render(!0);var G=h.rotate(),O=h.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":h.scale()/g.fitScale,"geo.center.lon":O[0],"geo.center.lat":O[1],"geo.projection.rotation.lon":-G[0]})}).on("zoomend",function(){M.select(this).style(s),L&&i(g,h,R)}),C}function o(g,h){var m;h.rotate(),h.scale();var v=t(0,h),y=function(w){for(var E=0,L=arguments.length,C=[];++ERe?(_e=(be>0?90:-90)-Fe,Ee=0):(_e=Math.asin(be/Re)*b-Fe,Ee=Math.sqrt(Re*Re-be*be));var He=180-_e-2*Fe,Ge=(Math.atan2(Ce,Me)-Math.atan2(fe,Ee))*b,Ke=(Math.atan2(Ce,Me)-Math.atan2(fe,-Ee))*b;return u(ne[0],ne[1],_e,Ge)<=u(ne[0],ne[1],He,Ke)?[_e,Ge,ne[2]]:[He,Ke,ne[2]]}(ke,m,te);isFinite(Te[0])&&isFinite(Te[1])&&isFinite(Te[2])||(Te=te),h.rotate(Te),te=Te}}else m=a(h,H=ye);y.of(this,arguments)({type:"zoom"})}),B=y.of(this,arguments),_++||B({type:"zoomstart"})}).on("zoomend",function(){var w;M.select(this).style(s),f.call(v,"zoom",null),w=y.of(this,arguments),--_||w({type:"zoomend"}),i(g,h,S)}).on("zoom.redraw",function(){g.render(!0);var w=h.rotate();g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":h.scale()/g.fitScale,"geo.projection.rotation.lon":-w[0],"geo.projection.rotation.lat":-w[1]})}),M.rebind(v,y,"on")}function a(g,h){var m=g.invert(h);return m&&isFinite(m[0])&&isFinite(m[1])&&function(v){var y=v[0]*T,_=v[1]*T,f=Math.cos(_);return[f*Math.cos(y),f*Math.sin(y),Math.sin(_)]}(m)}function u(g,h,m,v){var y=p(m-g),_=p(v-h);return Math.sqrt(y*y+_*_)}function p(g){return(g%360+540)%360-180}function c(g,h,m){var v=m*T,y=g.slice(),_=h===0?1:0,f=h===2?1:2,S=Math.cos(v),w=Math.sin(v);return y[_]=g[_]*S-g[f]*w,y[f]=g[f]*S+g[_]*w,y}function x(g,h){for(var m=0,v=0,y=g.length;vMath.abs(x)?(r.boxEnd[1]=r.boxStart[1]+Math.abs(c)*C*(x>=0?1:-1),r.boxEnd[1]g[3]&&(r.boxEnd[1]=g[3],r.boxEnd[0]=r.boxStart[0]+(g[3]-r.boxStart[1])/Math.abs(C))):(r.boxEnd[0]=r.boxStart[0]+Math.abs(x)/C*(c>=0?1:-1),r.boxEnd[0]g[2]&&(r.boxEnd[0]=g[2],r.boxEnd[1]=r.boxStart[1]+(g[2]-r.boxStart[0])*Math.abs(C)))}}else r.boxEnabled?(c=r.boxStart[0]!==r.boxEnd[0],x=r.boxStart[1]!==r.boxEnd[1],c||x?(c&&(f(0,r.boxStart[0],r.boxEnd[0]),s.xaxis.autorange=!1),x&&(f(1,r.boxStart[1],r.boxEnd[1]),s.yaxis.autorange=!1),s.relayoutCallback()):s.glplot.setDirty(),r.boxEnabled=!1,r.boxInited=!1):r.boxInited&&(r.boxInited=!1);break;case"pan":r.boxEnabled=!1,r.boxInited=!1,a?(r.panning||(r.dragStart[0]=u,r.dragStart[1]=p),Math.abs(r.dragStart[0]-u).999&&(v="turntable"):v="turntable")}else v="turntable";o("dragmode",v),o("hovermode",a.getDfltFromLayout("hovermode"))}ee.exports=function(r,n,o){var a=n._basePlotModules.length>1;T(r,n,o,{type:t,attributes:d,handleDefaults:i,fullLayout:n,font:n.font,fullData:o,getDfltFromLayout:function(u){if(!a)return M.validate(r[u],d[u])?r[u]:void 0},autotypenumbersDflt:n.autotypenumbers,paper_bgcolor:n.paper_bgcolor,calendar:n.calendar})}},65500:function(ee,z,e){var M=e(77894),k=e(27670).Y,l=e(1426).extendFlat,T=e(71828).counterRegex;function b(d,s,t){return{x:{valType:"number",dflt:d,editType:"camera"},y:{valType:"number",dflt:s,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}ee.exports={_arrayAttrRegexps:[T("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:l(b(0,0,1),{}),center:l(b(0,0,0),{}),eye:l(b(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:k({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:M,yaxis:M,zaxis:M,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},13133:function(ee,z,e){var M=e(78614),k=["xaxis","yaxis","zaxis"];function l(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}l.prototype.merge=function(T){for(var b=0;b<3;++b){var d=T[k[b]];d.visible?(this.enabled[b]=d.showspikes,this.colors[b]=M(d.spikecolor),this.drawSides[b]=d.spikesides,this.lineWidth[b]=d.spikethickness):(this.enabled[b]=!1,this.drawSides[b]=!1)}},ee.exports=function(T){var b=new l;return b.merge(T),b}},96085:function(ee,z,e){ee.exports=function(b){for(var d=b.axesOptions,s=b.glplot.axesPixels,t=b.fullSceneLayout,i=[[],[],[]],r=0;r<3;++r){var n=t[l[r]];if(n._length=(s[r].hi-s[r].lo)*s[r].pixelsPerDataUnit/b.dataScale[r],Math.abs(n._length)===1/0||isNaN(n._length))i[r]=[];else{n._input_range=n.range.slice(),n.range[0]=s[r].lo/b.dataScale[r],n.range[1]=s[r].hi/b.dataScale[r],n._m=1/(b.dataScale[r]*s[r].pixelsPerDataUnit),n.range[0]===n.range[1]&&(n.range[0]-=1,n.range[1]+=1);var o=n.tickmode;if(n.tickmode==="auto"){n.tickmode="linear";var a=n.nticks||k.constrain(n._length/40,4,9);M.autoTicks(n,Math.abs(n.range[1]-n.range[0])/a)}for(var u=M.calcTicks(n,{msUTC:!0}),p=0;p/g," "));i[r]=u,n.tickmode=o}}for(d.ticks=i,r=0;r<3;++r)for(T[r]=.5*(b.glplot.bounds[0][r]+b.glplot.bounds[1][r]),p=0;p<2;++p)d.bounds[p][r]=b.glplot.bounds[p][r];b.contourLevels=function(c){for(var x=new Array(3),g=0;g<3;++g){for(var h=c[g],m=new Array(h.length),v=0;vR.deltaY?1.1:.9090909090909091,O=w.glplot.getAspectratio();w.glplot.setAspectratio({x:G*O.x,y:G*O.y,z:G*O.z})}P(w)}},!!s&&{passive:!1}),w.glplot.canvas.addEventListener("mousemove",function(){if(w.fullSceneLayout.dragmode!==!1&&w.camera.mouseListener.buttons!==0){var R=C();w.graphDiv.emit("plotly_relayouting",R)}}),w.staticMode||w.glplot.canvas.addEventListener("webglcontextlost",function(R){E&&E.emit&&E.emit("plotly_webglcontextlost",{event:R,layer:w.id})},!1)),w.glplot.oncontextloss=function(){w.recoverContext()},w.glplot.onrender=function(){w.render()},!0},y.render=function(){var w,E=this,L=E.graphDiv,C=E.svgContainer,P=E.container.getBoundingClientRect();L._fullLayout._calcInverseTransform(L);var R=L._fullLayout._invScaleX,G=L._fullLayout._invScaleY,O=P.width*R,V=P.height*G;C.setAttributeNS(null,"viewBox","0 0 "+O+" "+V),C.setAttributeNS(null,"width",O),C.setAttributeNS(null,"height",V),g(E),E.glplot.axes.update(E.axesOptions);for(var N=Object.keys(E.traces),B=null,H=E.glplot.selection,q=0;q")):w.type==="isosurface"||w.type==="volume"?(Q.valueLabel=n.hoverLabelText(E._mockAxis,E._mockAxis.d2l(H.traceCoordinate[3]),w.valuehoverformat),ce.push("value: "+Q.valueLabel),H.textLabel&&ce.push(H.textLabel),J=ce.join("
")):J=H.textLabel;var pe={x:H.traceCoordinate[0],y:H.traceCoordinate[1],z:H.traceCoordinate[2],data:Y._input,fullData:Y,curveNumber:Y.index,pointNumber:W};o.appendArrayPointValue(pe,Y,W),w._module.eventData&&(pe=Y._module.eventData(pe,H,Y,{},W));var ge={points:[pe]};if(E.fullSceneLayout.hovermode){var we=[];o.loneHover({trace:Y,x:(.5+.5*K[0]/K[3])*O,y:(.5-.5*K[1]/K[3])*V,xLabel:Q.xLabel,yLabel:Q.yLabel,zLabel:Q.zLabel,text:J,name:B.name,color:o.castHoverOption(Y,W,"bgcolor")||B.color,borderColor:o.castHoverOption(Y,W,"bordercolor"),fontFamily:o.castHoverOption(Y,W,"font.family"),fontSize:o.castHoverOption(Y,W,"font.size"),fontColor:o.castHoverOption(Y,W,"font.color"),nameLength:o.castHoverOption(Y,W,"namelength"),textAlign:o.castHoverOption(Y,W,"align"),hovertemplate:i.castOption(Y,W,"hovertemplate"),hovertemplateLabels:i.extendFlat({},pe,Q),eventData:[pe]},{container:C,gd:L,inOut_bbox:we}),pe.bbox=we[0]}H.distance<5&&(H.buttons||m)?L.emit("plotly_click",ge):L.emit("plotly_hover",ge),this.oldEventData=ge}else o.loneUnhover(C),this.oldEventData&&L.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;E.drawAnnotations(E)},y.recoverContext=function(){var w=this;w.glplot.dispose();var E=function(){w.glplot.gl.isContextLost()?requestAnimationFrame(E):w.initializeGLPlot()?w.plot.apply(w,w.plotArgs):i.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(E)};var f=["xaxis","yaxis","zaxis"];function S(w,E,L){for(var C=w.fullSceneLayout,P=0;P<3;P++){var R=f[P],G=R.charAt(0),O=C[R],V=E[G],N=E[G+"calendar"],B=E["_"+G+"length"];if(i.isArrayOrTypedArray(V))for(var H,q=0;q<(B||V.length);q++)if(i.isArrayOrTypedArray(V[q]))for(var te=0;teY[1][G])Y[0][G]=-1,Y[1][G]=1;else{var Oe=Y[1][G]-Y[0][G];Y[0][G]-=Oe/32,Y[1][G]+=Oe/32}if(re=[Y[0][G],Y[1][G]],re=h(re,V),Y[0][G]=re[0],Y[1][G]=re[1],V.isReversed()){var ke=Y[0][G];Y[0][G]=Y[1][G],Y[1][G]=ke}}else re=V.range,Y[0][G]=V.r2l(re[0]),Y[1][G]=V.r2l(re[1]);Y[0][G]===Y[1][G]&&(Y[0][G]-=1,Y[1][G]+=1),W[G]=Y[1][G]-Y[0][G],V.range=[Y[0][G],Y[1][G]],V.limitRange(),C.glplot.setBounds(G,{min:V.range[0]*te[G],max:V.range[1]*te[G]})}var Te=B.aspectmode;if(Te==="cube")J=[1,1,1];else if(Te==="manual"){var le=B.aspectratio;J=[le.x,le.y,le.z]}else{if(Te!=="auto"&&Te!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var se=[1,1,1];for(G=0;G<3;++G){var ne=Q[N=(V=B[f[G]]).type];se[G]=Math.pow(ne.acc,1/ne.count)/te[G]}J=Te==="data"||Math.max.apply(null,se)/Math.min.apply(null,se)<=4?se:[1,1,1]}B.aspectratio.x=H.aspectratio.x=J[0],B.aspectratio.y=H.aspectratio.y=J[1],B.aspectratio.z=H.aspectratio.z=J[2],C.glplot.setAspectratio(B.aspectratio),C.viewInitial.aspectratio||(C.viewInitial.aspectratio={x:B.aspectratio.x,y:B.aspectratio.y,z:B.aspectratio.z}),C.viewInitial.aspectmode||(C.viewInitial.aspectmode=B.aspectmode);var ve=B.domain||null,Ee=E._size||null;if(ve&&Ee){var _e=C.container.style;_e.position="absolute",_e.left=Ee.l+ve.x[0]*Ee.w+"px",_e.top=Ee.t+(1-ve.y[1])*Ee.h+"px",_e.width=Ee.w*(ve.x[1]-ve.x[0])+"px",_e.height=Ee.h*(ve.y[1]-ve.y[0])+"px"}C.glplot.redraw()}},y.destroy=function(){var w=this;w.glplot&&(w.camera.mouseListener.enabled=!1,w.container.removeEventListener("wheel",w.camera.wheelListener),w.camera=null,w.glplot.dispose(),w.container.parentNode.removeChild(w.container),w.glplot=null)},y.getCamera=function(){var w,E=this;return E.camera.view.recalcMatrix(E.camera.view.lastT()),{up:{x:(w=E.camera).up[0],y:w.up[1],z:w.up[2]},center:{x:w.center[0],y:w.center[1],z:w.center[2]},eye:{x:w.eye[0],y:w.eye[1],z:w.eye[2]},projection:{type:w._ortho===!0?"orthographic":"perspective"}}},y.setViewport=function(w){var E,L=this,C=w.camera;L.camera.lookAt.apply(this,[[(E=C).eye.x,E.eye.y,E.eye.z],[E.center.x,E.center.y,E.center.z],[E.up.x,E.up.y,E.up.z]]),L.glplot.setAspectratio(w.aspectratio),C.projection.type==="orthographic"!==L.camera._ortho&&(L.glplot.redraw(),L.glplot.clearRGBA(),L.glplot.dispose(),L.initializeGLPlot())},y.isCameraChanged=function(w){var E=this.getCamera(),L=i.nestedProperty(w,this.id+".camera").get();function C(O,V,N,B){var H=["up","center","eye"],q=["x","y","z"];return V[H[N]]&&O[H[N]][q[B]]===V[H[N]][q[B]]}var P=!1;if(L===void 0)P=!0;else{for(var R=0;R<3;R++)for(var G=0;G<3;G++)if(!C(E,L,R,G)){P=!0;break}(!L.projection||E.projection&&E.projection.type!==L.projection.type)&&(P=!0)}return P},y.isAspectChanged=function(w){var E=this.glplot.getAspectratio(),L=i.nestedProperty(w,this.id+".aspectratio").get();return L===void 0||L.x!==E.x||L.y!==E.y||L.z!==E.z},y.saveLayout=function(w){var E,L,C,P,R,G,O=this,V=O.fullLayout,N=O.isCameraChanged(w),B=O.isAspectChanged(w),H=N||B;if(H){var q={};N&&(E=O.getCamera(),C=(L=i.nestedProperty(w,O.id+".camera")).get(),q[O.id+".camera"]=C),B&&(P=O.glplot.getAspectratio(),G=(R=i.nestedProperty(w,O.id+".aspectratio")).get(),q[O.id+".aspectratio"]=G),t.call("_storeDirectGUIEdit",w,V._preGUI,q),N&&(L.set(E),i.nestedProperty(V,O.id+".camera").set(E)),B&&(R.set(P),i.nestedProperty(V,O.id+".aspectratio").set(P),O.glplot.redraw())}return H},y.updateFx=function(w,E){var L=this,C=L.camera;if(C)if(w==="orbit")C.mode="orbit",C.keyBindingMode="rotate";else if(w==="turntable"){C.up=[0,0,1],C.mode="turntable",C.keyBindingMode="rotate";var P=L.graphDiv,R=P._fullLayout,G=L.fullSceneLayout.camera,O=G.up.x,V=G.up.y,N=G.up.z;if(N/Math.sqrt(O*O+V*V+N*N)<.999){var B=L.id+".camera.up",H={x:0,y:0,z:1},q={};q[B]=H;var te=P.layout;t.call("_storeDirectGUIEdit",te,R._preGUI,q),G.up=H,i.nestedProperty(te,B).set(H)}}else C.keyBindingMode=w;L.fullSceneLayout.hovermode=E},y.toImage=function(w){var E=this;w||(w="png"),E.staticMode&&E.container.appendChild(M),E.glplot.redraw();var L=E.glplot.gl,C=L.drawingBufferWidth,P=L.drawingBufferHeight;L.bindFramebuffer(L.FRAMEBUFFER,null);var R=new Uint8Array(C*P*4);L.readPixels(0,0,C,P,L.RGBA,L.UNSIGNED_BYTE,R),function(B,H,q){for(var te=0,K=q-1;te0)for(var W=255/Y,Q=0;Q<3;++Q)B[J+Q]=Math.min(W*B[J+Q],255)}}(R,C,P);var G=document.createElement("canvas");G.width=C,G.height=P;var O,V=G.getContext("2d",{willReadFrequently:!0}),N=V.createImageData(C,P);switch(N.data.set(R),V.putImageData(N,0,0),w){case"jpeg":O=G.toDataURL("image/jpeg");break;case"webp":O=G.toDataURL("image/webp");break;default:O=G.toDataURL("image/png")}return E.staticMode&&E.container.removeChild(M),O},y.setConvert=function(){for(var w=0;w<3;w++){var E=this.fullSceneLayout[f[w]];n.setConvert(E,this.fullLayout),E.setScale=i.noop}},y.make4thDimension=function(){var w=this,E=w.graphDiv._fullLayout;w._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},n.setConvert(w._mockAxis,E)},ee.exports=v},90060:function(ee){ee.exports=function(z,e,M,k){k=k||z.length;for(var l=new Array(k),T=0;TOpenStreetMap
contributors',T=['\xA9 Carto',l].join(" "),b=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),d={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:l,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:T,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:T,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:b,tiles:["https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:b,tiles:["https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},s=M(d);ee.exports={requiredVersion:k,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:d,styleValuesNonMapbox:s,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install mapbox-gl@"+k+"."].join(` @@ -3559,4 +3559,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+H.split(` `).map(function(te){return" "+te}).join(` `)):H=P.stylize("[Circular]","special")),g(B)){if(N&&V.match(/^\d+$/))return H;(B=JSON.stringify(""+V)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.slice(1,-1),B=P.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=P.stylize(B,"string"))}return B+": "+H}function a(P){return Array.isArray(P)}function u(P){return typeof P=="boolean"}function p(P){return P===null}function c(P){return typeof P=="number"}function x(P){return typeof P=="string"}function g(P){return P===void 0}function h(P){return m(P)&&f(P)==="[object RegExp]"}function m(P){return typeof P=="object"&&P!==null}function v(P){return m(P)&&f(P)==="[object Date]"}function y(P){return m(P)&&(f(P)==="[object Error]"||P instanceof Error)}function _(P){return typeof P=="function"}function f(P){return Object.prototype.toString.call(P)}function S(P){return P<10?"0"+P.toString(10):P.toString(10)}z.debuglog=function(P){if(P=P.toUpperCase(),!T[P])if(b.test(P)){var R=M.pid;T[P]=function(){var G=z.format.apply(z,arguments);console.error("%s %d: %s",P,R,G)}}else T[P]=function(){};return T[P]},z.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},z.types=e(4936),z.isArray=a,z.isBoolean=u,z.isNull=p,z.isNullOrUndefined=function(P){return P==null},z.isNumber=c,z.isString=x,z.isSymbol=function(P){return typeof P=="symbol"},z.isUndefined=g,z.isRegExp=h,z.types.isRegExp=h,z.isObject=m,z.isDate=v,z.types.isDate=v,z.isError=y,z.types.isNativeError=y,z.isFunction=_,z.isPrimitive=function(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||P===void 0},z.isBuffer=e(45920);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(P,R){return Object.prototype.hasOwnProperty.call(P,R)}z.log=function(){var P,R;console.log("%s - %s",(R=[S((P=new Date).getHours()),S(P.getMinutes()),S(P.getSeconds())].join(":"),[P.getDate(),w[P.getMonth()],R].join(" ")),z.format.apply(z,arguments))},z.inherits=e(42018),z._extend=function(P,R){if(!R||!m(R))return P;for(var G=Object.keys(R),O=G.length;O--;)P[G[O]]=R[G[O]];return P};var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function C(P,R){if(!P){var G=new Error("Promise was rejected with a falsy value");G.reason=P,P=G}return R(P)}z.promisify=function(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');if(L&&P[L]){var R;if(typeof(R=P[L])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(R,L,{value:R,enumerable:!1,writable:!1,configurable:!0}),R}function R(){for(var G,O,V=new Promise(function(H,q){G=H,O=q}),N=[],B=0;B"u"?e.g:globalThis,t=k(),i=l("String.prototype.slice"),r={},n=Object.getPrototypeOf;d&&T&&n&&M(t,function(a){if(typeof s[a]=="function"){var u=new s[a];if(Symbol.toStringTag in u){var p=n(u),c=T(p,Symbol.toStringTag);if(!c){var x=n(p);c=T(x,Symbol.toStringTag)}r[a]=c.get}}});var o=e(9187);ee.exports=function(a){return!!o(a)&&(d&&Symbol.toStringTag in a?function(u){var p=!1;return M(r,function(c,x){if(!p)try{var g=c.call(u);g===x&&(p=g)}catch{}}),p}(a):i(b(a),8,-1))}},3961:function(ee,z,e){var M=e(63489),k=e(56131),l=M.instance();function T(n){this.local=this.regionalOptions[n||""]||this.regionalOptions[""]}T.prototype=new M.baseCalendar,k(T.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(n,o){if(typeof n=="string"){var a=n.match(d);return a?a[0]:""}var u=this._validateYear(n),p=n.month(),c=""+this.toChineseMonth(u,p);return o&&c.length<2&&(c="0"+c),this.isIntercalaryMonth(u,p)&&(c+="i"),c},monthNames:function(n){if(typeof n=="string"){var o=n.match(s);return o?o[0]:""}var a=this._validateYear(n),u=n.month(),p=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][this.toChineseMonth(a,u)-1];return this.isIntercalaryMonth(a,u)&&(p="\u95F0"+p),p},monthNamesShort:function(n){if(typeof n=="string"){var o=n.match(t);return o?o[0]:""}var a=this._validateYear(n),u=n.month(),p=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][this.toChineseMonth(a,u)-1];return this.isIntercalaryMonth(a,u)&&(p="\u95F0"+p),p},parseMonth:function(n,o){n=this._validateYear(n);var a,u=parseInt(o);if(isNaN(u))o[0]==="\u95F0"&&(a=!0,o=o.substring(1)),o[o.length-1]==="\u6708"&&(o=o.substring(0,o.length-1)),u=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(o);else{var p=o[o.length-1];a=p==="i"||p==="I"}return this.toMonthIndex(n,u,a)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(n,o){if(n.year&&(n=n.year()),typeof n!="number"||n<1888||n>2111)throw o.replace(/\{0\}/,this.local.name);return n},toMonthIndex:function(n,o,a){var u=this.intercalaryMonth(n);if(a&&o!==u||o<1||o>12)throw M.local.invalidMonth.replace(/\{0\}/,this.local.name);return u?!a&&o<=u?o-1:o:o-1},toChineseMonth:function(n,o){n.year&&(o=(n=n.year()).month());var a=this.intercalaryMonth(n);if(o<0||o>(a?12:11))throw M.local.invalidMonth.replace(/\{0\}/,this.local.name);return a?o>13},isIntercalaryMonth:function(n,o){n.year&&(o=(n=n.year()).month());var a=this.intercalaryMonth(n);return!!a&&a===o},leapYear:function(n){return this.intercalaryMonth(n)!==0},weekOfYear:function(n,o,a){var u,p=this._validateYear(n,M.local.invalidyear),c=r[p-r[0]],x=c>>9&4095,g=c>>5&15,h=31&c;(u=l.newDate(x,g,h)).add(4-(u.dayOfWeek()||7),"d");var m=this.toJD(n,o,a)-u.toJD();return 1+Math.floor(m/7)},monthsInYear:function(n){return this.leapYear(n)?13:12},daysInMonth:function(n,o){n.year&&(o=n.month(),n=n.year()),n=this._validateYear(n);var a=i[n-i[0]];if(o>(a>>13?12:11))throw M.local.invalidMonth.replace(/\{0\}/,this.local.name);return a&1<<12-o?30:29},weekDay:function(n,o,a){return(this.dayOfWeek(n,o,a)||7)<6},toJD:function(n,o,a){var u=this._validate(n,c,a,M.local.invalidDate);n=this._validateYear(u.year()),o=u.month(),a=u.day();var p=this.isIntercalaryMonth(n,o),c=this.toChineseMonth(n,o),x=function(g,h,m,v,y){var _,f,S;if(typeof g=="object")f=g,_=h||{};else{var w;if(!(typeof g=="number"&&g>=1888&&g<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof h=="number"&&h>=1&&h<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof m=="number"&&m>=1&&m<=30))throw new Error("Lunar day outside range 1 - 30");typeof v=="object"?(w=!1,_=v):(w=!!v,_={}),f={year:g,month:h,day:m,isIntercalary:w}}S=f.day-1;var E,L=i[f.year-i[0]],C=L>>13;E=C&&(f.month>C||f.isIntercalary)?f.month:f.month-1;for(var P=0;P>9&4095,(R>>5&15)-1,(31&R)+S);return _.year=G.getFullYear(),_.month=1+G.getMonth(),_.day=G.getDate(),_}(n,c,a,p);return l.toJD(x.year,x.month,x.day)},fromJD:function(n){var o=l.fromJD(n),a=function(p,c,x,g){var h,m;if(typeof p=="object")h=p,m=c||{};else{if(!(typeof p=="number"&&p>=1888&&p<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof c=="number"&&c>=1&&c<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof x=="number"&&x>=1&&x<=31))throw new Error("Solar day outside range 1 - 31");h={year:p,month:c,day:x},m={}}var v=r[h.year-r[0]],y=h.year<<9|h.month<<5|h.day;m.year=y>=v?h.year:h.year-1,v=r[m.year-r[0]];var _,f=new Date(v>>9&4095,(v>>5&15)-1,31&v),S=new Date(h.year,h.month-1,h.day);_=Math.round((S-f)/864e5);var w,E=i[m.year-i[0]];for(w=0;w<13;w++){var L=E&1<<12-w?30:29;if(_>13;return!C||w=2&&t<=6},extraInfo:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return{century:T[Math.floor((t.year()-1)/100)+1]||""}},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return b=t.year()+(t.year()<0?1:0),d=t.month(),(s=t.day())+(d>1?16:0)+(d>2?32*(d-2):0)+400*(b-1)+this.jdEpoch-1},fromJD:function(b){b=Math.floor(b+.5)-Math.floor(this.jdEpoch)-1;var d=Math.floor(b/400)+1;b-=400*(d-1),b+=b>15?16:0;var s=Math.floor(b/32)+1,t=b-32*(s-1)+1;return this.newDate(d<=0?d-1:d,s,t)}});var T={20:"Fruitbat",21:"Anchovy"};M.calendars.discworld=l},37715:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(T){var b=this._validate(T,this.minMonth,this.minDay,M.local.invalidYear);return(T=b.year()+(b.year()<0?1:0))%4==3||T%4==-1},monthsInYear:function(T){return this._validate(T,this.minMonth,this.minDay,M.local.invalidYear||M.regionalOptions[""].invalidYear),13},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(T,b){var d=this._validate(T,b,this.minDay,M.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===13&&this.leapYear(d.year())?1:0)},weekDay:function(T,b,d){return(this.dayOfWeek(T,b,d)||7)<6},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);return(T=s.year())<0&&T++,s.day()+30*(s.month()-1)+365*(T-1)+Math.floor(T/4)+this.jdEpoch-1},fromJD:function(T){var b=Math.floor(T)+.5-this.jdEpoch,d=Math.floor((b-Math.floor((b+366)/1461))/365)+1;d<=0&&d--,b=Math.floor(T)+.5-this.newDate(d,1,1).toJD();var s=Math.floor(b/30)+1,t=b-30*(s-1)+1;return this.newDate(d,s,t)}}),M.calendars.ethiopian=l},99384:function(ee,z,e){var M=e(63489),k=e(56131);function l(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}function T(b,d){return b-d*Math.floor(b/d)}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return this._leapYear(d.year())},_leapYear:function(b){return T(7*(b=b<0?b+1:b)+1,19)<7},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,M.local.invalidYear),this._leapYear(b.year?b.year():b)?13:12},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(b){return b=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear).year(),this.toJD(b===-1?1:b+1,7,1)-this.toJD(b,7,1)},daysInMonth:function(b,d){return b.year&&(d=b.month(),b=b.year()),this._validate(b,d,this.minDay,M.local.invalidMonth),d===12&&this.leapYear(b)||d===8&&T(this.daysInYear(b),10)===5?30:d===9&&T(this.daysInYear(b),10)===3?29:this.daysPerMonth[d-1]},weekDay:function(b,d,s){return this.dayOfWeek(b,d,s)!==6},extraInfo:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return{yearType:(this.leapYear(t)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(t)%10-3]}},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);b=t.year(),d=t.month(),s=t.day();var i=b<=0?b+1:b,r=this.jdEpoch+this._delay1(i)+this._delay2(i)+s+1;if(d<7){for(var n=7;n<=this.monthsInYear(b);n++)r+=this.daysInMonth(b,n);for(n=1;n=this.toJD(d===-1?1:d+1,7,1);)d++;for(var s=bthis.toJD(d,s,this.daysInMonth(d,s));)s++;var t=b-this.toJD(d,s,1)+1;return this.newDate(d,s,t)}}),M.calendars.hebrew=l},43805:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(T){return(11*this._validate(T,this.minMonth,this.minDay,M.local.invalidYear).year()+14)%30<11},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(T){return this.leapYear(T)?355:354},daysInMonth:function(T,b){var d=this._validate(T,b,this.minDay,M.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===12&&this.leapYear(d.year())?1:0)},weekDay:function(T,b,d){return this.dayOfWeek(T,b,d)!==5},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);return T=s.year(),b=s.month(),T=T<=0?T+1:T,(d=s.day())+Math.ceil(29.5*(b-1))+354*(T-1)+Math.floor((3+11*T)/30)+this.jdEpoch-1},fromJD:function(T){T=Math.floor(T)+.5;var b=Math.floor((30*(T-this.jdEpoch)+10646)/10631);b=b<=0?b-1:b;var d=Math.min(12,Math.ceil((T-29-this.toJD(b,1,1))/29.5)+1),s=T-this.toJD(b,d,1)+1;return this.newDate(b,d,s)}}),M.calendars.islamic=l},88874:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(T){var b=this._validate(T,this.minMonth,this.minDay,M.local.invalidYear);return(T=b.year()<0?b.year()+1:b.year())%4==0},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(4-(s.dayOfWeek()||7),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(T,b){var d=this._validate(T,b,this.minDay,M.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(T,b,d){return(this.dayOfWeek(T,b,d)||7)<6},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);return T=s.year(),b=s.month(),d=s.day(),T<0&&T++,b<=2&&(T--,b+=12),Math.floor(365.25*(T+4716))+Math.floor(30.6001*(b+1))+d-1524.5},fromJD:function(T){var b=Math.floor(T+.5)+1524,d=Math.floor((b-122.1)/365.25),s=Math.floor(365.25*d),t=Math.floor((b-s)/30.6001),i=t-Math.floor(t<14?1:13),r=d-Math.floor(i>2?4716:4715),n=b-s-Math.floor(30.6001*t);return r<=0&&r--,this.newDate(r,i,n)}}),M.calendars.julian=l},83290:function(ee,z,e){var M=e(63489),k=e(56131);function l(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function T(d,s){return d-s*Math.floor(d/s)}function b(d,s){return T(d-1,s)+1}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,M.local.invalidYear),!1},formatYear:function(d){d=this._validate(d,this.minMonth,this.minDay,M.local.invalidYear).year();var s=Math.floor(d/400);return d%=400,d+=d<0?400:0,s+"."+Math.floor(d/20)+"."+d%20},forYear:function(d){if((d=d.split(".")).length<3)throw"Invalid Mayan year";for(var s=0,t=0;t19||t>0&&i<0)throw"Invalid Mayan year";s=20*s+i}return s},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,M.local.invalidYear),18},weekOfYear:function(d,s,t){return this._validate(d,s,t,M.local.invalidDate),0},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,M.local.invalidYear),360},daysInMonth:function(d,s){return this._validate(d,s,this.minDay,M.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(d,s,t){return this._validate(d,s,t,M.local.invalidDate).day()},weekDay:function(d,s,t){return this._validate(d,s,t,M.local.invalidDate),!0},extraInfo:function(d,s,t){var i=this._validate(d,s,t,M.local.invalidDate).toJD(),r=this._toHaab(i),n=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[r[0]-1],haabMonth:r[0],haabDay:r[1],tzolkinDayName:this.local.tzolkinMonths[n[0]-1],tzolkinDay:n[0],tzolkinTrecena:n[1]}},_toHaab:function(d){var s=T(8+(d-=this.jdEpoch)+340,365);return[Math.floor(s/20)+1,T(s,20)]},_toTzolkin:function(d){return[b(20+(d-=this.jdEpoch),20),b(d+4,13)]},toJD:function(d,s,t){var i=this._validate(d,s,t,M.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(d){d=Math.floor(d)+.5-this.jdEpoch;var s=Math.floor(d/360);d%=360,d+=d<0?360:0;var t=Math.floor(d/20),i=d%20;return this.newDate(s,t,i)}}),M.calendars.mayan=l},29108:function(ee,z,e){var M=e(63489),k=e(56131);function l(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar;var T=M.instance("gregorian");k(l.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear||M.regionalOptions[""].invalidYear);return T.leapYear(d.year()+(d.year()<1?1:0)+1469)},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(1-(t.dayOfWeek()||7),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return(this.dayOfWeek(b,d,s)||7)<6},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidMonth);(b=t.year())<0&&b++;for(var i=t.day(),r=1;r=this.toJD(d+1,1,1);)d++;for(var s=b-Math.floor(this.toJD(d,1,1)+.5)+1,t=1;s>this.daysInMonth(d,t);)s-=this.daysInMonth(d,t),t++;return this.newDate(d,t,s)}}),M.calendars.nanakshahi=l},55422:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(T){return this.daysInYear(T)!==this.daysPerYear},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(T){if(T=this._validate(T,this.minMonth,this.minDay,M.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[T]===void 0)return this.daysPerYear;for(var b=0,d=this.minMonth;d<=12;d++)b+=this.NEPALI_CALENDAR_DATA[T][d];return b},daysInMonth:function(T,b){return T.year&&(b=T.month(),T=T.year()),this._validate(T,b,this.minDay,M.local.invalidMonth),this.NEPALI_CALENDAR_DATA[T]===void 0?this.daysPerMonth[b-1]:this.NEPALI_CALENDAR_DATA[T][b]},weekDay:function(T,b,d){return this.dayOfWeek(T,b,d)!==6},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);T=s.year(),b=s.month(),d=s.day();var t=M.instance(),i=0,r=b,n=T;this._createMissingCalendarData(T);var o=T-(r>9||r===9&&d>=this.NEPALI_CALENDAR_DATA[n][0]?56:57);for(b!==9&&(i=d,r--);r!==9;)r<=0&&(r=12,n--),i+=this.NEPALI_CALENDAR_DATA[n][r],r--;return b===9?(i+=d-this.NEPALI_CALENDAR_DATA[n][0])<0&&(i+=t.daysInYear(o)):i+=this.NEPALI_CALENDAR_DATA[n][9]-this.NEPALI_CALENDAR_DATA[n][0],t.newDate(o,1,1).add(i,"d").toJD()},fromJD:function(T){var b=M.instance().fromJD(T),d=b.year(),s=b.dayOfYear(),t=d+56;this._createMissingCalendarData(t);for(var i=9,r=this.NEPALI_CALENDAR_DATA[t][0],n=this.NEPALI_CALENDAR_DATA[t][i]-r+1;s>n;)++i>12&&(i=1,t++),n+=this.NEPALI_CALENDAR_DATA[t][i];var o=this.NEPALI_CALENDAR_DATA[t][i]-(n-s);return this.newDate(t,i,o)},_createMissingCalendarData:function(T){var b=this.daysPerMonth.slice(0);b.unshift(17);for(var d=T-1;d0?474:473))%2820+474+38)%2816<682},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(-(t.dayOfWeek()+1)%7,"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return this.dayOfWeek(b,d,s)!==5},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);b=t.year(),d=t.month(),s=t.day();var i=b-(b>=0?474:473),r=474+T(i,2820);return s+(d<=7?31*(d-1):30*(d-1)+6)+Math.floor((682*r-110)/2816)+365*(r-1)+1029983*Math.floor(i/2820)+this.jdEpoch-1},fromJD:function(b){var d=(b=Math.floor(b)+.5)-this.toJD(475,1,1),s=Math.floor(d/1029983),t=T(d,1029983),i=2820;if(t!==1029982){var r=Math.floor(t/366),n=T(t,366);i=Math.floor((2134*r+2816*n+2815)/1028522)+r+1}var o=i+2820*s+474;o=o<=0?o-1:o;var a=b-this.toJD(o,1,1)+1,u=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),p=b-this.toJD(o,u,1)+1;return this.newDate(o,u,p)}}),M.calendars.persian=l,M.calendars.jalali=l},31320:function(ee,z,e){var M=e(63489),k=e(56131),l=M.instance();function T(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}T.prototype=new M.baseCalendar,k(T.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(d.year()),l.leapYear(b)},weekOfYear:function(b,d,s){var t=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(t.year()),l.weekOfYear(b,t.month(),t.day())},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return(this.dayOfWeek(b,d,s)||7)<6},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return b=this._t2gYear(t.year()),l.toJD(b,t.month(),t.day())},fromJD:function(b){var d=l.fromJD(b),s=this._g2tYear(d.year());return this.newDate(s,d.month(),d.day())},_t2gYear:function(b){return b+this.yearsOffset+(b>=-this.yearsOffset&&b<=-1?1:0)},_g2tYear:function(b){return b-this.yearsOffset-(b>=1&&b<=this.yearsOffset?1:0)}}),M.calendars.taiwan=T},51367:function(ee,z,e){var M=e(63489),k=e(56131),l=M.instance();function T(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}T.prototype=new M.baseCalendar,k(T.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(d.year()),l.leapYear(b)},weekOfYear:function(b,d,s){var t=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(t.year()),l.weekOfYear(b,t.month(),t.day())},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return(this.dayOfWeek(b,d,s)||7)<6},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return b=this._t2gYear(t.year()),l.toJD(b,t.month(),t.day())},fromJD:function(b){var d=l.fromJD(b),s=this._g2tYear(d.year());return this.newDate(s,d.month(),d.day())},_t2gYear:function(b){return b-this.yearsOffset-(b>=1&&b<=this.yearsOffset?1:0)},_g2tYear:function(b){return b+this.yearsOffset+(b>=-this.yearsOffset&&b<=-1?1:0)}}),M.calendars.thai=T},21457:function(ee,z,e){var M=e(63489),k=e(56131);function l(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return this.daysInYear(d.year())===355},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(b){for(var d=0,s=1;s<=12;s++)d+=this.daysInMonth(b,s);return d},daysInMonth:function(b,d){for(var s=this._validate(b,d,this.minDay,M.local.invalidMonth).toJD()-24e5+.5,t=0,i=0;is)return T[t]-T[t-1];t++}return 30},weekDay:function(b,d,s){return this.dayOfWeek(b,d,s)!==5},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate),i=12*(t.year()-1)+t.month()-15292;return t.day()+T[i-1]-1+24e5-.5},fromJD:function(b){for(var d=b-24e5+.5,s=0,t=0;td);t++)s++;var i=s+15292,r=Math.floor((i-1)/12),n=r+1,o=i-12*r,a=d-T[s-1]+1;return this.newDate(n,o,a)},isValid:function(b,d,s){var t=M.baseCalendar.prototype.isValid.apply(this,arguments);return t&&(t=(b=b.year!=null?b.year:b)>=1276&&b<=1500),t},_validate:function(b,d,s,t){var i=M.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw t.replace(/\{0\}/,this.local.name);return i}}),M.calendars.ummalqura=l;var T=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(ee,z,e){var M=e(56131);function k(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function l(t,i,r,n){if(this._calendar=t,this._year=i,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function T(t,i){return"000000".substring(0,i-(t=""+t).length)+t}function b(){this.shortYearCutoff="+10"}function d(t){this.local=this.regionalOptions[t]||this.regionalOptions[""]}M(k.prototype,{instance:function(t,i){t=(t||"gregorian").toLowerCase(),i=i||"";var r=this._localCals[t+"-"+i];if(!r&&this.calendars[t]&&(r=new this.calendars[t](i),this._localCals[t+"-"+i]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,i,r,n,o){return(n=(t!=null&&t.year?t.calendar():typeof n=="string"?this.instance(n,o):n)||this.instance()).newDate(t,i,r)},substituteDigits:function(t){return function(i){return(i+"").replace(/[0-9]/g,function(r){return t[r]})}},substituteChineseDigits:function(t,i){return function(r){for(var n="",o=0;r>0;){var a=r%10;n=(a===0?"":t[a]+i[o])+n,o++,r=Math.floor(r/10)}return n.indexOf(t[1]+i[1])===0&&(n=n.substr(1)),n||t[0]}}}),M(l.prototype,{newDate:function(t,i,r){return this._calendar.newDate(t==null?this:t,i,r)},year:function(t){return arguments.length===0?this._year:this.set(t,"y")},month:function(t){return arguments.length===0?this._month:this.set(t,"m")},day:function(t){return arguments.length===0?this._day:this.set(t,"d")},date:function(t,i,r){if(!this._calendar.isValid(t,i,r))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=i,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,i){return this._calendar.add(this,t,i)},set:function(t,i){return this._calendar.set(this,t,i)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var i=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return i===0?0:i<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?"-":"")+T(Math.abs(this.year()),4)+"-"+T(this.month(),2)+"-"+T(this.day(),2)}}),M(b.prototype,{_validateLevel:0,newDate:function(t,i,r){return t==null?this.today():(t.year&&(this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate),r=t.day(),i=t.month(),t=t.year()),new l(this,t,i,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var i=this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(i.year()<0?"-":"")+T(Math.abs(i.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),12},monthOfYear:function(t,i){var r=this._validate(t,i,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,i){var r=(i+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth),r},daysInYear:function(t){var i=this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return this.leapYear(i)?366:365},dayOfYear:function(t,i,r){var n=this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,i,r){var n=this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,i,r){return this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate),{}},add:function(t,i,r){return this._validate(t,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate),this._correctAdd(t,this._add(t,i,r),i,r)},_add:function(t,i,r){if(this._validateLevel++,r==="d"||r==="w"){var n=t.toJD()+i*(r==="w"?this.daysInWeek():1),o=t.calendar().fromJD(n);return this._validateLevel--,[o.year(),o.month(),o.day()]}try{var a=t.year()+(r==="y"?i:0),u=t.monthOfYear()+(r==="m"?i:0);o=t.day(),r==="y"?(t.month()!==this.fromMonthOfYear(a,u)&&(u=this.newDate(a,t.month(),this.minDay).monthOfYear()),u=Math.min(u,this.monthsInYear(a)),o=Math.min(o,this.daysInMonth(a,this.fromMonthOfYear(a,u)))):r==="m"&&(function(c){for(;ux-1+c.minMonth;)a++,u-=x,x=c.monthsInYear(a)}(this),o=Math.min(o,this.daysInMonth(a,this.fromMonthOfYear(a,u))));var p=[a,this.fromMonthOfYear(a,u),o];return this._validateLevel--,p}catch(c){throw this._validateLevel--,c}},_correctAdd:function(t,i,r,n){if(!(this.hasYearZero||n!=="y"&&n!=="m"||i[0]!==0&&t.year()>0==i[0]>0)){var o={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;i=this._add(t,r*o[0]+a*o[1],o[2])}return t.date(i[0],i[1],i[2])},set:function(t,i,r){this._validate(t,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate);var n=r==="y"?i:t.year(),o=r==="m"?i:t.month(),a=r==="d"?i:t.day();return r!=="y"&&r!=="m"||(a=Math.min(a,this.daysInMonth(n,o))),t.date(n,o,a)},isValid:function(t,i,r){this._validateLevel++;var n=this.hasYearZero||t!==0;if(n){var o=this.newDate(t,i,this.minDay);n=i>=this.minMonth&&i-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),x=o-(c>2.5?4716:4715);return x<=0&&x--,this.newDate(x,c,p)},toJSDate:function(t,i,r){var n=this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate),o=new Date(n.year(),n.month()-1,n.day());return o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),o.setHours(o.getHours()>12?o.getHours()+2:0),o},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var s=ee.exports=new k;s.cdate=l,s.baseCalendar=b,s.calendars.gregorian=d},94338:function(ee,z,e){var M=e(56131),k=e(63489);M(k.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),k.local=k.regionalOptions[""],M(k.cdate.prototype,{formatDate:function(l,T){return typeof l!="string"&&(T=l,l=""),this._calendar.formatDate(l||"",this,T)}}),M(k.baseCalendar.prototype,{UNIX_EPOCH:k.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:k.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(l,T,b){if(typeof l!="string"&&(b=T,T=l,l=""),!T)return"";if(T.calendar()!==this)throw k.local.invalidFormat||k.regionalOptions[""].invalidFormat;l=l||this.local.dateFormat;for(var d,s,t,i=(b=b||{}).dayNamesShort||this.local.dayNamesShort,r=b.dayNames||this.local.dayNames,n=b.monthNumbers||this.local.monthNumbers,o=b.monthNamesShort||this.local.monthNamesShort,a=b.monthNames||this.local.monthNames,u=(b.calculateWeek||this.local.calculateWeek,function(f,S){for(var w=1;_+w1}),p=function(f,S,w,E){var L=""+S;if(u(f,E))for(;L.length1},v=function(R,G){var O=m(R,G),V=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],N=new RegExp("^-?\\d{1,"+V+"}"),B=T.substring(E).match(N);if(!B)throw(k.local.missingNumberAt||k.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=B[0].length,parseInt(B[0],10)},y=this,_=function(){if(typeof r=="function"){m("m");var R=r.call(y,T.substring(E));return E+=R.length,R}return v("m")},f=function(R,G,O,V){for(var N=m(R,V)?O:G,B=0;B-1){p=1,c=x;for(var P=this.daysInMonth(u,p);c>P;P=this.daysInMonth(u,p))p++,c-=P}return a>-1?this.fromJD(a):this.newDate(u,p,c)},determineDate:function(l,T,b,d,s){b&&typeof b!="object"&&(s=d,d=b,b=null),typeof d!="string"&&(s=d,d="");var t=this;return T=T?T.newDate():null,l==null?T:typeof l=="string"?function(i){try{return t.parseDate(d,i,s)}catch{}for(var r=((i=i.toLowerCase()).match(/^c/)&&b?b.newDate():null)||t.today(),n=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,o=n.exec(i);o;)r.add(parseInt(o[1],10),o[2]||"d"),o=n.exec(i);return r}(l):typeof l=="number"?isNaN(l)||l===1/0||l===-1/0?T:t.today().add(l,"d"):t.newDate(l)}})},69862:function(){},40964:function(){},72077:function(ee,z,e){var M=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],k=typeof globalThis>"u"?e.g:globalThis;ee.exports=function(){for(var l=[],T=0;T>8&15|ge>>4&240,ge>>4&15|240&ge,(15&ge)<<4|15&ge,1):we===8?v(ge>>24&255,ge>>16&255,ge>>8&255,(255&ge)/255):we===4?v(ge>>12&15|ge>>8&240,ge>>8&15|ge>>4&240,ge>>4&15|240&ge,((15&ge)<<4|15&ge)/255):null):(ge=r.exec(pe))?new _(ge[1],ge[2],ge[3],1):(ge=n.exec(pe))?new _(255*ge[1]/100,255*ge[2]/100,255*ge[3]/100,1):(ge=o.exec(pe))?v(ge[1],ge[2],ge[3],ge[4]):(ge=a.exec(pe))?v(255*ge[1]/100,255*ge[2]/100,255*ge[3]/100,ge[4]):(ge=u.exec(pe))?C(ge[1],ge[2]/100,ge[3]/100,1):(ge=p.exec(pe))?C(ge[1],ge[2]/100,ge[3]/100,ge[4]):c.hasOwnProperty(pe)?m(c[pe]):pe==="transparent"?new _(NaN,NaN,NaN,0):null}function m(pe){return new _(pe>>16&255,pe>>8&255,255&pe,1)}function v(pe,ge,we,ye){return ye<=0&&(pe=ge=we=NaN),new _(pe,ge,we,ye)}function y(pe,ge,we,ye){return arguments.length===1?((me=pe)instanceof l||(me=h(me)),me?new _((me=me.rgb()).r,me.g,me.b,me.opacity):new _):new _(pe,ge,we,ye==null?1:ye);var me}function _(pe,ge,we,ye){this.r=+pe,this.g=+ge,this.b=+we,this.opacity=+ye}function f(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b))}function S(){var pe=w(this.opacity);return"".concat(pe===1?"rgb(":"rgba(").concat(E(this.r),", ").concat(E(this.g),", ").concat(E(this.b)).concat(pe===1?")":", ".concat(pe,")"))}function w(pe){return isNaN(pe)?1:Math.max(0,Math.min(1,pe))}function E(pe){return Math.max(0,Math.min(255,Math.round(pe)||0))}function L(pe){return((pe=E(pe))<16?"0":"")+pe.toString(16)}function C(pe,ge,we,ye){return ye<=0?pe=ge=we=NaN:we<=0||we>=1?pe=ge=NaN:ge<=0&&(pe=NaN),new R(pe,ge,we,ye)}function P(pe){if(pe instanceof R)return new R(pe.h,pe.s,pe.l,pe.opacity);if(pe instanceof l||(pe=h(pe)),!pe)return new R;if(pe instanceof R)return pe;var ge=(pe=pe.rgb()).r/255,we=pe.g/255,ye=pe.b/255,me=Math.min(ge,we,ye),Oe=Math.max(ge,we,ye),ke=NaN,Te=Oe-me,le=(Oe+me)/2;return Te?(ke=ge===Oe?(we-ye)/Te+6*(we0&&le<1?0:ke,new R(ke,Te,le,pe.opacity)}function R(pe,ge,we,ye){this.h=+pe,this.s=+ge,this.l=+we,this.opacity=+ye}function G(pe){return(pe=(pe||0)%360)<0?pe+360:pe}function O(pe){return Math.max(0,Math.min(1,pe||0))}function V(pe,ge,we){return 255*(pe<60?ge+(we-ge)*pe/60:pe<180?we:pe<240?ge+(we-ge)*(240-pe)/60:ge)}M(l,h,{copy:function(pe){return Object.assign(new this.constructor,this,pe)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return P(this).formatHsl()},formatRgb:g,toString:g}),M(_,y,k(l,{brighter:function(pe){return pe=pe==null?b:Math.pow(b,pe),new _(this.r*pe,this.g*pe,this.b*pe,this.opacity)},darker:function(pe){return pe=pe==null?T:Math.pow(T,pe),new _(this.r*pe,this.g*pe,this.b*pe,this.opacity)},rgb:function(){return this},clamp:function(){return new _(E(this.r),E(this.g),E(this.b),w(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f,formatHex:f,formatHex8:function(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b)).concat(L(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:S,toString:S})),M(R,function(pe,ge,we,ye){return arguments.length===1?P(pe):new R(pe,ge,we,ye==null?1:ye)},k(l,{brighter:function(pe){return pe=pe==null?b:Math.pow(b,pe),new R(this.h,this.s,this.l*pe,this.opacity)},darker:function(pe){return pe=pe==null?T:Math.pow(T,pe),new R(this.h,this.s,this.l*pe,this.opacity)},rgb:function(){var pe=this.h%360+360*(this.h<0),ge=isNaN(pe)||isNaN(this.s)?0:this.s,we=this.l,ye=we+(we<.5?we:1-we)*ge,me=2*we-ye;return new _(V(pe>=240?pe-240:pe+120,me,ye),V(pe,me,ye),V(pe<120?pe+240:pe-120,me,ye),this.opacity)},clamp:function(){return new R(G(this.h),O(this.s),O(this.l),w(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var pe=w(this.opacity);return"".concat(pe===1?"hsl(":"hsla(").concat(G(this.h),", ").concat(100*O(this.s),"%, ").concat(100*O(this.l),"%").concat(pe===1?")":", ".concat(pe,")"))}}));var N=function(pe){return function(){return pe}};function B(pe,ge){var we=ge-pe;return we?function(ye,me){return function(Oe){return ye+Oe*me}}(pe,we):N(isNaN(pe)?ge:pe)}var H=function pe(ge){var we=function(me){return(me=+me)==1?B:function(Oe,ke){return ke-Oe?function(Te,le,se){return Te=Math.pow(Te,se),le=Math.pow(le,se)-Te,se=1/se,function(ne){return Math.pow(Te+ne*le,se)}}(Oe,ke,me):N(isNaN(Oe)?ke:Oe)}}(ge);function ye(me,Oe){var ke=we((me=y(me)).r,(Oe=y(Oe)).r),Te=we(me.g,Oe.g),le=we(me.b,Oe.b),se=B(me.opacity,Oe.opacity);return function(ne){return me.r=ke(ne),me.g=Te(ne),me.b=le(ne),me.opacity=se(ne),me+""}}return ye.gamma=pe,ye}(1);function q(pe,ge){var we,ye=ge?ge.length:0,me=pe?Math.min(ye,pe.length):0,Oe=new Array(me),ke=new Array(ye);for(we=0;weOe&&(me=ge.slice(Oe,me),Te[ke]?Te[ke]+=me:Te[++ke]=me),(we=we[0])===(ye=ye[0])?Te[ke]?Te[ke]+=ye:Te[++ke]=ye:(Te[++ke]=null,le.push({i:ke,x:K(we,ye)})),Oe=Q.lastIndex;return Oe{let n=null;return{startPolling:()=>{const t=async()=>{var o;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(o=e.interval)!=null?o:i)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{a as u}; -//# sourceMappingURL=polling.ce5b4e64.js.map +import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8bcea153-cd14-48a5-bf2d-a6ae22539fe1",e._sentryDebugIdIdentifier="sentry-dbid-8bcea153-cd14-48a5-bf2d-a6ae22539fe1")}catch{}})();const i=1e3,a=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var o;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(o=e.interval)!=null?o:i)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{a as u}; +//# sourceMappingURL=polling.4e30c061.js.map diff --git a/abstra_statics/dist/assets/popupNotifcation.0e86d6a8.js b/abstra_statics/dist/assets/popupNotifcation.0e86d6a8.js new file mode 100644 index 000000000..96cd33887 --- /dev/null +++ b/abstra_statics/dist/assets/popupNotifcation.0e86d6a8.js @@ -0,0 +1,2 @@ +import{cL as n}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6828d08a-545d-404a-be37-3b1c8f8a859b",e._sentryDebugIdIdentifier="sentry-dbid-6828d08a-545d-404a-be37-3b1c8f8a859b")}catch{}})();const t=(e,r,d)=>{n.error({message:e,description:r,onClick:d})};export{t as p}; +//# sourceMappingURL=popupNotifcation.0e86d6a8.js.map diff --git a/abstra_statics/dist/assets/popupNotifcation.d2ca3d78.js b/abstra_statics/dist/assets/popupNotifcation.d2ca3d78.js deleted file mode 100644 index b8f00e1de..000000000 --- a/abstra_statics/dist/assets/popupNotifcation.d2ca3d78.js +++ /dev/null @@ -1,2 +0,0 @@ -import{cL as n}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6804dad3-b2cb-42fe-818c-c543b7677ccb",e._sentryDebugIdIdentifier="sentry-dbid-6804dad3-b2cb-42fe-818c-c543b7677ccb")}catch{}})();const t=(e,r,d)=>{n.error({message:e,description:r,onClick:d})};export{t as p}; -//# sourceMappingURL=popupNotifcation.d2ca3d78.js.map diff --git a/abstra_statics/dist/assets/project.7817fdd7.js b/abstra_statics/dist/assets/project.40b63ace.js similarity index 76% rename from abstra_statics/dist/assets/project.7817fdd7.js rename to abstra_statics/dist/assets/project.40b63ace.js index 82e191138..3b04156c3 100644 --- a/abstra_statics/dist/assets/project.7817fdd7.js +++ b/abstra_statics/dist/assets/project.40b63ace.js @@ -1,2 +1,2 @@ -var h=Object.defineProperty;var l=(r,t,e)=>t in r?h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(l(r,typeof t!="symbol"?t+"":t,e),e);import{C as n}from"./gateway.e77556e5.js";import{A as y}from"./record.34d5b504.js";import"./vue-router.4c13f3d4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="ed6c336c-9da0-4cef-8e91-2cd58f38e9a2",r._sentryDebugIdIdentifier="sentry-dbid-ed6c336c-9da0-4cef-8e91-2cd58f38e9a2")}catch{}})();class g extends Error{constructor(){super("Subdomain already in use")}}class m{constructor(){c(this,"urlPath","projects")}async create({name:t,organizationId:e}){return n.post(`organizations/${e}/${this.urlPath}`,{name:t})}async delete(t){await n.delete(`/${this.urlPath}/${t}`)}async duplicate(t){return await new Promise(e=>setTimeout(e,5e3)),n.post(`/${this.urlPath}/${t}/duplicate`,{})}async list(t){return n.get(`organizations/${t}/${this.urlPath}`)}async get(t){return n.get(`${this.urlPath}/${t}`)}async update(t,e){const a=await n.patch(`${this.urlPath}/${t}`,e);if("error"in a&&a.error==="subdomain-already-in-use")throw new g;if("error"in a)throw new Error("Unknown error");return a}async checkSubdomain(t,e){return n.get(`${this.urlPath}/${t}/check-subdomain/${e}`)}async getStatus(t){return n.get(`${this.urlPath}/${t}/deploy-status`)}async executeQuery(t,e,a){return n.post(`projects/${t}/execute`,{query:e,params:a})}}const s=new m;class i{constructor(t){c(this,"record");this.record=y.create(s,t)}static formatSubdomain(t){const a=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),o=/[a-z0-9]+/g,u=a.matchAll(o);return Array.from(u).map(d=>d[0]).join("-")}static async list(t){return(await s.list(t)).map(a=>new i(a))}static async create(t){const e=await s.create(t);return new i(e)}static async get(t){const e=await s.get(t);return new i(e)}static async getStatus(t){return await s.getStatus(t)}async delete(){await s.delete(this.id)}async duplicate(){const t=await s.duplicate(this.id);return new i(t)}static async executeQuery(t,e,a){return s.executeQuery(t,e,a)}async save(){return this.record.save()}resetChanges(){this.record.resetChanges()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}async checkSubdomain(){return await s.checkSubdomain(this.id,this.subdomain)}getUrl(t=""){const e=t.startsWith("/")?t.slice(1):t;return`https://${this.subdomain}.abstra.app/${e}`}static async rename(t,e){await s.update(t,{name:e})}}export{i as P}; -//# sourceMappingURL=project.7817fdd7.js.map +var h=Object.defineProperty;var l=(r,t,e)=>t in r?h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var o=(r,t,e)=>(l(r,typeof t!="symbol"?t+"":t,e),e);import{C as n}from"./gateway.c564a1cf.js";import{A as y}from"./record.cbb43e89.js";import"./vue-router.3fd92176.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="db894b16-97ef-4697-a5a8-1092745e8056",r._sentryDebugIdIdentifier="sentry-dbid-db894b16-97ef-4697-a5a8-1092745e8056")}catch{}})();class g extends Error{constructor(){super("Subdomain already in use")}}class m{constructor(){o(this,"urlPath","projects")}async create({name:t,organizationId:e}){return n.post(`organizations/${e}/${this.urlPath}`,{name:t})}async delete(t){await n.delete(`/${this.urlPath}/${t}`)}async duplicate(t){return await new Promise(e=>setTimeout(e,5e3)),n.post(`/${this.urlPath}/${t}/duplicate`,{})}async list(t){return n.get(`organizations/${t}/${this.urlPath}`)}async get(t){return n.get(`${this.urlPath}/${t}`)}async update(t,e){const a=await n.patch(`${this.urlPath}/${t}`,e);if("error"in a&&a.error==="subdomain-already-in-use")throw new g;if("error"in a)throw new Error("Unknown error");return a}async checkSubdomain(t,e){return n.get(`${this.urlPath}/${t}/check-subdomain/${e}`)}async getStatus(t){return n.get(`${this.urlPath}/${t}/deploy-status`)}async executeQuery(t,e,a){return n.post(`projects/${t}/execute`,{query:e,params:a})}}const s=new m;class i{constructor(t){o(this,"record");this.record=y.create(s,t)}static formatSubdomain(t){const a=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=/[a-z0-9]+/g,u=a.matchAll(c);return Array.from(u).map(d=>d[0]).join("-")}static async list(t){return(await s.list(t)).map(a=>new i(a))}static async create(t){const e=await s.create(t);return new i(e)}static async get(t){const e=await s.get(t);return new i(e)}static async getStatus(t){return await s.getStatus(t)}async delete(){await s.delete(this.id)}async duplicate(){const t=await s.duplicate(this.id);return new i(t)}static async executeQuery(t,e,a){return s.executeQuery(t,e,a)}async save(){return this.record.save()}resetChanges(){this.record.resetChanges()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}async checkSubdomain(){return await s.checkSubdomain(this.id,this.subdomain)}getUrl(t=""){const e=t.startsWith("/")?t.slice(1):t;return`https://${this.subdomain}.abstra.app/${e}`}static async rename(t,e){await s.update(t,{name:e})}}export{i as P}; +//# sourceMappingURL=project.40b63ace.js.map diff --git a/abstra_statics/dist/assets/python.7a521083.js b/abstra_statics/dist/assets/python.2fad7506.js similarity index 90% rename from abstra_statics/dist/assets/python.7a521083.js rename to abstra_statics/dist/assets/python.2fad7506.js index b602773d7..52b0e2f06 100644 --- a/abstra_statics/dist/assets/python.7a521083.js +++ b/abstra_statics/dist/assets/python.2fad7506.js @@ -1,7 +1,7 @@ -import{m as a}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6ceff04c-6f8b-4255-b5e2-044ea7800059",t._sentryDebugIdIdentifier="sentry-dbid-6ceff04c-6f8b-4255-b5e2-044ea7800059")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as a}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e3418280-3149-46e4-b153-37ca993f6a58",t._sentryDebugIdIdentifier="sentry-dbid-e3418280-3149-46e4-b153-37ca993f6a58")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a);var b={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{b as conf,m as language}; -//# sourceMappingURL=python.7a521083.js.map + *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a);var f={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{f as conf,m as language}; +//# sourceMappingURL=python.2fad7506.js.map diff --git a/abstra_statics/dist/assets/razor.7f9ae009.js b/abstra_statics/dist/assets/razor.9516989f.js similarity index 92% rename from abstra_statics/dist/assets/razor.7f9ae009.js rename to abstra_statics/dist/assets/razor.9516989f.js index 3fde36ed2..9e8f98b36 100644 --- a/abstra_statics/dist/assets/razor.7f9ae009.js +++ b/abstra_statics/dist/assets/razor.9516989f.js @@ -1,7 +1,7 @@ -import{m as s}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="d2cf52cb-39b7-45ba-979d-93e1df4f81df",t._sentryDebugIdIdentifier="sentry-dbid-d2cf52cb-39b7-45ba-979d-93e1df4f81df")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as c}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2c36a5d4-9bec-4d75-ad3c-c61ac70ac68f",t._sentryDebugIdIdentifier="sentry-dbid-2c36a5d4-9bec-4d75-ad3c-c61ac70ac68f")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!p.call(t,o)&&o!==r&&c(t,o,{get:()=>e[o],enumerable:!(a=l(e,o))||a.enumerable});return t},h=(t,e,r)=>(i(t,e,"default"),r&&i(r,e,"default")),n={};h(n,s);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; -//# sourceMappingURL=razor.7f9ae009.js.map + *-----------------------------------------------------------------------------*/var s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!p.call(t,o)&&o!==r&&s(t,o,{get:()=>e[o],enumerable:!(n=l(e,o))||n.enumerable});return t},h=(t,e,r)=>(i(t,e,"default"),r&&i(r,e,"default")),a={};h(a,c);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; +//# sourceMappingURL=razor.9516989f.js.map diff --git a/abstra_statics/dist/assets/record.34d5b504.js b/abstra_statics/dist/assets/record.cbb43e89.js similarity index 77% rename from abstra_statics/dist/assets/record.34d5b504.js rename to abstra_statics/dist/assets/record.cbb43e89.js index 57955e6f9..640c3a4c1 100644 --- a/abstra_statics/dist/assets/record.34d5b504.js +++ b/abstra_statics/dist/assets/record.cbb43e89.js @@ -1,2 +1,2 @@ -var l=Object.defineProperty;var o=(e,t,s)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var n=(e,t,s)=>(o(e,typeof t!="symbol"?t+"":t,s),s);import{Q as g,y as r,eo as b}from"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4acb7054-eb7d-4642-9ce0-f7b96fa960a9",e._sentryDebugIdIdentifier="sentry-dbid-4acb7054-eb7d-4642-9ce0-f7b96fa960a9")}catch{}})();class p{constructor(){n(this,"topics");n(this,"subUid");this.topics={},this.subUid=-1}subscribe(t,s){const i=(++this.subUid).toString();return this.topics[t]||(this.topics[t]=[]),this.topics[t].push({token:i,func:s}),i}async wait(t){return new Promise(s=>{const i=this.subscribe(t,a=>{this.unsubscribe(i),s(a)})})}async publish(t,...s){if(!this.topics[t])return!1;const i=this.topics[t];let a=i?i.length:0;for(;a--;)await i[a].func(s[0]);return!0}unsubscribe(t){for(const s in this.topics)if(this.topics[s]){for(let i=0,a=this.topics[s].length;i0}hasChangesDeep(t){return t in this.changes&&!b.exports.isEqual(this.initialState[t],this.changes[t])}get state(){return{...this.initialState,...this.changes}}resetChanges(){const t={...this.changes};this._changes.value={},this.pubsub.publish("update",t)}onUpdate(t){this.pubsub.subscribe("update",t)}commit(){this.initialState=this.state,this._changes.value={}}toDTO(){return{...this.state,...this._changes.value}}update(t){this._changes.value={...this.changes,...t}}}class c extends h{constructor(s,i){super(i);n(this,"api");this.api=s}static create(s,i){return r(new c(s,i))}getInitialState(s){return this.initialState[s]}updateInitialState(s,i){this.initialState[s]=i,delete this._changes.value[s]}async save(s){if(Object.keys(this.changes).length===0||s&&!(s in this.changes))return;if(s){const a={[s]:this.changes[s]},u=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...u},delete this._changes.value[s];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}export{c as A,h as E}; -//# sourceMappingURL=record.34d5b504.js.map +var l=Object.defineProperty;var o=(e,t,s)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var n=(e,t,s)=>(o(e,typeof t!="symbol"?t+"":t,s),s);import{Q as g,y as c,eo as b}from"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="769132bc-5cba-4442-8a3e-019cf1fed4fc",e._sentryDebugIdIdentifier="sentry-dbid-769132bc-5cba-4442-8a3e-019cf1fed4fc")}catch{}})();class p{constructor(){n(this,"topics");n(this,"subUid");this.topics={},this.subUid=-1}subscribe(t,s){const i=(++this.subUid).toString();return this.topics[t]||(this.topics[t]=[]),this.topics[t].push({token:i,func:s}),i}async wait(t){return new Promise(s=>{const i=this.subscribe(t,a=>{this.unsubscribe(i),s(a)})})}async publish(t,...s){if(!this.topics[t])return!1;const i=this.topics[t];let a=i?i.length:0;for(;a--;)await i[a].func(s[0]);return!0}unsubscribe(t){for(const s in this.topics)if(this.topics[s]){for(let i=0,a=this.topics[s].length;i0}hasChangesDeep(t){return t in this.changes&&!b.exports.isEqual(this.initialState[t],this.changes[t])}get state(){return{...this.initialState,...this.changes}}resetChanges(){const t={...this.changes};this._changes.value={},this.pubsub.publish("update",t)}onUpdate(t){this.pubsub.subscribe("update",t)}commit(){this.initialState=this.state,this._changes.value={}}toDTO(){return{...this.state,...this._changes.value}}update(t){this._changes.value={...this.changes,...t}}}class r extends h{constructor(s,i){super(i);n(this,"api");this.api=s}static create(s,i){return c(new r(s,i))}getInitialState(s){return this.initialState[s]}updateInitialState(s,i){this.initialState[s]=i,delete this._changes.value[s]}async save(s){if(Object.keys(this.changes).length===0||s&&!(s in this.changes))return;if(s){const a={[s]:this.changes[s]},u=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...u},delete this._changes.value[s];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}export{r as A,h as E}; +//# sourceMappingURL=record.cbb43e89.js.map diff --git a/abstra_statics/dist/assets/repository.a59a08e6.js b/abstra_statics/dist/assets/repository.9283185a.js similarity index 77% rename from abstra_statics/dist/assets/repository.a59a08e6.js rename to abstra_statics/dist/assets/repository.9283185a.js index 9a9f61d45..c6c458977 100644 --- a/abstra_statics/dist/assets/repository.a59a08e6.js +++ b/abstra_statics/dist/assets/repository.9283185a.js @@ -1,2 +1,2 @@ -var p=Object.defineProperty;var h=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(h(r,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.e77556e5.js";import{l as u}from"./fetch.492045fb.js";import{E as l}from"./record.34d5b504.js";import"./vue-router.4c13f3d4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="0d847310-b48e-4fe9-a2f9-0311554f3fb6",r._sentryDebugIdIdentifier="sentry-dbid-0d847310-b48e-4fe9-a2f9-0311554f3fb6")}catch{}})();class i{constructor(t){c(this,"record");this.record=l.from(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}get description(){return this.record.get("description")||""}set description(t){this.record.set("description",t)}get projectId(){return this.record.get("projectId")}static from(t){return new i(t)}commit(){this.record.commit()}hasChanges(){return this.record.hasChanges()}get changes(){return this.record.changes}update(t){this.record.update(t)}}class f{constructor(){c(this,"urlPath","roles")}async create(t,e){return a.post(`projects/${t}/${this.urlPath}`,e)}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t,{limit:e,offset:s}){const o={};e&&(o.limit=e.toString()),s&&(o.offset=s.toString());const d=new URLSearchParams(o);return a.get(`projects/${t}/${this.urlPath}?${d.toString()}`)}async update(t,e,s){return a.patch(`projects/${t}/${this.urlPath}/${e}`,s)}}const n=new f;class I{constructor(t){this.projectId=t}async list(t,e){return(await n.list(this.projectId,{limit:t,offset:e})).map(i.from)}async create(t){await n.create(this.projectId,t)}async update(t,e){await n.update(this.projectId,t,e)}async delete(t){await n.delete(this.projectId,t)}}class ${constructor(t=u){this.fetch=t}async list(t,e){const s={};t&&(s.limit=t.toString()),e&&(s.offset=e.toString());const o=new URLSearchParams(s);return(await(await this.fetch(`/_editor/api/roles?${o.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(i.from)}}export{I as C,$ as E}; -//# sourceMappingURL=repository.a59a08e6.js.map +var p=Object.defineProperty;var h=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(h(r,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.c564a1cf.js";import{l as u}from"./fetch.8c5b12c2.js";import{E as l}from"./record.cbb43e89.js";import"./vue-router.3fd92176.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="babae22d-82c4-441a-9890-bf053855b97b",r._sentryDebugIdIdentifier="sentry-dbid-babae22d-82c4-441a-9890-bf053855b97b")}catch{}})();class i{constructor(t){c(this,"record");this.record=l.from(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}get description(){return this.record.get("description")||""}set description(t){this.record.set("description",t)}get projectId(){return this.record.get("projectId")}static from(t){return new i(t)}commit(){this.record.commit()}hasChanges(){return this.record.hasChanges()}get changes(){return this.record.changes}update(t){this.record.update(t)}}class g{constructor(){c(this,"urlPath","roles")}async create(t,e){return a.post(`projects/${t}/${this.urlPath}`,e)}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t,{limit:e,offset:s}){const o={};e&&(o.limit=e.toString()),s&&(o.offset=s.toString());const d=new URLSearchParams(o);return a.get(`projects/${t}/${this.urlPath}?${d.toString()}`)}async update(t,e,s){return a.patch(`projects/${t}/${this.urlPath}/${e}`,s)}}const n=new g;class I{constructor(t){this.projectId=t}async list(t,e){return(await n.list(this.projectId,{limit:t,offset:e})).map(i.from)}async create(t){await n.create(this.projectId,t)}async update(t,e){await n.update(this.projectId,t,e)}async delete(t){await n.delete(this.projectId,t)}}class ${constructor(t=u){this.fetch=t}async list(t,e){const s={};t&&(s.limit=t.toString()),e&&(s.offset=e.toString());const o=new URLSearchParams(s);return(await(await this.fetch(`/_editor/api/roles?${o.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(i.from)}}export{I as C,$ as E}; +//# sourceMappingURL=repository.9283185a.js.map diff --git a/abstra_statics/dist/assets/router.59916c0d.js b/abstra_statics/dist/assets/router.59916c0d.js new file mode 100644 index 000000000..f1364ebb3 --- /dev/null +++ b/abstra_statics/dist/assets/router.59916c0d.js @@ -0,0 +1,2 @@ +var d=Object.defineProperty;var _=(t,e,a)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var l=(t,e,a)=>(_(t,typeof e!="symbol"?e+"":e,a),a);import{ae as p,di as h,dj as u,dk as b,h as E,i as A,_ as o,j as g}from"./vue-router.3fd92176.js";import{C as c,a as w}from"./gateway.c564a1cf.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b3426003-f7d9-485d-9c0e-2aa40c4d9749",t._sentryDebugIdIdentifier="sentry-dbid-b3426003-f7d9-485d-9c0e-2aa40c4d9749")}catch{}})();const L=p(h),T=p(u);class v{async getInfo(){return await c.get("authors/info")}}const f=new v,r=class{static dispatch(e,a,i=0){window.Intercom?window.Intercom(e,a):i<10?setTimeout(()=>r.dispatch(e,a),100):console.error("Intercom not loaded")}static boot(){r.booted||f.getInfo().then(e=>{r.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e.email,email:e.email,user_hash:e.intercomHash,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),r.booted=!0}).catch(e=>{console.error(e),b(e)})}static show(){r.dispatch("show")}static hide(){r.dispatch("hide")}static showNewMessage(e){r.dispatch("showNewMessage",e)}static shutdown(){r.dispatch("shutdown"),r.booted=!1}};let s=r;l(s,"booted",!1);class I{async createSession(e){await c.post("usage/sessions",e)}async trackBrowserEvent(e){await c.post("usage/browser",e)}}const n=new I;class P{static trackSession(){const e=Object.fromEntries(document.cookie.split("; ").map(i=>i.split(/=(.*)/s).map(decodeURIComponent))),a=new URLSearchParams(window.location.search).get("session")||e.abstra_session;n.createSession({query:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href,previousSessionId:a}).catch(console.error)}static trackPageView(){n.trackBrowserEvent({event:"PageView",payload:{queryParams:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href}}).catch(console.error)}static billingAlertCtaClicked(e,a){n.trackBrowserEvent({event:"BillingAlertCtaClicked",payload:{cta:a,organizationId:e,href:location.href}}).catch(console.error)}static billingPlanUpgradeClicked(e){n.trackBrowserEvent({event:"BillingPlanUpgradeClicked",payload:{organizationId:e,href:location.href}}).catch(console.error)}}const m=E({history:A("/"),routes:[{path:"/widget-preview",name:"widget-preview",component:()=>o(()=>import("./WidgetPreview.4e7b4c90.js"),["assets/WidgetPreview.4e7b4c90.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/Steps.767c106d.js","assets/Steps.d681065f.css","assets/PlayerConfigProvider.44427467.js","assets/colorHelpers.f04087b3.js","assets/index.bd967757.js","assets/PlayerConfigProvider.8864c905.css","assets/WidgetPreview.260e555c.css"]),meta:{allowUnauthenticated:!0,title:"Preview - Abstra Console"}},{path:"/login",name:"login",component:()=>o(()=>import("./Login.cd84aff7.js"),["assets/Login.cd84aff7.js","assets/CircularLoading.b920c29a.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/CircularLoading.e156a2b0.css","assets/Logo.6e947620.js","assets/Logo.21e86751.css","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/member.863895af.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js","assets/string.e75a34fd.js","assets/Login.39f703eb.css"]),meta:{allowUnauthenticated:!0,title:"Login - Abstra Console"}},{path:"/api-key",name:"api-key",component:()=>o(()=>import("./EditorLogin.744f4da1.js"),["assets/EditorLogin.744f4da1.js","assets/Navbar.6c76e332.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/asyncComputed.295e9e03.js","assets/PhChats.vue.aa1113d9.js","assets/PhSignOut.vue.154299d7.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/index.063f7c9e.js","assets/Avatar.2107fa31.js","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/BookOutlined.5f7ad9dc.js","assets/Navbar.a899b0d6.css","assets/url.5959ae47.js","assets/apiKey.9088bccb.js","assets/organization.ed97e5a8.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/EditorLogin.7e0ad5ed.css"]),meta:{title:"Api Keys - Abstra Console"}},{path:"/",name:"home",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}},{path:"/organizations",name:"organizations",component:()=>o(()=>import("./Organizations.22d1126e.js"),["assets/Organizations.22d1126e.js","assets/Navbar.6c76e332.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/asyncComputed.295e9e03.js","assets/PhChats.vue.aa1113d9.js","assets/PhSignOut.vue.154299d7.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/index.063f7c9e.js","assets/Avatar.2107fa31.js","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/BookOutlined.5f7ad9dc.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.294a6887.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/CrudView.6b6b336a.css","assets/ant-design.38477595.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/PhPencil.vue.a2604470.js","assets/organization.ed97e5a8.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js","assets/string.e75a34fd.js"]),meta:{title:"Organizations - Abstra Console"}},{path:"/organizations/:organizationId",name:"organization",component:()=>o(()=>import("./Organization.b54acdcf.js"),["assets/Organization.b54acdcf.js","assets/Navbar.6c76e332.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/asyncComputed.295e9e03.js","assets/PhChats.vue.aa1113d9.js","assets/PhSignOut.vue.154299d7.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/index.063f7c9e.js","assets/Avatar.2107fa31.js","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/BookOutlined.5f7ad9dc.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.294a6887.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/organization.ed97e5a8.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js","assets/string.e75a34fd.js","assets/Sidebar.ffb10124.js","assets/index.4fbbd10e.js","assets/Logo.6e947620.js","assets/Logo.21e86751.css","assets/Sidebar.83c5c451.css"]),redirect:{name:"projects"},children:[{path:"projects",name:"projects",component:()=>o(()=>import("./Projects.299d796c.js"),["assets/Projects.299d796c.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/asyncComputed.295e9e03.js","assets/ant-design.38477595.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/organization.ed97e5a8.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/PhArrowSquareOut.vue.188b81dc.js","assets/PhCopy.vue.0ae3f8ab.js","assets/PhPencil.vue.a2604470.js"]),meta:{title:"Projects - Abstra Console"}},{path:"editors",name:"editors",component:()=>o(()=>import("./Editors.7a187912.js"),["assets/Editors.7a187912.js","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/ant-design.38477595.js","assets/asyncComputed.295e9e03.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/member.863895af.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js","assets/string.e75a34fd.js"]),meta:{title:"Editors - Abstra Console"}},{path:"members",redirect:{name:"editors"}},{path:"billing",name:"billing",component:()=>o(()=>import("./Billing.274971a6.js"),["assets/Billing.274971a6.js","assets/asyncComputed.295e9e03.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/organization.ed97e5a8.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js","assets/string.e75a34fd.js","assets/LoadingContainer.cc61e2fd.js","assets/LoadingContainer.56fa997a.css","assets/index.c6ce1c1c.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js"]),meta:{title:"Billing - Abstra Console"}}]},{path:"/projects/:projectId",name:"project",component:()=>o(()=>import("./Project.67a86e96.js"),["assets/Project.67a86e96.js","assets/Navbar.6c76e332.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/asyncComputed.295e9e03.js","assets/PhChats.vue.aa1113d9.js","assets/PhSignOut.vue.154299d7.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/index.063f7c9e.js","assets/Avatar.2107fa31.js","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/BookOutlined.5f7ad9dc.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.294a6887.js","assets/BaseLayout.b7a1f19a.css","assets/organization.ed97e5a8.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/Sidebar.ffb10124.js","assets/index.4fbbd10e.js","assets/Logo.6e947620.js","assets/Logo.21e86751.css","assets/Sidebar.83c5c451.css","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/PhArrowCounterClockwise.vue.8fbc5885.js","assets/PhIdentificationBadge.vue.8d7f4c19.js","assets/PhCube.vue.fe0d14c9.js","assets/PhGlobe.vue.69f38b7f.js"]),redirect:{name:"live"},children:[{path:"live",name:"live",component:()=>o(()=>import("./Live.ba8612ae.js"),["assets/Live.ba8612ae.js","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.295e9e03.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/datetime.744b5391.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/polling.4e30c061.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.19012e78.js","assets/LoadingOutlined.dad6ee6e.js","assets/PhArrowCounterClockwise.vue.8fbc5885.js","assets/PhArrowSquareOut.vue.188b81dc.js","assets/PhChats.vue.aa1113d9.js","assets/PhCopySimple.vue.992b99ff.js","assets/PhRocketLaunch.vue.c412030e.js","assets/index.30885e4b.js","assets/Live.47326f2f.css"]),meta:{title:"Project - Abstra Console"}},{path:"builds",name:"builds",component:()=>o(()=>import("./Builds.e336d48e.js"),["assets/Builds.e336d48e.js","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.295e9e03.js","assets/datetime.744b5391.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/polling.4e30c061.js","assets/PhArrowCounterClockwise.vue.8fbc5885.js","assets/PhCube.vue.fe0d14c9.js","assets/PhDownloadSimple.vue.33128e79.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/index.eafefd9b.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/CloseCircleOutlined.f8dfd09a.js","assets/LoadingOutlined.dad6ee6e.js","assets/Builds.8dab7d81.css"]),meta:{title:"Builds - Abstra Console"}},{path:"connectors",name:"connectors",component:()=>o(()=>import("./ConnectorsView.b63d2fed.js"),["assets/ConnectorsView.b63d2fed.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/Avatar.2107fa31.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/index.063f7c9e.js","assets/ConnectorsView.fbe19abf.css"]),meta:{title:"Connectors - Abstra Console"}},{path:"tables",name:"tables",component:()=>o(()=>import("./Tables.59d6d17e.js"),["assets/Tables.59d6d17e.js","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.295e9e03.js","assets/string.e75a34fd.js","assets/PhPencil.vue.a2604470.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js"]),meta:{title:"Tables - Abstra Console"}},{path:"sql",name:"sql",component:()=>o(()=>import("./Sql.ce229c79.js"),["assets/Sql.ce229c79.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/utils.4c5a1d76.js","assets/PhDownloadSimple.vue.33128e79.js","assets/toggleHighContrast.db48a34e.js","assets/toggleHighContrast.30d77c87.css","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/Sql.1feebca7.css"]),meta:{title:"SQL Editor - Abstra Console"}},{path:"api-keys",name:"api-keys",component:()=>o(()=>import("./ApiKeys.134defd6.js"),["assets/ApiKeys.134defd6.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/asyncComputed.295e9e03.js","assets/apiKey.9088bccb.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/member.863895af.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css"]),meta:{title:"API Keys - Abstra Console"}},{path:"logs",name:"logs",component:()=>o(()=>import("./Logs.aa5e409c.js"),["assets/Logs.aa5e409c.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/datetime.744b5391.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.19012e78.js","assets/LoadingOutlined.dad6ee6e.js","assets/string.e75a34fd.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js","assets/dayjs.86e1a5b6.js","assets/index.063f7c9e.js","assets/CollapsePanel.87687b29.js"]),meta:{title:"Logs - Abstra Console"}},{path:"settings",name:"project-settings",component:()=>o(()=>import("./ProjectSettings.ac6a1c2e.js"),["assets/ProjectSettings.ac6a1c2e.js","assets/asyncComputed.295e9e03.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/index.063f7c9e.js"]),meta:{title:"Project Settings - Abstra Console"}},{path:"env-vars",name:"env-vars",component:()=>o(()=>import("./EnvVars.eccb5753.js"),["assets/EnvVars.eccb5753.js","assets/View.vue_vue_type_script_setup_true_lang.3ec7f61f.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/fetch.8c5b12c2.js","assets/record.cbb43e89.js","assets/SaveButton.6d0d3fb7.js","assets/UnsavedChangesHandler.9562b93c.js","assets/ExclamationCircleOutlined.379cd3ee.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/CrudView.b65b5675.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/index.063f7c9e.js","assets/CrudView.6b6b336a.css","assets/PhRocketLaunch.vue.c412030e.js","assets/asyncComputed.295e9e03.js","assets/polling.4e30c061.js","assets/PhPencil.vue.a2604470.js","assets/index.4fbbd10e.js"]),meta:{title:"Environment Variables - Abstra Console"}},{path:"files",name:"files",component:()=>o(()=>import("./Files.e21d5aea.js"),["assets/Files.e21d5aea.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/popupNotifcation.0e86d6a8.js","assets/ant-design.38477595.js","assets/asyncComputed.295e9e03.js","assets/gateway.c564a1cf.js","assets/tables.3aa20dd6.js","assets/record.cbb43e89.js","assets/string.e75a34fd.js","assets/DeleteOutlined.a95bba08.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/Files.3b8a3600.css"]),meta:{title:"Files - Abstra Console"}},{path:"access-control",name:"access-control",component:()=>o(()=>import("./View.7bf35c36.js"),["assets/View.7bf35c36.js","assets/asyncComputed.295e9e03.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/index.063f7c9e.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.69b9fa5f.js","assets/BookOutlined.5f7ad9dc.js","assets/index.9c5136e0.js","assets/isNumeric.75337b1e.js","assets/CrudView.b65b5675.js","assets/url.5959ae47.js","assets/PhDotsThreeVertical.vue.c39db334.js","assets/CrudView.6b6b336a.css","assets/PhPencil.vue.a2604470.js","assets/repository.9283185a.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/fetch.8c5b12c2.js","assets/record.cbb43e89.js","assets/ant-design.38477595.js","assets/TabPane.d0ca7ad5.js"]),meta:{title:"Access Control - Abstra Console"}}]},{path:"/projects/:projectId/tables/:tableId",name:"tableEditor",component:()=>o(()=>import("./TableEditor.c92c7404.js"),["assets/TableEditor.c92c7404.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.9e42abd4.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/BaseLayout.294a6887.js","assets/BaseLayout.b7a1f19a.css","assets/asyncComputed.295e9e03.js","assets/gateway.c564a1cf.js","assets/popupNotifcation.0e86d6a8.js","assets/organization.ed97e5a8.js","assets/project.40b63ace.js","assets/record.cbb43e89.js","assets/tables.3aa20dd6.js","assets/string.e75a34fd.js","assets/ContentLayout.72beb65c.js","assets/ContentLayout.ee57a545.css","assets/PhCheckCircle.vue.d8163a77.js","assets/index.78793691.js","assets/index.063f7c9e.js","assets/index.9c5136e0.js","assets/isNumeric.75337b1e.js","assets/ant-design.38477595.js","assets/PhCaretRight.vue.f72488ac.js","assets/LoadingOutlined.dad6ee6e.js","assets/index.5ccdbcb7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js","assets/TableEditor.b1663dd4.css"]),meta:{title:"Tables - Abstra Console"}},{path:"/:pathMatch(.*)*",name:"NotFound",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}}],scrollBehavior(t){if(t.hash)return{el:t.hash}}});m.beforeEach(async(t,e)=>{g(t,e);const a=w.getAuthor();if(!t.meta.allowUnauthenticated&&!a){await m.push({name:"login",query:{...t.query,redirect:t.path,"prev-redirect":t.query.redirect}});return}a&&(P.trackPageView(),s.boot())});export{L as A,s as C,P as T,T as a,m as r}; +//# sourceMappingURL=router.59916c0d.js.map diff --git a/abstra_statics/dist/assets/router.87582bcc.js b/abstra_statics/dist/assets/router.87582bcc.js deleted file mode 100644 index c5c7890de..000000000 --- a/abstra_statics/dist/assets/router.87582bcc.js +++ /dev/null @@ -1,2 +0,0 @@ -var d=Object.defineProperty;var _=(t,e,a)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var l=(t,e,a)=>(_(t,typeof e!="symbol"?e+"":e,a),a);import{ae as p,di as h,dj as u,dk as b,h as E,i as A,_ as o,j as g}from"./vue-router.4c13f3d4.js";import{C as c,a as w}from"./gateway.e77556e5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="66e94b8d-db65-4102-aaa9-033062a9f5c4",t._sentryDebugIdIdentifier="sentry-dbid-66e94b8d-db65-4102-aaa9-033062a9f5c4")}catch{}})();const L=p(h),T=p(u);class v{async getInfo(){return await c.get("authors/info")}}const f=new v,r=class{static dispatch(e,a,i=0){window.Intercom?window.Intercom(e,a):i<10?setTimeout(()=>r.dispatch(e,a),100):console.error("Intercom not loaded")}static boot(){r.booted||f.getInfo().then(e=>{r.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e.email,email:e.email,user_hash:e.intercomHash,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),r.booted=!0}).catch(e=>{console.error(e),b(e)})}static show(){r.dispatch("show")}static hide(){r.dispatch("hide")}static showNewMessage(e){r.dispatch("showNewMessage",e)}static shutdown(){r.dispatch("shutdown"),r.booted=!1}};let s=r;l(s,"booted",!1);class I{async createSession(e){await c.post("usage/sessions",e)}async trackBrowserEvent(e){await c.post("usage/browser",e)}}const n=new I;class P{static trackSession(){const e=Object.fromEntries(document.cookie.split("; ").map(i=>i.split(/=(.*)/s).map(decodeURIComponent))),a=new URLSearchParams(window.location.search).get("session")||e.abstra_session;n.createSession({query:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href,previousSessionId:a}).catch(console.error)}static trackPageView(){n.trackBrowserEvent({event:"PageView",payload:{queryParams:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href}}).catch(console.error)}static billingAlertCtaClicked(e,a){n.trackBrowserEvent({event:"BillingAlertCtaClicked",payload:{cta:a,organizationId:e,href:location.href}}).catch(console.error)}static billingPlanUpgradeClicked(e){n.trackBrowserEvent({event:"BillingPlanUpgradeClicked",payload:{organizationId:e,href:location.href}}).catch(console.error)}}const m=E({history:A("/"),routes:[{path:"/widget-preview",name:"widget-preview",component:()=>o(()=>import("./WidgetPreview.c21baaba.js"),["assets/WidgetPreview.c21baaba.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/Steps.2273c005.js","assets/Steps.d681065f.css","assets/PlayerConfigProvider.8a3bab63.js","assets/colorHelpers.c5724389.js","assets/index.52fae423.js","assets/PlayerConfigProvider.8864c905.css","assets/WidgetPreview.260e555c.css"]),meta:{allowUnauthenticated:!0,title:"Preview - Abstra Console"}},{path:"/login",name:"login",component:()=>o(()=>import("./Login.9d92c780.js"),["assets/Login.9d92c780.js","assets/CircularLoading.b40e14c8.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/CircularLoading.e156a2b0.css","assets/Logo.1a35ae4d.js","assets/Logo.21e86751.css","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/member.557bc064.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js","assets/string.eaeb96c3.js","assets/Login.39f703eb.css"]),meta:{allowUnauthenticated:!0,title:"Login - Abstra Console"}},{path:"/api-key",name:"api-key",component:()=>o(()=>import("./EditorLogin.1b0a59e9.js"),["assets/EditorLogin.1b0a59e9.js","assets/Navbar.6541dc95.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/asyncComputed.d0f14ed3.js","assets/PhChats.vue.3f8c120c.js","assets/PhSignOut.vue.e09114f0.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/index.ec6b7808.js","assets/Avatar.6f67d038.js","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/BookOutlined.a8460802.js","assets/Navbar.a899b0d6.css","assets/url.c1b32560.js","assets/apiKey.e5976c38.js","assets/organization.6af6e7be.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/EditorLogin.7e0ad5ed.css"]),meta:{title:"Api Keys - Abstra Console"}},{path:"/",name:"home",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}},{path:"/organizations",name:"organizations",component:()=>o(()=>import("./Organizations.b183c9a7.js"),["assets/Organizations.b183c9a7.js","assets/Navbar.6541dc95.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/asyncComputed.d0f14ed3.js","assets/PhChats.vue.3f8c120c.js","assets/PhSignOut.vue.e09114f0.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/index.ec6b7808.js","assets/Avatar.6f67d038.js","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/BookOutlined.a8460802.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.e1793d5b.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/CrudView.6b6b336a.css","assets/ant-design.57cbe6fb.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/PhPencil.vue.f2283e7d.js","assets/organization.6af6e7be.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js","assets/string.eaeb96c3.js"]),meta:{title:"Organizations - Abstra Console"}},{path:"/organizations/:organizationId",name:"organization",component:()=>o(()=>import("./Organization.92151ef1.js"),["assets/Organization.92151ef1.js","assets/Navbar.6541dc95.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/asyncComputed.d0f14ed3.js","assets/PhChats.vue.3f8c120c.js","assets/PhSignOut.vue.e09114f0.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/index.ec6b7808.js","assets/Avatar.6f67d038.js","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/BookOutlined.a8460802.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.e1793d5b.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/organization.6af6e7be.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js","assets/string.eaeb96c3.js","assets/Sidebar.49f66f34.js","assets/index.e5bdb21b.js","assets/Logo.1a35ae4d.js","assets/Logo.21e86751.css","assets/Sidebar.83c5c451.css"]),redirect:{name:"projects"},children:[{path:"projects",name:"projects",component:()=>o(()=>import("./Projects.4eeee049.js"),["assets/Projects.4eeee049.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/asyncComputed.d0f14ed3.js","assets/ant-design.57cbe6fb.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/organization.6af6e7be.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/PhArrowSquareOut.vue.340970aa.js","assets/PhCopy.vue.300f48e4.js","assets/PhPencil.vue.f2283e7d.js"]),meta:{title:"Projects - Abstra Console"}},{path:"editors",name:"editors",component:()=>o(()=>import("./Editors.ca763c86.js"),["assets/Editors.ca763c86.js","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/ant-design.57cbe6fb.js","assets/asyncComputed.d0f14ed3.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/member.557bc064.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js","assets/string.eaeb96c3.js"]),meta:{title:"Editors - Abstra Console"}},{path:"members",redirect:{name:"editors"}},{path:"billing",name:"billing",component:()=>o(()=>import("./Billing.9a1094cc.js"),["assets/Billing.9a1094cc.js","assets/asyncComputed.d0f14ed3.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/organization.6af6e7be.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js","assets/string.eaeb96c3.js","assets/LoadingContainer.01cf1024.js","assets/LoadingContainer.56fa997a.css","assets/index.c2ef572b.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js"]),meta:{title:"Billing - Abstra Console"}}]},{path:"/projects/:projectId",name:"project",component:()=>o(()=>import("./Project.46f8b889.js"),["assets/Project.46f8b889.js","assets/Navbar.6541dc95.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/asyncComputed.d0f14ed3.js","assets/PhChats.vue.3f8c120c.js","assets/PhSignOut.vue.e09114f0.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/index.ec6b7808.js","assets/Avatar.6f67d038.js","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/BookOutlined.a8460802.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.e1793d5b.js","assets/BaseLayout.b7a1f19a.css","assets/organization.6af6e7be.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/Sidebar.49f66f34.js","assets/index.e5bdb21b.js","assets/Logo.1a35ae4d.js","assets/Logo.21e86751.css","assets/Sidebar.83c5c451.css","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/PhArrowCounterClockwise.vue.548df89b.js","assets/PhIdentificationBadge.vue.7047bcd0.js","assets/PhCube.vue.fdd2f92c.js","assets/PhGlobe.vue.9df45e5b.js"]),redirect:{name:"live"},children:[{path:"live",name:"live",component:()=>o(()=>import("./Live.d7f6b0f3.js"),["assets/Live.d7f6b0f3.js","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.d0f14ed3.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/datetime.269334b3.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/polling.ce5b4e64.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.f2f9cb8f.js","assets/LoadingOutlined.6c0b95d8.js","assets/PhArrowCounterClockwise.vue.548df89b.js","assets/PhArrowSquareOut.vue.340970aa.js","assets/PhChats.vue.3f8c120c.js","assets/PhCopySimple.vue.39f63820.js","assets/PhRocketLaunch.vue.82bfbb41.js","assets/index.5cb791be.js","assets/Live.47326f2f.css"]),meta:{title:"Project - Abstra Console"}},{path:"builds",name:"builds",component:()=>o(()=>import("./Builds.6f48f61c.js"),["assets/Builds.6f48f61c.js","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.d0f14ed3.js","assets/datetime.269334b3.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/polling.ce5b4e64.js","assets/PhArrowCounterClockwise.vue.548df89b.js","assets/PhCube.vue.fdd2f92c.js","assets/PhDownloadSimple.vue.285a519c.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/index.2d05e5d1.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/CloseCircleOutlined.6201ef3d.js","assets/LoadingOutlined.6c0b95d8.js","assets/Builds.8dab7d81.css"]),meta:{title:"Builds - Abstra Console"}},{path:"connectors",name:"connectors",component:()=>o(()=>import("./ConnectorsView.4437ad06.js"),["assets/ConnectorsView.4437ad06.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/Avatar.6f67d038.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/index.ec6b7808.js","assets/ConnectorsView.fbe19abf.css"]),meta:{title:"Connectors - Abstra Console"}},{path:"tables",name:"tables",component:()=>o(()=>import("./Tables.a777ebbe.js"),["assets/Tables.a777ebbe.js","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/asyncComputed.d0f14ed3.js","assets/string.eaeb96c3.js","assets/PhPencil.vue.f2283e7d.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js"]),meta:{title:"Tables - Abstra Console"}},{path:"sql",name:"sql",component:()=>o(()=>import("./Sql.8398cc71.js"),["assets/Sql.8398cc71.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/utils.b9d20cd5.js","assets/PhDownloadSimple.vue.285a519c.js","assets/toggleHighContrast.017fb466.js","assets/toggleHighContrast.30d77c87.css","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/Sql.1feebca7.css"]),meta:{title:"SQL Editor - Abstra Console"}},{path:"api-keys",name:"api-keys",component:()=>o(()=>import("./ApiKeys.364c2cfa.js"),["assets/ApiKeys.364c2cfa.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/asyncComputed.d0f14ed3.js","assets/apiKey.e5976c38.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/member.557bc064.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css"]),meta:{title:"API Keys - Abstra Console"}},{path:"logs",name:"logs",component:()=>o(()=>import("./Logs.a0ca7a88.js"),["assets/Logs.a0ca7a88.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/datetime.269334b3.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.f2f9cb8f.js","assets/LoadingOutlined.6c0b95d8.js","assets/string.eaeb96c3.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js","assets/dayjs.c2ac9d43.js","assets/index.ec6b7808.js","assets/CollapsePanel.d6e0f903.js"]),meta:{title:"Logs - Abstra Console"}},{path:"settings",name:"project-settings",component:()=>o(()=>import("./ProjectSettings.02da1e77.js"),["assets/ProjectSettings.02da1e77.js","assets/asyncComputed.d0f14ed3.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/index.ec6b7808.js"]),meta:{title:"Project Settings - Abstra Console"}},{path:"env-vars",name:"env-vars",component:()=>o(()=>import("./EnvVars.5c1c7fef.js"),["assets/EnvVars.5c1c7fef.js","assets/View.vue_vue_type_script_setup_true_lang.08004338.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/fetch.492045fb.js","assets/record.34d5b504.js","assets/SaveButton.8d79c51b.js","assets/UnsavedChangesHandler.5ab8a23e.js","assets/ExclamationCircleOutlined.e0ca00ea.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.ef2df51c.css","assets/CrudView.e4956a79.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/index.ec6b7808.js","assets/CrudView.6b6b336a.css","assets/PhRocketLaunch.vue.82bfbb41.js","assets/asyncComputed.d0f14ed3.js","assets/polling.ce5b4e64.js","assets/PhPencil.vue.f2283e7d.js","assets/index.e5bdb21b.js"]),meta:{title:"Environment Variables - Abstra Console"}},{path:"files",name:"files",component:()=>o(()=>import("./Files.068a9c51.js"),["assets/Files.068a9c51.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/popupNotifcation.d2ca3d78.js","assets/ant-design.57cbe6fb.js","assets/asyncComputed.d0f14ed3.js","assets/gateway.e77556e5.js","assets/tables.e9d41f69.js","assets/record.34d5b504.js","assets/string.eaeb96c3.js","assets/DeleteOutlined.a943fe4d.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/Files.3b8a3600.css"]),meta:{title:"Files - Abstra Console"}},{path:"access-control",name:"access-control",component:()=>o(()=>import("./View.5943aae3.js"),["assets/View.5943aae3.js","assets/asyncComputed.d0f14ed3.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/index.ec6b7808.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.07ba149c.js","assets/BookOutlined.a8460802.js","assets/index.c9c8d27c.js","assets/isNumeric.75337b1e.js","assets/CrudView.e4956a79.js","assets/url.c1b32560.js","assets/PhDotsThreeVertical.vue.75f90272.js","assets/CrudView.6b6b336a.css","assets/PhPencil.vue.f2283e7d.js","assets/repository.a59a08e6.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/fetch.492045fb.js","assets/record.34d5b504.js","assets/ant-design.57cbe6fb.js","assets/TabPane.9889f7a8.js"]),meta:{title:"Access Control - Abstra Console"}}]},{path:"/projects/:projectId/tables/:tableId",name:"tableEditor",component:()=>o(()=>import("./TableEditor.cd67b96d.js"),["assets/TableEditor.cd67b96d.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.fc5c6e1f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/BaseLayout.e1793d5b.js","assets/BaseLayout.b7a1f19a.css","assets/asyncComputed.d0f14ed3.js","assets/gateway.e77556e5.js","assets/popupNotifcation.d2ca3d78.js","assets/organization.6af6e7be.js","assets/project.7817fdd7.js","assets/record.34d5b504.js","assets/tables.e9d41f69.js","assets/string.eaeb96c3.js","assets/ContentLayout.f8da2f52.js","assets/ContentLayout.ee57a545.css","assets/PhCheckCircle.vue.aa5f3146.js","assets/index.7ab41b83.js","assets/index.ec6b7808.js","assets/index.c9c8d27c.js","assets/isNumeric.75337b1e.js","assets/ant-design.57cbe6fb.js","assets/PhCaretRight.vue.d968b597.js","assets/LoadingOutlined.6c0b95d8.js","assets/index.c2d72be7.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js","assets/TableEditor.b1663dd4.css"]),meta:{title:"Tables - Abstra Console"}},{path:"/:pathMatch(.*)*",name:"NotFound",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}}],scrollBehavior(t){if(t.hash)return{el:t.hash}}});m.beforeEach(async(t,e)=>{g(t,e);const a=w.getAuthor();if(!t.meta.allowUnauthenticated&&!a){await m.push({name:"login",query:{...t.query,redirect:t.path,"prev-redirect":t.query.redirect}});return}a&&(P.trackPageView(),s.boot())});export{L as A,s as C,P as T,T as a,m as r}; -//# sourceMappingURL=router.87582bcc.js.map diff --git a/abstra_statics/dist/assets/scripts.709f5489.js b/abstra_statics/dist/assets/scripts.32887e06.js similarity index 95% rename from abstra_statics/dist/assets/scripts.709f5489.js rename to abstra_statics/dist/assets/scripts.32887e06.js index 12cc021fc..574ea6bc8 100644 --- a/abstra_statics/dist/assets/scripts.709f5489.js +++ b/abstra_statics/dist/assets/scripts.32887e06.js @@ -1,2 +1,2 @@ -var f=Object.defineProperty;var b=(a,t,e)=>t in a?f(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var p=(a,t,e)=>(b(a,typeof t!="symbol"?t+"":t,e),e);import"./vue-router.4c13f3d4.js";import{A as w}from"./record.34d5b504.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="79a1297c-d7cf-4d99-b921-c3b0ff72948d",a._sentryDebugIdIdentifier="sentry-dbid-79a1297c-d7cf-4d99-b921-c3b0ff72948d")}catch{}})();class I{static async*sendMessage(t,e,s,r){var h;const n=await fetch("/_editor/api/ai/message",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:t,runtime:e,threadId:s})});if(!n.ok)throw new Error("Failed to send message");const d=(h=n.body)==null?void 0:h.getReader();if(!d)throw new Error("No response body");for(;!r();){const g=await d.read();if(g.done)break;yield new TextDecoder().decode(g.value)}}static async createThread(){return(await fetch("/_editor/api/ai/thread",{method:"POST"})).json()}static async cancelAllRuns(t){return(await fetch("/_editor/api/ai/cancel-all",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threadId:t})})).ok}static async generateProject(t){const e=await fetch("/_editor/api/ai/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t})});if(!e.ok){const s=await e.text();throw new Error(s)}}static async vote(t,e,s,r){await fetch("/_editor/api/ai/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vote:t,question:e,answer:s,context:r})})}}class m{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,s){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/hooks/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/hooks/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/run?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}async test(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/test?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}}const i=new m;class u{constructor(t){p(this,"record");this.record=w.create(i,t)}static async list(){return(await i.list()).map(e=>new u(e))}static async create(t,e,s){const r=await i.create(t,e,s);return new u(r)}static async get(t){const e=await i.get(t);return new u(e)}async delete(t){await i.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return i.run(this.id,t)}async test(t){return i.test(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new u(t)}}class j{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,s){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/jobs/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/jobs/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}async test(t){return(await fetch(`/_editor/api/jobs/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const o=new j;class y{constructor(t){p(this,"record");p(this,"isInitial",!0);this.record=w.create(o,t)}static async list(){return(await o.list()).map(e=>new y(e))}static async create(t,e,s){const r=await o.create(t,e,s);return new y(r)}static async get(t){const e=await o.get(t);return new y(e)}async delete(t){await o.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async test(){return o.test(this.id)}async run(){return o.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new y(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class S{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,s){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/scripts/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/scripts/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({stage_run_id:e})})).ok}async test(t){return(await fetch(`/_editor/api/scripts/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const c=new S;class l{constructor(t){p(this,"record");this.record=w.create(c,t)}static async list(){return(await c.list()).map(e=>new l(e))}static async create(t,e,s){const r=await c.create(t,e,s);return new l(r)}static async get(t){const e=await c.get(t);return new l(e)}async delete(t){await c.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"script"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async test(){return c.test(this.id)}async run(t){return c.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new l(t)}}export{I as A,u as H,y as J,l as S}; -//# sourceMappingURL=scripts.709f5489.js.map +var f=Object.defineProperty;var b=(a,t,e)=>t in a?f(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var p=(a,t,e)=>(b(a,typeof t!="symbol"?t+"":t,e),e);import"./vue-router.3fd92176.js";import{A as w}from"./record.cbb43e89.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="f6bafe4b-b68e-4672-abc3-b55678810b03",a._sentryDebugIdIdentifier="sentry-dbid-f6bafe4b-b68e-4672-abc3-b55678810b03")}catch{}})();class I{static async*sendMessage(t,e,s,r){var h;const n=await fetch("/_editor/api/ai/message",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:t,runtime:e,threadId:s})});if(!n.ok)throw new Error("Failed to send message");const d=(h=n.body)==null?void 0:h.getReader();if(!d)throw new Error("No response body");for(;!r();){const g=await d.read();if(g.done)break;yield new TextDecoder().decode(g.value)}}static async createThread(){return(await fetch("/_editor/api/ai/thread",{method:"POST"})).json()}static async cancelAllRuns(t){return(await fetch("/_editor/api/ai/cancel-all",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threadId:t})})).ok}static async generateProject(t){const e=await fetch("/_editor/api/ai/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t})});if(!e.ok){const s=await e.text();throw new Error(s)}}static async vote(t,e,s,r){await fetch("/_editor/api/ai/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vote:t,question:e,answer:s,context:r})})}}class m{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,s){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/hooks/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/hooks/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/run?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}async test(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/test?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}}const i=new m;class u{constructor(t){p(this,"record");this.record=w.create(i,t)}static async list(){return(await i.list()).map(e=>new u(e))}static async create(t,e,s){const r=await i.create(t,e,s);return new u(r)}static async get(t){const e=await i.get(t);return new u(e)}async delete(t){await i.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return i.run(this.id,t)}async test(t){return i.test(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new u(t)}}class j{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,s){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/jobs/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/jobs/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}async test(t){return(await fetch(`/_editor/api/jobs/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const o=new j;class y{constructor(t){p(this,"record");p(this,"isInitial",!0);this.record=w.create(o,t)}static async list(){return(await o.list()).map(e=>new y(e))}static async create(t,e,s){const r=await o.create(t,e,s);return new y(r)}static async get(t){const e=await o.get(t);return new y(e)}async delete(t){await o.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async test(){return o.test(this.id)}async run(){return o.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new y(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class S{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,s){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/scripts/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/scripts/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({stage_run_id:e})})).ok}async test(t){return(await fetch(`/_editor/api/scripts/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const c=new S;class l{constructor(t){p(this,"record");this.record=w.create(c,t)}static async list(){return(await c.list()).map(e=>new l(e))}static async create(t,e,s){const r=await c.create(t,e,s);return new l(r)}static async get(t){const e=await c.get(t);return new l(e)}async delete(t){await c.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"script"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async test(){return c.test(this.id)}async run(t){return c.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new l(t)}}export{I as A,u as H,y as J,l as S}; +//# sourceMappingURL=scripts.32887e06.js.map diff --git a/abstra_statics/dist/assets/string.eaeb96c3.js b/abstra_statics/dist/assets/string.e75a34fd.js similarity index 55% rename from abstra_statics/dist/assets/string.eaeb96c3.js rename to abstra_statics/dist/assets/string.e75a34fd.js index 290877cb1..09ff22c8a 100644 --- a/abstra_statics/dist/assets/string.eaeb96c3.js +++ b/abstra_statics/dist/assets/string.e75a34fd.js @@ -1,2 +1,2 @@ -import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8ca4aafa-585a-471f-b91f-1317af5b4ee8",e._sentryDebugIdIdentifier="sentry-dbid-8ca4aafa-585a-471f-b91f-1317af5b4ee8")}catch{}})();function f(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e,a,n=!1,t=!0,r=!1){const s=(t?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=r?s.replace(/[^a-zA-Z0-9/]/g,"_"):s.replace(/[^a-zA-Z0-9]/g,"_"),l=n?c:c.replace(/_+/g,"_");return a?l:l.replace(/_$/,"")}function d(e){var o;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=/[a-z0-9]+/g,r=n.match(t);return(o=r==null?void 0:r.join("-"))!=null?o:""}function g(e){try{return{valid:!0,parsed:JSON.parse(e)}}catch(a){return{valid:!1,message:a instanceof Error?a.message:"Unknown error"}}}export{d as a,f as c,u as n,g as v}; -//# sourceMappingURL=string.eaeb96c3.js.map +import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="62142952-9e74-4f69-9c6a-c825aae4127e",e._sentryDebugIdIdentifier="sentry-dbid-62142952-9e74-4f69-9c6a-c825aae4127e")}catch{}})();function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e,a,n=!1,t=!0,r=!1){const s=(t?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=r?s.replace(/[^a-zA-Z0-9/]/g,"_"):s.replace(/[^a-zA-Z0-9]/g,"_"),l=n?c:c.replace(/_+/g,"_");return a?l:l.replace(/_$/,"")}function f(e){var o;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=/[a-z0-9]+/g,r=n.match(t);return(o=r==null?void 0:r.join("-"))!=null?o:""}function g(e){try{return{valid:!0,parsed:JSON.parse(e)}}catch(a){return{valid:!1,message:a instanceof Error?a.message:"Unknown error"}}}export{f as a,u as c,d as n,g as v}; +//# sourceMappingURL=string.e75a34fd.js.map diff --git a/abstra_statics/dist/assets/tables.e9d41f69.js b/abstra_statics/dist/assets/tables.3aa20dd6.js similarity index 94% rename from abstra_statics/dist/assets/tables.e9d41f69.js rename to abstra_statics/dist/assets/tables.3aa20dd6.js index d33289dfd..9a0f98281 100644 --- a/abstra_statics/dist/assets/tables.e9d41f69.js +++ b/abstra_statics/dist/assets/tables.3aa20dd6.js @@ -1,2 +1,2 @@ -var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var d=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{C as n}from"./gateway.e77556e5.js";import{E as b}from"./record.34d5b504.js";import{n as g}from"./string.eaeb96c3.js";import{N as o}from"./vue-router.4c13f3d4.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="b7d2808d-f264-408c-a378-622b3751ae30",s._sentryDebugIdIdentifier="sentry-dbid-b7d2808d-f264-408c-a378-622b3751ae30")}catch{}})();o.object({name:o.string().optional(),unique:o.boolean().optional(),nullable:o.boolean().optional(),type:o.object({newType:o.string(),using:o.string()}).optional(),default:o.string().optional(),foreignKey:o.object({columnId:o.string()}).nullish().optional()});const $={boolean:["boolean","bool"],int:["int","integer","int4"],varchar:["varchar","character varying","text"],json:["json"],date:["date"],timestamp:["timestamp"],uuid:["uuid"],real:["real","float4"]},T=s=>{for(const e of C)if($[e].includes(s))return e;throw new Error(`Unknown type: ${s}`)};class D{async create(e){return n.post(`projects/${e.projectId}/tables/${e.tableId}/columns`,e)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`)}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`,t)}async getById(e){return n.get(`projects/${e.projectId}/columns/${e.id}`)}}const m=new D,u=class{constructor(e){d(this,"record");this.record=b.from(e)}static async create(e,t,r,c,h,l,I,f){const y=await m.create({name:e,type:t,default:r,nullable:c,unique:h,tableId:l,projectId:I,foreignKey:f});return"error"in y?y:new u(y)}async update(e){const t={...this.record.changes,type:this.record.changes.type&&e?{newType:this.record.changes.type,using:e}:void 0};return Object.keys(t).length===0||!this.id?{success:!0,error:""}:(await m.update({id:this.id,tableId:this.tableId,projectId:this.projectId},t),{success:!0,error:""})}toDTO(){return this.record.state}get id(){return this.record.get("id")}get tableId(){return this.record.get("tableId")}get projectId(){return this.record.get("projectId")}get protected(){return this.record.get("protected")}get type(){return T(this.record.get("type"))}set type(e){this.record.set("type",e)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get nullable(){return this.record.get("nullable")}set nullable(e){this.record.set("nullable",e)}get unique(){return this.record.get("unique")}set unique(e){this.record.set("unique",e)}get primaryKey(){return this.record.get("primaryKey")}get default(){var e;return(e=this.record.get("default"))==null?void 0:e.split("::")[0]}set default(e){this.record.set("default",e)}get foreignKey(){return this.record.get("foreignKey")}set foreignKey(e){this.record.set("foreignKey",e)}async delete(){this.id&&await m.delete({id:this.id,tableId:this.tableId,projectId:this.projectId})}};let i=u;d(i,"fromDTO",e=>new u(e)),d(i,"fromID",async(e,t)=>{const r=await m.getById({projectId:e,id:t});return u.fromDTO(r.column)});const C=["varchar","int","boolean","json","date","timestamp","uuid","real"],N={varchar:"'DEFAULT_VALUE'",int:"42",boolean:"false",json:"'{}'::json",date:"now()",timestamp:"now()",uuid:"gen_random_uuid()",real:"0.0"};class R{async list(e){return n.get(`projects/${e}/tables`)}async create(e,t){return await n.post(`projects/${e.projectId}/tables`,t)}async get(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}`)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}`)}async selectRows(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}/rows`,{limit:e.limit.toString(),offset:e.offset.toString(),search:e.search,where:JSON.stringify(e.where)})}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}`,t)}async insertRow(e,t){return n.post(`projects/${e.projectId}/tables/${e.tableId}/rows`,t)}async updateRow(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`,t)}async deleteRow(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`)}async getByColumnID(e){return n.get(`projects/${e.projectId}/columns/${e.columnId}`)}}const a=new R;class p{constructor(e,t=null){d(this,"record");d(this,"columns");this.record=b.from(e),this.columns=t}static async list(e){return(await a.list(e)).map(r=>new p(r))}static async fromColumnId(e,t){const r=await a.getByColumnID({projectId:e,columnId:t});return p.get(e,r.table.id)}static async create(e,t){const r=g(t,!1),c=await a.create({projectId:e},{name:r});return new p(c.table,c.columns.map(l=>i.fromDTO(l)))}static async get(e,t){const r=await a.get({projectId:e,tableId:t}),c=r.table,h=r.columns.map(l=>i.fromDTO({...l,projectId:c.projectId}));return new p(c,h)}async delete(e,t){return a.delete({projectId:e,tableId:t})}fixTraillingName(){this.name=g(this.name,!1)}async save(){if(Object.keys(this.record.changes).length!==0){this.record.changes.name&&this.fixTraillingName();try{await a.update({id:this.id,tableId:this.id,projectId:this.projectId},this.record.changes)}finally{this.record.resetChanges()}}}resetChanges(){this.record.resetChanges()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}hasChangesDeep(e){return this.record.hasChangesDeep(e)&&g(this.name,!1)!==this.record.initialState.name}getColumns(){var e;return(e=this.columns)!=null?e:[]}getUnprotectedColumns(){var e,t;return(t=(e=this.columns)==null?void 0:e.filter(r=>!r.protected).map(r=>r.toDTO()))!=null?t:[]}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(e){const t=g(e,!0);this.record.set("name",t)}get projectId(){return this.record.get("projectId")}async addColumn(e){const t=await i.create(e.name,e.type,e.default,e.nullable,e.unique,this.id,this.projectId,e.foreignKey);return"error"in t?{success:!1,error:t.error}:this.columns?(this.columns.push(t),{success:!0,error:""}):(this.columns=[t],{success:!0,error:""})}getColumn(e){var t;return(t=this.columns)==null?void 0:t.find(r=>r.id&&r.id===e)}async select(e={},t,r,c){return a.selectRows({name:this.name,where:e,tableId:this.id,projectId:this.projectId,limit:r,offset:t,search:c})}async insertRow(e){return a.insertRow({tableId:this.id,projectId:this.projectId},e)}async updateRow(e,t){return a.updateRow({tableId:this.id,projectId:this.projectId,rowId:e},t)}async deleteRow(e){return a.deleteRow({tableId:this.id,projectId:this.projectId,rowId:e})}}export{p as T,N as d,C as p}; -//# sourceMappingURL=tables.e9d41f69.js.map +var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var d=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{C as n}from"./gateway.c564a1cf.js";import{E as b}from"./record.cbb43e89.js";import{n as g}from"./string.e75a34fd.js";import{N as o}from"./vue-router.3fd92176.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="89592adf-67c4-4e9b-9347-994335976333",s._sentryDebugIdIdentifier="sentry-dbid-89592adf-67c4-4e9b-9347-994335976333")}catch{}})();o.object({name:o.string().optional(),unique:o.boolean().optional(),nullable:o.boolean().optional(),type:o.object({newType:o.string(),using:o.string()}).optional(),default:o.string().optional(),foreignKey:o.object({columnId:o.string()}).nullish().optional()});const $={boolean:["boolean","bool"],int:["int","integer","int4"],varchar:["varchar","character varying","text"],json:["json"],date:["date"],timestamp:["timestamp"],uuid:["uuid"],real:["real","float4"]},T=s=>{for(const e of C)if($[e].includes(s))return e;throw new Error(`Unknown type: ${s}`)};class D{async create(e){return n.post(`projects/${e.projectId}/tables/${e.tableId}/columns`,e)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`)}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`,t)}async getById(e){return n.get(`projects/${e.projectId}/columns/${e.id}`)}}const m=new D,u=class{constructor(e){d(this,"record");this.record=b.from(e)}static async create(e,t,r,c,h,l,I,f){const y=await m.create({name:e,type:t,default:r,nullable:c,unique:h,tableId:l,projectId:I,foreignKey:f});return"error"in y?y:new u(y)}async update(e){const t={...this.record.changes,type:this.record.changes.type&&e?{newType:this.record.changes.type,using:e}:void 0};return Object.keys(t).length===0||!this.id?{success:!0,error:""}:(await m.update({id:this.id,tableId:this.tableId,projectId:this.projectId},t),{success:!0,error:""})}toDTO(){return this.record.state}get id(){return this.record.get("id")}get tableId(){return this.record.get("tableId")}get projectId(){return this.record.get("projectId")}get protected(){return this.record.get("protected")}get type(){return T(this.record.get("type"))}set type(e){this.record.set("type",e)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get nullable(){return this.record.get("nullable")}set nullable(e){this.record.set("nullable",e)}get unique(){return this.record.get("unique")}set unique(e){this.record.set("unique",e)}get primaryKey(){return this.record.get("primaryKey")}get default(){var e;return(e=this.record.get("default"))==null?void 0:e.split("::")[0]}set default(e){this.record.set("default",e)}get foreignKey(){return this.record.get("foreignKey")}set foreignKey(e){this.record.set("foreignKey",e)}async delete(){this.id&&await m.delete({id:this.id,tableId:this.tableId,projectId:this.projectId})}};let i=u;d(i,"fromDTO",e=>new u(e)),d(i,"fromID",async(e,t)=>{const r=await m.getById({projectId:e,id:t});return u.fromDTO(r.column)});const C=["varchar","int","boolean","json","date","timestamp","uuid","real"],N={varchar:"'DEFAULT_VALUE'",int:"42",boolean:"false",json:"'{}'::json",date:"now()",timestamp:"now()",uuid:"gen_random_uuid()",real:"0.0"};class R{async list(e){return n.get(`projects/${e}/tables`)}async create(e,t){return await n.post(`projects/${e.projectId}/tables`,t)}async get(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}`)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}`)}async selectRows(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}/rows`,{limit:e.limit.toString(),offset:e.offset.toString(),search:e.search,where:JSON.stringify(e.where)})}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}`,t)}async insertRow(e,t){return n.post(`projects/${e.projectId}/tables/${e.tableId}/rows`,t)}async updateRow(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`,t)}async deleteRow(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`)}async getByColumnID(e){return n.get(`projects/${e.projectId}/columns/${e.columnId}`)}}const a=new R;class p{constructor(e,t=null){d(this,"record");d(this,"columns");this.record=b.from(e),this.columns=t}static async list(e){return(await a.list(e)).map(r=>new p(r))}static async fromColumnId(e,t){const r=await a.getByColumnID({projectId:e,columnId:t});return p.get(e,r.table.id)}static async create(e,t){const r=g(t,!1),c=await a.create({projectId:e},{name:r});return new p(c.table,c.columns.map(l=>i.fromDTO(l)))}static async get(e,t){const r=await a.get({projectId:e,tableId:t}),c=r.table,h=r.columns.map(l=>i.fromDTO({...l,projectId:c.projectId}));return new p(c,h)}async delete(e,t){return a.delete({projectId:e,tableId:t})}fixTraillingName(){this.name=g(this.name,!1)}async save(){if(Object.keys(this.record.changes).length!==0){this.record.changes.name&&this.fixTraillingName();try{await a.update({id:this.id,tableId:this.id,projectId:this.projectId},this.record.changes)}finally{this.record.resetChanges()}}}resetChanges(){this.record.resetChanges()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}hasChangesDeep(e){return this.record.hasChangesDeep(e)&&g(this.name,!1)!==this.record.initialState.name}getColumns(){var e;return(e=this.columns)!=null?e:[]}getUnprotectedColumns(){var e,t;return(t=(e=this.columns)==null?void 0:e.filter(r=>!r.protected).map(r=>r.toDTO()))!=null?t:[]}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(e){const t=g(e,!0);this.record.set("name",t)}get projectId(){return this.record.get("projectId")}async addColumn(e){const t=await i.create(e.name,e.type,e.default,e.nullable,e.unique,this.id,this.projectId,e.foreignKey);return"error"in t?{success:!1,error:t.error}:this.columns?(this.columns.push(t),{success:!0,error:""}):(this.columns=[t],{success:!0,error:""})}getColumn(e){var t;return(t=this.columns)==null?void 0:t.find(r=>r.id&&r.id===e)}async select(e={},t,r,c){return a.selectRows({name:this.name,where:e,tableId:this.id,projectId:this.projectId,limit:r,offset:t,search:c})}async insertRow(e){return a.insertRow({tableId:this.id,projectId:this.projectId},e)}async updateRow(e,t){return a.updateRow({tableId:this.id,projectId:this.projectId,rowId:e},t)}async deleteRow(e){return a.deleteRow({tableId:this.id,projectId:this.projectId,rowId:e})}}export{p as T,N as d,C as p}; +//# sourceMappingURL=tables.3aa20dd6.js.map diff --git a/abstra_statics/dist/assets/toggleHighContrast.017fb466.js b/abstra_statics/dist/assets/toggleHighContrast.db48a34e.js similarity index 99% rename from abstra_statics/dist/assets/toggleHighContrast.017fb466.js rename to abstra_statics/dist/assets/toggleHighContrast.db48a34e.js index 8d8a55996..c627ce3de 100644 --- a/abstra_statics/dist/assets/toggleHighContrast.017fb466.js +++ b/abstra_statics/dist/assets/toggleHighContrast.db48a34e.js @@ -1,4 +1,4 @@ -var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var qt=(o,e,t)=>(m8(o,typeof e!="symbol"?e+"":e,t),t);import{_ as ue}from"./vue-router.4c13f3d4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="60cada28-ed7b-4d10-99cd-0cc4bcb8a26b",o._sentryDebugIdIdentifier="sentry-dbid-60cada28-ed7b-4d10-99cd-0cc4bcb8a26b")}catch{}})();globalThis&&globalThis.__awaiter;let _8=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function b8(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),_8&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(o,e,...t){return b8(e,t)}var Ow;const Vf="en";let U0=!1,$0=!1,h0=!1,TO=!1,sI=!1,oI=!1,q_,u0=Vf,v8,Cl;const ni=typeof self=="object"?self:typeof global=="object"?global:{};let Sn;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Sn=ni.vscode.process:typeof process<"u"&&(Sn=process);const C8=typeof((Ow=Sn==null?void 0:Sn.versions)===null||Ow===void 0?void 0:Ow.electron)=="string",w8=C8&&(Sn==null?void 0:Sn.type)==="renderer";if(typeof navigator=="object"&&!w8)Cl=navigator.userAgent,U0=Cl.indexOf("Windows")>=0,$0=Cl.indexOf("Macintosh")>=0,oI=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h0=Cl.indexOf("Linux")>=0,sI=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),q_=Vf,u0=q_;else if(typeof Sn=="object"){U0=Sn.platform==="win32",$0=Sn.platform==="darwin",h0=Sn.platform==="linux",h0&&!!Sn.env.SNAP&&Sn.env.SNAP_REVISION,Sn.env.CI||Sn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,q_=Vf,u0=Vf;const o=Sn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];q_=e.locale,u0=t||Vf,v8=e._translationsConfigFile}catch{}TO=!0}else console.error("Unable to resolve platform.");const Yi=U0,Ge=$0,dn=h0,jo=TO,Sc=sI,S8=sI&&typeof ni.importScripts=="function",Ur=oI,$r=Cl,y8=u0,L8=typeof ni.postMessage=="function"&&!ni.importScripts,AO=(()=>{if(L8){const o=[];ni.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ni.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Os=$0||oI?2:U0?1:3;let yT=!0,LT=!1;function MO(){if(!LT){LT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,yT=new Uint16Array(o.buffer)[0]===(2<<8)+1}return yT}const RO=!!($r&&$r.indexOf("Chrome")>=0),D8=!!($r&&$r.indexOf("Firefox")>=0),k8=!!(!RO&&$r&&$r.indexOf("Safari")>=0),x8=!!($r&&$r.indexOf("Edg/")>=0);$r&&$r.indexOf("Android")>=0;var je;(function(o){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(S){yield S}o.single=n;function s(S){return S||t}o.from=s;function r(S){return!S||S[Symbol.iterator]().next().done===!0}o.isEmpty=r;function a(S){return S[Symbol.iterator]().next().value}o.first=a;function l(S,k){for(const x of S)if(k(x))return!0;return!1}o.some=l;function c(S,k){for(const x of S)if(k(x))return x}o.find=c;function*d(S,k){for(const x of S)k(x)&&(yield x)}o.filter=d;function*h(S,k){let x=0;for(const y of S)yield k(y,x++)}o.map=h;function*u(...S){for(const k of S)for(const x of k)yield x}o.concat=u;function*g(S){for(const k of S)for(const x of k)yield x}o.concatNested=g;function f(S,k,x){let y=x;for(const D of S)y=k(y,D);return y}o.reduce=f;function _(S,k){let x=0;for(const y of S)k(y,x++)}o.forEach=_;function*b(S,k,x=S.length){for(k<0&&(k+=S.length),x<0?x+=S.length:x>S.length&&(x=S.length);ky===D){const y=S[Symbol.iterator](),D=k[Symbol.iterator]();for(;;){const I=y.next(),O=D.next();if(I.done!==O.done)return!1;if(I.done)return!0;if(!x(I.value,O.value))return!1}}o.equals=w})(je||(je={}));class Gt{constructor(e){this.element=e,this.next=Gt.Undefined,this.prev=Gt.Undefined}}Gt.Undefined=new Gt(void 0);class Dn{constructor(){this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gt.Undefined}clear(){let e=this._first;for(;e!==Gt.Undefined;){const t=e.next;e.prev=Gt.Undefined,e.next=Gt.Undefined,e=t}this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gt(e);if(this._first===Gt.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gt.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gt.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gt.Undefined&&e.next!==Gt.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gt.Undefined&&e.next===Gt.Undefined?(this._first=Gt.Undefined,this._last=Gt.Undefined):e.next===Gt.Undefined?(this._last=this._last.prev,this._last.next=Gt.Undefined):e.prev===Gt.Undefined&&(this._first=this._first.next,this._first.prev=Gt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gt.Undefined;)yield e.element,e=e.next}}const OO="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I8(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of OO)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const rI=I8();function PO(o){let e=rI;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const FO=new Dn;FO.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Mp(o,e,t,i,n){if(n||(n=je.first(FO)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Mp(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=E8(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function E8(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Ts(o,e=0){return o[o.length-(1+e)]}function N8(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Ss(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function A8(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function BO(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function WO(o){return!Array.isArray(o)||o.length===0}function rn(o){return Array.isArray(o)&&o.length>0}function Qa(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function j0(o,e){const t=M8(o,e);if(t!==-1)return o[t]}function M8(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function VO(o,e){return o.length>0?o[0]:e}function Cn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function RC(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function Pw(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function G_(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function kT(o,e){for(const t of e)o.push(t)}function lI(o){return Array.isArray(o)?o:[o]}function R8(o,e,t){const i=HO(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(IT||(IT={}));function op(o,e){return(t,i)=>e(o(t),o(i))}const O8=(o,e)=>o-e;function zO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function UO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function P8(o,e){return zO(o,(t,i)=>-e(t,i))}class Rp{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function $O(o){return Array.isArray(o)}function Un(o){return typeof o=="string"}function Hn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function F8(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function tc(o){return typeof o=="number"&&!isNaN(o)}function ET(o){return!!o&&typeof o[Symbol.iterator]=="function"}function jO(o){return o===!0||o===!1}function Xn(o){return typeof o>"u"}function B8(o){return!ms(o)}function ms(o){return Xn(o)||o===null}function pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Z_(o){if(ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function K0(o){return typeof o=="function"}function W8(o,e){const t=Math.min(o.length,e.length);for(let i=0;ifunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function Wn(o){return o===null?void 0:o}function OC(o,e="Unreachable"){throw new Error(e)}function La(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.keys(o).forEach(t=>{o[t]&&typeof o[t]=="object"?e[t]=La(o[t]):e[t]=o[t]}),e}function U8(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(KO.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!F8(n)&&e.push(n)}}return o}const KO=Object.prototype.hasOwnProperty;function qO(o,e){return $y(o,e,new Set)}function $y(o,e,t){if(ms(o))return o;const i=e(o);if(typeof i<"u")return i;if($O(o)){const n=[];for(const s of o)n.push($y(s,e,t));return n}if(Hn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)KO.call(o,s)&&(n[s]=$y(o[s],e,t));return t.delete(o),n}return o}function Jr(o,e,t=!0){return Hn(o)?(Hn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Hn(o[i])&&Hn(e[i])?Jr(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function $s(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:Boolean(o)}class Qe extends uh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function jy(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Tt extends uh{constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}static clampedInt(e,t,i,n){return jy(e,t,i,n)}validate(e){return Tt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Ar extends uh{constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Ar.float(e,this.defaultValue))}}class Yn extends uh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Yn.string(e,this.defaultValue)}}function Ki(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class vi extends uh{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ki(e,this.defaultValue,this._allowedValues)}}class ff extends fi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function $8(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class j8 extends fi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class K8 extends fi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function q8(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Hi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Hi||(Hi={}));function G8(o){switch(o){case"line":return Hi.Line;case"block":return Hi.Block;case"underline":return Hi.Underline;case"line-thin":return Hi.LineThin;case"block-outline":return Hi.BlockOutline;case"underline-thin":return Hi.UnderlineThin}}class Z8 extends Vg{constructor(){super(130)}compute(e,t,i){const n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(68)==="default"?n.push("mouse-default"):t.get(68)==="copy"&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}class Y8 extends Qe{constructor(){super(33,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Q8 extends fi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ge},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ki(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ki(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class _s extends fi{constructor(){super(47,"fontLigatures",_s.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?_s.OFF:e==="true"?_s.ON:e:Boolean(e)?_s.ON:_s.OFF}}_s.OFF='"liga" off, "calt" off';_s.ON='"liga" on, "calt" on';class X8 extends Vg{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}class J8 extends uh{constructor(){super(48,"fontSize",ts.fontSize,{type:"number",minimum:6,maximum:100,default:ts.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Ar.float(e,this.defaultValue);return t===0?ts.fontSize:Ar.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class kr extends fi{constructor(){super(49,"fontWeight",ts.fontWeight,{anyOf:[{type:"number",minimum:kr.MINIMUM_VALUE,maximum:kr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:kr.SUGGESTION_VALUES}],default:ts.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Tt.clampedInt(e,ts.fontWeight,kr.MINIMUM_VALUE,kr.MAXIMUM_VALUE))}}kr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];kr.MINIMUM_VALUE=1;kr.MAXIMUM_VALUE=1e3;class e6 extends fi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ki(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ki(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ki(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ki(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ki(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ki(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Yn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Yn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Yn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Yn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Yn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class t6 extends fi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Tt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),above:we(t.above,this.defaultValue.above)}}}class Eu extends Vg{constructor(){super(133)}compute(e,t,i){return Eu.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,v=e.viewLineCount,C=e.remainingWidth,w=e.isViewportWrapping,S=h?2:3;let k=Math.floor(s*n);const x=k/s;let y=!1,D=!1,I=S*u,O=u/s,F=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:xe,extraLinesBeyondLastLine:He,desiredRatio:Mt,minimapLineCount:yt}=Eu.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:s});if(v/yt>1)y=!0,D=!0,u=1,I=1,O=u/s;else{let me=!1,Nt=u+1;if(f==="fit"){const Fi=Math.ceil((v+He)*I);w&&a&&C<=t.stableFitRemainingWidth?(me=!0,Nt=t.stableFitMaxMinimapScale):me=Fi>k}if(f==="fill"||me){y=!0;const Fi=u;I=Math.min(l*s,Math.max(1,Math.floor(1/Mt))),w&&a&&C<=t.stableFitRemainingWidth&&(Nt=t.stableFitMaxMinimapScale),u=Math.min(Nt,Math.max(1,Math.floor(I/S))),u>Fi&&(F=Math.min(2,u/Fi)),O=u/s/F,k=Math.ceil(Math.max(xe,v+He)*I),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const z=Math.floor(g*O),j=Math.min(z,Math.max(0,Math.floor((C-b-2)*O/(c+O)))+wl);let re=Math.floor(s*j);const he=re/s;re=Math.floor(re*F);const Se=h?1:2,ye=_==="left"?0:i-j-b;return{renderMinimap:Se,minimapLeft:ye,minimapWidth:j,minimapHeightIsEditorHeight:y,minimapIsSampling:D,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:re,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(125),u=h==="inherit"?e.get(124):h,g=u==="inherit"?e.get(120):u,f=e.get(123),_=e.get(2),b=t.isDominatedByLongLines,v=e.get(52),C=e.get(62).renderType!==0,w=e.get(63),S=e.get(96),k=e.get(67),x=e.get(94),y=x.verticalScrollbarSize,D=x.verticalHasArrows,I=x.arrowSize,O=x.horizontalScrollbarSize,F=e.get(60),z=e.get(39),j=e.get(101)!=="never";let re;if(typeof F=="string"&&/^\d+(\.\d+)?ch$/.test(F)){const xo=parseFloat(F.substr(0,F.length-2));re=Tt.clampedInt(xo*a,0,0,1e3)}else re=Tt.clampedInt(F,0,0,1e3);z&&j&&(re+=16);let he=0;if(C){const xo=Math.max(r,w);he=Math.round(xo*l)}let Se=0;v&&(Se=s);let ye=0,xe=ye+Se,He=xe+he,Mt=He+re;const yt=i-Se-he-re;let ve=!1,me=!1,Nt=-1;_!==2&&(u==="inherit"&&b?(ve=!0,me=!0):g==="on"||g==="bounded"?me=!0:g==="wordWrapColumn"&&(Nt=f));const Fi=Eu._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:y,viewLineCount:d,remainingWidth:yt,isViewportWrapping:me},t.memory||new ZO);Fi.renderMinimap!==0&&Fi.minimapLeft===0&&(ye+=Fi.minimapWidth,xe+=Fi.minimapWidth,He+=Fi.minimapWidth,Mt+=Fi.minimapWidth);const In=yt-Fi.minimapWidth,ko=Math.max(1,Math.floor((In-y-2)/a)),oa=D?I:0;return me&&(Nt=Math.max(1,ko),g==="bounded"&&(Nt=Math.min(Nt,f))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:Se,lineNumbersLeft:xe,lineNumbersWidth:he,decorationsLeft:He,decorationsWidth:re,contentLeft:Mt,contentWidth:In,minimap:Fi,viewportColumn:ko,isWordWrapMinified:ve,isViewportWrapping:me,wrappingColumn:Nt,verticalScrollbarWidth:y,horizontalScrollbarHeight:O,overviewRuler:{top:oa,width:y,height:n-2*oa,right:0}}}}class i6 extends fi{constructor(){const e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}class n6 extends fi{constructor(){const e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:p("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return!e||typeof e!="object"?this.defaultValue:{stickyScroll:{enabled:we((t=e.stickyScroll)===null||t===void 0?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}}}class s6 extends fi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ki(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Tt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Yn.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class o6 extends Ar{constructor(){super(61,"lineHeight",ts.lineHeight,e=>Ar.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var qt=(o,e,t)=>(m8(o,typeof e!="symbol"?e+"":e,t),t);import{_ as ue}from"./vue-router.3fd92176.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="1288991f-d8e6-4fc0-8513-7a90143ca608",o._sentryDebugIdIdentifier="sentry-dbid-1288991f-d8e6-4fc0-8513-7a90143ca608")}catch{}})();globalThis&&globalThis.__awaiter;let _8=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function b8(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),_8&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(o,e,...t){return b8(e,t)}var Ow;const Vf="en";let U0=!1,$0=!1,h0=!1,TO=!1,sI=!1,oI=!1,q_,u0=Vf,v8,Cl;const ni=typeof self=="object"?self:typeof global=="object"?global:{};let Sn;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Sn=ni.vscode.process:typeof process<"u"&&(Sn=process);const C8=typeof((Ow=Sn==null?void 0:Sn.versions)===null||Ow===void 0?void 0:Ow.electron)=="string",w8=C8&&(Sn==null?void 0:Sn.type)==="renderer";if(typeof navigator=="object"&&!w8)Cl=navigator.userAgent,U0=Cl.indexOf("Windows")>=0,$0=Cl.indexOf("Macintosh")>=0,oI=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h0=Cl.indexOf("Linux")>=0,sI=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),q_=Vf,u0=q_;else if(typeof Sn=="object"){U0=Sn.platform==="win32",$0=Sn.platform==="darwin",h0=Sn.platform==="linux",h0&&!!Sn.env.SNAP&&Sn.env.SNAP_REVISION,Sn.env.CI||Sn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,q_=Vf,u0=Vf;const o=Sn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];q_=e.locale,u0=t||Vf,v8=e._translationsConfigFile}catch{}TO=!0}else console.error("Unable to resolve platform.");const Yi=U0,Ge=$0,dn=h0,jo=TO,Sc=sI,S8=sI&&typeof ni.importScripts=="function",Ur=oI,$r=Cl,y8=u0,L8=typeof ni.postMessage=="function"&&!ni.importScripts,AO=(()=>{if(L8){const o=[];ni.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ni.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Os=$0||oI?2:U0?1:3;let yT=!0,LT=!1;function MO(){if(!LT){LT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,yT=new Uint16Array(o.buffer)[0]===(2<<8)+1}return yT}const RO=!!($r&&$r.indexOf("Chrome")>=0),D8=!!($r&&$r.indexOf("Firefox")>=0),k8=!!(!RO&&$r&&$r.indexOf("Safari")>=0),x8=!!($r&&$r.indexOf("Edg/")>=0);$r&&$r.indexOf("Android")>=0;var je;(function(o){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(S){yield S}o.single=n;function s(S){return S||t}o.from=s;function r(S){return!S||S[Symbol.iterator]().next().done===!0}o.isEmpty=r;function a(S){return S[Symbol.iterator]().next().value}o.first=a;function l(S,k){for(const x of S)if(k(x))return!0;return!1}o.some=l;function c(S,k){for(const x of S)if(k(x))return x}o.find=c;function*d(S,k){for(const x of S)k(x)&&(yield x)}o.filter=d;function*h(S,k){let x=0;for(const y of S)yield k(y,x++)}o.map=h;function*u(...S){for(const k of S)for(const x of k)yield x}o.concat=u;function*g(S){for(const k of S)for(const x of k)yield x}o.concatNested=g;function f(S,k,x){let y=x;for(const D of S)y=k(y,D);return y}o.reduce=f;function _(S,k){let x=0;for(const y of S)k(y,x++)}o.forEach=_;function*b(S,k,x=S.length){for(k<0&&(k+=S.length),x<0?x+=S.length:x>S.length&&(x=S.length);ky===D){const y=S[Symbol.iterator](),D=k[Symbol.iterator]();for(;;){const I=y.next(),O=D.next();if(I.done!==O.done)return!1;if(I.done)return!0;if(!x(I.value,O.value))return!1}}o.equals=w})(je||(je={}));class Gt{constructor(e){this.element=e,this.next=Gt.Undefined,this.prev=Gt.Undefined}}Gt.Undefined=new Gt(void 0);class Dn{constructor(){this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gt.Undefined}clear(){let e=this._first;for(;e!==Gt.Undefined;){const t=e.next;e.prev=Gt.Undefined,e.next=Gt.Undefined,e=t}this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gt(e);if(this._first===Gt.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gt.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gt.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gt.Undefined&&e.next!==Gt.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gt.Undefined&&e.next===Gt.Undefined?(this._first=Gt.Undefined,this._last=Gt.Undefined):e.next===Gt.Undefined?(this._last=this._last.prev,this._last.next=Gt.Undefined):e.prev===Gt.Undefined&&(this._first=this._first.next,this._first.prev=Gt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gt.Undefined;)yield e.element,e=e.next}}const OO="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I8(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of OO)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const rI=I8();function PO(o){let e=rI;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const FO=new Dn;FO.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Mp(o,e,t,i,n){if(n||(n=je.first(FO)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Mp(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=E8(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function E8(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Ts(o,e=0){return o[o.length-(1+e)]}function N8(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Ss(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function A8(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function BO(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function WO(o){return!Array.isArray(o)||o.length===0}function rn(o){return Array.isArray(o)&&o.length>0}function Qa(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function j0(o,e){const t=M8(o,e);if(t!==-1)return o[t]}function M8(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function VO(o,e){return o.length>0?o[0]:e}function Cn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function RC(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function Pw(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function G_(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function kT(o,e){for(const t of e)o.push(t)}function lI(o){return Array.isArray(o)?o:[o]}function R8(o,e,t){const i=HO(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(IT||(IT={}));function op(o,e){return(t,i)=>e(o(t),o(i))}const O8=(o,e)=>o-e;function zO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function UO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function P8(o,e){return zO(o,(t,i)=>-e(t,i))}class Rp{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function $O(o){return Array.isArray(o)}function Un(o){return typeof o=="string"}function Hn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function F8(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function tc(o){return typeof o=="number"&&!isNaN(o)}function ET(o){return!!o&&typeof o[Symbol.iterator]=="function"}function jO(o){return o===!0||o===!1}function Xn(o){return typeof o>"u"}function B8(o){return!ms(o)}function ms(o){return Xn(o)||o===null}function pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Z_(o){if(ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function K0(o){return typeof o=="function"}function W8(o,e){const t=Math.min(o.length,e.length);for(let i=0;ifunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function Wn(o){return o===null?void 0:o}function OC(o,e="Unreachable"){throw new Error(e)}function La(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.keys(o).forEach(t=>{o[t]&&typeof o[t]=="object"?e[t]=La(o[t]):e[t]=o[t]}),e}function U8(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(KO.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!F8(n)&&e.push(n)}}return o}const KO=Object.prototype.hasOwnProperty;function qO(o,e){return $y(o,e,new Set)}function $y(o,e,t){if(ms(o))return o;const i=e(o);if(typeof i<"u")return i;if($O(o)){const n=[];for(const s of o)n.push($y(s,e,t));return n}if(Hn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)KO.call(o,s)&&(n[s]=$y(o[s],e,t));return t.delete(o),n}return o}function Jr(o,e,t=!0){return Hn(o)?(Hn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Hn(o[i])&&Hn(e[i])?Jr(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function $s(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:Boolean(o)}class Qe extends uh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function jy(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Tt extends uh{constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}static clampedInt(e,t,i,n){return jy(e,t,i,n)}validate(e){return Tt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Ar extends uh{constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Ar.float(e,this.defaultValue))}}class Yn extends uh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Yn.string(e,this.defaultValue)}}function Ki(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class vi extends uh{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ki(e,this.defaultValue,this._allowedValues)}}class ff extends fi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function $8(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class j8 extends fi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class K8 extends fi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function q8(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Hi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Hi||(Hi={}));function G8(o){switch(o){case"line":return Hi.Line;case"block":return Hi.Block;case"underline":return Hi.Underline;case"line-thin":return Hi.LineThin;case"block-outline":return Hi.BlockOutline;case"underline-thin":return Hi.UnderlineThin}}class Z8 extends Vg{constructor(){super(130)}compute(e,t,i){const n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(68)==="default"?n.push("mouse-default"):t.get(68)==="copy"&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}class Y8 extends Qe{constructor(){super(33,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Q8 extends fi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ge},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ki(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ki(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class _s extends fi{constructor(){super(47,"fontLigatures",_s.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?_s.OFF:e==="true"?_s.ON:e:Boolean(e)?_s.ON:_s.OFF}}_s.OFF='"liga" off, "calt" off';_s.ON='"liga" on, "calt" on';class X8 extends Vg{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}class J8 extends uh{constructor(){super(48,"fontSize",ts.fontSize,{type:"number",minimum:6,maximum:100,default:ts.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Ar.float(e,this.defaultValue);return t===0?ts.fontSize:Ar.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class kr extends fi{constructor(){super(49,"fontWeight",ts.fontWeight,{anyOf:[{type:"number",minimum:kr.MINIMUM_VALUE,maximum:kr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:kr.SUGGESTION_VALUES}],default:ts.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Tt.clampedInt(e,ts.fontWeight,kr.MINIMUM_VALUE,kr.MAXIMUM_VALUE))}}kr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];kr.MINIMUM_VALUE=1;kr.MAXIMUM_VALUE=1e3;class e6 extends fi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ki(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ki(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ki(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ki(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ki(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ki(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Yn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Yn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Yn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Yn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Yn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class t6 extends fi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Tt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),above:we(t.above,this.defaultValue.above)}}}class Eu extends Vg{constructor(){super(133)}compute(e,t,i){return Eu.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,v=e.viewLineCount,C=e.remainingWidth,w=e.isViewportWrapping,S=h?2:3;let k=Math.floor(s*n);const x=k/s;let y=!1,D=!1,I=S*u,O=u/s,F=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:xe,extraLinesBeyondLastLine:He,desiredRatio:Mt,minimapLineCount:yt}=Eu.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:s});if(v/yt>1)y=!0,D=!0,u=1,I=1,O=u/s;else{let me=!1,Nt=u+1;if(f==="fit"){const Fi=Math.ceil((v+He)*I);w&&a&&C<=t.stableFitRemainingWidth?(me=!0,Nt=t.stableFitMaxMinimapScale):me=Fi>k}if(f==="fill"||me){y=!0;const Fi=u;I=Math.min(l*s,Math.max(1,Math.floor(1/Mt))),w&&a&&C<=t.stableFitRemainingWidth&&(Nt=t.stableFitMaxMinimapScale),u=Math.min(Nt,Math.max(1,Math.floor(I/S))),u>Fi&&(F=Math.min(2,u/Fi)),O=u/s/F,k=Math.ceil(Math.max(xe,v+He)*I),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const z=Math.floor(g*O),j=Math.min(z,Math.max(0,Math.floor((C-b-2)*O/(c+O)))+wl);let re=Math.floor(s*j);const he=re/s;re=Math.floor(re*F);const Se=h?1:2,ye=_==="left"?0:i-j-b;return{renderMinimap:Se,minimapLeft:ye,minimapWidth:j,minimapHeightIsEditorHeight:y,minimapIsSampling:D,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:re,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(125),u=h==="inherit"?e.get(124):h,g=u==="inherit"?e.get(120):u,f=e.get(123),_=e.get(2),b=t.isDominatedByLongLines,v=e.get(52),C=e.get(62).renderType!==0,w=e.get(63),S=e.get(96),k=e.get(67),x=e.get(94),y=x.verticalScrollbarSize,D=x.verticalHasArrows,I=x.arrowSize,O=x.horizontalScrollbarSize,F=e.get(60),z=e.get(39),j=e.get(101)!=="never";let re;if(typeof F=="string"&&/^\d+(\.\d+)?ch$/.test(F)){const xo=parseFloat(F.substr(0,F.length-2));re=Tt.clampedInt(xo*a,0,0,1e3)}else re=Tt.clampedInt(F,0,0,1e3);z&&j&&(re+=16);let he=0;if(C){const xo=Math.max(r,w);he=Math.round(xo*l)}let Se=0;v&&(Se=s);let ye=0,xe=ye+Se,He=xe+he,Mt=He+re;const yt=i-Se-he-re;let ve=!1,me=!1,Nt=-1;_!==2&&(u==="inherit"&&b?(ve=!0,me=!0):g==="on"||g==="bounded"?me=!0:g==="wordWrapColumn"&&(Nt=f));const Fi=Eu._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:y,viewLineCount:d,remainingWidth:yt,isViewportWrapping:me},t.memory||new ZO);Fi.renderMinimap!==0&&Fi.minimapLeft===0&&(ye+=Fi.minimapWidth,xe+=Fi.minimapWidth,He+=Fi.minimapWidth,Mt+=Fi.minimapWidth);const In=yt-Fi.minimapWidth,ko=Math.max(1,Math.floor((In-y-2)/a)),oa=D?I:0;return me&&(Nt=Math.max(1,ko),g==="bounded"&&(Nt=Math.min(Nt,f))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:Se,lineNumbersLeft:xe,lineNumbersWidth:he,decorationsLeft:He,decorationsWidth:re,contentLeft:Mt,contentWidth:In,minimap:Fi,viewportColumn:ko,isWordWrapMinified:ve,isViewportWrapping:me,wrappingColumn:Nt,verticalScrollbarWidth:y,horizontalScrollbarHeight:O,overviewRuler:{top:oa,width:y,height:n-2*oa,right:0}}}}class i6 extends fi{constructor(){const e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}class n6 extends fi{constructor(){const e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:p("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return!e||typeof e!="object"?this.defaultValue:{stickyScroll:{enabled:we((t=e.stickyScroll)===null||t===void 0?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}}}class s6 extends fi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ki(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Tt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Yn.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class o6 extends Ar{constructor(){super(61,"lineHeight",ts.lineHeight,e=>Ar.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class r6 extends fi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(67,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),autohide:we(t.autohide,this.defaultValue.autohide),size:Ki(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Ki(t.side,this.defaultValue.side,["right","left"]),showSlider:Ki(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:we(t.renderCharacters,this.defaultValue.renderCharacters),scale:Tt.clampedInt(t.scale,1,1,3),maxColumn:Tt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function a6(o){return o==="ctrlCmd"?Ge?"metaKey":"ctrlKey":"altKey"}class l6 extends fi{constructor(){super(77,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Tt.clampedInt(t.top,0,0,1e3),bottom:Tt.clampedInt(t.bottom,0,0,1e3)}}}class c6 extends fi{constructor(){const e={enabled:!0,cycle:!1};super(78,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),cycle:we(t.cycle,this.defaultValue.cycle)}}}class d6 extends Vg{constructor(){super(131)}compute(e,t,i){return e.pixelRatio}}class h6 extends fi{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(81,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Ki(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Ki(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Ki(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class u6 extends fi{constructor(){super(62,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function q0(o){const e=o.get(89);return e==="editable"?o.get(83):e!=="on"}class g6 extends fi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(93,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Tt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Tt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function NT(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}class f6 extends fi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(94,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Tt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Tt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Tt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:NT(t.vertical,this.defaultValue.vertical),horizontal:NT(t.horizontal,this.defaultValue.horizontal),useShadows:we(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:we(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:we(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:we(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:we(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Tt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Tt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:we(t.scrollByPage,this.defaultValue.scrollByPage)}}}const gs="inUntrustedWorkspace",On={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class p6 extends fi{constructor(){const e={nonBasicASCII:gs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:gs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(115,"unicodeHighlight",e,{[On.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[On.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[On.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[On.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[On.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to unicode highlighting.")},[On.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[On.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&($s(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&($s(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new rp(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Nu(t.nonBasicASCII,gs,[!0,!1,gs]),invisibleCharacters:we(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:we(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Nu(t.includeComments,gs,[!0,!1,gs]),includeStrings:Nu(t.includeStrings,gs,[!0,!1,gs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class m6 extends fi{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(57,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),mode:Ki(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class _6 extends fi{constructor(){const e={enabled:sn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:sn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:we(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class b6 extends fi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Nu(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Nu(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:we(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:we(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Nu(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Nu(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class v6 extends fi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(108,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Ki(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:we(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:we(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:we(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:we(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:we(t.showIcons,this.defaultValue.showIcons),showStatusBar:we(t.showStatusBar,this.defaultValue.showStatusBar),preview:we(t.preview,this.defaultValue.preview),previewMode:Ki(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:we(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:we(t.showMethods,this.defaultValue.showMethods),showFunctions:we(t.showFunctions,this.defaultValue.showFunctions),showConstructors:we(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:we(t.showDeprecated,this.defaultValue.showDeprecated),showFields:we(t.showFields,this.defaultValue.showFields),showVariables:we(t.showVariables,this.defaultValue.showVariables),showClasses:we(t.showClasses,this.defaultValue.showClasses),showStructs:we(t.showStructs,this.defaultValue.showStructs),showInterfaces:we(t.showInterfaces,this.defaultValue.showInterfaces),showModules:we(t.showModules,this.defaultValue.showModules),showProperties:we(t.showProperties,this.defaultValue.showProperties),showEvents:we(t.showEvents,this.defaultValue.showEvents),showOperators:we(t.showOperators,this.defaultValue.showOperators),showUnits:we(t.showUnits,this.defaultValue.showUnits),showValues:we(t.showValues,this.defaultValue.showValues),showConstants:we(t.showConstants,this.defaultValue.showConstants),showEnums:we(t.showEnums,this.defaultValue.showEnums),showEnumMembers:we(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:we(t.showKeywords,this.defaultValue.showKeywords),showWords:we(t.showWords,this.defaultValue.showWords),showColors:we(t.showColors,this.defaultValue.showColors),showFiles:we(t.showFiles,this.defaultValue.showFiles),showReferences:we(t.showReferences,this.defaultValue.showReferences),showFolders:we(t.showFolders,this.defaultValue.showFolders),showTypeParameters:we(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:we(t.showSnippets,this.defaultValue.showSnippets),showUsers:we(t.showUsers,this.defaultValue.showUsers),showIssues:we(t.showIssues,this.defaultValue.showIssues)}}}class C6 extends fi{constructor(){super(104,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:we(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class w6 extends Vg{constructor(){super(132)}compute(e,t,i){return t.get(83)?!0:e.tabFocusMode}}function S6(o){switch(o){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class y6 extends Vg{constructor(){super(134)}compute(e,t,i){const n=t.get(133);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class L6 extends fi{constructor(){const e={enabled:!0};super(32,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}const D6="Consolas, 'Courier New', monospace",k6="Menlo, Monaco, 'Courier New', monospace",x6="'Droid Sans Mono', 'monospace', monospace",ts={fontFamily:Ge?k6:dn?x6:D6,fontWeight:"normal",fontSize:Ge?12:14,lineHeight:0,letterSpacing:0},ru=[];function te(o){return ru[o.id]=o,o}const nr={acceptSuggestionOnCommitCharacter:te(new Qe(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`; `) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:te(new vi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:te(new j8),accessibilityPageSize:te(new Tt(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:te(new Yn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:te(new vi(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:te(new vi(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:te(new vi(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:te(new vi(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:te(new ff(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],$8,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:te(new Qe(10,"automaticLayout",!1)),autoSurround:te(new vi(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:te(new _6),bracketPairGuides:te(new b6),stickyTabStops:te(new Qe(106,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:te(new Qe(14,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:te(new Yn(15,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:te(new Tt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:te(new Qe(17,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:te(new Qe(18,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:te(new K8),contextmenu:te(new Qe(20,"contextmenu",!0)),copyWithSyntaxHighlighting:te(new Qe(21,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:te(new ff(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],q8,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:te(new Qe(23,"cursorSmoothCaretAnimation",!1,{description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:te(new ff(24,"cursorStyle",Hi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],G8,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:te(new Tt(25,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:te(new vi(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:te(new Tt(27,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:te(new Qe(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:te(new Qe(29,"disableMonospaceOptimizations",!1)),domReadOnly:te(new Qe(30,"domReadOnly",!1)),dragAndDrop:te(new Qe(31,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:te(new Y8),dropIntoEditor:te(new L6),experimental:te(new n6),extraEditorClassName:te(new Yn(35,"extraEditorClassName","")),fastScrollSensitivity:te(new Ar(36,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:te(new Q8),fixedOverflowWidgets:te(new Qe(38,"fixedOverflowWidgets",!1)),folding:te(new Qe(39,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:te(new vi(40,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:te(new Qe(41,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:te(new Qe(42,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:te(new Tt(43,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:te(new Qe(44,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:te(new Yn(45,"fontFamily",ts.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:te(new X8),fontLigatures2:te(new _s),fontSize:te(new J8),fontWeight:te(new kr),formatOnPaste:te(new Qe(50,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:te(new Qe(51,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:te(new Qe(52,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:te(new e6),hideCursorInOverviewRuler:te(new Qe(54,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:te(new t6),inDiffEditor:te(new Qe(56,"inDiffEditor",!1)),letterSpacing:te(new Ar(58,"letterSpacing",ts.letterSpacing,o=>Ar.clamp(o,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:te(new i6),lineDecorationsWidth:te(new uh(60,"lineDecorationsWidth",10)),lineHeight:te(new o6),lineNumbers:te(new u6),lineNumbersMinChars:te(new Tt(63,"lineNumbersMinChars",5,1,300)),linkedEditing:te(new Qe(64,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:te(new Qe(65,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:te(new vi(66,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:te(new r6),mouseStyle:te(new vi(68,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:te(new Ar(69,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:te(new Qe(70,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:te(new Qe(71,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:te(new ff(72,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],a6,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:te(new vi(73,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:te(new Qe(74,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:te(new Qe(75,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:te(new Tt(76,"overviewRulerLanes",3,0,3)),padding:te(new l6),parameterHints:te(new c6),peekWidgetDefaultFocus:te(new vi(79,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:te(new Qe(80,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:te(new h6),quickSuggestionsDelay:te(new Tt(82,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:te(new Qe(83,"readOnly",!1)),renameOnType:te(new Qe(84,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:te(new Qe(85,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:te(new Qe(86,"renderFinalNewline",!0,{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:te(new vi(87,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:te(new Qe(88,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:te(new vi(89,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:te(new vi(90,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:te(new Tt(91,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:te(new Qe(92,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:te(new g6),scrollbar:te(new f6),scrollBeyondLastColumn:te(new Tt(95,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:te(new Qe(96,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:te(new Qe(97,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:te(new Qe(98,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:dn})),selectionHighlight:te(new Qe(99,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:te(new Qe(100,"selectOnLineNumbers",!0)),showFoldingControls:te(new vi(101,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:te(new Qe(102,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:te(new Qe(128,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:te(new s6),snippetSuggestions:te(new vi(103,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:te(new C6),smoothScrolling:te(new Qe(105,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:te(new Tt(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:te(new v6),inlineSuggest:te(new m6),suggestFontSize:te(new Tt(109,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:te(new Tt(110,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:te(new Qe(111,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:te(new vi(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:te(new vi(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:te(new Tt(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:te(new p6),unusualLineTerminators:te(new vi(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:te(new Qe(117,"useShadowDOM",!0)),useTabStops:te(new Qe(118,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:te(new Yn(119,"wordSeparators",OO,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:te(new vi(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:te(new Yn(121,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:te(new Yn(122,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:te(new Tt(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:te(new vi(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:te(new vi(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:te(new ff(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],S6,{enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:te(new vi(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:p("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:te(new Z8),pixelRatio:te(new d6),tabFocusMode:te(new w6),layoutInfo:te(new Eu),wrappingInfo:te(new y6)};class I6{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Xu.isErrorNoTelemetry(e)?new Xu(e.message+` @@ -50,7 +50,7 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config `+e.normalizeIndentation(l.afterEnter),0,g,!0)}}}return Pt._typeCommand(n,` `+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,s=i.length;nPt.shiftIndent(e,a),unshiftIndent:a=>Pt.unshiftIndent(e,a)},e.languageConfigurationService);if(r===null)return null;if(r!==e.normalizeIndentation(s)){const a=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return a===0?Pt._typeCommand(new L(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+n,!1):Pt._typeCommand(new L(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+t.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let r=0,a=i.length;r2?d.charCodeAt(c.column-2):0)===92&&u)return!1;if(e.autoClosingOvertype==="auto"){let f=!1;for(let _=0,b=n.length;_t.startsWith(l.open)),a=s.some(l=>t.startsWith(l.close));return!r&&a}static _findAutoClosingPairOpen(e,t,i,n){const s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let r=null;for(const a of s)if(r===null||a.open.length>r.open.length){let l=!0;for(const c of i)if(t.getValueInRange(new L(c.lineNumber,c.column-a.open.length+1,c.lineNumber,c.column))+n!==a.open){l=!1;break}l&&(r=a)}return r}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let s=null;for(const r of n)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!s||r.open.length>s.open.length)&&(s=r);return s}static _getAutoClosingPairClose(e,t,i,n,s){const r=Ll(n),a=r?e.autoClosingQuotes:e.autoClosingBrackets,l=r?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if(a==="never")return null;for(const f of i)if(!f.isEmpty())return null;const c=i.map(f=>{const _=f.getPosition();return s?{lineNumber:_.lineNumber,beforeColumn:_.column-n.length,afterColumn:_.column}:{lineNumber:_.lineNumber,beforeColumn:_.column,afterColumn:_.column}}),d=this._findAutoClosingPairOpen(e,t,c.map(f=>new B(f.lineNumber,f.beforeColumn)),n);if(!d)return null;const h=this._findContainedAutoClosingPair(e,d),u=h?h.close:"";let g=!0;for(const f of c){const{lineNumber:_,beforeColumn:b,afterColumn:v}=f,C=t.getLineContent(_),w=C.substring(0,b-1),S=C.substring(v-1);if(S.startsWith(u)||(g=!1),S.length>0){const D=S.charAt(0);if(!Pt._isBeforeClosingBrace(e,S)&&!l(D))return null}if(d.open.length===1&&(n==="'"||n==='"')&&a!=="always"){const D=Ys(e.wordSeparators);if(w.length>0){const I=w.charCodeAt(w.length-1);if(D.get(I)===0)return null}}if(!t.tokenization.isCheapToTokenize(_))return null;t.tokenization.forceTokenization(_);const k=t.tokenization.getLineTokens(_),x=HC(k,b-1);if(!d.shouldAutoClose(x,b-x.firstCharOffset))return null;const y=d.findNeutralCharacter();if(y){const D=t.tokenization.getTokenTypeIfInsertingCharacter(_,b,y);if(!d.isOK(D))return null}}return g?d.close.substring(0,d.close.length-u.length):d.close}static _runAutoClosingOpenCharType(e,t,i,n,s,r,a){const l=[];for(let c=0,d=n.length;cnew zi(new L(u.positionLineNumber,u.positionColumn,u.positionLineNumber,u.positionColumn+1),"",!1));return new An(4,h,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const d=this._getAutoClosingPairClose(t,i,s,l,!0);return d!==null?this._runAutoClosingOpenCharType(e,t,i,s,l,!0,d):null}static typeWithInterceptors(e,t,i,n,s,r,a){if(!e&&a===` `){const d=[];for(let h=0,u=s.length;h{const n=t.get(ct).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(t,n,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const n=document.activeElement;return n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const n=t.get(ct).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(t,n,i)):!1})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}var Ei;(function(o){class e extends ti{constructor(C){super(C),this._minimalReveal=C.minimalReveal,this._inSelectionMode=C.inSelectionMode}runCoreEditorCommand(C,w){C.model.pushStackElement(),C.setCursorStates(w.source,3,[Wi.moveTo(C,C.getPrimaryCursorState(),this._inSelectionMode,w.position,w.viewPosition)])&&C.revealPrimaryCursor(w.source,!0,this._minimalReveal)}}o.MoveTo=ee(new e({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),o.MoveToSelect=ee(new e({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class t extends ti{runCoreEditorCommand(C,w){C.model.pushStackElement();const S=this._getColumnSelectResult(C,C.getPrimaryCursorState(),C.getCursorColumnSelectData(),w);C.setCursorStates(w.source,3,S.viewStates.map(k=>$e.fromViewState(k))),C.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:S.fromLineNumber,fromViewVisualColumn:S.fromVisualColumn,toViewLineNumber:S.toLineNumber,toViewVisualColumn:S.toVisualColumn}),S.reversed?C.revealTopMostCursor(w.source):C.revealBottomMostCursor(w.source)}}o.ColumnSelect=ee(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(v,C,w,S){const k=v.model.validatePosition(S.position),x=v.coordinatesConverter.validateViewPosition(new B(S.viewPosition.lineNumber,S.viewPosition.column),k),y=S.doColumnSelect?w.fromViewLineNumber:x.lineNumber,D=S.doColumnSelect?w.fromViewVisualColumn:S.mouseColumn-1;return Xc.columnSelect(v.cursorConfig,v,y,D,x.lineNumber,S.mouseColumn-1)}}),o.CursorColumnSelectLeft=ee(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectLeft(v.cursorConfig,v,w)}}),o.CursorColumnSelectRight=ee(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectRight(v.cursorConfig,v,w)}});class i extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectUp(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectUp=ee(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3600,linux:{primary:0}}})),o.CursorColumnSelectPageUp=ee(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectDown(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectDown=ee(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3602,linux:{primary:0}}})),o.CursorColumnSelectPageDown=ee(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3596,linux:{primary:0}}}));class s extends ti{constructor(){super({id:"cursorMove",precondition:void 0,description:yv.description})}runCoreEditorCommand(C,w){const S=yv.parse(w);!S||this._runCursorMove(C,w.source,S)}_runCursorMove(C,w,S){C.model.pushStackElement(),C.setCursorStates(w,3,s._move(C,C.getCursorStates(),S)),C.revealPrimaryCursor(w,!0)}static _move(C,w,S){const k=S.select,x=S.value;switch(S.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Wi.simpleMove(C,w,S.direction,k,x,S.unit);case 11:case 13:case 12:case 14:return Wi.viewportMove(C,w,S.direction,k,x);default:return null}}}o.CursorMoveImpl=s,o.CursorMove=ee(new s);class r extends ti{constructor(C){super(C),this._staticArgs=C.args}runCoreEditorCommand(C,w){let S=this._staticArgs;this._staticArgs.value===-1&&(S={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:w.pageSize||C.cursorConfig.pageSize}),C.model.pushStackElement(),C.setCursorStates(w.source,3,Wi.simpleMove(C,C.getCursorStates(),S.direction,S.select,S.value,S.unit)),C.revealPrimaryCursor(w.source,!0)}}o.CursorLeft=ee(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),o.CursorLeftSelect=ee(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1039}})),o.CursorRight=ee(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),o.CursorRightSelect=ee(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1041}})),o.CursorUp=ee(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),o.CursorUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),o.CursorPageUp=ee(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:11}})),o.CursorPageUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1035}})),o.CursorDown=ee(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),o.CursorDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),o.CursorPageDown=ee(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:12}})),o.CursorPageDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1036}})),o.CreateCursor=ee(new class extends ti{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(v,C){let w;C.wholeLine?w=Wi.line(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition):w=Wi.moveTo(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition);const S=v.getCursorStates();if(S.length>1){const k=w.modelState?w.modelState.position:null,x=w.viewState?w.viewState.position:null;for(let y=0,D=S.length;yx&&(k=x);const y=new L(k,1,k,v.model.getLineMaxColumn(k));let D=0;if(w.at)switch(w.at){case Cu.RawAtArgument.Top:D=3;break;case Cu.RawAtArgument.Center:D=1;break;case Cu.RawAtArgument.Bottom:D=4;break}const I=v.coordinatesConverter.convertModelRangeToViewRange(y);v.revealRange(C.source,!1,I,D,0)}}),o.SelectAll=new class extends pD{constructor(){super(JH)}runDOMCommand(){Ls&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(v,C,w){const S=C._getViewModel();!S||this.runCoreEditorCommand(S,w)}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates("keyboard",3,[Wi.selectAll(v,v.getPrimaryCursorState())])}},o.SetSelection=ee(new class extends ti{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates(C.source,3,[$e.fromModelSelection(C.selection)])}})})(Ei||(Ei={}));const lj=se.and(N.textInputFocus,N.columnSelection);function Gg(o,e){as.registerKeybindingRule({id:o,primary:e,when:lj,weight:rt+1})}Gg(Ei.CursorColumnSelectLeft.id,1039);Gg(Ei.CursorColumnSelectRight.id,1041);Gg(Ei.CursorColumnSelectUp.id,1040);Gg(Ei.CursorColumnSelectPageUp.id,1035);Gg(Ei.CursorColumnSelectDown.id,1042);Gg(Ei.CursorColumnSelectPageDown.id,1036);function G2(o){return o.register(),o}var Wu;(function(o){class e extends xi{runEditorCommand(i,n,s){const r=n._getViewModel();!r||this.runCoreEditingCommand(n,r,s||{})}}o.CoreEditingCommand=e,o.LineBreakInsert=ee(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:N.writable,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection)))}}),o.Outdent=ee(new class extends e{constructor(){super({id:"outdent",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.outdent(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.Tab=ee(new class extends e{constructor(){super({id:"tab",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.tab(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.DeleteLeft=ee(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),o.DeleteRight=ee(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),o.Undo=new class extends pD{constructor(){super(w4)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().undo()}},o.Redo=new class extends pD{constructor(){super(S4)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().redo()}}})(Wu||(Wu={}));class Z2 extends c1{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(ct).getFocusedCodeEditor();!i||i.trigger("keyboard",this._handlerId,t)}}function _h(o,e){G2(new Z2("default:"+o,o)),G2(new Z2(o,o,e))}_h("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});_h("replacePreviousChar");_h("compositionType");_h("compositionStart");_h("compositionEnd");_h("paste");_h("cut");class cj{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ei.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ei.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ei.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ei.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ei.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ei.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ei.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ei.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ei.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ei.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ei.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ei.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ei.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ei.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class w1{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;(t=this.onKeyDown)===null||t===void 0||t.call(this,e)}emitKeyUp(e){var t;(t=this.onKeyUp)===null||t===void 0||t.call(this,e)}emitContextMenu(e){var t;(t=this.onContextMenu)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;(t=this.onMouseMove)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;(t=this.onMouseLeave)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;(t=this.onMouseDown)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;(t=this.onMouseUp)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;(t=this.onMouseDrag)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;(t=this.onMouseDrop)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;(e=this.onMouseDropCanceled)===null||e===void 0||e.call(this)}emitMouseWheel(e){var t;(t=this.onMouseWheel)===null||t===void 0||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return w1.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),i}}var gS;class Q4{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let s=0,r=0;for(let l=i;l<=n;l++){const c=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(s=c,r=1):r++)}if(e=n&&a<=s&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s)return this._lines.splice(e-this._rendLineNumberStart,s-e+1);const r=[];for(let h=0;hi)continue;const l=Math.max(t,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let d=l;d<=c;d++){const h=d-this._rendLineNumberStart;this._lines[h].onTokensChanged(),n=!0}}return n}}class X4{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Q4(()=>this._host.createVisibleLine())}_createDomNode(){const e=Je(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(133)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const r=t,a=Math.min(i,s.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(s,r,a,n,t),s.linesLength+=a-r+1)}else if(s.rendLineNumberStart0&&(this._removeLinesBefore(s,r),s.linesLength-=r)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1i){const r=Math.max(0,i-s.rendLineNumberStart+1),l=s.linesLength-1-r+1;l>0&&(this._removeLinesAfter(s,l),s.linesLength-=l)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const c=r+l;a[l].layoutLine(c,n[c-s])}}_insertLinesBefore(e,t,i,n,s){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];n[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Ta._ttPolicy&&(t=Ta._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;so});Ta._sb=nc(1e5);class J4 extends Is{constructor(e){super(e),this._visibleLines=new X4(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,n=t.length;i'),n.appendASCIIString(s),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class hj extends J4{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class uj extends J4{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),an(this.domNode,t.get(46))}onConfigurationChanged(e){const t=this._context.configuration.options;an(this.domNode,t.get(46));const i=t.get(133);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class yf{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class gj extends Is{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Je(document.createElement("div")),qr.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Je(document.createElement("div")),qr.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new fj(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n){this._widgets[e.getId()].setPosition(t,i,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t];delete this._widgets[t];const n=i.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class fj{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=Je(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,s=n.get(133);this._fixedOverflowWidgets=n.get(38),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this._lineHeight=n.get(61),this._range=null,this._viewRange=null,this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(61),e.hasChanged(133)){const i=t.get(133);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range,this._affinity)}_setPosition(e,t){var i;if(this._range=e,this._viewRange=null,this._affinity=t,this._range){const n=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(n,(i=this._affinity)!==null&&i!==void 0?i:void 0))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t,i){this._setPosition(e,i),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n,s){const r=e.top,a=r,l=t.top+this._lineHeight,c=s.viewportHeight-l,d=r-n,h=a>=n,u=l,g=c>=n;let f=e.left,_=t.left;return f+i>s.scrollLeft+s.viewportWidth&&(f=s.scrollLeft+s.viewportWidth-i),_+i>s.scrollLeft+s.viewportWidth&&(_=s.scrollLeft+s.viewportWidth-i),fr){const l=a-(r-n);a-=l,i-=l}if(a=b,w=d+n<=h.height-v;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,b),aboveLeft:g,fitsBelow:w,belowTop:d,belowLeft:_}:{fitsAbove:C,aboveTop:r,aboveLeft:u,fitsBelow:w,belowTop:a,belowLeft:f}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new yf(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];let i=t[0],n=t[0];for(const h of t)h.lineNumbern.lineNumber&&(n=h);let s=1073741824;for(const h of i.ranges)h.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,this._renderData.position)}}function fS(o,e,...t){try{return o.call(e,...t)}catch{return null}}class eF extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new oe(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map(n=>n.positionLineNumber);t.sort((n,s)=>n-s),Ss(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every(n=>n.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(133);return this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._cursorLineNumbers.length;let r=0;const a=[];for(let l=i;l<=n;l++){const c=l-i;for(;r=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class pj extends eF{_renderOne(e){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class mj extends eF{_renderOne(e){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}Et((o,e)=>{const t=o.getColor(W4);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||o.defines(j2)){const i=o.getColor(j2);i&&(e.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),cn(o.type)&&(e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});class _j extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,c=t.length;l{if(l.options.zIndexc.options.zIndex)return 1;const d=l.options.className,h=c.options.className;return dh?1:L.compareRangesUsingStarts(l.range,c.range)});const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=s;l<=r;l++){const c=l-s;a[c]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let a=0,l=t.length;a',h=Math.max(c.range.startLineNumber,s),u=Math.min(c.range.endLineNumber,r);for(let g=h;g<=u;g++){const f=g-s;i[f]+=d}}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber;let r=null,a=!1,l=null;for(let c=0,d=t.length;c';a[u]+=b}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class yo extends H{onclick(e,t){this._register(G(e,ae.CLICK,i=>t(new Mr(i))))}onmousedown(e,t){this._register(G(e,ae.MOUSE_DOWN,i=>t(new Mr(i))))}onmouseover(e,t){this._register(G(e,ae.MOUSE_OVER,i=>t(new Mr(i))))}onmouseleave(e,t){this._register(G(e,ae.MOUSE_LEAVE,i=>t(new Mr(i))))}onkeydown(e,t){this._register(G(e,ae.KEY_DOWN,i=>t(new Rt(i))))}onkeyup(e,t){this._register(G(e,ae.KEY_UP,i=>t(new Rt(i))))}oninput(e,t){this._register(G(e,ae.INPUT,t))}onblur(e,t){this._register(G(e,ae.BLUR,t))}onfocus(e,t){this._register(G(e,ae.FOCUS,t))}ignoreGesture(e){ft.ignoreTarget(e)}}const ug=11;class bj extends yo{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=ug+"px",this.domNode.style.height=ug+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new jg),this._register(ki(this.bgDomNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(ki(this.domNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new r_),this._pointerdownScheduleRepeatTimer=this._register(new xs)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class vj extends H{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new xs)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)===null||e===void 0||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)===null||t===void 0||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}const Cj=140;class tF extends yo{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new vj(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new jg),this._shouldRender=!0,this.domNode=Je(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(G(this.domNode.domNode,ae.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){const t=this._register(new bj(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=Je(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(G(this.slider.domNode,ae.POINTER_DOWN,s=>{s.button===0&&(s.preventDefault(),this._sliderPointerDown(s))})),this.onclick(this.slider.domNode,s=>{s.leftButton&&s.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=n?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,i=e.offsetY;else{const s=on(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,s=>{const r=this._sliderOrthogonalPointerPosition(s),a=Math.abs(r-i);if(Yi&&a>Cj){this._setDesiredScrollPositionNow(n.getScrollPosition());return}const c=this._sliderPointerPosition(s)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(c))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const wj=20;class nm{constructor(e,t,i,n,s,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new nm(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(wj,Math.floor(i*a/n))),d=(a-c)/(n-i),h=s*d;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:d,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=nm._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new sg(null,1,0))}),this._createArrow({className:"scra",icon:m.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new sg(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class yj extends tF{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new nm(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-ug)/2,a=(t.verticalScrollbarSize-ug)/2;this._createArrow({className:"scra",icon:m.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(null,0,1))}),this._createArrow({className:"scra",icon:m.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class Dv{constructor(e,t,i,n,s,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,n=n|0,s=s|0,r=r|0,a=a|0),this.rawScrollLeft=n,this.rawScrollTop=a,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),a+s>r&&(a=r-s),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=r,this.scrollTop=a}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new Dv(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new Dv(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:s,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class f_ extends H{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Dv(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),(i=this._smoothScrolling)===null||i===void 0||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;t?n=new sm(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=sm.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class Y2{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function pS(o,e){const t=e-o;return function(i){return o+t*kj(i)}}function Lj(o,e,t){return function(i){return i2.5*i){let s,r;return e0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}mD.INSTANCE=new mD;class fE extends yo{constructor(e,t,i){super(),this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new R),e.style.overflow="hidden",this._options=Ej(t),this._scrollable=i,this._register(this._scrollable.onScroll(s=>{this._onWillScroll.fire(s),this._onDidScroll(s),this._onScroll.fire(s)}));const n={onMouseWheel:s=>this._onMouseWheel(s),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new yj(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new Sj(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Je(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Je(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Je(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,s=>this._onMouseOver(s)),this.onmouseleave(this._listenOnDomNode,s=>this._onMouseLeave(s)),this._hideTimeout=this._register(new xs),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=nt(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,Ge&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=nt(this._mouseWheelToDispose),e)){const i=n=>{this._onMouseWheel(new sg(n))};this._mouseWheelToDispose.push(G(this._listenOnDomNode,ae.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){const t=mD.INSTANCE;{const s=window.devicePixelRatio/_P();Yi||dn?t.accept(Date.now(),e.deltaX/s,e.deltaY/s):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(s)>=Math.abs(r)?r=0:s=0),this._options.flipAxes&&([s,r]=[r,s]);const a=!Ge&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!r&&(r=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(r=r*this._options.fastScrollSensitivity,s=s*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(s){const d=Q2*s,h=l.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(c,h)}if(r){const d=Q2*r,h=l.scrollLeft-(d<0?Math.floor(d):Math.ceil(d));this._horizontalScrollbar.writeScrollPosition(c,h)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(!!this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",s=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${s}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),xj)}}class iF extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class pE extends fE{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class p_ extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i),this._element=e,this.onScroll(n=>{n.scrollTopChanged&&(this._element.scrollTop=n.scrollTop),n.scrollLeftChanged&&(this._element.scrollLeft=n.scrollLeft)}),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function Ej(o){const e={lazyRender:typeof o.lazyRender<"u"?o.lazyRender:!1,className:typeof o.className<"u"?o.className:"",useShadows:typeof o.useShadows<"u"?o.useShadows:!0,handleMouseWheel:typeof o.handleMouseWheel<"u"?o.handleMouseWheel:!0,flipAxes:typeof o.flipAxes<"u"?o.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof o.consumeMouseWheelIfScrollbarIsNeeded<"u"?o.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof o.alwaysConsumeMouseWheel<"u"?o.alwaysConsumeMouseWheel:!1,scrollYToX:typeof o.scrollYToX<"u"?o.scrollYToX:!1,mouseWheelScrollSensitivity:typeof o.mouseWheelScrollSensitivity<"u"?o.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof o.fastScrollSensitivity<"u"?o.fastScrollSensitivity:5,scrollPredominantAxis:typeof o.scrollPredominantAxis<"u"?o.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof o.mouseWheelSmoothScroll<"u"?o.mouseWheelSmoothScroll:!0,arrowSize:typeof o.arrowSize<"u"?o.arrowSize:11,listenOnDomNode:typeof o.listenOnDomNode<"u"?o.listenOnDomNode:null,horizontal:typeof o.horizontal<"u"?o.horizontal:1,horizontalScrollbarSize:typeof o.horizontalScrollbarSize<"u"?o.horizontalScrollbarSize:10,horizontalSliderSize:typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:0,horizontalHasArrows:typeof o.horizontalHasArrows<"u"?o.horizontalHasArrows:!1,vertical:typeof o.vertical<"u"?o.vertical:1,verticalScrollbarSize:typeof o.verticalScrollbarSize<"u"?o.verticalScrollbarSize:10,verticalHasArrows:typeof o.verticalHasArrows<"u"?o.verticalHasArrows:!1,verticalSliderSize:typeof o.verticalSliderSize<"u"?o.verticalSliderSize:0,scrollByPage:typeof o.scrollByPage<"u"?o.scrollByPage:!1};return e.horizontalSliderSize=typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof o.verticalSliderSize<"u"?o.verticalSliderSize:e.verticalScrollbarSize,Ge&&(e.className+=" mac"),e}class Nj extends Is{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,r=s.get(94),a=s.get(69),l=s.get(36),c=s.get(97),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+fv(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new pE(t.domNode,d,this._context.viewLayout.getScrollable())),qr.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Je(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const h=(u,g,f)=>{const _={};if(g){const b=u.scrollTop;b&&(_.scrollTop=this._context.viewLayout.getCurrentScrollTop()+b,u.scrollTop=0)}if(f){const b=u.scrollLeft;b&&(_.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+b,u.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(_,1)};this._register(G(i.domNode,"scroll",u=>h(i.domNode,!0,!0))),this._register(G(t.domNode,"scroll",u=>h(t.domNode,!0,!1))),this._register(G(n.domNode,"scroll",u=>h(n.domNode,!0,!1))),this._register(G(this.scrollbarDomNode.domNode,"scroll",u=>h(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(67).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}onConfigurationChanged(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){const t=this._context.configuration.options,i=t.get(94),n=t.get(69),s=t.get(36),r=t.get(97),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:s,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+fv(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(` +`);else{a--;const l=t.getLineMaxColumn(a);n[s]=this._enter(e,t,!1,new L(a,l,a,l))}}return n}static lineInsertAfter(e,t,i){if(t===null||i===null)return[];const n=[];for(let s=0,r=i.length;s{const n=t.get(ct).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(t,n,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const n=document.activeElement;return n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const n=t.get(ct).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(t,n,i)):!1})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}var Ei;(function(o){class e extends ti{constructor(C){super(C),this._minimalReveal=C.minimalReveal,this._inSelectionMode=C.inSelectionMode}runCoreEditorCommand(C,w){C.model.pushStackElement(),C.setCursorStates(w.source,3,[Wi.moveTo(C,C.getPrimaryCursorState(),this._inSelectionMode,w.position,w.viewPosition)])&&C.revealPrimaryCursor(w.source,!0,this._minimalReveal)}}o.MoveTo=ee(new e({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),o.MoveToSelect=ee(new e({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class t extends ti{runCoreEditorCommand(C,w){C.model.pushStackElement();const S=this._getColumnSelectResult(C,C.getPrimaryCursorState(),C.getCursorColumnSelectData(),w);C.setCursorStates(w.source,3,S.viewStates.map(k=>$e.fromViewState(k))),C.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:S.fromLineNumber,fromViewVisualColumn:S.fromVisualColumn,toViewLineNumber:S.toLineNumber,toViewVisualColumn:S.toVisualColumn}),S.reversed?C.revealTopMostCursor(w.source):C.revealBottomMostCursor(w.source)}}o.ColumnSelect=ee(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(v,C,w,S){const k=v.model.validatePosition(S.position),x=v.coordinatesConverter.validateViewPosition(new B(S.viewPosition.lineNumber,S.viewPosition.column),k),y=S.doColumnSelect?w.fromViewLineNumber:x.lineNumber,D=S.doColumnSelect?w.fromViewVisualColumn:S.mouseColumn-1;return Xc.columnSelect(v.cursorConfig,v,y,D,x.lineNumber,S.mouseColumn-1)}}),o.CursorColumnSelectLeft=ee(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectLeft(v.cursorConfig,v,w)}}),o.CursorColumnSelectRight=ee(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectRight(v.cursorConfig,v,w)}});class i extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectUp(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectUp=ee(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3600,linux:{primary:0}}})),o.CursorColumnSelectPageUp=ee(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectDown(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectDown=ee(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3602,linux:{primary:0}}})),o.CursorColumnSelectPageDown=ee(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3596,linux:{primary:0}}}));class s extends ti{constructor(){super({id:"cursorMove",precondition:void 0,description:yv.description})}runCoreEditorCommand(C,w){const S=yv.parse(w);!S||this._runCursorMove(C,w.source,S)}_runCursorMove(C,w,S){C.model.pushStackElement(),C.setCursorStates(w,3,s._move(C,C.getCursorStates(),S)),C.revealPrimaryCursor(w,!0)}static _move(C,w,S){const k=S.select,x=S.value;switch(S.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Wi.simpleMove(C,w,S.direction,k,x,S.unit);case 11:case 13:case 12:case 14:return Wi.viewportMove(C,w,S.direction,k,x);default:return null}}}o.CursorMoveImpl=s,o.CursorMove=ee(new s);class r extends ti{constructor(C){super(C),this._staticArgs=C.args}runCoreEditorCommand(C,w){let S=this._staticArgs;this._staticArgs.value===-1&&(S={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:w.pageSize||C.cursorConfig.pageSize}),C.model.pushStackElement(),C.setCursorStates(w.source,3,Wi.simpleMove(C,C.getCursorStates(),S.direction,S.select,S.value,S.unit)),C.revealPrimaryCursor(w.source,!0)}}o.CursorLeft=ee(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),o.CursorLeftSelect=ee(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1039}})),o.CursorRight=ee(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),o.CursorRightSelect=ee(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1041}})),o.CursorUp=ee(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),o.CursorUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),o.CursorPageUp=ee(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:11}})),o.CursorPageUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1035}})),o.CursorDown=ee(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),o.CursorDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),o.CursorPageDown=ee(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:12}})),o.CursorPageDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1036}})),o.CreateCursor=ee(new class extends ti{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(v,C){let w;C.wholeLine?w=Wi.line(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition):w=Wi.moveTo(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition);const S=v.getCursorStates();if(S.length>1){const k=w.modelState?w.modelState.position:null,x=w.viewState?w.viewState.position:null;for(let y=0,D=S.length;yx&&(k=x);const y=new L(k,1,k,v.model.getLineMaxColumn(k));let D=0;if(w.at)switch(w.at){case Cu.RawAtArgument.Top:D=3;break;case Cu.RawAtArgument.Center:D=1;break;case Cu.RawAtArgument.Bottom:D=4;break}const I=v.coordinatesConverter.convertModelRangeToViewRange(y);v.revealRange(C.source,!1,I,D,0)}}),o.SelectAll=new class extends pD{constructor(){super(JH)}runDOMCommand(){Ls&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(v,C,w){const S=C._getViewModel();!S||this.runCoreEditorCommand(S,w)}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates("keyboard",3,[Wi.selectAll(v,v.getPrimaryCursorState())])}},o.SetSelection=ee(new class extends ti{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates(C.source,3,[$e.fromModelSelection(C.selection)])}})})(Ei||(Ei={}));const lj=se.and(N.textInputFocus,N.columnSelection);function Gg(o,e){as.registerKeybindingRule({id:o,primary:e,when:lj,weight:rt+1})}Gg(Ei.CursorColumnSelectLeft.id,1039);Gg(Ei.CursorColumnSelectRight.id,1041);Gg(Ei.CursorColumnSelectUp.id,1040);Gg(Ei.CursorColumnSelectPageUp.id,1035);Gg(Ei.CursorColumnSelectDown.id,1042);Gg(Ei.CursorColumnSelectPageDown.id,1036);function G2(o){return o.register(),o}var Wu;(function(o){class e extends xi{runEditorCommand(i,n,s){const r=n._getViewModel();!r||this.runCoreEditingCommand(n,r,s||{})}}o.CoreEditingCommand=e,o.LineBreakInsert=ee(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:N.writable,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection)))}}),o.Outdent=ee(new class extends e{constructor(){super({id:"outdent",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.outdent(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.Tab=ee(new class extends e{constructor(){super({id:"tab",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.tab(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.DeleteLeft=ee(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),o.DeleteRight=ee(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),o.Undo=new class extends pD{constructor(){super(w4)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().undo()}},o.Redo=new class extends pD{constructor(){super(S4)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().redo()}}})(Wu||(Wu={}));class Z2 extends c1{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(ct).getFocusedCodeEditor();!i||i.trigger("keyboard",this._handlerId,t)}}function _h(o,e){G2(new Z2("default:"+o,o)),G2(new Z2(o,o,e))}_h("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});_h("replacePreviousChar");_h("compositionType");_h("compositionStart");_h("compositionEnd");_h("paste");_h("cut");class cj{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ei.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ei.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ei.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ei.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ei.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ei.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ei.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ei.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ei.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ei.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ei.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ei.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ei.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ei.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class w1{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;(t=this.onKeyDown)===null||t===void 0||t.call(this,e)}emitKeyUp(e){var t;(t=this.onKeyUp)===null||t===void 0||t.call(this,e)}emitContextMenu(e){var t;(t=this.onContextMenu)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;(t=this.onMouseMove)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;(t=this.onMouseLeave)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;(t=this.onMouseDown)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;(t=this.onMouseUp)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;(t=this.onMouseDrag)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;(t=this.onMouseDrop)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;(e=this.onMouseDropCanceled)===null||e===void 0||e.call(this)}emitMouseWheel(e){var t;(t=this.onMouseWheel)===null||t===void 0||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return w1.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),i}}var gS;class Q4{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let s=0,r=0;for(let l=i;l<=n;l++){const c=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(s=c,r=1):r++)}if(e=n&&a<=s&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s)return this._lines.splice(e-this._rendLineNumberStart,s-e+1);const r=[];for(let h=0;hi)continue;const l=Math.max(t,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let d=l;d<=c;d++){const h=d-this._rendLineNumberStart;this._lines[h].onTokensChanged(),n=!0}}return n}}class X4{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Q4(()=>this._host.createVisibleLine())}_createDomNode(){const e=Je(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(133)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const r=t,a=Math.min(i,s.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(s,r,a,n,t),s.linesLength+=a-r+1)}else if(s.rendLineNumberStart0&&(this._removeLinesBefore(s,r),s.linesLength-=r)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1i){const r=Math.max(0,i-s.rendLineNumberStart+1),l=s.linesLength-1-r+1;l>0&&(this._removeLinesAfter(s,l),s.linesLength-=l)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const c=r+l;a[l].layoutLine(c,n[c-s])}}_insertLinesBefore(e,t,i,n,s){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];n[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Ta._ttPolicy&&(t=Ta._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;so});Ta._sb=nc(1e5);class J4 extends Is{constructor(e){super(e),this._visibleLines=new X4(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,n=t.length;i'),n.appendASCIIString(s),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class hj extends J4{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class uj extends J4{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),an(this.domNode,t.get(46))}onConfigurationChanged(e){const t=this._context.configuration.options;an(this.domNode,t.get(46));const i=t.get(133);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class yf{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class gj extends Is{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Je(document.createElement("div")),qr.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Je(document.createElement("div")),qr.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new fj(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n){this._widgets[e.getId()].setPosition(t,i,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t];delete this._widgets[t];const n=i.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class fj{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=Je(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,s=n.get(133);this._fixedOverflowWidgets=n.get(38),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this._lineHeight=n.get(61),this._range=null,this._viewRange=null,this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(61),e.hasChanged(133)){const i=t.get(133);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range,this._affinity)}_setPosition(e,t){var i;if(this._range=e,this._viewRange=null,this._affinity=t,this._range){const n=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(n,(i=this._affinity)!==null&&i!==void 0?i:void 0))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t,i){this._setPosition(e,i),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n,s){const r=e.top,a=r,l=t.top+this._lineHeight,c=s.viewportHeight-l,d=r-n,h=a>=n,u=l,g=c>=n;let f=e.left,_=t.left;return f+i>s.scrollLeft+s.viewportWidth&&(f=s.scrollLeft+s.viewportWidth-i),_+i>s.scrollLeft+s.viewportWidth&&(_=s.scrollLeft+s.viewportWidth-i),fr){const l=a-(r-n);a-=l,i-=l}if(a=b,w=d+n<=h.height-v;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,b),aboveLeft:g,fitsBelow:w,belowTop:d,belowLeft:_}:{fitsAbove:C,aboveTop:r,aboveLeft:u,fitsBelow:w,belowTop:a,belowLeft:f}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new yf(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];let i=t[0],n=t[0];for(const h of t)h.lineNumbern.lineNumber&&(n=h);let s=1073741824;for(const h of i.ranges)h.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,this._renderData.position)}}function fS(o,e,...t){try{return o.call(e,...t)}catch{return null}}class e5 extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new oe(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map(n=>n.positionLineNumber);t.sort((n,s)=>n-s),Ss(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every(n=>n.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(133);return this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._cursorLineNumbers.length;let r=0;const a=[];for(let l=i;l<=n;l++){const c=l-i;for(;r=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class pj extends e5{_renderOne(e){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class mj extends e5{_renderOne(e){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}Et((o,e)=>{const t=o.getColor(W4);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||o.defines(j2)){const i=o.getColor(j2);i&&(e.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),cn(o.type)&&(e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});class _j extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,c=t.length;l{if(l.options.zIndexc.options.zIndex)return 1;const d=l.options.className,h=c.options.className;return dh?1:L.compareRangesUsingStarts(l.range,c.range)});const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=s;l<=r;l++){const c=l-s;a[c]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let a=0,l=t.length;a',h=Math.max(c.range.startLineNumber,s),u=Math.min(c.range.endLineNumber,r);for(let g=h;g<=u;g++){const f=g-s;i[f]+=d}}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber;let r=null,a=!1,l=null;for(let c=0,d=t.length;c';a[u]+=b}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class yo extends H{onclick(e,t){this._register(G(e,ae.CLICK,i=>t(new Mr(i))))}onmousedown(e,t){this._register(G(e,ae.MOUSE_DOWN,i=>t(new Mr(i))))}onmouseover(e,t){this._register(G(e,ae.MOUSE_OVER,i=>t(new Mr(i))))}onmouseleave(e,t){this._register(G(e,ae.MOUSE_LEAVE,i=>t(new Mr(i))))}onkeydown(e,t){this._register(G(e,ae.KEY_DOWN,i=>t(new Rt(i))))}onkeyup(e,t){this._register(G(e,ae.KEY_UP,i=>t(new Rt(i))))}oninput(e,t){this._register(G(e,ae.INPUT,t))}onblur(e,t){this._register(G(e,ae.BLUR,t))}onfocus(e,t){this._register(G(e,ae.FOCUS,t))}ignoreGesture(e){ft.ignoreTarget(e)}}const ug=11;class bj extends yo{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=ug+"px",this.domNode.style.height=ug+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new jg),this._register(ki(this.bgDomNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(ki(this.domNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new r_),this._pointerdownScheduleRepeatTimer=this._register(new xs)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class vj extends H{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new xs)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)===null||e===void 0||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)===null||t===void 0||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}const Cj=140;class t5 extends yo{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new vj(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new jg),this._shouldRender=!0,this.domNode=Je(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(G(this.domNode.domNode,ae.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){const t=this._register(new bj(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=Je(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(G(this.slider.domNode,ae.POINTER_DOWN,s=>{s.button===0&&(s.preventDefault(),this._sliderPointerDown(s))})),this.onclick(this.slider.domNode,s=>{s.leftButton&&s.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=n?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,i=e.offsetY;else{const s=on(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,s=>{const r=this._sliderOrthogonalPointerPosition(s),a=Math.abs(r-i);if(Yi&&a>Cj){this._setDesiredScrollPositionNow(n.getScrollPosition());return}const c=this._sliderPointerPosition(s)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(c))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const wj=20;class nm{constructor(e,t,i,n,s,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new nm(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(wj,Math.floor(i*a/n))),d=(a-c)/(n-i),h=s*d;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:d,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=nm._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new sg(null,1,0))}),this._createArrow({className:"scra",icon:m.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new sg(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class yj extends t5{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new nm(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-ug)/2,a=(t.verticalScrollbarSize-ug)/2;this._createArrow({className:"scra",icon:m.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(null,0,1))}),this._createArrow({className:"scra",icon:m.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class Dv{constructor(e,t,i,n,s,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,n=n|0,s=s|0,r=r|0,a=a|0),this.rawScrollLeft=n,this.rawScrollTop=a,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),a+s>r&&(a=r-s),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=r,this.scrollTop=a}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new Dv(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new Dv(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:s,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class f_ extends H{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Dv(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),(i=this._smoothScrolling)===null||i===void 0||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;t?n=new sm(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=sm.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class Y2{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function pS(o,e){const t=e-o;return function(i){return o+t*kj(i)}}function Lj(o,e,t){return function(i){return i2.5*i){let s,r;return e0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}mD.INSTANCE=new mD;class fE extends yo{constructor(e,t,i){super(),this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new R),e.style.overflow="hidden",this._options=Ej(t),this._scrollable=i,this._register(this._scrollable.onScroll(s=>{this._onWillScroll.fire(s),this._onDidScroll(s),this._onScroll.fire(s)}));const n={onMouseWheel:s=>this._onMouseWheel(s),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new yj(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new Sj(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Je(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Je(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Je(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,s=>this._onMouseOver(s)),this.onmouseleave(this._listenOnDomNode,s=>this._onMouseLeave(s)),this._hideTimeout=this._register(new xs),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=nt(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,Ge&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=nt(this._mouseWheelToDispose),e)){const i=n=>{this._onMouseWheel(new sg(n))};this._mouseWheelToDispose.push(G(this._listenOnDomNode,ae.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){const t=mD.INSTANCE;{const s=window.devicePixelRatio/_P();Yi||dn?t.accept(Date.now(),e.deltaX/s,e.deltaY/s):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(s)>=Math.abs(r)?r=0:s=0),this._options.flipAxes&&([s,r]=[r,s]);const a=!Ge&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!r&&(r=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(r=r*this._options.fastScrollSensitivity,s=s*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(s){const d=Q2*s,h=l.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(c,h)}if(r){const d=Q2*r,h=l.scrollLeft-(d<0?Math.floor(d):Math.ceil(d));this._horizontalScrollbar.writeScrollPosition(c,h)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(!!this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",s=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${s}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),xj)}}class i5 extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class pE extends fE{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class p_ extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i),this._element=e,this.onScroll(n=>{n.scrollTopChanged&&(this._element.scrollTop=n.scrollTop),n.scrollLeftChanged&&(this._element.scrollLeft=n.scrollLeft)}),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function Ej(o){const e={lazyRender:typeof o.lazyRender<"u"?o.lazyRender:!1,className:typeof o.className<"u"?o.className:"",useShadows:typeof o.useShadows<"u"?o.useShadows:!0,handleMouseWheel:typeof o.handleMouseWheel<"u"?o.handleMouseWheel:!0,flipAxes:typeof o.flipAxes<"u"?o.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof o.consumeMouseWheelIfScrollbarIsNeeded<"u"?o.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof o.alwaysConsumeMouseWheel<"u"?o.alwaysConsumeMouseWheel:!1,scrollYToX:typeof o.scrollYToX<"u"?o.scrollYToX:!1,mouseWheelScrollSensitivity:typeof o.mouseWheelScrollSensitivity<"u"?o.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof o.fastScrollSensitivity<"u"?o.fastScrollSensitivity:5,scrollPredominantAxis:typeof o.scrollPredominantAxis<"u"?o.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof o.mouseWheelSmoothScroll<"u"?o.mouseWheelSmoothScroll:!0,arrowSize:typeof o.arrowSize<"u"?o.arrowSize:11,listenOnDomNode:typeof o.listenOnDomNode<"u"?o.listenOnDomNode:null,horizontal:typeof o.horizontal<"u"?o.horizontal:1,horizontalScrollbarSize:typeof o.horizontalScrollbarSize<"u"?o.horizontalScrollbarSize:10,horizontalSliderSize:typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:0,horizontalHasArrows:typeof o.horizontalHasArrows<"u"?o.horizontalHasArrows:!1,vertical:typeof o.vertical<"u"?o.vertical:1,verticalScrollbarSize:typeof o.verticalScrollbarSize<"u"?o.verticalScrollbarSize:10,verticalHasArrows:typeof o.verticalHasArrows<"u"?o.verticalHasArrows:!1,verticalSliderSize:typeof o.verticalSliderSize<"u"?o.verticalSliderSize:0,scrollByPage:typeof o.scrollByPage<"u"?o.scrollByPage:!1};return e.horizontalSliderSize=typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof o.verticalSliderSize<"u"?o.verticalSliderSize:e.verticalScrollbarSize,Ge&&(e.className+=" mac"),e}class Nj extends Is{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,r=s.get(94),a=s.get(69),l=s.get(36),c=s.get(97),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+fv(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new pE(t.domNode,d,this._context.viewLayout.getScrollable())),qr.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Je(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const h=(u,g,f)=>{const _={};if(g){const b=u.scrollTop;b&&(_.scrollTop=this._context.viewLayout.getCurrentScrollTop()+b,u.scrollTop=0)}if(f){const b=u.scrollLeft;b&&(_.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+b,u.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(_,1)};this._register(G(i.domNode,"scroll",u=>h(i.domNode,!0,!0))),this._register(G(t.domNode,"scroll",u=>h(t.domNode,!0,!1))),this._register(G(n.domNode,"scroll",u=>h(n.domNode,!0,!1))),this._register(G(this.scrollbarDomNode.domNode,"scroll",u=>h(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(67).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}onConfigurationChanged(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){const t=this._context.configuration.options,i=t.get(94),n=t.get(69),s=t.get(36),r=t.get(97),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:s,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+fv(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(` .monaco-scrollable-element > .shadow.top { box-shadow: ${t} 0 6px 6px -6px inset; } @@ -74,18 +74,18 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config .monaco-scrollable-element > .scrollbar > .slider.active { background: ${s}; } - `)});class kv{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class mE extends qg{_render(e,t,i){const n=[];for(let a=e;a<=t;a++){const l=a-e;n[l]=[]}if(i.length===0)return n;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.className',c=[];for(let d=t;d<=i;d++){const h=d-t,u=n[h];u.length===0?c[h]="":c[h]='
=this._renderResult.length?"":this._renderResult[i]}}class nF extends H{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function S1(o,e){let t=0,i=0;const n=o.length;for(;in)throw new Error("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide);let a=-2,l=-1,c=-2,d=-1;const h=y=>{if(a!==-1&&(a===-2||a>y-1)){a=-1,l=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){a=D,l=I;break}}}if(c===-2){c=-1,d=-1;for(let D=y;D=0){c=D,d=I;break}}}};let u=-2,g=-1,f=-2,_=-1;const b=y=>{if(u===-2){u=-1,g=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){u=D,g=I;break}}}if(f!==-1&&(f===-2||f=0){f=D,_=I;break}}}};let v=0,C=!0,w=0,S=!0,k=0,x=0;for(let y=0;C||S;y++){const D=e-y,I=e+y;y>1&&(D<1||D1&&(I>n||I>i)&&(S=!1),y>5e4&&(C=!1,S=!1);let O=-1;if(C&&D>=1){const z=this._computeIndentLevel(D-1);z>=0?(c=D-1,d=z,O=Math.ceil(z/this.textModel.getOptions().indentSize)):(h(D),O=this._getIndentLevelForWhitespaceLine(r,l,d))}let F=-1;if(S&&I<=n){const z=this._computeIndentLevel(I-1);z>=0?(u=I-1,g=z,F=Math.ceil(z/this.textModel.getOptions().indentSize)):(b(I),F=this._getIndentLevelForWhitespaceLine(r,g,_))}if(y===0){x=O;continue}if(y===1){if(I<=n&&F>=0&&x+1===F){C=!1,v=I,w=I,k=F;continue}if(D>=1&&O>=0&&O-1===x){S=!1,v=D,w=D,k=O;continue}if(v=e,w=e,k=x,k===0)return{startLineNumber:v,endLineNumber:w,indent:k}}C&&(O>=k?v=D:C=!1),S&&(F>=k?w=I:S=!1)}return{startLineNumber:v,endLineNumber:w,indent:k}}getLinesBracketGuides(e,t,i,n){var s;const r=[];for(let u=e;u<=t;u++)r.push([]);const a=!0,l=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new L(e,1,t,this.textModel.getLineMaxColumn(t)));let c;if(i&&l.length>0){const u=(e<=i.lineNumber&&i.lineNumber<=t?l:this.textModel.bracketPairs.getBracketPairsInRange(L.fromPositions(i))).filter(g=>L.strictContainsPosition(g.range,i));c=(s=j0(u,g=>a))===null||s===void 0?void 0:s.range}const d=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new sF;for(const u of l){if(!u.closingBracketRange)continue;const g=c&&u.range.equalsRange(c);if(!g&&!n.includeInactive)continue;const f=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,d)+(n.highlightActive&&g?" "+h.activeClassName:""),_=u.openingBracketRange.getStartPosition(),b=u.closingBracketRange.getStartPosition(),v=n.horizontalGuides===bd.Enabled||n.horizontalGuides===bd.EnabledForActive&&g;if(u.range.startLineNumber===u.range.endLineNumber){v&&r[u.range.startLineNumber-e].push(new hd(-1,u.openingBracketRange.getEndPosition().column,f,new up(!1,b.column),-1,-1));continue}const C=this.getVisibleColumnFromPosition(b),w=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),S=Math.min(w,C,u.minVisibleColumnIndentation+1);let k=!1;kn(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))=e&&w>S&&r[_.lineNumber-e].push(new hd(S,-1,f,new up(!1,_.column),-1,-1)),b.lineNumber<=t&&C>S&&r[b.lineNumber-e].push(new hd(S,-1,f,new up(!k,b.column),-1,-1)))}for(const u of r)u.sort((g,f)=>g.visibleColumn-f.visibleColumn);return r}getVisibleColumnFromPosition(e){return Ci.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide),a=new Array(t-e+1);let l=-2,c=-1,d=-2,h=-1;for(let u=e;u<=t;u++){const g=u-e,f=this._computeIndentLevel(u-1);if(f>=0){l=u-1,c=f,a[g]=Math.ceil(f/n.indentSize);continue}if(l===-2){l=-1,c=-1;for(let _=u-2;_>=0;_--){const b=this._computeIndentLevel(_);if(b>=0){l=_,c=b;break}}}if(d!==-1&&(d===-2||d=0){d=_,h=b;break}}}a[g]=this._getIndentLevelForWhitespaceLine(r,c,h)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&w>this._maxIndentLeft)break;const S=C.horizontalLine?C.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",k=C.horizontalLine?((s=(n=e.visibleRangeForPosition(new B(g,C.horizontalLine.endColumn)))===null||n===void 0?void 0:n.left)!==null&&s!==void 0?s:w+this._spaceWidth)-w:this._spaceWidth;b+=`
`}u[f]=b}this._renderResult=u}getGuidesByLine(e,t,i){const n=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?bd.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?bd.EnabledForActive:bd.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&i){const h=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=h.startLineNumber,a=h.endLineNumber,l=h.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),d=[];for(let h=e;h<=t;h++){const u=new Array;d.push(u);const g=n?n[h-e]:[],f=new Rp(g),_=s?s[h-e]:[];for(let b=1;b<=_;b++){const v=(b-1)*c+1,C=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||g.length===0)&&r<=h&&h<=a&&b===l;u.push(...f.takeWhile(S=>S.visibleColumn!0)||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function ub(o){if(!(o&&o.isTransparent()))return o}Et((o,e)=>{const t=o.getColor(u_);t&&e.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${t} inset; }`);const i=o.getColor(g_)||t;i&&e.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=[{bracketColor:U4,guideColor:A$,guideColorActive:B$},{bracketColor:$4,guideColor:M$,guideColorActive:W$},{bracketColor:j4,guideColor:R$,guideColorActive:V$},{bracketColor:K4,guideColor:O$,guideColorActive:H$},{bracketColor:q4,guideColor:P$,guideColorActive:z$},{bracketColor:G4,guideColor:F$,guideColorActive:U$}],s=new sF,r=n.map(a=>{var l,c;const d=o.getColor(a.bracketColor),h=o.getColor(a.guideColor),u=o.getColor(a.guideColorActive),g=ub((l=ub(h))!==null&&l!==void 0?l:d==null?void 0:d.transparent(.3)),f=ub((c=ub(u))!==null&&c!==void 0?c:d);if(!(!g||!f))return{guideColor:g,guideColorActive:f}}).filter(B8);if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}});class Rj{constructor(){this._currentVisibleRange=new L(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Oj{constructor(e,t,i,n,s,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Pj{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,c=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new mt(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Rj,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Ir(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(134)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(46),n=t.get(134),s=t.get(133);return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(91),this._horizontalScrollbarHeight=s.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),an(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(133)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new z2(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Oj(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Pj(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const n=this._getLineNumberFor(i);if(n===-1||n<1||n>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(n)===1)return new B(n,1);const s=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(nr)return null;let a=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const l=this._context.viewModel.getLineMinColumn(n);return ai?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=L.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let r=0;const a=new H2(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new B(n.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(hd)continue;const u=h===n.startLineNumber?n.startColumn:1,g=h===n.endLineNumber?n.endColumn:this._context.viewModel.getLineMaxColumn(h),f=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,u,g,a);if(!!f){if(t&&hthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new H2(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new ZU(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){s=!1;continue}n=Math.max(n,a.getWidth())}return s&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const r=this._visibleLines.getVisibleLine(s);if(r.needsMonospaceFontCheck()){const a=r.getWidth();a>t&&(t=a,e=s)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const n=this._computeScrollLeftToReveal(i);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),dn&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)if(this._visibleLines.getVisibleLine(s).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let _=s[0].startLineNumber,b=s[0].endLineNumber;for(let v=1,C=s.length;vl){if(!d)return-1;f=h}else if(r===5||r===6)if(r===6&&a<=h&&u<=c)f=a;else{const _=Math.max(5*this._lineHeight,l*.2),b=h-_,v=u-l;f=Math.max(v,b)}else if(r===1||r===2)if(r===2&&a<=h&&u<=c)f=a;else{const _=(h+u)/2;f=Math.max(0,_-l/2)}else f=this._computeMinimumScrolling(a,c,h,u,r===3,r===4);return f}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let s=1073741824,r=0;if(e.type==="range"){const l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;for(const c of l.ranges)s=Math.min(s,Math.round(c.left)),r=Math.max(r,Math.round(c.left+c.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;const c=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!c)return null;for(const d of c.ranges)s=Math.min(s,Math.round(d.left)),r=Math.max(r,Math.round(d.left+d.width))}return e.minimalReveal||(s=Math.max(0,s-y1.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),e.type==="selections"&&r-s>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,s,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,s,r){e=e|0,t=t|0,i=i|0,n=n|0,s=!!s,r=!!r;const a=t-e;if(n-it)return Math.max(0,n-a)}else return i;return e}}y1.HORIZONTAL_EXTRA_PX=30;class Fj extends mE{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(133);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let s=0,r=t.length;s
',l=[];for(let c=t;c<=i;c++){const d=c-t,h=n[d];let u="";for(let g=0,f=h.length;g';s[a]=c}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Us{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Us._clamp(e),this.g=Us._clamp(t),this.b=Us._clamp(i),this.a=Us._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}Us.Empty=new Us(0,0,0,0);class m_ extends H{constructor(){super(),this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Wt.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=new m_),this._INSTANCE}_updateColorMap(){const e=Wt.getColorMap();if(!e){this._colors=[Us.Empty],this._backgroundIsLight=!0;return}this._colors=[Us.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}m_._INSTANCE=null;const Wj=(()=>{const o=[];for(let e=32;e<=126;e++)o.push(e);return o.push(65533),o})(),Vj=(o,e)=>(o-=32,o<0||o>96?e<=2?(o+96)%96:96-1:o);class om{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=om.soften(e,12/15),this.charDataLight=om.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;ne.width||i+f>e.height){console.warn("bad render request outside image data");return}const _=d?this.charDataLight:this.charDataNormal,b=Vj(n,c),v=e.width*4,C=a.r,w=a.g,S=a.b,k=s.r-C,x=s.g-w,y=s.b-S,D=Math.max(r,l),I=e.data;let O=b*u*g,F=i*v+t*4;for(let z=0;ze.width||i+h>e.height){console.warn("bad render request outside image data");return}const u=e.width*4,g=.5*(s/255),f=r.r,_=r.g,b=r.b,v=n.r-f,C=n.g-_,w=n.b-b,S=f+v*g,k=_+C*g,x=b+w*g,y=Math.max(s,a),D=e.data;let I=i*u+t*4;for(let O=0;O{const e=new Uint8ClampedArray(o.length/2);for(let t=0;t>1]=X2[o[t]]<<4|X2[o[t+1]]&15;return e},eA={1:Xa(()=>J2("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Xa(()=>J2("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class gp{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return eA[e]?i=new om(eA[e](),e):i=gp.createFromSampleData(gp.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=`${16}px`,t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold ${16}px ${e}`,i.textBaseline="middle";let n=0;for(const s of Wj)i.fillText(String.fromCharCode(s),n,16/2),n+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=gp._downsample(e,t);return new om(n,t)}static _downsampleChar(e,t,i,n,s){const r=1*s,a=2*s;let l=n,c=0;for(let d=0;d0){const c=255/l;for(let d=0;dgp.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=rm._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=rm._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(EU);return i?new Us(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(NU);return t?Us._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class fp{constructor(e,t,i,n,s,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,s,r,a,l,c,d,h){const u=e.pixelRatio,g=e.minimapLineHeight,f=Math.floor(e.canvasInnerHeight/g),_=e.lineHeight;if(e.minimapHeightIsEditorHeight){const k=l*e.lineHeight+(e.scrollBeyondLastLine?s-e.lineHeight:0),x=Math.max(1,Math.floor(s*s/k)),y=Math.max(0,e.minimapHeight-x),D=y/(d-s),I=c*D,O=y>0,F=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new fp(c,d,O,D,I,x,1,Math.min(a,F))}let b;if(r&&i!==a){const k=i-t+1;b=Math.floor(k*g/u)}else{const k=s/_;b=Math.floor(k*g/u)}let v;e.scrollBeyondLastLine?v=(a-1)*g/u:v=Math.max(0,a*g/u-b),v=Math.min(e.minimapHeight-b,v);const C=v/(d-s),w=c*C;let S=0;if(e.scrollBeyondLastLine&&(S=s/_-1),f>=a+S){const x=a,y=v>0;return new fp(c,d,y,C,w,b,1,x)}else{let k=Math.max(1,Math.floor(t-w*u/g));h&&h.scrollHeight===d&&(h.scrollTop>c&&(k=Math.min(k,h.startLineNumber)),h.scrollTopxv.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let n=0,s=i.length;n1){for(let S=0,k=a-1;S0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=am.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,r=t-e+1;s{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.button===0&&this._lastRenderData){const c=on(this._slider.domNode),d=c.top+c.height/2;this._startSliderDragging(i,d,this._lastRenderData.renderedLayout)}return}const s=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.offsetY;let l=Math.floor(r/s)+this._lastRenderData.renderedLayout.startLineNumber;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderPointerMoveMonitor=new jg,this._sliderPointerDownListener=ki(this._slider.domNode,ae.POINTER_DOWN,i=>{i.preventDefault(),i.stopPropagation(),i.button===0&&this._lastRenderData&&this._startSliderDragging(i,i.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=ft.addTarget(this._domNode.domNode),this._sliderTouchStartListener=G(this._domNode.domNode,xt.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=G(this._domNode.domNode,xt.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=ki(this._domNode.domNode,xt.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(r,a)=>{const l=Math.abs(a-n);if(Yi&&l>Hj){this._model.setScrollTop(i.scrollTop);return}const c=r-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(c))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>s(r.pageY,r.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return this._model.options.showSlider==="always"?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new _E(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(B2),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=fp.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(L.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((u,g)=>(u.options.zIndex||0)-(g.options.zIndex||0));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,n,s);const d=new iA(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,d,e,r),this._renderDecorationsLineHighlights(c,i,d,e,r);const h=new iA(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,l,a,n),this._renderDecorationsHighlights(c,i,h,e,r,l,a,n)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const c=Math.max(n.startLineNumber,l.startLineNumber),d=Math.min(n.endLineNumber,l.endLineNumber);if(c>d)continue;for(let g=c;g<=d;g++)i.set(g,!0);const h=(c-n.startLineNumber)*s,u=(d-n.startLineNumber)*s+s;a>=h||(a>r&&e.fillRect(wl,r,e.canvas.width,a-r),r=h),a=u}a>r&&e.fillRect(wl,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,n,s){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],c=l.options.minimap;if(!c||c.position!==js.Inline)continue;const d=Math.max(n.startLineNumber,l.range.startLineNumber),h=Math.min(n.endLineNumber,l.range.endLineNumber);if(d>h)continue;const u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let f=d;f<=h;f++){if(i.has(f))continue;i.set(f,!0);const _=(d-n.startLineNumber)*s;e.fillRect(wl,_,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const c of t){const d=Math.max(n.startLineNumber,c.startLineNumber),h=Math.min(n.endLineNumber,c.endLineNumber);if(!(d>h))for(let u=d;u<=h;u++)this.renderDecorationOnLine(e,i,c,this._selectionColor,n,u,s,s,r,a,l)}}_renderDecorationsHighlights(e,t,i,n,s,r,a,l){for(const c of t){const d=c.options.minimap;if(!d)continue;const h=Math.max(n.startLineNumber,c.range.startLineNumber),u=Math.min(n.endLineNumber,c.range.endLineNumber);if(h>u)continue;const g=d.getColor(this._theme.value);if(!(!g||g.isTransparent()))for(let f=h;f<=u;f++)switch(d.position){case js.Inline:this.renderDecorationOnLine(e,i,c.range,g,n,f,s,s,r,a,l);continue;case js.Gutter:{const _=(f-n.startLineNumber)*s,b=2;this.renderDecoration(e,g,b,_,zj,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,r,a,l,c,d,h){const u=(r-s.startLineNumber)*l;if(u+a<0||u>this._model.options.canvasInnerHeight)return;const{startLineNumber:g,endLineNumber:f}=i,_=g===r?i.startColumn:1,b=f===r?i.endColumn:this._model.getLineMaxColumn(r),v=this.getXOffsetForPosition(t,r,_,c,d,h),C=this.getXOffsetForPosition(t,r,b,c,d,h);this.renderDecoration(e,n,v,u,C-v,a)}getXOffsetForPosition(e,t,i,n,s,r){if(i===1)return wl;if((i-1)*s>=r)return r;let l=e.get(t);if(!l){const c=this._model.getLineContent(t);l=[wl];let d=wl;for(let h=1;h=r){l[h]=r;break}l[h]=f,d=f}e.set(t,l)}return i-1k?Math.floor((n-k)/2):0,y=u.a/255,D=new Us(Math.round((u.r-h.r)*y+h.r),Math.round((u.g-h.g)*y+h.g),Math.round((u.b-h.b)*y+h.b),255);let I=0;const O=[];for(let he=0,Se=i-t+1;he=0&&OC)return;const z=b.charCodeAt(k);if(z===9){const j=u-(k+x)%u;x+=j-1,S+=j*r}else if(z===32)S+=r;else{const j=ic(z)?2:1;for(let re=0;reC)return}}}}}class iA{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}Et((o,e)=>{const t=o.getColor(TU);t&&e.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${t}; }`);const i=o.getColor(AU);i&&e.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`);const n=o.getColor(MU);n&&e.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${n}; }`);const s=o.getColor(Kg);s&&e.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)});class $j extends Is{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._domNode=Je(document.createElement("div")),qr.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=Je(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?!1:(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(e.preference===null){t.setTop("");return}if(e.preference===0)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){const i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i=3){const s=Math.floor(n/3),r=Math.floor(n/3),a=n-s-r,l=e,c=l+s,d=l+s+a;return[[0,l,c,l,d,l,c,l],[0,s,a,s+a,r,s+a+r,a+r,s+a+r]]}else if(i===2){const s=Math.floor(n/2),r=n-s,a=e,l=a+s;return[[0,a,a,a,l,a,a,a],[0,s,s,s,r,s+r,s+r,s+r]]}else{const s=e,r=n;return[[0,s,s,s,s,s,s,s],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Kj extends Is{constructor(e){super(e),this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Wt.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new jj(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(F=t-c),D=F-c,I=F+c}D>C+1||k!==b?(w!==0&&d.fillRect(h[b],v,u[b],C-v),b=k,v=D,C=I):I>C&&(C=I)}d.fillRect(h[b],v,u[b],C-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){const g=2*this._settings.pixelRatio|0,f=g/2|0,_=this._settings.x[7],b=this._settings.w[7];d.fillStyle=this._settings.cursorColor;let v=-100,C=-100;for(let w=0,S=this._cursorPositions.length;wt&&(x=t-f);const y=x-f,D=y+g;y>C+1?(w!==0&&d.fillRect(_,v,b,C-v),v=y,C=D):D>C&&(C=D)}d.fillRect(_,v,b,C-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,t),d.stroke(),d.moveTo(0,0),d.lineTo(e,0),d.stroke())}}class nA{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class lm{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(_=i-b);const v=d.color;let C=this._color2Id[v];C||(C=++this._lastAssignedId,this._color2Id[v]=C,this._id2Color[C]=v);const w=new nA(_-b,_+b,C);d.setColorZone(w),a.push(w)}return this._colorZonesInvalid=!1,a.sort(nA.compare),a}}class Gj extends h_{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new qj(n=>this._context.viewLayout.getVerticalOffsetForLineNumber(n)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,r=0,a=0;for(const l of t){const c=l.colorId,d=l.from,h=l.to;c!==s?(e.fillRect(0,r,n,a-r),s=c,e.fillStyle=i[s],r=d,a=h):a>=d?a=Math.max(a,h):(e.fillRect(0,r,n,a-r),r=d,a=h)}e.fillRect(0,r,n,a-r)}}class Zj extends Is{constructor(e){super(e),this.domNode=Je(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=Je(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(s),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const t=o.getColor(_$);t&&e.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${t} inset; }`)});class Yj extends Is{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const i=this._context.configuration.options.get(94);this._useShadows=i.useShadows,this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(133);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(94);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${t} 0 6px 6px -6px inset; }`)});class Qj{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Xj{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Jj(o){return new Qj(o)}function eK(o){return new Xj(o.lineNumber,o.ranges.map(Jj))}class Zt extends qg{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let c=0;!s&&c=0;c--)i[c].lineNumber===l&&(r=i[c].ranges[0]);s&&!s.startStyle&&(s=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const f=t[a-1].ranges[0].left,_=t[a-1].ranges[0].left+t[a-1].ranges[0].width;gb(d-f)f&&(u.top=1),gb(h-_)'}_actualRenderOneSelection(e,t,i,n){if(n.length===0)return;const s=!!n[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=n[0].lineNumber,c=n[n.length-1].lineNumber;for(let d=0,h=n.length;d1,c)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Zt.SELECTION_CLASS_NAME="selected-text";Zt.SELECTION_TOP_LEFT="top-left-radius";Zt.SELECTION_BOTTOM_LEFT="bottom-left-radius";Zt.SELECTION_TOP_RIGHT="top-right-radius";Zt.SELECTION_BOTTOM_RIGHT="bottom-right-radius";Zt.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";Zt.ROUNDED_PIECE_WIDTH=10;Et((o,e)=>{const t=o.getColor(Wa);t&&e.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const i=o.getColor(sE);i&&e.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const n=o.getColor(Tz);n&&!n.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${n}; }`)});function gb(o){return o<0?-o:o}class sA{constructor(e,t,i,n,s,r){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=s,this.textContentClassName=r}}class oA{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(46);this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Je(document.createElement("div")),this._domNode.setClassName(`cursor ${_d}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),an(this._domNode,i),this._domNode.setDisplay("none"),this._position=new B(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(46);return this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),an(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=pB(i,t-1);return[new B(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="";const[i,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===Hi.Line||this._cursorStyle===Hi.LineThin){const u=e.visibleRangeForPosition(i);if(!u||u.outsideRenderedLine)return null;let g;this._cursorStyle===Hi.Line?(g=k2(this._lineCursorWidth>0?this._lineCursorWidth:2),g>2&&(t=n)):g=k2(1);let f=u.left;g>=2&&f>=1&&(f-=1);const _=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new sA(_,f,g,this._lineHeight,t,"")}const s=e.linesVisibleRangesForRange(new L(i.lineNumber,i.column,i.lineNumber,i.column+n.length),!1);if(!s||s.length===0)return null;const r=s[0];if(r.outsideRenderedLine||r.ranges.length===0)return null;const a=r.ranges[0],l=n===" "?this._typicalHalfwidthCharacterWidth:a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===Hi.Block){const u=this._context.viewModel.getViewLineData(i.lineNumber);t=n;const g=u.tokens.findTokenIndexAtOffset(i.column-1);c=u.tokens.getClassName(g)}let d=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,h=this._lineHeight;return(this._cursorStyle===Hi.Underline||this._cursorStyle===Hi.UnderlineThin)&&(d+=this._lineHeight-2,h=2),new sA(d,a.left,l,h,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${_d} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class cm extends Is{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new oA(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new xs,this._cursorFlatBlinkInterval=new r_,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const i=this._secondaryCursors.length-t.length;for(let n=0;n{for(let n=0,s=e.ranges.length;n{this._isVisible?this._hide():this._show()},cm.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},cm.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case Hi.Line:e+=" cursor-line-style";break;case Hi.Block:e+=" cursor-block-style";break;case Hi.Underline:e+=" cursor-underline-style";break;case Hi.LineThin:e+=" cursor-line-thin-style";break;case Hi.BlockOutline:e+=" cursor-block-outline-style";break;case Hi.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=o.getColor(V4);if(t){let i=o.getColor(p$);i||(i=t.opposite()),e.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),e.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${i}; }`),cn(o.type)&&e.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const mS=()=>{throw new Error("Invalid change accessor")};class tK extends Is{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=Je(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Je(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace(n=>{const s=Object.keys(this._zones);for(let r=0,a=s.length;r{const n={addZone:s=>(t=!0,this._addZone(i,s)),removeZone:s=>{!s||(t=this._removeZone(i,s)||t)},layoutZone:s=>{!s||(t=this._layoutZone(i,s)||t)}};iK(e,n),n.addZone=mS,n.removeZone=mS,n.layoutZone=mS}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:Je(t.domNode),marginDomNode:t.marginDomNode?Je(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){Te(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){Te(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,n=!0);const s=Object.keys(this._zones);for(let r=0,a=s.length;r{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new t$(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new B(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(133);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(130)+" "+fv(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=n4(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){lK(()=>this._actualRender())}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!jI(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new oK(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new qU(this._context.viewLayout,i,this._viewLines);for(const s of e)s.prepareRender(n);for(const s of e)s.render(n),s.onDidRender()}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new B(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?w1.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new Gj(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i;let n=e.position&&e.position.range||null;if(n===null){const r=e.position?e.position.position:null;r!==null&&(n=new L(r.lineNumber,r.column,r.lineNumber,r.column))}const s=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,n,s,(i=(t=e.position)===null||t===void 0?void 0:t.positionAffinity)!==null&&i!==void 0?i:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function lK(o){try{return o()}catch(e){Te(e)}}class Ev{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Vi(new L(1,1,1,1),0,new B(1,1),0),new Vi(new L(1,1,1,1),0,new B(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){!this._trackSelection||(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new $e(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return oe.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,n,i,r),l=this._validatePositionWithCache(e,s,n,a);return i.equals(r)&&n.equals(a)&&s.equals(l)?t:new Vi(L.fromPositions(a,l),t.selectionStartLeftoverVisibleColumns+n.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=Ev._validateViewState(e.viewModel,i)),t){const n=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new Vi(n,s,r,a)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new Vi(n,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new Vi(n,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new L(n.lineNumber,n.column,s.lineNumber,s.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new Vi(r,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class rA{constructor(e){this.context=e,this.cursors=[new Ev(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return P8(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getBottomMostViewPosition(){return UO(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates($e.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const n=t-i;for(let s=0;s=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ii.selection,L.compareRangesUsingStarts));for(let i=0;ih&&_.index--;e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),i--}}}}class aA{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class cK{constructor(){this.changeType=1}}class er{constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new er(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new er(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,n)=>i.lineNumber===n.lineNumber?i.column===n.column?i.order-n.order:i.column-n.column:i.lineNumber-n.lineNumber),t}}class lA{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class dK{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class hK{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class uK{constructor(){this.changeType=5}}class Vu{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class DK{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class bE{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new bE(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class vE{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new vE(this.oldHasFocus,e.hasFocus)}}class CE{constructor(e,t,i,n,s,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new CE(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class kK{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class xK{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Nv{constructor(e,t,i,n,s,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,n=t.length;if(i!==n)return!1;for(let s=0;s0){const e=this._cursors.getSelections();for(let t=0;tgg.MAX_CURSOR_COUNT&&(n=n.slice(0,gg.MAX_CURSOR_COUNT),s=!0);const r=pp.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n,s,r){const a=this._cursors.getViewPositions();let l=null,c=null;a.length>1?c=this._cursors.getViewSelections():l=L.fromPositions(a[0],a[0]),e.emitViewEvent(new C0(t,i,l,c,n,s,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const s=$e.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,s)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const s=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,$e.fromModelSelections(s))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,$e.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const r=pp.from(this._model,this);if(r.equals(n))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new mK(l,a)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((c,d)=>!c.modelState.equals(n.cursorState[d].modelState))){const c=n?n.cursorState.map(h=>h.modelState.selection):null,d=n?n.modelVersionId:0;e.emitOutgoingEvent(new Nv(c,a,d,r.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const r=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const c=l[0].open,d=s.text.length-r[2].length-1,h=s.text.lastIndexOf(c,d-1);if(h===-1)return null;t.push([h,d])}return t}executeEdits(e,t,i,n){let s=null;t==="snippet"&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,c=>{if(s)for(let h=0,u=s.length;h0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const s=pp.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){Te(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return cA.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new mp(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{t==="keyboard"&&this._executeEditOperation(Pt.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const n=t.length;let s=0;for(;s{const c=l.getPosition();return new oe(c.lineNumber,c.column+s,c.lineNumber,c.column+s)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(Pt.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))},e,r)}paste(e,t,i,n,s){this._executeEdit(()=>{this._executeEditOperation(Pt.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,s,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(Vd.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new An(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new An(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}gg.MAX_CURSOR_COUNT=1e4;class pp{constructor(e,t){this.modelVersionId=e,this.cursorState=t}static from(e,t){return new pp(e.getVersionId(),t.getCursorStates())}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class OK{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let r=0,a=n.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,c=>{const d=[];for(let g=0;gg.identifier.minor-f.identifier.minor,u=[];for(let g=0;g0?(d[g].sort(h),u[g]=t[g].computeCursorState(e.model,{getInverseEditOperations:()=>d[g],getTrackedSelection:f=>{const _=parseInt(f,10),b=e.model._getTrackedRange(e.trackedRanges[_]);return e.trackedRangesDirection[_]===0?new oe(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new oe(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}})):u[g]=e.selectionsBefore[g];return u});a||(a=e.selectionsBefore);const l=[];for(const c in s)s.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((c,d)=>d-c);for(const c of l)a.splice(c,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{L.isEmpty(h)&&u===""||n.push({identifier:{major:t,minor:s++},range:h,text:u,forceMoveMarkers:g,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const d={addEditOperation:r,addTrackedEditOperation:(h,u,g)=>{a=!0,r(h,u,g)},trackSelection:(h,u)=>{const g=oe.liftSelection(h);let f;if(g.isEmpty())if(typeof u=="boolean")u?f=2:f=3;else{const v=e.model.getLineMaxColumn(g.startLineNumber);g.startColumn===v?f=2:f=3}else f=1;const _=e.trackedRanges.length,b=e.model._setTrackedRange(null,g,f);return e.trackedRanges[_]=b,e.trackedRangesDirection[_]=g.getDirection(),_.toString()}};try{i.getEditOperations(e.model,d)}catch(h){return Te(h),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,n)=>-L.compareRangesUsingEnds(i.range,n.range));const t={};for(let i=1;is.identifier.major?r=n.identifier.major:r=s.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class PK{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class mp{constructor(e,t){this._original=mp._capture(e,t)}static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new PK(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}deduceOutcome(e,t){if(!this._original)return null;const i=mp._capture(e,t);if(!i||this._original.length!==i.length)return null;const n=[];for(let s=0,r=this._original.length;s=e}function Ph(o){return ii(o.lineNumber-1,o.column-1)}function ja(o,e){const t=o,i=Math.floor(t/ws),n=t-i*ws,s=e,r=Math.floor(s/ws),a=s-r*ws;return new L(i+1,n+1,r+1,a+1)}function UK(o){const e=jr(o);return ii(e.length-1,e[e.length-1].length)}class dA{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class $K{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(i=>wE.from(i))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return zK(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Zl(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(n===0){const r=1<0;)t=t.getChild(i-1);return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const n=WK(e,t,this.lineIdx,this.lineCharOffset);return new Tl(n,0,-1,ui.getEmpty(),new eu(n))}}class YK{constructor(e,t){this.text=e,this._offset=mo,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+`| + `)});class kv{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class mE extends qg{_render(e,t,i){const n=[];for(let a=e;a<=t;a++){const l=a-e;n[l]=[]}if(i.length===0)return n;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.className',c=[];for(let d=t;d<=i;d++){const h=d-t,u=n[h];u.length===0?c[h]="":c[h]='
=this._renderResult.length?"":this._renderResult[i]}}class n5 extends H{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function S1(o,e){let t=0,i=0;const n=o.length;for(;in)throw new Error("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide);let a=-2,l=-1,c=-2,d=-1;const h=y=>{if(a!==-1&&(a===-2||a>y-1)){a=-1,l=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){a=D,l=I;break}}}if(c===-2){c=-1,d=-1;for(let D=y;D=0){c=D,d=I;break}}}};let u=-2,g=-1,f=-2,_=-1;const b=y=>{if(u===-2){u=-1,g=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){u=D,g=I;break}}}if(f!==-1&&(f===-2||f=0){f=D,_=I;break}}}};let v=0,C=!0,w=0,S=!0,k=0,x=0;for(let y=0;C||S;y++){const D=e-y,I=e+y;y>1&&(D<1||D1&&(I>n||I>i)&&(S=!1),y>5e4&&(C=!1,S=!1);let O=-1;if(C&&D>=1){const z=this._computeIndentLevel(D-1);z>=0?(c=D-1,d=z,O=Math.ceil(z/this.textModel.getOptions().indentSize)):(h(D),O=this._getIndentLevelForWhitespaceLine(r,l,d))}let F=-1;if(S&&I<=n){const z=this._computeIndentLevel(I-1);z>=0?(u=I-1,g=z,F=Math.ceil(z/this.textModel.getOptions().indentSize)):(b(I),F=this._getIndentLevelForWhitespaceLine(r,g,_))}if(y===0){x=O;continue}if(y===1){if(I<=n&&F>=0&&x+1===F){C=!1,v=I,w=I,k=F;continue}if(D>=1&&O>=0&&O-1===x){S=!1,v=D,w=D,k=O;continue}if(v=e,w=e,k=x,k===0)return{startLineNumber:v,endLineNumber:w,indent:k}}C&&(O>=k?v=D:C=!1),S&&(F>=k?w=I:S=!1)}return{startLineNumber:v,endLineNumber:w,indent:k}}getLinesBracketGuides(e,t,i,n){var s;const r=[];for(let u=e;u<=t;u++)r.push([]);const a=!0,l=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new L(e,1,t,this.textModel.getLineMaxColumn(t)));let c;if(i&&l.length>0){const u=(e<=i.lineNumber&&i.lineNumber<=t?l:this.textModel.bracketPairs.getBracketPairsInRange(L.fromPositions(i))).filter(g=>L.strictContainsPosition(g.range,i));c=(s=j0(u,g=>a))===null||s===void 0?void 0:s.range}const d=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new s5;for(const u of l){if(!u.closingBracketRange)continue;const g=c&&u.range.equalsRange(c);if(!g&&!n.includeInactive)continue;const f=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,d)+(n.highlightActive&&g?" "+h.activeClassName:""),_=u.openingBracketRange.getStartPosition(),b=u.closingBracketRange.getStartPosition(),v=n.horizontalGuides===bd.Enabled||n.horizontalGuides===bd.EnabledForActive&&g;if(u.range.startLineNumber===u.range.endLineNumber){v&&r[u.range.startLineNumber-e].push(new hd(-1,u.openingBracketRange.getEndPosition().column,f,new up(!1,b.column),-1,-1));continue}const C=this.getVisibleColumnFromPosition(b),w=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),S=Math.min(w,C,u.minVisibleColumnIndentation+1);let k=!1;kn(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))=e&&w>S&&r[_.lineNumber-e].push(new hd(S,-1,f,new up(!1,_.column),-1,-1)),b.lineNumber<=t&&C>S&&r[b.lineNumber-e].push(new hd(S,-1,f,new up(!k,b.column),-1,-1)))}for(const u of r)u.sort((g,f)=>g.visibleColumn-f.visibleColumn);return r}getVisibleColumnFromPosition(e){return Ci.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide),a=new Array(t-e+1);let l=-2,c=-1,d=-2,h=-1;for(let u=e;u<=t;u++){const g=u-e,f=this._computeIndentLevel(u-1);if(f>=0){l=u-1,c=f,a[g]=Math.ceil(f/n.indentSize);continue}if(l===-2){l=-1,c=-1;for(let _=u-2;_>=0;_--){const b=this._computeIndentLevel(_);if(b>=0){l=_,c=b;break}}}if(d!==-1&&(d===-2||d=0){d=_,h=b;break}}}a[g]=this._getIndentLevelForWhitespaceLine(r,c,h)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&w>this._maxIndentLeft)break;const S=C.horizontalLine?C.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",k=C.horizontalLine?((s=(n=e.visibleRangeForPosition(new B(g,C.horizontalLine.endColumn)))===null||n===void 0?void 0:n.left)!==null&&s!==void 0?s:w+this._spaceWidth)-w:this._spaceWidth;b+=`
`}u[f]=b}this._renderResult=u}getGuidesByLine(e,t,i){const n=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?bd.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?bd.EnabledForActive:bd.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&i){const h=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=h.startLineNumber,a=h.endLineNumber,l=h.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),d=[];for(let h=e;h<=t;h++){const u=new Array;d.push(u);const g=n?n[h-e]:[],f=new Rp(g),_=s?s[h-e]:[];for(let b=1;b<=_;b++){const v=(b-1)*c+1,C=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||g.length===0)&&r<=h&&h<=a&&b===l;u.push(...f.takeWhile(S=>S.visibleColumn!0)||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function ub(o){if(!(o&&o.isTransparent()))return o}Et((o,e)=>{const t=o.getColor(u_);t&&e.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${t} inset; }`);const i=o.getColor(g_)||t;i&&e.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=[{bracketColor:U4,guideColor:A$,guideColorActive:B$},{bracketColor:$4,guideColor:M$,guideColorActive:W$},{bracketColor:j4,guideColor:R$,guideColorActive:V$},{bracketColor:K4,guideColor:O$,guideColorActive:H$},{bracketColor:q4,guideColor:P$,guideColorActive:z$},{bracketColor:G4,guideColor:F$,guideColorActive:U$}],s=new s5,r=n.map(a=>{var l,c;const d=o.getColor(a.bracketColor),h=o.getColor(a.guideColor),u=o.getColor(a.guideColorActive),g=ub((l=ub(h))!==null&&l!==void 0?l:d==null?void 0:d.transparent(.3)),f=ub((c=ub(u))!==null&&c!==void 0?c:d);if(!(!g||!f))return{guideColor:g,guideColorActive:f}}).filter(B8);if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}});class Rj{constructor(){this._currentVisibleRange=new L(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Oj{constructor(e,t,i,n,s,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Pj{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,c=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new mt(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Rj,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Ir(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(134)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(46),n=t.get(134),s=t.get(133);return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(91),this._horizontalScrollbarHeight=s.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),an(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(133)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new z2(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Oj(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Pj(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const n=this._getLineNumberFor(i);if(n===-1||n<1||n>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(n)===1)return new B(n,1);const s=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(nr)return null;let a=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const l=this._context.viewModel.getLineMinColumn(n);return ai?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=L.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let r=0;const a=new H2(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new B(n.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(hd)continue;const u=h===n.startLineNumber?n.startColumn:1,g=h===n.endLineNumber?n.endColumn:this._context.viewModel.getLineMaxColumn(h),f=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,u,g,a);if(!!f){if(t&&hthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new H2(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new ZU(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){s=!1;continue}n=Math.max(n,a.getWidth())}return s&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const r=this._visibleLines.getVisibleLine(s);if(r.needsMonospaceFontCheck()){const a=r.getWidth();a>t&&(t=a,e=s)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const n=this._computeScrollLeftToReveal(i);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),dn&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)if(this._visibleLines.getVisibleLine(s).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let _=s[0].startLineNumber,b=s[0].endLineNumber;for(let v=1,C=s.length;vl){if(!d)return-1;f=h}else if(r===5||r===6)if(r===6&&a<=h&&u<=c)f=a;else{const _=Math.max(5*this._lineHeight,l*.2),b=h-_,v=u-l;f=Math.max(v,b)}else if(r===1||r===2)if(r===2&&a<=h&&u<=c)f=a;else{const _=(h+u)/2;f=Math.max(0,_-l/2)}else f=this._computeMinimumScrolling(a,c,h,u,r===3,r===4);return f}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let s=1073741824,r=0;if(e.type==="range"){const l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;for(const c of l.ranges)s=Math.min(s,Math.round(c.left)),r=Math.max(r,Math.round(c.left+c.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;const c=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!c)return null;for(const d of c.ranges)s=Math.min(s,Math.round(d.left)),r=Math.max(r,Math.round(d.left+d.width))}return e.minimalReveal||(s=Math.max(0,s-y1.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),e.type==="selections"&&r-s>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,s,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,s,r){e=e|0,t=t|0,i=i|0,n=n|0,s=!!s,r=!!r;const a=t-e;if(n-it)return Math.max(0,n-a)}else return i;return e}}y1.HORIZONTAL_EXTRA_PX=30;class Fj extends mE{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(133);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let s=0,r=t.length;s
',l=[];for(let c=t;c<=i;c++){const d=c-t,h=n[d];let u="";for(let g=0,f=h.length;g';s[a]=c}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Us{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Us._clamp(e),this.g=Us._clamp(t),this.b=Us._clamp(i),this.a=Us._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}Us.Empty=new Us(0,0,0,0);class m_ extends H{constructor(){super(),this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Wt.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=new m_),this._INSTANCE}_updateColorMap(){const e=Wt.getColorMap();if(!e){this._colors=[Us.Empty],this._backgroundIsLight=!0;return}this._colors=[Us.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}m_._INSTANCE=null;const Wj=(()=>{const o=[];for(let e=32;e<=126;e++)o.push(e);return o.push(65533),o})(),Vj=(o,e)=>(o-=32,o<0||o>96?e<=2?(o+96)%96:96-1:o);class om{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=om.soften(e,12/15),this.charDataLight=om.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;ne.width||i+f>e.height){console.warn("bad render request outside image data");return}const _=d?this.charDataLight:this.charDataNormal,b=Vj(n,c),v=e.width*4,C=a.r,w=a.g,S=a.b,k=s.r-C,x=s.g-w,y=s.b-S,D=Math.max(r,l),I=e.data;let O=b*u*g,F=i*v+t*4;for(let z=0;ze.width||i+h>e.height){console.warn("bad render request outside image data");return}const u=e.width*4,g=.5*(s/255),f=r.r,_=r.g,b=r.b,v=n.r-f,C=n.g-_,w=n.b-b,S=f+v*g,k=_+C*g,x=b+w*g,y=Math.max(s,a),D=e.data;let I=i*u+t*4;for(let O=0;O{const e=new Uint8ClampedArray(o.length/2);for(let t=0;t>1]=X2[o[t]]<<4|X2[o[t+1]]&15;return e},eA={1:Xa(()=>J2("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Xa(()=>J2("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class gp{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return eA[e]?i=new om(eA[e](),e):i=gp.createFromSampleData(gp.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=`${16}px`,t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold ${16}px ${e}`,i.textBaseline="middle";let n=0;for(const s of Wj)i.fillText(String.fromCharCode(s),n,16/2),n+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=gp._downsample(e,t);return new om(n,t)}static _downsampleChar(e,t,i,n,s){const r=1*s,a=2*s;let l=n,c=0;for(let d=0;d0){const c=255/l;for(let d=0;dgp.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=rm._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=rm._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(EU);return i?new Us(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(NU);return t?Us._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class fp{constructor(e,t,i,n,s,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,s,r,a,l,c,d,h){const u=e.pixelRatio,g=e.minimapLineHeight,f=Math.floor(e.canvasInnerHeight/g),_=e.lineHeight;if(e.minimapHeightIsEditorHeight){const k=l*e.lineHeight+(e.scrollBeyondLastLine?s-e.lineHeight:0),x=Math.max(1,Math.floor(s*s/k)),y=Math.max(0,e.minimapHeight-x),D=y/(d-s),I=c*D,O=y>0,F=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new fp(c,d,O,D,I,x,1,Math.min(a,F))}let b;if(r&&i!==a){const k=i-t+1;b=Math.floor(k*g/u)}else{const k=s/_;b=Math.floor(k*g/u)}let v;e.scrollBeyondLastLine?v=(a-1)*g/u:v=Math.max(0,a*g/u-b),v=Math.min(e.minimapHeight-b,v);const C=v/(d-s),w=c*C;let S=0;if(e.scrollBeyondLastLine&&(S=s/_-1),f>=a+S){const x=a,y=v>0;return new fp(c,d,y,C,w,b,1,x)}else{let k=Math.max(1,Math.floor(t-w*u/g));h&&h.scrollHeight===d&&(h.scrollTop>c&&(k=Math.min(k,h.startLineNumber)),h.scrollTopxv.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let n=0,s=i.length;n1){for(let S=0,k=a-1;S0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=am.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,r=t-e+1;s{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.button===0&&this._lastRenderData){const c=on(this._slider.domNode),d=c.top+c.height/2;this._startSliderDragging(i,d,this._lastRenderData.renderedLayout)}return}const s=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.offsetY;let l=Math.floor(r/s)+this._lastRenderData.renderedLayout.startLineNumber;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderPointerMoveMonitor=new jg,this._sliderPointerDownListener=ki(this._slider.domNode,ae.POINTER_DOWN,i=>{i.preventDefault(),i.stopPropagation(),i.button===0&&this._lastRenderData&&this._startSliderDragging(i,i.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=ft.addTarget(this._domNode.domNode),this._sliderTouchStartListener=G(this._domNode.domNode,xt.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=G(this._domNode.domNode,xt.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=ki(this._domNode.domNode,xt.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(r,a)=>{const l=Math.abs(a-n);if(Yi&&l>Hj){this._model.setScrollTop(i.scrollTop);return}const c=r-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(c))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>s(r.pageY,r.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return this._model.options.showSlider==="always"?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new _E(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(B2),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=fp.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(L.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((u,g)=>(u.options.zIndex||0)-(g.options.zIndex||0));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,n,s);const d=new iA(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,d,e,r),this._renderDecorationsLineHighlights(c,i,d,e,r);const h=new iA(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,l,a,n),this._renderDecorationsHighlights(c,i,h,e,r,l,a,n)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const c=Math.max(n.startLineNumber,l.startLineNumber),d=Math.min(n.endLineNumber,l.endLineNumber);if(c>d)continue;for(let g=c;g<=d;g++)i.set(g,!0);const h=(c-n.startLineNumber)*s,u=(d-n.startLineNumber)*s+s;a>=h||(a>r&&e.fillRect(wl,r,e.canvas.width,a-r),r=h),a=u}a>r&&e.fillRect(wl,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,n,s){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],c=l.options.minimap;if(!c||c.position!==js.Inline)continue;const d=Math.max(n.startLineNumber,l.range.startLineNumber),h=Math.min(n.endLineNumber,l.range.endLineNumber);if(d>h)continue;const u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let f=d;f<=h;f++){if(i.has(f))continue;i.set(f,!0);const _=(d-n.startLineNumber)*s;e.fillRect(wl,_,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const c of t){const d=Math.max(n.startLineNumber,c.startLineNumber),h=Math.min(n.endLineNumber,c.endLineNumber);if(!(d>h))for(let u=d;u<=h;u++)this.renderDecorationOnLine(e,i,c,this._selectionColor,n,u,s,s,r,a,l)}}_renderDecorationsHighlights(e,t,i,n,s,r,a,l){for(const c of t){const d=c.options.minimap;if(!d)continue;const h=Math.max(n.startLineNumber,c.range.startLineNumber),u=Math.min(n.endLineNumber,c.range.endLineNumber);if(h>u)continue;const g=d.getColor(this._theme.value);if(!(!g||g.isTransparent()))for(let f=h;f<=u;f++)switch(d.position){case js.Inline:this.renderDecorationOnLine(e,i,c.range,g,n,f,s,s,r,a,l);continue;case js.Gutter:{const _=(f-n.startLineNumber)*s,b=2;this.renderDecoration(e,g,b,_,zj,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,r,a,l,c,d,h){const u=(r-s.startLineNumber)*l;if(u+a<0||u>this._model.options.canvasInnerHeight)return;const{startLineNumber:g,endLineNumber:f}=i,_=g===r?i.startColumn:1,b=f===r?i.endColumn:this._model.getLineMaxColumn(r),v=this.getXOffsetForPosition(t,r,_,c,d,h),C=this.getXOffsetForPosition(t,r,b,c,d,h);this.renderDecoration(e,n,v,u,C-v,a)}getXOffsetForPosition(e,t,i,n,s,r){if(i===1)return wl;if((i-1)*s>=r)return r;let l=e.get(t);if(!l){const c=this._model.getLineContent(t);l=[wl];let d=wl;for(let h=1;h=r){l[h]=r;break}l[h]=f,d=f}e.set(t,l)}return i-1k?Math.floor((n-k)/2):0,y=u.a/255,D=new Us(Math.round((u.r-h.r)*y+h.r),Math.round((u.g-h.g)*y+h.g),Math.round((u.b-h.b)*y+h.b),255);let I=0;const O=[];for(let he=0,Se=i-t+1;he=0&&OC)return;const z=b.charCodeAt(k);if(z===9){const j=u-(k+x)%u;x+=j-1,S+=j*r}else if(z===32)S+=r;else{const j=ic(z)?2:1;for(let re=0;reC)return}}}}}class iA{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}Et((o,e)=>{const t=o.getColor(TU);t&&e.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${t}; }`);const i=o.getColor(AU);i&&e.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`);const n=o.getColor(MU);n&&e.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${n}; }`);const s=o.getColor(Kg);s&&e.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)});class $j extends Is{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._domNode=Je(document.createElement("div")),qr.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=Je(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?!1:(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(e.preference===null){t.setTop("");return}if(e.preference===0)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){const i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i=3){const s=Math.floor(n/3),r=Math.floor(n/3),a=n-s-r,l=e,c=l+s,d=l+s+a;return[[0,l,c,l,d,l,c,l],[0,s,a,s+a,r,s+a+r,a+r,s+a+r]]}else if(i===2){const s=Math.floor(n/2),r=n-s,a=e,l=a+s;return[[0,a,a,a,l,a,a,a],[0,s,s,s,r,s+r,s+r,s+r]]}else{const s=e,r=n;return[[0,s,s,s,s,s,s,s],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Kj extends Is{constructor(e){super(e),this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Wt.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new jj(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(F=t-c),D=F-c,I=F+c}D>C+1||k!==b?(w!==0&&d.fillRect(h[b],v,u[b],C-v),b=k,v=D,C=I):I>C&&(C=I)}d.fillRect(h[b],v,u[b],C-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){const g=2*this._settings.pixelRatio|0,f=g/2|0,_=this._settings.x[7],b=this._settings.w[7];d.fillStyle=this._settings.cursorColor;let v=-100,C=-100;for(let w=0,S=this._cursorPositions.length;wt&&(x=t-f);const y=x-f,D=y+g;y>C+1?(w!==0&&d.fillRect(_,v,b,C-v),v=y,C=D):D>C&&(C=D)}d.fillRect(_,v,b,C-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,t),d.stroke(),d.moveTo(0,0),d.lineTo(e,0),d.stroke())}}class nA{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class lm{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(_=i-b);const v=d.color;let C=this._color2Id[v];C||(C=++this._lastAssignedId,this._color2Id[v]=C,this._id2Color[C]=v);const w=new nA(_-b,_+b,C);d.setColorZone(w),a.push(w)}return this._colorZonesInvalid=!1,a.sort(nA.compare),a}}class Gj extends h_{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new qj(n=>this._context.viewLayout.getVerticalOffsetForLineNumber(n)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,r=0,a=0;for(const l of t){const c=l.colorId,d=l.from,h=l.to;c!==s?(e.fillRect(0,r,n,a-r),s=c,e.fillStyle=i[s],r=d,a=h):a>=d?a=Math.max(a,h):(e.fillRect(0,r,n,a-r),r=d,a=h)}e.fillRect(0,r,n,a-r)}}class Zj extends Is{constructor(e){super(e),this.domNode=Je(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=Je(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(s),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const t=o.getColor(_$);t&&e.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${t} inset; }`)});class Yj extends Is{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const i=this._context.configuration.options.get(94);this._useShadows=i.useShadows,this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(133);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(94);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${t} 0 6px 6px -6px inset; }`)});class Qj{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Xj{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Jj(o){return new Qj(o)}function eK(o){return new Xj(o.lineNumber,o.ranges.map(Jj))}class Zt extends qg{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let c=0;!s&&c=0;c--)i[c].lineNumber===l&&(r=i[c].ranges[0]);s&&!s.startStyle&&(s=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const f=t[a-1].ranges[0].left,_=t[a-1].ranges[0].left+t[a-1].ranges[0].width;gb(d-f)f&&(u.top=1),gb(h-_)'}_actualRenderOneSelection(e,t,i,n){if(n.length===0)return;const s=!!n[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=n[0].lineNumber,c=n[n.length-1].lineNumber;for(let d=0,h=n.length;d1,c)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Zt.SELECTION_CLASS_NAME="selected-text";Zt.SELECTION_TOP_LEFT="top-left-radius";Zt.SELECTION_BOTTOM_LEFT="bottom-left-radius";Zt.SELECTION_TOP_RIGHT="top-right-radius";Zt.SELECTION_BOTTOM_RIGHT="bottom-right-radius";Zt.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";Zt.ROUNDED_PIECE_WIDTH=10;Et((o,e)=>{const t=o.getColor(Wa);t&&e.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const i=o.getColor(sE);i&&e.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const n=o.getColor(Tz);n&&!n.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${n}; }`)});function gb(o){return o<0?-o:o}class sA{constructor(e,t,i,n,s,r){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=s,this.textContentClassName=r}}class oA{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(46);this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Je(document.createElement("div")),this._domNode.setClassName(`cursor ${_d}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),an(this._domNode,i),this._domNode.setDisplay("none"),this._position=new B(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(46);return this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),an(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=pB(i,t-1);return[new B(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="";const[i,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===Hi.Line||this._cursorStyle===Hi.LineThin){const u=e.visibleRangeForPosition(i);if(!u||u.outsideRenderedLine)return null;let g;this._cursorStyle===Hi.Line?(g=k2(this._lineCursorWidth>0?this._lineCursorWidth:2),g>2&&(t=n)):g=k2(1);let f=u.left;g>=2&&f>=1&&(f-=1);const _=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new sA(_,f,g,this._lineHeight,t,"")}const s=e.linesVisibleRangesForRange(new L(i.lineNumber,i.column,i.lineNumber,i.column+n.length),!1);if(!s||s.length===0)return null;const r=s[0];if(r.outsideRenderedLine||r.ranges.length===0)return null;const a=r.ranges[0],l=n===" "?this._typicalHalfwidthCharacterWidth:a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===Hi.Block){const u=this._context.viewModel.getViewLineData(i.lineNumber);t=n;const g=u.tokens.findTokenIndexAtOffset(i.column-1);c=u.tokens.getClassName(g)}let d=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,h=this._lineHeight;return(this._cursorStyle===Hi.Underline||this._cursorStyle===Hi.UnderlineThin)&&(d+=this._lineHeight-2,h=2),new sA(d,a.left,l,h,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${_d} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class cm extends Is{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new oA(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new xs,this._cursorFlatBlinkInterval=new r_,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const i=this._secondaryCursors.length-t.length;for(let n=0;n{for(let n=0,s=e.ranges.length;n{this._isVisible?this._hide():this._show()},cm.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},cm.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case Hi.Line:e+=" cursor-line-style";break;case Hi.Block:e+=" cursor-block-style";break;case Hi.Underline:e+=" cursor-underline-style";break;case Hi.LineThin:e+=" cursor-line-thin-style";break;case Hi.BlockOutline:e+=" cursor-block-outline-style";break;case Hi.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=o.getColor(V4);if(t){let i=o.getColor(p$);i||(i=t.opposite()),e.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),e.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${i}; }`),cn(o.type)&&e.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const mS=()=>{throw new Error("Invalid change accessor")};class tK extends Is{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=Je(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Je(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace(n=>{const s=Object.keys(this._zones);for(let r=0,a=s.length;r{const n={addZone:s=>(t=!0,this._addZone(i,s)),removeZone:s=>{!s||(t=this._removeZone(i,s)||t)},layoutZone:s=>{!s||(t=this._layoutZone(i,s)||t)}};iK(e,n),n.addZone=mS,n.removeZone=mS,n.layoutZone=mS}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:Je(t.domNode),marginDomNode:t.marginDomNode?Je(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){Te(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){Te(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,n=!0);const s=Object.keys(this._zones);for(let r=0,a=s.length;r{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new t$(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new B(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(133);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(130)+" "+fv(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=n4(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){lK(()=>this._actualRender())}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!jI(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new oK(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new qU(this._context.viewLayout,i,this._viewLines);for(const s of e)s.prepareRender(n);for(const s of e)s.render(n),s.onDidRender()}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new B(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?w1.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new Gj(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i;let n=e.position&&e.position.range||null;if(n===null){const r=e.position?e.position.position:null;r!==null&&(n=new L(r.lineNumber,r.column,r.lineNumber,r.column))}const s=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,n,s,(i=(t=e.position)===null||t===void 0?void 0:t.positionAffinity)!==null&&i!==void 0?i:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function lK(o){try{return o()}catch(e){Te(e)}}class Ev{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Vi(new L(1,1,1,1),0,new B(1,1),0),new Vi(new L(1,1,1,1),0,new B(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){!this._trackSelection||(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new $e(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return oe.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,n,i,r),l=this._validatePositionWithCache(e,s,n,a);return i.equals(r)&&n.equals(a)&&s.equals(l)?t:new Vi(L.fromPositions(a,l),t.selectionStartLeftoverVisibleColumns+n.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=Ev._validateViewState(e.viewModel,i)),t){const n=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new Vi(n,s,r,a)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new Vi(n,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new Vi(n,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new L(n.lineNumber,n.column,s.lineNumber,s.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new Vi(r,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class rA{constructor(e){this.context=e,this.cursors=[new Ev(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return P8(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getBottomMostViewPosition(){return UO(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates($e.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const n=t-i;for(let s=0;s=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ii.selection,L.compareRangesUsingStarts));for(let i=0;ih&&_.index--;e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),i--}}}}class aA{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class cK{constructor(){this.changeType=1}}class er{constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new er(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new er(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,n)=>i.lineNumber===n.lineNumber?i.column===n.column?i.order-n.order:i.column-n.column:i.lineNumber-n.lineNumber),t}}class lA{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class dK{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class hK{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class uK{constructor(){this.changeType=5}}class Vu{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class DK{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class bE{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new bE(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class vE{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new vE(this.oldHasFocus,e.hasFocus)}}class CE{constructor(e,t,i,n,s,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new CE(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class kK{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class xK{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Nv{constructor(e,t,i,n,s,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,n=t.length;if(i!==n)return!1;for(let s=0;s0){const e=this._cursors.getSelections();for(let t=0;tgg.MAX_CURSOR_COUNT&&(n=n.slice(0,gg.MAX_CURSOR_COUNT),s=!0);const r=pp.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n,s,r){const a=this._cursors.getViewPositions();let l=null,c=null;a.length>1?c=this._cursors.getViewSelections():l=L.fromPositions(a[0],a[0]),e.emitViewEvent(new C0(t,i,l,c,n,s,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const s=$e.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,s)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const s=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,$e.fromModelSelections(s))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,$e.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const r=pp.from(this._model,this);if(r.equals(n))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new mK(l,a)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((c,d)=>!c.modelState.equals(n.cursorState[d].modelState))){const c=n?n.cursorState.map(h=>h.modelState.selection):null,d=n?n.modelVersionId:0;e.emitOutgoingEvent(new Nv(c,a,d,r.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const r=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const c=l[0].open,d=s.text.length-r[2].length-1,h=s.text.lastIndexOf(c,d-1);if(h===-1)return null;t.push([h,d])}return t}executeEdits(e,t,i,n){let s=null;t==="snippet"&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,c=>{if(s)for(let h=0,u=s.length;h0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const s=pp.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){Te(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return cA.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new mp(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{t==="keyboard"&&this._executeEditOperation(Pt.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const n=t.length;let s=0;for(;s{const c=l.getPosition();return new oe(c.lineNumber,c.column+s,c.lineNumber,c.column+s)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(Pt.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))},e,r)}paste(e,t,i,n,s){this._executeEdit(()=>{this._executeEditOperation(Pt.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,s,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(Vd.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new An(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new An(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}gg.MAX_CURSOR_COUNT=1e4;class pp{constructor(e,t){this.modelVersionId=e,this.cursorState=t}static from(e,t){return new pp(e.getVersionId(),t.getCursorStates())}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class OK{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let r=0,a=n.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,c=>{const d=[];for(let g=0;gg.identifier.minor-f.identifier.minor,u=[];for(let g=0;g0?(d[g].sort(h),u[g]=t[g].computeCursorState(e.model,{getInverseEditOperations:()=>d[g],getTrackedSelection:f=>{const _=parseInt(f,10),b=e.model._getTrackedRange(e.trackedRanges[_]);return e.trackedRangesDirection[_]===0?new oe(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new oe(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}})):u[g]=e.selectionsBefore[g];return u});a||(a=e.selectionsBefore);const l=[];for(const c in s)s.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((c,d)=>d-c);for(const c of l)a.splice(c,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{L.isEmpty(h)&&u===""||n.push({identifier:{major:t,minor:s++},range:h,text:u,forceMoveMarkers:g,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const d={addEditOperation:r,addTrackedEditOperation:(h,u,g)=>{a=!0,r(h,u,g)},trackSelection:(h,u)=>{const g=oe.liftSelection(h);let f;if(g.isEmpty())if(typeof u=="boolean")u?f=2:f=3;else{const v=e.model.getLineMaxColumn(g.startLineNumber);g.startColumn===v?f=2:f=3}else f=1;const _=e.trackedRanges.length,b=e.model._setTrackedRange(null,g,f);return e.trackedRanges[_]=b,e.trackedRangesDirection[_]=g.getDirection(),_.toString()}};try{i.getEditOperations(e.model,d)}catch(h){return Te(h),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,n)=>-L.compareRangesUsingEnds(i.range,n.range));const t={};for(let i=1;is.identifier.major?r=n.identifier.major:r=s.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class PK{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class mp{constructor(e,t){this._original=mp._capture(e,t)}static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new PK(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}deduceOutcome(e,t){if(!this._original)return null;const i=mp._capture(e,t);if(!i||this._original.length!==i.length)return null;const n=[];for(let s=0,r=this._original.length;s=e}function Ph(o){return ii(o.lineNumber-1,o.column-1)}function ja(o,e){const t=o,i=Math.floor(t/ws),n=t-i*ws,s=e,r=Math.floor(s/ws),a=s-r*ws;return new L(i+1,n+1,r+1,a+1)}function UK(o){const e=jr(o);return ii(e.length-1,e[e.length-1].length)}class dA{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class $K{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(i=>wE.from(i))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return zK(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Zl(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(n===0){const r=1<0;)t=t.getChild(i-1);return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const n=WK(e,t,this.lineIdx,this.lineCharOffset);return new Tl(n,0,-1,ui.getEmpty(),new eu(n))}}class YK{constructor(e,t){this.text=e,this._offset=mo,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+`| `,"gi"):null,s=[];let r,a=0,l=0,c=0,d=0;const h=new Array;for(let f=0;f<60;f++)h.push(new Tl(ii(0,f),0,-1,ui.getEmpty(),new eu(ii(0,f))));const u=new Array;for(let f=0;f<60;f++)u.push(new Tl(ii(1,f),0,-1,ui.getEmpty(),new eu(ii(1,f))));if(n)for(n.lastIndex=0;(r=n.exec(e))!==null;){const f=r.index,_=r[0];if(_===` -`)a++,l=f+1;else{if(c!==f){let b;if(d===a){const v=f-c;if(vQK(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(i.kind===2&&i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function QK(o){let e=ys(o);return/^[\w ]+/.test(o)&&(e=`\\b${e}`),/[\w ]+$/.test(o)&&(e=`${e}\\b`),e}class dF{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=LE.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function XK(o){if(o.length===0)return null;if(o.length===1)return o[0];let e=0;function t(){if(e>=o.length)return null;const r=e,a=o[r].listHeight;for(e++;e=2?hF(r===0&&e===o.length?o:o.slice(r,e),!1):o[r]}let i=t(),n=t();if(!n)return i;for(let r=t();r;r=t())uA(i,n)<=uA(n,r)?(i=_S(i,n),n=r):n=_S(n,r);return _S(i,n)}function hF(o,e=!1){if(o.length===0)return null;if(o.length===1)return o[0];let t=o.length;for(;t>3;){const i=t>>1;for(let n=0;n=3?o[2]:null,e)}function uA(o,e){return Math.abs(o.listHeight-e.listHeight)}function _S(o,e){return o.listHeight===e.listHeight?Gr.create23(o,e,null,!1):o.listHeight>e.listHeight?JK(o,e):eq(e,o)}function JK(o,e){o=o.toMutable();let t=o;const i=new Array;let n;for(;;){if(e.listHeight===t.listHeight){n=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(o,n,null,!1):o}function eq(o,e){o=o.toMutable();let t=o;const i=new Array;for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let n=e;for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(n,o,null,!1):o}class tq{constructor(e){this.lastOffset=mo,this.nextNodes=[e],this.offsets=[mo],this.idxs=[]}readLongestNodeAt(e,t){if(Hu(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=Lf(this.nextNodes);if(!i)return;const n=Lf(this.offsets);if(Hu(e,n))return;if(Hu(n,e))if(Xt(n,i.length)<=e)this.nextNodeAfterCurrent();else{const s=bS(i);s!==-1?(this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const s=bS(i);if(s===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)}}}}nextNodeAfterCurrent(){for(;;){const e=Lf(this.offsets),t=Lf(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=Lf(this.nextNodes),n=bS(i,this.idxs[this.idxs.length-1]);if(n!==-1){this.nextNodes.push(i.getChild(n)),this.offsets.push(Xt(e,t.length)),this.idxs[this.idxs.length-1]=n;break}else this.idxs.pop()}}}function bS(o,e=-1){for(;;){if(e++,e>=o.childrenLength)return-1;if(o.getChild(e))return e}}function Lf(o){return o.length>0?o[o.length-1]:void 0}function CD(o,e,t,i){return new iq(o,e,t,i).parseDocument()}class iq{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new tq(i):void 0,this.positionMapper=new $K(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ui.getEmpty());return e||(e=Gr.getEmpty()),e}parseList(e){const t=new Array;for(;;){const n=this.tokenizer.peek();if(!n||n.kind===2&&n.bracketIds.intersects(e))break;const s=this.parseChild(e);s.kind===4&&s.childrenLength===0||t.push(s)}return this.oldNodeReader?XK(t):hF(t,this.createImmutableLists)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!VK(i)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),s=>Hu(s.length,i)?s.canBeReused(e):!1);if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new GK(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),n=this.parseList(i),s=this.tokenizer.peek();return s&&s.kind===2&&(s.bracketId===t.bracketId||s.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),dm.create(t.astNode,n,s.astNode)):dm.create(t.astNode,n,null)}default:throw new Error("unexpected")}}}class nq extends H{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new R,this.denseKeyProvider=new lF,this.brackets=new dF(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,e.tokenization.backgroundTokenizationState===0){const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),n=new YK(this.textModel.getValue(),i);this.initialAstWithoutTokens=CD(n,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else e.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):e.tokenization.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new dA(ii(i.fromLineNumber-1,0),ii(i.toLineNumber,0),ii(i.toLineNumber-i.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map(i=>{const n=L.lift(i.range);return new dA(Ph(n.getStartPosition()),Ph(n.getEndPosition()),UK(i.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const n=t,s=new cF(this.textModel,this.brackets);return CD(s,e,n,i)}getBracketsInRange(e){const t=ii(e.startLineNumber-1,e.startColumn-1),i=ii(e.endLineNumber-1,e.endColumn-1),n=new Array,s=this.initialAstWithoutTokens||this.astWithTokens;return wD(s,mo,s.length,t,i,n,0,new Map),n}getBracketPairsInRange(e,t){const i=new Array,n=Ph(e.getStartPosition()),s=Ph(e.getEndPosition()),r=this.initialAstWithoutTokens||this.astWithTokens,a=new sq(i,t,this.textModel);return SD(r,mo,r.length,n,s,a,0,new Map),i}getFirstBracketAfter(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return gF(t,mo,t.length,Ph(e))}getFirstBracketBefore(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return uF(t,mo,t.length,Ph(e))}}function uF(o,e,t,i){if(o.kind===4||o.kind===2){const n=[];for(const s of o.children)t=Xt(e,s.length),n.push({nodeOffsetStart:e,nodeOffsetEnd:t}),e=t;for(let s=n.length-1;s>=0;s--){const{nodeOffsetStart:r,nodeOffsetEnd:a}=n[s];if(Hu(r,i)){const l=uF(o.children[s],r,a,i);if(l)return l}}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function gF(o,e,t,i){if(o.kind===4||o.kind===2){for(const n of o.children){if(t=Xt(e,n.length),Hu(i,t)){const s=gF(n,e,t,i);if(s)return s}e=t}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function wD(o,e,t,i,n,s,r,a){if(!(r>200)){if(o.kind===4)for(const l of o.children)t=Xt(e,l.length),Fl(e,n)&&Gf(t,i)&&wD(l,e,t,i,n,s,r,a),e=t;else if(o.kind===2){let l=0;if(a){let c=a.get(o.openingBracket.text);c===void 0&&(c=0),l=c,c++,a.set(o.openingBracket.text,c)}{const c=o.openingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!o.closingBracket))}e=t}if(o.child){const c=o.child;t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)&&wD(c,e,t,i,n,s,r+1,a),e=t}if(o.closingBracket){const c=o.closingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!1))}e=t}a==null||a.set(o.openingBracket.text,l)}else if(o.kind===3){const l=ja(e,t);s.push(new mb(l,r-1,0,!0))}else if(o.kind===1){const l=ja(e,t);s.push(new mb(l,r-1,0,!1))}}}class sq{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function SD(o,e,t,i,n,s,r,a){var l;if(!(r>200))if(o.kind===2){let c=0;if(a){let u=a.get(o.openingBracket.text);u===void 0&&(u=0),c=u,u++,a.set(o.openingBracket.text,u)}const d=Xt(e,o.openingBracket.length);let h=-1;if(s.includeMinIndentation&&(h=o.computeMinIndentation(e,s.textModel)),s.result.push(new BK(ja(e,t),ja(e,d),o.closingBracket?ja(Xt(d,((l=o.child)===null||l===void 0?void 0:l.length)||mo),t):void 0,r,c,o,h)),e=d,o.child){const u=o.child;t=Xt(e,u.length),Fl(e,n)&&Gf(t,i)&&SD(u,e,t,i,n,s,r+1,a)}a==null||a.set(o.openingBracket.text,c)}else{let c=e;for(const d of o.children){const h=c;c=Xt(c,d.length),Fl(h,n)&&Fl(i,c)&&SD(d,h,c,i,n,s,r,a)}}}class oq extends H{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new _n),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var n;(!i.languageId||((n=this.bracketPairsTree.value)===null||n===void 0?void 0:n.object.didLanguageChange(i.languageId)))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get canBuildAST(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const e=new Q;this.bracketPairsTree.value=rq(e.add(new nq(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketsInRange(e))||[]}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!r)return null;const a=j0(this.getBracketPairsInRange(L.fromPositions(t,t))||[],l=>r.closes(l.openingBracketInfo));return a?a.openingBracketRange:null}else{const r=e.toLowerCase(),a=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!a)return null;const l=a.textIsBracket[r];return l?_b(this._findMatchingBracketUp(l,n,vS(i))):null}}matchBracket(e,t){if(this.canBuildAST){const i=UO(this.getBracketPairsInRange(L.fromPositions(e,e)).filter(n=>n.closingBracketRange!==void 0&&(n.openingBracketRange.containsPosition(e)||n.closingBracketRange.containsPosition(e))),op(n=>n.openingBracketRange.containsPosition(e)?n.openingBracketRange:n.closingBracketRange,L.compareRangesUsingStarts));return i?[i.openingBracketRange,i.closingBracketRange]:null}else{const i=vS(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),r=t.getLanguageId(n);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let c=n-1;c>=0;c--){const d=t.getEndOffset(c);if(d<=a)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=d;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=n+1;c=l)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){l=d;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!mr(n.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(e,n,a,r),d=null;for(;;){const h=lo.findNextBracketInRange(a.forwardRegex,i,s,l,c);if(!h)break;if(h.startColumn<=e.column&&e.column<=h.endColumn){const u=s.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),g=this._matchFoundBracket(h,a.textIsBracket[u],a.textIsOpenBracket[u],t);if(g){if(g instanceof Da)return null;d=g}}l=h.endColumn-1}if(d)return d}if(r>0&&n.getStartOffset(r)===e.column-1){const l=r-1,c=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(l)).brackets;if(c&&!mr(n.getStandardTokenType(l))){const{searchStartOffset:d,searchEndOffset:h}=this._establishBracketSearchOffsets(e,n,c,l),u=lo.findPrevBracketInRange(c.reversedRegex,i,s,d,h);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn){const g=s.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),f=this._matchFoundBracket(u,c.textIsBracket[g],c.textIsOpenBracket[g],t);if(f)return f instanceof Da?null:f}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof Da?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let r=-1,a=0;const l=(c,d,h,u)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const g=lo.findPrevBracketInRange(s,c,d,h,u);if(!g)break;const f=d.substring(g.startColumn-1,g.endColumn-1).toLowerCase();if(e.isOpen(f)?r++:e.isClose(f)&&r--,r===0)return g;u=g.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const d=this.textModel.tokenization.getLineTokens(c),h=d.getCount(),u=this.textModel.getLineContent(c);let g=h-1,f=u.length,_=u.length;c===t.lineNumber&&(g=d.findTokenIndexAtOffset(t.column-1),f=t.column-1,_=t.column-1);let b=!0;for(;g>=0;g--){const v=d.getLanguageId(g)===n&&!mr(d.getStandardTokenType(g));if(v)b?f=d.getStartOffset(g):(f=d.getStartOffset(g),_=d.getEndOffset(g));else if(b&&f!==_){const C=l(c,u,f,_);if(C)return C}b=v}if(b&&f!==_){const v=l(c,u,f,_);if(v)return v}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let r=1,a=0;const l=(d,h,u,g)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const f=lo.findNextBracketInRange(s,d,h,u,g);if(!f)break;const _=h.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(_)?r++:e.isClose(_)&&r--,r===0)return f;u=f.endColumn-1}return null},c=this.textModel.getLineCount();for(let d=t.lineNumber;d<=c;d++){const h=this.textModel.tokenization.getLineTokens(d),u=h.getCount(),g=this.textModel.getLineContent(d);let f=0,_=0,b=0;d===t.lineNumber&&(f=h.findTokenIndexAtOffset(t.column-1),_=t.column-1,b=t.column-1);let v=!0;for(;f=1;a--){const l=this.textModel.tokenization.getLineTokens(a),c=l.getCount(),d=this.textModel.getLineContent(a);let h=c-1,u=d.length,g=d.length;if(a===i.lineNumber){h=l.findTokenIndexAtOffset(i.column-1),u=i.column-1,g=i.column-1;const _=l.getLanguageId(h);n!==_&&(n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let f=!0;for(;h>=0;h--){const _=l.getLanguageId(h);if(n!==_){if(s&&r&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v);f=!1}n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const b=!!s&&!mr(l.getStandardTokenType(h));if(b)f?u=l.getStartOffset(h):(u=l.getStartOffset(h),g=l.getEndOffset(h));else if(r&&s&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v)}f=b}if(r&&s&&f&&u!==g){const _=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(_)return this._toFoundBracket(r,_)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,r=null,a=null;for(let l=i.lineNumber;l<=n;l++){const c=this.textModel.tokenization.getLineTokens(l),d=c.getCount(),h=this.textModel.getLineContent(l);let u=0,g=0,f=0;if(l===i.lineNumber){u=c.findTokenIndexAtOffset(i.column-1),g=i.column-1,f=i.column-1;const b=c.getLanguageId(u);s!==b&&(s=b,r=this.languageConfigurationService.getLanguageConfiguration(s).brackets,a=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let _=!0;for(;u_.closingBracketRange!==void 0&&_.range.strictContainsRange(g));return f?[f.openingBracketRange,f.closingBracketRange]:null}const n=vS(t),s=this.textModel.getLineCount(),r=new Map;let a=[];const l=(g,f)=>{if(!r.has(g)){const _=[];for(let b=0,v=f?f.brackets.length:0;b{for(;;){if(n&&++c%100===0&&!n())return Da.INSTANCE;const C=lo.findNextBracketInRange(g.forwardRegex,f,_,b,v);if(!C)break;const w=_.substring(C.startColumn-1,C.endColumn-1).toLowerCase(),S=g.textIsBracket[w];if(S&&(S.isOpen(w)?a[S.index]++:S.isClose(w)&&a[S.index]--,a[S.index]===-1))return this._matchFoundBracket(C,S,!1,n);b=C.endColumn-1}return null};let h=null,u=null;for(let g=i.lineNumber;g<=s;g++){const f=this.textModel.tokenization.getLineTokens(g),_=f.getCount(),b=this.textModel.getLineContent(g);let v=0,C=0,w=0;if(g===i.lineNumber){v=f.findTokenIndexAtOffset(i.column-1),C=i.column-1,w=i.column-1;const k=f.getLanguageId(v);h!==k&&(h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u))}let S=!0;for(;v<_;v++){const k=f.getLanguageId(v);if(h!==k){if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y);S=!1}h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u)}const x=!!u&&!mr(f.getStandardTokenType(v));if(x)S||(C=f.getStartOffset(v)),w=f.getEndOffset(v);else if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y)}S=x}if(u&&S&&C!==w){const k=d(u,g,b,C,w);if(k)return _b(k)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.getBracketInfo(i);return n?{range:t,bracketInfo:n}:null}}function rq(o,e){return{object:o,dispose:()=>e==null?void 0:e.dispose()}}function vS(o){if(typeof o>"u")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=o}}class Da{constructor(){this._searchCanceledBrand=void 0}}Da.INSTANCE=new Da;function _b(o){return o instanceof Da?null:o}class aq extends H{constructor(e){super(),this.textModel=e,this.colorProvider=new fF,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(t===void 0)return[];if(!this.colorizationOptions.enabled)return[];const n=new Array,s=this.textModel.bracketPairs.getBracketsInRange(e);for(const r of s)n.push({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:r.range});return n}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new L(1,1,this.textModel.getLineCount(),1),e,t):[]}}class fF{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}Et((o,e)=>{const t=[U4,$4,j4,K4,q4,G4],i=new fF;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${o.getColor(T$)}; }`);const n=t.map(s=>o.getColor(s)).filter(s=>!!s).filter(s=>!s.isTransparent());for(let s=0;s<30;s++){const r=n[s%n.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${r}; }`)}});function bb(o){return o.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class $i{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${bb(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${bb(this.oldText)}")`:`(replace@${this.oldPosition} "${bb(this.oldText)}" with "${bb(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;No(e,n,i),i+=4;for(let s=0;so.length)return!1;if(t){if(!vI(o,e))return!1;if(e.length===o.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,o.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),o.indexOf(e)===0}function mF(o){return o>=65&&o<=90||o>=97&&o<=122}function dq(o,e=Yi){return e?mF(o.charCodeAt(0))&&o.charCodeAt(1)===58:!1}function _r(o){return Q0(o,!0)}class DE{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Bp(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===Me.file)return yD(_r(e),_r(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(pA(e.authority,t.authority))return yD(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return _e.joinPath(e,...t)}basenameOrAuthority(e){return Js(e)||e.authority}basename(e){return gi.basename(e.path)}extname(e){return gi.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Me.file?t=_e.file(sP(_r(e))).path:(t=gi.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Me.file?t=_e.file(nP(_r(e))).path:t=gi.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!pA(e.authority,t.authority))return;if(e.scheme===Me.file){const s=Z6(_r(e),_r(t));return Yi?pF(s):s}let i=e.path||"/";const n=t.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const r=Math.min(i.length,n.length);sgA(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Br){return mA(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Br){let i=!1;if(e.scheme===Me.file){const n=_r(e);i=n!==void 0&&n.length===gA(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=n.length===1&&n.charCodeAt(n.length-1)===47}return!i&&!mA(e,t)?e.with({path:e.path+"/"}):e}}const It=new DE(()=>!1);new DE(o=>o.scheme===Me.file?!dn:!0);new DE(o=>!0);const _F=It.isEqual.bind(It);It.isEqualOrParent.bind(It);It.getComparisonKey.bind(It);const hq=It.basenameOrAuthority.bind(It),Js=It.basename.bind(It),uq=It.extname.bind(It),L1=It.dirname.bind(It),gq=It.joinPath.bind(It),fq=It.normalizePath.bind(It),pq=It.relativePath.bind(It),fA=It.resolvePath.bind(It);It.isAbsolutePath.bind(It);const pA=It.isEqualAuthority.bind(It),mA=It.hasTrailingPathSeparator.bind(It);It.removeTrailingPathSeparator.bind(It);It.addTrailingPathSeparator.bind(It);var cc;(function(o){o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(o.META_DATA_MIME,s),i}o.parseMetaData=e})(cc||(cc={}));function Fh(o){return o.toString()}class Ni{constructor(e,t,i,n,s,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=r,this.changes=a}static create(e,t){const i=e.getAlternativeVersionId(),n=LD(e);return new Ni(i,i,n,n,t,t,[])}append(e,t,i,n,s){t.length>0&&(this.changes=lq(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(No(e,t?t.length:0,i),i+=4,t)for(const n of t)No(e,n.selectionStartLineNumber,i),i+=4,No(e,n.selectionStartColumn,i),i+=4,No(e,n.positionLineNumber,i),i+=4,No(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=Eo(e,t);t+=4;for(let s=0;st.toString()).join(", ")}matchesResource(e){return(_e.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ni}append(e,t,i,n,s){this._data instanceof Ni&&this._data.append(e,t,i,n,s)}close(){this._data instanceof Ni&&(this._data=this._data.serialize())}open(){this._data instanceof Ni||(this._data=Ni.deserialize(this._data))}undo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ni&&(this._data=this._data.serialize()),this._data.byteLength+168}}class mq{constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const s=Fh(n.resource);this._editStackElementsMap.set(s,n)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Fh(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Fh(_e.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Fh(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,n,s){const r=Fh(e.uri);this._editStackElementsMap.get(r).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Fh(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${Js(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function LD(o){return o.getEOL()===` -`?0:1}function ka(o){return o?o instanceof bF||o instanceof mq:!1}class kE{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(ka(t)&&t.canAppend(this._model))return t;const i=new bF(p("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],LD(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),s=this._model.applyEdits(t,!0),r=kE._computeCursorState(i,s),a=s.map((l,c)=>({index:c,textChange:l.textChange}));return a.sort((l,c)=>l.textChange.oldPosition===c.textChange.oldPosition?l.index-c.index:l.textChange.oldPosition-c.textChange.oldPosition),n.append(this._model,a.map(l=>l.textChange),LD(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return Te(i),null}}}class _q{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function bq(o,e,t,i,n){n.spacesDiff=0,n.looksLikeAlignment=!1;let s;for(s=0;s0&&a>0||l>0&&c>0)return;const d=Math.abs(a-c),h=Math.abs(r-l);if(d===0){n.spacesDiff=h,h>0&&0<=l-1&&l-10?n++:S>1&&s++,bq(r,a,b,w,h),h.looksLikeAlignment&&!(t&&e===h.spacesDiff)))continue;const x=h.spacesDiff;x<=c&&d[x]++,r=b,a=w}let u=t;n!==s&&(u=n{const b=d[_];b>f&&(f=b,g=_)}),g===4&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(g=2)}return{insertSpaces:u,tabSize:g}}function Mn(o){return(o.metadata&1)>>>0}function Lt(o,e){o.metadata=o.metadata&254|e<<0}function Zi(o){return(o.metadata&2)>>>1===1}function St(o,e){o.metadata=o.metadata&253|(e?1:0)<<1}function vF(o){return(o.metadata&4)>>>2===1}function bA(o,e){o.metadata=o.metadata&251|(e?1:0)<<2}function vq(o){return(o.metadata&24)>>>3}function vA(o,e){o.metadata=o.metadata&231|e<<3}function Cq(o){return(o.metadata&32)>>>5===1}function CA(o,e){o.metadata=o.metadata&223|(e?1:0)<<5}class CF{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,Lt(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,bA(this,!1),vA(this,1),CA(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,St(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;bA(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),vA(this,this.options.stickiness),CA(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const Oe=new CF(null,0,0);Oe.parent=Oe;Oe.left=Oe;Oe.right=Oe;Lt(Oe,0);class CS{constructor(){this.root=Oe,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s){return this.root===Oe?[]:Iq(this,e,t,i,n,s)}search(e,t,i){return this.root===Oe?[]:xq(this,e,t,i)}collectNodesFromOwner(e){return Dq(this,e)}collectNodesPostOrder(){return kq(this)}insert(e){wA(this,e),this._normalizeDeltaIfNecessary()}delete(e){SA(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,r=i.end+n;i.setCachedOffsets(s,r,t)}acceptReplace(e,t,i,n){const s=yq(this,e,e+t);for(let r=0,a=s.length;rt||i===1?!1:i===2?!0:e}function Sq(o,e,t,i,n){const s=vq(o),r=s===0||s===2,a=s===1||s===2,l=t-e,c=i,d=Math.min(l,c),h=o.start;let u=!1;const g=o.end;let f=!1;e<=h&&g<=t&&Cq(o)&&(o.start=e,u=!0,o.end=e,f=!0);{const b=n?1:l>0?2:0;!u&&Bh(h,r,e,b)&&(u=!0),!f&&Bh(g,a,e,b)&&(f=!0)}if(d>0&&!n){const b=l>c?2:0;!u&&Bh(h,r,e+d,b)&&(u=!0),!f&&Bh(g,a,e+d,b)&&(f=!0)}{const b=n?1:0;!u&&Bh(h,r,t,b)&&(o.start=e+c,u=!0),!f&&Bh(g,a,t,b)&&(o.end=e+c,f=!0)}const _=c-l;u||(o.start=Math.max(0,h+_)),f||(o.end=Math.max(0,g+_)),o.start>o.end&&(o.end=o.start)}function yq(o,e,t){let i=o.root,n=0,s=0,r=0,a=0;const l=[];let c=0;for(;i!==Oe;){if(Zi(i)){St(i.left,!1),St(i.right,!1),i===i.parent.right&&(n-=i.parent.delta),i=i.parent;continue}if(!Zi(i.left)){if(s=n+i.maxEnd,st){St(i,!0);continue}if(a=n+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[c++]=i),St(i,!0),i.right!==Oe&&!Zi(i.right)){n+=i.delta,i=i.right;continue}}return St(o.root,!1),l}function Lq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=i-(t-e);for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),dc(n),n=n.parent;continue}if(!Zi(n.left)){if(r=s+n.maxEnd,rt){n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(o.requestNormalizeDelta=!0),St(n,!0);continue}if(St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}St(o.root,!1)}function Dq(o,e){let t=o.root;const i=[];let n=0;for(;t!==Oe;){if(Zi(t)){St(t.left,!1),St(t.right,!1),t=t.parent;continue}if(t.left!==Oe&&!Zi(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[n++]=t),St(t,!0),t.right!==Oe&&!Zi(t.right)){t=t.right;continue}}return St(o.root,!1),i}function kq(o){let e=o.root;const t=[];let i=0;for(;e!==Oe;){if(Zi(e)){St(e.left,!1),St(e.right,!1),e=e.parent;continue}if(e.left!==Oe&&!Zi(e.left)){e=e.left;continue}if(e.right!==Oe&&!Zi(e.right)){e=e.right;continue}t[i++]=e,St(e,!0)}return St(o.root,!1),t}function xq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=[];let c=0;for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),n=n.parent;continue}if(n.left!==Oe&&!Zi(n.left)){n=n.left;continue}r=s+n.start,a=s+n.end,n.setCachedOffsets(r,a,i);let d=!0;if(e&&n.ownerId&&n.ownerId!==e&&(d=!1),t&&vF(n)&&(d=!1),d&&(l[c++]=n),St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}return St(o.root,!1),l}function Iq(o,e,t,i,n,s){let r=o.root,a=0,l=0,c=0,d=0;const h=[];let u=0;for(;r!==Oe;){if(Zi(r)){St(r.left,!1),St(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;continue}if(!Zi(r.left)){if(l=a+r.maxEnd,lt){St(r,!0);continue}if(d=a+r.end,d>=e){r.setCachedOffsets(c,d,s);let g=!0;i&&r.ownerId&&r.ownerId!==i&&(g=!1),n&&vF(r)&&(g=!1),g&&(h[u++]=r)}if(St(r,!0),r.right!==Oe&&!Zi(r.right)){a+=r.delta,r=r.right;continue}}return St(o.root,!1),h}function wA(o,e){if(o.root===Oe)return e.parent=Oe,e.left=Oe,e.right=Oe,Lt(e,0),o.root=e,o.root;Eq(o,e),Dl(e.parent);let t=e;for(;t!==o.root&&Mn(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,_p(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),bp(o,t.parent.parent))}else{const i=t.parent.parent.left;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,bp(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),_p(o,t.parent.parent))}return Lt(o.root,0),e}function Eq(o,e){let t=0,i=o.root;const n=e.start,s=e.end;for(;;)if(Tq(n,s,i.start+t,i.end+t)<0)if(i.left===Oe){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===Oe){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=Oe,e.right=Oe,Lt(e,1)}function SA(o,e){let t,i;if(e.left===Oe?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===Oe?(t=e.left,i=e):(i=Nq(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(o.requestNormalizeDelta=!0)),i===o.root){o.root=t,Lt(t,0),e.detach(),wS(),dc(t),o.root.parent=Oe;return}const n=Mn(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,Lt(i,Mn(e)),e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Oe&&(i.left.parent=i),i.right!==Oe&&(i.right.parent=i)),e.detach(),n){Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent)),wS();return}Dl(t),Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent));let s;for(;t!==o.root&&Mn(t)===0;)t===t.parent.left?(s=t.parent.right,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),_p(o,t.parent),s=t.parent.right),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.right)===0&&(Lt(s.left,0),Lt(s,1),bp(o,s),s=t.parent.right),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.right,0),_p(o,t.parent),t=o.root)):(s=t.parent.left,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),bp(o,t.parent),s=t.parent.left),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.left)===0&&(Lt(s.right,0),Lt(s,1),_p(o,s),s=t.parent.left),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.left,0),bp(o,t.parent),t=o.root));Lt(t,0),wS()}function Nq(o){for(;o.left!==Oe;)o=o.left;return o}function wS(){Oe.parent=Oe,Oe.delta=0,Oe.start=0,Oe.end=0}function _p(o,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==Oe&&(t.left.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,dc(e),dc(t)}function bp(o,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(o.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==Oe&&(t.right.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,dc(e),dc(t)}function wF(o){let e=o.end;if(o.left!==Oe){const t=o.left.maxEnd;t>e&&(e=t)}if(o.right!==Oe){const t=o.right.maxEnd+o.delta;t>e&&(e=t)}return e}function dc(o){o.maxEnd=wF(o)}function Dl(o){for(;o!==Oe;){const e=wF(o);if(o.maxEnd===e)return;o.maxEnd=e,o=o.parent}}function Tq(o,e,t,i){return o===t?e-i:o-t}class DD{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Ie)return xE(this.right);let e=this;for(;e.parent!==Ie&&e.parent.left!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}prev(){if(this.left!==Ie)return SF(this.left);let e=this;for(;e.parent!==Ie&&e.parent.right!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ie=new DD(null,0);Ie.parent=Ie;Ie.left=Ie;Ie.right=Ie;Ie.color=0;function xE(o){for(;o.left!==Ie;)o=o.left;return o}function SF(o){for(;o.right!==Ie;)o=o.right;return o}function IE(o){return o===Ie?0:o.size_left+o.piece.length+IE(o.right)}function EE(o){return o===Ie?0:o.lf_left+o.piece.lineFeedCnt+EE(o.right)}function SS(){Ie.parent=Ie}function vp(o,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==Ie&&(t.left.parent=e),t.parent=e.parent,e.parent===Ie?o.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function Cp(o,e){const t=e.left;e.left=t.right,t.right!==Ie&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===Ie?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function vb(o,e){let t,i;if(e.left===Ie?(i=e,t=i.right):e.right===Ie?(i=e,t=i.left):(i=xE(e.right),t=i.right),i===o.root){o.root=t,t.color=0,e.detach(),SS(),o.root.parent=Ie;return}const n=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,Zf(o,t)):(i.parent===e?t.parent=i:t.parent=i.parent,Zf(o,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Ie&&(i.left.parent=i),i.right!==Ie&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,Zf(o,i)),e.detach(),t.parent.left===t){const r=IE(t),a=EE(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,c=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,ma(o,t.parent,l,c)}}if(Zf(o,t.parent),n){SS();return}let s;for(;t!==o.root&&t.color===0;)t===t.parent.left?(s=t.parent.right,s.color===1&&(s.color=0,t.parent.color=1,vp(o,t.parent),s=t.parent.right),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.right.color===0&&(s.left.color=0,s.color=1,Cp(o,s),s=t.parent.right),s.color=t.parent.color,t.parent.color=0,s.right.color=0,vp(o,t.parent),t=o.root)):(s=t.parent.left,s.color===1&&(s.color=0,t.parent.color=1,Cp(o,t.parent),s=t.parent.left),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.left.color===0&&(s.right.color=0,s.color=1,vp(o,s),s=t.parent.left),s.color=t.parent.color,t.parent.color=0,s.left.color=0,Cp(o,t.parent),t=o.root));t.color=0,SS()}function yA(o,e){for(Zf(o,e);e!==o.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,vp(o,e)),e.parent.color=0,e.parent.parent.color=1,Cp(o,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,Cp(o,e)),e.parent.color=0,e.parent.parent.color=1,vp(o,e.parent.parent))}o.root.color=0}function ma(o,e,t,i){for(;e!==o.root&&e!==Ie;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function Zf(o,e){let t=0,i=0;if(e!==o.root){for(;e!==o.root&&e===e.parent.right;)e=e.parent;if(e!==o.root)for(e=e.parent,t=IE(e.left)-e.size_left,i=EE(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==o.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const ca=65535;function yF(o){let e;return o[o.length-1]<65536?e=new Uint16Array(o.length):e=new Uint32Array(o.length),e.set(o,0),e}class Aq{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function Ca(o,e=!0){const t=[0];let i=1;for(let n=0,s=o.length;n126)&&(r=!1)}const a=new Aq(yF(o),i,n,s,r);return o.length=0,a}class qn{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class Jc{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Rq{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Ie&&e.iterate(e.root,i=>(i!==Ie&&this._pieces.push(i.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Oq{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e){i[n]=null,t=!0;continue}}if(t){const n=[];for(const s of i)s!==null&&n.push(s);this._cache=n}}}class Pq{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Jc("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ie,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,r=e.length;s0){e[s].lineStarts||(e[s].lineStarts=Ca(e[s].buffer));const a=new qn(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,a)}this._searchCache=new Oq(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=ca,i=t-Math.floor(t/3),n=i*2;let s="",r=0;const a=[];if(this.iterate(this.root,l=>{const c=this.getNodeContent(l),d=c.length;if(r<=i||r+d0){const l=s.replace(/\r\n|\r|\n/g,e);a.push(new Jc(l,Ca(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Rq(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==Ie;)if(n.left!==Ie&&n.lf_left+1>=e)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;const s=this.getAccumulatedValue(n,e-n.lf_left-2);return i+=s+t-1}else e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right;return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==Ie;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,s.index===0){const r=this.getOffsetAt(i+1,1),a=n-r;return new B(i+1,a+1)}return new B(i+1,s.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Ie){const s=this.getOffsetAt(i+1,1),r=n-e-s;return new B(i+1,r+1)}else t=t.right;return new B(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t!==this._EOL||!this._EOLNormalized?s.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(c+e.remainder,c+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==Ie;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,s=>{if(s===Ie)return!0;const r=s.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,d=r.start.line,h=r.end.line;let u=c[d]+r.start.column;if(n&&(l.charCodeAt(u)===10&&(u++,a--),e[t++]=i,i="",n=!1,a===0))return!0;if(d===h)return!this._EOLNormalized&&l.charCodeAt(u+a-1)===13?(n=!0,i+=l.substr(u,a-1)):i+=l.substr(u,a),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,c[d+1]-this._EOLLength)):l.substring(u,c[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let g=d+1;gS+f,t.reset(0)):(C=u.buffer,w=S=>S,t.reset(f));do if(b=t.next(C),b){if(w(b.index)>=_)return d;this.positionInBuffer(e,w(b.index)-g,v);const S=this.getLineFeedCnt(e.piece.bufferIndex,s,v),k=v.line===s.line?v.column-s.column+n:v.column+1,x=k+b[0].length;if(h[d++]=Gc(new L(i+S,k,i+S,x),b,l),w(b.index)+b[0].length>=_||d>=c)return d}while(b);return d}findMatchesLineByLine(e,t,i,n){const s=[];let r=0;const a=new du(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(c===null)return[];let d=this.positionInBuffer(l.node,l.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(l.node===c.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,d,h,t,i,n,r,s),s;let u=e.startLineNumber,g=l.node;for(;g!==c.node;){const _=this.getLineFeedCnt(g.piece.bufferIndex,d,g.piece.end);if(_>=1){const v=this._buffers[g.piece.bufferIndex].lineStarts,C=this.offsetInBuffer(g.piece.bufferIndex,g.piece.start),w=v[d.line+_],S=u===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(g,a,u,S,d,this.positionInBuffer(g,w-C),t,i,n,r,s),r>=n)return s;u+=_}const b=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const v=this.getLineContent(u).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,a,v,e.endLineNumber,b,r,s,i,n),s}if(r=this._findMatchesInLine(t,a,this.getLineContent(u).substr(b),u,b,r,s,i,n),r>=n)return s;u++,l=this.nodeAt2(u,1),g=l.node,d=this.positionInBuffer(l.node,l.remainder)}if(u===e.endLineNumber){const _=u===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(u).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,s,i,n),s}const f=u===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,a,u,f,d,h,t,i,n,r,s),s}_findMatchesInLine(e,t,i,n,s,r,a,l,c){const d=e.wordSeparators;if(!l&&e.simpleSearch){const u=e.simpleSearch,g=u.length,f=i.length;let _=-g;for(;(_=i.indexOf(u,_+g))!==-1;)if((!d||FI(d,i,f,_,g))&&(a[r++]=new Vp(new L(n,_+1+s,n,_+1+g+s),null),r>=c))return r;return r}let h;t.reset(0);do if(h=t.next(i),h&&(a[r++]=Gc(new L(n,h.index+1+s,n,h.index+1+h[0].length+s),h,l),r>=c))return r;while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ie){const{node:n,remainder:s,nodeStartOffset:r}=this.nodeAt(e),a=n.piece,l=a.bufferIndex,c=this.positionInBuffer(n,s);if(n.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const d=[];let h=new qn(a.bufferIndex,c,a.end,this.getLineFeedCnt(a.bufferIndex,c,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(n,s)===10){const _={line:h.start.line+1,column:0};h=new qn(h.bufferIndex,_,h.end,this.getLineFeedCnt(h.bufferIndex,_,h.end),h.length-1),t+=` +`)a++,l=f+1;else{if(c!==f){let b;if(d===a){const v=f-c;if(vQK(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(i.kind===2&&i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function QK(o){let e=ys(o);return/^[\w ]+/.test(o)&&(e=`\\b${e}`),/[\w ]+$/.test(o)&&(e=`${e}\\b`),e}class d5{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=LE.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function XK(o){if(o.length===0)return null;if(o.length===1)return o[0];let e=0;function t(){if(e>=o.length)return null;const r=e,a=o[r].listHeight;for(e++;e=2?h5(r===0&&e===o.length?o:o.slice(r,e),!1):o[r]}let i=t(),n=t();if(!n)return i;for(let r=t();r;r=t())uA(i,n)<=uA(n,r)?(i=_S(i,n),n=r):n=_S(n,r);return _S(i,n)}function h5(o,e=!1){if(o.length===0)return null;if(o.length===1)return o[0];let t=o.length;for(;t>3;){const i=t>>1;for(let n=0;n=3?o[2]:null,e)}function uA(o,e){return Math.abs(o.listHeight-e.listHeight)}function _S(o,e){return o.listHeight===e.listHeight?Gr.create23(o,e,null,!1):o.listHeight>e.listHeight?JK(o,e):eq(e,o)}function JK(o,e){o=o.toMutable();let t=o;const i=new Array;let n;for(;;){if(e.listHeight===t.listHeight){n=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(o,n,null,!1):o}function eq(o,e){o=o.toMutable();let t=o;const i=new Array;for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let n=e;for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(n,o,null,!1):o}class tq{constructor(e){this.lastOffset=mo,this.nextNodes=[e],this.offsets=[mo],this.idxs=[]}readLongestNodeAt(e,t){if(Hu(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=Lf(this.nextNodes);if(!i)return;const n=Lf(this.offsets);if(Hu(e,n))return;if(Hu(n,e))if(Xt(n,i.length)<=e)this.nextNodeAfterCurrent();else{const s=bS(i);s!==-1?(this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const s=bS(i);if(s===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)}}}}nextNodeAfterCurrent(){for(;;){const e=Lf(this.offsets),t=Lf(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=Lf(this.nextNodes),n=bS(i,this.idxs[this.idxs.length-1]);if(n!==-1){this.nextNodes.push(i.getChild(n)),this.offsets.push(Xt(e,t.length)),this.idxs[this.idxs.length-1]=n;break}else this.idxs.pop()}}}function bS(o,e=-1){for(;;){if(e++,e>=o.childrenLength)return-1;if(o.getChild(e))return e}}function Lf(o){return o.length>0?o[o.length-1]:void 0}function CD(o,e,t,i){return new iq(o,e,t,i).parseDocument()}class iq{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new tq(i):void 0,this.positionMapper=new $K(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ui.getEmpty());return e||(e=Gr.getEmpty()),e}parseList(e){const t=new Array;for(;;){const n=this.tokenizer.peek();if(!n||n.kind===2&&n.bracketIds.intersects(e))break;const s=this.parseChild(e);s.kind===4&&s.childrenLength===0||t.push(s)}return this.oldNodeReader?XK(t):h5(t,this.createImmutableLists)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!VK(i)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),s=>Hu(s.length,i)?s.canBeReused(e):!1);if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new GK(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),n=this.parseList(i),s=this.tokenizer.peek();return s&&s.kind===2&&(s.bracketId===t.bracketId||s.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),dm.create(t.astNode,n,s.astNode)):dm.create(t.astNode,n,null)}default:throw new Error("unexpected")}}}class nq extends H{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new R,this.denseKeyProvider=new l5,this.brackets=new d5(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,e.tokenization.backgroundTokenizationState===0){const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),n=new YK(this.textModel.getValue(),i);this.initialAstWithoutTokens=CD(n,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else e.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):e.tokenization.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new dA(ii(i.fromLineNumber-1,0),ii(i.toLineNumber,0),ii(i.toLineNumber-i.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map(i=>{const n=L.lift(i.range);return new dA(Ph(n.getStartPosition()),Ph(n.getEndPosition()),UK(i.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const n=t,s=new c5(this.textModel,this.brackets);return CD(s,e,n,i)}getBracketsInRange(e){const t=ii(e.startLineNumber-1,e.startColumn-1),i=ii(e.endLineNumber-1,e.endColumn-1),n=new Array,s=this.initialAstWithoutTokens||this.astWithTokens;return wD(s,mo,s.length,t,i,n,0,new Map),n}getBracketPairsInRange(e,t){const i=new Array,n=Ph(e.getStartPosition()),s=Ph(e.getEndPosition()),r=this.initialAstWithoutTokens||this.astWithTokens,a=new sq(i,t,this.textModel);return SD(r,mo,r.length,n,s,a,0,new Map),i}getFirstBracketAfter(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return g5(t,mo,t.length,Ph(e))}getFirstBracketBefore(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return u5(t,mo,t.length,Ph(e))}}function u5(o,e,t,i){if(o.kind===4||o.kind===2){const n=[];for(const s of o.children)t=Xt(e,s.length),n.push({nodeOffsetStart:e,nodeOffsetEnd:t}),e=t;for(let s=n.length-1;s>=0;s--){const{nodeOffsetStart:r,nodeOffsetEnd:a}=n[s];if(Hu(r,i)){const l=u5(o.children[s],r,a,i);if(l)return l}}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function g5(o,e,t,i){if(o.kind===4||o.kind===2){for(const n of o.children){if(t=Xt(e,n.length),Hu(i,t)){const s=g5(n,e,t,i);if(s)return s}e=t}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function wD(o,e,t,i,n,s,r,a){if(!(r>200)){if(o.kind===4)for(const l of o.children)t=Xt(e,l.length),Fl(e,n)&&Gf(t,i)&&wD(l,e,t,i,n,s,r,a),e=t;else if(o.kind===2){let l=0;if(a){let c=a.get(o.openingBracket.text);c===void 0&&(c=0),l=c,c++,a.set(o.openingBracket.text,c)}{const c=o.openingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!o.closingBracket))}e=t}if(o.child){const c=o.child;t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)&&wD(c,e,t,i,n,s,r+1,a),e=t}if(o.closingBracket){const c=o.closingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!1))}e=t}a==null||a.set(o.openingBracket.text,l)}else if(o.kind===3){const l=ja(e,t);s.push(new mb(l,r-1,0,!0))}else if(o.kind===1){const l=ja(e,t);s.push(new mb(l,r-1,0,!1))}}}class sq{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function SD(o,e,t,i,n,s,r,a){var l;if(!(r>200))if(o.kind===2){let c=0;if(a){let u=a.get(o.openingBracket.text);u===void 0&&(u=0),c=u,u++,a.set(o.openingBracket.text,u)}const d=Xt(e,o.openingBracket.length);let h=-1;if(s.includeMinIndentation&&(h=o.computeMinIndentation(e,s.textModel)),s.result.push(new BK(ja(e,t),ja(e,d),o.closingBracket?ja(Xt(d,((l=o.child)===null||l===void 0?void 0:l.length)||mo),t):void 0,r,c,o,h)),e=d,o.child){const u=o.child;t=Xt(e,u.length),Fl(e,n)&&Gf(t,i)&&SD(u,e,t,i,n,s,r+1,a)}a==null||a.set(o.openingBracket.text,c)}else{let c=e;for(const d of o.children){const h=c;c=Xt(c,d.length),Fl(h,n)&&Fl(i,c)&&SD(d,h,c,i,n,s,r,a)}}}class oq extends H{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new _n),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var n;(!i.languageId||((n=this.bracketPairsTree.value)===null||n===void 0?void 0:n.object.didLanguageChange(i.languageId)))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get canBuildAST(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const e=new Q;this.bracketPairsTree.value=rq(e.add(new nq(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketsInRange(e))||[]}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!r)return null;const a=j0(this.getBracketPairsInRange(L.fromPositions(t,t))||[],l=>r.closes(l.openingBracketInfo));return a?a.openingBracketRange:null}else{const r=e.toLowerCase(),a=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!a)return null;const l=a.textIsBracket[r];return l?_b(this._findMatchingBracketUp(l,n,vS(i))):null}}matchBracket(e,t){if(this.canBuildAST){const i=UO(this.getBracketPairsInRange(L.fromPositions(e,e)).filter(n=>n.closingBracketRange!==void 0&&(n.openingBracketRange.containsPosition(e)||n.closingBracketRange.containsPosition(e))),op(n=>n.openingBracketRange.containsPosition(e)?n.openingBracketRange:n.closingBracketRange,L.compareRangesUsingStarts));return i?[i.openingBracketRange,i.closingBracketRange]:null}else{const i=vS(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),r=t.getLanguageId(n);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let c=n-1;c>=0;c--){const d=t.getEndOffset(c);if(d<=a)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=d;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=n+1;c=l)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){l=d;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!mr(n.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(e,n,a,r),d=null;for(;;){const h=lo.findNextBracketInRange(a.forwardRegex,i,s,l,c);if(!h)break;if(h.startColumn<=e.column&&e.column<=h.endColumn){const u=s.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),g=this._matchFoundBracket(h,a.textIsBracket[u],a.textIsOpenBracket[u],t);if(g){if(g instanceof Da)return null;d=g}}l=h.endColumn-1}if(d)return d}if(r>0&&n.getStartOffset(r)===e.column-1){const l=r-1,c=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(l)).brackets;if(c&&!mr(n.getStandardTokenType(l))){const{searchStartOffset:d,searchEndOffset:h}=this._establishBracketSearchOffsets(e,n,c,l),u=lo.findPrevBracketInRange(c.reversedRegex,i,s,d,h);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn){const g=s.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),f=this._matchFoundBracket(u,c.textIsBracket[g],c.textIsOpenBracket[g],t);if(f)return f instanceof Da?null:f}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof Da?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let r=-1,a=0;const l=(c,d,h,u)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const g=lo.findPrevBracketInRange(s,c,d,h,u);if(!g)break;const f=d.substring(g.startColumn-1,g.endColumn-1).toLowerCase();if(e.isOpen(f)?r++:e.isClose(f)&&r--,r===0)return g;u=g.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const d=this.textModel.tokenization.getLineTokens(c),h=d.getCount(),u=this.textModel.getLineContent(c);let g=h-1,f=u.length,_=u.length;c===t.lineNumber&&(g=d.findTokenIndexAtOffset(t.column-1),f=t.column-1,_=t.column-1);let b=!0;for(;g>=0;g--){const v=d.getLanguageId(g)===n&&!mr(d.getStandardTokenType(g));if(v)b?f=d.getStartOffset(g):(f=d.getStartOffset(g),_=d.getEndOffset(g));else if(b&&f!==_){const C=l(c,u,f,_);if(C)return C}b=v}if(b&&f!==_){const v=l(c,u,f,_);if(v)return v}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let r=1,a=0;const l=(d,h,u,g)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const f=lo.findNextBracketInRange(s,d,h,u,g);if(!f)break;const _=h.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(_)?r++:e.isClose(_)&&r--,r===0)return f;u=f.endColumn-1}return null},c=this.textModel.getLineCount();for(let d=t.lineNumber;d<=c;d++){const h=this.textModel.tokenization.getLineTokens(d),u=h.getCount(),g=this.textModel.getLineContent(d);let f=0,_=0,b=0;d===t.lineNumber&&(f=h.findTokenIndexAtOffset(t.column-1),_=t.column-1,b=t.column-1);let v=!0;for(;f=1;a--){const l=this.textModel.tokenization.getLineTokens(a),c=l.getCount(),d=this.textModel.getLineContent(a);let h=c-1,u=d.length,g=d.length;if(a===i.lineNumber){h=l.findTokenIndexAtOffset(i.column-1),u=i.column-1,g=i.column-1;const _=l.getLanguageId(h);n!==_&&(n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let f=!0;for(;h>=0;h--){const _=l.getLanguageId(h);if(n!==_){if(s&&r&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v);f=!1}n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const b=!!s&&!mr(l.getStandardTokenType(h));if(b)f?u=l.getStartOffset(h):(u=l.getStartOffset(h),g=l.getEndOffset(h));else if(r&&s&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v)}f=b}if(r&&s&&f&&u!==g){const _=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(_)return this._toFoundBracket(r,_)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,r=null,a=null;for(let l=i.lineNumber;l<=n;l++){const c=this.textModel.tokenization.getLineTokens(l),d=c.getCount(),h=this.textModel.getLineContent(l);let u=0,g=0,f=0;if(l===i.lineNumber){u=c.findTokenIndexAtOffset(i.column-1),g=i.column-1,f=i.column-1;const b=c.getLanguageId(u);s!==b&&(s=b,r=this.languageConfigurationService.getLanguageConfiguration(s).brackets,a=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let _=!0;for(;u_.closingBracketRange!==void 0&&_.range.strictContainsRange(g));return f?[f.openingBracketRange,f.closingBracketRange]:null}const n=vS(t),s=this.textModel.getLineCount(),r=new Map;let a=[];const l=(g,f)=>{if(!r.has(g)){const _=[];for(let b=0,v=f?f.brackets.length:0;b{for(;;){if(n&&++c%100===0&&!n())return Da.INSTANCE;const C=lo.findNextBracketInRange(g.forwardRegex,f,_,b,v);if(!C)break;const w=_.substring(C.startColumn-1,C.endColumn-1).toLowerCase(),S=g.textIsBracket[w];if(S&&(S.isOpen(w)?a[S.index]++:S.isClose(w)&&a[S.index]--,a[S.index]===-1))return this._matchFoundBracket(C,S,!1,n);b=C.endColumn-1}return null};let h=null,u=null;for(let g=i.lineNumber;g<=s;g++){const f=this.textModel.tokenization.getLineTokens(g),_=f.getCount(),b=this.textModel.getLineContent(g);let v=0,C=0,w=0;if(g===i.lineNumber){v=f.findTokenIndexAtOffset(i.column-1),C=i.column-1,w=i.column-1;const k=f.getLanguageId(v);h!==k&&(h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u))}let S=!0;for(;v<_;v++){const k=f.getLanguageId(v);if(h!==k){if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y);S=!1}h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u)}const x=!!u&&!mr(f.getStandardTokenType(v));if(x)S||(C=f.getStartOffset(v)),w=f.getEndOffset(v);else if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y)}S=x}if(u&&S&&C!==w){const k=d(u,g,b,C,w);if(k)return _b(k)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.getBracketInfo(i);return n?{range:t,bracketInfo:n}:null}}function rq(o,e){return{object:o,dispose:()=>e==null?void 0:e.dispose()}}function vS(o){if(typeof o>"u")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=o}}class Da{constructor(){this._searchCanceledBrand=void 0}}Da.INSTANCE=new Da;function _b(o){return o instanceof Da?null:o}class aq extends H{constructor(e){super(),this.textModel=e,this.colorProvider=new f5,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(t===void 0)return[];if(!this.colorizationOptions.enabled)return[];const n=new Array,s=this.textModel.bracketPairs.getBracketsInRange(e);for(const r of s)n.push({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:r.range});return n}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new L(1,1,this.textModel.getLineCount(),1),e,t):[]}}class f5{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}Et((o,e)=>{const t=[U4,$4,j4,K4,q4,G4],i=new f5;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${o.getColor(T$)}; }`);const n=t.map(s=>o.getColor(s)).filter(s=>!!s).filter(s=>!s.isTransparent());for(let s=0;s<30;s++){const r=n[s%n.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${r}; }`)}});function bb(o){return o.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class $i{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${bb(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${bb(this.oldText)}")`:`(replace@${this.oldPosition} "${bb(this.oldText)}" with "${bb(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;No(e,n,i),i+=4;for(let s=0;so.length)return!1;if(t){if(!vI(o,e))return!1;if(e.length===o.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,o.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),o.indexOf(e)===0}function m5(o){return o>=65&&o<=90||o>=97&&o<=122}function dq(o,e=Yi){return e?m5(o.charCodeAt(0))&&o.charCodeAt(1)===58:!1}function _r(o){return Q0(o,!0)}class DE{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Bp(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===Me.file)return yD(_r(e),_r(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(pA(e.authority,t.authority))return yD(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return _e.joinPath(e,...t)}basenameOrAuthority(e){return Js(e)||e.authority}basename(e){return gi.basename(e.path)}extname(e){return gi.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Me.file?t=_e.file(sP(_r(e))).path:(t=gi.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Me.file?t=_e.file(nP(_r(e))).path:t=gi.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!pA(e.authority,t.authority))return;if(e.scheme===Me.file){const s=Z6(_r(e),_r(t));return Yi?p5(s):s}let i=e.path||"/";const n=t.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const r=Math.min(i.length,n.length);sgA(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Br){return mA(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Br){let i=!1;if(e.scheme===Me.file){const n=_r(e);i=n!==void 0&&n.length===gA(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=n.length===1&&n.charCodeAt(n.length-1)===47}return!i&&!mA(e,t)?e.with({path:e.path+"/"}):e}}const It=new DE(()=>!1);new DE(o=>o.scheme===Me.file?!dn:!0);new DE(o=>!0);const _5=It.isEqual.bind(It);It.isEqualOrParent.bind(It);It.getComparisonKey.bind(It);const hq=It.basenameOrAuthority.bind(It),Js=It.basename.bind(It),uq=It.extname.bind(It),L1=It.dirname.bind(It),gq=It.joinPath.bind(It),fq=It.normalizePath.bind(It),pq=It.relativePath.bind(It),fA=It.resolvePath.bind(It);It.isAbsolutePath.bind(It);const pA=It.isEqualAuthority.bind(It),mA=It.hasTrailingPathSeparator.bind(It);It.removeTrailingPathSeparator.bind(It);It.addTrailingPathSeparator.bind(It);var cc;(function(o){o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(o.META_DATA_MIME,s),i}o.parseMetaData=e})(cc||(cc={}));function Fh(o){return o.toString()}class Ni{constructor(e,t,i,n,s,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=r,this.changes=a}static create(e,t){const i=e.getAlternativeVersionId(),n=LD(e);return new Ni(i,i,n,n,t,t,[])}append(e,t,i,n,s){t.length>0&&(this.changes=lq(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(No(e,t?t.length:0,i),i+=4,t)for(const n of t)No(e,n.selectionStartLineNumber,i),i+=4,No(e,n.selectionStartColumn,i),i+=4,No(e,n.positionLineNumber,i),i+=4,No(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=Eo(e,t);t+=4;for(let s=0;st.toString()).join(", ")}matchesResource(e){return(_e.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ni}append(e,t,i,n,s){this._data instanceof Ni&&this._data.append(e,t,i,n,s)}close(){this._data instanceof Ni&&(this._data=this._data.serialize())}open(){this._data instanceof Ni||(this._data=Ni.deserialize(this._data))}undo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ni&&(this._data=this._data.serialize()),this._data.byteLength+168}}class mq{constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const s=Fh(n.resource);this._editStackElementsMap.set(s,n)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Fh(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Fh(_e.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Fh(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,n,s){const r=Fh(e.uri);this._editStackElementsMap.get(r).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Fh(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${Js(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function LD(o){return o.getEOL()===` +`?0:1}function ka(o){return o?o instanceof b5||o instanceof mq:!1}class kE{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(ka(t)&&t.canAppend(this._model))return t;const i=new b5(p("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],LD(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),s=this._model.applyEdits(t,!0),r=kE._computeCursorState(i,s),a=s.map((l,c)=>({index:c,textChange:l.textChange}));return a.sort((l,c)=>l.textChange.oldPosition===c.textChange.oldPosition?l.index-c.index:l.textChange.oldPosition-c.textChange.oldPosition),n.append(this._model,a.map(l=>l.textChange),LD(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return Te(i),null}}}class _q{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function bq(o,e,t,i,n){n.spacesDiff=0,n.looksLikeAlignment=!1;let s;for(s=0;s0&&a>0||l>0&&c>0)return;const d=Math.abs(a-c),h=Math.abs(r-l);if(d===0){n.spacesDiff=h,h>0&&0<=l-1&&l-10?n++:S>1&&s++,bq(r,a,b,w,h),h.looksLikeAlignment&&!(t&&e===h.spacesDiff)))continue;const x=h.spacesDiff;x<=c&&d[x]++,r=b,a=w}let u=t;n!==s&&(u=n{const b=d[_];b>f&&(f=b,g=_)}),g===4&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(g=2)}return{insertSpaces:u,tabSize:g}}function Mn(o){return(o.metadata&1)>>>0}function Lt(o,e){o.metadata=o.metadata&254|e<<0}function Zi(o){return(o.metadata&2)>>>1===1}function St(o,e){o.metadata=o.metadata&253|(e?1:0)<<1}function v5(o){return(o.metadata&4)>>>2===1}function bA(o,e){o.metadata=o.metadata&251|(e?1:0)<<2}function vq(o){return(o.metadata&24)>>>3}function vA(o,e){o.metadata=o.metadata&231|e<<3}function Cq(o){return(o.metadata&32)>>>5===1}function CA(o,e){o.metadata=o.metadata&223|(e?1:0)<<5}class C5{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,Lt(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,bA(this,!1),vA(this,1),CA(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,St(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;bA(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),vA(this,this.options.stickiness),CA(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const Oe=new C5(null,0,0);Oe.parent=Oe;Oe.left=Oe;Oe.right=Oe;Lt(Oe,0);class CS{constructor(){this.root=Oe,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s){return this.root===Oe?[]:Iq(this,e,t,i,n,s)}search(e,t,i){return this.root===Oe?[]:xq(this,e,t,i)}collectNodesFromOwner(e){return Dq(this,e)}collectNodesPostOrder(){return kq(this)}insert(e){wA(this,e),this._normalizeDeltaIfNecessary()}delete(e){SA(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,r=i.end+n;i.setCachedOffsets(s,r,t)}acceptReplace(e,t,i,n){const s=yq(this,e,e+t);for(let r=0,a=s.length;rt||i===1?!1:i===2?!0:e}function Sq(o,e,t,i,n){const s=vq(o),r=s===0||s===2,a=s===1||s===2,l=t-e,c=i,d=Math.min(l,c),h=o.start;let u=!1;const g=o.end;let f=!1;e<=h&&g<=t&&Cq(o)&&(o.start=e,u=!0,o.end=e,f=!0);{const b=n?1:l>0?2:0;!u&&Bh(h,r,e,b)&&(u=!0),!f&&Bh(g,a,e,b)&&(f=!0)}if(d>0&&!n){const b=l>c?2:0;!u&&Bh(h,r,e+d,b)&&(u=!0),!f&&Bh(g,a,e+d,b)&&(f=!0)}{const b=n?1:0;!u&&Bh(h,r,t,b)&&(o.start=e+c,u=!0),!f&&Bh(g,a,t,b)&&(o.end=e+c,f=!0)}const _=c-l;u||(o.start=Math.max(0,h+_)),f||(o.end=Math.max(0,g+_)),o.start>o.end&&(o.end=o.start)}function yq(o,e,t){let i=o.root,n=0,s=0,r=0,a=0;const l=[];let c=0;for(;i!==Oe;){if(Zi(i)){St(i.left,!1),St(i.right,!1),i===i.parent.right&&(n-=i.parent.delta),i=i.parent;continue}if(!Zi(i.left)){if(s=n+i.maxEnd,st){St(i,!0);continue}if(a=n+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[c++]=i),St(i,!0),i.right!==Oe&&!Zi(i.right)){n+=i.delta,i=i.right;continue}}return St(o.root,!1),l}function Lq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=i-(t-e);for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),dc(n),n=n.parent;continue}if(!Zi(n.left)){if(r=s+n.maxEnd,rt){n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(o.requestNormalizeDelta=!0),St(n,!0);continue}if(St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}St(o.root,!1)}function Dq(o,e){let t=o.root;const i=[];let n=0;for(;t!==Oe;){if(Zi(t)){St(t.left,!1),St(t.right,!1),t=t.parent;continue}if(t.left!==Oe&&!Zi(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[n++]=t),St(t,!0),t.right!==Oe&&!Zi(t.right)){t=t.right;continue}}return St(o.root,!1),i}function kq(o){let e=o.root;const t=[];let i=0;for(;e!==Oe;){if(Zi(e)){St(e.left,!1),St(e.right,!1),e=e.parent;continue}if(e.left!==Oe&&!Zi(e.left)){e=e.left;continue}if(e.right!==Oe&&!Zi(e.right)){e=e.right;continue}t[i++]=e,St(e,!0)}return St(o.root,!1),t}function xq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=[];let c=0;for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),n=n.parent;continue}if(n.left!==Oe&&!Zi(n.left)){n=n.left;continue}r=s+n.start,a=s+n.end,n.setCachedOffsets(r,a,i);let d=!0;if(e&&n.ownerId&&n.ownerId!==e&&(d=!1),t&&v5(n)&&(d=!1),d&&(l[c++]=n),St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}return St(o.root,!1),l}function Iq(o,e,t,i,n,s){let r=o.root,a=0,l=0,c=0,d=0;const h=[];let u=0;for(;r!==Oe;){if(Zi(r)){St(r.left,!1),St(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;continue}if(!Zi(r.left)){if(l=a+r.maxEnd,lt){St(r,!0);continue}if(d=a+r.end,d>=e){r.setCachedOffsets(c,d,s);let g=!0;i&&r.ownerId&&r.ownerId!==i&&(g=!1),n&&v5(r)&&(g=!1),g&&(h[u++]=r)}if(St(r,!0),r.right!==Oe&&!Zi(r.right)){a+=r.delta,r=r.right;continue}}return St(o.root,!1),h}function wA(o,e){if(o.root===Oe)return e.parent=Oe,e.left=Oe,e.right=Oe,Lt(e,0),o.root=e,o.root;Eq(o,e),Dl(e.parent);let t=e;for(;t!==o.root&&Mn(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,_p(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),bp(o,t.parent.parent))}else{const i=t.parent.parent.left;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,bp(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),_p(o,t.parent.parent))}return Lt(o.root,0),e}function Eq(o,e){let t=0,i=o.root;const n=e.start,s=e.end;for(;;)if(Tq(n,s,i.start+t,i.end+t)<0)if(i.left===Oe){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===Oe){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=Oe,e.right=Oe,Lt(e,1)}function SA(o,e){let t,i;if(e.left===Oe?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===Oe?(t=e.left,i=e):(i=Nq(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(o.requestNormalizeDelta=!0)),i===o.root){o.root=t,Lt(t,0),e.detach(),wS(),dc(t),o.root.parent=Oe;return}const n=Mn(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,Lt(i,Mn(e)),e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Oe&&(i.left.parent=i),i.right!==Oe&&(i.right.parent=i)),e.detach(),n){Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent)),wS();return}Dl(t),Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent));let s;for(;t!==o.root&&Mn(t)===0;)t===t.parent.left?(s=t.parent.right,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),_p(o,t.parent),s=t.parent.right),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.right)===0&&(Lt(s.left,0),Lt(s,1),bp(o,s),s=t.parent.right),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.right,0),_p(o,t.parent),t=o.root)):(s=t.parent.left,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),bp(o,t.parent),s=t.parent.left),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.left)===0&&(Lt(s.right,0),Lt(s,1),_p(o,s),s=t.parent.left),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.left,0),bp(o,t.parent),t=o.root));Lt(t,0),wS()}function Nq(o){for(;o.left!==Oe;)o=o.left;return o}function wS(){Oe.parent=Oe,Oe.delta=0,Oe.start=0,Oe.end=0}function _p(o,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==Oe&&(t.left.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,dc(e),dc(t)}function bp(o,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(o.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==Oe&&(t.right.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,dc(e),dc(t)}function w5(o){let e=o.end;if(o.left!==Oe){const t=o.left.maxEnd;t>e&&(e=t)}if(o.right!==Oe){const t=o.right.maxEnd+o.delta;t>e&&(e=t)}return e}function dc(o){o.maxEnd=w5(o)}function Dl(o){for(;o!==Oe;){const e=w5(o);if(o.maxEnd===e)return;o.maxEnd=e,o=o.parent}}function Tq(o,e,t,i){return o===t?e-i:o-t}class DD{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Ie)return xE(this.right);let e=this;for(;e.parent!==Ie&&e.parent.left!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}prev(){if(this.left!==Ie)return S5(this.left);let e=this;for(;e.parent!==Ie&&e.parent.right!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ie=new DD(null,0);Ie.parent=Ie;Ie.left=Ie;Ie.right=Ie;Ie.color=0;function xE(o){for(;o.left!==Ie;)o=o.left;return o}function S5(o){for(;o.right!==Ie;)o=o.right;return o}function IE(o){return o===Ie?0:o.size_left+o.piece.length+IE(o.right)}function EE(o){return o===Ie?0:o.lf_left+o.piece.lineFeedCnt+EE(o.right)}function SS(){Ie.parent=Ie}function vp(o,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==Ie&&(t.left.parent=e),t.parent=e.parent,e.parent===Ie?o.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function Cp(o,e){const t=e.left;e.left=t.right,t.right!==Ie&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===Ie?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function vb(o,e){let t,i;if(e.left===Ie?(i=e,t=i.right):e.right===Ie?(i=e,t=i.left):(i=xE(e.right),t=i.right),i===o.root){o.root=t,t.color=0,e.detach(),SS(),o.root.parent=Ie;return}const n=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,Zf(o,t)):(i.parent===e?t.parent=i:t.parent=i.parent,Zf(o,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Ie&&(i.left.parent=i),i.right!==Ie&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,Zf(o,i)),e.detach(),t.parent.left===t){const r=IE(t),a=EE(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,c=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,ma(o,t.parent,l,c)}}if(Zf(o,t.parent),n){SS();return}let s;for(;t!==o.root&&t.color===0;)t===t.parent.left?(s=t.parent.right,s.color===1&&(s.color=0,t.parent.color=1,vp(o,t.parent),s=t.parent.right),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.right.color===0&&(s.left.color=0,s.color=1,Cp(o,s),s=t.parent.right),s.color=t.parent.color,t.parent.color=0,s.right.color=0,vp(o,t.parent),t=o.root)):(s=t.parent.left,s.color===1&&(s.color=0,t.parent.color=1,Cp(o,t.parent),s=t.parent.left),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.left.color===0&&(s.right.color=0,s.color=1,vp(o,s),s=t.parent.left),s.color=t.parent.color,t.parent.color=0,s.left.color=0,Cp(o,t.parent),t=o.root));t.color=0,SS()}function yA(o,e){for(Zf(o,e);e!==o.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,vp(o,e)),e.parent.color=0,e.parent.parent.color=1,Cp(o,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,Cp(o,e)),e.parent.color=0,e.parent.parent.color=1,vp(o,e.parent.parent))}o.root.color=0}function ma(o,e,t,i){for(;e!==o.root&&e!==Ie;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function Zf(o,e){let t=0,i=0;if(e!==o.root){for(;e!==o.root&&e===e.parent.right;)e=e.parent;if(e!==o.root)for(e=e.parent,t=IE(e.left)-e.size_left,i=EE(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==o.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const ca=65535;function y5(o){let e;return o[o.length-1]<65536?e=new Uint16Array(o.length):e=new Uint32Array(o.length),e.set(o,0),e}class Aq{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function Ca(o,e=!0){const t=[0];let i=1;for(let n=0,s=o.length;n126)&&(r=!1)}const a=new Aq(y5(o),i,n,s,r);return o.length=0,a}class qn{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class Jc{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Rq{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Ie&&e.iterate(e.root,i=>(i!==Ie&&this._pieces.push(i.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Oq{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e){i[n]=null,t=!0;continue}}if(t){const n=[];for(const s of i)s!==null&&n.push(s);this._cache=n}}}class Pq{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Jc("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ie,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,r=e.length;s0){e[s].lineStarts||(e[s].lineStarts=Ca(e[s].buffer));const a=new qn(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,a)}this._searchCache=new Oq(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=ca,i=t-Math.floor(t/3),n=i*2;let s="",r=0;const a=[];if(this.iterate(this.root,l=>{const c=this.getNodeContent(l),d=c.length;if(r<=i||r+d0){const l=s.replace(/\r\n|\r|\n/g,e);a.push(new Jc(l,Ca(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Rq(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==Ie;)if(n.left!==Ie&&n.lf_left+1>=e)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;const s=this.getAccumulatedValue(n,e-n.lf_left-2);return i+=s+t-1}else e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right;return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==Ie;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,s.index===0){const r=this.getOffsetAt(i+1,1),a=n-r;return new B(i+1,a+1)}return new B(i+1,s.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Ie){const s=this.getOffsetAt(i+1,1),r=n-e-s;return new B(i+1,r+1)}else t=t.right;return new B(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t!==this._EOL||!this._EOLNormalized?s.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(c+e.remainder,c+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==Ie;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,s=>{if(s===Ie)return!0;const r=s.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,d=r.start.line,h=r.end.line;let u=c[d]+r.start.column;if(n&&(l.charCodeAt(u)===10&&(u++,a--),e[t++]=i,i="",n=!1,a===0))return!0;if(d===h)return!this._EOLNormalized&&l.charCodeAt(u+a-1)===13?(n=!0,i+=l.substr(u,a-1)):i+=l.substr(u,a),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,c[d+1]-this._EOLLength)):l.substring(u,c[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let g=d+1;gS+f,t.reset(0)):(C=u.buffer,w=S=>S,t.reset(f));do if(b=t.next(C),b){if(w(b.index)>=_)return d;this.positionInBuffer(e,w(b.index)-g,v);const S=this.getLineFeedCnt(e.piece.bufferIndex,s,v),k=v.line===s.line?v.column-s.column+n:v.column+1,x=k+b[0].length;if(h[d++]=Gc(new L(i+S,k,i+S,x),b,l),w(b.index)+b[0].length>=_||d>=c)return d}while(b);return d}findMatchesLineByLine(e,t,i,n){const s=[];let r=0;const a=new du(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(c===null)return[];let d=this.positionInBuffer(l.node,l.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(l.node===c.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,d,h,t,i,n,r,s),s;let u=e.startLineNumber,g=l.node;for(;g!==c.node;){const _=this.getLineFeedCnt(g.piece.bufferIndex,d,g.piece.end);if(_>=1){const v=this._buffers[g.piece.bufferIndex].lineStarts,C=this.offsetInBuffer(g.piece.bufferIndex,g.piece.start),w=v[d.line+_],S=u===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(g,a,u,S,d,this.positionInBuffer(g,w-C),t,i,n,r,s),r>=n)return s;u+=_}const b=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const v=this.getLineContent(u).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,a,v,e.endLineNumber,b,r,s,i,n),s}if(r=this._findMatchesInLine(t,a,this.getLineContent(u).substr(b),u,b,r,s,i,n),r>=n)return s;u++,l=this.nodeAt2(u,1),g=l.node,d=this.positionInBuffer(l.node,l.remainder)}if(u===e.endLineNumber){const _=u===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(u).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,s,i,n),s}const f=u===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,a,u,f,d,h,t,i,n,r,s),s}_findMatchesInLine(e,t,i,n,s,r,a,l,c){const d=e.wordSeparators;if(!l&&e.simpleSearch){const u=e.simpleSearch,g=u.length,f=i.length;let _=-g;for(;(_=i.indexOf(u,_+g))!==-1;)if((!d||FI(d,i,f,_,g))&&(a[r++]=new Vp(new L(n,_+1+s,n,_+1+g+s),null),r>=c))return r;return r}let h;t.reset(0);do if(h=t.next(i),h&&(a[r++]=Gc(new L(n,h.index+1+s,n,h.index+1+h[0].length+s),h,l),r>=c))return r;while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ie){const{node:n,remainder:s,nodeStartOffset:r}=this.nodeAt(e),a=n.piece,l=a.bufferIndex,c=this.positionInBuffer(n,s);if(n.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const d=[];let h=new qn(a.bufferIndex,c,a.end,this.getLineFeedCnt(a.bufferIndex,c,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(n,s)===10){const _={line:h.start.line+1,column:0};h=new qn(h.bufferIndex,_,h.end,this.getLineFeedCnt(h.bufferIndex,_,h.end),h.length-1),t+=` `}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(this.nodeCharCodeAt(n,s-1)===13){const _=this.positionInBuffer(n,s-1);this.deleteNodeTail(n,_),t="\r"+t,n.piece.length===0&&d.push(n)}else this.deleteNodeTail(n,c);else this.deleteNodeTail(n,c);const u=this.createNewPieces(t);h.length>0&&this.rbInsertRight(n,h);let g=n;for(let f=0;f=0;r--)s=this.rbInsertLeft(s,n[r]);this.validateCRLFWithPrevNode(s),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+=` `);const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let s=n;for(let r=1;r=u)c=h+1;else break;return i?(i.line=h,i.column=l-g,null):{line:h,column:l-g}}getLineFeedCnt(e,t,i){if(i.column===0)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const s=n[i.line+1],r=n[i.line]+i.column;if(s>r+1)return i.line-t.line;const a=r-1;return this._buffers[e].buffer.charCodeAt(a)===13?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tca){const d=[];for(;e.length>ca;){const u=e.charCodeAt(ca-1);let g;u===13||u>=55296&&u<=56319?(g=e.substring(0,ca-1),e=e.substring(ca-1)):(g=e.substring(0,ca),e=e.substring(ca));const f=Ca(g);d.push(new qn(this._buffers.length,{line:0,column:0},{line:f.length-1,column:g.length-f[f.length-1]},f.length-1,g.length)),this._buffers.push(new Jc(g,f))}const h=Ca(e);return d.push(new qn(this._buffers.length,{line:0,column:0},{line:h.length-1,column:e.length-h[h.length-1]},h.length-1,e.length)),this._buffers.push(new Jc(e,h)),d}let t=this._buffers[0].buffer.length;const i=Ca(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&t!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let d=0;d=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this.getAccumulatedValue(i,e-i.lf_left-1),d=this._buffers[i.piece.bufferIndex].buffer,h=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:r,nodeStartLineNumber:a-(e-1-i.lf_left)}),d.substring(h+l,h+c-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this._buffers[i.piece.bufferIndex].buffer,d=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=c.substring(d+l,d+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==Ie;){const r=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const a=this.getAccumulatedValue(i,0),l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=r.substring(l,l+a-t),n}else{const a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=r.substr(a,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==Ie;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),s=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const r=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(r!==s)return{index:r,remainder:0}}return{index:s,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,s=i.start.line+t+1;return s>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[s]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.end),r=t,a=this.offsetInBuffer(i.bufferIndex,r),l=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=l-n,d=a-s,h=i.length+d;e.piece=new qn(i.bufferIndex,i.start,r,l,h),ma(this,e,d,c)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.start),r=t,a=this.getLineFeedCnt(i.bufferIndex,r,i.end),l=this.offsetInBuffer(i.bufferIndex,r),c=a-n,d=s-l,h=i.length+d;e.piece=new qn(i.bufferIndex,r,i.end,a,h),ma(this,e,d,c)}shrinkNode(e,t,i){const n=e.piece,s=n.start,r=n.end,a=n.length,l=n.lineFeedCnt,c=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,c),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,s);e.piece=new qn(n.bufferIndex,n.start,c,d,h),ma(this,e,h-a,d-l);const u=new qn(n.bufferIndex,i,r,this.getLineFeedCnt(n.bufferIndex,i,r),this.offsetInBuffer(n.bufferIndex,r)-this.offsetInBuffer(n.bufferIndex,i)),g=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(g)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=` `);const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const s=Ca(t,!1);for(let g=0;ge)t=t.left;else if(t.size_left+t.piece.length>=e){n+=t.size_left;const s={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(s),s}else e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==Ie;)if(i.left!==Ie&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(s+t-1,r),nodeStartOffset:n}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2);if(s+t-1<=i.piece.length)return{node:i,remainder:s+t-1,nodeStartOffset:n};t-=i.piece.length-s;break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==Ie;){if(i.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(i,0),r=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,s),nodeStartOffset:r}}else if(i.piece.length>=t-1){const s=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:s}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` `)}startWithLF(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===Ie||e.piece.lineFeedCnt===0)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,s=i[n]+t.start.column;return n===i.length-1||i[n+1]>s+1?!1:this._buffers[t.bufferIndex].buffer.charCodeAt(s)===10}endWithCR(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===Ie||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let s;e.piece.end.column===0?s={line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:s={line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new qn(e.piece.bufferIndex,e.piece.start,s,a,r),ma(this,e,-1,-1),e.piece.length===0&&i.push(e);const l={line:t.piece.start.line+1,column:0},c=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,l,t.piece.end);t.piece=new qn(t.piece.bufferIndex,l,t.piece.end,d,c),ma(this,t,-1,-1),t.piece.length===0&&i.push(t);const h=this.createNewPieces(`\r `);this.rbInsertRight(e,h[0]);for(let u=0;ub.sortIndex-v.sortIndex)}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._mightContainNonBasicASCII=r;const g=this._doApplyEdits(l);let f=null;if(t&&h.length>0){h.sort((_,b)=>b.lineNumber-_.lineNumber),f=[];for(let _=0,b=h.length;_0&&h[_-1].lineNumber===v)continue;const C=h[_].oldContent,w=this.getLineContent(v);w.length===0||w===C||kn(w)!==-1||f.push(v)}}return this._onDidChangeContent.fire(),new VB(u,g,f)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,s=new L(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let r=i.startLineNumber,a=i.startColumn;const l=[];for(let g=0,f=e.length;g0&&l.push(_.text),r=b.endLineNumber,a=b.endColumn}const c=l.join(""),[d,h,u]=Hd(c);return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,0),text:c,eolCount:d,firstLineLength:h,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(zu._sortOpsDescending);const t=[];for(let i=0;i0){const u=l.eolCount+1;u===1?h=new L(c,d,c,d+l.firstLineLength):h=new L(c,d,c+u-1,l.lastLineLength+1)}else h=new L(c,d,c,d);i=h.endLineNumber,n=h.endColumn,t.push(h),s=l}return t}static _sortOpsAscending(e,t){const i=L.compareRangesUsingEnds(e.range,t.range);return i===0?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=L.compareRangesUsingEnds(e.range,t.range);return i===0?t.sortIndex-e.sortIndex:-i}}class Fq{constructor(e,t,i,n,s,r,a,l,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=s,this._containsRTL=r,this._containsUnusualLineTerminators=a,this._isBasicASCII=l,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return t===0?e===1?` @@ -94,7 +94,7 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config `:` `}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&(t===`\r `&&(this._cr>0||this._lf>0)||t===` -`&&(this._cr>0||this._crlf>0)))for(let s=0,r=i.length;s=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=Mq(this._tmpLineStarts,e);this.chunks.push(new Jc(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=eg(e)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=pP(e))}finish(e=!0){return this._finish(),new Fq(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Ca(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class Bq{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class yS{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new Bq(e,[t]))}finalize(){return this._tokens}}class LA{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let n=0;n{const s=this._textModel.getLanguageId();n.changedLanguages.indexOf(s)!==-1&&(this._resetTokenizationState(),this._tokenizationPart.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(e){if(e.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let t=0,i=e.changes.length;t{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}tokenizeViewport(e,t){const i=new yS;this._tokenizeViewport(i,e,t),this._tokenizationPart.setTokens(i.finalize(),this._isTokenizationComplete())}reset(){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}forceTokenization(e){const t=new yS;this._updateTokensUntilLine(t,e),this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}getTokenTypeIfInsertingCharacter(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);const i=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),r=s.substring(0,e.column-1)+t+s.substring(e.column-1),a=Df(this._languageIdCodec,n,this._tokenizationStateStore.tokenizationSupport,r,!0,i),l=new Di(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const c=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(n);const r=this._tokenizationStateStore.getBeginState(n-1);if(!r)return null;const a=this._textModel.getLineContent(n),l=a.substring(0,s-1)+i+a.substring(s-1+t),c=this._textModel.getLanguageIdAtPosition(n,0),d=Df(this._languageIdCodec,c,this._tokenizationStateStore.tokenizationSupport,l,!0,r);return new Di(d.tokens,l,this._languageIdCodec)}isCheapToTokenize(e){if(!this._tokenizationStateStore)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return e>t?!1:e=this._textModel.getLineCount():!1}_tokenizeOneInvalidLine(e){if(!this._tokenizationStateStore||!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}_updateTokensUntilLine(e,t){if(!this._tokenizationStateStore)return;const i=this._textModel.getLanguageId(),n=this._textModel.getLineCount(),s=t-1;for(let r=this._tokenizationStateStore.invalidLineStartIndex;r<=s;r++){const a=this._textModel.getLineContent(r+1),l=this._tokenizationStateStore.getBeginState(r),c=Df(this._languageIdCodec,i,this._tokenizationStateStore.tokenizationSupport,a,!0,l);e.add(r+1,c.tokens),this._tokenizationStateStore.setEndState(n,r,c.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(e,t,i){if(!this._tokenizationStateStore||i<=this._tokenizationStateStore.invalidLineStartIndex)return;if(t<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(e,i);return}let n=this._textModel.getLineFirstNonWhitespaceColumn(t);const s=[];let r=null;for(let c=t-1;n>1&&c>=1;c--){const d=this._textModel.getLineFirstNonWhitespaceColumn(c);if(d!==0&&d=0;c--)l=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,s[c],!1,l).endState;for(let c=t;c<=i;c++){const d=this._textModel.getLineContent(c),h=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,d,!0,l);e.add(c,h.tokens),this._tokenizationStateStore.markMustBeTokenized(c-1),l=h.endState}}}function Hq(o,e){if(o.isTooLargeForTokenization())return[null,null];const t=Wt.get(e.getLanguageId());if(!t)return[null,null];let i;try{i=t.getInitialState()}catch(n){return Te(n),[null,null]}return[t,i]}function Df(o,e,t,i,n,s){let r=null;if(t)try{r=t.tokenizeEncoded(i,n,s.clone())}catch(a){Te(a)}return r||(r=qC(o.encodeLanguageId(e),s)),Di.convertToEndOffset(r.tokens,i.length),r}const wa=new Uint32Array(0).buffer;class Cr{static deleteBeginning(e,t){return e===null||e===wa?e:Cr.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===wa)return e;const i=Aa(e),n=i[i.length-2];return Cr.delete(e,t,n)}static delete(e,t,i){if(e===null||e===wa||t===i)return e;const n=Aa(e),s=n.length>>>1;if(t===0&&n[n.length-2]===i)return wa;const r=Di.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0,l=n[r<<1];if(id&&(n[c++]=f,n[c++]=n[(g<<1)+1],d=f)}if(c===n.length)return e;const u=new Uint32Array(c);return u.set(n.subarray(0,c),0),u.buffer}static append(e,t){if(t===wa)return e;if(e===wa)return t;if(e===null)return e;if(t===null)return null;const i=Aa(e),n=Aa(t),s=n.length>>>1,r=new Uint32Array(i.length+n.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c>>1;let r=Di.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let a=r;a1&&(s=qi.getLanguageId(n[1])!==e),!s)return wa}if(!n||n.length===0){const s=new Uint32Array(2);return s[0]=t,s[1]=DA(e),s.buffer}return n[n.length-2]=t,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=Cr.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=Cr.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len)){if(t===0){this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i);return}this._lineTokens[n]=Cr.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)}}}function DA(o){return(o<<0|0<<8|0<<11|1<<15|2<<24|1024)>>>0}class NE{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),r=t[t.length-1].getRange();if(!s||!r)return e;i=e.plusRange(s).plusRange(r)}let n=null;for(let s=0,r=this._pieces.length;si.endLineNumber){n=n||{index:s};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(a.endLineNumberi.endLineNumber){n=n||{index:s};continue}const[l,c]=a.split(i);if(l.isEmpty()){n=n||{index:s};continue}c.isEmpty()||(this._pieces.splice(s,1,l,c),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=RC(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(t.getLineContent().length===0)return t;const i=this._pieces;if(i.length===0)return t;const n=NE._findFirstPieceWithLine(i,e),s=i[n].getLineTokens(e);if(!s)return t;const r=t.getCount(),a=s.getCount();let l=0;const c=[];let d=0,h=0;const u=(g,f)=>{g!==h&&(h=g,c[d++]=g,c[d++]=f)};for(let g=0;g>>0,C=~v>>>0;for(;lt)n=s-1;else{for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}}return i}acceptEdit(e,t,i,n,s){for(const r of this._pieces)r.acceptEdit(e,t,i,n,s)}}class Rv extends nF{constructor(e,t,i,n,s){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this.bracketPairsTextModelPart=n,this._languageId=s,this._onDidChangeLanguage=this._register(new R),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new R),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new R),this.onDidChangeTokens=this._onDidChangeTokens.event,this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new R),this._tokens=new Mv(this._languageService.languageIdCodec),this._semanticTokens=new NE(this._languageService.languageIdCodec),this._tokenization=new Vq(i,this,this._languageService.languageIdCodec),this._languageRegistryListener=this._languageConfigurationService.onDidChange(r=>{r.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})}acceptEdit(e,t,i,n,s){this._tokens.acceptEdit(e,i,n),this._semanticTokens.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}handleDidChangeAttached(){this._tokenization.handleDidChangeAttached()}flush(){this._tokens.flush(),this._semanticTokens.flush()}handleDidChangeContent(e){this._tokenization.handleDidChangeContent(e)}dispose(){this._languageRegistryListener.dispose(),this._tokenization.dispose(),super.dispose()}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(this._backgroundTokenizationState===2)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this.bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}setTokens(e,t=!1){if(e.length!==0){const i=[];for(let n=0,s=e.length;n0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._textModel.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this.bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,i)}getTokenTypeIfInsertingCharacter(e,t,i){const n=this._textModel.validatePosition(new B(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){const n=this._textModel.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(n,t,i)}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[r,a]=Rv._findLanguageBoundaries(n,s),l=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(s>0&&r===t.column-1){const[c,d]=Rv._findLanguageBoundaries(n,s-1),h=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(c,d),c);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let s=e.getLineContent().length;for(let r=t,a=e.getCount();r=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},LS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function Uq(o){const e=new LF;return e.acceptChunk(o),e.finish()}function $q(o){const e=new LF;let t;for(;typeof(t=o.read())=="string";)e.acceptChunk(t);return e.finish()}function kA(o,e){let t;return typeof o=="string"?t=Uq(o):BB(o)?t=$q(o):t=o,t.create(e)}let Cb=0;const jq=999,Kq=1e4;class qq{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const n=this._source.read();if(n===null)return this._eos=!0,t===0?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=64*1024)return e.join("")}while(!0)}}const kf=()=>{throw new Error("Invalid change accessor")};let il=class Yf extends H{constructor(e,t,i,n=null,s,r,a){super(),this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new R),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Qq(u=>this.handleBeforeFireDecorationsChangedEvent(u))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new R),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new R),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new R),this._eventEmitter=this._register(new Xq),this._deltaDecorationCallCnt=0,Cb++,this.id="$model"+Cb,this.isForSimpleWidget=i.isForSimpleWidget,typeof n>"u"||n===null?this._associatedResource=_e.parse("inmemory://model/"+Cb):this._associatedResource=n,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=kA(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=Yf.resolveOptions(this._buffer,i),this._bracketPairs=this._register(new oq(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Aj(this,this._languageConfigurationService)),this._decorationProvider=this._register(new aq(this)),this._tokenizationTextModelPart=new Rv(this._languageService,this._languageConfigurationService,this,this._bracketPairs,t);const d=this._buffer.getLineCount(),h=this._buffer.getValueLengthInRange(new L(1,1,d,this._buffer.getLineLength(d)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=h>Yf.LARGE_FILE_SIZE_THRESHOLD||d>Yf.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=h>Yf.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=mP(Cb),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new xA,this._commandManager=new kE(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){const i=_A(e,t.tabSize,t.insertSpaces);return new p0({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new p0({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return qo(this._eventEmitter.fastEvent(t=>e(t)),this._onDidChangeInjectedText.event(t=>e(t)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new zu([],"",` +`&&(this._cr>0||this._crlf>0)))for(let s=0,r=i.length;s=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=Mq(this._tmpLineStarts,e);this.chunks.push(new Jc(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=eg(e)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=pP(e))}finish(e=!0){return this._finish(),new Fq(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Ca(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class Bq{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class yS{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new Bq(e,[t]))}finalize(){return this._tokens}}class LA{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let n=0;n{const s=this._textModel.getLanguageId();n.changedLanguages.indexOf(s)!==-1&&(this._resetTokenizationState(),this._tokenizationPart.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(e){if(e.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let t=0,i=e.changes.length;t{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}tokenizeViewport(e,t){const i=new yS;this._tokenizeViewport(i,e,t),this._tokenizationPart.setTokens(i.finalize(),this._isTokenizationComplete())}reset(){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}forceTokenization(e){const t=new yS;this._updateTokensUntilLine(t,e),this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}getTokenTypeIfInsertingCharacter(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);const i=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),r=s.substring(0,e.column-1)+t+s.substring(e.column-1),a=Df(this._languageIdCodec,n,this._tokenizationStateStore.tokenizationSupport,r,!0,i),l=new Di(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const c=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(n);const r=this._tokenizationStateStore.getBeginState(n-1);if(!r)return null;const a=this._textModel.getLineContent(n),l=a.substring(0,s-1)+i+a.substring(s-1+t),c=this._textModel.getLanguageIdAtPosition(n,0),d=Df(this._languageIdCodec,c,this._tokenizationStateStore.tokenizationSupport,l,!0,r);return new Di(d.tokens,l,this._languageIdCodec)}isCheapToTokenize(e){if(!this._tokenizationStateStore)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return e>t?!1:e=this._textModel.getLineCount():!1}_tokenizeOneInvalidLine(e){if(!this._tokenizationStateStore||!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}_updateTokensUntilLine(e,t){if(!this._tokenizationStateStore)return;const i=this._textModel.getLanguageId(),n=this._textModel.getLineCount(),s=t-1;for(let r=this._tokenizationStateStore.invalidLineStartIndex;r<=s;r++){const a=this._textModel.getLineContent(r+1),l=this._tokenizationStateStore.getBeginState(r),c=Df(this._languageIdCodec,i,this._tokenizationStateStore.tokenizationSupport,a,!0,l);e.add(r+1,c.tokens),this._tokenizationStateStore.setEndState(n,r,c.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(e,t,i){if(!this._tokenizationStateStore||i<=this._tokenizationStateStore.invalidLineStartIndex)return;if(t<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(e,i);return}let n=this._textModel.getLineFirstNonWhitespaceColumn(t);const s=[];let r=null;for(let c=t-1;n>1&&c>=1;c--){const d=this._textModel.getLineFirstNonWhitespaceColumn(c);if(d!==0&&d=0;c--)l=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,s[c],!1,l).endState;for(let c=t;c<=i;c++){const d=this._textModel.getLineContent(c),h=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,d,!0,l);e.add(c,h.tokens),this._tokenizationStateStore.markMustBeTokenized(c-1),l=h.endState}}}function Hq(o,e){if(o.isTooLargeForTokenization())return[null,null];const t=Wt.get(e.getLanguageId());if(!t)return[null,null];let i;try{i=t.getInitialState()}catch(n){return Te(n),[null,null]}return[t,i]}function Df(o,e,t,i,n,s){let r=null;if(t)try{r=t.tokenizeEncoded(i,n,s.clone())}catch(a){Te(a)}return r||(r=qC(o.encodeLanguageId(e),s)),Di.convertToEndOffset(r.tokens,i.length),r}const wa=new Uint32Array(0).buffer;class Cr{static deleteBeginning(e,t){return e===null||e===wa?e:Cr.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===wa)return e;const i=Aa(e),n=i[i.length-2];return Cr.delete(e,t,n)}static delete(e,t,i){if(e===null||e===wa||t===i)return e;const n=Aa(e),s=n.length>>>1;if(t===0&&n[n.length-2]===i)return wa;const r=Di.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0,l=n[r<<1];if(id&&(n[c++]=f,n[c++]=n[(g<<1)+1],d=f)}if(c===n.length)return e;const u=new Uint32Array(c);return u.set(n.subarray(0,c),0),u.buffer}static append(e,t){if(t===wa)return e;if(e===wa)return t;if(e===null)return e;if(t===null)return null;const i=Aa(e),n=Aa(t),s=n.length>>>1,r=new Uint32Array(i.length+n.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c>>1;let r=Di.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let a=r;a1&&(s=qi.getLanguageId(n[1])!==e),!s)return wa}if(!n||n.length===0){const s=new Uint32Array(2);return s[0]=t,s[1]=DA(e),s.buffer}return n[n.length-2]=t,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=Cr.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=Cr.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len)){if(t===0){this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i);return}this._lineTokens[n]=Cr.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)}}}function DA(o){return(o<<0|0<<8|0<<11|1<<15|2<<24|1024)>>>0}class NE{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),r=t[t.length-1].getRange();if(!s||!r)return e;i=e.plusRange(s).plusRange(r)}let n=null;for(let s=0,r=this._pieces.length;si.endLineNumber){n=n||{index:s};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(a.endLineNumberi.endLineNumber){n=n||{index:s};continue}const[l,c]=a.split(i);if(l.isEmpty()){n=n||{index:s};continue}c.isEmpty()||(this._pieces.splice(s,1,l,c),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=RC(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(t.getLineContent().length===0)return t;const i=this._pieces;if(i.length===0)return t;const n=NE._findFirstPieceWithLine(i,e),s=i[n].getLineTokens(e);if(!s)return t;const r=t.getCount(),a=s.getCount();let l=0;const c=[];let d=0,h=0;const u=(g,f)=>{g!==h&&(h=g,c[d++]=g,c[d++]=f)};for(let g=0;g>>0,C=~v>>>0;for(;lt)n=s-1;else{for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}}return i}acceptEdit(e,t,i,n,s){for(const r of this._pieces)r.acceptEdit(e,t,i,n,s)}}class Rv extends n5{constructor(e,t,i,n,s){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this.bracketPairsTextModelPart=n,this._languageId=s,this._onDidChangeLanguage=this._register(new R),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new R),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new R),this.onDidChangeTokens=this._onDidChangeTokens.event,this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new R),this._tokens=new Mv(this._languageService.languageIdCodec),this._semanticTokens=new NE(this._languageService.languageIdCodec),this._tokenization=new Vq(i,this,this._languageService.languageIdCodec),this._languageRegistryListener=this._languageConfigurationService.onDidChange(r=>{r.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})}acceptEdit(e,t,i,n,s){this._tokens.acceptEdit(e,i,n),this._semanticTokens.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}handleDidChangeAttached(){this._tokenization.handleDidChangeAttached()}flush(){this._tokens.flush(),this._semanticTokens.flush()}handleDidChangeContent(e){this._tokenization.handleDidChangeContent(e)}dispose(){this._languageRegistryListener.dispose(),this._tokenization.dispose(),super.dispose()}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(this._backgroundTokenizationState===2)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this.bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}setTokens(e,t=!1){if(e.length!==0){const i=[];for(let n=0,s=e.length;n0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._textModel.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this.bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,i)}getTokenTypeIfInsertingCharacter(e,t,i){const n=this._textModel.validatePosition(new B(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){const n=this._textModel.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(n,t,i)}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[r,a]=Rv._findLanguageBoundaries(n,s),l=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(s>0&&r===t.column-1){const[c,d]=Rv._findLanguageBoundaries(n,s-1),h=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(c,d),c);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let s=e.getLineContent().length;for(let r=t,a=e.getCount();r=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},LS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function Uq(o){const e=new L5;return e.acceptChunk(o),e.finish()}function $q(o){const e=new L5;let t;for(;typeof(t=o.read())=="string";)e.acceptChunk(t);return e.finish()}function kA(o,e){let t;return typeof o=="string"?t=Uq(o):BB(o)?t=$q(o):t=o,t.create(e)}let Cb=0;const jq=999,Kq=1e4;class qq{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const n=this._source.read();if(n===null)return this._eos=!0,t===0?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=64*1024)return e.join("")}while(!0)}}const kf=()=>{throw new Error("Invalid change accessor")};let il=class Yf extends H{constructor(e,t,i,n=null,s,r,a){super(),this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new R),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Qq(u=>this.handleBeforeFireDecorationsChangedEvent(u))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new R),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new R),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new R),this._eventEmitter=this._register(new Xq),this._deltaDecorationCallCnt=0,Cb++,this.id="$model"+Cb,this.isForSimpleWidget=i.isForSimpleWidget,typeof n>"u"||n===null?this._associatedResource=_e.parse("inmemory://model/"+Cb):this._associatedResource=n,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=kA(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=Yf.resolveOptions(this._buffer,i),this._bracketPairs=this._register(new oq(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Aj(this,this._languageConfigurationService)),this._decorationProvider=this._register(new aq(this)),this._tokenizationTextModelPart=new Rv(this._languageService,this._languageConfigurationService,this,this._bracketPairs,t);const d=this._buffer.getLineCount(),h=this._buffer.getValueLengthInRange(new L(1,1,d,this._buffer.getLineLength(d)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=h>Yf.LARGE_FILE_SIZE_THRESHOLD||d>Yf.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=h>Yf.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=mP(Cb),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new xA,this._commandManager=new kE(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){const i=_A(e,t.tabSize,t.insertSpaces);return new p0({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new p0({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return qo(this._eventEmitter.fastEvent(t=>e(t)),this._onDidChangeInjectedText.event(t=>e(t)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new zu([],"",` `,!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=H.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new vd(e,t)))}setValue(e){if(this._assertNotDisposed(),e===null)return;const{textBuffer:t,disposable:i}=kA(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:s,isRedoing:r,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),r=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokenizationTextModelPart.flush(),this._decorations=Object.create(null),this._decorationsTree=new xA,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Vu([new cK],this._versionId,!1,!1),this._createContentChanged2(new L(1,1,s,r),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=e===1?`\r `:` `;if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),r=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Vu([new uK],this._versionId,!1,!1),this._createContentChanged2(new L(1,1,s,r),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const s=this._buffer.getLineLength(n);s>=Kq?t+=s:e+=s}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=typeof e.tabSize<"u"?e.tabSize:this._options.tabSize,i=typeof e.indentSize<"u"?e.indentSize:this._options.indentSize,n=typeof e.insertSpaces<"u"?e.insertSpaces:this._options.insertSpaces,s=typeof e.trimAutoWhitespace<"u"?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=typeof e.bracketColorizationOptions<"u"?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new p0({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:r});if(this._options.equals(a))return;const l=this._options.createChangeEvent(a);this._options=a,this._bracketPairs.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();const i=_A(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),Sv(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(fP.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(i=>({range:i.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new qq(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` @@ -103,17 +103,17 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config `)<0){const c=new $c(e,i,n,s).parseSearchRequest();if(!c)return null;const d=this.getLineCount();let h=new L(a.lineNumber,a.column,d,this.getLineMaxColumn(d)),u=this.findMatchesLineByLine(h,c,r,1);return J_.findNextMatch(this,new $c(e,i,n,s),a,r),u.length>0||(h=new L(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),u=this.findMatchesLineByLine(h,c,r,1),u.length>0)?u[0]:null}return J_.findNextMatch(this,new $c(e,i,n,s),a,r)}findPreviousMatch(e,t,i,n,s,r){this._assertNotDisposed();const a=this.validatePosition(t);return J_.findPreviousMatch(this,new $c(e,i,n,s),a,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if((this.getEOL()===` `?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof Ww?e:new Ww(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(r.range),text:r.text}));let s=!0;if(e)for(let r=0,a=e.length;rl.endLineNumber,f=l.startLineNumber>u.endLineNumber;if(!g&&!f){c=!0;break}}if(!c){s=!1;break}}if(s)for(let r=0,a=this._trimAutoWhitespaceLines.length;rg.endLineNumber)&&!(l===g.startLineNumber&&g.startColumn===c&&g.isEmpty()&&f&&f.length>0&&f.charAt(0)===` `)&&!(l===g.startLineNumber&&g.startColumn===1&&g.isEmpty()&&f&&f.length>0&&f.charAt(f.length-1)===` -`)){d=!1;break}}if(d){const h=new L(l,1,l,c);t.push(new Ww(null,h,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),s=this._buffer.getLineCount(),r=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,r.length!==0){for(let c=0,d=r.length;c=0;I--){const O=g+I,F=w+I;D.takeFromEndWhile(j=>j.lineNumber>F);const z=D.takeFromEndWhile(j=>j.lineNumber===F);a.push(new lA(O,this.getLineContent(F),z))}if(v<_){const I=g+v;a.push(new dK(I+1,f))}if(vye.lineNumberye.lineNumber===Se)}a.push(new hK(O+1,g+b,re,j))}l+=C}this._emitContentChangedEvent(new Vu(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return n.reverseEdits===null?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(e===null||e.size===0)return;const i=Array.from(e).map(n=>new lA(n,this.getLineContent(n),this._getInjectedTextInLine(n)));this._onDidChangeInjectedText.fire(new oF(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(s,r)=>this._deltaDecorationsImpl(e,[],[{range:s,options:r}])[0],changeDecoration:(s,r)=>{this._changeDecorationImpl(s,r)},changeDecorationOptions:(s,r)=>{this._changeDecorationOptionsImpl(s,EA(r))},removeDecoration:s=>{this._deltaDecorationsImpl(e,[s],[])},deltaDecorations:(s,r)=>s.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,s,r)};let n=null;try{n=t(i)}catch(s){Te(s)}return i.addDecoration=kf,i.changeDecoration=kf,i.changeDecorationOptions=kf,i.removeDecoration=kf,i.deltaDecorations=kf,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),Te(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:IA[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,a,s),n.setOptions(IA[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){const s=this.getLineCount(),r=Math.min(s,Math.max(1,e)),a=Math.min(s,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new L(r,1,a,l),d=this._getDecorationsInRange(c,i,n);return kT(d,this._decorationProvider.getDecorationsInRange(c,i,n)),d}getDecorationsInRange(e,t=0,i=!1){const n=this.validateRange(e),s=this._getDecorationsInRange(n,t,i);return kT(s,this._decorationProvider.getDecorationsInRange(n,t,i)),s}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return er.fromDecorations(n).filter(s=>s.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,s,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,r,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!!(i.options.overviewRuler&&i.options.overviewRuler.color),s=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber)}if(i.options.before||t.before){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}n!==s?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const n=this.getVersionId(),s=t.length;let r=0;const a=i.length;let l=0;const c=new Array(a);for(;ra.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(s=>s.options.showIfCollapsed||!s.range.isEmpty())}getAll(e,t,i,n){const s=e.getVersionId(),r=this._search(t,i,n,s);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{const s=this._decorationsTree0.search(e,t,n),r=this._decorationsTree1.search(e,t,n),a=this._injectedTextDecorationsTree.search(e,t,n);return s.concat(r).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){kS(e)?this._injectedTextDecorationsTree.insert(e):DS(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){kS(e)?this._injectedTextDecorationsTree.delete(e):DS(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){kS(e)?this._injectedTextDecorationsTree.resolveNode(e,t):DS(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function da(o){return o.replace(/[^a-z0-9\-_]/gi," ")}class kF{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Zq extends kF{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:Zs.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Yq extends kF{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?W.fromHex(e):t.getColor(e.id)}}class zd{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof zd?e:new zd(e)}}class Ne{constructor(e){var t,i;this.description=e.description,this.blockClassName=e.blockClassName?da(e.blockClassName):null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?da(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Zq(e.overviewRuler):null,this.minimap=e.minimap?new Yq(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?da(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?da(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?da(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?da(e.marginClassName):null,this.inlineClassName=e.inlineClassName?da(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?da(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?da(e.afterContentClassName):null,this.after=e.after?zd.from(e.after):null,this.before=e.before?zd.from(e.before):null,this.hideInCommentTokens=(t=e.hideInCommentTokens)!==null&&t!==void 0?t:!1,this.hideInStringTokens=(i=e.hideInStringTokens)!==null&&i!==void 0?i:!1}static register(e){return new Ne(e)}static createDynamic(e){return new Ne(e)}}Ne.EMPTY=Ne.register({description:"empty"});const IA=[Ne.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Ne.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Ne.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Ne.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function EA(o){return o instanceof Ne?o:Ne.createDynamic(o)}class Qq extends H{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new R),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!!(e.minimap&&e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(e.overviewRuler&&e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Xq extends H{constructor(){super(),this._fastEmitter=this._register(new R),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new R),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}var Jq=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const NA={getInitialState:()=>ng,tokenizeEncoded:(o,e,t)=>qC(0,t)};function eG(o,e,t){return Jq(this,void 0,void 0,function*(){if(!t)return TA(e,o.languageIdCodec,NA);const i=yield Wt.getOrCreate(t);return TA(e,o.languageIdCodec,i||NA)})}function tG(o,e,t,i,n,s,r){let a="
",l=i,c=0,d=!0;for(let h=0,u=e.getCount();h0;)r&&d?(f+=" ",d=!1):(f+=" ",d=!0),b--;break}case 60:f+="<",d=!1;break;case 62:f+=">",d=!1;break;case 38:f+="&",d=!1;break;case 0:f+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:f+="\uFFFD",d=!1;break;case 13:f+="​",d=!1;break;case 32:r&&d?(f+=" ",d=!1):(f+=" ",d=!0);break;default:f+=String.fromCharCode(_),d=!1}}if(a+=`${f}`,g>n||l>=n)break}return a+="
",a}function TA(o,e,t){let i='
';const n=jr(o);let s=t.getInitialState();for(let r=0,a=n.length;r0&&(i+="
");const c=t.tokenizeEncoded(l,!0,s);Di.convertToEndOffset(c.tokens,l.length);const h=new Di(c.tokens,l,e).inflate();let u=0;for(let g=0,f=h.getCount();g${_I(l.substring(u,b))}`,u=b}s=c.endState}return i+="
",i}class iG{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class nG{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}class um{constructor(e,t,i,n){this._instanceId=mP(++um.INSTANCE_COUNT),this._pendingChanges=new iG,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n>>1;t===e[r].afterLineNumber?i{t=!0,n=n|0,s=s|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new nG(l,n,s,r,a)),l},changeOneWhitespace:(n,s,r)=>{t=!0,s=s|0,r=r|0,this._pendingChanges.change({id:n,newAfterLineNumber:s,newHeight:r})},removeWhitespace:n=>{t=!0,this._pendingChanges.remove({id:n})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const c=this._findWhitespaceIndex(l.id);c!==-1&&this._removeWhitespace(c)}return}const n=new Set;for(const l of i)n.add(l.id);const s=new Map;for(const l of t)s.set(l.id,l);const r=l=>{const c=[];for(const d of l)if(!n.has(d.id)){if(s.has(d.id)){const h=s.get(d.id);d.afterLineNumber=h.newAfterLineNumber,d.height=h.newHeight}c.push(d)}return c},a=r(this._arr).concat(r(e));a.sort((l,c)=>l.afterLineNumber===c.afterLineNumber?l.ordinal-c.ordinal:l.afterLineNumber-c.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=um.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else n=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?i=this._lineHeight*(e-1):i=0;const n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0));return i+n+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e=e|0;const i=this._lineHeight*e,n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0));return i+n+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let n=1,s=t;for(;n=a+i)n=r+1;else{if(e>=a)return r;s=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,n=this.getLineNumberAtOrAfterVerticalOffset(e)|0,s=this.getVerticalOffsetForLineNumber(n)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(n)|0;const l=this.getWhitespacesCount()|0;let c,d;a===-1?(a=l,d=r+1,c=0):(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);let h=s,u=h;const g=5e5;let f=0;s>=g&&(f=Math.floor(s/g)*g,f=Math.floor(f/i)*i,u-=f);const _=[],b=e+(t-e)/2;let v=-1;for(let k=n;k<=r;k++){if(v===-1){const x=h,y=h+i;(x<=b&&bb)&&(v=k)}for(h+=i,_[k-n]=u,u+=i;d===k;)u+=c,h+=c,a++,a>=l?d=r+1:(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);if(h>=t){r=k;break}}v===-1&&(v=r);const C=this.getVerticalOffsetForLineNumber(r)|0;let w=n,S=r;return wt&&S--,{bigNumbersDelta:f,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:_,centeredLineNumber:v,completelyVisibleStartLineNumber:w,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let n;return e>0?n=this.getWhitespacesAccumulatedHeight(e-1):n=0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const n=this.getVerticalOffsetForWhitespaceIndex(i),s=this.getHeightForWhitespaceIndex(i);if(e>=n+s)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t),s=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:s,afterLineNumber:r,verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let r=i;r<=n;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;s.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}}um.INSTANCE_COUNT=0;const sG=125;class Qf{constructor(e,t,i,n){e=e|0,t=t|0,i=i|0,n=n|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),n<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class oG extends H{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new R),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Qf(0,0,0,0),this._scrollable=this._register(new f_({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new bE(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class rG extends H{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(133),r=n.get(77);this._linesLayout=new um(t,n.get(61),r.top,r.bottom),this._scrollable=this._register(new oG(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Qf(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(105)?sG:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(61)&&this._linesLayout.setLineHeight(t.get(61)),e.hasChanged(77)){const i=t.get(77);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(133)){const i=t.get(133),n=i.contentWidth,s=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new Qf(n,r.contentWidth,s,this._getContentHeight(n,s,a)))}else this._updateHeight();e.hasChanged(105)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(94);return n.horizontal===2||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(96)?s+=Math.max(0,t-n.get(61)-n.get(77).bottom):s+=this._getHorizontalScrollbarHeight(e,i),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Qf(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(134),n=t.get(46),s=t.get(133);if(i.isViewportWrapping){const r=t.get(67);return e>s.contentWidth+n.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?e+s.verticalScrollbarWidth:e}else{const r=t.get(95)*n.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+r+s.verticalScrollbarWidth,a)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Qf(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),n=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-n,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class aG{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,s=e.options;let r;if(s.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.startLineNumber,1),0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);r=new L(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new $P(r,s),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){const t=new L(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,q0(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,s=[];let r=0;const a=[];for(let l=i;l<=n;l++)a[l-i]=[];for(let l=0,c=t.length;lt===1)}function ME(o,e){return xF(o,e.range,t=>t===2)}function xF(o,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const n=o.tokenization.getLineTokens(i),s=i===e.startLineNumber,r=i===e.endLineNumber;let a=s?n.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(n.getStandardTokenType(a)))return!1;a++}}return!0}function xS(o,e){return o===null?e?Ov.INSTANCE:Pv.INSTANCE:new lG(o,e)}class lG{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((c,d)=>new er(0,0,c+1,this._projectionData.injectionOptions[d],0));r=er.applyInjectedText(e.getLineContent(t),a).substring(n,s)}else r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(r=AA(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,r,a){this._assertVisible();const l=this._projectionData,c=l.injectionOffsets,d=l.injectionOptions;let h=null;if(c){h=[];let g=0,f=0;for(let _=0;_0?l.breakOffsets[_-1]:0,C=l.breakOffsets[_];for(;fC)break;if(v0?l.wrappedTextIndentLength:0,D=y+Math.max(S-v,0),I=y+Math.min(k-v,C);D!==I&&b.push(new PV(D,I,x.inlineClassName,x.inlineClassNameAffectsLetterSpacing))}}if(k<=C)g+=w,f++;else break}}}let u;c?u=e.tokenization.getLineTokens(t).withInserted(c.map((g,f)=>({offset:g,text:d[f].content,tokenMetadata:Di.defaultTokenMetadata}))):u=e.tokenization.getLineTokens(t);for(let g=i;g0?n.wrappedTextIndentLength:0,r=i>0?n.breakOffsets[i-1]:0,a=n.breakOffsets[i],l=e.sliceAndInflate(r,a,s);let c=l.getLineContent();i>0&&(c=AA(n.wrappedTextIndentLength)+c);const d=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,u=i+1=IS.length)for(let e=1;e<=o;e++)IS[e]=cG(e);return IS[o]}function cG(o){return new Array(o+1).join(" ")}class dG{constructor(e,t,i,n,s,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new uG(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,r=this.createLineBreaksComputer(),a=new Rp(er.fromDecorations(n));for(let _=0;_v.lineNumber===_+1);r.addRequest(i[_],b,t?t[_]:null)}const l=r.finalize(),c=[],d=this.hiddenAreasDecorationIds.map(_=>this.model.getDecorationRange(_)).sort(L.compareRangesUsingStarts);let h=1,u=0,g=-1,f=g+1=h&&b<=u,C=xS(l[_],!v);c[_]=C.getViewLineCount(),this.modelLineProjections[_]=C}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new JW(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(u=>this.model.validateRange(u)),i=hG(t),n=this.hiddenAreasDecorationIds.map(u=>this.model.getDecorationRange(u)).sort(L.compareRangesUsingStarts);if(i.length===n.length){let u=!1;for(let g=0;g({range:u,options:Ne.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const r=i;let a=1,l=0,c=-1,d=c+1=a&&g<=l?this.modelLineProjections[u].isVisible()&&(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!1),f=!0):(h=!0,this.modelLineProjections[u].isVisible()||(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!0),f=!0)),f){const _=this.modelLineProjections[u].getViewLineCount();this.projectedModelLineLineCounts.setValue(u,_)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const s=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n;if(s&&r&&a&&l)return!1;const c=s&&r&&!a&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let d=null;if(c){d=[];for(let h=0,u=this.modelLineProjections.length;h2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],c=[];for(let d=0,h=n.length;dl?(d=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=d+l-1,f=h+1,_=f+(s-l)-1,c=!0):st?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),c=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:c.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new MA(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=n.modelLineNumber;l++){const c=this.modelLineProjections[l-1];if(c.isVisible()){const d=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,h=l===n.modelLineNumber?n.modelLineWrappedLineIdx+1:c.getViewLineCount();for(let u=d;u{if(g.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesAfterColumn).lineNumber>=d.modelLineWrappedLineIdx||g.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesBeforeOrAtColumn).lineNumberd.modelLineWrappedLineIdx)return}const _=this.convertModelPositionToViewPosition(d.modelLineNumber,g.horizontalLine.endColumn),b=this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.horizontalLine.endColumn);return b.lineNumber===d.modelLineWrappedLineIdx?new hd(g.visibleColumn,f,g.className,new up(g.horizontalLine.top,_.column),-1,-1):b.lineNumber!!g))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const r=[],a=[],l=i.lineNumber-1,c=n.lineNumber-1;let d=null;for(let f=l;f<=c;f++){const _=this.modelLineProjections[f];if(_.isVisible()){const b=_.getViewLineNumberOfModelPosition(0,f===l?i.column:1),v=_.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),C=v-b+1;let w=0;C>1&&_.getViewLineMinColumn(this.model,f+1,v)===1&&(w=b===0?1:2),r.push(C),a.push(w),d===null&&(d=new B(f+1,0))}else d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,f)),d=null)}d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const h=t-e+1,u=new Array(h);let g=0;for(let f=0,_=s.length;f<_;f++){let b=s[f];const v=Math.min(h-g,r[f]),C=a[f];let w;C===2?w=0:C===1?w=1:w=v;for(let S=0;St&&(f=!0,g=t-s+1),h.getViewLinesData(this.model,c+1,u,g,s-e,i,l),s+=g,f)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,r=n.remainder,a=this.modelLineProjections[s],l=a.getViewLineMinColumn(this.model,s+1,r),c=a.getViewLineMaxColumn(this.model,s+1,r);tc&&(t=c);const d=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new B(s+1,d)).equals(i)?new B(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new L(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new B(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new L(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new B(e,t)),s=n.lineNumber,r=n.column;let a=s-1,l=!1;for(;a>0&&!this.modelLineProjections[a].isVisible();)a--,l=!0;if(a===0&&!this.modelLineProjections[a].isVisible())return new B(1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(a);let d;return l?d=this.modelLineProjections[a].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(a+1),i):d=this.modelLineProjections[s-1].getViewPositionOfModelPosition(c,r,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return L.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new L(i.lineNumber,i.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),s=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(s.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new L(n.lineNumber,1,s.lineNumber,s.column),t,i);let r=[];const a=n.lineNumber-1,l=s.lineNumber-1;let c=null;for(let g=a;g<=l;g++)if(this.modelLineProjections[g].isVisible())c===null&&(c=new B(g+1,g===a?n.column:1));else if(c!==null){const _=this.model.getLineMaxColumn(g);r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,g,_),t,i)),c=null}c!==null&&(r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,s.lineNumber,s.column),t,i)),c=null),r.sort((g,f)=>{const _=L.compareRangesUsingStarts(g.range,f.range);return _===0?g.idf.id?1:0:_});const d=[];let h=0,u=null;for(const g of r){const f=g.id;u!==f&&(u=f,d[h++]=g)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function hG(o){if(o.length===0)return[];const e=o.slice();e.sort(L.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,n=e[0].endLineNumber;for(let s=1,r=e.length;sn+1?(t.push(new L(i,1,n,1)),i=a.startLineNumber,n=a.endLineNumber):a.endLineNumber>n&&(n=a.endLineNumber)}return t.push(new L(i,1,n,1)),t}class MA{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class RA{constructor(e,t){this.modelRange=e,this.viewLines=t}}class uG{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class gG{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new fG(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new _D(t,i)}onModelLinesInserted(e,t,i,n){return new bD(t,i)}onModelLineChanged(e,t,i){return[!1,new rF(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;st)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class pG extends H{constructor(e,t,i,n,s,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new LK,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new mt(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new mt(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=RE.create(this.model),this.model.isTooLargeForTokenization())this._lines=new gG(this.model);else{const c=this._configuration.options,d=c.get(46),h=c.get(127),u=c.get(134),g=c.get(126);this._lines=new dG(this._editorId,this.model,n,s,d,this.model.getOptions().tabSize,h,u.wrappingColumn,g)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new gg(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new rG(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),c.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new vK(c)),this._eventDispatcher.emitOutgoingEvent(new CE(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new aG(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const d=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(d,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(m_.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new SK)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new CK(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new L(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const n of i)this.model.tokenization.tokenizeViewport(n.startLineNumber,n.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new _K(e)),this._eventDispatcher.emitOutgoingEvent(new vE(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new gK)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new fK)}_onConfigurationChanged(e,t){let i=null;if(this._viewportStart.isValid){const d=new B(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber));i=this.coordinatesConverter.convertViewPositionToModelPosition(d)}let n=!1;const s=this._configuration.options,r=s.get(46),a=s.get(127),l=s.get(134),c=s.get(126);if(this._lines.setWrappingSettings(r,a,l.wrappingColumn,c)&&(e.emitViewEvent(new fb),e.emitViewEvent(new pb),e.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(83)&&(this._decorations.reset(),e.emitViewEvent(new Oh(null))),e.emitViewEvent(new pK(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const d=this.coordinatesConverter.convertModelPositionToViewPosition(i),h=this.viewLayout.getVerticalOffsetForLineNumber(d.lineNumber);this.viewLayout.setScrollPosition({scrollTop:h+this._viewportStart.startLineDelta},1)}Rh.shouldRecreate(t)&&(this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const i=this._eventDispatcher.beginEmitViewEvents();let n=!1,s=!1;const r=e instanceof vd?e.rawContentChangedEvent.changes:e.changes,a=e instanceof vd?e.rawContentChangedEvent.versionId:null,l=this._lines.createLineBreaksComputer();for(const h of r)switch(h.changeType){case 4:{for(let u=0;u!_.ownerId||_.ownerId===this._editorId)),l.addRequest(g,f,null)}break}case 2:{let u=null;h.injectedText&&(u=h.injectedText.filter(g=>!g.ownerId||g.ownerId===this._editorId)),l.addRequest(h.detail,u,null);break}}const c=l.finalize(),d=new Rp(c);for(const h of r)switch(h.changeType){case 1:{this._lines.onModelFlushed(),i.emitViewEvent(new fb),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break}case 3:{const u=this._lines.onModelLinesDeleted(a,h.fromLineNumber,h.toLineNumber);u!==null&&(i.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber)),n=!0;break}case 4:{const u=d.takeCount(h.detail.length),g=this._lines.onModelLinesInserted(a,h.fromLineNumber,h.toLineNumber,u);g!==null&&(i.emitViewEvent(g),this.viewLayout.onLinesInserted(g.fromLineNumber,g.toLineNumber)),n=!0;break}case 2:{const u=d.dequeue(),[g,f,_,b]=this._lines.onModelLineChanged(a,h.lineNumber,u);s=g,f&&i.emitViewEvent(f),_&&(i.emitViewEvent(_),this.viewLayout.onLinesInserted(_.fromLineNumber,_.toLineNumber)),b&&(i.emitViewEvent(b),this.viewLayout.onLinesDeleted(b.fromLineNumber,b.toLineNumber));break}case 5:break}a!==null&&this._lines.acceptVersionId(a),this.viewLayout.onHeightMaybeChanged(),!n&&s&&(i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const i=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(i){const n=this.coordinatesConverter.convertModelPositionToViewPosition(i.getStartPosition()),s=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber);this.viewLayout.setScrollPosition({scrollTop:s+this._viewportStart.startLineDelta},1)}}try{const i=this._eventDispatcher.beginEmitViewEvents();e instanceof vd&&i.emitOutgoingEvent(new AK(e.contentChangedEvent)),this._cursor.onModelContentChanged(i,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new bK),this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new TK(e))})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new NK(e))})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new fb),t.emitViewEvent(new pb),t.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new MK(e))})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Oh(e)),this._eventDispatcher.emitOutgoingEvent(new EK(e))}))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new fb),i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new xK)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(133),t=this._configuration.options.get(61),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new L(s,this.getLineMinColumn(s),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const n=[];let s=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,c=t.endColumn;for(let d=0,h=i.length;dl||(r"u")return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=kn(this.getLineContent(e));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Vr(this.getLineContent(e));return t===-1?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const n=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,n)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map(a=>a.toInlineDecoration(e))]),new Ds(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,t,s,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new OV(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,q0(this._configuration.options)),i=new mG;for(const n of t){const s=n.options,r=s.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),d=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(l,s.zIndex,c,d,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i&&i.invalidateCachedColor();const n=t.options.minimap;n&&n.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const n=i?`\r -`:this.model.getEOL();e=e.slice(0),e.sort(L.compareRangesUsingStarts);let s=!1,r=!1;for(const l of e)l.isEmpty()?s=!0:r=!0;if(!r){if(!t)return"";const l=e.map(d=>d.startLineNumber);let c="";for(let d=0;d0&&l[d-1]===l[d]||(c+=this.model.getLineContent(l[d])+n);return c}if(s&&t){const l=[];let c=0;for(const d of e){const h=d.startLineNumber;d.isEmpty()?h!==c&&l.push(this.model.getLineContent(h)):l.push(this.model.getValueInRange(d,i?2:0)),c=h}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Ks||e.length!==1)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const d=n.startLineNumber;n=new L(d,this.model.getLineMinColumn(d),d,this.model.getLineMaxColumn(d))}const s=this._configuration.options.get(46),r=this._getColorMap(),l=/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===ts.fontFamily;let c;return l?c=ts.fontFamily:(c=s.fontFamily,c=c.replace(/"/g,"'"),/[,']/.test(c)||/[+ ]/.test(c)&&(c=`'${c}'`),c=`${c}, ${ts.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,r)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let c=i;c<=s;c++){const d=this.model.tokenization.getLineTokens(c),h=d.getLineContent(),u=c===i?n-1:0,g=c===s?r-1:h.length;h===""?l+="
":l+=tG(h,d.inflate(),t,u,g,a,Yi)}return l}_getColorMap(){const e=Wt.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new IK);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,s){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,s))}paste(e,t,i,n){this._executeCursorEdit(s=>this._cursor.paste(s,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,n,s){this._withViewEventsCollector(r=>r.emitViewEvent(new C0(e,!1,i,null,n,t,s)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new yK),this._eventDispatcher.emitOutgoingEvent(new kK))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class RE{constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}static create(e){const t=e._setTrackedRange(null,new L(1,1,1,1),1);return new RE(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new B(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new L(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=r-s}invalidate(){this._isValid=!1}}class mG{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],c=a[a.length-1];if(l===s&&c+1>=i){n>c&&(a[a.length-1]=n);return}a.push(s,i,n)}else{const a=new jP(e,t,[s,i,n]);this._asMap[e]=a,this.asArray.push(a)}}}class k1{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}var gm;(function(o){o[o.Ignore=0]="Ignore",o[o.Info=1]="Info",o[o.Warning=2]="Warning",o[o.Error=3]="Error"})(gm||(gm={}));(function(o){const e="error",t="warning",i="warn",n="info",s="ignore";function r(l){return l?au(e,l)?o.Error:au(t,l)||au(i,l)?o.Warning:au(n,l)?o.Info:o.Ignore:o.Ignore}o.fromValue=r;function a(l){switch(l){case o.Error:return e;case o.Warning:return t;case o.Info:return n;default:return s}}o.toString=a})(gm||(gm={}));const Bt=gm;var IF=Bt;const di=Ye("notificationService");class _G{}class wp{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let n=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let s=0;sthis.injectionOffsets[s];s++)n0?this.breakOffsets[s-1]:0,t===0)if(e<=r)n=s-1;else if(e>l)i=s+1;else break;else if(e=l)i=s+1;else break}let a=e-r;return s>0&&(a+=this.wrappedTextIndentLength),new wb(s,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new wb(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const n=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&OA(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let n=i.offsetInInputWithInjections;if(PA(this.injectionOptions[i.injectedTextIndex].cursorStops))return n;let s=i.injectedTextIndex-1;for(;s>=0&&this.injectionOffsets[s]===this.injectionOffsets[i.injectedTextIndex]&&!(OA(this.injectionOptions[s].cursorStops)||(n-=this.injectionOptions[s].content.length,PA(this.injectionOptions[s].cursorStops)));)s--;return n}}else if(t===1||t===4){let n=i.offsetInInputWithInjections+i.length,s=i.injectedTextIndex;for(;s+1=0&&this.injectionOffsets[s-1]===this.injectionOffsets[s];)n-=this.injectionOptions[s-1].content.length,s--;return n}OC()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let n=0;for(let s=0;se)break;if(e<=l)return{injectedTextIndex:s,offsetInInputWithInjections:a,length:r};n+=r}}}}function OA(o){return o==null?!0:o===Wo.Right||o===Wo.Both}function PA(o){return o==null?!0:o===Wo.Left||o===Wo.Both}class wb{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new B(e+this.outputLineIndex,this.outputOffset+1)}}class OE{constructor(e,t){this.classifier=new bG(e,t)}static create(e){return new OE(e.get(122),e.get(121))}createLineBreaksComputer(e,t,i,n){const s=[],r=[],a=[];return{addRequest:(l,c,d)=>{s.push(l),r.push(c),a.push(d)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let d=0,h=s.length;d=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let kD=[],xD=[];function vG(o,e,t,i,n,s,r){if(n===-1)return null;const a=t.length;if(a<=1)return null;const l=e.breakOffsets,c=e.breakOffsetsVisibleColumn,d=EF(t,i,n,s,r),h=n-d,u=kD,g=xD;let f=0,_=0,b=0,v=n;const C=l.length;let w=0;if(w>=0){let S=Math.abs(c[w]-v);for(;w+1=S)break;S=k,w++}}for(;wS&&(S=_,k=b);let x=0,y=0,D=0,I=0;if(k<=v){let F=k,z=S===0?0:t.charCodeAt(S-1),j=S===0?0:o.get(z),re=!0;for(let he=S;he_&&ID(z,j,ye,xe)&&(x=Se,y=F),F+=He,F>v){Se>_?(D=Se,I=F-He):(D=he+1,I=F),F-y>h&&(x=0),re=!1;break}z=ye,j=xe}if(re){f>0&&(u[f]=l[l.length-1],g[f]=c[l.length-1],f++);break}}if(x===0){let F=k,z=t.charCodeAt(S),j=o.get(z),re=!1;for(let he=S-1;he>=_;he--){const Se=he+1,ye=t.charCodeAt(he);if(ye===9){re=!0;break}let xe,He;if(Td(ye)?(he--,xe=0,He=2):(xe=o.get(ye),He=ic(ye)?s:1),F<=v){if(D===0&&(D=Se,I=F),F<=v-h)break;if(ID(ye,xe,z,j)){x=Se,y=F;break}}F-=He,z=ye,j=xe}if(x!==0){const he=h-(I-y);if(he<=i){const Se=t.charCodeAt(D);let ye;Li(Se)?ye=2:ye=Sp(Se,I,i,s),he-ye<0&&(x=0)}}if(re){w--;continue}}if(x===0&&(x=D,y=I),x<=_){const F=t.charCodeAt(_);Li(F)?(x=_+2,y=b+2):(x=_+1,y=b+Sp(F,b,i,s))}for(_=x,u[f]=x,b=y,g[f]=y,f++,v=y+h;w<0||w=O)break;O=F,w++}}return f===0?null:(u.length=f,g.length=f,kD=e.breakOffsets,xD=e.breakOffsetsVisibleColumn,e.breakOffsets=u,e.breakOffsetsVisibleColumn=g,e.wrappedTextIndentLength=d,e)}function CG(o,e,t,i,n,s,r){const a=er.applyInjectedText(e,t);let l,c;if(t&&t.length>0?(l=t.map(y=>y.options),c=t.map(y=>y.column-1)):(l=null,c=null),n===-1)return l?new wp(c,l,[a.length],[],0):null;const d=a.length;if(d<=1)return l?new wp(c,l,[a.length],[],0):null;const h=EF(a,i,n,s,r),u=n-h,g=[],f=[];let _=0,b=0,v=0,C=n,w=a.charCodeAt(0),S=o.get(w),k=Sp(w,0,i,s),x=1;Li(w)&&(k+=1,w=a.charCodeAt(1),S=o.get(w),x++);for(let y=x;yC&&((b===0||k-v>u)&&(b=D,v=k-F),g[_]=b,f[_]=v,_++,C=v+u,b=0),w=I,S=O}return _===0&&(!t||t.length===0)?null:(g[_]=d,f[_]=k,new wp(c,l,g,f,h))}function Sp(o,e,t,i){return o===9?t-e%t:ic(o)||o<32?i:1}function FA(o,e){return e-o%e}function ID(o,e,t,i){return t!==32&&(e===2&&i!==2||e!==1&&i===1||e===3&&i!==2||i===3&&e!==1)}function EF(o,e,t,i,n){let s=0;if(n!==0){const r=kn(o);if(r!==-1){for(let l=0;lt&&(s=0)}}return s}var ES;const NS=(ES=window.trustedTypes)===null||ES===void 0?void 0:ES.createPolicy("domLineBreaksComputer",{createHTML:o=>o});class PE{static create(){return new PE}constructor(){}createLineBreaksComputer(e,t,i,n){const s=[],r=[];return{addRequest:(a,l,c)=>{s.push(a),r.push(l)},finalize:()=>wG(s,e,t,i,n,r)}}}function wG(o,e,t,i,n,s){var r;function a(D){const I=s[D];if(I){const O=er.applyInjectedText(o[D],I),F=I.map(j=>j.options),z=I.map(j=>j.column-1);return new wp(z,F,[O.length],[],0)}else return null}if(i===-1){const D=[];for(let I=0,O=o.length;Il?(O=0,F=0):z=l-he}const j=I.substr(O),re=SG(j,F,t,z,g,h);f[D]=O,_[D]=F,b[D]=j,v[D]=re[0],C[D]=re[1]}const w=g.build(),S=(r=NS==null?void 0:NS.createHTML(w))!==null&&r!==void 0?r:w;u.innerHTML=S,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);const k=document.createRange(),x=Array.prototype.slice.call(u.children,0),y=[];for(let D=0;Dxe.options),Se=ye.map(xe=>xe.column-1)):(he=null,Se=null),y[D]=new wp(Se,he,O,re,z)}return document.body.removeChild(u),y}function SG(o,e,t,i,n,s){if(s!==0){const u=String(s);n.appendASCIIString('
');const r=o.length;let a=e,l=0;const c=[],d=[];let h=0");for(let u=0;u"),c[u]=l,d[u]=a;const g=h;h=u+1"),c[o.length]=l,d[o.length]=a,n.appendASCIIString("
"),[c,d]}function yG(o,e,t,i){if(t.length<=1)return null;const n=Array.prototype.slice.call(e.children,0),s=[];try{ED(o,n,i,0,null,t.length-1,null,s)}catch(r){return console.log(r),null}return s.length===0?null:(s.push(t.length),s)}function ED(o,e,t,i,n,s,r,a){if(i===s||(n=n||TS(o,e,t[i],t[i+1]),r=r||TS(o,e,t[s],t[s+1]),Math.abs(n[0].top-r[0].top)<=.1))return;if(i+1===s){a.push(s);return}const l=i+(s-i)/2|0,c=TS(o,e,t[l],t[l+1]);ED(o,e,t,i,n,l,c,a),ED(o,e,t,l,c,s,r,a)}function TS(o,e,t,i){return o.setStart(e[t/16384|0].firstChild,t%16384),o.setEnd(e[i/16384|0].firstChild,i%16384),o.getClientRects()}var LG=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ha=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},DG=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kG=0;class xG{constructor(e,t,i,n,s){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s}dispose(){nt(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let pg=class tu extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this.languageConfigurationService=h,this._deliveryQueue=new XO,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onWillType=this._onWillType.event,this._onDidType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection();const g=Object.assign({},t);this._domElement=e,this._overflowWidgetsDomNode=g.overflowWidgetsDomNode,delete g.overflowWidgetsDomNode,this._id=++kG,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,g,d)),this._register(this._configuration.onDidChange(b=>{this._onDidChangeConfiguration.fire(b);const v=this._configuration.options;if(b.hasChanged(133)){const C=v.get(133);this._onDidLayoutChange.fire(C)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new IG(this,this._contextKeyService)),this._register(new EG(this,this._contextKeyService,u)),this._instantiationService=n.createChild(new k1([Ee,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new NG(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let f;Array.isArray(i.contributions)?f=i.contributions:f=md.getEditorContributions();for(const b of f){if(this._contributions[b.id]){Te(new Error(`Cannot have two contributions with the same id ${b.id}`));continue}try{const v=this._instantiationService.createInstance(b.ctor,this);this._contributions[b.id]=v}catch(v){Te(v)}}md.getEditorActions().forEach(b=>{if(this._actions[b.id]){Te(new Error(`Cannot have two actions with the same id ${b.id}`));return}const v=new aF(b.id,b.label,b.alias,Wn(b.precondition),()=>this._instantiationService.invokeFunction(C=>Promise.resolve(b.runEditorCommand(C,this,null))),this._contextKeyService);this._actions[v.id]=v});const _=()=>!this._configuration.options.get(83)&&this._configuration.options.get(32).enabled;this._register(new zH(this._domElement,{onDragEnter:()=>{},onDragOver:b=>{if(!_())return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this.showDropIndicatorAt(v.position)},onDrop:b=>DG(this,void 0,void 0,function*(){if(!_()||(this.removeDropIndicator(),!b.dataTransfer))return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this._onDropIntoEditor.fire({position:v.position,event:b})}),onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(e,t,i){return new aD(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return o_.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;t{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),s=this._buffer.getLineCount(),r=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,r.length!==0){for(let c=0,d=r.length;c=0;I--){const O=g+I,F=w+I;D.takeFromEndWhile(j=>j.lineNumber>F);const z=D.takeFromEndWhile(j=>j.lineNumber===F);a.push(new lA(O,this.getLineContent(F),z))}if(v<_){const I=g+v;a.push(new dK(I+1,f))}if(vye.lineNumberye.lineNumber===Se)}a.push(new hK(O+1,g+b,re,j))}l+=C}this._emitContentChangedEvent(new Vu(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return n.reverseEdits===null?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(e===null||e.size===0)return;const i=Array.from(e).map(n=>new lA(n,this.getLineContent(n),this._getInjectedTextInLine(n)));this._onDidChangeInjectedText.fire(new o5(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(s,r)=>this._deltaDecorationsImpl(e,[],[{range:s,options:r}])[0],changeDecoration:(s,r)=>{this._changeDecorationImpl(s,r)},changeDecorationOptions:(s,r)=>{this._changeDecorationOptionsImpl(s,EA(r))},removeDecoration:s=>{this._deltaDecorationsImpl(e,[s],[])},deltaDecorations:(s,r)=>s.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,s,r)};let n=null;try{n=t(i)}catch(s){Te(s)}return i.addDecoration=kf,i.changeDecoration=kf,i.changeDecorationOptions=kf,i.removeDecoration=kf,i.deltaDecorations=kf,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),Te(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:IA[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,a,s),n.setOptions(IA[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){const s=this.getLineCount(),r=Math.min(s,Math.max(1,e)),a=Math.min(s,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new L(r,1,a,l),d=this._getDecorationsInRange(c,i,n);return kT(d,this._decorationProvider.getDecorationsInRange(c,i,n)),d}getDecorationsInRange(e,t=0,i=!1){const n=this.validateRange(e),s=this._getDecorationsInRange(n,t,i);return kT(s,this._decorationProvider.getDecorationsInRange(n,t,i)),s}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return er.fromDecorations(n).filter(s=>s.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,s,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,r,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!!(i.options.overviewRuler&&i.options.overviewRuler.color),s=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber)}if(i.options.before||t.before){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}n!==s?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const n=this.getVersionId(),s=t.length;let r=0;const a=i.length;let l=0;const c=new Array(a);for(;ra.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(s=>s.options.showIfCollapsed||!s.range.isEmpty())}getAll(e,t,i,n){const s=e.getVersionId(),r=this._search(t,i,n,s);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{const s=this._decorationsTree0.search(e,t,n),r=this._decorationsTree1.search(e,t,n),a=this._injectedTextDecorationsTree.search(e,t,n);return s.concat(r).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){kS(e)?this._injectedTextDecorationsTree.insert(e):DS(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){kS(e)?this._injectedTextDecorationsTree.delete(e):DS(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){kS(e)?this._injectedTextDecorationsTree.resolveNode(e,t):DS(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function da(o){return o.replace(/[^a-z0-9\-_]/gi," ")}class k5{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Zq extends k5{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:Zs.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Yq extends k5{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?W.fromHex(e):t.getColor(e.id)}}class zd{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof zd?e:new zd(e)}}class Ne{constructor(e){var t,i;this.description=e.description,this.blockClassName=e.blockClassName?da(e.blockClassName):null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?da(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Zq(e.overviewRuler):null,this.minimap=e.minimap?new Yq(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?da(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?da(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?da(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?da(e.marginClassName):null,this.inlineClassName=e.inlineClassName?da(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?da(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?da(e.afterContentClassName):null,this.after=e.after?zd.from(e.after):null,this.before=e.before?zd.from(e.before):null,this.hideInCommentTokens=(t=e.hideInCommentTokens)!==null&&t!==void 0?t:!1,this.hideInStringTokens=(i=e.hideInStringTokens)!==null&&i!==void 0?i:!1}static register(e){return new Ne(e)}static createDynamic(e){return new Ne(e)}}Ne.EMPTY=Ne.register({description:"empty"});const IA=[Ne.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Ne.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Ne.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Ne.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function EA(o){return o instanceof Ne?o:Ne.createDynamic(o)}class Qq extends H{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new R),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!!(e.minimap&&e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(e.overviewRuler&&e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Xq extends H{constructor(){super(),this._fastEmitter=this._register(new R),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new R),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}var Jq=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const NA={getInitialState:()=>ng,tokenizeEncoded:(o,e,t)=>qC(0,t)};function eG(o,e,t){return Jq(this,void 0,void 0,function*(){if(!t)return TA(e,o.languageIdCodec,NA);const i=yield Wt.getOrCreate(t);return TA(e,o.languageIdCodec,i||NA)})}function tG(o,e,t,i,n,s,r){let a="
",l=i,c=0,d=!0;for(let h=0,u=e.getCount();h0;)r&&d?(f+=" ",d=!1):(f+=" ",d=!0),b--;break}case 60:f+="<",d=!1;break;case 62:f+=">",d=!1;break;case 38:f+="&",d=!1;break;case 0:f+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:f+="\uFFFD",d=!1;break;case 13:f+="​",d=!1;break;case 32:r&&d?(f+=" ",d=!1):(f+=" ",d=!0);break;default:f+=String.fromCharCode(_),d=!1}}if(a+=`${f}`,g>n||l>=n)break}return a+="
",a}function TA(o,e,t){let i='
';const n=jr(o);let s=t.getInitialState();for(let r=0,a=n.length;r0&&(i+="
");const c=t.tokenizeEncoded(l,!0,s);Di.convertToEndOffset(c.tokens,l.length);const h=new Di(c.tokens,l,e).inflate();let u=0;for(let g=0,f=h.getCount();g${_I(l.substring(u,b))}`,u=b}s=c.endState}return i+="
",i}class iG{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class nG{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}class um{constructor(e,t,i,n){this._instanceId=mP(++um.INSTANCE_COUNT),this._pendingChanges=new iG,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n>>1;t===e[r].afterLineNumber?i{t=!0,n=n|0,s=s|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new nG(l,n,s,r,a)),l},changeOneWhitespace:(n,s,r)=>{t=!0,s=s|0,r=r|0,this._pendingChanges.change({id:n,newAfterLineNumber:s,newHeight:r})},removeWhitespace:n=>{t=!0,this._pendingChanges.remove({id:n})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const c=this._findWhitespaceIndex(l.id);c!==-1&&this._removeWhitespace(c)}return}const n=new Set;for(const l of i)n.add(l.id);const s=new Map;for(const l of t)s.set(l.id,l);const r=l=>{const c=[];for(const d of l)if(!n.has(d.id)){if(s.has(d.id)){const h=s.get(d.id);d.afterLineNumber=h.newAfterLineNumber,d.height=h.newHeight}c.push(d)}return c},a=r(this._arr).concat(r(e));a.sort((l,c)=>l.afterLineNumber===c.afterLineNumber?l.ordinal-c.ordinal:l.afterLineNumber-c.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=um.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else n=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?i=this._lineHeight*(e-1):i=0;const n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0));return i+n+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e=e|0;const i=this._lineHeight*e,n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0));return i+n+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let n=1,s=t;for(;n=a+i)n=r+1;else{if(e>=a)return r;s=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,n=this.getLineNumberAtOrAfterVerticalOffset(e)|0,s=this.getVerticalOffsetForLineNumber(n)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(n)|0;const l=this.getWhitespacesCount()|0;let c,d;a===-1?(a=l,d=r+1,c=0):(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);let h=s,u=h;const g=5e5;let f=0;s>=g&&(f=Math.floor(s/g)*g,f=Math.floor(f/i)*i,u-=f);const _=[],b=e+(t-e)/2;let v=-1;for(let k=n;k<=r;k++){if(v===-1){const x=h,y=h+i;(x<=b&&bb)&&(v=k)}for(h+=i,_[k-n]=u,u+=i;d===k;)u+=c,h+=c,a++,a>=l?d=r+1:(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);if(h>=t){r=k;break}}v===-1&&(v=r);const C=this.getVerticalOffsetForLineNumber(r)|0;let w=n,S=r;return wt&&S--,{bigNumbersDelta:f,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:_,centeredLineNumber:v,completelyVisibleStartLineNumber:w,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let n;return e>0?n=this.getWhitespacesAccumulatedHeight(e-1):n=0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const n=this.getVerticalOffsetForWhitespaceIndex(i),s=this.getHeightForWhitespaceIndex(i);if(e>=n+s)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t),s=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:s,afterLineNumber:r,verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let r=i;r<=n;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;s.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}}um.INSTANCE_COUNT=0;const sG=125;class Qf{constructor(e,t,i,n){e=e|0,t=t|0,i=i|0,n=n|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),n<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class oG extends H{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new R),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Qf(0,0,0,0),this._scrollable=this._register(new f_({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new bE(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class rG extends H{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(133),r=n.get(77);this._linesLayout=new um(t,n.get(61),r.top,r.bottom),this._scrollable=this._register(new oG(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Qf(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(105)?sG:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(61)&&this._linesLayout.setLineHeight(t.get(61)),e.hasChanged(77)){const i=t.get(77);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(133)){const i=t.get(133),n=i.contentWidth,s=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new Qf(n,r.contentWidth,s,this._getContentHeight(n,s,a)))}else this._updateHeight();e.hasChanged(105)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(94);return n.horizontal===2||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(96)?s+=Math.max(0,t-n.get(61)-n.get(77).bottom):s+=this._getHorizontalScrollbarHeight(e,i),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Qf(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(134),n=t.get(46),s=t.get(133);if(i.isViewportWrapping){const r=t.get(67);return e>s.contentWidth+n.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?e+s.verticalScrollbarWidth:e}else{const r=t.get(95)*n.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+r+s.verticalScrollbarWidth,a)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Qf(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),n=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-n,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class aG{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,s=e.options;let r;if(s.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.startLineNumber,1),0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);r=new L(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new $P(r,s),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){const t=new L(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,q0(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,s=[];let r=0;const a=[];for(let l=i;l<=n;l++)a[l-i]=[];for(let l=0,c=t.length;lt===1)}function ME(o,e){return x5(o,e.range,t=>t===2)}function x5(o,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const n=o.tokenization.getLineTokens(i),s=i===e.startLineNumber,r=i===e.endLineNumber;let a=s?n.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(n.getStandardTokenType(a)))return!1;a++}}return!0}function xS(o,e){return o===null?e?Ov.INSTANCE:Pv.INSTANCE:new lG(o,e)}class lG{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((c,d)=>new er(0,0,c+1,this._projectionData.injectionOptions[d],0));r=er.applyInjectedText(e.getLineContent(t),a).substring(n,s)}else r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(r=AA(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,r,a){this._assertVisible();const l=this._projectionData,c=l.injectionOffsets,d=l.injectionOptions;let h=null;if(c){h=[];let g=0,f=0;for(let _=0;_0?l.breakOffsets[_-1]:0,C=l.breakOffsets[_];for(;fC)break;if(v0?l.wrappedTextIndentLength:0,D=y+Math.max(S-v,0),I=y+Math.min(k-v,C);D!==I&&b.push(new PV(D,I,x.inlineClassName,x.inlineClassNameAffectsLetterSpacing))}}if(k<=C)g+=w,f++;else break}}}let u;c?u=e.tokenization.getLineTokens(t).withInserted(c.map((g,f)=>({offset:g,text:d[f].content,tokenMetadata:Di.defaultTokenMetadata}))):u=e.tokenization.getLineTokens(t);for(let g=i;g0?n.wrappedTextIndentLength:0,r=i>0?n.breakOffsets[i-1]:0,a=n.breakOffsets[i],l=e.sliceAndInflate(r,a,s);let c=l.getLineContent();i>0&&(c=AA(n.wrappedTextIndentLength)+c);const d=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,u=i+1=IS.length)for(let e=1;e<=o;e++)IS[e]=cG(e);return IS[o]}function cG(o){return new Array(o+1).join(" ")}class dG{constructor(e,t,i,n,s,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new uG(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,r=this.createLineBreaksComputer(),a=new Rp(er.fromDecorations(n));for(let _=0;_v.lineNumber===_+1);r.addRequest(i[_],b,t?t[_]:null)}const l=r.finalize(),c=[],d=this.hiddenAreasDecorationIds.map(_=>this.model.getDecorationRange(_)).sort(L.compareRangesUsingStarts);let h=1,u=0,g=-1,f=g+1=h&&b<=u,C=xS(l[_],!v);c[_]=C.getViewLineCount(),this.modelLineProjections[_]=C}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new JW(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(u=>this.model.validateRange(u)),i=hG(t),n=this.hiddenAreasDecorationIds.map(u=>this.model.getDecorationRange(u)).sort(L.compareRangesUsingStarts);if(i.length===n.length){let u=!1;for(let g=0;g({range:u,options:Ne.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const r=i;let a=1,l=0,c=-1,d=c+1=a&&g<=l?this.modelLineProjections[u].isVisible()&&(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!1),f=!0):(h=!0,this.modelLineProjections[u].isVisible()||(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!0),f=!0)),f){const _=this.modelLineProjections[u].getViewLineCount();this.projectedModelLineLineCounts.setValue(u,_)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const s=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n;if(s&&r&&a&&l)return!1;const c=s&&r&&!a&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let d=null;if(c){d=[];for(let h=0,u=this.modelLineProjections.length;h2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],c=[];for(let d=0,h=n.length;dl?(d=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=d+l-1,f=h+1,_=f+(s-l)-1,c=!0):st?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),c=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:c.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new MA(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=n.modelLineNumber;l++){const c=this.modelLineProjections[l-1];if(c.isVisible()){const d=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,h=l===n.modelLineNumber?n.modelLineWrappedLineIdx+1:c.getViewLineCount();for(let u=d;u{if(g.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesAfterColumn).lineNumber>=d.modelLineWrappedLineIdx||g.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesBeforeOrAtColumn).lineNumberd.modelLineWrappedLineIdx)return}const _=this.convertModelPositionToViewPosition(d.modelLineNumber,g.horizontalLine.endColumn),b=this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.horizontalLine.endColumn);return b.lineNumber===d.modelLineWrappedLineIdx?new hd(g.visibleColumn,f,g.className,new up(g.horizontalLine.top,_.column),-1,-1):b.lineNumber!!g))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const r=[],a=[],l=i.lineNumber-1,c=n.lineNumber-1;let d=null;for(let f=l;f<=c;f++){const _=this.modelLineProjections[f];if(_.isVisible()){const b=_.getViewLineNumberOfModelPosition(0,f===l?i.column:1),v=_.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),C=v-b+1;let w=0;C>1&&_.getViewLineMinColumn(this.model,f+1,v)===1&&(w=b===0?1:2),r.push(C),a.push(w),d===null&&(d=new B(f+1,0))}else d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,f)),d=null)}d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const h=t-e+1,u=new Array(h);let g=0;for(let f=0,_=s.length;f<_;f++){let b=s[f];const v=Math.min(h-g,r[f]),C=a[f];let w;C===2?w=0:C===1?w=1:w=v;for(let S=0;St&&(f=!0,g=t-s+1),h.getViewLinesData(this.model,c+1,u,g,s-e,i,l),s+=g,f)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,r=n.remainder,a=this.modelLineProjections[s],l=a.getViewLineMinColumn(this.model,s+1,r),c=a.getViewLineMaxColumn(this.model,s+1,r);tc&&(t=c);const d=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new B(s+1,d)).equals(i)?new B(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new L(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new B(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new L(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new B(e,t)),s=n.lineNumber,r=n.column;let a=s-1,l=!1;for(;a>0&&!this.modelLineProjections[a].isVisible();)a--,l=!0;if(a===0&&!this.modelLineProjections[a].isVisible())return new B(1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(a);let d;return l?d=this.modelLineProjections[a].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(a+1),i):d=this.modelLineProjections[s-1].getViewPositionOfModelPosition(c,r,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return L.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new L(i.lineNumber,i.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),s=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(s.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new L(n.lineNumber,1,s.lineNumber,s.column),t,i);let r=[];const a=n.lineNumber-1,l=s.lineNumber-1;let c=null;for(let g=a;g<=l;g++)if(this.modelLineProjections[g].isVisible())c===null&&(c=new B(g+1,g===a?n.column:1));else if(c!==null){const _=this.model.getLineMaxColumn(g);r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,g,_),t,i)),c=null}c!==null&&(r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,s.lineNumber,s.column),t,i)),c=null),r.sort((g,f)=>{const _=L.compareRangesUsingStarts(g.range,f.range);return _===0?g.idf.id?1:0:_});const d=[];let h=0,u=null;for(const g of r){const f=g.id;u!==f&&(u=f,d[h++]=g)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function hG(o){if(o.length===0)return[];const e=o.slice();e.sort(L.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,n=e[0].endLineNumber;for(let s=1,r=e.length;sn+1?(t.push(new L(i,1,n,1)),i=a.startLineNumber,n=a.endLineNumber):a.endLineNumber>n&&(n=a.endLineNumber)}return t.push(new L(i,1,n,1)),t}class MA{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class RA{constructor(e,t){this.modelRange=e,this.viewLines=t}}class uG{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class gG{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new fG(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new _D(t,i)}onModelLinesInserted(e,t,i,n){return new bD(t,i)}onModelLineChanged(e,t,i){return[!1,new r5(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;st)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class pG extends H{constructor(e,t,i,n,s,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new LK,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new mt(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new mt(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=RE.create(this.model),this.model.isTooLargeForTokenization())this._lines=new gG(this.model);else{const c=this._configuration.options,d=c.get(46),h=c.get(127),u=c.get(134),g=c.get(126);this._lines=new dG(this._editorId,this.model,n,s,d,this.model.getOptions().tabSize,h,u.wrappingColumn,g)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new gg(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new rG(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),c.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new vK(c)),this._eventDispatcher.emitOutgoingEvent(new CE(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new aG(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const d=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(d,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(m_.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new SK)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new CK(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new L(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const n of i)this.model.tokenization.tokenizeViewport(n.startLineNumber,n.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new _K(e)),this._eventDispatcher.emitOutgoingEvent(new vE(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new gK)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new fK)}_onConfigurationChanged(e,t){let i=null;if(this._viewportStart.isValid){const d=new B(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber));i=this.coordinatesConverter.convertViewPositionToModelPosition(d)}let n=!1;const s=this._configuration.options,r=s.get(46),a=s.get(127),l=s.get(134),c=s.get(126);if(this._lines.setWrappingSettings(r,a,l.wrappingColumn,c)&&(e.emitViewEvent(new fb),e.emitViewEvent(new pb),e.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(83)&&(this._decorations.reset(),e.emitViewEvent(new Oh(null))),e.emitViewEvent(new pK(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const d=this.coordinatesConverter.convertModelPositionToViewPosition(i),h=this.viewLayout.getVerticalOffsetForLineNumber(d.lineNumber);this.viewLayout.setScrollPosition({scrollTop:h+this._viewportStart.startLineDelta},1)}Rh.shouldRecreate(t)&&(this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const i=this._eventDispatcher.beginEmitViewEvents();let n=!1,s=!1;const r=e instanceof vd?e.rawContentChangedEvent.changes:e.changes,a=e instanceof vd?e.rawContentChangedEvent.versionId:null,l=this._lines.createLineBreaksComputer();for(const h of r)switch(h.changeType){case 4:{for(let u=0;u!_.ownerId||_.ownerId===this._editorId)),l.addRequest(g,f,null)}break}case 2:{let u=null;h.injectedText&&(u=h.injectedText.filter(g=>!g.ownerId||g.ownerId===this._editorId)),l.addRequest(h.detail,u,null);break}}const c=l.finalize(),d=new Rp(c);for(const h of r)switch(h.changeType){case 1:{this._lines.onModelFlushed(),i.emitViewEvent(new fb),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break}case 3:{const u=this._lines.onModelLinesDeleted(a,h.fromLineNumber,h.toLineNumber);u!==null&&(i.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber)),n=!0;break}case 4:{const u=d.takeCount(h.detail.length),g=this._lines.onModelLinesInserted(a,h.fromLineNumber,h.toLineNumber,u);g!==null&&(i.emitViewEvent(g),this.viewLayout.onLinesInserted(g.fromLineNumber,g.toLineNumber)),n=!0;break}case 2:{const u=d.dequeue(),[g,f,_,b]=this._lines.onModelLineChanged(a,h.lineNumber,u);s=g,f&&i.emitViewEvent(f),_&&(i.emitViewEvent(_),this.viewLayout.onLinesInserted(_.fromLineNumber,_.toLineNumber)),b&&(i.emitViewEvent(b),this.viewLayout.onLinesDeleted(b.fromLineNumber,b.toLineNumber));break}case 5:break}a!==null&&this._lines.acceptVersionId(a),this.viewLayout.onHeightMaybeChanged(),!n&&s&&(i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const i=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(i){const n=this.coordinatesConverter.convertModelPositionToViewPosition(i.getStartPosition()),s=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber);this.viewLayout.setScrollPosition({scrollTop:s+this._viewportStart.startLineDelta},1)}}try{const i=this._eventDispatcher.beginEmitViewEvents();e instanceof vd&&i.emitOutgoingEvent(new AK(e.contentChangedEvent)),this._cursor.onModelContentChanged(i,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new bK),this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new TK(e))})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new NK(e))})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new fb),t.emitViewEvent(new pb),t.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new MK(e))})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Oh(e)),this._eventDispatcher.emitOutgoingEvent(new EK(e))}))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new fb),i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new xK)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(133),t=this._configuration.options.get(61),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new L(s,this.getLineMinColumn(s),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const n=[];let s=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,c=t.endColumn;for(let d=0,h=i.length;dl||(r"u")return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=kn(this.getLineContent(e));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Vr(this.getLineContent(e));return t===-1?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const n=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,n)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map(a=>a.toInlineDecoration(e))]),new Ds(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,t,s,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new OV(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,q0(this._configuration.options)),i=new mG;for(const n of t){const s=n.options,r=s.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),d=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(l,s.zIndex,c,d,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i&&i.invalidateCachedColor();const n=t.options.minimap;n&&n.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const n=i?`\r +`:this.model.getEOL();e=e.slice(0),e.sort(L.compareRangesUsingStarts);let s=!1,r=!1;for(const l of e)l.isEmpty()?s=!0:r=!0;if(!r){if(!t)return"";const l=e.map(d=>d.startLineNumber);let c="";for(let d=0;d0&&l[d-1]===l[d]||(c+=this.model.getLineContent(l[d])+n);return c}if(s&&t){const l=[];let c=0;for(const d of e){const h=d.startLineNumber;d.isEmpty()?h!==c&&l.push(this.model.getLineContent(h)):l.push(this.model.getValueInRange(d,i?2:0)),c=h}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Ks||e.length!==1)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const d=n.startLineNumber;n=new L(d,this.model.getLineMinColumn(d),d,this.model.getLineMaxColumn(d))}const s=this._configuration.options.get(46),r=this._getColorMap(),l=/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===ts.fontFamily;let c;return l?c=ts.fontFamily:(c=s.fontFamily,c=c.replace(/"/g,"'"),/[,']/.test(c)||/[+ ]/.test(c)&&(c=`'${c}'`),c=`${c}, ${ts.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,r)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let c=i;c<=s;c++){const d=this.model.tokenization.getLineTokens(c),h=d.getLineContent(),u=c===i?n-1:0,g=c===s?r-1:h.length;h===""?l+="
":l+=tG(h,d.inflate(),t,u,g,a,Yi)}return l}_getColorMap(){const e=Wt.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new IK);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,s){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,s))}paste(e,t,i,n){this._executeCursorEdit(s=>this._cursor.paste(s,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,n,s){this._withViewEventsCollector(r=>r.emitViewEvent(new C0(e,!1,i,null,n,t,s)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new yK),this._eventDispatcher.emitOutgoingEvent(new kK))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class RE{constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}static create(e){const t=e._setTrackedRange(null,new L(1,1,1,1),1);return new RE(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new B(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new L(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=r-s}invalidate(){this._isValid=!1}}class mG{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],c=a[a.length-1];if(l===s&&c+1>=i){n>c&&(a[a.length-1]=n);return}a.push(s,i,n)}else{const a=new jP(e,t,[s,i,n]);this._asMap[e]=a,this.asArray.push(a)}}}class k1{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}var gm;(function(o){o[o.Ignore=0]="Ignore",o[o.Info=1]="Info",o[o.Warning=2]="Warning",o[o.Error=3]="Error"})(gm||(gm={}));(function(o){const e="error",t="warning",i="warn",n="info",s="ignore";function r(l){return l?au(e,l)?o.Error:au(t,l)||au(i,l)?o.Warning:au(n,l)?o.Info:o.Ignore:o.Ignore}o.fromValue=r;function a(l){switch(l){case o.Error:return e;case o.Warning:return t;case o.Info:return n;default:return s}}o.toString=a})(gm||(gm={}));const Bt=gm;var I5=Bt;const di=Ye("notificationService");class _G{}class wp{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let n=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let s=0;sthis.injectionOffsets[s];s++)n0?this.breakOffsets[s-1]:0,t===0)if(e<=r)n=s-1;else if(e>l)i=s+1;else break;else if(e=l)i=s+1;else break}let a=e-r;return s>0&&(a+=this.wrappedTextIndentLength),new wb(s,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new wb(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const n=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&OA(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let n=i.offsetInInputWithInjections;if(PA(this.injectionOptions[i.injectedTextIndex].cursorStops))return n;let s=i.injectedTextIndex-1;for(;s>=0&&this.injectionOffsets[s]===this.injectionOffsets[i.injectedTextIndex]&&!(OA(this.injectionOptions[s].cursorStops)||(n-=this.injectionOptions[s].content.length,PA(this.injectionOptions[s].cursorStops)));)s--;return n}}else if(t===1||t===4){let n=i.offsetInInputWithInjections+i.length,s=i.injectedTextIndex;for(;s+1=0&&this.injectionOffsets[s-1]===this.injectionOffsets[s];)n-=this.injectionOptions[s-1].content.length,s--;return n}OC()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let n=0;for(let s=0;se)break;if(e<=l)return{injectedTextIndex:s,offsetInInputWithInjections:a,length:r};n+=r}}}}function OA(o){return o==null?!0:o===Wo.Right||o===Wo.Both}function PA(o){return o==null?!0:o===Wo.Left||o===Wo.Both}class wb{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new B(e+this.outputLineIndex,this.outputOffset+1)}}class OE{constructor(e,t){this.classifier=new bG(e,t)}static create(e){return new OE(e.get(122),e.get(121))}createLineBreaksComputer(e,t,i,n){const s=[],r=[],a=[];return{addRequest:(l,c,d)=>{s.push(l),r.push(c),a.push(d)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let d=0,h=s.length;d=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let kD=[],xD=[];function vG(o,e,t,i,n,s,r){if(n===-1)return null;const a=t.length;if(a<=1)return null;const l=e.breakOffsets,c=e.breakOffsetsVisibleColumn,d=E5(t,i,n,s,r),h=n-d,u=kD,g=xD;let f=0,_=0,b=0,v=n;const C=l.length;let w=0;if(w>=0){let S=Math.abs(c[w]-v);for(;w+1=S)break;S=k,w++}}for(;wS&&(S=_,k=b);let x=0,y=0,D=0,I=0;if(k<=v){let F=k,z=S===0?0:t.charCodeAt(S-1),j=S===0?0:o.get(z),re=!0;for(let he=S;he_&&ID(z,j,ye,xe)&&(x=Se,y=F),F+=He,F>v){Se>_?(D=Se,I=F-He):(D=he+1,I=F),F-y>h&&(x=0),re=!1;break}z=ye,j=xe}if(re){f>0&&(u[f]=l[l.length-1],g[f]=c[l.length-1],f++);break}}if(x===0){let F=k,z=t.charCodeAt(S),j=o.get(z),re=!1;for(let he=S-1;he>=_;he--){const Se=he+1,ye=t.charCodeAt(he);if(ye===9){re=!0;break}let xe,He;if(Td(ye)?(he--,xe=0,He=2):(xe=o.get(ye),He=ic(ye)?s:1),F<=v){if(D===0&&(D=Se,I=F),F<=v-h)break;if(ID(ye,xe,z,j)){x=Se,y=F;break}}F-=He,z=ye,j=xe}if(x!==0){const he=h-(I-y);if(he<=i){const Se=t.charCodeAt(D);let ye;Li(Se)?ye=2:ye=Sp(Se,I,i,s),he-ye<0&&(x=0)}}if(re){w--;continue}}if(x===0&&(x=D,y=I),x<=_){const F=t.charCodeAt(_);Li(F)?(x=_+2,y=b+2):(x=_+1,y=b+Sp(F,b,i,s))}for(_=x,u[f]=x,b=y,g[f]=y,f++,v=y+h;w<0||w=O)break;O=F,w++}}return f===0?null:(u.length=f,g.length=f,kD=e.breakOffsets,xD=e.breakOffsetsVisibleColumn,e.breakOffsets=u,e.breakOffsetsVisibleColumn=g,e.wrappedTextIndentLength=d,e)}function CG(o,e,t,i,n,s,r){const a=er.applyInjectedText(e,t);let l,c;if(t&&t.length>0?(l=t.map(y=>y.options),c=t.map(y=>y.column-1)):(l=null,c=null),n===-1)return l?new wp(c,l,[a.length],[],0):null;const d=a.length;if(d<=1)return l?new wp(c,l,[a.length],[],0):null;const h=E5(a,i,n,s,r),u=n-h,g=[],f=[];let _=0,b=0,v=0,C=n,w=a.charCodeAt(0),S=o.get(w),k=Sp(w,0,i,s),x=1;Li(w)&&(k+=1,w=a.charCodeAt(1),S=o.get(w),x++);for(let y=x;yC&&((b===0||k-v>u)&&(b=D,v=k-F),g[_]=b,f[_]=v,_++,C=v+u,b=0),w=I,S=O}return _===0&&(!t||t.length===0)?null:(g[_]=d,f[_]=k,new wp(c,l,g,f,h))}function Sp(o,e,t,i){return o===9?t-e%t:ic(o)||o<32?i:1}function FA(o,e){return e-o%e}function ID(o,e,t,i){return t!==32&&(e===2&&i!==2||e!==1&&i===1||e===3&&i!==2||i===3&&e!==1)}function E5(o,e,t,i,n){let s=0;if(n!==0){const r=kn(o);if(r!==-1){for(let l=0;lt&&(s=0)}}return s}var ES;const NS=(ES=window.trustedTypes)===null||ES===void 0?void 0:ES.createPolicy("domLineBreaksComputer",{createHTML:o=>o});class PE{static create(){return new PE}constructor(){}createLineBreaksComputer(e,t,i,n){const s=[],r=[];return{addRequest:(a,l,c)=>{s.push(a),r.push(l)},finalize:()=>wG(s,e,t,i,n,r)}}}function wG(o,e,t,i,n,s){var r;function a(D){const I=s[D];if(I){const O=er.applyInjectedText(o[D],I),F=I.map(j=>j.options),z=I.map(j=>j.column-1);return new wp(z,F,[O.length],[],0)}else return null}if(i===-1){const D=[];for(let I=0,O=o.length;Il?(O=0,F=0):z=l-he}const j=I.substr(O),re=SG(j,F,t,z,g,h);f[D]=O,_[D]=F,b[D]=j,v[D]=re[0],C[D]=re[1]}const w=g.build(),S=(r=NS==null?void 0:NS.createHTML(w))!==null&&r!==void 0?r:w;u.innerHTML=S,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);const k=document.createRange(),x=Array.prototype.slice.call(u.children,0),y=[];for(let D=0;Dxe.options),Se=ye.map(xe=>xe.column-1)):(he=null,Se=null),y[D]=new wp(Se,he,O,re,z)}return document.body.removeChild(u),y}function SG(o,e,t,i,n,s){if(s!==0){const u=String(s);n.appendASCIIString('
');const r=o.length;let a=e,l=0;const c=[],d=[];let h=0");for(let u=0;u"),c[u]=l,d[u]=a;const g=h;h=u+1"),c[o.length]=l,d[o.length]=a,n.appendASCIIString("
"),[c,d]}function yG(o,e,t,i){if(t.length<=1)return null;const n=Array.prototype.slice.call(e.children,0),s=[];try{ED(o,n,i,0,null,t.length-1,null,s)}catch(r){return console.log(r),null}return s.length===0?null:(s.push(t.length),s)}function ED(o,e,t,i,n,s,r,a){if(i===s||(n=n||TS(o,e,t[i],t[i+1]),r=r||TS(o,e,t[s],t[s+1]),Math.abs(n[0].top-r[0].top)<=.1))return;if(i+1===s){a.push(s);return}const l=i+(s-i)/2|0,c=TS(o,e,t[l],t[l+1]);ED(o,e,t,i,n,l,c,a),ED(o,e,t,l,c,s,r,a)}function TS(o,e,t,i){return o.setStart(e[t/16384|0].firstChild,t%16384),o.setEnd(e[i/16384|0].firstChild,i%16384),o.getClientRects()}var LG=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ha=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},DG=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kG=0;class xG{constructor(e,t,i,n,s){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s}dispose(){nt(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let pg=class tu extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this.languageConfigurationService=h,this._deliveryQueue=new XO,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onWillType=this._onWillType.event,this._onDidType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection();const g=Object.assign({},t);this._domElement=e,this._overflowWidgetsDomNode=g.overflowWidgetsDomNode,delete g.overflowWidgetsDomNode,this._id=++kG,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,g,d)),this._register(this._configuration.onDidChange(b=>{this._onDidChangeConfiguration.fire(b);const v=this._configuration.options;if(b.hasChanged(133)){const C=v.get(133);this._onDidLayoutChange.fire(C)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new IG(this,this._contextKeyService)),this._register(new EG(this,this._contextKeyService,u)),this._instantiationService=n.createChild(new k1([Ee,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new NG(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let f;Array.isArray(i.contributions)?f=i.contributions:f=md.getEditorContributions();for(const b of f){if(this._contributions[b.id]){Te(new Error(`Cannot have two contributions with the same id ${b.id}`));continue}try{const v=this._instantiationService.createInstance(b.ctor,this);this._contributions[b.id]=v}catch(v){Te(v)}}md.getEditorActions().forEach(b=>{if(this._actions[b.id]){Te(new Error(`Cannot have two actions with the same id ${b.id}`));return}const v=new a5(b.id,b.label,b.alias,Wn(b.precondition),()=>this._instantiationService.invokeFunction(C=>Promise.resolve(b.runEditorCommand(C,this,null))),this._contextKeyService);this._actions[v.id]=v});const _=()=>!this._configuration.options.get(83)&&this._configuration.options.get(32).enabled;this._register(new zH(this._domElement,{onDragEnter:()=>{},onDragOver:b=>{if(!_())return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this.showDropIndicatorAt(v.position)},onDrop:b=>DG(this,void 0,void 0,function*(){if(!_()||(this.removeDropIndicator(),!b.dataTransfer))return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this._onDropIntoEditor.fire({position:v.position,event:b})}),onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(e,t,i){return new aD(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return o_.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;tL.lift(i)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Ci.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(!!this._modelData){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!L.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,r,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new L(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=oe.isISelection(e),n=L.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const s={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(s,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new oe(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!L.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(L.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(!!this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let n=0,s=e.length;n0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]);const n=t.contributionsState||{},s=Object.keys(this._contributions);for(let a=0,l=s.length;at.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const s=i;this._type(e,s.text||"");return}case"replacePreviousChar":{const s=i;this._compositionType(e,s.text||"",s.replaceCharCnt||0,0,0);return}case"compositionType":{const s=i;this._compositionType(e,s.text||"",s.replacePrevCharCnt||0,s.replaceNextCharCnt||0,s.positionDelta||0);return}case"paste":{const s=i;this._paste(e,s.text||"",s.pasteOnNewLine||!1,s.multicursorText||null,s.mode||null);return}case"cut":this._cut(e);return}const n=this.getAction(t);if(n){Promise.resolve(n.run()).then(void 0,Te);return}!this._modelData||this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i)}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){!this._modelData||(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){!this._modelData||(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){!this._modelData||this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s){if(!this._modelData||t.length===0)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new L(a.lineNumber,a.column,l.lineNumber,l.column),languageId:s})}_cut(e){!this._modelData||this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=md.getEditorCommand(t);return n?(i=i||{},i.source=e,this._instantiationService.invokeFunction(s=>{Promise.resolve(n.runEditorCommand(s,this,i)).then(void 0,Te)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData||this._configuration.options.get(83))return!1;let n;return i?Array.isArray(i)?n=()=>i:n=i:n=()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){!this._modelData||this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){!this._modelData||this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new TG(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,q0(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,q0(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){!this._modelData||e.length===0||this._modelData.model.changeDecorations(t=>{t.deltaDecorations(e,[])})}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(133)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(133),s=tu._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft();return{top:s,left:r,height:i.get(61)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,e)}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){an(e,this._configuration.options.get(46))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();const i=new pG(this._id,this._configuration,e,PE.create(),OE.create(this._configuration.options),r=>Jo(r),this.languageConfigurationService,this._themeService);t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(r=>{switch(r.kind){case 0:this._onDidContentSizeChange.fire(r);break;case 1:this._editorTextFocus.setValue(r.hasFocus);break;case 2:this._onDidScrollChange.fire(r);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{r.reachedMaxCursorCount&&this._notificationService.warn(p("cursors.maximum","The number of cursors has been limited to {0}.",gg.MAX_CURSOR_COUNT));const a=[];for(let d=0,h=r.selections.length;d{this._paste("keyboard",s,r,a,l)},type:s=>{this._type("keyboard",s)},compositionType:(s,r,a,l)=>{this._compositionType("keyboard",s,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(s,r,a,l)=>{const c={text:s,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",c)},type:s=>{const r={text:s};this._commandService.executeCommand("type",r)},compositionType:(s,r,a,l)=>{if(a||l){const c={text:s,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",c)}else{const c={text:s,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",c)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new w1(e.coordinatesConverter);return i.onKeyDown=s=>this._onKeyDown.fire(s),i.onKeyUp=s=>this._onKeyUp.fire(s),i.onContextMenu=s=>this._onContextMenu.fire(s),i.onMouseMove=s=>this._onMouseMove.fire(s),i.onMouseLeave=s=>this._onMouseLeave.fire(s),i.onMouseDown=s=>this._onMouseDown.fire(s),i.onMouseUp=s=>this._onMouseUp.fire(s),i.onMouseDrag=s=>this._onMouseDrag.fire(s),i.onMouseDrop=s=>this._onMouseDrop.fire(s),i.onMouseDropCanceled=s=>this._onMouseDropCanceled.fire(s),i.onMouseWheel=s=>this._onMouseWheel.fire(s),[new aK(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e==null||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}showDropIndicatorAt(e){const t=[{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:tu.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}};pg.dropIntoEditorDecorationOptions=Ne.register({description:"workbench-dnd-target",className:"dnd-target"});pg=LG([ha(3,Ae),ha(4,ct),ha(5,ci),ha(6,Ee),ha(7,Ct),ha(8,di),ha(9,al),ha(10,si),ha(11,de)],pg);class BA extends H{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new R(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new R(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class IG extends H{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=N.editorSimpleInput.bindTo(t),this._editorFocus=N.focus.bindTo(t),this._textInputFocus=N.textInputFocus.bindTo(t),this._editorTextFocus=N.editorTextFocus.bindTo(t),this._editorTabMovesFocus=N.tabMovesFocus.bindTo(t),this._editorReadonly=N.readOnly.bindTo(t),this._inDiffEditor=N.inDiffEditor.bindTo(t),this._editorColumnSelection=N.columnSelection.bindTo(t),this._hasMultipleSelections=N.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=N.hasNonEmptySelection.bindTo(t),this._canUndo=N.canUndo.bindTo(t),this._canRedo=N.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(132)),this._editorReadonly.set(e.get(83)),this._inDiffEditor.set(e.get(56)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class EG extends H{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=N.languageId.bindTo(t),this._hasCompletionItemProvider=N.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=N.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=N.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=N.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=N.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=N.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=N.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=N.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=N.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=N.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=N.hasReferenceProvider.bindTo(t),this._hasRenameProvider=N.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=N.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=N.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=N.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=N.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=N.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=N.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=N.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===Me.walkThroughSnippet)})}}class NG extends H{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(Od(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}class TG{constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}get length(){return this._decorationIds.length}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations(n=>{this._isChangingDecorations||e.call(t,n)},i)}getRange(e){return!this._editor.hasModel()||e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e])}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations(t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)})}finally{this._isChangingDecorations=!1}}}const AG=encodeURIComponent("");function AS(o){return AG+encodeURIComponent(o.toString())+MG}const RG=encodeURIComponent('');function PG(o){return RG+encodeURIComponent(o.toString())+OG}Et((o,e)=>{const t=o.getColor(x4);t&&e.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${t}; }`);const i=o.getColor(Or);i&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${AS(i)}") repeat-x bottom left; }`);const n=o.getColor(_z);n&&e.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${n}; }`);const s=o.getColor(ag);s&&e.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${s}; }`);const r=o.getColor(vs);r&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${AS(r)}") repeat-x bottom left; }`);const a=o.getColor(bz);a&&e.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=o.getColor(Cv);l&&e.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=o.getColor(zn);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${AS(c)}") repeat-x bottom left; }`);const d=o.getColor(vz);d&&e.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${d}; }`);const h=o.getColor(wz);h&&e.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${h}; }`);const u=o.getColor(Cz);u&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${PG(u)}") no-repeat bottom left; }`);const g=o.getColor(y$);g&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${g.rgba.a}; }`);const f=o.getColor(S$);f&&e.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${f}; }`);const _=o.getColor(Cs)||"inherit";e.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${_}}`)});class bt{constructor(e,t,i){const n=s=>this.emitter.fire(s);this.emitter=new R({onFirstListenerAdd:()=>e.addEventListener(t,n,i),onLastListenerRemove:()=>e.removeEventListener(t,n,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function ND(o){return o.preventDefault(),o.stopPropagation(),o}var Zg=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const FG=!1;var Fv;(function(o){o.North="north",o.South="south",o.East="east",o.West="west"})(Fv||(Fv={}));let BG=4;const WG=new R;let VG=300;const HG=new R;class FE{constructor(){this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new bt(window,"mouseup")).event}dispose(){this.disposables.dispose()}}Zg([pi],FE.prototype,"onPointerMove",null);Zg([pi],FE.prototype,"onPointerUp",null);class BE{constructor(e){this.el=e,this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(this.el,xt.Change)).event}get onPointerUp(){return this.disposables.add(new bt(this.el,xt.End)).event}dispose(){this.disposables.dispose()}}Zg([pi],BE.prototype,"onPointerMove",null);Zg([pi],BE.prototype,"onPointerUp",null);class Bv{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}Zg([pi],Bv.prototype,"onPointerMove",null);Zg([pi],Bv.prototype,"onPointerUp",null);const WA="pointer-events-disabled";class tn extends H{constructor(e,t,i){super(),this.hoverDelay=VG,this.hoverDelayer=this._register(new Kr(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new R),this._onDidStart=this._register(new R),this._onDidChange=this._register(new R),this._onDidReset=this._register(new R),this._onDidEnd=this._register(new R),this.orthogonalStartSashDisposables=this._register(new Q),this.orthogonalStartDragHandleDisposables=this._register(new Q),this.orthogonalEndSashDisposables=this._register(new Q),this.orthogonalEndDragHandleDisposables=this._register(new Q),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=q(e,J(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),Ge&&this.el.classList.add("mac");const n=this._register(new bt(this.el,"mousedown")).event;this._register(n(h=>this.onPointerStart(h,new FE),this));const s=this._register(new bt(this.el,"dblclick")).event;this._register(s(this.onPointerDoublePress,this));const r=this._register(new bt(this.el,"mouseenter")).event;this._register(r(()=>tn.onMouseEnter(this)));const a=this._register(new bt(this.el,"mouseleave")).event;this._register(a(()=>tn.onMouseLeave(this))),this._register(ft.addTarget(this.el));const l=ge.map(this._register(new bt(this.el,xt.Start)).event,h=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(l(h=>this.onPointerStart(h,new BE(this.el)),this));const c=this._register(new bt(this.el,xt.Tap)).event,d=ge.map(ge.filter(ge.debounce(c,(h,u)=>{var g;return{event:u,count:((g=h==null?void 0:h.count)!==null&&g!==void 0?g:0)+1}},250),({count:h})=>h===2),({event:h})=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(d(this.onPointerDoublePress,this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=BG,this._register(WG.event(h=>{this.size=h,this.layout()}))),this._register(HG.event(h=>this.hoverDelay=h)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",FG),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=q(this.el,J(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Be(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseleave")).event(()=>tn.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=q(this.el,J(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Be(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseleave")).event(()=>tn.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){ut.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const f=this.getOrthogonalSash(e);f&&(i=!0,e.__orthogonalSashEvent=!0,f.onPointerStart(e,new Bv(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new Bv(t))),!this.state)return;const n=WH("iframe");for(const f of n)f.classList.add(WA);const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=Qs(this.el),d=()=>{let f="";i?f="all-scroll":this.orientation===1?this.state===1?f="s-resize":this.state===2?f="n-resize":f=Ge?"row-resize":"ns-resize":this.state===1?f="e-resize":this.state===2?f="w-resize":f=Ge?"col-resize":"ew-resize",c.textContent=`* { cursor: ${f} !important; }`},h=new Q;d(),i||this.onDidEnablementChange.event(d,null,h);const u=f=>{ut.stop(f,!1);const _={startX:s,currentX:f.pageX,startY:r,currentY:f.pageY,altKey:a};this._onDidChange.fire(_)},g=f=>{ut.stop(f,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),h.dispose();for(const _ of n)_.classList.remove(WA)};t.onPointerMove(u,null,h),t.onPointerUp(g,null,h),h.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&tn.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&tn.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){tn.onMouseLeave(this)}layout(){if(this.orientation===0){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){if(!(!e.target||!(e.target instanceof HTMLElement))&&e.target.classList.contains("orthogonal-drag-handle"))return e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}class hc{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(e.getScrollTop()!==0){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}}return new hc(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const __={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:Vn.text},Vc={CurrentDragAndDropData:void 0};var VA,HA;class zG{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1,t=()=>!1){return new Uu(new jG(e,t))}static forStrings(){return new Uu(new zG)}static forConfigKeys(){return new Uu(new UG)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new Sb,this._root.segment=i.value());const s=[];for(n=this._root;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new Sb,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new Sb,n.right.segment=i.value()),s.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new Sb,n.mid.segment=i.value()),s.push([0,n]),n=n.mid;else break}const r=n.value;n.value=t,n.key=e;for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const d=s[a][0],h=s[a+1][0];if(d===1&&h===1)s[a][1]=l.rotateLeft();else if(d===-1&&h===-1)s[a][1]=l.rotateRight();else if(d===1&&h===-1)l.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=l.rotateLeft();else if(d===-1&&h===1)l.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),s=[];let r=this._root;for(;r;){const a=n.cmp(r.segment);if(a>0)s.push([-1,r]),r=r.left;else if(a<0)s.push([1,r]),r=r.right;else if(n.hasNext())n.next(),s.push([0,r]),r=r.mid;else break}if(!!r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const a=this._min(r.right),{key:l,value:c,segment:d}=a;this._delete(a.key,!1),r.key=l,r.value=c,r.segment=d}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(s.length>0){const[l,c]=s[s.length-1];switch(l){case-1:c.left=a;break;case 0:c.mid=a;break;case 1:c.right=a;break}}else this._root=a}for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),s[a][1]=l.rotateLeft()):c<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),s[a][1]=l.rotateRight()),a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,n;for(;i;){const s=t.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(t.hasNext())t.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else return i.mid?this._entries(i.mid):void 0}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){!e||(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}class KG{constructor(e,t){this.uri=e,this.value=t}}class mn{constructor(e,t){this[VA]="ResourceMap",e instanceof mn?(this.map=new Map(e.map),this.toKey=t!=null?t:mn.defaultToKey):(this.map=new Map,this.toKey=e!=null?e:mn.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new KG(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t<"u"&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(VA=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}mn.defaultToKey=o=>o.toString();class qG{constructor(){this[HA]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(!!i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(!!t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}[(HA=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class Dc extends qG{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}function WE(...o){return function(e,t){for(let i=0,n=o.length;i0?[{start:0,end:e.length}]:[]:null}function TF(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t===-1?null:[{start:t,end:t+o.length}]}function AF(o,e){return TD(o.toLowerCase(),e.toLowerCase(),0,0)}function TD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]===e[i]){let n=null;return(n=TD(o,e,t+1,i+1))?zE({start:i,end:i+1},n):null}return TD(o,e,t,i+1)}function VE(o){return 97<=o&&o<=122}function I1(o){return 65<=o&&o<=90}function HE(o){return 48<=o&&o<=57}function MF(o){return o===32||o===9||o===10||o===13}const RF=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(o=>RF.add(o.charCodeAt(0)));function Wv(o){return MF(o)||RF.has(o)}function GG(o,e){return o===e||Wv(o)&&Wv(e)}function OF(o){return VE(o)||I1(o)||HE(o)}function zE(o,e){return e.length===0?e=[o]:o.end===e[0].start?e[0].start=o.start:e.unshift(o),e}function PF(o,e){for(let t=e;t0&&!OF(o.charCodeAt(t-1)))return t}return o.length}function AD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]!==e[i].toLowerCase())return null;{let n=null,s=i+1;for(n=AD(o,e,t+1,i+1);!n&&(s=PF(e,s)).6}function QG(o){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=o;return t>.2&&e<.8&&i>.6&&n<.2}function XG(o){let e=0,t=0,i=0,n=0;for(let s=0;s60)return null;const t=ZG(e);if(!QG(t)){if(!YG(t))return null;e=e.toLowerCase()}let i=null,n=0;for(o=o.toLowerCase();n0&&Wv(o.charCodeAt(t-1)))return t;return o.length}const eZ=WE(x1,FF,TF),tZ=WE(x1,FF,AF),zA=new Dc(1e4);function UA(o,e,t=!1){if(typeof o!="string"||typeof e!="string")return null;let i=zA.get(o);i||(i=new RegExp(hB(o),"i"),zA.set(o,i));const n=i.exec(e);return n?[{start:n.index,end:n.index+n[0].length}]:t?tZ(o,e):eZ(o,e)}function iZ(o,e,t,i,n,s){const r=Math.min(13,o.length);for(;t"u")return[];const e=[],t=o[1];for(let i=o.length-1;i>1;i--){const n=o[i]+t,s=e[e.length-1];s&&s.end===n?s.end=n+1:e.push({start:n,end:n+1})}return e}const Bl=128;function UE(){const o=[],e=[];for(let t=0;t<=Bl;t++)e[t]=0;for(let t=0;t<=Bl;t++)o.push(e.slice(0));return o}function WF(o){const e=[];for(let t=0;t<=o;t++)e[t]=0;return e}const VF=WF(2*Bl),RD=WF(2*Bl),ua=UE(),Hc=UE(),yb=UE();function Lb(o,e){if(e<0||e>=o.length)return!1;const t=o.codePointAt(e);switch(t){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!yI(t)}}function $A(o,e){if(e<0||e>=o.length)return!1;switch(o.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function S0(o,e,t){return e[o]!==t[o]}function nZ(o,e,t,i,n,s,r=!1){for(;eBl?Bl:o.length,l=i.length>Bl?Bl:i.length;if(t>=a||s>=l||a-t>l-s||!nZ(e,t,a,n,s,l,!0))return;sZ(a,l,t,s,e,n);let c=1,d=1,h=t,u=s;const g=[!1];for(c=1,h=t;hC,I=D?Hc[c][d-1]+(ua[c][d-1]>0?-5:0):0,O=u>C+1&&ua[c][d-1]>0,F=O?Hc[c][d-2]+(ua[c][d-2]>0?-5:0):0;if(O&&(!D||F>=I)&&(!x||F>=y))Hc[c][d]=F,yb[c][d]=3,ua[c][d]=0;else if(D&&(!x||I>=y))Hc[c][d]=I,yb[c][d]=2,ua[c][d]=0;else if(x)Hc[c][d]=y,yb[c][d]=1,ua[c][d]=ua[c-1][d-1]+1;else throw new Error("not possible")}}if(!g[0]&&!r.firstMatchCanBeWeak)return;c--,d--;const f=[Hc[c][d],s];let _=0,b=0;for(;c>=1;){let C=d;do{const w=yb[c][C];if(w===3)C=C-2;else if(w===2)C=C-1;else break}while(C>=1);_>1&&e[t+c-1]===n[s+d-1]&&!S0(C+s-1,i,n)&&_+1>ua[c][C]&&(C=d),C===d?_++:_=1,b||(b=C),c--,d=C-1,f.push(d)}l===a&&r.boostFullMatch&&(f[0]+=2);const v=b-a;return f[0]-=v,f}function sZ(o,e,t,i,n,s){let r=o-1,a=e-1;for(;r>=t&&a>=i;)n[r]===s[a]&&(RD[r]=a,r--),a--}function oZ(o,e,t,i,n,s,r,a,l,c,d){if(e[t]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===t-i?h=o[t]===n[r]?7:5:S0(r,n,s)&&(r===0||!S0(r-1,n,s))?(h=o[t]===n[r]?7:5,u=!0):Lb(s,r)&&(r===0||!Lb(s,r-1))?h=5:(Lb(s,r-1)||$A(s,r-1))&&(h=5,u=!0),h>1&&t===i&&(d[0]=!0),u||(u=S0(r,n,s)||Lb(s,r-1)||$A(s,r-1)),t===i?r>l&&(h-=u?3:5):c?h+=u?2:0:h+=u?0:1,r+1===a&&(h-=u?3:5),h}function rZ(o,e,t,i,n,s,r){return aZ(o,e,t,i,n,s,!0,r)}function aZ(o,e,t,i,n,s,r,a){let l=mg(o,e,t,i,n,s,a);if(l&&!r)return l;if(o.length>=3){const c=Math.min(7,o.length-1);for(let d=t+1;dl[0])&&(l=u))}}}return l}function lZ(o,e){if(e+1>=o.length)return;const t=o[e],i=o[e+1];if(t!==i)return o.slice(0,e)+i+t+o.slice(e+2)}const yp="$(",jE=new RegExp(`\\$\\(${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?\\)`,"g"),cZ=new RegExp(Ln.iconNameCharacter),dZ=new RegExp(`(\\\\)?${jE.source}`,"g");function hZ(o){return o.replace(dZ,(e,t)=>t?e:`\\${e}`)}const uZ=new RegExp(`\\\\${jE.source}`,"g");function gZ(o){return o.replace(uZ,e=>`\\${e}`)}const fZ=new RegExp(`(\\s)?(\\\\)?${jE.source}(\\s)?`,"g");function KE(o){return o.indexOf(yp)===-1?o:o.replace(fZ,(e,t,i,n)=>i?e:t||n||"")}function Wh(o){const e=o.indexOf(yp);return e===-1?{text:o}:pZ(o,e)}function pZ(o,e){const t=[];let i="";function n(u){if(u){i+=u;for(const g of u)t.push(a)}}let s=-1,r="",a=0,l,c,d=e;const h=o.length;for(n(o.substr(0,e));d" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ +`&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){!this._modelData||this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){const t=e;if(this._modelData===null&&t===null||this._modelData&&this._modelData.model===t)return;const i=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),i&&this.hasModel()&&this.focus();const s={oldModelUrl:n?n.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(s),this._postDetachModelCleanup(n)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const s=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,n)}getTopForLineNumber(e,t=!1){return this._modelData?tu._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?tu._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,n=!1){const s=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,n)}getBottomForLineNumber(e,t=!1){return this._modelData?tu._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e){var t;(t=this._modelData)===null||t===void 0||t.viewModel.setHiddenAreas(e.map(i=>L.lift(i)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Ci.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(!!this._modelData){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!L.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,r,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new L(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=oe.isISelection(e),n=L.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const s={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(s,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new oe(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!L.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(L.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(!!this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let n=0,s=e.length;n0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]);const n=t.contributionsState||{},s=Object.keys(this._contributions);for(let a=0,l=s.length;at.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const s=i;this._type(e,s.text||"");return}case"replacePreviousChar":{const s=i;this._compositionType(e,s.text||"",s.replaceCharCnt||0,0,0);return}case"compositionType":{const s=i;this._compositionType(e,s.text||"",s.replacePrevCharCnt||0,s.replaceNextCharCnt||0,s.positionDelta||0);return}case"paste":{const s=i;this._paste(e,s.text||"",s.pasteOnNewLine||!1,s.multicursorText||null,s.mode||null);return}case"cut":this._cut(e);return}const n=this.getAction(t);if(n){Promise.resolve(n.run()).then(void 0,Te);return}!this._modelData||this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i)}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){!this._modelData||(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){!this._modelData||(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){!this._modelData||this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s){if(!this._modelData||t.length===0)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new L(a.lineNumber,a.column,l.lineNumber,l.column),languageId:s})}_cut(e){!this._modelData||this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=md.getEditorCommand(t);return n?(i=i||{},i.source=e,this._instantiationService.invokeFunction(s=>{Promise.resolve(n.runEditorCommand(s,this,i)).then(void 0,Te)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData||this._configuration.options.get(83))return!1;let n;return i?Array.isArray(i)?n=()=>i:n=i:n=()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){!this._modelData||this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){!this._modelData||this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new TG(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,q0(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,q0(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){!this._modelData||e.length===0||this._modelData.model.changeDecorations(t=>{t.deltaDecorations(e,[])})}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(133)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(133),s=tu._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft();return{top:s,left:r,height:i.get(61)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,e)}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){an(e,this._configuration.options.get(46))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();const i=new pG(this._id,this._configuration,e,PE.create(),OE.create(this._configuration.options),r=>Jo(r),this.languageConfigurationService,this._themeService);t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(r=>{switch(r.kind){case 0:this._onDidContentSizeChange.fire(r);break;case 1:this._editorTextFocus.setValue(r.hasFocus);break;case 2:this._onDidScrollChange.fire(r);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{r.reachedMaxCursorCount&&this._notificationService.warn(p("cursors.maximum","The number of cursors has been limited to {0}.",gg.MAX_CURSOR_COUNT));const a=[];for(let d=0,h=r.selections.length;d{this._paste("keyboard",s,r,a,l)},type:s=>{this._type("keyboard",s)},compositionType:(s,r,a,l)=>{this._compositionType("keyboard",s,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(s,r,a,l)=>{const c={text:s,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",c)},type:s=>{const r={text:s};this._commandService.executeCommand("type",r)},compositionType:(s,r,a,l)=>{if(a||l){const c={text:s,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",c)}else{const c={text:s,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",c)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new w1(e.coordinatesConverter);return i.onKeyDown=s=>this._onKeyDown.fire(s),i.onKeyUp=s=>this._onKeyUp.fire(s),i.onContextMenu=s=>this._onContextMenu.fire(s),i.onMouseMove=s=>this._onMouseMove.fire(s),i.onMouseLeave=s=>this._onMouseLeave.fire(s),i.onMouseDown=s=>this._onMouseDown.fire(s),i.onMouseUp=s=>this._onMouseUp.fire(s),i.onMouseDrag=s=>this._onMouseDrag.fire(s),i.onMouseDrop=s=>this._onMouseDrop.fire(s),i.onMouseDropCanceled=s=>this._onMouseDropCanceled.fire(s),i.onMouseWheel=s=>this._onMouseWheel.fire(s),[new aK(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e==null||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}showDropIndicatorAt(e){const t=[{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:tu.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}};pg.dropIntoEditorDecorationOptions=Ne.register({description:"workbench-dnd-target",className:"dnd-target"});pg=LG([ha(3,Ae),ha(4,ct),ha(5,ci),ha(6,Ee),ha(7,Ct),ha(8,di),ha(9,al),ha(10,si),ha(11,de)],pg);class BA extends H{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new R(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new R(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class IG extends H{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=N.editorSimpleInput.bindTo(t),this._editorFocus=N.focus.bindTo(t),this._textInputFocus=N.textInputFocus.bindTo(t),this._editorTextFocus=N.editorTextFocus.bindTo(t),this._editorTabMovesFocus=N.tabMovesFocus.bindTo(t),this._editorReadonly=N.readOnly.bindTo(t),this._inDiffEditor=N.inDiffEditor.bindTo(t),this._editorColumnSelection=N.columnSelection.bindTo(t),this._hasMultipleSelections=N.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=N.hasNonEmptySelection.bindTo(t),this._canUndo=N.canUndo.bindTo(t),this._canRedo=N.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(132)),this._editorReadonly.set(e.get(83)),this._inDiffEditor.set(e.get(56)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class EG extends H{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=N.languageId.bindTo(t),this._hasCompletionItemProvider=N.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=N.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=N.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=N.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=N.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=N.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=N.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=N.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=N.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=N.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=N.hasReferenceProvider.bindTo(t),this._hasRenameProvider=N.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=N.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=N.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=N.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=N.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=N.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=N.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=N.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===Me.walkThroughSnippet)})}}class NG extends H{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(Od(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}class TG{constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}get length(){return this._decorationIds.length}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations(n=>{this._isChangingDecorations||e.call(t,n)},i)}getRange(e){return!this._editor.hasModel()||e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e])}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations(t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)})}finally{this._isChangingDecorations=!1}}}const AG=encodeURIComponent("");function AS(o){return AG+encodeURIComponent(o.toString())+MG}const RG=encodeURIComponent('');function PG(o){return RG+encodeURIComponent(o.toString())+OG}Et((o,e)=>{const t=o.getColor(x4);t&&e.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${t}; }`);const i=o.getColor(Or);i&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${AS(i)}") repeat-x bottom left; }`);const n=o.getColor(_z);n&&e.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${n}; }`);const s=o.getColor(ag);s&&e.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${s}; }`);const r=o.getColor(vs);r&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${AS(r)}") repeat-x bottom left; }`);const a=o.getColor(bz);a&&e.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=o.getColor(Cv);l&&e.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=o.getColor(zn);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${AS(c)}") repeat-x bottom left; }`);const d=o.getColor(vz);d&&e.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${d}; }`);const h=o.getColor(wz);h&&e.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${h}; }`);const u=o.getColor(Cz);u&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${PG(u)}") no-repeat bottom left; }`);const g=o.getColor(y$);g&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${g.rgba.a}; }`);const f=o.getColor(S$);f&&e.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${f}; }`);const _=o.getColor(Cs)||"inherit";e.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${_}}`)});class bt{constructor(e,t,i){const n=s=>this.emitter.fire(s);this.emitter=new R({onFirstListenerAdd:()=>e.addEventListener(t,n,i),onLastListenerRemove:()=>e.removeEventListener(t,n,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function ND(o){return o.preventDefault(),o.stopPropagation(),o}var Zg=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const FG=!1;var Fv;(function(o){o.North="north",o.South="south",o.East="east",o.West="west"})(Fv||(Fv={}));let BG=4;const WG=new R;let VG=300;const HG=new R;class FE{constructor(){this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new bt(window,"mouseup")).event}dispose(){this.disposables.dispose()}}Zg([pi],FE.prototype,"onPointerMove",null);Zg([pi],FE.prototype,"onPointerUp",null);class BE{constructor(e){this.el=e,this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(this.el,xt.Change)).event}get onPointerUp(){return this.disposables.add(new bt(this.el,xt.End)).event}dispose(){this.disposables.dispose()}}Zg([pi],BE.prototype,"onPointerMove",null);Zg([pi],BE.prototype,"onPointerUp",null);class Bv{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}Zg([pi],Bv.prototype,"onPointerMove",null);Zg([pi],Bv.prototype,"onPointerUp",null);const WA="pointer-events-disabled";class tn extends H{constructor(e,t,i){super(),this.hoverDelay=VG,this.hoverDelayer=this._register(new Kr(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new R),this._onDidStart=this._register(new R),this._onDidChange=this._register(new R),this._onDidReset=this._register(new R),this._onDidEnd=this._register(new R),this.orthogonalStartSashDisposables=this._register(new Q),this.orthogonalStartDragHandleDisposables=this._register(new Q),this.orthogonalEndSashDisposables=this._register(new Q),this.orthogonalEndDragHandleDisposables=this._register(new Q),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=q(e,J(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),Ge&&this.el.classList.add("mac");const n=this._register(new bt(this.el,"mousedown")).event;this._register(n(h=>this.onPointerStart(h,new FE),this));const s=this._register(new bt(this.el,"dblclick")).event;this._register(s(this.onPointerDoublePress,this));const r=this._register(new bt(this.el,"mouseenter")).event;this._register(r(()=>tn.onMouseEnter(this)));const a=this._register(new bt(this.el,"mouseleave")).event;this._register(a(()=>tn.onMouseLeave(this))),this._register(ft.addTarget(this.el));const l=ge.map(this._register(new bt(this.el,xt.Start)).event,h=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(l(h=>this.onPointerStart(h,new BE(this.el)),this));const c=this._register(new bt(this.el,xt.Tap)).event,d=ge.map(ge.filter(ge.debounce(c,(h,u)=>{var g;return{event:u,count:((g=h==null?void 0:h.count)!==null&&g!==void 0?g:0)+1}},250),({count:h})=>h===2),({event:h})=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(d(this.onPointerDoublePress,this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=BG,this._register(WG.event(h=>{this.size=h,this.layout()}))),this._register(HG.event(h=>this.hoverDelay=h)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",FG),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=q(this.el,J(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Be(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseleave")).event(()=>tn.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=q(this.el,J(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Be(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseleave")).event(()=>tn.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){ut.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const f=this.getOrthogonalSash(e);f&&(i=!0,e.__orthogonalSashEvent=!0,f.onPointerStart(e,new Bv(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new Bv(t))),!this.state)return;const n=WH("iframe");for(const f of n)f.classList.add(WA);const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=Qs(this.el),d=()=>{let f="";i?f="all-scroll":this.orientation===1?this.state===1?f="s-resize":this.state===2?f="n-resize":f=Ge?"row-resize":"ns-resize":this.state===1?f="e-resize":this.state===2?f="w-resize":f=Ge?"col-resize":"ew-resize",c.textContent=`* { cursor: ${f} !important; }`},h=new Q;d(),i||this.onDidEnablementChange.event(d,null,h);const u=f=>{ut.stop(f,!1);const _={startX:s,currentX:f.pageX,startY:r,currentY:f.pageY,altKey:a};this._onDidChange.fire(_)},g=f=>{ut.stop(f,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),h.dispose();for(const _ of n)_.classList.remove(WA)};t.onPointerMove(u,null,h),t.onPointerUp(g,null,h),h.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&tn.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&tn.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){tn.onMouseLeave(this)}layout(){if(this.orientation===0){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){if(!(!e.target||!(e.target instanceof HTMLElement))&&e.target.classList.contains("orthogonal-drag-handle"))return e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}class hc{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(e.getScrollTop()!==0){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}}return new hc(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const __={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:Vn.text},Vc={CurrentDragAndDropData:void 0};var VA,HA;class zG{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1,t=()=>!1){return new Uu(new jG(e,t))}static forStrings(){return new Uu(new zG)}static forConfigKeys(){return new Uu(new UG)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new Sb,this._root.segment=i.value());const s=[];for(n=this._root;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new Sb,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new Sb,n.right.segment=i.value()),s.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new Sb,n.mid.segment=i.value()),s.push([0,n]),n=n.mid;else break}const r=n.value;n.value=t,n.key=e;for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const d=s[a][0],h=s[a+1][0];if(d===1&&h===1)s[a][1]=l.rotateLeft();else if(d===-1&&h===-1)s[a][1]=l.rotateRight();else if(d===1&&h===-1)l.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=l.rotateLeft();else if(d===-1&&h===1)l.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),s=[];let r=this._root;for(;r;){const a=n.cmp(r.segment);if(a>0)s.push([-1,r]),r=r.left;else if(a<0)s.push([1,r]),r=r.right;else if(n.hasNext())n.next(),s.push([0,r]),r=r.mid;else break}if(!!r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const a=this._min(r.right),{key:l,value:c,segment:d}=a;this._delete(a.key,!1),r.key=l,r.value=c,r.segment=d}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(s.length>0){const[l,c]=s[s.length-1];switch(l){case-1:c.left=a;break;case 0:c.mid=a;break;case 1:c.right=a;break}}else this._root=a}for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),s[a][1]=l.rotateLeft()):c<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),s[a][1]=l.rotateRight()),a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,n;for(;i;){const s=t.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(t.hasNext())t.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else return i.mid?this._entries(i.mid):void 0}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){!e||(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}class KG{constructor(e,t){this.uri=e,this.value=t}}class mn{constructor(e,t){this[VA]="ResourceMap",e instanceof mn?(this.map=new Map(e.map),this.toKey=t!=null?t:mn.defaultToKey):(this.map=new Map,this.toKey=e!=null?e:mn.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new KG(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t<"u"&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(VA=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}mn.defaultToKey=o=>o.toString();class qG{constructor(){this[HA]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(!!i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(!!t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}[(HA=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class Dc extends qG{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}function WE(...o){return function(e,t){for(let i=0,n=o.length;i0?[{start:0,end:e.length}]:[]:null}function T5(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t===-1?null:[{start:t,end:t+o.length}]}function A5(o,e){return TD(o.toLowerCase(),e.toLowerCase(),0,0)}function TD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]===e[i]){let n=null;return(n=TD(o,e,t+1,i+1))?zE({start:i,end:i+1},n):null}return TD(o,e,t,i+1)}function VE(o){return 97<=o&&o<=122}function I1(o){return 65<=o&&o<=90}function HE(o){return 48<=o&&o<=57}function M5(o){return o===32||o===9||o===10||o===13}const R5=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(o=>R5.add(o.charCodeAt(0)));function Wv(o){return M5(o)||R5.has(o)}function GG(o,e){return o===e||Wv(o)&&Wv(e)}function O5(o){return VE(o)||I1(o)||HE(o)}function zE(o,e){return e.length===0?e=[o]:o.end===e[0].start?e[0].start=o.start:e.unshift(o),e}function P5(o,e){for(let t=e;t0&&!O5(o.charCodeAt(t-1)))return t}return o.length}function AD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]!==e[i].toLowerCase())return null;{let n=null,s=i+1;for(n=AD(o,e,t+1,i+1);!n&&(s=P5(e,s)).6}function QG(o){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=o;return t>.2&&e<.8&&i>.6&&n<.2}function XG(o){let e=0,t=0,i=0,n=0;for(let s=0;s60)return null;const t=ZG(e);if(!QG(t)){if(!YG(t))return null;e=e.toLowerCase()}let i=null,n=0;for(o=o.toLowerCase();n0&&Wv(o.charCodeAt(t-1)))return t;return o.length}const eZ=WE(x1,F5,T5),tZ=WE(x1,F5,A5),zA=new Dc(1e4);function UA(o,e,t=!1){if(typeof o!="string"||typeof e!="string")return null;let i=zA.get(o);i||(i=new RegExp(hB(o),"i"),zA.set(o,i));const n=i.exec(e);return n?[{start:n.index,end:n.index+n[0].length}]:t?tZ(o,e):eZ(o,e)}function iZ(o,e,t,i,n,s){const r=Math.min(13,o.length);for(;t"u")return[];const e=[],t=o[1];for(let i=o.length-1;i>1;i--){const n=o[i]+t,s=e[e.length-1];s&&s.end===n?s.end=n+1:e.push({start:n,end:n+1})}return e}const Bl=128;function UE(){const o=[],e=[];for(let t=0;t<=Bl;t++)e[t]=0;for(let t=0;t<=Bl;t++)o.push(e.slice(0));return o}function W5(o){const e=[];for(let t=0;t<=o;t++)e[t]=0;return e}const V5=W5(2*Bl),RD=W5(2*Bl),ua=UE(),Hc=UE(),yb=UE();function Lb(o,e){if(e<0||e>=o.length)return!1;const t=o.codePointAt(e);switch(t){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!yI(t)}}function $A(o,e){if(e<0||e>=o.length)return!1;switch(o.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function S0(o,e,t){return e[o]!==t[o]}function nZ(o,e,t,i,n,s,r=!1){for(;eBl?Bl:o.length,l=i.length>Bl?Bl:i.length;if(t>=a||s>=l||a-t>l-s||!nZ(e,t,a,n,s,l,!0))return;sZ(a,l,t,s,e,n);let c=1,d=1,h=t,u=s;const g=[!1];for(c=1,h=t;hC,I=D?Hc[c][d-1]+(ua[c][d-1]>0?-5:0):0,O=u>C+1&&ua[c][d-1]>0,F=O?Hc[c][d-2]+(ua[c][d-2]>0?-5:0):0;if(O&&(!D||F>=I)&&(!x||F>=y))Hc[c][d]=F,yb[c][d]=3,ua[c][d]=0;else if(D&&(!x||I>=y))Hc[c][d]=I,yb[c][d]=2,ua[c][d]=0;else if(x)Hc[c][d]=y,yb[c][d]=1,ua[c][d]=ua[c-1][d-1]+1;else throw new Error("not possible")}}if(!g[0]&&!r.firstMatchCanBeWeak)return;c--,d--;const f=[Hc[c][d],s];let _=0,b=0;for(;c>=1;){let C=d;do{const w=yb[c][C];if(w===3)C=C-2;else if(w===2)C=C-1;else break}while(C>=1);_>1&&e[t+c-1]===n[s+d-1]&&!S0(C+s-1,i,n)&&_+1>ua[c][C]&&(C=d),C===d?_++:_=1,b||(b=C),c--,d=C-1,f.push(d)}l===a&&r.boostFullMatch&&(f[0]+=2);const v=b-a;return f[0]-=v,f}function sZ(o,e,t,i,n,s){let r=o-1,a=e-1;for(;r>=t&&a>=i;)n[r]===s[a]&&(RD[r]=a,r--),a--}function oZ(o,e,t,i,n,s,r,a,l,c,d){if(e[t]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===t-i?h=o[t]===n[r]?7:5:S0(r,n,s)&&(r===0||!S0(r-1,n,s))?(h=o[t]===n[r]?7:5,u=!0):Lb(s,r)&&(r===0||!Lb(s,r-1))?h=5:(Lb(s,r-1)||$A(s,r-1))&&(h=5,u=!0),h>1&&t===i&&(d[0]=!0),u||(u=S0(r,n,s)||Lb(s,r-1)||$A(s,r-1)),t===i?r>l&&(h-=u?3:5):c?h+=u?2:0:h+=u?0:1,r+1===a&&(h-=u?3:5),h}function rZ(o,e,t,i,n,s,r){return aZ(o,e,t,i,n,s,!0,r)}function aZ(o,e,t,i,n,s,r,a){let l=mg(o,e,t,i,n,s,a);if(l&&!r)return l;if(o.length>=3){const c=Math.min(7,o.length-1);for(let d=t+1;dl[0])&&(l=u))}}}return l}function lZ(o,e){if(e+1>=o.length)return;const t=o[e],i=o[e+1];if(t!==i)return o.slice(0,e)+i+t+o.slice(e+2)}const yp="$(",jE=new RegExp(`\\$\\(${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?\\)`,"g"),cZ=new RegExp(Ln.iconNameCharacter),dZ=new RegExp(`(\\\\)?${jE.source}`,"g");function hZ(o){return o.replace(dZ,(e,t)=>t?e:`\\${e}`)}const uZ=new RegExp(`\\\\${jE.source}`,"g");function gZ(o){return o.replace(uZ,e=>`\\${e}`)}const fZ=new RegExp(`(\\s)?(\\\\)?${jE.source}(\\s)?`,"g");function KE(o){return o.indexOf(yp)===-1?o:o.replace(fZ,(e,t,i,n)=>i?e:t||n||"")}function Wh(o){const e=o.indexOf(yp);return e===-1?{text:o}:pZ(o,e)}function pZ(o,e){const t=[];let i="";function n(u){if(u){i+=u;for(const g of u)t.push(a)}}let s=-1,r="",a=0,l,c,d=e;const h=o.length;for(n(o.substr(0,e));d" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ `:` `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=` -`,this.value+=t,this.value+="\n```\n",this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp(ys(t),"g");return e.replace(i,(n,s)=>e.charAt(s-1)!=="\\"?`\\${n}`:n)}}function _g(o){return HF(o)?!o.value:Array.isArray(o)?o.every(_g):!0}function HF(o){return o instanceof Fn?!0:o&&typeof o=="object"?typeof o.value=="string"&&(typeof o.isTrusted=="boolean"||o.isTrusted===void 0)&&(typeof o.supportThemeIcons=="boolean"||o.supportThemeIcons===void 0):!1}function mZ(o){return o.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function kb(o){return o.replace(/"/g,""")}function MS(o){return o&&o.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function _Z(o){const e=[],t=o.split("|").map(n=>n.trim());o=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),s=/width=(\d+)/.exec(i),r=n?n[1]:"",a=s?s[1]:"",l=isFinite(parseInt(a)),c=isFinite(parseInt(r));l&&e.push(`width="${a}"`),c&&e.push(`height="${r}"`)}return{href:o,dimensions:e}}var OD=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function bZ(o,e){Un(e)?o.title=KE(e):e!=null&&e.markdownNotSupportedFallback?o.title=e.markdownNotSupportedFallback:o.removeAttribute("title")}class vZ{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t,i){var n;return OD(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(e===void 0||Un(e)||e instanceof HTMLElement)s=e;else if(!K0(e.markdown))s=(n=e.markdown)!==null&&n!==void 0?n:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new Qi;const r=this._cancellationTokenSource.token;if(s=yield e.markdown(r),s===void 0&&(s=e.markdownNotSupportedFallback),this.isDisposed||r.isCancellationRequested)return}this.show(s,t,i)})}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s=Object.assign({content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!n},i);this._hoverWidget=this.hoverDelegate.showHover(s,t)}n==null||n.dispose()}hasContent(e){return e?HF(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function zF(o,e,t,i){let n,s;const r=(h,u)=>{var g;h&&(s==null||s.dispose(),s=void 0),u&&(n==null||n.dispose(),n=void 0),(g=o.onDidHideHover)===null||g===void 0||g.call(o)},a=(h,u,g)=>new xs(()=>OD(this,void 0,void 0,function*(){(!s||s.isDisposed)&&(s=new vZ(o,g||e,h>0),yield s.update(t,u,i))}),h),l=()=>{if(n)return;const h=new Q,u=_=>r(!1,_.fromElement===e);h.add(G(e,ae.MOUSE_LEAVE,u,!0));const g=()=>r(!0,!0);h.add(G(e,ae.MOUSE_DOWN,g,!0));const f={targetElements:[e],dispose:()=>{}};if(o.placement===void 0||o.placement==="mouse"){const _=b=>{f.x=b.x+10,b.target instanceof HTMLElement&&b.target.classList.contains("action-label")&&r(!0,!0)};h.add(G(e,ae.MOUSE_MOVE,_,!0))}h.add(a(o.delay,!1,f)),n=h},c=G(e,ae.MOUSE_OVER,l,!0);return{show:h=>{r(!1,!0),a(0,h)},hide:()=>{r(!0,!0)},update:(h,u)=>OD(this,void 0,void 0,function*(){t=h,yield s==null?void 0:s.update(t,void 0,u)}),dispose:()=>{c.dispose(),r(!0,!0)}}}class Dr extends H{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof is&&this._register(t.onDidChange(n=>{!this.element||this.handleActionChangeEvent(n)}))}get action(){return this._action}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new og)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(ft.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,Ls&&this._register(G(e,ae.DRAG_START,n=>{var s;return(s=n.dataTransfer)===null||s===void 0?void 0:s.setData(__.TEXT,this._action.label)}))),this._register(G(t,xt.Tap,n=>this.onClick(n,!0))),this._register(G(t,ae.MOUSE_DOWN,n=>{i||ut.stop(n,!0),this._action.enabled&&n.button===0&&t.classList.add("active")})),Ge&&this._register(G(t,ae.CONTEXT_MENU,n=>{n.button===0&&n.ctrlKey===!0&&this.onClick(n)})),this._register(G(t,ae.CLICK,n=>{ut.stop(n,!0),this.options&&this.options.isMenu||this.onClick(n)})),this._register(G(t,ae.DBLCLICK,n=>{ut.stop(n,!0)})),[ae.MOUSE_UP,ae.MOUSE_OUT].forEach(n=>{this._register(G(t,n,s=>{ut.stop(s),t.classList.remove("active")}))})}onClick(e,t=!1){var i;ut.stop(e,!0);const n=ms(this._context)?!((i=this.options)===null||i===void 0)&&i.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getTooltip(){return this.getAction().tooltip}updateTooltip(){var e;if(!this.element)return;const t=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.element.setAttribute("aria-label",t),this.options.hoverDelegate?(this.element.title="",this.customHover?this.customHover.update(t):(this.customHover=zF(this.options.hoverDelegate,this.element,t),this._store.add(this.customHover))):this.element.title=t}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class fm extends Dr{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=q(this.element,J("a.action-label"))),this.label&&(this._action.id===ln.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(q(this.element,J("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}getTooltip(){let e=null;return this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=p({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e!=null?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):(e=this.label)===null||e===void 0||e.classList.remove("codicon")}updateEnabled(){var e,t;this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(e=this.element)===null||e===void 0||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(t=this.element)===null||t===void 0||t.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}var CZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Zr extends H{constructor(e,t={}){var i,n,s,r,a,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new R({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new R),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new R),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(r=(s=this.options.triggerKeys)===null||s===void 0?void 0:s.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new og,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(h=>this._onDidRun.fire(h))),this._register(this._actionRunner.onBeforeRun(h=>this._onBeforeRun.fire(h))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let c,d;switch(this._orientation){case 0:c=[15],d=[17];break;case 1:c=[16],d=[18],this.domNode.className+=" vertical";break}this._register(G(this.domNode,ae.KEY_DOWN,h=>{const u=new Rt(h);let g=!0;const f=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(u.equals(c[0])||u.equals(c[1]))?g=this.focusPrevious():d&&(u.equals(d[0])||u.equals(d[1]))?g=this.focusNext():u.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():u.equals(14)?g=this.focusFirst():u.equals(13)?g=this.focusLast():u.equals(2)&&f instanceof Dr&&f.trapsArrowNavigation?g=this.focusNext():this.isTriggerKeyEvent(u)?this._triggerKeys.keyDown?this.doTrigger(u):this.triggerKeyDown=!0:g=!1,g&&(u.preventDefault(),u.stopPropagation())})),this._register(G(this.domNode,ae.KEY_UP,h=>{const u=new Rt(h);this.isTriggerKeyEvent(u)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(u)),u.preventDefault(),u.stopPropagation()):(u.equals(2)||u.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(Od(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(Ru()===this.domNode||!Ga(Ru(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof Dr&&i.isEnabled());t instanceof Dr&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof Dr&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=tc(t.index)?t.index:null;i.forEach(s=>{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation");let a;this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(s)),a||(a=new fm(this.context,s,Object.assign({hoverDelegate:this.options.hoverDelegate},t))),this.options.allowContextMenu||this.viewItemDisposables.set(a,G(r,ae.CONTEXT_MENU,l=>{ut.stop(l,!0)})),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof Dr&&this.viewItems.length===0&&a.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a),this._actionIds.push(s.id)):(this.actionsList.insertBefore(r,this.actionsList.children[n]),this.viewItems.splice(n,0,a),this._actionIds.splice(n,0,s.id),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){nt(this.viewItems),this.viewItemDisposables.forEach(e=>e.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],Si(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem>"u"){const n=this.viewItems.findIndex(s=>s.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ln.ID));return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ln.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const s=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(s){let r=!0;K0(s.focus)||(r=!1),this.options.focusOnlyEnabledItems&&K0(s.isEnabled)&&!s.isEnabled()&&(r=!1),s.action.id===ln.ID&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(typeof this.focusedItem>"u")return;const t=this.viewItems[this.focusedItem];if(t instanceof Dr){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}run(e,t){return CZ(this,void 0,void 0,function*(){yield this._actionRunner.run(e,t)})}dispose(){nt(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}const wZ={IconContribution:"base.contributions.icons"};var jA;(function(o){function e(t,i){let n=t.defaults;for(;at.isThemeIcon(n);){const s=bh.getIcon(n.id);if(!s)return;n=s.defaults}return n}o.getDefinition=e})(jA||(jA={}));var KA;(function(o){function e(i){return{weight:i.weight,style:i.style,src:i.src.map(n=>({format:n.format,location:n.location.toString()}))}}o.toJSONObject=e;function t(i){const n=s=>Un(s)?s:void 0;if(i&&Array.isArray(i.src)&&i.src.every(s=>Un(s.format)&&Un(s.location)))return{weight:n(i.weight),style:n(i.style),src:i.src.map(s=>({format:s.format,location:_e.parse(s.location)}))}}o.fromJSONObject=t})(KA||(KA={}));class SZ{constructor(){this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:p("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:p("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Ln.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return s}const r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;const a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(s,r)=>s.id.localeCompare(r.id),t=s=>{for(;at.isThemeIcon(s.defaults);)s=this.iconsById[s.defaults.id];return`codicon codicon-${s?s.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map(s=>this.iconsById[s]);for(const s of n.filter(r=>!!r.description).sort(e))i.push(`||${s.id}|${at.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter(r=>!at.isThemeIcon(r.defaults)).sort(e))i.push(`||${s.id}|`);return i.join(` -`)}}const bh=new SZ;zt.add(wZ.IconContribution,bh);function mi(o,e,t,i){return bh.registerIcon(o,e,t,i)}function UF(){return bh}function yZ(){for(const o of m.getAll())bh.registerIcon(o.id,o.definition,o.description)}yZ();const $F="vscode://schemas/icons",jF=zt.as(KC.JSONContribution);jF.registerSchema($F,bh.getIconSchema());const qA=new mt(()=>jF.notifySchemaChanged($F),200);bh.onDidChange(()=>{qA.isScheduled()||qA.schedule()});const KF=mi("widget-close",m.close,p("widgetClose","Icon for the close action in widgets."));mi("goto-previous-location",m.arrowUp,p("previousChangeIcon","Icon for goto previous editor location."));mi("goto-next-location",m.arrowDown,p("nextChangeIcon","Icon for goto next editor location."));at.modify(m.sync,"spin");at.modify(m.loading,"spin");var LZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},DZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},RS;const xb=3;class xf{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class OS{constructor(e){this.entries=e}}const xZ=mi("diff-review-insert",m.add,p("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),IZ=mi("diff-review-remove",m.remove,p("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),EZ=mi("diff-review-close",m.close,p("diffReviewCloseIcon","Icon for 'Close' in diff review."));let Vv=class Kc extends H{constructor(e,t){super(),this._languageService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Je(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Je(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new Zr(this.actionBarContainer.domNode)),this._actionBar.push(new is("diffreview.close",p("label.close","Close"),"close-diff-review "+at.asClassName(EZ),!0,()=>kZ(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=Je(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Je(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new p_(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(ki(this.domNode.domNode,"click",i=>{i.preventDefault();const n=o4(i.target,"diff-review-row");n&&this._goToRow(n)})),this._register(ki(this.domNode.domNode,"keydown",i=>{(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),this._goToRow(this._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),this._goToRow(this._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),this.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let i=-1;for(let n=0,s=this._diffs.length;n0){const D=e[c-1];D.originalEndLineNumber===0?S=D.originalStartLineNumber+1:S=D.originalEndLineNumber+1,D.modifiedEndLineNumber===0?k=D.modifiedStartLineNumber+1:k=D.modifiedEndLineNumber+1}let x=C-xb+1,y=w-xb+1;if(xS){const D=S-x;x=x+D,y=y+D}if(y>k){const D=k-y;x=x+D,y=y+D}b[v++]=new xf(C,x,w,y)}n[s++]=new OS(b)}let r=n[0].entries;const a=[];let l=0;for(let c=1,d=n.length;ch)&&(h=F),z!==0&&(u===0||zg)&&(g=j)}const f=document.createElement("div");f.className="diff-review-row";const _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=h-d+1,v=g-u+1;_.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${d},${b} +${u},${v} @@`)),f.setAttribute("data-line",String(u));const C=y=>y===0?p("no_lines_changed","no lines changed"):y===1?p("one_line_changed","1 line changed"):p("more_lines_changed","{0} lines changed",y),w=C(b),S=C(v);f.setAttribute("aria-label",p({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,d,w,u,S)),f.appendChild(_),f.setAttribute("role","listitem"),c.appendChild(f);const k=t.get(61);let x=u;for(let y=0,D=l.length;yo});Vv=LZ([DZ(1,Ht)],Vv);Et((o,e)=>{const t=o.getColor(H4);t&&e.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${t}; }`);const i=o.getColor(Kg);i&&e.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class NZ extends ce{constructor(){super({id:"editor.action.diffReview.next",label:p("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=qF(e);i&&i.diffReviewNext()}}class TZ extends ce{constructor(){super({id:"editor.action.diffReview.prev",label:p("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=qF(e);i&&i.diffReviewPrev()}}function qF(o){const e=o.get(ct),t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(!i)return null;for(let n=0,s=t.length;nn.modifiedStartLineNumber?p("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):p("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?p("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):p("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),b=n.originalModel.getValueInRange(_);yield this._clipboardService.writeText(b)})));let h=0,u;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new is("diff.clipboard.copyDeletedLineContent",d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=n.originalModel.getLineContent(n.originalStartLineNumber+h);if(_===""){const b=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(b===0?` +`,this.value+=t,this.value+="\n```\n",this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp(ys(t),"g");return e.replace(i,(n,s)=>e.charAt(s-1)!=="\\"?`\\${n}`:n)}}function _g(o){return H5(o)?!o.value:Array.isArray(o)?o.every(_g):!0}function H5(o){return o instanceof Fn?!0:o&&typeof o=="object"?typeof o.value=="string"&&(typeof o.isTrusted=="boolean"||o.isTrusted===void 0)&&(typeof o.supportThemeIcons=="boolean"||o.supportThemeIcons===void 0):!1}function mZ(o){return o.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function kb(o){return o.replace(/"/g,""")}function MS(o){return o&&o.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function _Z(o){const e=[],t=o.split("|").map(n=>n.trim());o=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),s=/width=(\d+)/.exec(i),r=n?n[1]:"",a=s?s[1]:"",l=isFinite(parseInt(a)),c=isFinite(parseInt(r));l&&e.push(`width="${a}"`),c&&e.push(`height="${r}"`)}return{href:o,dimensions:e}}var OD=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function bZ(o,e){Un(e)?o.title=KE(e):e!=null&&e.markdownNotSupportedFallback?o.title=e.markdownNotSupportedFallback:o.removeAttribute("title")}class vZ{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t,i){var n;return OD(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(e===void 0||Un(e)||e instanceof HTMLElement)s=e;else if(!K0(e.markdown))s=(n=e.markdown)!==null&&n!==void 0?n:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new Qi;const r=this._cancellationTokenSource.token;if(s=yield e.markdown(r),s===void 0&&(s=e.markdownNotSupportedFallback),this.isDisposed||r.isCancellationRequested)return}this.show(s,t,i)})}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s=Object.assign({content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!n},i);this._hoverWidget=this.hoverDelegate.showHover(s,t)}n==null||n.dispose()}hasContent(e){return e?H5(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function z5(o,e,t,i){let n,s;const r=(h,u)=>{var g;h&&(s==null||s.dispose(),s=void 0),u&&(n==null||n.dispose(),n=void 0),(g=o.onDidHideHover)===null||g===void 0||g.call(o)},a=(h,u,g)=>new xs(()=>OD(this,void 0,void 0,function*(){(!s||s.isDisposed)&&(s=new vZ(o,g||e,h>0),yield s.update(t,u,i))}),h),l=()=>{if(n)return;const h=new Q,u=_=>r(!1,_.fromElement===e);h.add(G(e,ae.MOUSE_LEAVE,u,!0));const g=()=>r(!0,!0);h.add(G(e,ae.MOUSE_DOWN,g,!0));const f={targetElements:[e],dispose:()=>{}};if(o.placement===void 0||o.placement==="mouse"){const _=b=>{f.x=b.x+10,b.target instanceof HTMLElement&&b.target.classList.contains("action-label")&&r(!0,!0)};h.add(G(e,ae.MOUSE_MOVE,_,!0))}h.add(a(o.delay,!1,f)),n=h},c=G(e,ae.MOUSE_OVER,l,!0);return{show:h=>{r(!1,!0),a(0,h)},hide:()=>{r(!0,!0)},update:(h,u)=>OD(this,void 0,void 0,function*(){t=h,yield s==null?void 0:s.update(t,void 0,u)}),dispose:()=>{c.dispose(),r(!0,!0)}}}class Dr extends H{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof is&&this._register(t.onDidChange(n=>{!this.element||this.handleActionChangeEvent(n)}))}get action(){return this._action}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new og)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(ft.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,Ls&&this._register(G(e,ae.DRAG_START,n=>{var s;return(s=n.dataTransfer)===null||s===void 0?void 0:s.setData(__.TEXT,this._action.label)}))),this._register(G(t,xt.Tap,n=>this.onClick(n,!0))),this._register(G(t,ae.MOUSE_DOWN,n=>{i||ut.stop(n,!0),this._action.enabled&&n.button===0&&t.classList.add("active")})),Ge&&this._register(G(t,ae.CONTEXT_MENU,n=>{n.button===0&&n.ctrlKey===!0&&this.onClick(n)})),this._register(G(t,ae.CLICK,n=>{ut.stop(n,!0),this.options&&this.options.isMenu||this.onClick(n)})),this._register(G(t,ae.DBLCLICK,n=>{ut.stop(n,!0)})),[ae.MOUSE_UP,ae.MOUSE_OUT].forEach(n=>{this._register(G(t,n,s=>{ut.stop(s),t.classList.remove("active")}))})}onClick(e,t=!1){var i;ut.stop(e,!0);const n=ms(this._context)?!((i=this.options)===null||i===void 0)&&i.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getTooltip(){return this.getAction().tooltip}updateTooltip(){var e;if(!this.element)return;const t=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.element.setAttribute("aria-label",t),this.options.hoverDelegate?(this.element.title="",this.customHover?this.customHover.update(t):(this.customHover=z5(this.options.hoverDelegate,this.element,t),this._store.add(this.customHover))):this.element.title=t}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class fm extends Dr{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=q(this.element,J("a.action-label"))),this.label&&(this._action.id===ln.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(q(this.element,J("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}getTooltip(){let e=null;return this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=p({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e!=null?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):(e=this.label)===null||e===void 0||e.classList.remove("codicon")}updateEnabled(){var e,t;this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(e=this.element)===null||e===void 0||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(t=this.element)===null||t===void 0||t.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}var CZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Zr extends H{constructor(e,t={}){var i,n,s,r,a,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new R({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new R),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new R),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(r=(s=this.options.triggerKeys)===null||s===void 0?void 0:s.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new og,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(h=>this._onDidRun.fire(h))),this._register(this._actionRunner.onBeforeRun(h=>this._onBeforeRun.fire(h))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let c,d;switch(this._orientation){case 0:c=[15],d=[17];break;case 1:c=[16],d=[18],this.domNode.className+=" vertical";break}this._register(G(this.domNode,ae.KEY_DOWN,h=>{const u=new Rt(h);let g=!0;const f=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(u.equals(c[0])||u.equals(c[1]))?g=this.focusPrevious():d&&(u.equals(d[0])||u.equals(d[1]))?g=this.focusNext():u.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():u.equals(14)?g=this.focusFirst():u.equals(13)?g=this.focusLast():u.equals(2)&&f instanceof Dr&&f.trapsArrowNavigation?g=this.focusNext():this.isTriggerKeyEvent(u)?this._triggerKeys.keyDown?this.doTrigger(u):this.triggerKeyDown=!0:g=!1,g&&(u.preventDefault(),u.stopPropagation())})),this._register(G(this.domNode,ae.KEY_UP,h=>{const u=new Rt(h);this.isTriggerKeyEvent(u)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(u)),u.preventDefault(),u.stopPropagation()):(u.equals(2)||u.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(Od(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(Ru()===this.domNode||!Ga(Ru(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof Dr&&i.isEnabled());t instanceof Dr&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof Dr&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=tc(t.index)?t.index:null;i.forEach(s=>{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation");let a;this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(s)),a||(a=new fm(this.context,s,Object.assign({hoverDelegate:this.options.hoverDelegate},t))),this.options.allowContextMenu||this.viewItemDisposables.set(a,G(r,ae.CONTEXT_MENU,l=>{ut.stop(l,!0)})),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof Dr&&this.viewItems.length===0&&a.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a),this._actionIds.push(s.id)):(this.actionsList.insertBefore(r,this.actionsList.children[n]),this.viewItems.splice(n,0,a),this._actionIds.splice(n,0,s.id),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){nt(this.viewItems),this.viewItemDisposables.forEach(e=>e.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],Si(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem>"u"){const n=this.viewItems.findIndex(s=>s.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ln.ID));return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ln.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const s=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(s){let r=!0;K0(s.focus)||(r=!1),this.options.focusOnlyEnabledItems&&K0(s.isEnabled)&&!s.isEnabled()&&(r=!1),s.action.id===ln.ID&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(typeof this.focusedItem>"u")return;const t=this.viewItems[this.focusedItem];if(t instanceof Dr){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}run(e,t){return CZ(this,void 0,void 0,function*(){yield this._actionRunner.run(e,t)})}dispose(){nt(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}const wZ={IconContribution:"base.contributions.icons"};var jA;(function(o){function e(t,i){let n=t.defaults;for(;at.isThemeIcon(n);){const s=bh.getIcon(n.id);if(!s)return;n=s.defaults}return n}o.getDefinition=e})(jA||(jA={}));var KA;(function(o){function e(i){return{weight:i.weight,style:i.style,src:i.src.map(n=>({format:n.format,location:n.location.toString()}))}}o.toJSONObject=e;function t(i){const n=s=>Un(s)?s:void 0;if(i&&Array.isArray(i.src)&&i.src.every(s=>Un(s.format)&&Un(s.location)))return{weight:n(i.weight),style:n(i.style),src:i.src.map(s=>({format:s.format,location:_e.parse(s.location)}))}}o.fromJSONObject=t})(KA||(KA={}));class SZ{constructor(){this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:p("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:p("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Ln.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return s}const r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;const a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(s,r)=>s.id.localeCompare(r.id),t=s=>{for(;at.isThemeIcon(s.defaults);)s=this.iconsById[s.defaults.id];return`codicon codicon-${s?s.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map(s=>this.iconsById[s]);for(const s of n.filter(r=>!!r.description).sort(e))i.push(`||${s.id}|${at.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter(r=>!at.isThemeIcon(r.defaults)).sort(e))i.push(`||${s.id}|`);return i.join(` +`)}}const bh=new SZ;zt.add(wZ.IconContribution,bh);function mi(o,e,t,i){return bh.registerIcon(o,e,t,i)}function U5(){return bh}function yZ(){for(const o of m.getAll())bh.registerIcon(o.id,o.definition,o.description)}yZ();const $5="vscode://schemas/icons",j5=zt.as(KC.JSONContribution);j5.registerSchema($5,bh.getIconSchema());const qA=new mt(()=>j5.notifySchemaChanged($5),200);bh.onDidChange(()=>{qA.isScheduled()||qA.schedule()});const K5=mi("widget-close",m.close,p("widgetClose","Icon for the close action in widgets."));mi("goto-previous-location",m.arrowUp,p("previousChangeIcon","Icon for goto previous editor location."));mi("goto-next-location",m.arrowDown,p("nextChangeIcon","Icon for goto next editor location."));at.modify(m.sync,"spin");at.modify(m.loading,"spin");var LZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},DZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},RS;const xb=3;class xf{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class OS{constructor(e){this.entries=e}}const xZ=mi("diff-review-insert",m.add,p("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),IZ=mi("diff-review-remove",m.remove,p("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),EZ=mi("diff-review-close",m.close,p("diffReviewCloseIcon","Icon for 'Close' in diff review."));let Vv=class Kc extends H{constructor(e,t){super(),this._languageService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Je(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Je(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new Zr(this.actionBarContainer.domNode)),this._actionBar.push(new is("diffreview.close",p("label.close","Close"),"close-diff-review "+at.asClassName(EZ),!0,()=>kZ(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=Je(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Je(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new p_(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(ki(this.domNode.domNode,"click",i=>{i.preventDefault();const n=o4(i.target,"diff-review-row");n&&this._goToRow(n)})),this._register(ki(this.domNode.domNode,"keydown",i=>{(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),this._goToRow(this._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),this._goToRow(this._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),this.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let i=-1;for(let n=0,s=this._diffs.length;n0){const D=e[c-1];D.originalEndLineNumber===0?S=D.originalStartLineNumber+1:S=D.originalEndLineNumber+1,D.modifiedEndLineNumber===0?k=D.modifiedStartLineNumber+1:k=D.modifiedEndLineNumber+1}let x=C-xb+1,y=w-xb+1;if(xS){const D=S-x;x=x+D,y=y+D}if(y>k){const D=k-y;x=x+D,y=y+D}b[v++]=new xf(C,x,w,y)}n[s++]=new OS(b)}let r=n[0].entries;const a=[];let l=0;for(let c=1,d=n.length;ch)&&(h=F),z!==0&&(u===0||zg)&&(g=j)}const f=document.createElement("div");f.className="diff-review-row";const _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=h-d+1,v=g-u+1;_.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${d},${b} +${u},${v} @@`)),f.setAttribute("data-line",String(u));const C=y=>y===0?p("no_lines_changed","no lines changed"):y===1?p("one_line_changed","1 line changed"):p("more_lines_changed","{0} lines changed",y),w=C(b),S=C(v);f.setAttribute("aria-label",p({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,d,w,u,S)),f.appendChild(_),f.setAttribute("role","listitem"),c.appendChild(f);const k=t.get(61);let x=u;for(let y=0,D=l.length;yo});Vv=LZ([DZ(1,Ht)],Vv);Et((o,e)=>{const t=o.getColor(H4);t&&e.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${t}; }`);const i=o.getColor(Kg);i&&e.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class NZ extends ce{constructor(){super({id:"editor.action.diffReview.next",label:p("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=q5(e);i&&i.diffReviewNext()}}class TZ extends ce{constructor(){super({id:"editor.action.diffReview.prev",label:p("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=q5(e);i&&i.diffReviewPrev()}}function q5(o){const e=o.get(ct),t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(!i)return null;for(let n=0,s=t.length;nn.modifiedStartLineNumber?p("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):p("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?p("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):p("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),b=n.originalModel.getValueInRange(_);yield this._clipboardService.writeText(b)})));let h=0,u;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new is("diff.clipboard.copyDeletedLineContent",d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=n.originalModel.getLineContent(n.originalStartLineNumber+h);if(_===""){const b=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(b===0?` `:`\r -`)}else yield this._clipboardService.writeText(_)})),c.push(u)),i.getOption(83)||c.push(new is("diff.inline.revertChange",p("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),b=n.originalModel.getValueInRange(_);if(n.modifiedEndLineNumber===0){const v=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,v,n.modifiedStartLineNumber,v),text:l+b}])}else{const v=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,v),text:b}])}})));const f=(_,b)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:b}),getActions:()=>(u&&(u.label=d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+h):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+h)),c),autoSelectFirstItem:!0})};this._register(ki(this._diffActions,"mousedown",_=>{const{top:b,height:v}=on(this._diffActions),C=Math.floor(a/3);_.preventDefault(),f(_.posx,b+v+C)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{!_.event.rightButton||(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a),f(_.event.posx,_.event.posy+a))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,e?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=on(e),s=t-n,r=Math.floor(s/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let l=0;for(let c=0;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ga=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},FS;class GA{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(t=>!this._zonesMap[String(t.id)])}clean(e){this._zones.length>0&&e.changeViewZones(t=>{for(const i of this._zones)t.removeZone(i)}),this._zones=[],this._zonesMap={},e.changeDecorations(t=>{this._decorations=t.deltaDecorations(this._decorations,[])})}apply(e,t,i,n){const s=n?hc.capture(e):null;e.changeViewZones(r=>{var a;for(const l of this._zones)r.removeZone(l);for(const l of this._inlineDiffMargins)l.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let l=0,c=i.zones.length;l{this._decorations=r.deltaDecorations(this._decorations,i.decorations)}),t==null||t.setZones(i.overviewZones)}}let OZ=0;const PZ=mi("diff-insert",m.add,p("diffInsertIcon","Line decoration for inserts in the diff editor.")),ZF=mi("diff-remove",m.remove,p("diffRemoveIcon","Line decoration for removals in the diff editor.")),ZA=(FS=window.trustedTypes)===null||FS===void 0?void 0:FS.createPolicy("diffEditorWidget",{createHTML:o=>o});let uc=class Xi extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this._editorProgressService=u,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new R),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new R),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=s,this._codeEditorService=l,this._contextKeyService=this._register(r.createScoped(e)),this._instantiationService=a.createChild(new k1([Ee,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=c,this._notificationService=d,this._id=++OZ,this._state=0,this._updatingDiffProgress=null,this._domElement=e,t=t||{},this._options=XA(t,{enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof t.isInEmbeddedEditor<"u"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",t.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new mt(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Je(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(ki(this._overviewDomElement,ae.POINTER_DOWN,f=>{this._modifiedEditor.delegateVerticalScrollbarPointerDown(f)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new GA(h,n),this._modifiedEditorState=new GA(h,n),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new y4(this._containerDomElement,t.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),t.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(t,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(t,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=a.createInstance(Vv,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new Ma(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new QA(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(c.onDidColorThemeChange(f=>{this._strategy&&this._strategy.applyColors(f)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const g=md.getDiffEditorContributions();for(const f of g)try{this._register(a.createInstance(f.ctor,this))}catch(_){Te(_)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=fv(e.type),i}_disposeOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose(),this._originalOverviewRuler=null),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose(),this._modifiedOverviewRuler=null)}_createOverviewRulers(){!this._options.renderOverviewRuler||(ap(!this._originalOverviewRuler&&!this._modifiedOverviewRuler),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const n=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),i}_createRightHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(s=>{s.tabSize&&this._updateDecorationsRunner.schedule()}));const n=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),this._register(i.onMouseDown(s=>{var r,a;if(!s.event.rightButton&&s.target.position&&((r=s.target.element)===null||r===void 0?void 0:r.className.includes("arrow-revert-change"))){const l=s.target.position.lineNumber,c=(a=this._diffComputationResult)===null||a===void 0?void 0:a.changes.find(d=>d.modifiedStartLineNumber===l-1||d.modifiedStartLineNumber===l);c&&this.revertChange(c),s.event.stopPropagation(),this._updateDecorations();return}})),i}revertChange(e){const t=this._modifiedEditor,i=this._originalEditor.getModel(),n=this._modifiedEditor.getModel();if(!i||!n||!t)return;const s=e.originalEndLineNumber>0?new L(e.originalStartLineNumber,1,e.originalEndLineNumber,i.getLineMaxColumn(e.originalEndLineNumber)):null,r=s?i.getValueInRange(s):null,a=e.modifiedEndLineNumber>0?new L(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber,n.getLineMaxColumn(e.modifiedEndLineNumber)):null,l=n.getEOL();if(e.originalEndLineNumber===0&&a){let c=a;e.modifiedStartLineNumber>1?c=a.setStartPosition(e.modifiedStartLineNumber-1,n.getLineMaxColumn(e.modifiedStartLineNumber-1)):e.modifiedEndLineNumberthis._beginUpdateDecorations(),Xi.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t?!0:!e||!t?!1:e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const e=this._originalEditor.getModel(),t=this._modifiedEditor.getModel();if(!e||!t)return;this._diffComputationToken++;const i=this._diffComputationToken,n=this._options.maxFileSize*1024*1024,s=r=>{const a=r.getValueLength();return n===0||a<=n};if(!s(e)||!s(t)){(!Xi._equals(e.uri,this._lastOriginalWarning)||!Xi._equals(t.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=e.uri,this._lastModifiedWarning=t.uri,this._notificationService.warn(p("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._setState(1),this._editorWorkerService.computeDiff(e.uri,t.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=r,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,this._options.renderMarginRevertIcon,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.dropIntoEditor={enabled:!t.readOnly},t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(e){const t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=nr.revealHorizontalRightPadding.defaultValue+Xi.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=this._strategy.layout();this._originalDomNode.style.width=n+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-n+"px",this._modifiedDomNode.style.left=n+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(Xi.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:n,height:t-i}),this._modifiedEditor.layout({width:e-n-(this._options.renderOverviewRuler?Xi.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),s=Math.max(0,n-2*0),r=i>0?s/i:0,a=Math.max(0,Math.floor(e.height*r)),l=Math.floor(t*r);return{height:a,top:l}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||e=l?n=r+1:(n=r,s=r)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.originalStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=s?n+Math.min(a,r):n+r-s+a}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.modifiedStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,s):i+s-r+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};uc.ONE_OVERVIEW_WIDTH=15;uc.ENTIRE_DIFF_OVERVIEW_WIDTH=30;uc.UPDATE_DIFF_DECORATIONS_DELAY=200;uc=RZ([ga(3,cl),ga(4,to),ga(5,Ee),ga(6,Ae),ga(7,ct),ga(8,Ct),ga(9,di),ga(10,ll),ga(11,kc)],uc);class YF extends H{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(Zz)||(e.getColor(I4)||cD).transparent(2),i=e.getColor(Yz)||(e.getColor(E4)||dD).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,s,r){r=r.sort((d,h)=>d.afterLineNumber-h.afterLineNumber),s=s.sort((d,h)=>d.afterLineNumber-h.afterLineNumber);const a=this._getViewZones(e,s,r,i),l=this._getOriginalEditorDecorations(a,e,t,i),c=this._getModifiedEditorDecorations(a,e,t,i,n);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:c.decorations,overviewZones:c.overviewZones,zones:a.modified}}}}class YA{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexx.afterLineNumber-y.afterLineNumber,v=(x,y)=>{if(y.domNode===null&&x.length>0){const D=x[x.length-1];if(D.afterLineNumber===y.afterLineNumber&&D.domNode===null){D.heightInLines+=y.heightInLines;return}}x.push(y)},C=new YA(this._modifiedForeignVZ),w=new YA(this._originalForeignVZ);let S=1,k=1;for(let x=0,y=this._lineChanges.length;x<=y;x++){const D=x0?-1:0),g=D.modifiedStartLineNumber+(D.modifiedEndLineNumber>0?-1:0),h=D.originalEndLineNumber>0?ud._getViewLineCount(this._originalEditor,D.originalStartLineNumber,D.originalEndLineNumber):0,d=D.modifiedEndLineNumber>0?ud._getViewLineCount(this._modifiedEditor,D.modifiedStartLineNumber,D.modifiedEndLineNumber):0,f=Math.max(D.originalStartLineNumber,D.originalEndLineNumber),_=Math.max(D.modifiedStartLineNumber,D.modifiedEndLineNumber)):(u+=1e7+h,g+=1e7+d,f=u,_=g);let I=[],O=[];if(s){let j;D?D.originalEndLineNumber>0?j=D.originalStartLineNumber-S:j=D.modifiedStartLineNumber-k:j=r.getLineCount()-S+1;for(let re=0;rexe&&O.push({afterLineNumber:Se,heightInLines:ye-xe,domNode:null,marginDomNode:null})}D&&(S=(D.originalEndLineNumber>0?D.originalEndLineNumber:D.originalStartLineNumber)+1,k=(D.modifiedEndLineNumber>0?D.modifiedEndLineNumber:D.modifiedStartLineNumber)+1)}for(;C.current&&C.current.afterLineNumber<=_;){let j;C.current.afterLineNumber<=g?j=u-g+C.current.afterLineNumber:j=f;let re=null;D&&D.modifiedStartLineNumber<=C.current.afterLineNumber&&C.current.afterLineNumber<=D.modifiedEndLineNumber&&(re=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),I.push({afterLineNumber:j,heightInLines:C.current.height/t,domNode:null,marginDomNode:re}),C.advance()}for(;w.current&&w.current.afterLineNumber<=f;){let j;w.current.afterLineNumber<=u?j=g-u+w.current.afterLineNumber:j=_,O.push({afterLineNumber:j,heightInLines:w.current.height/e,domNode:null}),w.advance()}if(D!==null&&Hv(D)){const j=this._produceOriginalFromDiff(D,h,d);j&&I.push(j)}if(D!==null&&zv(D)){const j=this._produceModifiedFromDiff(D,h,d);j&&O.push(j)}let F=0,z=0;for(I=I.sort(b),O=O.sort(b);F=re.heightInLines?(j.heightInLines-=re.heightInLines,z++):(re.heightInLines-=j.heightInLines,F++)}for(;F(t.domNode||(t.domNode=JF()),t))}}function xa(o,e,t,i,n){return{range:new L(o,e,t,i),options:n}}const wn={arrowRevertChange:Ne.register({description:"diff-editor-arrow-revert-change",glyphMarginClassName:"arrow-revert-change "+at.asClassName(m.arrowRight)}),charDelete:Ne.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:Ne.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:Ne.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:Ne.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:Ne.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:Ne.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+at.asClassName(PZ),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:Ne.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:Ne.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+at.asClassName(ZF),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:Ne.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class Ma extends YF{constructor(e,t){super(e),this._disableSash=t===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new tn(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(i=>this._onSashDrag(i)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=e===!1;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let n=Math.floor((e||.5)*i);const s=Math.floor(.5*i);return n=this._disableSash?s:n||s,i>Ma.MINIMUM_EDITOR_WIDTH*2?(ni-Ma.MINIMUM_EDITOR_WIDTH&&(n=i-Ma.MINIMUM_EDITOR_WIDTH)):n=s,this._sashPosition!==n&&(this._sashPosition=n),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0),n=this.layout((this._startSashPosition+(e.currentX-e.startX))/i);this._sashRatio=n/i,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),s=this._dataSource.getModifiedEditor();return new FZ(e,t,i,n,s).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=String(this._removeColor),a={decorations:[],overviewZones:[]},l=s.getModel(),c=s._getViewModel();for(const d of t)if(zv(d)){a.decorations.push({range:new L(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:n?wn.lineDeleteWithSign:wn.lineDelete}),(!Hv(d)||!d.charChanges)&&a.decorations.push(xa(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824,wn.charDeleteWholeLine));const h=pm(l,c,d.originalStartLineNumber,d.originalEndLineNumber);if(a.overviewZones.push(new lm(h.startLineNumber,h.endLineNumber,0,r)),d.charChanges){for(const u of d.charChanges)if(XF(u))if(i)for(let g=u.originalStartLineNumber;g<=u.originalEndLineNumber;g++){let f,_;g===u.originalStartLineNumber?f=u.originalStartColumn:f=l.getLineFirstNonWhitespaceColumn(g),g===u.originalEndLineNumber?_=u.originalEndColumn:_=l.getLineLastNonWhitespaceColumn(g),a.decorations.push(xa(g,f,g,_,wn.charDelete))}else a.decorations.push(xa(u.originalStartLineNumber,u.originalStartColumn,u.originalEndLineNumber,u.originalEndColumn,wn.charDelete))}}return a}_getModifiedEditorDecorations(e,t,i,n,s){const r=this._dataSource.getModifiedEditor(),a=String(this._insertColor),l={decorations:[],overviewZones:[]},c=r.getModel(),d=r._getViewModel();for(const h of t){if(s)if(h.modifiedEndLineNumber>0)l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedStartLineNumber,1),options:wn.arrowRevertChange});else{const u=e.modified.find(g=>g.afterLineNumber===h.modifiedStartLineNumber);u&&(u.marginDomNode=VZ())}if(Hv(h)){l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824),options:n?wn.lineInsertWithSign:wn.lineInsert}),(!zv(h)||!h.charChanges)&&l.decorations.push(xa(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824,wn.charInsertWholeLine));const u=pm(c,d,h.modifiedStartLineNumber,h.modifiedEndLineNumber);if(l.overviewZones.push(new lm(u.startLineNumber,u.endLineNumber,0,a)),h.charChanges){for(const g of h.charChanges)if(QF(g))if(i)for(let f=g.modifiedStartLineNumber;f<=g.modifiedEndLineNumber;f++){let _,b;f===g.modifiedStartLineNumber?_=g.modifiedStartColumn:_=c.getLineFirstNonWhitespaceColumn(f),f===g.modifiedEndLineNumber?b=g.modifiedEndColumn:b=c.getLineLastNonWhitespaceColumn(f),l.decorations.push(xa(f,_,f,b,wn.charInsert))}else l.decorations.push(xa(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn,wn.charInsert))}}}return l}}Ma.MINIMUM_EDITOR_WIDTH=100;class FZ extends ud{constructor(e,t,i,n,s){super(e,t,i,n,s)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class QA extends YF{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(i=>{this._decorationsLeft!==i.decorationsLeft&&(this._decorationsLeft=i.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new BZ(e,t,i,s,r,n).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=String(this._removeColor),r={decorations:[],overviewZones:[]},a=this._dataSource.getOriginalEditor(),l=a.getModel(),c=a._getViewModel();let d=0;for(const h of t)if(zv(h)){for(r.decorations.push({range:new L(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824),options:wn.lineDeleteMargin});d=h.originalStartLineNumber)break;d++}let u=0;if(d0,O=nc(1e4);let F=0,z=0,j=null;for(let Se=S.originalStartLineNumber;Se<=S.originalEndLineNumber;Se++){const ye=Se-S.originalStartLineNumber,xe=this._originalModel.tokenization.getLineTokens(Se),He=xe.getLineContent(),Mt=v[C++],yt=es.filter(D,Se,1,He.length+1);if(Mt){let ve=0;for(const Nt of Mt.breakOffsets){const Fi=xe.sliceAndInflate(ve,Nt,0),In=He.substring(ve,Nt);F=Math.max(F,this._renderOriginalLine(z++,In,Fi,es.extractWrapped(yt,ve,Nt),I,l,c,n,s,d,u,g,f,_,b,i,O,y)),ve=Nt}for(j||(j=[]);j.lengthw.afterLineNumber-S.afterLineNumber)}_renderOriginalLine(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_,b,v,C){v.appendASCIIString('
');const w=Ds.isBasicASCII(t,r),S=Ds.containsRTL(t,w,a),k=a_(new Lc(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,w,S,0,i,n,b,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,u,g,f,_!==_s.OFF,null),v);if(v.appendASCIIString("
"),this._renderIndicators){const x=document.createElement("div");x.className=`delete-sign ${at.asClassName(ZF)}`,x.setAttribute("style",`position:absolute;top:${e*d}px;width:${h}px;height:${d}px;right:0;`),C.appendChild(x)}return k.characterMapping.getHorizontalOffset(k.characterMapping.length)}}function WZ(o,e){return Ki(o,e,["off","on","inherit"])}function Hv(o){return o.modifiedEndLineNumber>0}function zv(o){return o.originalEndLineNumber>0}function QF(o){return o.modifiedStartLineNumber===o.modifiedEndLineNumber?o.modifiedEndColumn-o.modifiedStartColumn>0:o.modifiedEndLineNumber-o.modifiedStartLineNumber>0}function XF(o){return o.originalStartLineNumber===o.originalEndLineNumber?o.originalEndColumn-o.originalStartColumn>0:o.originalEndLineNumber-o.originalStartLineNumber>0}function JF(){const o=document.createElement("div");return o.className="diagonal-fill",o}function VZ(){const o=document.createElement("div");return o.className="arrow-revert-change "+at.asClassName(m.arrowRight),J("div",{},o)}function pm(o,e,t,i){const n=o.getLineCount();return t=Math.min(n,Math.max(1,t)),i=Math.min(n,Math.max(1,i)),e.coordinatesConverter.convertModelRangeToViewRange(new L(t,o.getLineMinColumn(t),i,o.getLineMaxColumn(i)))}function XA(o,e){return{enableSplitViewResizing:we(o.enableSplitViewResizing,e.enableSplitViewResizing),renderSideBySide:we(o.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:we(o.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:jy(o.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:jy(o.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:we(o.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:we(o.renderIndicators,e.renderIndicators),originalEditable:we(o.originalEditable,e.originalEditable),diffCodeLens:we(o.diffCodeLens,e.diffCodeLens),renderOverviewRuler:we(o.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:WZ(o.diffWordWrap,e.diffWordWrap)}}function HZ(o,e){return{enableSplitViewResizing:o.enableSplitViewResizing!==e.enableSplitViewResizing,renderSideBySide:o.renderSideBySide!==e.renderSideBySide,renderMarginRevertIcon:o.renderMarginRevertIcon!==e.renderMarginRevertIcon,maxComputationTime:o.maxComputationTime!==e.maxComputationTime,maxFileSize:o.maxFileSize!==e.maxFileSize,ignoreTrimWhitespace:o.ignoreTrimWhitespace!==e.ignoreTrimWhitespace,renderIndicators:o.renderIndicators!==e.renderIndicators,originalEditable:o.originalEditable!==e.originalEditable,diffCodeLens:o.diffCodeLens!==e.diffCodeLens,renderOverviewRuler:o.renderOverviewRuler!==e.renderOverviewRuler,diffWordWrap:o.diffWordWrap!==e.diffWordWrap}}Et((o,e)=>{const t=o.getColor(I4);t&&e.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${t}; }`);const i=o.getColor(jz)||t;i&&e.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${i}; }`);const n=o.getColor(qz)||i;n&&(e.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`),e.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${n}; }`));const s=o.getColor(E4);s&&e.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${s}; }`);const r=o.getColor(Kz)||s;r&&e.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${r}; }`);const a=o.getColor(Gz)||r;a&&(e.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${a}; }`),e.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${a}; }`));const l=o.getColor(Qz);l&&e.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${cn(o.type)?"dashed":"solid"} ${l}; }`);const c=o.getColor(Xz);c&&e.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${cn(o.type)?"dashed":"solid"} ${c}; }`);const d=o.getColor(Kg);d&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${d}; }`);const h=o.getColor(Jz);h&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${h}; }`);const u=o.getColor(rd);u&&e.addRule(` +`)}else yield this._clipboardService.writeText(_)})),c.push(u)),i.getOption(83)||c.push(new is("diff.inline.revertChange",p("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),b=n.originalModel.getValueInRange(_);if(n.modifiedEndLineNumber===0){const v=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,v,n.modifiedStartLineNumber,v),text:l+b}])}else{const v=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,v),text:b}])}})));const f=(_,b)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:b}),getActions:()=>(u&&(u.label=d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+h):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+h)),c),autoSelectFirstItem:!0})};this._register(ki(this._diffActions,"mousedown",_=>{const{top:b,height:v}=on(this._diffActions),C=Math.floor(a/3);_.preventDefault(),f(_.posx,b+v+C)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{!_.event.rightButton||(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a),f(_.event.posx,_.event.posy+a))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,e?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=on(e),s=t-n,r=Math.floor(s/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let l=0;for(let c=0;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ga=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},FS;class GA{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(t=>!this._zonesMap[String(t.id)])}clean(e){this._zones.length>0&&e.changeViewZones(t=>{for(const i of this._zones)t.removeZone(i)}),this._zones=[],this._zonesMap={},e.changeDecorations(t=>{this._decorations=t.deltaDecorations(this._decorations,[])})}apply(e,t,i,n){const s=n?hc.capture(e):null;e.changeViewZones(r=>{var a;for(const l of this._zones)r.removeZone(l);for(const l of this._inlineDiffMargins)l.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let l=0,c=i.zones.length;l{this._decorations=r.deltaDecorations(this._decorations,i.decorations)}),t==null||t.setZones(i.overviewZones)}}let OZ=0;const PZ=mi("diff-insert",m.add,p("diffInsertIcon","Line decoration for inserts in the diff editor.")),Z5=mi("diff-remove",m.remove,p("diffRemoveIcon","Line decoration for removals in the diff editor.")),ZA=(FS=window.trustedTypes)===null||FS===void 0?void 0:FS.createPolicy("diffEditorWidget",{createHTML:o=>o});let uc=class Xi extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this._editorProgressService=u,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new R),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new R),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=s,this._codeEditorService=l,this._contextKeyService=this._register(r.createScoped(e)),this._instantiationService=a.createChild(new k1([Ee,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=c,this._notificationService=d,this._id=++OZ,this._state=0,this._updatingDiffProgress=null,this._domElement=e,t=t||{},this._options=XA(t,{enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof t.isInEmbeddedEditor<"u"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",t.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new mt(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Je(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(ki(this._overviewDomElement,ae.POINTER_DOWN,f=>{this._modifiedEditor.delegateVerticalScrollbarPointerDown(f)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new GA(h,n),this._modifiedEditorState=new GA(h,n),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new y4(this._containerDomElement,t.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),t.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(t,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(t,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=a.createInstance(Vv,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new Ma(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new QA(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(c.onDidColorThemeChange(f=>{this._strategy&&this._strategy.applyColors(f)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const g=md.getDiffEditorContributions();for(const f of g)try{this._register(a.createInstance(f.ctor,this))}catch(_){Te(_)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=fv(e.type),i}_disposeOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose(),this._originalOverviewRuler=null),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose(),this._modifiedOverviewRuler=null)}_createOverviewRulers(){!this._options.renderOverviewRuler||(ap(!this._originalOverviewRuler&&!this._modifiedOverviewRuler),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const n=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),i}_createRightHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(s=>{s.tabSize&&this._updateDecorationsRunner.schedule()}));const n=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),this._register(i.onMouseDown(s=>{var r,a;if(!s.event.rightButton&&s.target.position&&((r=s.target.element)===null||r===void 0?void 0:r.className.includes("arrow-revert-change"))){const l=s.target.position.lineNumber,c=(a=this._diffComputationResult)===null||a===void 0?void 0:a.changes.find(d=>d.modifiedStartLineNumber===l-1||d.modifiedStartLineNumber===l);c&&this.revertChange(c),s.event.stopPropagation(),this._updateDecorations();return}})),i}revertChange(e){const t=this._modifiedEditor,i=this._originalEditor.getModel(),n=this._modifiedEditor.getModel();if(!i||!n||!t)return;const s=e.originalEndLineNumber>0?new L(e.originalStartLineNumber,1,e.originalEndLineNumber,i.getLineMaxColumn(e.originalEndLineNumber)):null,r=s?i.getValueInRange(s):null,a=e.modifiedEndLineNumber>0?new L(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber,n.getLineMaxColumn(e.modifiedEndLineNumber)):null,l=n.getEOL();if(e.originalEndLineNumber===0&&a){let c=a;e.modifiedStartLineNumber>1?c=a.setStartPosition(e.modifiedStartLineNumber-1,n.getLineMaxColumn(e.modifiedStartLineNumber-1)):e.modifiedEndLineNumberthis._beginUpdateDecorations(),Xi.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t?!0:!e||!t?!1:e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const e=this._originalEditor.getModel(),t=this._modifiedEditor.getModel();if(!e||!t)return;this._diffComputationToken++;const i=this._diffComputationToken,n=this._options.maxFileSize*1024*1024,s=r=>{const a=r.getValueLength();return n===0||a<=n};if(!s(e)||!s(t)){(!Xi._equals(e.uri,this._lastOriginalWarning)||!Xi._equals(t.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=e.uri,this._lastModifiedWarning=t.uri,this._notificationService.warn(p("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._setState(1),this._editorWorkerService.computeDiff(e.uri,t.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=r,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,this._options.renderMarginRevertIcon,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.dropIntoEditor={enabled:!t.readOnly},t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(e){const t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=nr.revealHorizontalRightPadding.defaultValue+Xi.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=this._strategy.layout();this._originalDomNode.style.width=n+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-n+"px",this._modifiedDomNode.style.left=n+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(Xi.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:n,height:t-i}),this._modifiedEditor.layout({width:e-n-(this._options.renderOverviewRuler?Xi.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),s=Math.max(0,n-2*0),r=i>0?s/i:0,a=Math.max(0,Math.floor(e.height*r)),l=Math.floor(t*r);return{height:a,top:l}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||e=l?n=r+1:(n=r,s=r)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.originalStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=s?n+Math.min(a,r):n+r-s+a}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.modifiedStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,s):i+s-r+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};uc.ONE_OVERVIEW_WIDTH=15;uc.ENTIRE_DIFF_OVERVIEW_WIDTH=30;uc.UPDATE_DIFF_DECORATIONS_DELAY=200;uc=RZ([ga(3,cl),ga(4,to),ga(5,Ee),ga(6,Ae),ga(7,ct),ga(8,Ct),ga(9,di),ga(10,ll),ga(11,kc)],uc);class Y5 extends H{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(Zz)||(e.getColor(I4)||cD).transparent(2),i=e.getColor(Yz)||(e.getColor(E4)||dD).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,s,r){r=r.sort((d,h)=>d.afterLineNumber-h.afterLineNumber),s=s.sort((d,h)=>d.afterLineNumber-h.afterLineNumber);const a=this._getViewZones(e,s,r,i),l=this._getOriginalEditorDecorations(a,e,t,i),c=this._getModifiedEditorDecorations(a,e,t,i,n);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:c.decorations,overviewZones:c.overviewZones,zones:a.modified}}}}class YA{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexx.afterLineNumber-y.afterLineNumber,v=(x,y)=>{if(y.domNode===null&&x.length>0){const D=x[x.length-1];if(D.afterLineNumber===y.afterLineNumber&&D.domNode===null){D.heightInLines+=y.heightInLines;return}}x.push(y)},C=new YA(this._modifiedForeignVZ),w=new YA(this._originalForeignVZ);let S=1,k=1;for(let x=0,y=this._lineChanges.length;x<=y;x++){const D=x0?-1:0),g=D.modifiedStartLineNumber+(D.modifiedEndLineNumber>0?-1:0),h=D.originalEndLineNumber>0?ud._getViewLineCount(this._originalEditor,D.originalStartLineNumber,D.originalEndLineNumber):0,d=D.modifiedEndLineNumber>0?ud._getViewLineCount(this._modifiedEditor,D.modifiedStartLineNumber,D.modifiedEndLineNumber):0,f=Math.max(D.originalStartLineNumber,D.originalEndLineNumber),_=Math.max(D.modifiedStartLineNumber,D.modifiedEndLineNumber)):(u+=1e7+h,g+=1e7+d,f=u,_=g);let I=[],O=[];if(s){let j;D?D.originalEndLineNumber>0?j=D.originalStartLineNumber-S:j=D.modifiedStartLineNumber-k:j=r.getLineCount()-S+1;for(let re=0;rexe&&O.push({afterLineNumber:Se,heightInLines:ye-xe,domNode:null,marginDomNode:null})}D&&(S=(D.originalEndLineNumber>0?D.originalEndLineNumber:D.originalStartLineNumber)+1,k=(D.modifiedEndLineNumber>0?D.modifiedEndLineNumber:D.modifiedStartLineNumber)+1)}for(;C.current&&C.current.afterLineNumber<=_;){let j;C.current.afterLineNumber<=g?j=u-g+C.current.afterLineNumber:j=f;let re=null;D&&D.modifiedStartLineNumber<=C.current.afterLineNumber&&C.current.afterLineNumber<=D.modifiedEndLineNumber&&(re=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),I.push({afterLineNumber:j,heightInLines:C.current.height/t,domNode:null,marginDomNode:re}),C.advance()}for(;w.current&&w.current.afterLineNumber<=f;){let j;w.current.afterLineNumber<=u?j=g-u+w.current.afterLineNumber:j=_,O.push({afterLineNumber:j,heightInLines:w.current.height/e,domNode:null}),w.advance()}if(D!==null&&Hv(D)){const j=this._produceOriginalFromDiff(D,h,d);j&&I.push(j)}if(D!==null&&zv(D)){const j=this._produceModifiedFromDiff(D,h,d);j&&O.push(j)}let F=0,z=0;for(I=I.sort(b),O=O.sort(b);F=re.heightInLines?(j.heightInLines-=re.heightInLines,z++):(re.heightInLines-=j.heightInLines,F++)}for(;F(t.domNode||(t.domNode=J5()),t))}}function xa(o,e,t,i,n){return{range:new L(o,e,t,i),options:n}}const wn={arrowRevertChange:Ne.register({description:"diff-editor-arrow-revert-change",glyphMarginClassName:"arrow-revert-change "+at.asClassName(m.arrowRight)}),charDelete:Ne.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:Ne.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:Ne.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:Ne.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:Ne.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:Ne.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+at.asClassName(PZ),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:Ne.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:Ne.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+at.asClassName(Z5),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:Ne.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class Ma extends Y5{constructor(e,t){super(e),this._disableSash=t===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new tn(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(i=>this._onSashDrag(i)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=e===!1;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let n=Math.floor((e||.5)*i);const s=Math.floor(.5*i);return n=this._disableSash?s:n||s,i>Ma.MINIMUM_EDITOR_WIDTH*2?(ni-Ma.MINIMUM_EDITOR_WIDTH&&(n=i-Ma.MINIMUM_EDITOR_WIDTH)):n=s,this._sashPosition!==n&&(this._sashPosition=n),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0),n=this.layout((this._startSashPosition+(e.currentX-e.startX))/i);this._sashRatio=n/i,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),s=this._dataSource.getModifiedEditor();return new FZ(e,t,i,n,s).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=String(this._removeColor),a={decorations:[],overviewZones:[]},l=s.getModel(),c=s._getViewModel();for(const d of t)if(zv(d)){a.decorations.push({range:new L(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:n?wn.lineDeleteWithSign:wn.lineDelete}),(!Hv(d)||!d.charChanges)&&a.decorations.push(xa(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824,wn.charDeleteWholeLine));const h=pm(l,c,d.originalStartLineNumber,d.originalEndLineNumber);if(a.overviewZones.push(new lm(h.startLineNumber,h.endLineNumber,0,r)),d.charChanges){for(const u of d.charChanges)if(X5(u))if(i)for(let g=u.originalStartLineNumber;g<=u.originalEndLineNumber;g++){let f,_;g===u.originalStartLineNumber?f=u.originalStartColumn:f=l.getLineFirstNonWhitespaceColumn(g),g===u.originalEndLineNumber?_=u.originalEndColumn:_=l.getLineLastNonWhitespaceColumn(g),a.decorations.push(xa(g,f,g,_,wn.charDelete))}else a.decorations.push(xa(u.originalStartLineNumber,u.originalStartColumn,u.originalEndLineNumber,u.originalEndColumn,wn.charDelete))}}return a}_getModifiedEditorDecorations(e,t,i,n,s){const r=this._dataSource.getModifiedEditor(),a=String(this._insertColor),l={decorations:[],overviewZones:[]},c=r.getModel(),d=r._getViewModel();for(const h of t){if(s)if(h.modifiedEndLineNumber>0)l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedStartLineNumber,1),options:wn.arrowRevertChange});else{const u=e.modified.find(g=>g.afterLineNumber===h.modifiedStartLineNumber);u&&(u.marginDomNode=VZ())}if(Hv(h)){l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824),options:n?wn.lineInsertWithSign:wn.lineInsert}),(!zv(h)||!h.charChanges)&&l.decorations.push(xa(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824,wn.charInsertWholeLine));const u=pm(c,d,h.modifiedStartLineNumber,h.modifiedEndLineNumber);if(l.overviewZones.push(new lm(u.startLineNumber,u.endLineNumber,0,a)),h.charChanges){for(const g of h.charChanges)if(Q5(g))if(i)for(let f=g.modifiedStartLineNumber;f<=g.modifiedEndLineNumber;f++){let _,b;f===g.modifiedStartLineNumber?_=g.modifiedStartColumn:_=c.getLineFirstNonWhitespaceColumn(f),f===g.modifiedEndLineNumber?b=g.modifiedEndColumn:b=c.getLineLastNonWhitespaceColumn(f),l.decorations.push(xa(f,_,f,b,wn.charInsert))}else l.decorations.push(xa(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn,wn.charInsert))}}}return l}}Ma.MINIMUM_EDITOR_WIDTH=100;class FZ extends ud{constructor(e,t,i,n,s){super(e,t,i,n,s)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class QA extends Y5{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(i=>{this._decorationsLeft!==i.decorationsLeft&&(this._decorationsLeft=i.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new BZ(e,t,i,s,r,n).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=String(this._removeColor),r={decorations:[],overviewZones:[]},a=this._dataSource.getOriginalEditor(),l=a.getModel(),c=a._getViewModel();let d=0;for(const h of t)if(zv(h)){for(r.decorations.push({range:new L(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824),options:wn.lineDeleteMargin});d=h.originalStartLineNumber)break;d++}let u=0;if(d0,O=nc(1e4);let F=0,z=0,j=null;for(let Se=S.originalStartLineNumber;Se<=S.originalEndLineNumber;Se++){const ye=Se-S.originalStartLineNumber,xe=this._originalModel.tokenization.getLineTokens(Se),He=xe.getLineContent(),Mt=v[C++],yt=es.filter(D,Se,1,He.length+1);if(Mt){let ve=0;for(const Nt of Mt.breakOffsets){const Fi=xe.sliceAndInflate(ve,Nt,0),In=He.substring(ve,Nt);F=Math.max(F,this._renderOriginalLine(z++,In,Fi,es.extractWrapped(yt,ve,Nt),I,l,c,n,s,d,u,g,f,_,b,i,O,y)),ve=Nt}for(j||(j=[]);j.lengthw.afterLineNumber-S.afterLineNumber)}_renderOriginalLine(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_,b,v,C){v.appendASCIIString('
');const w=Ds.isBasicASCII(t,r),S=Ds.containsRTL(t,w,a),k=a_(new Lc(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,w,S,0,i,n,b,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,u,g,f,_!==_s.OFF,null),v);if(v.appendASCIIString("
"),this._renderIndicators){const x=document.createElement("div");x.className=`delete-sign ${at.asClassName(Z5)}`,x.setAttribute("style",`position:absolute;top:${e*d}px;width:${h}px;height:${d}px;right:0;`),C.appendChild(x)}return k.characterMapping.getHorizontalOffset(k.characterMapping.length)}}function WZ(o,e){return Ki(o,e,["off","on","inherit"])}function Hv(o){return o.modifiedEndLineNumber>0}function zv(o){return o.originalEndLineNumber>0}function Q5(o){return o.modifiedStartLineNumber===o.modifiedEndLineNumber?o.modifiedEndColumn-o.modifiedStartColumn>0:o.modifiedEndLineNumber-o.modifiedStartLineNumber>0}function X5(o){return o.originalStartLineNumber===o.originalEndLineNumber?o.originalEndColumn-o.originalStartColumn>0:o.originalEndLineNumber-o.originalStartLineNumber>0}function J5(){const o=document.createElement("div");return o.className="diagonal-fill",o}function VZ(){const o=document.createElement("div");return o.className="arrow-revert-change "+at.asClassName(m.arrowRight),J("div",{},o)}function pm(o,e,t,i){const n=o.getLineCount();return t=Math.min(n,Math.max(1,t)),i=Math.min(n,Math.max(1,i)),e.coordinatesConverter.convertModelRangeToViewRange(new L(t,o.getLineMinColumn(t),i,o.getLineMaxColumn(i)))}function XA(o,e){return{enableSplitViewResizing:we(o.enableSplitViewResizing,e.enableSplitViewResizing),renderSideBySide:we(o.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:we(o.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:jy(o.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:jy(o.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:we(o.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:we(o.renderIndicators,e.renderIndicators),originalEditable:we(o.originalEditable,e.originalEditable),diffCodeLens:we(o.diffCodeLens,e.diffCodeLens),renderOverviewRuler:we(o.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:WZ(o.diffWordWrap,e.diffWordWrap)}}function HZ(o,e){return{enableSplitViewResizing:o.enableSplitViewResizing!==e.enableSplitViewResizing,renderSideBySide:o.renderSideBySide!==e.renderSideBySide,renderMarginRevertIcon:o.renderMarginRevertIcon!==e.renderMarginRevertIcon,maxComputationTime:o.maxComputationTime!==e.maxComputationTime,maxFileSize:o.maxFileSize!==e.maxFileSize,ignoreTrimWhitespace:o.ignoreTrimWhitespace!==e.ignoreTrimWhitespace,renderIndicators:o.renderIndicators!==e.renderIndicators,originalEditable:o.originalEditable!==e.originalEditable,diffCodeLens:o.diffCodeLens!==e.diffCodeLens,renderOverviewRuler:o.renderOverviewRuler!==e.renderOverviewRuler,diffWordWrap:o.diffWordWrap!==e.diffWordWrap}}Et((o,e)=>{const t=o.getColor(I4);t&&e.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${t}; }`);const i=o.getColor(jz)||t;i&&e.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${i}; }`);const n=o.getColor(qz)||i;n&&(e.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`),e.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${n}; }`));const s=o.getColor(E4);s&&e.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${s}; }`);const r=o.getColor(Kz)||s;r&&e.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${r}; }`);const a=o.getColor(Gz)||r;a&&(e.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${a}; }`),e.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${a}; }`));const l=o.getColor(Qz);l&&e.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${cn(o.type)?"dashed":"solid"} ${l}; }`);const c=o.getColor(Xz);c&&e.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${cn(o.type)?"dashed":"solid"} ${c}; }`);const d=o.getColor(Kg);d&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${d}; }`);const h=o.getColor(Jz);h&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${h}; }`);const u=o.getColor(rd);u&&e.addRule(` .monaco-diff-editor .diffViewport { background: ${u}; } @@ -136,10 +136,10 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config ); background-size: 8px 8px; } - `)});var zZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},UZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},$Z=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let PD=class extends H{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new R),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new R),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new R),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new R),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new Dn,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorationsByType(e))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}openCodeEditor(e,t,i){return $Z(this,void 0,void 0,function*(){for(const n of this._codeEditorOpenHandlers){const s=yield n(e,t,i);if(s!==null)return s}return null})}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return Be(t)}};PD=zZ([UZ(0,Ct)],PD);var jZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JA=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},KZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Uv=class extends PD{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((i,n,s)=>KZ(this,void 0,void 0,function*(){return n?this.doOpenEditor(n,i):null}))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const s=t.resource.scheme;if(s===Me.http||s===Me.https)return d4(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{const s={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(s),e.revealPositionInCenter(s,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Uv=jZ([JA(0,Ee),JA(1,Ct)],Uv);et(ct,Uv);const Yg=Ye("layoutService");var e5=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},t5=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let $v=class{constructor(e){this._codeEditorService=e,this.onDidLayout=ge.None,this.offset={top:0,quickPickTop:0}}get dimension(){return this._dimension||(this._dimension=JC(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}};$v=e5([t5(0,ct)],$v);let FD=class extends $v{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};FD=e5([t5(1,ct)],FD);et(Yg,$v);const b_=Ye("dialogService");var qZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},eM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ib=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function Eb(o){return o.scheme===Me.file?o.fsPath:o.path}let i5=0;class Nb{constructor(e,t,i,n,s,r,a){this.id=++i5,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=a,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class tM{constructor(e,t){this.resourceLabel=e,this.reason=t}}class iM{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);const i=[];return e.length>0&&i.push(p({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(p({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` -`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class GZ{constructor(e,t,i,n,s,r,a){this.id=++i5,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new iM),this.removedResources.has(t)||this.removedResources.set(t,new tM(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new iM),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new tM(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class n5{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(` -`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)t.type===1&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i=0;i--)t.push(this._future[i].id);return new DF(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let a=0,l=this._past.length;a=t||c.id!==e.elements[n])&&(i=!1,s=0),!i&&c.type===1&&c.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,n++){const l=this._future[a];i&&(n>=t||l.id!==e.elements[n])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}s!==-1&&(this._past=this._past.slice(0,s)),r!==-1&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class BS{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;tt.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof Er){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Te(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),s()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),s())}_invokeWorkspacePrepare(e){return Ib(this,void 0,void 0,function*(){if(typeof e.actual.prepareUndoRedo>"u")return H.None;const t=e.actual.prepareUndoRedo();return typeof t>"u"?H.None:t})}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(H.None);const i=e.actual.prepareUndoRedo();return i?hI(i)?t(i):i.then(n=>t(n)):t(H.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||s5);return new BS(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Tb(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Tb}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&s.push(a.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(!!i){if(i===e){const n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return Ib(this,void 0,void 0,function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const a=yield this._dialogService.show(Bt.Info,p("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[p({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),p("nok","Undo this File"),p("cancel","Cancel")],{cancelId:2});if(a.choice===2)return;if(a.choice===1)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const l=this._checkWorkspaceUndo(e,t,i,!1);if(l)return l.returnValue;n=!0}let s;try{s=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return s.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,s,()=>this._continueUndoInGroup(t.groupId,n))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const n=p({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new BS([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestPastElement();!r||r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof Er){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[a,l]=this._findClosestUndoElementInGroup(s.groupId);if(s!==a&&l)return this._undo(l,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return s.type===1?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{}}_confirmAndContinueUndo(e,t,i){return Ib(this,void 0,void 0,function*(){if((yield this._dialogService.show(Bt.Info,p("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[p("confirmDifferentSource.yes","Yes"),p("confirmDifferentSource.no","No")],{cancelId:1})).choice!==1)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return Ib(this,void 0,void 0,function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){const i=p({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new BS([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.groupId===e&&(!t||r.groupOrderqE(o,t))}function r5(o){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(o.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},o=o.with({fragment:""})),{selection:e,uri:o}}var QZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},XZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const no=Ye("ILanguageFeatureDebounceService");var jv;(function(o){const e=new WeakMap;let t=0;function i(n){let s=e.get(n);return s===void 0&&(s=++t,e.set(n,s)),s}o.of=i})(jv||(jv={}));class JZ{constructor(e,t,i,n,s,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=s,this._max=r,this._cache=new Dc(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>ZC(jv.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?Zn(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new ZZ(6),this._cache.set(i,n));const s=Zn(n.update(t),this._min,this._max);return qE(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new o5;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return Zn(e,this._min,this._max)}}let WD=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,s,r;const a=(n=i==null?void 0:i.min)!==null&&n!==void 0?n:50,l=(s=i==null?void 0:i.max)!==null&&s!==void 0?s:Math.pow(a,2),c=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,d=`${jv.of(e)},${a}${c?","+c:""}`;let h=this._data.get(d);return h||(h=new JZ(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(d,h)),h}_overallAverage(){const e=new o5;for(const t of this._data.values())e.update(t.default());return e.value}};WD=QZ([XZ(0,So)],WD);et(no,WD,!0);const v_=Ye("IWorkspaceEditService");class Qg{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(Cd.is(t))return Cd.lift(t);if($u.is(t))return $u.lift(t);throw new Error("Unsupported edit")})}}class Cd extends Qg{constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}static is(e){return e instanceof Cd?!0:Hn(e)&&_e.isUri(e.resource)&&Hn(e.textEdit)}static lift(e){return e instanceof Cd?e:new Cd(e.resource,e.textEdit,e.versionId,e.metadata)}}class $u extends Qg{constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}static is(e){return e instanceof $u?!0:Hn(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof $u?e:new $u(e.oldResource,e.newResource,e.options,e.metadata)}}const GE=Object.freeze({id:"editor",order:5,type:"object",title:p("editorConfigurationTitle","Editor"),scope:5}),Kv=Object.assign(Object.assign({},GE),{properties:{"editor.tabSize":{type:"number",default:sn.tabSize,minimum:1,markdownDescription:p("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:sn.insertSpaces,markdownDescription:p("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:sn.detectIndentation,markdownDescription:p("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:sn.trimAutoWhitespace,description:p("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:sn.largeFileOptimizations,description:p("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:p("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[p("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),p("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),p("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:p("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[p("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),p("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),p("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:p("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:p("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:p("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:["array","null"],default:null,description:p("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:p("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:p("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:p("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:p("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:p("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:p("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:p("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:p("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function eY(o){return typeof o.type<"u"||typeof o.anyOf<"u"}for(const o of ru){const e=o.schema;if(typeof e<"u")if(eY(e))Kv.properties[`editor.${o.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(Kv.properties[t]=e[t])}let Ab=null;function a5(){return Ab===null&&(Ab=Object.create(null),Object.keys(Kv.properties).forEach(o=>{Ab[o]=!0})),Ab}function tY(o){return a5()[`editor.${o}`]||!1}function iY(o){return a5()[`diffEditor.${o}`]||!1}const nY=zt.as(rl.Configuration);nY.registerConfiguration(Kv);class Ft{static insert(e,t){return{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}class Qn{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.frozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?zT(this.contents,e):this.contents}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?zT(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=La(this.contents),i=La(this.overrides),n=[...this.keys];for(const s of e)if(!s.isEmpty()){this.mergeContents(t,s.contents);for(const r of s.overrides){const[a]=i.filter(l=>Ss(l.identifiers,r.identifiers));a?(this.mergeContents(a.contents,r.contents),a.keys.push(...r.keys),a.keys=Qa(a.keys)):i.push(La(r))}for(const r of s.keys)n.indexOf(r)===-1&&n.push(r)}return new Qn(t,n,i)}freeze(){return this.frozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;const i={};for(const n of Qa([...Object.keys(this.contents),...Object.keys(t)])){let s=this.contents[n];const r=t[n];r&&(typeof s=="object"&&typeof r=="object"?(s=La(s),this.mergeContents(s,r)):s=r),i[n]=s}return new Qn(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&Hn(e[i])&&Hn(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=La(t[i])}}checkAndFreeze(e){return this.frozen&&!Object.isFrozen(e)?U8(e):e}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=s=>{s&&(i?this.mergeContents(i,s):i=La(s))};for(const s of this.overrides)Ss(s.identifiers,[e])?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),TI(this.contents,e,t,i=>{throw new Error(i)})}removeValue(e){this.removeKey(e)&&oW(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iC.identifiers).flat()).filter(C=>n.getOverrideValue(e,C)!==void 0);return{defaultValue:a,policyValue:l,applicationValue:c,userValue:d,userLocalValue:h,userRemoteValue:u,workspaceValue:g,workspaceFolderValue:f,memoryValue:_,value:b,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,policy:l!==void 0?{value:l}:void 0,application:c!==void 0?{value:c,override:t.overrideIdentifier?this.applicationConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:d!==void 0?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:h!==void 0?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:u!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:g!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:f!==void 0?{value:s==null?void 0:s.freeze().getValue(e),override:t.overrideIdentifier?s==null?void 0:s.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:_!==void 0?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:v.length?v:void 0}}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(e)!==void 0&&(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),s=this.parseConfigurationModel(e.user),r=this.parseConfigurationModel(e.workspace),a=e.folders.reduce((l,c)=>(l.set(_e.revive(c[0]),this.parseConfigurationModel(c[1])),l),new mn);return new N1(t,i,n,s,new Qn,r,a,new Qn,new mn,!1)}static parseConfigurationModel(e){return new Qn(e.contents,e.keys,e.overrides).freeze()}}class sY{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const s=new Set;e.keys.forEach(a=>s.add(a)),e.overrides.forEach(([,a])=>a.forEach(l=>s.add(l))),this.affectedKeys=[...s.values()];const r=new Qn;this.affectedKeys.forEach(a=>r.setValue(a,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=N1.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!$s(n,s)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=kP({[t]:!0},()=>{}),n;for(;typeof i=="object"&&(n=Object.keys(i)[0]);){if(e=e[n],!e)return!1;i=i[n]}return!0}}const oY=/^(cursor|delete)/;class rY extends H{constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new R),this._currentChord=null,this._currentChordChecker=new r_,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new xs,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ge.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(!!i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[n]=i.getDispatchParts();if(n===null)return this._log("\\ Keyboard event cannot be dispatched"),null;const s=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(s,r,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(p("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[s]=i.getParts();return this._ignoreSingleModifiers=new wu(s),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let s=null,r=null;if(i){const[d]=e.getSingleModifierDispatchParts();s=d,r=d}else[s]=e.getDispatchParts(),r=this._currentChord?this._currentChord.keypress:null;if(s===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,s);return this._logService.trace("KeybindingService#dispatch",l,c==null?void 0:c.commandId),c&&c.enterChord?(n=!0,this._enterChordMode(s,l),this._log("+ Entering chord mode..."),n):(this._currentChord&&(!c||!c.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${l}".`),this._notificationService.status(p("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,l),{hideAfter:10*1e3}),n=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(n=!0),this._log(`+ Invoking command ${c.commandId}.`),typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,d=>this._notificationService.warn(d)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,d=>this._notificationService.warn(d)),oY.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class wu{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}wu.EMPTY=new wu(null);const _i=Ye("keybindingService");class Lp{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const n of e){const s=n.command;s&&s.charAt(0)!=="-"&&this._defaultBoundCommands.set(s,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Lp.handleRemovals([].concat(e).concat(t));for(let n=0,s=this._keybindings.length;n"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(let n=i.length-1;n>=0;n--){const s=i[n];if(s.command===t.command)continue;const r=s.keypressParts.length>1,a=t.keypressParts.length>1;r&&a&&s.keypressParts[1]!==t.keypressParts[1]||Lp.whenIsEntirelyIncluded(s.when,t.when)&&this._removeFromLookupMap(s)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);typeof t>"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(let i=0,n=t.length;i"u"||i.length===0)return null;if(i.length===1)return i[0];for(let n=i.length-1;n>=0;n--){const s=i[n];if(t.contextMatchesRules(s.when))return s}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let n=null;if(t!==null){const r=this._map.get(t);if(typeof r>"u")return this._log("\\ No keybinding entries."),null;n=[];for(let a=0,l=r.length;a"u")return this._log("\\ No keybinding entries."),null;n=r}const s=this._findCommand(e,n);return s?t===null&&s.keypressParts.length>1&&s.keypressParts[1]!==null?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${s.command}, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!1,leaveChord:s.keypressParts.length>1,commandId:s.command,commandArgs:s.commandArgs,bubble:s.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(!!Lp._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function oM(o){return o?`${o.serialize()}`:"no when condition"}function rM(o){return o.extensionId?o.isBuiltinExtension?`built-in extension ${o.extensionId}`:`user extension ${o.extensionId}`:o.isDefault?"built-in":"user"}class aM{constructor(e,t,i,n,s,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?VD(e.getDispatchParts()):[],e&&this.keypressParts.length===0&&(this.keypressParts=VD(e.getSingleModifierDispatchParts())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=r,this.isBuiltinExtension=a}}function VD(o){const e=[];for(let t=0,i=o.length;tthis._getLabel(e))}getAriaLabel(){return aY.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:lY.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new GV(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class mm extends dY{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return sd.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":sd.toString(e.keyCode)}_getElectronAccelerator(e){return sd.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return mm.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=sd.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=pI[e];if(t!==-1)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof Md)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new Md(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=VD(e.map(n=>this._resolveSimpleUserBinding(n)));return i.length>0?[new mm(new av(i),t)]:[]}}const bg=Ye("labelService"),_m=Ye("contextService");function lM(o){const e=o;return typeof(e==null?void 0:e.id)=="string"&&_e.isUri(e.uri)}function hY(o){if(o.configuration)return{id:o.id,configPath:o.configuration};if(o.folders.length===1)return{id:o.id,uri:o.folders[0].uri}}class uY{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const HD="code-workspace";p("codeWorkspace","Code Workspace");var hi;(function(o){o.noSelection=p("noSelection","No selection"),o.singleSelectionRange=p("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),o.singleSelection=p("singleSelection","Line {0}, Column {1}"),o.multiSelectionRange=p("multiSelectionRange","{0} selections ({1} characters selected)"),o.multiSelection=p("multiSelection","{0} selections"),o.emergencyConfOn=p("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),o.openingDocs=p("openingDocs","Now opening the Editor Accessibility documentation page."),o.readonlyDiffEditor=p("readonlyDiffEditor"," in a read-only pane of a diff editor."),o.editableDiffEditor=p("editableDiffEditor"," in a pane of a diff editor."),o.readonlyEditor=p("readonlyEditor"," in a read-only code editor"),o.editableEditor=p("editableEditor"," in a code editor"),o.changeConfigToOnMac=p("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),o.changeConfigToOnWinLinux=p("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),o.auto_on=p("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),o.auto_off=p("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o.tabFocusModeOnMsg=p("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),o.tabFocusModeOnMsgNoKb=p("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),o.tabFocusModeOffMsg=p("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),o.tabFocusModeOffMsgNoKb=p("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),o.openDocMac=p("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),o.openDocWinLinux=p("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),o.outroMsg=p("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),o.showAccessibilityHelpAction=p("showAccessibilityHelpAction","Show Accessibility Help")})(hi||(hi={}));var zD;(function(o){o.inspectTokensAction=p("inspectTokens","Developer: Inspect Tokens")})(zD||(zD={}));var qv;(function(o){o.gotoLineActionLabel=p("gotoLineActionLabel","Go to Line/Column...")})(qv||(qv={}));var UD;(function(o){o.helpQuickAccessActionLabel=p("helpQuickAccess","Show all Quick Access Providers")})(UD||(UD={}));var Gv;(function(o){o.quickCommandActionLabel=p("quickCommandActionLabel","Command Palette"),o.quickCommandHelp=p("quickCommandActionHelp","Show And Run Commands")})(Gv||(Gv={}));var bm;(function(o){o.quickOutlineActionLabel=p("quickOutlineActionLabel","Go to Symbol..."),o.quickOutlineByCategoryActionLabel=p("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(bm||(bm={}));var Zv;(function(o){o.editorViewAccessibleLabel=p("editorViewAccessibleLabel","Editor content"),o.accessibilityHelpMessage=p("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Zv||(Zv={}));var $D;(function(o){o.toggleHighContrast=p("toggleHighContrast","Toggle High Contrast Theme")})($D||($D={}));var jD;(function(o){o.bulkEditServiceSummary=p("bulkEditServiceSummary","Made {0} edits in {1} files")})(jD||(jD={}));const l5=Ye("workspaceTrustManagementService");var en;(function(o){function e(s,r){if(s.start>=r.end||r.start>=s.end)return{start:0,end:0};const a=Math.max(s.start,r.start),l=Math.min(s.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}o.intersect=e;function t(s){return s.end-s.start<=0}o.isEmpty=t;function i(s,r){return!t(e(s,r))}o.intersects=i;function n(s,r){const a=[],l={start:s.start,end:Math.min(r.start,s.end)},c={start:Math.max(r.end,s.start),end:s.end};return t(l)||a.push(l),t(c)||a.push(c),a}o.relativeComplement=n})(en||(en={}));var Wl;(function(o){o[o.AVOID=0]="AVOID",o[o.ALIGN=1]="ALIGN"})(Wl||(Wl={}));function Su(o,e,t){const i=t.mode===Wl.ALIGN?t.offset:t.offset+t.size,n=t.mode===Wl.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=o-i?i:e<=n?n-e:Math.max(o-e,0):e<=n?n-e:e<=o-i?i:0}class vg extends H{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=H.None,this.toDisposeOnSetContainer=H.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=J(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,Pn(this.view),this.setContainer(e,t),this._register(Be(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=J(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const s=document.createElement("style");s.textContent=gY,this.shadowRoot.appendChild(s),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(J("slot"))}else this.container.appendChild(this.view);const n=new Q;vg.BUBBLE_UP_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!1)}))}),vg.BUBBLE_DOWN_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){var t,i;this.isVisible()&&this.hide(),Si(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2575",this.view.style.position=this.useFixedPosition?"fixed":"absolute",bs(this.view),this.toDisposeOnClean=e.render(this.view)||H.None,this.delegate=e,this.doLayout(),(i=(t=this.delegate).focus)===null||i===void 0||i.call(t)}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(Ur&&$I.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(l4(e)){const h=on(e),u=AH(e);t={top:h.top*u,left:h.left*u,width:h.width*u,height:h.height*u}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=co(this.view),n=iD(this.view),s=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,c;if(a===0){const h={offset:t.top-window.pageYOffset,size:t.height,position:s===0?0:1},u={offset:t.left,size:t.width,position:r===0?0:1,mode:Wl.ALIGN};l=Su(window.innerHeight,n,h)+window.pageYOffset,en.intersects({start:l,end:l+n},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),c=Su(window.innerWidth,i,u)}else{const h={offset:t.left,size:t.width,position:r===0?0:1},u={offset:t.top,size:t.height,position:s===0?0:1,mode:Wl.ALIGN};c=Su(window.innerWidth,i,h),en.intersects({start:c,end:c+i},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),l=Su(window.innerHeight,n,u)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(s===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const d=on(this.container);this.view.style.top=`${l-(this.useFixedPosition?on(this.view).top:d.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?on(this.view).left:d.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Pn(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Ga(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}vg.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];vg.BUBBLE_DOWN_EVENTS=["click"];const gY=` + `)});var zZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},UZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},$Z=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let PD=class extends H{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new R),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new R),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new R),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new R),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new Dn,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorationsByType(e))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}openCodeEditor(e,t,i){return $Z(this,void 0,void 0,function*(){for(const n of this._codeEditorOpenHandlers){const s=yield n(e,t,i);if(s!==null)return s}return null})}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return Be(t)}};PD=zZ([UZ(0,Ct)],PD);var jZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JA=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},KZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Uv=class extends PD{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((i,n,s)=>KZ(this,void 0,void 0,function*(){return n?this.doOpenEditor(n,i):null}))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const s=t.resource.scheme;if(s===Me.http||s===Me.https)return d4(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{const s={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(s),e.revealPositionInCenter(s,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Uv=jZ([JA(0,Ee),JA(1,Ct)],Uv);et(ct,Uv);const Yg=Ye("layoutService");var eF=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},tF=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let $v=class{constructor(e){this._codeEditorService=e,this.onDidLayout=ge.None,this.offset={top:0,quickPickTop:0}}get dimension(){return this._dimension||(this._dimension=JC(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}};$v=eF([tF(0,ct)],$v);let FD=class extends $v{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};FD=eF([tF(1,ct)],FD);et(Yg,$v);const b_=Ye("dialogService");var qZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},eM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ib=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function Eb(o){return o.scheme===Me.file?o.fsPath:o.path}let iF=0;class Nb{constructor(e,t,i,n,s,r,a){this.id=++iF,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=a,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class tM{constructor(e,t){this.resourceLabel=e,this.reason=t}}class iM{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);const i=[];return e.length>0&&i.push(p({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(p({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` +`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class GZ{constructor(e,t,i,n,s,r,a){this.id=++iF,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new iM),this.removedResources.has(t)||this.removedResources.set(t,new tM(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new iM),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new tM(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class nF{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(` +`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)t.type===1&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i=0;i--)t.push(this._future[i].id);return new D5(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let a=0,l=this._past.length;a=t||c.id!==e.elements[n])&&(i=!1,s=0),!i&&c.type===1&&c.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,n++){const l=this._future[a];i&&(n>=t||l.id!==e.elements[n])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}s!==-1&&(this._past=this._past.slice(0,s)),r!==-1&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class BS{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;tt.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof Er){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Te(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),s()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),s())}_invokeWorkspacePrepare(e){return Ib(this,void 0,void 0,function*(){if(typeof e.actual.prepareUndoRedo>"u")return H.None;const t=e.actual.prepareUndoRedo();return typeof t>"u"?H.None:t})}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(H.None);const i=e.actual.prepareUndoRedo();return i?hI(i)?t(i):i.then(n=>t(n)):t(H.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||sF);return new BS(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Tb(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Tb}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&s.push(a.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(!!i){if(i===e){const n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return Ib(this,void 0,void 0,function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const a=yield this._dialogService.show(Bt.Info,p("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[p({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),p("nok","Undo this File"),p("cancel","Cancel")],{cancelId:2});if(a.choice===2)return;if(a.choice===1)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const l=this._checkWorkspaceUndo(e,t,i,!1);if(l)return l.returnValue;n=!0}let s;try{s=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return s.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,s,()=>this._continueUndoInGroup(t.groupId,n))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const n=p({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new BS([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestPastElement();!r||r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof Er){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[a,l]=this._findClosestUndoElementInGroup(s.groupId);if(s!==a&&l)return this._undo(l,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return s.type===1?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{}}_confirmAndContinueUndo(e,t,i){return Ib(this,void 0,void 0,function*(){if((yield this._dialogService.show(Bt.Info,p("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[p("confirmDifferentSource.yes","Yes"),p("confirmDifferentSource.no","No")],{cancelId:1})).choice!==1)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return Ib(this,void 0,void 0,function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){const i=p({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new BS([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.groupId===e&&(!t||r.groupOrderqE(o,t))}function rF(o){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(o.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},o=o.with({fragment:""})),{selection:e,uri:o}}var QZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},XZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const no=Ye("ILanguageFeatureDebounceService");var jv;(function(o){const e=new WeakMap;let t=0;function i(n){let s=e.get(n);return s===void 0&&(s=++t,e.set(n,s)),s}o.of=i})(jv||(jv={}));class JZ{constructor(e,t,i,n,s,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=s,this._max=r,this._cache=new Dc(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>ZC(jv.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?Zn(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new ZZ(6),this._cache.set(i,n));const s=Zn(n.update(t),this._min,this._max);return qE(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new oF;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return Zn(e,this._min,this._max)}}let WD=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,s,r;const a=(n=i==null?void 0:i.min)!==null&&n!==void 0?n:50,l=(s=i==null?void 0:i.max)!==null&&s!==void 0?s:Math.pow(a,2),c=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,d=`${jv.of(e)},${a}${c?","+c:""}`;let h=this._data.get(d);return h||(h=new JZ(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(d,h)),h}_overallAverage(){const e=new oF;for(const t of this._data.values())e.update(t.default());return e.value}};WD=QZ([XZ(0,So)],WD);et(no,WD,!0);const v_=Ye("IWorkspaceEditService");class Qg{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(Cd.is(t))return Cd.lift(t);if($u.is(t))return $u.lift(t);throw new Error("Unsupported edit")})}}class Cd extends Qg{constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}static is(e){return e instanceof Cd?!0:Hn(e)&&_e.isUri(e.resource)&&Hn(e.textEdit)}static lift(e){return e instanceof Cd?e:new Cd(e.resource,e.textEdit,e.versionId,e.metadata)}}class $u extends Qg{constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}static is(e){return e instanceof $u?!0:Hn(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof $u?e:new $u(e.oldResource,e.newResource,e.options,e.metadata)}}const GE=Object.freeze({id:"editor",order:5,type:"object",title:p("editorConfigurationTitle","Editor"),scope:5}),Kv=Object.assign(Object.assign({},GE),{properties:{"editor.tabSize":{type:"number",default:sn.tabSize,minimum:1,markdownDescription:p("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:sn.insertSpaces,markdownDescription:p("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:sn.detectIndentation,markdownDescription:p("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:sn.trimAutoWhitespace,description:p("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:sn.largeFileOptimizations,description:p("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:p("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[p("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),p("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),p("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:p("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[p("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),p("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),p("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:p("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:p("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:p("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:["array","null"],default:null,description:p("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:p("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:p("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:p("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:p("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:p("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:p("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:p("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:p("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function eY(o){return typeof o.type<"u"||typeof o.anyOf<"u"}for(const o of ru){const e=o.schema;if(typeof e<"u")if(eY(e))Kv.properties[`editor.${o.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(Kv.properties[t]=e[t])}let Ab=null;function aF(){return Ab===null&&(Ab=Object.create(null),Object.keys(Kv.properties).forEach(o=>{Ab[o]=!0})),Ab}function tY(o){return aF()[`editor.${o}`]||!1}function iY(o){return aF()[`diffEditor.${o}`]||!1}const nY=zt.as(rl.Configuration);nY.registerConfiguration(Kv);class Ft{static insert(e,t){return{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}class Qn{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.frozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?zT(this.contents,e):this.contents}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?zT(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=La(this.contents),i=La(this.overrides),n=[...this.keys];for(const s of e)if(!s.isEmpty()){this.mergeContents(t,s.contents);for(const r of s.overrides){const[a]=i.filter(l=>Ss(l.identifiers,r.identifiers));a?(this.mergeContents(a.contents,r.contents),a.keys.push(...r.keys),a.keys=Qa(a.keys)):i.push(La(r))}for(const r of s.keys)n.indexOf(r)===-1&&n.push(r)}return new Qn(t,n,i)}freeze(){return this.frozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;const i={};for(const n of Qa([...Object.keys(this.contents),...Object.keys(t)])){let s=this.contents[n];const r=t[n];r&&(typeof s=="object"&&typeof r=="object"?(s=La(s),this.mergeContents(s,r)):s=r),i[n]=s}return new Qn(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&Hn(e[i])&&Hn(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=La(t[i])}}checkAndFreeze(e){return this.frozen&&!Object.isFrozen(e)?U8(e):e}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=s=>{s&&(i?this.mergeContents(i,s):i=La(s))};for(const s of this.overrides)Ss(s.identifiers,[e])?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),TI(this.contents,e,t,i=>{throw new Error(i)})}removeValue(e){this.removeKey(e)&&oW(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iC.identifiers).flat()).filter(C=>n.getOverrideValue(e,C)!==void 0);return{defaultValue:a,policyValue:l,applicationValue:c,userValue:d,userLocalValue:h,userRemoteValue:u,workspaceValue:g,workspaceFolderValue:f,memoryValue:_,value:b,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,policy:l!==void 0?{value:l}:void 0,application:c!==void 0?{value:c,override:t.overrideIdentifier?this.applicationConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:d!==void 0?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:h!==void 0?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:u!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:g!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:f!==void 0?{value:s==null?void 0:s.freeze().getValue(e),override:t.overrideIdentifier?s==null?void 0:s.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:_!==void 0?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:v.length?v:void 0}}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(e)!==void 0&&(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),s=this.parseConfigurationModel(e.user),r=this.parseConfigurationModel(e.workspace),a=e.folders.reduce((l,c)=>(l.set(_e.revive(c[0]),this.parseConfigurationModel(c[1])),l),new mn);return new N1(t,i,n,s,new Qn,r,a,new Qn,new mn,!1)}static parseConfigurationModel(e){return new Qn(e.contents,e.keys,e.overrides).freeze()}}class sY{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const s=new Set;e.keys.forEach(a=>s.add(a)),e.overrides.forEach(([,a])=>a.forEach(l=>s.add(l))),this.affectedKeys=[...s.values()];const r=new Qn;this.affectedKeys.forEach(a=>r.setValue(a,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=N1.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!$s(n,s)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=kP({[t]:!0},()=>{}),n;for(;typeof i=="object"&&(n=Object.keys(i)[0]);){if(e=e[n],!e)return!1;i=i[n]}return!0}}const oY=/^(cursor|delete)/;class rY extends H{constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new R),this._currentChord=null,this._currentChordChecker=new r_,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new xs,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ge.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(!!i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[n]=i.getDispatchParts();if(n===null)return this._log("\\ Keyboard event cannot be dispatched"),null;const s=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(s,r,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(p("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[s]=i.getParts();return this._ignoreSingleModifiers=new wu(s),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let s=null,r=null;if(i){const[d]=e.getSingleModifierDispatchParts();s=d,r=d}else[s]=e.getDispatchParts(),r=this._currentChord?this._currentChord.keypress:null;if(s===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,s);return this._logService.trace("KeybindingService#dispatch",l,c==null?void 0:c.commandId),c&&c.enterChord?(n=!0,this._enterChordMode(s,l),this._log("+ Entering chord mode..."),n):(this._currentChord&&(!c||!c.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${l}".`),this._notificationService.status(p("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,l),{hideAfter:10*1e3}),n=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(n=!0),this._log(`+ Invoking command ${c.commandId}.`),typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,d=>this._notificationService.warn(d)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,d=>this._notificationService.warn(d)),oY.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class wu{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}wu.EMPTY=new wu(null);const _i=Ye("keybindingService");class Lp{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const n of e){const s=n.command;s&&s.charAt(0)!=="-"&&this._defaultBoundCommands.set(s,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Lp.handleRemovals([].concat(e).concat(t));for(let n=0,s=this._keybindings.length;n"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(let n=i.length-1;n>=0;n--){const s=i[n];if(s.command===t.command)continue;const r=s.keypressParts.length>1,a=t.keypressParts.length>1;r&&a&&s.keypressParts[1]!==t.keypressParts[1]||Lp.whenIsEntirelyIncluded(s.when,t.when)&&this._removeFromLookupMap(s)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);typeof t>"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(let i=0,n=t.length;i"u"||i.length===0)return null;if(i.length===1)return i[0];for(let n=i.length-1;n>=0;n--){const s=i[n];if(t.contextMatchesRules(s.when))return s}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let n=null;if(t!==null){const r=this._map.get(t);if(typeof r>"u")return this._log("\\ No keybinding entries."),null;n=[];for(let a=0,l=r.length;a"u")return this._log("\\ No keybinding entries."),null;n=r}const s=this._findCommand(e,n);return s?t===null&&s.keypressParts.length>1&&s.keypressParts[1]!==null?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${s.command}, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!1,leaveChord:s.keypressParts.length>1,commandId:s.command,commandArgs:s.commandArgs,bubble:s.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(!!Lp._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function oM(o){return o?`${o.serialize()}`:"no when condition"}function rM(o){return o.extensionId?o.isBuiltinExtension?`built-in extension ${o.extensionId}`:`user extension ${o.extensionId}`:o.isDefault?"built-in":"user"}class aM{constructor(e,t,i,n,s,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?VD(e.getDispatchParts()):[],e&&this.keypressParts.length===0&&(this.keypressParts=VD(e.getSingleModifierDispatchParts())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=r,this.isBuiltinExtension=a}}function VD(o){const e=[];for(let t=0,i=o.length;tthis._getLabel(e))}getAriaLabel(){return aY.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:lY.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new GV(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class mm extends dY{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return sd.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":sd.toString(e.keyCode)}_getElectronAccelerator(e){return sd.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return mm.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=sd.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=pI[e];if(t!==-1)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof Md)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new Md(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=VD(e.map(n=>this._resolveSimpleUserBinding(n)));return i.length>0?[new mm(new av(i),t)]:[]}}const bg=Ye("labelService"),_m=Ye("contextService");function lM(o){const e=o;return typeof(e==null?void 0:e.id)=="string"&&_e.isUri(e.uri)}function hY(o){if(o.configuration)return{id:o.id,configPath:o.configuration};if(o.folders.length===1)return{id:o.id,uri:o.folders[0].uri}}class uY{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const HD="code-workspace";p("codeWorkspace","Code Workspace");var hi;(function(o){o.noSelection=p("noSelection","No selection"),o.singleSelectionRange=p("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),o.singleSelection=p("singleSelection","Line {0}, Column {1}"),o.multiSelectionRange=p("multiSelectionRange","{0} selections ({1} characters selected)"),o.multiSelection=p("multiSelection","{0} selections"),o.emergencyConfOn=p("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),o.openingDocs=p("openingDocs","Now opening the Editor Accessibility documentation page."),o.readonlyDiffEditor=p("readonlyDiffEditor"," in a read-only pane of a diff editor."),o.editableDiffEditor=p("editableDiffEditor"," in a pane of a diff editor."),o.readonlyEditor=p("readonlyEditor"," in a read-only code editor"),o.editableEditor=p("editableEditor"," in a code editor"),o.changeConfigToOnMac=p("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),o.changeConfigToOnWinLinux=p("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),o.auto_on=p("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),o.auto_off=p("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o.tabFocusModeOnMsg=p("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),o.tabFocusModeOnMsgNoKb=p("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),o.tabFocusModeOffMsg=p("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),o.tabFocusModeOffMsgNoKb=p("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),o.openDocMac=p("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),o.openDocWinLinux=p("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),o.outroMsg=p("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),o.showAccessibilityHelpAction=p("showAccessibilityHelpAction","Show Accessibility Help")})(hi||(hi={}));var zD;(function(o){o.inspectTokensAction=p("inspectTokens","Developer: Inspect Tokens")})(zD||(zD={}));var qv;(function(o){o.gotoLineActionLabel=p("gotoLineActionLabel","Go to Line/Column...")})(qv||(qv={}));var UD;(function(o){o.helpQuickAccessActionLabel=p("helpQuickAccess","Show all Quick Access Providers")})(UD||(UD={}));var Gv;(function(o){o.quickCommandActionLabel=p("quickCommandActionLabel","Command Palette"),o.quickCommandHelp=p("quickCommandActionHelp","Show And Run Commands")})(Gv||(Gv={}));var bm;(function(o){o.quickOutlineActionLabel=p("quickOutlineActionLabel","Go to Symbol..."),o.quickOutlineByCategoryActionLabel=p("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(bm||(bm={}));var Zv;(function(o){o.editorViewAccessibleLabel=p("editorViewAccessibleLabel","Editor content"),o.accessibilityHelpMessage=p("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Zv||(Zv={}));var $D;(function(o){o.toggleHighContrast=p("toggleHighContrast","Toggle High Contrast Theme")})($D||($D={}));var jD;(function(o){o.bulkEditServiceSummary=p("bulkEditServiceSummary","Made {0} edits in {1} files")})(jD||(jD={}));const lF=Ye("workspaceTrustManagementService");var en;(function(o){function e(s,r){if(s.start>=r.end||r.start>=s.end)return{start:0,end:0};const a=Math.max(s.start,r.start),l=Math.min(s.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}o.intersect=e;function t(s){return s.end-s.start<=0}o.isEmpty=t;function i(s,r){return!t(e(s,r))}o.intersects=i;function n(s,r){const a=[],l={start:s.start,end:Math.min(r.start,s.end)},c={start:Math.max(r.end,s.start),end:s.end};return t(l)||a.push(l),t(c)||a.push(c),a}o.relativeComplement=n})(en||(en={}));var Wl;(function(o){o[o.AVOID=0]="AVOID",o[o.ALIGN=1]="ALIGN"})(Wl||(Wl={}));function Su(o,e,t){const i=t.mode===Wl.ALIGN?t.offset:t.offset+t.size,n=t.mode===Wl.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=o-i?i:e<=n?n-e:Math.max(o-e,0):e<=n?n-e:e<=o-i?i:0}class vg extends H{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=H.None,this.toDisposeOnSetContainer=H.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=J(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,Pn(this.view),this.setContainer(e,t),this._register(Be(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=J(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const s=document.createElement("style");s.textContent=gY,this.shadowRoot.appendChild(s),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(J("slot"))}else this.container.appendChild(this.view);const n=new Q;vg.BUBBLE_UP_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!1)}))}),vg.BUBBLE_DOWN_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){var t,i;this.isVisible()&&this.hide(),Si(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2575",this.view.style.position=this.useFixedPosition?"fixed":"absolute",bs(this.view),this.toDisposeOnClean=e.render(this.view)||H.None,this.delegate=e,this.doLayout(),(i=(t=this.delegate).focus)===null||i===void 0||i.call(t)}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(Ur&&$I.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(l4(e)){const h=on(e),u=AH(e);t={top:h.top*u,left:h.left*u,width:h.width*u,height:h.height*u}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=co(this.view),n=iD(this.view),s=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,c;if(a===0){const h={offset:t.top-window.pageYOffset,size:t.height,position:s===0?0:1},u={offset:t.left,size:t.width,position:r===0?0:1,mode:Wl.ALIGN};l=Su(window.innerHeight,n,h)+window.pageYOffset,en.intersects({start:l,end:l+n},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),c=Su(window.innerWidth,i,u)}else{const h={offset:t.left,size:t.width,position:r===0?0:1},u={offset:t.top,size:t.height,position:s===0?0:1,mode:Wl.ALIGN};c=Su(window.innerWidth,i,h),en.intersects({start:c,end:c+i},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),l=Su(window.innerHeight,n,u)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(s===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const d=on(this.container);this.view.style.top=`${l-(this.useFixedPosition?on(this.view).top:d.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?on(this.view).left:d.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Pn(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Ga(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}vg.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];vg.BUBBLE_DOWN_EVENTS=["click"];const gY=` :host { all: initial; /* 1st rule so subsequent properties are reset. */ } @@ -184,7 +184,7 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; } -`;var fY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pY=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let KD=class extends H{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=H.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new vg(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?(t!==this.container||this.shadowRoot!==i)&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=i,this.contextView.show(e);const n=Be(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};KD=fY([pY(0,Yg)],KD);var cM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Mb="**",dM="/",y0="[/\\\\]",L0="[^/\\\\]",mY=/\//g;function hM(o,e){switch(o){case 0:return"";case 1:return`${L0}*?`;default:return`(?:${y0}|${L0}+${y0}${e?`|${y0}${L0}+`:""})*?`}}function uM(o,e){if(!o)return[];const t=[];let i=!1,n=!1,s="";for(const r of o){switch(r){case e:if(!i&&!n){t.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}s+=r}return s&&t.push(s),t}function c5(o){if(!o)return"";let e="";const t=uM(o,dM);if(t.every(i=>i===Mb))e=".*";else{let i=!1;t.forEach((n,s)=>{if(n===Mb){if(i)return;e+=hM(2,s===t.length-1)}else{let r=!1,a="",l=!1,c="";for(const d of n){if(d!=="}"&&r){a+=d;continue}if(l&&(d!=="]"||!c)){let h;d==="-"?h=d:(d==="^"||d==="!")&&!c?h="^":d===dM?h="":h=ys(d),c+=h;continue}switch(d){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{const u=`(?:${uM(a,",").map(g=>c5(g)).join("|")})`;e+=u,r=!1,a="";break}case"]":{e+="["+c+"]",l=!1,c="";break}case"?":e+=L0;continue;case"*":e+=hM(1);continue;default:e+=ys(d)}}sYE(a,e)).filter(a=>a!==zr),o),i=t.length;if(!i)return zr;if(i===1)return t[0];const n=function(a,l){for(let c=0,d=t.length;c!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function mM(o,e,t){const i=Br===gi.sep,n=i?o:o.replace(mY,Br),s=Br+n,r=gi.sep+o;let a;return t?a=function(l,c){return typeof l=="string"&&(l===n||l.endsWith(s)||!i&&(l===o||l.endsWith(r)))?e:null}:a=function(l,c){return typeof l=="string"&&(l===n||!i&&l===o)?e:null},a.allPaths=[(t?"*/":"./")+o],a}function kY(o){try{const e=new RegExp(`^${c5(o)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?o:null}}catch{return zr}}function xY(o,e,t){return!o||typeof e!="string"?!1:d5(o)(e,void 0,t)}function d5(o,e={}){if(!o)return fM;if(typeof o=="string"||IY(o)){const t=YE(o,e);if(t===zr)return fM;const i=function(n,s){return!!t(n,s)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return EY(o,e)}function IY(o){const e=o;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function EY(o,e){const t=h5(Object.getOwnPropertyNames(o).map(a=>NY(a,o[a],e)).filter(a=>a!==zr)),i=t.length;if(!i)return zr;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(d,h){let u;for(let g=0,f=t.length;gcM(this,void 0,void 0,function*(){for(const g of u){const f=yield g;if(typeof f=="string")return f}return null}))():null},l=t.find(d=>!!d.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=t.reduce((d,h)=>h.allPaths?d.concat(h.allPaths):d,[]);return c.length&&(a.allPaths=c),a}const n=function(a,l,c){let d,h;for(let u=0,g=t.length;ucM(this,void 0,void 0,function*(){for(const u of h){const g=yield u;if(typeof g=="string")return g}return null}))():null},s=t.find(a=>!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function NY(o,e,t){if(e===!1)return zr;const i=YE(o,t);if(i===zr)return zr;if(typeof e=="boolean")return i;if(e){const n=e.when;if(typeof n=="string"){const s=(r,a,l,c)=>{if(!c||!i(r,a))return null;const d=n.replace("$(basename)",l),h=c(d);return jL(h)?h.then(u=>u?o:null):h?o:null};return s.requiresSiblings=!0,s}}return i}function h5(o,e){const t=o.filter(a=>!!a.basenames);if(t.length<2)return o;const i=t.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let n;if(e){n=[];for(let a=0,l=i.length;a{const c=l.patterns;return c?a.concat(c):a},[]);const s=function(a,l){if(typeof a!="string")return null;if(!l){let d;for(d=a.length;d>0;d--){const h=a.charCodeAt(d-1);if(h===47||h===92)break}l=a.substr(d)}const c=i.indexOf(l);return c!==-1?n[c]:null};s.basenames=i,s.patterns=n,s.allBasenames=i;const r=o.filter(a=>!a.basenames);return r.push(s),r}let Cg=[],QE=[],u5=[];function Rb(o,e=!1){TY(o,!1,e)}function TY(o,e,t){const i=AY(o,e);Cg.push(i),i.userConfigured?u5.push(i):QE.push(i),t&&!i.userConfigured&&Cg.forEach(n=>{n.mime===i.mime||n.userConfigured||(i.extension&&n.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&n.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&n.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&n.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function AY(o,e){return{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:e,filenameLowercase:o.filename?o.filename.toLowerCase():void 0,extensionLowercase:o.extension?o.extension.toLowerCase():void 0,filepatternLowercase:o.filepattern?d5(o.filepattern.toLowerCase()):void 0,filepatternOnPath:o.filepattern?o.filepattern.indexOf(gi.sep)>=0:!1}}function MY(){Cg=Cg.filter(o=>o.userConfigured),QE=[]}function RY(o,e){return OY(o,e).map(t=>t.id)}function OY(o,e){let t;if(o)switch(o.scheme){case Me.file:t=o.fsPath;break;case Me.data:{t=cc.parseMetaData(o).get(cc.META_DATA_LABEL);break}case Me.vscodeNotebookCell:t=void 0;break;default:t=o.path}if(!t)return[{id:"unknown",mime:Vn.unknown}];t=t.toLowerCase();const i=fd(t),n=_M(t,i,u5);if(n)return[n,{id:Ks,mime:Vn.text}];const s=_M(t,i,QE);if(s)return[s,{id:Ks,mime:Vn.text}];if(e){const r=PY(e);if(r)return[r,{id:Ks,mime:Vn.text}]}return[{id:"unknown",mime:Vn.unknown}]}function _M(o,e,t){var i;let n,s,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){n=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const c=l.filepatternOnPath?o:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,c)&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(n)return n;if(s)return s;if(r)return r}function PY(o){if(LI(o)&&(o=o.substr(1)),o.length>0)for(let e=Cg.length-1;e>=0;e--){const t=Cg[e];if(!t.firstline)continue;const i=o.match(t.firstline);if(i&&i.length>0)return t}}const Ob=Object.prototype.hasOwnProperty,bM="vs.editor.nullLanguage";class FY{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(bM,0),this._register(Ks,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||bM}}class vm extends H{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,vm.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new FY,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(ig.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){vm.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},MY();const e=[].concat(ig.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(n=>{this._lowercaseNameMap[n.toLowerCase()]=i.identifier}),i.mimetypes.forEach(n=>{this._mimeTypesMap[n]=i.identifier})}),zt.as(rl.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Ob.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const a of t.extensions)Rb({id:i,mime:n,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)Rb({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)Rb({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);gB(l)||Rb({id:i,mime:n,firstline:l},this._warnOnOverwrite)}catch(l){Te(l)}}e.aliases.push(i);let s=null;if(typeof t.aliases<"u"&&Array.isArray(t.aliases)&&(t.aliases.length===0?s=[null]:s=t.aliases),s!==null)for(const a of s)!a||a.length===0||e.aliases.push(a);const r=s!==null&&s.length>0;if(!(r&&s[0]===null)){const a=(r?s[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?Ob.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Ob.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Ob.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return!e&&!t?[]:RY(e,t)}}vm.instanceCount=0;class Cm extends H{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new R),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new R({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,Cm.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new vm(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){Cm.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return VO(i,null)}createById(e){return new vM(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new vM(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Ks),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),Wt.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}Cm.instanceCount=0;class vM{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new R({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,(e=this._emitter)===null||e===void 0||e.fire(this.languageId))}}function CM(o){let e=o.definition;for(;e instanceof m;)e=e.definition;return`.codicon-${o.id}:before { content: '${e.fontCharacter}'; }`}const qD=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,VS=/(&)?(&)([^\s&])/g;var Yv;(function(o){o[o.Right=0]="Right",o[o.Left=1]="Left"})(Yv||(Yv={}));class ju extends Zr{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:a=>this.doGetActionViewItem(a,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...Ge||dn?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Q),this.initializeOrUpdateStyleSheet(e,{}),this._register(ft.addTarget(n)),G(n,ae.KEY_DOWN,a=>{new Rt(a).equals(2)&&a.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(G(n,ae.KEY_DOWN,a=>{const l=a.key.toLocaleLowerCase();if(this.mnemonics.has(l)){ut.stop(a,!0);const c=this.mnemonics.get(l);if(c.length===1&&(c[0]instanceof wM&&c[0].container&&this.focusItemByElement(c[0].container),c[0].onClick(a)),c.length>1){const d=c.shift();d&&d.container&&(this.focusItemByElement(d.container),c.push(d)),this.mnemonics.set(l,c)}}})),dn&&this._register(G(n,ae.KEY_DOWN,a=>{const l=new Rt(a);l.equals(14)||l.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),ut.stop(a,!0)):(l.equals(13)||l.equals(12))&&(this.focusedItem=0,this.focusPrevious(),ut.stop(a,!0))})),this._register(G(this.domNode,ae.MOUSE_OUT,a=>{const l=a.relatedTarget;Ga(l,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),a.stopPropagation())})),this._register(G(this.actionsList,ae.MOUSE_OVER,a=>{let l=a.target;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}})),this._register(ft.addTarget(this.actionsList)),this._register(G(this.actionsList,xt.Tap,a=>{let l=a.initialTarget;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}}));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new p_(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this._register(G(n,xt.Change,a=>{ut.stop(a,!0);const l=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:l-a.translationY})})),this._register(G(r,ae.MOUSE_UP,a=>{a.preventDefault()})),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(a=>{var l;return!((l=i.submenuIds)===null||l===void 0)&&l.has(a.id)?(console.warn(`Found submenu cycle: ${a.id}`),!1):!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(a=>!(a instanceof HS)).forEach((a,l,c)=>{a.updatePositionInSet(l+1,c.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(Gp(e)?this.styleSheet=Qs(e):(ju.globalStyleSheet||(ju.globalStyleSheet=Qs()),this.styleSheet=ju.globalStyleSheet)),this.styleSheet.textContent=WY(t,Gp(e))}style(e){const t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);const i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",s=e.borderColor?`1px solid ${e.borderColor}`:"",r="5px",a=e.shadowColor?`0 2px 8px ${e.shadowColor}`:"";t.style.outline=s,t.style.borderRadius=r,t.style.color=i,t.style.backgroundColor=n,t.style.boxShadow=a,this.viewItems&&this.viewItems.forEach(l=>{(l instanceof GD||l instanceof HS)&&l.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{!this.element||(this._register(G(this.element,ae.MOUSE_UP,n=>{if(ut.stop(n,!0),Ls){if(new Mr(n).rightButton)return;this.onClick(n)}else setTimeout(()=>{this.onClick(n)},0)})),this._register(G(this.element,ae.CONTEXT_MENU,n=>{ut.stop(n,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=q(this.element,J("a.action-menu-item")),this._action.id===ln.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=q(this.item,J("span.menu-item-check"+m.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=q(this.item,J("span.action-label")),this.options.label&&this.options.keybinding&&(q(this.item,J("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(!!this.label&&this.options.label){Si(this.label);let t=KE(this.getAction().label);if(t){const i=BY(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=qD.exec(t);if(n){t=_I(t),VS.lastIndex=0;let s=VS.exec(t);for(;s&&s[1];)s=VS.exec(t);const r=a=>a.replace(/&&/g,"&");s?this.label.append(WC(r(t.substr(0,s.index))," "),J("u",{"aria-hidden":"true"},s[3]),hP(r(t.substr(s.index+s[0].length))," ")):this.label.innerText=r(t).trim(),(e=this.item)===null||e===void 0||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.getAction().checked;this.item.classList.toggle("checked",!!e),e!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=t?t.toString():"")}style(e){this.menuStyle=e,this.applyStyle()}}class wM extends GD{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new Q),this.mouseOver=!1,this.expandDirection=n&&n.expandDirection!==void 0?n.expandDirection:Yv.Right,this.showScheduler=new mt(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new mt(()=>{this.element&&!Ga(Ru(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=q(this.item,J("span.submenu-indicator"+m.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(G(this.element,ae.KEY_UP,t=>{const i=new Rt(t);(i.equals(17)||i.equals(3))&&(ut.stop(t,!0),this.createSubmenu(!0))})),this._register(G(this.element,ae.KEY_DOWN,t=>{const i=new Rt(t);Ru()===this.item&&(i.equals(17)||i.equals(3))&&ut.stop(t,!0)})),this._register(G(this.element,ae.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(G(this.element,ae.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(G(this.element,ae.FOCUS_OUT,t=>{this.element&&!Ga(Ru(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))})))}updateEnabled(){}onClick(e){ut.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const s={top:0,left:0};return s.left=Su(e.width,t.width,{position:n===Yv.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left{new Rt(c).equals(15)&&(ut.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(G(this.submenuContainer,ae.KEY_DOWN,c=>{new Rt(c).equals(15)&&ut.stop(c,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){var e;if(super.applyStyle(),!this.menuStyle)return;const i=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=i?`${i}`:""),(e=this.parentData.submenu)===null||e===void 0||e.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class HS extends fm{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function BY(o){const e=qD,t=e.exec(o);if(!t)return o;const i=!t[1];return o.replace(e,i?"$2$3":"").trim()}function WY(o,e){let t=` +`;var fY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pY=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let KD=class extends H{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=H.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new vg(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?(t!==this.container||this.shadowRoot!==i)&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=i,this.contextView.show(e);const n=Be(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};KD=fY([pY(0,Yg)],KD);var cM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Mb="**",dM="/",y0="[/\\\\]",L0="[^/\\\\]",mY=/\//g;function hM(o,e){switch(o){case 0:return"";case 1:return`${L0}*?`;default:return`(?:${y0}|${L0}+${y0}${e?`|${y0}${L0}+`:""})*?`}}function uM(o,e){if(!o)return[];const t=[];let i=!1,n=!1,s="";for(const r of o){switch(r){case e:if(!i&&!n){t.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}s+=r}return s&&t.push(s),t}function cF(o){if(!o)return"";let e="";const t=uM(o,dM);if(t.every(i=>i===Mb))e=".*";else{let i=!1;t.forEach((n,s)=>{if(n===Mb){if(i)return;e+=hM(2,s===t.length-1)}else{let r=!1,a="",l=!1,c="";for(const d of n){if(d!=="}"&&r){a+=d;continue}if(l&&(d!=="]"||!c)){let h;d==="-"?h=d:(d==="^"||d==="!")&&!c?h="^":d===dM?h="":h=ys(d),c+=h;continue}switch(d){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{const u=`(?:${uM(a,",").map(g=>cF(g)).join("|")})`;e+=u,r=!1,a="";break}case"]":{e+="["+c+"]",l=!1,c="";break}case"?":e+=L0;continue;case"*":e+=hM(1);continue;default:e+=ys(d)}}sYE(a,e)).filter(a=>a!==zr),o),i=t.length;if(!i)return zr;if(i===1)return t[0];const n=function(a,l){for(let c=0,d=t.length;c!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function mM(o,e,t){const i=Br===gi.sep,n=i?o:o.replace(mY,Br),s=Br+n,r=gi.sep+o;let a;return t?a=function(l,c){return typeof l=="string"&&(l===n||l.endsWith(s)||!i&&(l===o||l.endsWith(r)))?e:null}:a=function(l,c){return typeof l=="string"&&(l===n||!i&&l===o)?e:null},a.allPaths=[(t?"*/":"./")+o],a}function kY(o){try{const e=new RegExp(`^${cF(o)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?o:null}}catch{return zr}}function xY(o,e,t){return!o||typeof e!="string"?!1:dF(o)(e,void 0,t)}function dF(o,e={}){if(!o)return fM;if(typeof o=="string"||IY(o)){const t=YE(o,e);if(t===zr)return fM;const i=function(n,s){return!!t(n,s)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return EY(o,e)}function IY(o){const e=o;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function EY(o,e){const t=hF(Object.getOwnPropertyNames(o).map(a=>NY(a,o[a],e)).filter(a=>a!==zr)),i=t.length;if(!i)return zr;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(d,h){let u;for(let g=0,f=t.length;gcM(this,void 0,void 0,function*(){for(const g of u){const f=yield g;if(typeof f=="string")return f}return null}))():null},l=t.find(d=>!!d.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=t.reduce((d,h)=>h.allPaths?d.concat(h.allPaths):d,[]);return c.length&&(a.allPaths=c),a}const n=function(a,l,c){let d,h;for(let u=0,g=t.length;ucM(this,void 0,void 0,function*(){for(const u of h){const g=yield u;if(typeof g=="string")return g}return null}))():null},s=t.find(a=>!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function NY(o,e,t){if(e===!1)return zr;const i=YE(o,t);if(i===zr)return zr;if(typeof e=="boolean")return i;if(e){const n=e.when;if(typeof n=="string"){const s=(r,a,l,c)=>{if(!c||!i(r,a))return null;const d=n.replace("$(basename)",l),h=c(d);return jL(h)?h.then(u=>u?o:null):h?o:null};return s.requiresSiblings=!0,s}}return i}function hF(o,e){const t=o.filter(a=>!!a.basenames);if(t.length<2)return o;const i=t.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let n;if(e){n=[];for(let a=0,l=i.length;a{const c=l.patterns;return c?a.concat(c):a},[]);const s=function(a,l){if(typeof a!="string")return null;if(!l){let d;for(d=a.length;d>0;d--){const h=a.charCodeAt(d-1);if(h===47||h===92)break}l=a.substr(d)}const c=i.indexOf(l);return c!==-1?n[c]:null};s.basenames=i,s.patterns=n,s.allBasenames=i;const r=o.filter(a=>!a.basenames);return r.push(s),r}let Cg=[],QE=[],uF=[];function Rb(o,e=!1){TY(o,!1,e)}function TY(o,e,t){const i=AY(o,e);Cg.push(i),i.userConfigured?uF.push(i):QE.push(i),t&&!i.userConfigured&&Cg.forEach(n=>{n.mime===i.mime||n.userConfigured||(i.extension&&n.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&n.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&n.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&n.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function AY(o,e){return{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:e,filenameLowercase:o.filename?o.filename.toLowerCase():void 0,extensionLowercase:o.extension?o.extension.toLowerCase():void 0,filepatternLowercase:o.filepattern?dF(o.filepattern.toLowerCase()):void 0,filepatternOnPath:o.filepattern?o.filepattern.indexOf(gi.sep)>=0:!1}}function MY(){Cg=Cg.filter(o=>o.userConfigured),QE=[]}function RY(o,e){return OY(o,e).map(t=>t.id)}function OY(o,e){let t;if(o)switch(o.scheme){case Me.file:t=o.fsPath;break;case Me.data:{t=cc.parseMetaData(o).get(cc.META_DATA_LABEL);break}case Me.vscodeNotebookCell:t=void 0;break;default:t=o.path}if(!t)return[{id:"unknown",mime:Vn.unknown}];t=t.toLowerCase();const i=fd(t),n=_M(t,i,uF);if(n)return[n,{id:Ks,mime:Vn.text}];const s=_M(t,i,QE);if(s)return[s,{id:Ks,mime:Vn.text}];if(e){const r=PY(e);if(r)return[r,{id:Ks,mime:Vn.text}]}return[{id:"unknown",mime:Vn.unknown}]}function _M(o,e,t){var i;let n,s,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){n=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const c=l.filepatternOnPath?o:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,c)&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(n)return n;if(s)return s;if(r)return r}function PY(o){if(LI(o)&&(o=o.substr(1)),o.length>0)for(let e=Cg.length-1;e>=0;e--){const t=Cg[e];if(!t.firstline)continue;const i=o.match(t.firstline);if(i&&i.length>0)return t}}const Ob=Object.prototype.hasOwnProperty,bM="vs.editor.nullLanguage";class FY{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(bM,0),this._register(Ks,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||bM}}class vm extends H{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,vm.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new FY,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(ig.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){vm.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},MY();const e=[].concat(ig.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(n=>{this._lowercaseNameMap[n.toLowerCase()]=i.identifier}),i.mimetypes.forEach(n=>{this._mimeTypesMap[n]=i.identifier})}),zt.as(rl.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Ob.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const a of t.extensions)Rb({id:i,mime:n,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)Rb({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)Rb({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);gB(l)||Rb({id:i,mime:n,firstline:l},this._warnOnOverwrite)}catch(l){Te(l)}}e.aliases.push(i);let s=null;if(typeof t.aliases<"u"&&Array.isArray(t.aliases)&&(t.aliases.length===0?s=[null]:s=t.aliases),s!==null)for(const a of s)!a||a.length===0||e.aliases.push(a);const r=s!==null&&s.length>0;if(!(r&&s[0]===null)){const a=(r?s[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?Ob.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Ob.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Ob.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return!e&&!t?[]:RY(e,t)}}vm.instanceCount=0;class Cm extends H{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new R),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new R({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,Cm.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new vm(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){Cm.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return VO(i,null)}createById(e){return new vM(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new vM(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Ks),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),Wt.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}Cm.instanceCount=0;class vM{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new R({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,(e=this._emitter)===null||e===void 0||e.fire(this.languageId))}}function CM(o){let e=o.definition;for(;e instanceof m;)e=e.definition;return`.codicon-${o.id}:before { content: '${e.fontCharacter}'; }`}const qD=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,VS=/(&)?(&)([^\s&])/g;var Yv;(function(o){o[o.Right=0]="Right",o[o.Left=1]="Left"})(Yv||(Yv={}));class ju extends Zr{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:a=>this.doGetActionViewItem(a,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...Ge||dn?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Q),this.initializeOrUpdateStyleSheet(e,{}),this._register(ft.addTarget(n)),G(n,ae.KEY_DOWN,a=>{new Rt(a).equals(2)&&a.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(G(n,ae.KEY_DOWN,a=>{const l=a.key.toLocaleLowerCase();if(this.mnemonics.has(l)){ut.stop(a,!0);const c=this.mnemonics.get(l);if(c.length===1&&(c[0]instanceof wM&&c[0].container&&this.focusItemByElement(c[0].container),c[0].onClick(a)),c.length>1){const d=c.shift();d&&d.container&&(this.focusItemByElement(d.container),c.push(d)),this.mnemonics.set(l,c)}}})),dn&&this._register(G(n,ae.KEY_DOWN,a=>{const l=new Rt(a);l.equals(14)||l.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),ut.stop(a,!0)):(l.equals(13)||l.equals(12))&&(this.focusedItem=0,this.focusPrevious(),ut.stop(a,!0))})),this._register(G(this.domNode,ae.MOUSE_OUT,a=>{const l=a.relatedTarget;Ga(l,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),a.stopPropagation())})),this._register(G(this.actionsList,ae.MOUSE_OVER,a=>{let l=a.target;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}})),this._register(ft.addTarget(this.actionsList)),this._register(G(this.actionsList,xt.Tap,a=>{let l=a.initialTarget;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}}));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new p_(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this._register(G(n,xt.Change,a=>{ut.stop(a,!0);const l=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:l-a.translationY})})),this._register(G(r,ae.MOUSE_UP,a=>{a.preventDefault()})),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(a=>{var l;return!((l=i.submenuIds)===null||l===void 0)&&l.has(a.id)?(console.warn(`Found submenu cycle: ${a.id}`),!1):!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(a=>!(a instanceof HS)).forEach((a,l,c)=>{a.updatePositionInSet(l+1,c.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(Gp(e)?this.styleSheet=Qs(e):(ju.globalStyleSheet||(ju.globalStyleSheet=Qs()),this.styleSheet=ju.globalStyleSheet)),this.styleSheet.textContent=WY(t,Gp(e))}style(e){const t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);const i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",s=e.borderColor?`1px solid ${e.borderColor}`:"",r="5px",a=e.shadowColor?`0 2px 8px ${e.shadowColor}`:"";t.style.outline=s,t.style.borderRadius=r,t.style.color=i,t.style.backgroundColor=n,t.style.boxShadow=a,this.viewItems&&this.viewItems.forEach(l=>{(l instanceof GD||l instanceof HS)&&l.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{!this.element||(this._register(G(this.element,ae.MOUSE_UP,n=>{if(ut.stop(n,!0),Ls){if(new Mr(n).rightButton)return;this.onClick(n)}else setTimeout(()=>{this.onClick(n)},0)})),this._register(G(this.element,ae.CONTEXT_MENU,n=>{ut.stop(n,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=q(this.element,J("a.action-menu-item")),this._action.id===ln.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=q(this.item,J("span.menu-item-check"+m.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=q(this.item,J("span.action-label")),this.options.label&&this.options.keybinding&&(q(this.item,J("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(!!this.label&&this.options.label){Si(this.label);let t=KE(this.getAction().label);if(t){const i=BY(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=qD.exec(t);if(n){t=_I(t),VS.lastIndex=0;let s=VS.exec(t);for(;s&&s[1];)s=VS.exec(t);const r=a=>a.replace(/&&/g,"&");s?this.label.append(WC(r(t.substr(0,s.index))," "),J("u",{"aria-hidden":"true"},s[3]),hP(r(t.substr(s.index+s[0].length))," ")):this.label.innerText=r(t).trim(),(e=this.item)===null||e===void 0||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.getAction().checked;this.item.classList.toggle("checked",!!e),e!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=t?t.toString():"")}style(e){this.menuStyle=e,this.applyStyle()}}class wM extends GD{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new Q),this.mouseOver=!1,this.expandDirection=n&&n.expandDirection!==void 0?n.expandDirection:Yv.Right,this.showScheduler=new mt(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new mt(()=>{this.element&&!Ga(Ru(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=q(this.item,J("span.submenu-indicator"+m.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(G(this.element,ae.KEY_UP,t=>{const i=new Rt(t);(i.equals(17)||i.equals(3))&&(ut.stop(t,!0),this.createSubmenu(!0))})),this._register(G(this.element,ae.KEY_DOWN,t=>{const i=new Rt(t);Ru()===this.item&&(i.equals(17)||i.equals(3))&&ut.stop(t,!0)})),this._register(G(this.element,ae.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(G(this.element,ae.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(G(this.element,ae.FOCUS_OUT,t=>{this.element&&!Ga(Ru(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))})))}updateEnabled(){}onClick(e){ut.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const s={top:0,left:0};return s.left=Su(e.width,t.width,{position:n===Yv.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left{new Rt(c).equals(15)&&(ut.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(G(this.submenuContainer,ae.KEY_DOWN,c=>{new Rt(c).equals(15)&&ut.stop(c,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){var e;if(super.applyStyle(),!this.menuStyle)return;const i=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=i?`${i}`:""),(e=this.parentData.submenu)===null||e===void 0||e.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class HS extends fm{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function BY(o){const e=qD,t=e.exec(o);if(!t)return o;const i=!t[1];return o.replace(e,i?"$2$3":"").trim()}function WY(o,e){let t=` .monaco-menu { font-size: 13px; border-radius: 5px; @@ -550,14 +550,14 @@ ${CM(m.menuSubmenu)} .monaco-scrollable-element > .scrollbar > .slider.active { background: ${r}; } - `)}return t}function Ao(o,e){const t=Object.create(null);for(const i in e){const n=e[i];n&&(t[i]=va(n,o))}return t}function XE(o,e,t){function i(){const n=Ao(o.getColorTheme(),e);typeof t=="function"?t(n):t.style(n)}return i(),o.onDidColorThemeChange(i)}function VY(o,e,t){return XE(e,{badgeBackground:(t==null?void 0:t.badgeBackground)||gu,badgeForeground:(t==null?void 0:t.badgeForeground)||fu,badgeBorder:We},o)}function Ud(o,e,t){return XE(e,Object.assign(Object.assign({},A1),t||{}),o)}const A1={listFocusBackground:tU,listFocusForeground:iU,listFocusOutline:nU,listActiveSelectionBackground:Ua,listActiveSelectionForeground:Pr,listActiveSelectionIconForeground:$f,listFocusAndSelectionOutline:sU,listFocusAndSelectionBackground:Ua,listFocusAndSelectionForeground:Pr,listInactiveSelectionBackground:oU,listInactiveSelectionIconForeground:aU,listInactiveSelectionForeground:rU,listInactiveFocusBackground:lU,listInactiveFocusOutline:cU,listHoverBackground:dU,listHoverForeground:hU,listDropBackground:uU,listSelectionOutline:Ot,listHoverOutline:Ot,listFilterWidgetBackground:gU,listFilterWidgetOutline:fU,listFilterWidgetNoMatchesOutline:pU,listFilterWidgetShadow:mU,treeIndentGuidesStroke:_U,tableColumnsBorder:bU,tableOddRowsBackgroundColor:vU,inputActiveOptionBorder:_v,inputActiveOptionForeground:vv,inputActiveOptionBackground:bv,inputBackground:g1,inputForeground:f1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE},HY={shadowColor:Ho,borderColor:CU,foregroundColor:wU,backgroundColor:SU,selectionForegroundColor:yU,selectionBackgroundColor:LU,selectionBorderColor:DU,separatorColor:kU,scrollbarShadow:Kg,scrollbarSliderBackground:rd,scrollbarSliderHoverBackground:ad,scrollbarSliderActiveBackground:ld};function zY(o,e,t){return XE(e,Object.assign(Object.assign({},HY),t),o)}class UY{constructor(e,t,i,n,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=s,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let i;const n=l4(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{const r=e.getMenuClassName?e.getMenuClassName():"";r&&(s.className+=" "+r),this.options.blockMouse&&(this.block=s.appendChild(J(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",G(this.block,ae.MOUSE_DOWN,c=>c.stopPropagation()));const a=new Q,l=e.actionRunner||new og;return l.onBeforeRun(this.onActionRun,this,a),l.onDidRun(this.onDidActionRun,this,a),i=new ju(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)}),a.add(zY(i,this.themeService)),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,a),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,a),a.add(G(window,ae.BLUR,()=>this.contextViewService.hideContextView(!0))),a.add(G(window,ae.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;const d=new Mr(c);let h=d.target;if(!d.rightButton){for(;h;){if(h===s)return;h=h.parentElement}this.contextViewService.hideContextView(!0)}})),qo(a,i)},focus:()=>{i==null||i.focus(!!e.autoSelectFirstItem)},onHide:s=>{var r;(r=e.onHide)===null||r===void 0||r.call(e,!!s),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},n,!!n)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!ea(e.error)&&this.notificationService.error(e.error)}}var $Y=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},If=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ZD=class extends H{constructor(e,t,i,n,s){super(),this._onDidShowContextMenu=new R,this._onDidHideContextMenu=new R,this.contextMenuHandler=new UY(i,e,t,n,s)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;(i=e.onHide)===null||i===void 0||i.call(e,t),this._onDidHideContextMenu.fire()}})),Ol.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};ZD=$Y([If(0,sr),If(1,di),If(2,vh),If(3,_i),If(4,Ct)],ZD);function Qv(o){let e=JSON.parse(o);return e=YD(e),e}function YD(o,e=0){if(!o||e>200)return o;if(typeof o=="object"){switch(o.$mid){case 1:return _e.revive(o);case 2:return new RegExp(o.source,o.flags);case 14:return new Date(o.source)}if(o instanceof UC||o instanceof Uint8Array)return o;if(Array.isArray(o))for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Jv=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ed=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let QD=class{constructor(e){this._commandService=e}open(e,t){return ed(this,void 0,void 0,function*(){if(!qE(e,Me.command))return!1;if(!(t!=null&&t.allowCommands))return!0;typeof e=="string"&&(e=_e.parse(e));let i=[];try{i=Qv(decodeURIComponent(e.query))}catch{try{i=Qv(e.query)}catch{}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0})}};QD=JE([Jv(0,ci)],QD);let XD=class{constructor(e){this._editorService=e}open(e,t){return ed(this,void 0,void 0,function*(){typeof e=="string"&&(e=_e.parse(e));const{selection:i,uri:n}=r5(e);return e=n,e.scheme===Me.file&&(e=fq(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:t!=null&&t.fromUserGesture?Xv.USER:Xv.API},t==null?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0})}};XD=JE([Jv(0,ct)],XD);let JD=class{constructor(e,t){this._openers=new Dn,this._validators=new Dn,this._resolvers=new Dn,this._resolvedUriTargets=new mn(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Dn,this._defaultExternalOpener={openExternal:i=>ed(this,void 0,void 0,function*(){return sM(i,Me.http,Me.https)?d4(i):window.location.href=i,!0})},this._openers.push({open:(i,n)=>ed(this,void 0,void 0,function*(){return(n==null?void 0:n.openExternal)||sM(i,Me.mailto,Me.http,Me.https,Me.vsls)?(yield this._doOpenExternal(i,n),!0):!1})}),this._openers.push(new QD(t)),this._openers.push(new XD(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return ed(this,void 0,void 0,function*(){const n=typeof e=="string"?_e.parse(e):e,s=(i=this._resolvedUriTargets.get(n))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!(yield r.shouldOpen(s,t)))return!1;for(const r of this._openers)if(yield r.open(e,t))return!0;return!1})}resolveExternalUri(e,t){return ed(this,void 0,void 0,function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch{}throw new Error("Could not resolve external URI: "+e.toString())})}_doOpenExternal(e,t){return ed(this,void 0,void 0,function*(){const i=typeof e=="string"?_e.parse(e):e;let n;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch{n=i}let s;if(typeof e=="string"&&i.toString()===n.toString()?s=e:s=encodeURI(n.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(yield a.openExternal(s,{sourceUri:i,preferredOpenerId:r},ze.None))return!0}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},ze.None)})}dispose(){this._validators.clear()}};JD=JE([Jv(0,ct),Jv(1,ci)],JD);var Vt;(function(o){o[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error"})(Vt||(Vt={}));(function(o){function e(r,a){return a-r}o.compare=e;const t=Object.create(null);t[o.Error]=p("sev.error","Error"),t[o.Warning]=p("sev.warning","Warning"),t[o.Info]=p("sev.info","Info");function i(r){return t[r]||""}o.toString=i;function n(r){switch(r){case Bt.Error:return o.Error;case Bt.Warning:return o.Warning;case Bt.Info:return o.Info;case Bt.Ignore:return o.Hint}}o.fromSeverity=n;function s(r){switch(r){case o.Error:return Bt.Error;case o.Warning:return Bt.Warning;case o.Info:return Bt.Info;case o.Hint:return Bt.Ignore}}o.toSeverity=s})(Vt||(Vt={}));var eC;(function(o){const e="";function t(n){return i(n,!0)}o.makeKey=t;function i(n,s){const r=[e];return n.source?r.push(n.source.replace("\xA6","\\\xA6")):r.push(e),n.code?typeof n.code=="string"?r.push(n.code.replace("\xA6","\\\xA6")):r.push(n.code.value.replace("\xA6","\\\xA6")):r.push(e),n.severity!==void 0&&n.severity!==null?r.push(Vt.toString(n.severity)):r.push(e),n.message&&s?r.push(n.message.replace("\xA6","\\\xA6")):r.push(e),n.startLineNumber!==void 0&&n.startLineNumber!==null?r.push(n.startLineNumber.toString()):r.push(e),n.startColumn!==void 0&&n.startColumn!==null?r.push(n.startColumn.toString()):r.push(e),n.endLineNumber!==void 0&&n.endLineNumber!==null?r.push(n.endLineNumber.toString()):r.push(e),n.endColumn!==void 0&&n.endColumn!==null?r.push(n.endColumn.toString()):r.push(e),r.push(e),r.join("\xA6")}o.makeKeyOptionalMessage=i})(eC||(eC={}));const na=Ye("markerService");var jY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class KY extends H{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Be(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let s=0;sthis._onModelAdded(i)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new KY(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===Me.inMemory||e.uri.scheme===Me.internal||e.uri.scheme===Me.vscode)&&((t=this._markerService)===null||t===void 0||t.read({resource:e.uri}).map(n=>n.owner).forEach(n=>this._markerService.remove(n,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(n=>({range:this._createDecorationRange(e.model,n),options:this._createDecorationOption(n)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=L.lift(t);if(t.severity===Vt.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const n=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(n===1||i.endColumn>=n)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new L(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0:!1}};ek=jY([SM(0,Ut),SM(1,na)],ek);class Dp{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new Dp(e,new tC(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new L(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Dp(this._startLineNumber,n),new Dp(this._startLineNumber+r,s)]}applyEdit(e,t){const[i,n,s]=Hd(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new B(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const s=i-t;this._startLineNumber-=s;return}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,s)}}class tC{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;ae||u===e&&f>=t)&&(ue||f===e&&b>=t){if(fs?_-=s-i:_=i;else if(g===t&&f===i)if(g===n&&_>s)_-=s-i;else{d=!0;continue}else if(gs)g===t?(f=i,_=f+(_-s)):(f=0,_=f+(_-s));else{d=!0;continue}else if(g>n){if(l===0&&!d){c=a;break}g-=l}else if(g===n&&f>=s)e&&g===0&&(f+=e,_+=e),g-=l,f-=s-i,_-=s-i;else throw new Error("Not possible!");const v=4*c;r[v]=g,r[v+1]=f,r[v+2]=_,r[v+3]=b,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,s,r){const a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let d=0;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let tk=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new Ia}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),s=this._hashTable.get(e,t,n);let r;if(s)r=s.metadata,this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let c=t;for(let h=0;c>0&&h>1;c>0&&this._logService.getLevel()===Vo.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const d=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof d>"u")r=2147483647;else{if(r=0,typeof d.italic<"u"){const h=(d.italic?1:0)<<11;r|=h|1}if(typeof d.bold<"u"){const h=(d.bold?2:0)<<11;r|=h|2}if(typeof d.underline<"u"){const h=(d.underline?4:0)<<11;r|=h|4}if(typeof d.strikethrough<"u"){const h=(d.strikethrough?8:0)<<11;r|=h|8}if(d.foreground){const h=d.foreground<<15;r|=h|16}r===0&&(r=2147483647)}}else this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r),this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};tk=qY([zS(1,Ct),zS(2,Ht),zS(3,So)],tk);function g5(o,e,t){const i=o.data,n=o.data.length/5|0,s=Math.max(Math.ceil(n/1024),400),r=[];let a=0,l=1,c=0;for(;ad&&i[5*C]===0;)C--;if(C-1===d){let w=h;for(;w+1x)e.warnOverlappingSemanticTokens(k,x+1);else{const F=e.getMetadata(I,O,t);F!==2147483647&&(f===0&&(f=k),u[g]=k-f,u[g+1]=x,u[g+2]=D,u[g+3]=F,g+=4,_=k,b=D)}l=k,c=x,a++}g!==u.length&&(u=u.subarray(0,g));const v=Dp.create(f,u);r.push(v)}return r}class GY{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class Ia{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const s=this._elements;this._currentLengthIndex++,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10?t[0]:[]}function _5(o,e,t,i,n){return gc(this,void 0,void 0,function*(){const s=JY(o,e),r=yield Promise.all(s.map(a=>gc(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?i:null,n)}catch(d){c=d,l=null}return(!l||!M1(l)&&!p5(l))&&(l=null),new XY(a,l,c)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null})}function eQ(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:null}class tQ{constructor(e,t){this.provider=e,this.tokens=t}}function iQ(o,e){return o.has(e)}function b5(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:[]}function eN(o,e,t,i){return gc(this,void 0,void 0,function*(){const n=b5(o,e),s=yield Promise.all(n.map(r=>gc(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){Pi(l),a=null}return(!a||!M1(a))&&(a=null),new tQ(r,a)})));for(const r of s)if(r.tokens)return r;return s.length>0?s[0]:null})}Xe.registerCommand("_provideDocumentSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de),s=eQ(n,i);return s?s[0].getLegend():o.get(ci).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Xe.registerCommand("_provideDocumentSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de);if(!m5(n,i))return o.get(ci).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const s=yield _5(n,i,null,null,ze.None);if(!s)return;const{provider:r,tokens:a}=s;if(!a||!M1(a))return;const l=f5({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l}));Xe.registerCommand("_provideDocumentRangeSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e);const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=b5(s,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!L.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=yield eN(s,n,L.lift(i),ze.None);if(!!a)return a.provider.getLegend()}));Xe.registerCommand("_provideDocumentRangeSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e),pt(L.isIRange(i));const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=yield eN(s,n,L.lift(i),ze.None);if(!(!r||!r.tokens))return f5({id:0,type:"full",data:r.tokens.data})}));var tN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yn=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function bl(o){return o.toString()}function LM(o){const e=new YC,t=o.createSnapshot();let i;for(;i=t.read();)e.update(i);return e.digest()}class nQ{constructor(e,t,i){this._modelEventListeners=new Q,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(n=>i(e,n)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageId)),this.model.setMode(e.languageId)}}const sQ=dn||Ge?1:2;class oQ{constructor(e,t,i,n,s,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let iC=class Xf extends H{constructor(e,t,i,n,s,r,a,l,c){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=n,this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new R),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new R),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new R),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new rQ(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new nk(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,c))}static _readModelOptions(e,t){var i;let n=sn.tabSize;if(e.editor&&typeof e.editor.tabSize<"u"){const g=parseInt(e.editor.tabSize,10);isNaN(g)||(n=g),n<1&&(n=1)}let s=n;if(e.editor&&typeof e.editor.indentSize<"u"&&e.editor.indentSize!=="tabSize"){const g=parseInt(e.editor.indentSize,10);isNaN(g)||(s=g),s<1&&(s=1)}let r=sn.insertSpaces;e.editor&&typeof e.editor.insertSpaces<"u"&&(r=e.editor.insertSpaces==="false"?!1:Boolean(e.editor.insertSpaces));let a=sQ;const l=e.eol;l===`\r + `)}return t}function Ao(o,e){const t=Object.create(null);for(const i in e){const n=e[i];n&&(t[i]=va(n,o))}return t}function XE(o,e,t){function i(){const n=Ao(o.getColorTheme(),e);typeof t=="function"?t(n):t.style(n)}return i(),o.onDidColorThemeChange(i)}function VY(o,e,t){return XE(e,{badgeBackground:(t==null?void 0:t.badgeBackground)||gu,badgeForeground:(t==null?void 0:t.badgeForeground)||fu,badgeBorder:We},o)}function Ud(o,e,t){return XE(e,Object.assign(Object.assign({},A1),t||{}),o)}const A1={listFocusBackground:tU,listFocusForeground:iU,listFocusOutline:nU,listActiveSelectionBackground:Ua,listActiveSelectionForeground:Pr,listActiveSelectionIconForeground:$f,listFocusAndSelectionOutline:sU,listFocusAndSelectionBackground:Ua,listFocusAndSelectionForeground:Pr,listInactiveSelectionBackground:oU,listInactiveSelectionIconForeground:aU,listInactiveSelectionForeground:rU,listInactiveFocusBackground:lU,listInactiveFocusOutline:cU,listHoverBackground:dU,listHoverForeground:hU,listDropBackground:uU,listSelectionOutline:Ot,listHoverOutline:Ot,listFilterWidgetBackground:gU,listFilterWidgetOutline:fU,listFilterWidgetNoMatchesOutline:pU,listFilterWidgetShadow:mU,treeIndentGuidesStroke:_U,tableColumnsBorder:bU,tableOddRowsBackgroundColor:vU,inputActiveOptionBorder:_v,inputActiveOptionForeground:vv,inputActiveOptionBackground:bv,inputBackground:g1,inputForeground:f1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE},HY={shadowColor:Ho,borderColor:CU,foregroundColor:wU,backgroundColor:SU,selectionForegroundColor:yU,selectionBackgroundColor:LU,selectionBorderColor:DU,separatorColor:kU,scrollbarShadow:Kg,scrollbarSliderBackground:rd,scrollbarSliderHoverBackground:ad,scrollbarSliderActiveBackground:ld};function zY(o,e,t){return XE(e,Object.assign(Object.assign({},HY),t),o)}class UY{constructor(e,t,i,n,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=s,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let i;const n=l4(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{const r=e.getMenuClassName?e.getMenuClassName():"";r&&(s.className+=" "+r),this.options.blockMouse&&(this.block=s.appendChild(J(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",G(this.block,ae.MOUSE_DOWN,c=>c.stopPropagation()));const a=new Q,l=e.actionRunner||new og;return l.onBeforeRun(this.onActionRun,this,a),l.onDidRun(this.onDidActionRun,this,a),i=new ju(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)}),a.add(zY(i,this.themeService)),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,a),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,a),a.add(G(window,ae.BLUR,()=>this.contextViewService.hideContextView(!0))),a.add(G(window,ae.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;const d=new Mr(c);let h=d.target;if(!d.rightButton){for(;h;){if(h===s)return;h=h.parentElement}this.contextViewService.hideContextView(!0)}})),qo(a,i)},focus:()=>{i==null||i.focus(!!e.autoSelectFirstItem)},onHide:s=>{var r;(r=e.onHide)===null||r===void 0||r.call(e,!!s),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},n,!!n)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!ea(e.error)&&this.notificationService.error(e.error)}}var $Y=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},If=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ZD=class extends H{constructor(e,t,i,n,s){super(),this._onDidShowContextMenu=new R,this._onDidHideContextMenu=new R,this.contextMenuHandler=new UY(i,e,t,n,s)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;(i=e.onHide)===null||i===void 0||i.call(e,t),this._onDidHideContextMenu.fire()}})),Ol.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};ZD=$Y([If(0,sr),If(1,di),If(2,vh),If(3,_i),If(4,Ct)],ZD);function Qv(o){let e=JSON.parse(o);return e=YD(e),e}function YD(o,e=0){if(!o||e>200)return o;if(typeof o=="object"){switch(o.$mid){case 1:return _e.revive(o);case 2:return new RegExp(o.source,o.flags);case 14:return new Date(o.source)}if(o instanceof UC||o instanceof Uint8Array)return o;if(Array.isArray(o))for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Jv=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ed=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let QD=class{constructor(e){this._commandService=e}open(e,t){return ed(this,void 0,void 0,function*(){if(!qE(e,Me.command))return!1;if(!(t!=null&&t.allowCommands))return!0;typeof e=="string"&&(e=_e.parse(e));let i=[];try{i=Qv(decodeURIComponent(e.query))}catch{try{i=Qv(e.query)}catch{}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0})}};QD=JE([Jv(0,ci)],QD);let XD=class{constructor(e){this._editorService=e}open(e,t){return ed(this,void 0,void 0,function*(){typeof e=="string"&&(e=_e.parse(e));const{selection:i,uri:n}=rF(e);return e=n,e.scheme===Me.file&&(e=fq(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:t!=null&&t.fromUserGesture?Xv.USER:Xv.API},t==null?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0})}};XD=JE([Jv(0,ct)],XD);let JD=class{constructor(e,t){this._openers=new Dn,this._validators=new Dn,this._resolvers=new Dn,this._resolvedUriTargets=new mn(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Dn,this._defaultExternalOpener={openExternal:i=>ed(this,void 0,void 0,function*(){return sM(i,Me.http,Me.https)?d4(i):window.location.href=i,!0})},this._openers.push({open:(i,n)=>ed(this,void 0,void 0,function*(){return(n==null?void 0:n.openExternal)||sM(i,Me.mailto,Me.http,Me.https,Me.vsls)?(yield this._doOpenExternal(i,n),!0):!1})}),this._openers.push(new QD(t)),this._openers.push(new XD(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return ed(this,void 0,void 0,function*(){const n=typeof e=="string"?_e.parse(e):e,s=(i=this._resolvedUriTargets.get(n))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!(yield r.shouldOpen(s,t)))return!1;for(const r of this._openers)if(yield r.open(e,t))return!0;return!1})}resolveExternalUri(e,t){return ed(this,void 0,void 0,function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch{}throw new Error("Could not resolve external URI: "+e.toString())})}_doOpenExternal(e,t){return ed(this,void 0,void 0,function*(){const i=typeof e=="string"?_e.parse(e):e;let n;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch{n=i}let s;if(typeof e=="string"&&i.toString()===n.toString()?s=e:s=encodeURI(n.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(yield a.openExternal(s,{sourceUri:i,preferredOpenerId:r},ze.None))return!0}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},ze.None)})}dispose(){this._validators.clear()}};JD=JE([Jv(0,ct),Jv(1,ci)],JD);var Vt;(function(o){o[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error"})(Vt||(Vt={}));(function(o){function e(r,a){return a-r}o.compare=e;const t=Object.create(null);t[o.Error]=p("sev.error","Error"),t[o.Warning]=p("sev.warning","Warning"),t[o.Info]=p("sev.info","Info");function i(r){return t[r]||""}o.toString=i;function n(r){switch(r){case Bt.Error:return o.Error;case Bt.Warning:return o.Warning;case Bt.Info:return o.Info;case Bt.Ignore:return o.Hint}}o.fromSeverity=n;function s(r){switch(r){case o.Error:return Bt.Error;case o.Warning:return Bt.Warning;case o.Info:return Bt.Info;case o.Hint:return Bt.Ignore}}o.toSeverity=s})(Vt||(Vt={}));var eC;(function(o){const e="";function t(n){return i(n,!0)}o.makeKey=t;function i(n,s){const r=[e];return n.source?r.push(n.source.replace("\xA6","\\\xA6")):r.push(e),n.code?typeof n.code=="string"?r.push(n.code.replace("\xA6","\\\xA6")):r.push(n.code.value.replace("\xA6","\\\xA6")):r.push(e),n.severity!==void 0&&n.severity!==null?r.push(Vt.toString(n.severity)):r.push(e),n.message&&s?r.push(n.message.replace("\xA6","\\\xA6")):r.push(e),n.startLineNumber!==void 0&&n.startLineNumber!==null?r.push(n.startLineNumber.toString()):r.push(e),n.startColumn!==void 0&&n.startColumn!==null?r.push(n.startColumn.toString()):r.push(e),n.endLineNumber!==void 0&&n.endLineNumber!==null?r.push(n.endLineNumber.toString()):r.push(e),n.endColumn!==void 0&&n.endColumn!==null?r.push(n.endColumn.toString()):r.push(e),r.push(e),r.join("\xA6")}o.makeKeyOptionalMessage=i})(eC||(eC={}));const na=Ye("markerService");var jY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class KY extends H{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Be(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let s=0;sthis._onModelAdded(i)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new KY(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===Me.inMemory||e.uri.scheme===Me.internal||e.uri.scheme===Me.vscode)&&((t=this._markerService)===null||t===void 0||t.read({resource:e.uri}).map(n=>n.owner).forEach(n=>this._markerService.remove(n,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(n=>({range:this._createDecorationRange(e.model,n),options:this._createDecorationOption(n)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=L.lift(t);if(t.severity===Vt.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const n=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(n===1||i.endColumn>=n)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new L(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0:!1}};ek=jY([SM(0,Ut),SM(1,na)],ek);class Dp{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new Dp(e,new tC(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new L(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Dp(this._startLineNumber,n),new Dp(this._startLineNumber+r,s)]}applyEdit(e,t){const[i,n,s]=Hd(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new B(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const s=i-t;this._startLineNumber-=s;return}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,s)}}class tC{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;ae||u===e&&f>=t)&&(ue||f===e&&b>=t){if(fs?_-=s-i:_=i;else if(g===t&&f===i)if(g===n&&_>s)_-=s-i;else{d=!0;continue}else if(gs)g===t?(f=i,_=f+(_-s)):(f=0,_=f+(_-s));else{d=!0;continue}else if(g>n){if(l===0&&!d){c=a;break}g-=l}else if(g===n&&f>=s)e&&g===0&&(f+=e,_+=e),g-=l,f-=s-i,_-=s-i;else throw new Error("Not possible!");const v=4*c;r[v]=g,r[v+1]=f,r[v+2]=_,r[v+3]=b,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,s,r){const a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let d=0;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let tk=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new Ia}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),s=this._hashTable.get(e,t,n);let r;if(s)r=s.metadata,this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let c=t;for(let h=0;c>0&&h>1;c>0&&this._logService.getLevel()===Vo.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const d=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof d>"u")r=2147483647;else{if(r=0,typeof d.italic<"u"){const h=(d.italic?1:0)<<11;r|=h|1}if(typeof d.bold<"u"){const h=(d.bold?2:0)<<11;r|=h|2}if(typeof d.underline<"u"){const h=(d.underline?4:0)<<11;r|=h|4}if(typeof d.strikethrough<"u"){const h=(d.strikethrough?8:0)<<11;r|=h|8}if(d.foreground){const h=d.foreground<<15;r|=h|16}r===0&&(r=2147483647)}}else this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r),this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};tk=qY([zS(1,Ct),zS(2,Ht),zS(3,So)],tk);function gF(o,e,t){const i=o.data,n=o.data.length/5|0,s=Math.max(Math.ceil(n/1024),400),r=[];let a=0,l=1,c=0;for(;ad&&i[5*C]===0;)C--;if(C-1===d){let w=h;for(;w+1x)e.warnOverlappingSemanticTokens(k,x+1);else{const F=e.getMetadata(I,O,t);F!==2147483647&&(f===0&&(f=k),u[g]=k-f,u[g+1]=x,u[g+2]=D,u[g+3]=F,g+=4,_=k,b=D)}l=k,c=x,a++}g!==u.length&&(u=u.subarray(0,g));const v=Dp.create(f,u);r.push(v)}return r}class GY{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class Ia{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const s=this._elements;this._currentLengthIndex++,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10?t[0]:[]}function _F(o,e,t,i,n){return gc(this,void 0,void 0,function*(){const s=JY(o,e),r=yield Promise.all(s.map(a=>gc(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?i:null,n)}catch(d){c=d,l=null}return(!l||!M1(l)&&!pF(l))&&(l=null),new XY(a,l,c)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null})}function eQ(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:null}class tQ{constructor(e,t){this.provider=e,this.tokens=t}}function iQ(o,e){return o.has(e)}function bF(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:[]}function eN(o,e,t,i){return gc(this,void 0,void 0,function*(){const n=bF(o,e),s=yield Promise.all(n.map(r=>gc(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){Pi(l),a=null}return(!a||!M1(a))&&(a=null),new tQ(r,a)})));for(const r of s)if(r.tokens)return r;return s.length>0?s[0]:null})}Xe.registerCommand("_provideDocumentSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de),s=eQ(n,i);return s?s[0].getLegend():o.get(ci).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Xe.registerCommand("_provideDocumentSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de);if(!mF(n,i))return o.get(ci).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const s=yield _F(n,i,null,null,ze.None);if(!s)return;const{provider:r,tokens:a}=s;if(!a||!M1(a))return;const l=fF({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l}));Xe.registerCommand("_provideDocumentRangeSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e);const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=bF(s,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!L.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=yield eN(s,n,L.lift(i),ze.None);if(!!a)return a.provider.getLegend()}));Xe.registerCommand("_provideDocumentRangeSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e),pt(L.isIRange(i));const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=yield eN(s,n,L.lift(i),ze.None);if(!(!r||!r.tokens))return fF({id:0,type:"full",data:r.tokens.data})}));var tN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yn=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function bl(o){return o.toString()}function LM(o){const e=new YC,t=o.createSnapshot();let i;for(;i=t.read();)e.update(i);return e.digest()}class nQ{constructor(e,t,i){this._modelEventListeners=new Q,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(n=>i(e,n)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageId)),this.model.setMode(e.languageId)}}const sQ=dn||Ge?1:2;class oQ{constructor(e,t,i,n,s,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let iC=class Xf extends H{constructor(e,t,i,n,s,r,a,l,c){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=n,this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new R),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new R),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new R),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new rQ(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new nk(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,c))}static _readModelOptions(e,t){var i;let n=sn.tabSize;if(e.editor&&typeof e.editor.tabSize<"u"){const g=parseInt(e.editor.tabSize,10);isNaN(g)||(n=g),n<1&&(n=1)}let s=n;if(e.editor&&typeof e.editor.indentSize<"u"&&e.editor.indentSize!=="tabSize"){const g=parseInt(e.editor.indentSize,10);isNaN(g)||(s=g),s<1&&(s=1)}let r=sn.insertSpaces;e.editor&&typeof e.editor.insertSpaces<"u"&&(r=e.editor.insertSpaces==="false"?!1:Boolean(e.editor.insertSpaces));let a=sQ;const l=e.eol;l===`\r `?a=2:l===` `&&(a=1);let c=sn.trimAutoWhitespace;e.editor&&typeof e.editor.trimAutoWhitespace<"u"&&(c=e.editor.trimAutoWhitespace==="false"?!1:Boolean(e.editor.trimAutoWhitespace));let d=sn.detectIndentation;e.editor&&typeof e.editor.detectIndentation<"u"&&(d=e.editor.detectIndentation==="false"?!1:Boolean(e.editor.detectIndentation));let h=sn.largeFileOptimizations;e.editor&&typeof e.editor.largeFileOptimizations<"u"&&(h=e.editor.largeFileOptimizations==="false"?!1:Boolean(e.editor.largeFileOptimizations));let u=sn.bracketPairColorizationOptions;return((i=e.editor)===null||i===void 0?void 0:i.bracketPairColorization)&&typeof e.editor.bracketPairColorization=="object"&&(u={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:s,insertSpaces:r,detectIndentation:d,defaultEOL:a,trimAutoWhitespace:c,largeFileOptimizations:h,bracketPairColorizationOptions:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&typeof i=="string"&&i!=="auto"?i:Os===3||Os===2?` `:`\r -`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){let n=this._modelCreationOptionsByLanguageAndResource[e+t];if(!n){const s=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._getEOL(t,e);n=Xf._readModelOptions({editor:s,eol:r},i),this._modelCreationOptionsByLanguageAndResource[e+t]=n}return n}_updateModelOptions(){const e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const t=Object.keys(this._models);for(let i=0,n=t.length;ie){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,n)=>i.time-n.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),r=new il(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(bl(i))){const c=this._removeDisposedModel(i),d=this._undoRedoService.getElements(i),h=LM(r)===c.sha1;if(h||c.sharesUndoRedoStack){for(const u of d.past)ka(u)&&u.matchesResource(i)&&u.setModel(r);for(const u of d.future)ka(u)&&u.matchesResource(i)&&u.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,u=>ka(u)&&u.matchesResource(i)),h&&(r._overwriteVersionId(c.versionId),r._overwriteAlternativeVersionId(c.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(c.initialUndoRedoSnapshot))}else c.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(c.initialUndoRedoSnapshot)}const a=bl(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new nQ(r,c=>this._onWillDispose(c),(c,d)=>this._onDidChangeLanguage(c,d));return this._models[a]=l,l}createModel(e,t,i,n=!1){let s;return t?(s=this._createModelData(e,t.languageId,i,n),this.setMode(s.model,t)):s=this._createModelData(e,Ks,i,n),this._onModelAdded.fire(s.model),s.model}setMode(e,t){if(!t)return;const i=this._models[bl(e.uri)];!i||i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||l.future.length>0){for(const c of l.past)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of l.future)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=Xf.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(s)if(!n&&r>a){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,l=>ka(l)&&l.matchesResource(e.uri)),this._insertDisposedModel(new oQ(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,LM(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!n){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Xf._setModelOptionsForModel(e,r,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}};iC.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;iC=tN([yn(0,ot),yn(1,VP),yn(2,Ct),yn(3,So),yn(4,D1),yn(5,Ht),yn(6,si),yn(7,no),yn(8,de)],iC);const iN="editor.semanticHighlighting";function ik(o,e,t){var i;const n=(i=t.getValue(iN,{overrideIdentifier:o.getLanguageId(),resource:o.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}let nk=class extends H{constructor(e,t,i,n,s,r){super(),this._watchers=Object.create(null),this._semanticStyling=e;const a=d=>{this._watchers[d.uri.toString()]=new wm(d,this._semanticStyling,i,s,r)},l=(d,h)=>{h.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(const d of t.getModels()){const h=this._watchers[d.uri.toString()];ik(d,i,n)?h||a(d):h&&l(d,h)}};this._register(t.onModelAdded(d=>{ik(d,i,n)&&a(d)})),this._register(t.onModelRemoved(d=>{const h=this._watchers[d.uri.toString()];h&&l(d,h)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(iN)&&c()})),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};nk=tN([yn(1,Ut),yn(2,Ct),yn(3,ot),yn(4,no),yn(5,de)],nk);class rQ extends H{constructor(e,t,i){super(),this._themeService=e,this._languageService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new tk(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class aQ{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let wm=class qc extends H{constructor(e,t,i,n,s){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=t,this._provider=s.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:qc.REQUEST_MIN_DELAY,max:qc.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new mt(()=>this._fetchDocumentSemanticTokensNow(),qc.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{nt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!m5(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}const e=new Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=_5(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const s=[],r=this._model.onDidChangeContent(l=>{s.push(l)}),a=new $n(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,s);else{const{provider:c,tokens:d}=l,h=this._semanticStyling.get(c);this._setDocumentSemanticTokens(c,d||null,h,s)}},l=>{l&&(ea(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||Te(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),s.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let r=0;r{n.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),r();return}if(p5(t)){if(!s){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:s.data};else{let a=0;for(const u of t.edits)a+=(u.data?u.data.length:0)-u.deleteCount;const l=s.data,c=new Uint32Array(l.length+a);let d=l.length,h=c.length;for(let u=t.edits.length-1;u>=0;u--){const g=t.edits[u];if(g.start>l.length){i.warnInvalidEditStart(s.resultId,t.resultId,u,g.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}const f=d-(g.start+g.deleteCount);f>0&&(qc._copy(l,d-f,c,h-f,f),h-=f),g.data&&(qc._copy(g.data,0,c,h-g.data.length,g.data.length),h-=g.data.length),d=g.start}d>0&&qc._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(M1(t)){this._currentDocumentResponse=new aQ(e,t.resultId,t.data);const a=g5(t,i,this._model.getLanguageId());if(n.length>0)for(const l of n)for(const c of a)for(const d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}};wm.REQUEST_MIN_DELAY=300;wm.REQUEST_MAX_DELAY=2e3;wm=tN([yn(2,Ct),yn(3,no),yn(4,de)],wm);const lQ=new RegExp(`(\\\\)?\\$\\((${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?)\\)`,"g");function wd(o){const e=new Array;let t,i=0,n=0;for(;(t=lQ.exec(o))!==null;){n=t.index||0,e.push(o.substring(i,n)),i=(t.index||0)+t[0].length;const[,s,r]=t;e.push(s?`$(${r})`:cQ({id:r}))}return i{this._register(G(this._element,i,n=>{if(!this.enabled){ut.stop(n);return}this._onDidClick.fire(n)}))}),this._register(G(this._element,ae.KEY_DOWN,i=>{const n=new Rt(i);let s=!1;this.enabled&&(n.equals(3)||n.equals(10))?(this._onDidClick.fire(i),s=!0):n.equals(9)&&(this._element.blur(),s=!0),s&&ut.stop(n,!0)})),this._register(G(this._element,ae.MOUSE_OVER,i=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(G(this._element,ae.MOUSE_OUT,i=>{this.applyStyles()})),this.focusTracker=this._register(Od(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;this.options.secondary?e=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?oc(this._element,...wd(e)):this._element.textContent=e,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}const hQ={badgeBackground:W.fromHex("#4D4D4D"),badgeForeground:W.fromHex("#FFFFFF")};class sk{constructor(e,t){this.count=0,this.options=t||Object.create(null),Jr(this.options,hQ,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=q(e,J(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=Vs(this.countFormat,this.count),this.element.title=Vs(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}const kM="done",xM="active",US="infinite",$S="infinite-long-running",IM="discrete",uQ={progressBarBackground:W.fromHex("#0E70C0")};class R1 extends H{constructor(e,t){super(),this.options=t||Object.create(null),Jr(this.options,uQ,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new mt(()=>bs(this.element),0)),this.longRunningScheduler=this._register(new mt(()=>this.infiniteLongRunning(),R1.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(xM,US,$S,IM),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(kM),this.element.classList.contains(US)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(IM,kM,$S),this.element.classList.add(xM,US),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add($S)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}R1.LONG_RUNNING_INFINITE_THRESHOLD=1e4;class nN{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const v5=new nN("id#");const jS={},gQ=new nN("quick-input-button-icon-");function ok(o){if(!o)return;let e;const t=o.dark.toString();return jS[t]?e=jS[t]:(e=gQ.nextId(),nD(`.${e}, .hc-light .${e}`,`background-image: ${Pd(o.light||o.dark)}`),nD(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${Pd(o.dark)}`),jS[t]=e),e}const fQ={ctrlCmd:!1,alt:!1};var Sm;(function(o){o[o.Blur=1]="Blur",o[o.Gesture=2]="Gesture",o[o.Other=3]="Other"})(Sm||(Sm={}));var To;(function(o){o[o.NONE=0]="NONE",o[o.FIRST=1]="FIRST",o[o.SECOND=2]="SECOND",o[o.LAST=3]="LAST"})(To||(To={}));function pQ(o,e={}){const t=sN(e);return t.textContent=o,t}function C5(o,e={}){const t=sN(e);return w5(t,_Q(o,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function sN(o){const e=o.inline?"span":"div",t=document.createElement(e);return o.className&&(t.className=o.className),t}class mQ{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function w5(o,e,t,i){let n;if(e.type===2)n=document.createTextNode(e.content||"");else if(e.type===3)n=document.createElement("b");else if(e.type===4)n=document.createElement("i");else if(e.type===7&&i)n=document.createElement("code");else if(e.type===5&&t){const s=document.createElement("a");t.disposables.add(ki(s,"click",r=>{t.callback(String(e.index),r)})),n=s}else e.type===8?n=document.createElement("br"):e.type===1&&(n=o);n&&o!==n&&o.appendChild(n),n&&Array.isArray(e.children)&&e.children.forEach(s=>{w5(n,s,t,i)})}function _Q(o,e){const t={type:1,children:[]};let i=0,n=t;const s=[],r=new mQ(o);for(;!r.eos();){let a=r.next();const l=a==="\\"&&rk(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&bQ(a,e)&&a===r.peek()){r.advance(),n.type===2&&(n=s.pop());const c=rk(a,e);if(n.type===c||n.type===5&&c===6)n=s.pop();else{const d={type:c,children:[]};c===5&&(d.index=i,i++),n.children.push(d),s.push(n),n=d}}else if(a===` -`)n.type===2&&(n=s.pop()),n.children.push({type:8});else if(n.type!==2){const c={type:2,content:a};n.children.push(c),s.push(n),n=c}else n.content+=a}return n.type===2&&(n=s.pop()),t}function bQ(o,e){return rk(o,e)!==0}function rk(o,e){switch(o){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}class vQ{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class CQ{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new vQ(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}const Ef=J,wQ={inputBackground:W.fromHex("#3C3C3C"),inputForeground:W.fromHex("#CCCCCC"),inputValidationInfoBorder:W.fromHex("#55AAFF"),inputValidationInfoBackground:W.fromHex("#063B49"),inputValidationWarningBorder:W.fromHex("#B89500"),inputValidationWarningBackground:W.fromHex("#352A05"),inputValidationErrorBorder:W.fromHex("#BE1100"),inputValidationErrorBackground:W.fromHex("#5A1D1D")};class S5 extends yo{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new R),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),Jr(this.options,wQ,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(n=this.options.tooltip)!==null&&n!==void 0?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=q(e,Ef(".monaco-inputbox.idle"));const s=this.options.flexibleHeight?"textarea":"input",r=q(this.element,Ef(".ibwrapper"));if(this.input=q(r,Ef(s+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=q(r,Ef("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new iF(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),q(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(c=>this.input.scrollTop=c.scrollTop));const a=this._register(new bt(document,"selectionchange")),l=ge.filter(a.event,()=>{const c=document.getSelection();return(c==null?void 0:c.anchorNode)===r});this._register(l(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new Zr(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:iD(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return co(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const i=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=i+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e==null?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=co(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:n=>{if(!this.message)return null;e=q(n,Ef(".monaco-inputbox-container")),t();const s={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?C5(this.message.content,s):pQ(this.message.content,s);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",q(e,r),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=p("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=p("alertWarningMessage","Warning: {0}",this.message.content):i=p("alertInfoMessage","Info: {0}",this.message.content),Gi(i),this.state="open"}_hideMessage(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText="\xA0",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=iD(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;i!==null&&n!==null&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class y5 extends S5{constructor(e,t,i){const n=p({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history"]},"for history"),s=` or \u21C5 ${n}`,r=` (\u21C5 ${n})`;super(e,t,i),this._onDidFocus=this._register(new R),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this.history=new CQ(i.history,100);const a=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(s)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const l=this.placeholder.endsWith(")")?s:r,c=this.placeholder+l;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=c:this.setPlaceHolder(c)}};this.observer=new MutationObserver((l,c)=>{l.forEach(d=>{d.target.textContent||a()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>a()),this.onblur(this.input,()=>{const l=c=>{if(this.placeholder.endsWith(c)){const d=this.placeholder.slice(0,this.placeholder.length-c.length);return i.showPlaceholderOnFocus?this.placeholder=d:this.setPlaceHolder(d),!0}else return!1};l(r)||l(s)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,dv(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,dv(this.value))}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}const SQ=J;class yQ extends H{constructor(e){super(),this.parent=e,this.onKeyDown=t=>G(this.inputBox.inputElement,ae.KEY_DOWN,i=>{t(new Rt(i))}),this.onMouseDown=t=>G(this.inputBox.inputElement,ae.MOUSE_DOWN,i=>{t(new Mr(i))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=q(this.parent,SQ(".quick-input-box")),this.inputBox=this._register(new S5(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return this.inputBox.inputElement.type==="password"}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Bt.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Bt.Info?1:e===Bt.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Bt.Info?1:e===Bt.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}class $d{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=q(e,J("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=$d.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&$s(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n=s===`\r -`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=n),a.end>=r&&(a.end+=n));return i+=n,"\u23CE"})}}class KS{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class nC extends H{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new KS(q(e,J(".monaco-icon-label")))),this.labelContainer=q(this.domNode.element,J(".monaco-icon-label-container"));const i=q(this.labelContainer,J("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new KS(q(this.labelContainer,J("span.monaco-icon-description-container")))),(t==null?void 0:t.supportHighlights)||(t==null?void 0:t.supportIcons)?this.nameNode=new kQ(i,!!t.supportIcons):this.nameNode=new LQ(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new $d(q(this.descriptionContainer.element,J("span.label-description")),{supportIcons:!!t.supportIcons}):this.descriptionNodeFactory=()=>this._register(new KS(q(this.descriptionContainer.element,J("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof $d?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)bZ(e,t);else{const n=zF(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class LQ{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=q(this.container,J("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const s={start:i,end:i+n.length},r=t.map(a=>en.intersect(s,a)).filter(a=>!en.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=s.end+e.length,r})}class kQ{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new $d(q(this.container,J("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=DQ(e,i,t==null?void 0:t.matches);for(let s=0;s{const o=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:o,collatorIsNumeric:o.resolvedOptions().numeric}});new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0})}));new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function xQ(o,e,t=!1){const i=o||"",n=e||"",s=EM.value.collator.compare(i,n);return EM.value.collatorIsNumeric&&s===0&&i!==n?in.length)return 1}return 0}var L5=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},NQ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const br=J;class TQ{constructor(e){this.hidden=!1,this._onChecked=new R,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class C_{get templateId(){return C_.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=q(e,br(".quick-input-list-entry"));const i=q(t.entry,br("label.quick-input-list-label"));t.toDisposeTemplate.push(ki(i,ae.CLICK,c=>{t.checkbox.offsetParent||c.preventDefault()})),t.checkbox=q(i,br("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(ki(t.checkbox,ae.CHANGE,c=>{t.element.checked=t.checkbox.checked}));const n=q(i,br(".quick-input-list-rows")),s=q(n,br(".quick-input-list-row")),r=q(n,br(".quick-input-list-row"));t.label=new nC(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=q(s,br(".quick-input-list-entry-keybinding"));t.keybinding=new oN(a,Os);const l=q(r,br(".quick-input-list-label-meta"));return t.detail=new nC(l,{supportHighlights:!0,supportIcons:!0}),t.separator=q(t.entry,br(".quick-input-list-separator")),t.actionBar=new Zr(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(c=>i.checkbox.checked=c));const{labelHighlights:n,descriptionHighlights:s,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=s||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((c,d)=>{let h=c.iconClass||(c.iconPath?ok(c.iconPath):void 0);c.alwaysVisible&&(h=h?`${h} always-visible`:"always-visible");const u=new is(`id-${d}`,"",h,!0,()=>NQ(this,void 0,void 0,function*(){e.fireButtonTriggered({button:c,item:e.item})}));return u.tooltip=c.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=nt(e.toDisposeElement),e.toDisposeTemplate=nt(e.toDisposeTemplate)}}C_.ID="listelement";class AQ{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return C_.ID}}var oi;(function(o){o[o.First=1]="First",o[o.Second=2]="Second",o[o.Last=3]="Last",o[o.Next=4]="Next",o[o.Previous=5]="Previous",o[o.NextPage=6]="NextPage",o[o.PreviousPage=7]="PreviousPage"})(oi||(oi={}));class rN{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new R,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new R,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new R,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new R,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new R,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new R,this.onKeyDown=this._onKeyDown.event,this._onLeave=new R,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=q(this.parent,br(".quick-input-list"));const n=new AQ,s=new OQ;this.list=i.createList("QuickInput",this.container,n,[new C_],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Rt(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(Ge?r.metaKey:r.ctrlKey)&&this.list.setFocus(Cn(this.list.length));break;case 16:{const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break}case 18:{const l=this.list.getFocus();l.length===1&&l[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(G(this.container,ae.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return ge.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=nt(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,s)=>{var r,a,l;if(n.type!=="separator"){const c=s&&e[s-1],d=n.label&&n.label.replace(/\r?\n/g," "),h=Wh(d).text.trim(),u=n.meta&&n.meta.replace(/\r?\n/g," "),g=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),_=n.ariaLabel||[d,g,f].map(v=>sB(v)).filter(v=>!!v).join(", "),b=this.parent.classList.contains("show-checkboxes");i.push(new TQ({hasCheckbox:b,index:s,item:n,saneLabel:d,saneSortLabel:h,saneMeta:u,saneAriaLabel:_,saneDescription:g,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:c&&c.type==="separator"?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,s)=>(i.set(n.item,s),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===oi.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=oi.First),e===oi.Previous&&this.list.getFocus()[0]===0&&(e=oi.Last),e===oi.Second&&this.list.length<2&&(e=oi.First),e){case oi.First:this.list.focusFirst();break;case oi.Second:this.list.focusNth(1);break;case oi.Last:this.list.focusLast();break;case oi.Next:this.list.focusNext();break;case oi.Previous:this.list.focusPrevious();break;case oi.NextPage:this.list.focusNextPage();break;case oi.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;const t=e;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(n=>{n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!1;const s=n.index&&this.inputElements[n.index-1];n.separator=s&&s.type==="separator"?s:void 0});else{let n;this.elements.forEach(s=>{let r;this.matchOnLabelMode==="fuzzy"?r=this.matchOnLabel?Wn(Db(e,Wh(s.saneLabel))):void 0:r=this.matchOnLabel?Wn(MQ(t,Wh(s.saneLabel))):void 0;const a=this.matchOnDescription?Wn(Db(e,Wh(s.saneDescription||""))):void 0,l=this.matchOnDetail?Wn(Db(e,Wh(s.saneDetail||""))):void 0,c=this.matchOnMeta?Wn(Db(e,Wh(s.saneMeta||""))):void 0;if(r||a||l||c?(s.labelHighlights=r,s.descriptionHighlights=a,s.detailHighlights=l,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item.alwaysShow),s.separator=void 0,!this.sortByLabel){const d=s.index&&this.inputElements[s.index-1];n=d&&d.type==="separator"?d:n,n&&!s.hidden&&(s.separator=n,n=void 0)}})}const i=this.elements.filter(n=>!n.hidden);if(this.sortByLabel&&e){const n=e.toLowerCase();i.sort((s,r)=>RQ(s,r,n))}return this.elementsToIndexes=i.reduce((n,s,r)=>(n.set(s.item,r),n),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=nt(this.elementDisposables),this.disposables=nt(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}L5([pi],rN.prototype,"onDidChangeFocus",null);L5([pi],rN.prototype,"onDidChangeSelection",null);function MQ(o,e){const{text:t,iconOffsets:i}=e;if(!i||i.length===0)return NM(o,t);const n=WC(t," "),s=t.length-n.length,r=NM(o,n);if(r)for(const a of r){const l=i[a.start+s]+s;a.start+=l,a.end+=l}return r}function NM(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t!==-1?[{start:t,end:t+o.length}]:null}function RQ(o,e,t){const i=o.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:IQ(o.saneSortLabel,e.saneSortLabel,t)}class OQ{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){var t;return!((t=e.separator)===null||t===void 0)&&t.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(!!e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}var TM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const ds=J,ak={iconClass:m.quickInputBack.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class O1 extends H{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=O1.noPromptMessage,this._severity=Bt.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new R),this.onDidHideEmitter=this._register(new R),this.onDisposeEmitter=this._register(new R),this.visibleDisposables=this._register(new Q),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!Ur;this._ignoreFocusOut=e&&!Ur,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){!this.visible||this.ui.hide()}didHide(e=Sm.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new xs,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const n=this.buttons.filter(r=>r===ak);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const s=this.buttons.filter(r=>r!==ak);this.ui.rightActionBar.push(s.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,oc(this.ui.message,...wd(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Bt.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}O1.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ym extends O1{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new R),this.onWillAcceptEmitter=this._register(new R),this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?To.NONE:To.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new R),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new R),this.onDidTriggerItemButtonEmitter=this._register(new R),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?fQ:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(oi.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(oi.Next),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(oi.Previous):this.ui.list.focus(oi.Last),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 12:this.ui.list.focus(oi.NextPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 11:this.ui.list.focus(oi.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(oi.First),ut.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(oi.Last),ut.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Ss(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return G(this.ui.container,ae.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Rt(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(n||(n=this.placeholder||ym.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case To.NONE:this._itemActivation=To.FIRST;break;case To.SECOND:this.ui.list.focus(oi.Second),this._itemActivation=To.FIRST;break;case To.LAST:this.ui.list.focus(oi.Last),this._itemActivation=To.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(oi.First)),this.keepScrollPosition&&(this.scrollTop=e)}}ym.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class P1 extends H{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),this.onDidTriggerButtonEmitter=this._register(new R),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new R),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new R),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(G(window,ae.KEY_DOWN,e,!0)),this._register(G(window,ae.KEY_UP,e,!0)),this._register(G(window,ae.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=q(this.parentElement,ds(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Qs(e),i=q(e,ds(".quick-input-titlebar")),n=this._register(new Zr(i));n.domNode.classList.add("quick-input-left-action-bar");const s=q(i,ds(".quick-input-title")),r=this._register(new Zr(i));r.domNode.classList.add("quick-input-right-action-bar");const a=q(e,ds(".quick-input-description")),l=q(e,ds(".quick-input-header")),c=q(l,ds("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",p("quickInput.checkAll","Toggle all checkboxes")),this._register(ki(c,ae.CHANGE,O=>{const F=c.checked;y.setAllVisibleChecked(F)})),this._register(G(c,ae.CLICK,O=>{(O.x||O.y)&&g.setFocus()}));const d=q(l,ds(".quick-input-description")),h=q(l,ds(".quick-input-and-message")),u=q(h,ds(".quick-input-filter")),g=this._register(new yQ(u));g.setAttribute("aria-describedby",`${this.idPrefix}message`);const f=q(u,ds(".quick-input-visible-count"));f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true");const _=new sk(f,{countFormat:p({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),b=q(u,ds(".quick-input-count"));b.setAttribute("aria-live","polite");const v=new sk(b,{countFormat:p({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),C=q(l,ds(".quick-input-action")),w=new DM(C);w.label=p("ok","OK"),this._register(w.onDidClick(O=>{this.onDidAcceptEmitter.fire()}));const S=q(l,ds(".quick-input-action")),k=new DM(S);k.label=p("custom","Custom"),this._register(k.onDidClick(O=>{this.onDidCustomEmitter.fire()}));const x=q(h,ds(`#${this.idPrefix}message.quick-input-message`)),y=this._register(new rN(e,this.idPrefix+"list",this.options));this._register(y.onChangedAllVisibleChecked(O=>{c.checked=O})),this._register(y.onChangedVisibleCount(O=>{_.setCount(O)})),this._register(y.onChangedCheckedCount(O=>{v.setCount(O)})),this._register(y.onLeave(()=>{setTimeout(()=>{g.setFocus(),this.controller instanceof ym&&this.controller.canSelectMany&&y.clearFocus()},0)})),this._register(y.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new R1(e);D.getContainer().classList.add("quick-input-progress");const I=Od(e);return this._register(I),this._register(G(e,ae.FOCUS,O=>{this.previousFocusElement=O.relatedTarget instanceof HTMLElement?O.relatedTarget:void 0},!0)),this._register(I.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(Sm.Blur),this.previousFocusElement=void 0})),this._register(G(e,ae.FOCUS,O=>{g.setFocus()})),this._register(G(e,ae.KEY_DOWN,O=>{const F=new Rt(O);switch(F.keyCode){case 3:ut.stop(O,!0),this.onDidAcceptEmitter.fire();break;case 9:ut.stop(O,!0),this.hide(Sm.Gesture);break;case 2:if(!F.altKey&&!F.ctrlKey&&!F.metaKey){const z=[".action-label.codicon"];e.classList.contains("show-checkboxes")?z.push("input"):z.push("input[type=text]"),this.getUI().list.isDisplayed()&&z.push(".monaco-list");const j=e.querySelectorAll(z.join(", "));F.shiftKey&&F.target===j[0]?(ut.stop(O,!0),j[j.length-1].focus()):!F.shiftKey&&F.target===j[j.length-1]&&(ut.stop(O,!0),j[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:s,description1:a,description2:d,rightActionBar:r,checkAll:c,filterContainer:u,inputBox:g,visibleCountContainer:f,visibleCount:_,countContainer:b,count:v,okContainer:C,ok:w,message:x,customButtonContainer:S,customButton:k,list:y,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:O=>this.show(O),hide:()=>this.hide(),setVisibilities:O=>this.setVisibilities(O),setComboboxAccessibility:O=>this.setComboboxAccessibility(O),setEnabled:O=>this.setEnabled(O),setContextKey:O=>this.options.setContextKey(O)},this.updateStyles(),this.ui}pick(e,t={},i=ze.None){return new Promise((n,s)=>{let r=d=>{var h;r=n,(h=t.onKeyMods)===null||h===void 0||h.call(t,a.keyMods),n(d)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const d=a.activeItems[0];d&&(r(d),a.hide())}}),a.onDidChangeActive(d=>{const h=d[0];h&&t.onDidFocus&&t.onDidFocus(h)}),a.onDidChangeSelection(d=>{if(!a.canSelectMany){const h=d[0];h&&(r(h),a.hide())}}),a.onDidTriggerItemButton(d=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},d),{removeItem:()=>{const h=a.items.indexOf(d.item);if(h!==-1){const u=a.items.slice(),g=u.splice(h,1),f=a.activeItems.filter(b=>b!==g[0]),_=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,f&&(a.activeItems=f),a.keepScrollPosition=_}}}))),a.onDidChangeValue(d=>{l&&!d&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{nt(c),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([d,h])=>{l=h,a.busy=!1,a.items=d,a.canSelectMany&&(a.selectedItems=d.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,d=>{s(d),a.hide()})})}createQuickPick(){const e=this.getUI();return new ym(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Bt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),oc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();ak.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!n){let s=this.previousFocusElement;for(;s&&!s.offsetParent;)s=Wn(s.parentElement);s!=null&&s.offsetParent?(s.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,P1.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` -`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}P1.MAX_WIDTH=600;class PQ{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}class Vh extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function AM(o,e){const t=[];for(const i of e){if(o.start>=i.range.end)continue;if(o.ende.concat(t),[]))}class MM{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const n=i.length-t,s=AM({start:0,end:e},this.groups),r=AM({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:lk(l.range,n),size:l.size})),a=i.map((l,c)=>({range:{start:e+c,end:e+c+1},size:l.size}));this.groups=BQ(s,a,r),this._size=this.groups.reduce((l,c)=>l+c.size*(c.range.end-c.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(const n of this.groups){const s=n.range.end-n.range.start,r=i+s*n.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var xc=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const gr={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(o){return[o]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w_{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class HQ{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class zQ{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;tn,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class Lo{constructor(e,t,i,n=gr){var s,r,a,l,c,d,h,u,g,f;if(this.virtualDelegate=t,this.domId=`list_id_${++Lo.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Kr(50),this.splicing=!1,this.dragOverAnimationStopDisposable=H.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=H.None,this.onDragLeaveTimeout=H.None,this.disposables=new Q,this._onDidChangeContentHeight=new R,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new MM;for(const b of i)this.renderers.set(b.templateId,b);this.cache=this.disposables.add(new VQ(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof n.mouseSupport=="boolean"?n.mouseSupport:!0),this._horizontalScrolling=(s=n.horizontalScrolling)!==null&&s!==void 0?s:gr.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof n.additionalScrollHeight>"u"?0:n.additionalScrollHeight,this.accessibilityProvider=new $Q(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((r=n.transformOptimization)!==null&&r!==void 0?r:gr.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(ft.addTarget(this.rowsContainer)),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:(a=n.smoothScrolling)!==null&&a!==void 0&&a?125:0,scheduleAtNextAnimationFrame:b=>Jo(b)}),this.scrollableElement=this.disposables.add(new pE(this.rowsContainer,{alwaysConsumeMouseWheel:(l=n.alwaysConsumeMouseWheel)!==null&&l!==void 0?l:gr.alwaysConsumeMouseWheel,horizontal:1,vertical:(c=n.verticalScrollMode)!==null&&c!==void 0?c:gr.verticalScrollMode,useShadows:(d=n.useShadows)!==null&&d!==void 0?d:gr.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(G(this.rowsContainer,xt.Change,b=>this.onTouchChange(b))),this.disposables.add(G(this.scrollableElement.getDomNode(),"scroll",b=>b.target.scrollTop=0)),this.disposables.add(G(this.domNode,"dragover",b=>this.onDragOver(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"drop",b=>this.onDrop(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragleave",b=>this.onDragLeave(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragend",b=>this.onDragEnd(b))),this.setRowLineHeight=(h=n.setRowLineHeight)!==null&&h!==void 0?h:gr.setRowLineHeight,this.setRowHeight=(u=n.setRowHeight)!==null&&u!==void 0?u:gr.setRowHeight,this.supportDynamicHeights=(g=n.supportDynamicHeights)!==null&&g!==void 0?g:gr.supportDynamicHeights,this.dnd=(f=n.dnd)!==null&&f!==void 0?f:gr.dnd,this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:oS(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){e.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling),e.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},r=en.intersect(n,s),a=new Map;for(let x=r.end-1;x>=r.start;x--){const y=this.items[x];if(y.dragStartDisposable.dispose(),y.checkedDisposable.dispose(),y.row){let D=a.get(y.templateId);D||(D=[],a.set(y.templateId,D));const I=this.renderers.get(y.templateId);I&&I.disposeElement&&I.disposeElement(y.element,x,y.row.templateData,y.size),D.push(y.row)}y.row=null}const l={start:e+t,end:this.items.length},c=en.intersect(l,n),d=en.relativeComplement(l,n),h=i.map(x=>({id:String(this.itemId++),element:x,templateId:this.virtualDelegate.getTemplateId(x),size:this.virtualDelegate.getHeight(x),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(x),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:H.None,checkedDisposable:H.None}));let u;e===0&&t>=this.items.length?(this.rangeMap=new MM,this.rangeMap.splice(0,0,h),u=this.items,this.items=h):(this.rangeMap.splice(e,t,h),u=this.items.splice(e,t,...h));const g=i.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=lk(c,g),b=en.intersect(f,_);for(let x=b.start;xlk(x,g)),S=[{start:e,end:e+i.length},...C].map(x=>en.intersect(f,x)),k=this.getNextToLastElement(S);for(const x of S)for(let y=x.start;yx.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Jo(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)typeof t.width<"u"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10})}rerender(){if(!!this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:typeof e=="number"?e:MH(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t<"u"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:oS(this.domNode)})}render(e,t,i,n,s,r=!1){const a=this.getRenderRange(t,i),l=en.relativeComplement(a,e),c=en.relativeComplement(e,a),d=this.getNextToLastElement(l);if(r){const h=en.intersect(e,a);for(let u=h.start;un.row.domNode.setAttribute("aria-checked",String(!!d));c(r.value),n.checkedDisposable=r.onDidChange(c)}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const a=this.renderers.get(n.templateId);if(!a)throw new Error(`No renderer found for template id ${n.templateId}`);a==null||a.renderElement(n.element,e,n.row.templateData,n.size);const l=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!l,l&&(n.dragStartDisposable=G(n.row.domNode,"dragstart",c=>this.onDragStart(n.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=Ls?"-moz-fit-content":"fit-content",e.width=oS(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return ge.map(this.disposables.add(new bt(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return ge.map(this.disposables.add(new bt(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return ge.filter(ge.map(this.disposables.add(new bt(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>e.browserEvent.button===1,this.disposables)}get onMouseDown(){return ge.map(this.disposables.add(new bt(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return ge.map(this.disposables.add(new bt(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return ge.any(ge.map(this.disposables.add(new bt(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),ge.map(this.disposables.add(new bt(this.domNode,xt.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return ge.map(this.disposables.add(new bt(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return ge.map(this.disposables.add(new bt(this.rowsContainer,xt.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var n,s;if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(__.TEXT,t),i.dataTransfer.setDragImage){let a;this.dnd.getDragLabel&&(a=this.dnd.getDragLabel(r,i)),typeof a>"u"&&(a=String(r.length));const l=J(".monaco-drag-image");l.textContent=a,document.body.appendChild(l),i.dataTransfer.setDragImage(l,-10,-10),setTimeout(()=>document.body.removeChild(l),0)}this.currentDragData=new w_(r),Vc.CurrentDragAndDropData=new HQ(r),(s=(n=this.dnd).onDragStart)===null||s===void 0||s.call(n,this.currentDragData,i)}onDragOver(e){var t;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),Vc.CurrentDragAndDropData&&Vc.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(Vc.CurrentDragAndDropData)this.currentDragData=Vc.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new zQ}const i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop=typeof i=="boolean"?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof i!="boolean"&&i.effect===0?"copy":"move";let n;if(typeof i!="boolean"&&i.feedback?n=i.feedback:typeof e.index>"u"?n=[-1]:n=[e.index],n=Qa(n).filter(s=>s>=-1&&ss-r),n=n[0]===-1?[-1]:n,UQ(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),n[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Be(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const s of n){const r=this.items[s];r.dropTarget=!0,(t=r.row)===null||t===void 0||t.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Be(()=>{var s;for(const r of n){const a=this.items[r];a.dropTarget=!1,(s=a.row)===null||s===void 0||s.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Ad(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=H.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=s4(this.domNode).top;this.dragOverAnimationDisposable=VH(this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Ad(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const n=i.getAttribute("data-index");if(n){const s=Number(n);if(!isNaN(s))return s}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let s,r;e===this.elementTop(n.start)?(s=n.start,r=0):n.end-n.start>1&&(s=n.start+1,r=this.elementTop(s)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let c=!1;for(let d=l.start;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},RM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class jQ{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex(s=>s.templateData===i);if(n>=0){const s=this.renderedElements[n];this.trait.unrender(i),s.index=t}else{const s={index:t,templateData:i};this.renderedElements.push(s)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index=e+t&&n.push({index:s.index+i-t,templateData:s.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}class sC{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new R,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new jQ(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const s=i.length-t,r=e+t,a=[...this.sortedIndexes.filter(c=>cc?d+e:-1).filter(c=>c!==-1),...this.sortedIndexes.filter(c=>c>=r).map(c=>c+s)],l=this.length+s;if(this.sortedIndexes.length>0&&a.length===0&&l>0){const c=(n=this.sortedIndexes.find(d=>d>=e))!==null&&n!==void 0?n:l-1;a.push(Math.min(c,l-1))}this.renderer.splice(e,t,i.length),this._set(a,a),this.length=l}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(PM),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=ck(s,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return aI(this.sortedIndexes,e,PM)>=0}dispose(){nt(this._onChange)}}wh([pi],sC.prototype,"renderer",null);class KQ extends sC{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class qS{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map(()=>!1));const n=this.trait.get().map(r=>this.identityProvider.getId(this.view.element(r)).toString()),s=i.map(r=>n.indexOf(this.identityProvider.getId(r).toString())>-1);this.trait.splice(e,t,s)}}function jd(o){return o.tagName==="INPUT"||o.tagName==="TEXTAREA"}function yu(o){return o.classList.contains("monaco-editor")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:yu(o.parentElement)}function D5(o){return o.tagName==="A"&&o.classList.contains("monaco-button")||o.tagName==="DIV"&&o.classList.contains("monaco-button-dropdown")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:D5(o.parentElement)}class k5{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new Q,this.multipleSelectionDisposables=new Q,this.onKeyDown.filter(n=>n.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===9).on(this.onEscape,this,this.disposables),i.multipleSelectionSupport!==!1&&this.onKeyDown.filter(n=>(Ge?n.metaKey:n.ctrlKey)&&n.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event).filter(e=>!jd(e.target)).map(e=>new Rt(e)))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(t=>(Ge?t.metaKey:t.ctrlKey)&&t.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Cn(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}wh([pi],k5.prototype,"onKeyDown",null);var Yl;(function(o){o[o.Automatic=0]="Automatic",o[o.Trigger=1]="Trigger"})(Yl||(Yl={}));var Lu;(function(o){o[o.Idle=0]="Idle",o[o.Typing=1]="Typing"})(Lu||(Lu={}));const qQ=new class{mightProducePrintableCharacter(o){return o.ctrlKey||o.metaKey||o.altKey?!1:o.keyCode>=31&&o.keyCode<=56||o.keyCode>=21&&o.keyCode<=30||o.keyCode>=93&&o.keyCode<=102||o.keyCode>=80&&o.keyCode<=90}};class GQ{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=Lu.Idle,this.mode=Yl.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new Q,this.disposables=new Q,this.updateOptions(e.options)}updateOptions(e){var t,i;!((t=e.typeNavigationEnabled)!==null&&t!==void 0)||t?this.enable():this.disable(),this.mode=(i=e.typeNavigationMode)!==null&&i!==void 0?i:Yl.Automatic}enable(){if(this.enabled)return;let e=!1;const t=this.enabledDisposables.add(ge.chain(this.enabledDisposables.add(new bt(this.view.domNode,"keydown")).event)).filter(s=>!jd(s.target)).filter(()=>this.mode===Yl.Automatic||this.triggered).map(s=>new Rt(s)).filter(s=>e||this.keyboardNavigationEventFilter(s)).filter(s=>this.delegate.mightProducePrintableCharacter(s)).forEach(ND).map(s=>s.browserEvent.key).event,i=ge.debounce(t,()=>null,800,void 0,void 0,this.enabledDisposables);ge.reduce(ge.any(t,i),(s,r)=>r===null?null:(s||"")+r,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t(()=>e=!0,void 0,this.enabledDisposables),i(()=>e=!1,void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));i&&Gi(i)}this.previouslyFocused=-1}onInput(e){if(!e){this.state=Lu.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===Lu.Idle?1:0;this.state=Lu.Typing;for(let s=0;s"u"||x1(e,l)){this.previouslyFocused=i,this.list.setFocus([r]),this.list.reveal(r);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class ZQ{constructor(e,t){this.list=e,this.view=t,this.disposables=new Q,this.disposables.add(ge.chain(this.disposables.add(new bt(t.domNode,"keydown")).event)).filter(n=>!jd(n.target)).map(n=>new Rt(n)).filter(n=>n.keyCode===2&&!n.ctrlKey&&!n.metaKey&&!n.shiftKey&&!n.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(n instanceof HTMLElement)||n.tabIndex===-1)return;const s=window.getComputedStyle(n);s.visibility==="hidden"||s.display==="none"||(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function x5(o){return Ge?o.browserEvent.metaKey:o.browserEvent.ctrlKey}function I5(o){return o.browserEvent.shiftKey}function YQ(o){return o instanceof MouseEvent&&o.button===2}const OM={isSelectionSingleChangeEvent:x5,isSelectionRangeChangeEvent:I5};class E5{constructor(e){this.list=e,this.disposables=new Q,this._onPointer=new R,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(ft.addTarget(e.getHTMLElement()))),ge.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){yu(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(yu(e.browserEvent.target))return;const t=typeof e.index>"u"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.index;if(typeof t>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),YQ(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(jd(e.browserEvent.target)||yu(e.browserEvent.target)||this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(typeof i>"u"){const d=this.list.getFocus()[0];i=d!=null?d:t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),r=Cn(n,s+1),a=this.list.getSelection(),l=JQ(ck(a,[i]),i);if(l.length===0)return;const c=ck(r,eX(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),s=n.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class N5{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):Ge||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionOutline&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { outline-color: ${e.listFocusAndSelectionOutline} !important; }`),e.listFocusAndSelectionBackground&&i.push(` +`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){let n=this._modelCreationOptionsByLanguageAndResource[e+t];if(!n){const s=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._getEOL(t,e);n=Xf._readModelOptions({editor:s,eol:r},i),this._modelCreationOptionsByLanguageAndResource[e+t]=n}return n}_updateModelOptions(){const e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const t=Object.keys(this._models);for(let i=0,n=t.length;ie){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,n)=>i.time-n.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),r=new il(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(bl(i))){const c=this._removeDisposedModel(i),d=this._undoRedoService.getElements(i),h=LM(r)===c.sha1;if(h||c.sharesUndoRedoStack){for(const u of d.past)ka(u)&&u.matchesResource(i)&&u.setModel(r);for(const u of d.future)ka(u)&&u.matchesResource(i)&&u.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,u=>ka(u)&&u.matchesResource(i)),h&&(r._overwriteVersionId(c.versionId),r._overwriteAlternativeVersionId(c.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(c.initialUndoRedoSnapshot))}else c.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(c.initialUndoRedoSnapshot)}const a=bl(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new nQ(r,c=>this._onWillDispose(c),(c,d)=>this._onDidChangeLanguage(c,d));return this._models[a]=l,l}createModel(e,t,i,n=!1){let s;return t?(s=this._createModelData(e,t.languageId,i,n),this.setMode(s.model,t)):s=this._createModelData(e,Ks,i,n),this._onModelAdded.fire(s.model),s.model}setMode(e,t){if(!t)return;const i=this._models[bl(e.uri)];!i||i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||l.future.length>0){for(const c of l.past)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of l.future)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=Xf.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(s)if(!n&&r>a){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,l=>ka(l)&&l.matchesResource(e.uri)),this._insertDisposedModel(new oQ(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,LM(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!n){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Xf._setModelOptionsForModel(e,r,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}};iC.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;iC=tN([yn(0,ot),yn(1,VP),yn(2,Ct),yn(3,So),yn(4,D1),yn(5,Ht),yn(6,si),yn(7,no),yn(8,de)],iC);const iN="editor.semanticHighlighting";function ik(o,e,t){var i;const n=(i=t.getValue(iN,{overrideIdentifier:o.getLanguageId(),resource:o.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}let nk=class extends H{constructor(e,t,i,n,s,r){super(),this._watchers=Object.create(null),this._semanticStyling=e;const a=d=>{this._watchers[d.uri.toString()]=new wm(d,this._semanticStyling,i,s,r)},l=(d,h)=>{h.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(const d of t.getModels()){const h=this._watchers[d.uri.toString()];ik(d,i,n)?h||a(d):h&&l(d,h)}};this._register(t.onModelAdded(d=>{ik(d,i,n)&&a(d)})),this._register(t.onModelRemoved(d=>{const h=this._watchers[d.uri.toString()];h&&l(d,h)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(iN)&&c()})),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};nk=tN([yn(1,Ut),yn(2,Ct),yn(3,ot),yn(4,no),yn(5,de)],nk);class rQ extends H{constructor(e,t,i){super(),this._themeService=e,this._languageService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new tk(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class aQ{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let wm=class qc extends H{constructor(e,t,i,n,s){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=t,this._provider=s.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:qc.REQUEST_MIN_DELAY,max:qc.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new mt(()=>this._fetchDocumentSemanticTokensNow(),qc.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{nt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!mF(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}const e=new Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=_F(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const s=[],r=this._model.onDidChangeContent(l=>{s.push(l)}),a=new $n(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,s);else{const{provider:c,tokens:d}=l,h=this._semanticStyling.get(c);this._setDocumentSemanticTokens(c,d||null,h,s)}},l=>{l&&(ea(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||Te(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),s.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let r=0;r{n.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),r();return}if(pF(t)){if(!s){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:s.data};else{let a=0;for(const u of t.edits)a+=(u.data?u.data.length:0)-u.deleteCount;const l=s.data,c=new Uint32Array(l.length+a);let d=l.length,h=c.length;for(let u=t.edits.length-1;u>=0;u--){const g=t.edits[u];if(g.start>l.length){i.warnInvalidEditStart(s.resultId,t.resultId,u,g.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}const f=d-(g.start+g.deleteCount);f>0&&(qc._copy(l,d-f,c,h-f,f),h-=f),g.data&&(qc._copy(g.data,0,c,h-g.data.length,g.data.length),h-=g.data.length),d=g.start}d>0&&qc._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(M1(t)){this._currentDocumentResponse=new aQ(e,t.resultId,t.data);const a=gF(t,i,this._model.getLanguageId());if(n.length>0)for(const l of n)for(const c of a)for(const d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}};wm.REQUEST_MIN_DELAY=300;wm.REQUEST_MAX_DELAY=2e3;wm=tN([yn(2,Ct),yn(3,no),yn(4,de)],wm);const lQ=new RegExp(`(\\\\)?\\$\\((${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?)\\)`,"g");function wd(o){const e=new Array;let t,i=0,n=0;for(;(t=lQ.exec(o))!==null;){n=t.index||0,e.push(o.substring(i,n)),i=(t.index||0)+t[0].length;const[,s,r]=t;e.push(s?`$(${r})`:cQ({id:r}))}return i{this._register(G(this._element,i,n=>{if(!this.enabled){ut.stop(n);return}this._onDidClick.fire(n)}))}),this._register(G(this._element,ae.KEY_DOWN,i=>{const n=new Rt(i);let s=!1;this.enabled&&(n.equals(3)||n.equals(10))?(this._onDidClick.fire(i),s=!0):n.equals(9)&&(this._element.blur(),s=!0),s&&ut.stop(n,!0)})),this._register(G(this._element,ae.MOUSE_OVER,i=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(G(this._element,ae.MOUSE_OUT,i=>{this.applyStyles()})),this.focusTracker=this._register(Od(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;this.options.secondary?e=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?oc(this._element,...wd(e)):this._element.textContent=e,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}const hQ={badgeBackground:W.fromHex("#4D4D4D"),badgeForeground:W.fromHex("#FFFFFF")};class sk{constructor(e,t){this.count=0,this.options=t||Object.create(null),Jr(this.options,hQ,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=q(e,J(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=Vs(this.countFormat,this.count),this.element.title=Vs(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}const kM="done",xM="active",US="infinite",$S="infinite-long-running",IM="discrete",uQ={progressBarBackground:W.fromHex("#0E70C0")};class R1 extends H{constructor(e,t){super(),this.options=t||Object.create(null),Jr(this.options,uQ,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new mt(()=>bs(this.element),0)),this.longRunningScheduler=this._register(new mt(()=>this.infiniteLongRunning(),R1.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(xM,US,$S,IM),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(kM),this.element.classList.contains(US)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(IM,kM,$S),this.element.classList.add(xM,US),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add($S)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}R1.LONG_RUNNING_INFINITE_THRESHOLD=1e4;class nN{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const vF=new nN("id#");const jS={},gQ=new nN("quick-input-button-icon-");function ok(o){if(!o)return;let e;const t=o.dark.toString();return jS[t]?e=jS[t]:(e=gQ.nextId(),nD(`.${e}, .hc-light .${e}`,`background-image: ${Pd(o.light||o.dark)}`),nD(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${Pd(o.dark)}`),jS[t]=e),e}const fQ={ctrlCmd:!1,alt:!1};var Sm;(function(o){o[o.Blur=1]="Blur",o[o.Gesture=2]="Gesture",o[o.Other=3]="Other"})(Sm||(Sm={}));var To;(function(o){o[o.NONE=0]="NONE",o[o.FIRST=1]="FIRST",o[o.SECOND=2]="SECOND",o[o.LAST=3]="LAST"})(To||(To={}));function pQ(o,e={}){const t=sN(e);return t.textContent=o,t}function CF(o,e={}){const t=sN(e);return wF(t,_Q(o,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function sN(o){const e=o.inline?"span":"div",t=document.createElement(e);return o.className&&(t.className=o.className),t}class mQ{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function wF(o,e,t,i){let n;if(e.type===2)n=document.createTextNode(e.content||"");else if(e.type===3)n=document.createElement("b");else if(e.type===4)n=document.createElement("i");else if(e.type===7&&i)n=document.createElement("code");else if(e.type===5&&t){const s=document.createElement("a");t.disposables.add(ki(s,"click",r=>{t.callback(String(e.index),r)})),n=s}else e.type===8?n=document.createElement("br"):e.type===1&&(n=o);n&&o!==n&&o.appendChild(n),n&&Array.isArray(e.children)&&e.children.forEach(s=>{wF(n,s,t,i)})}function _Q(o,e){const t={type:1,children:[]};let i=0,n=t;const s=[],r=new mQ(o);for(;!r.eos();){let a=r.next();const l=a==="\\"&&rk(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&bQ(a,e)&&a===r.peek()){r.advance(),n.type===2&&(n=s.pop());const c=rk(a,e);if(n.type===c||n.type===5&&c===6)n=s.pop();else{const d={type:c,children:[]};c===5&&(d.index=i,i++),n.children.push(d),s.push(n),n=d}}else if(a===` +`)n.type===2&&(n=s.pop()),n.children.push({type:8});else if(n.type!==2){const c={type:2,content:a};n.children.push(c),s.push(n),n=c}else n.content+=a}return n.type===2&&(n=s.pop()),t}function bQ(o,e){return rk(o,e)!==0}function rk(o,e){switch(o){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}class vQ{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class CQ{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new vQ(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}const Ef=J,wQ={inputBackground:W.fromHex("#3C3C3C"),inputForeground:W.fromHex("#CCCCCC"),inputValidationInfoBorder:W.fromHex("#55AAFF"),inputValidationInfoBackground:W.fromHex("#063B49"),inputValidationWarningBorder:W.fromHex("#B89500"),inputValidationWarningBackground:W.fromHex("#352A05"),inputValidationErrorBorder:W.fromHex("#BE1100"),inputValidationErrorBackground:W.fromHex("#5A1D1D")};class SF extends yo{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new R),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),Jr(this.options,wQ,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(n=this.options.tooltip)!==null&&n!==void 0?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=q(e,Ef(".monaco-inputbox.idle"));const s=this.options.flexibleHeight?"textarea":"input",r=q(this.element,Ef(".ibwrapper"));if(this.input=q(r,Ef(s+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=q(r,Ef("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new i5(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),q(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(c=>this.input.scrollTop=c.scrollTop));const a=this._register(new bt(document,"selectionchange")),l=ge.filter(a.event,()=>{const c=document.getSelection();return(c==null?void 0:c.anchorNode)===r});this._register(l(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new Zr(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:iD(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return co(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const i=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=i+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e==null?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=co(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:n=>{if(!this.message)return null;e=q(n,Ef(".monaco-inputbox-container")),t();const s={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?CF(this.message.content,s):pQ(this.message.content,s);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",q(e,r),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=p("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=p("alertWarningMessage","Warning: {0}",this.message.content):i=p("alertInfoMessage","Info: {0}",this.message.content),Gi(i),this.state="open"}_hideMessage(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText="\xA0",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=iD(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;i!==null&&n!==null&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class yF extends SF{constructor(e,t,i){const n=p({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history"]},"for history"),s=` or \u21C5 ${n}`,r=` (\u21C5 ${n})`;super(e,t,i),this._onDidFocus=this._register(new R),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this.history=new CQ(i.history,100);const a=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(s)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const l=this.placeholder.endsWith(")")?s:r,c=this.placeholder+l;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=c:this.setPlaceHolder(c)}};this.observer=new MutationObserver((l,c)=>{l.forEach(d=>{d.target.textContent||a()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>a()),this.onblur(this.input,()=>{const l=c=>{if(this.placeholder.endsWith(c)){const d=this.placeholder.slice(0,this.placeholder.length-c.length);return i.showPlaceholderOnFocus?this.placeholder=d:this.setPlaceHolder(d),!0}else return!1};l(r)||l(s)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,dv(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,dv(this.value))}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}const SQ=J;class yQ extends H{constructor(e){super(),this.parent=e,this.onKeyDown=t=>G(this.inputBox.inputElement,ae.KEY_DOWN,i=>{t(new Rt(i))}),this.onMouseDown=t=>G(this.inputBox.inputElement,ae.MOUSE_DOWN,i=>{t(new Mr(i))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=q(this.parent,SQ(".quick-input-box")),this.inputBox=this._register(new SF(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return this.inputBox.inputElement.type==="password"}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Bt.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Bt.Info?1:e===Bt.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Bt.Info?1:e===Bt.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}class $d{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=q(e,J("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=$d.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&$s(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n=s===`\r +`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=n),a.end>=r&&(a.end+=n));return i+=n,"\u23CE"})}}class KS{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class nC extends H{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new KS(q(e,J(".monaco-icon-label")))),this.labelContainer=q(this.domNode.element,J(".monaco-icon-label-container"));const i=q(this.labelContainer,J("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new KS(q(this.labelContainer,J("span.monaco-icon-description-container")))),(t==null?void 0:t.supportHighlights)||(t==null?void 0:t.supportIcons)?this.nameNode=new kQ(i,!!t.supportIcons):this.nameNode=new LQ(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new $d(q(this.descriptionContainer.element,J("span.label-description")),{supportIcons:!!t.supportIcons}):this.descriptionNodeFactory=()=>this._register(new KS(q(this.descriptionContainer.element,J("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof $d?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)bZ(e,t);else{const n=z5(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class LQ{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=q(this.container,J("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const s={start:i,end:i+n.length},r=t.map(a=>en.intersect(s,a)).filter(a=>!en.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=s.end+e.length,r})}class kQ{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new $d(q(this.container,J("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=DQ(e,i,t==null?void 0:t.matches);for(let s=0;s{const o=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:o,collatorIsNumeric:o.resolvedOptions().numeric}});new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0})}));new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function xQ(o,e,t=!1){const i=o||"",n=e||"",s=EM.value.collator.compare(i,n);return EM.value.collatorIsNumeric&&s===0&&i!==n?in.length)return 1}return 0}var LF=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},NQ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const br=J;class TQ{constructor(e){this.hidden=!1,this._onChecked=new R,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class C_{get templateId(){return C_.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=q(e,br(".quick-input-list-entry"));const i=q(t.entry,br("label.quick-input-list-label"));t.toDisposeTemplate.push(ki(i,ae.CLICK,c=>{t.checkbox.offsetParent||c.preventDefault()})),t.checkbox=q(i,br("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(ki(t.checkbox,ae.CHANGE,c=>{t.element.checked=t.checkbox.checked}));const n=q(i,br(".quick-input-list-rows")),s=q(n,br(".quick-input-list-row")),r=q(n,br(".quick-input-list-row"));t.label=new nC(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=q(s,br(".quick-input-list-entry-keybinding"));t.keybinding=new oN(a,Os);const l=q(r,br(".quick-input-list-label-meta"));return t.detail=new nC(l,{supportHighlights:!0,supportIcons:!0}),t.separator=q(t.entry,br(".quick-input-list-separator")),t.actionBar=new Zr(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(c=>i.checkbox.checked=c));const{labelHighlights:n,descriptionHighlights:s,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=s||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((c,d)=>{let h=c.iconClass||(c.iconPath?ok(c.iconPath):void 0);c.alwaysVisible&&(h=h?`${h} always-visible`:"always-visible");const u=new is(`id-${d}`,"",h,!0,()=>NQ(this,void 0,void 0,function*(){e.fireButtonTriggered({button:c,item:e.item})}));return u.tooltip=c.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=nt(e.toDisposeElement),e.toDisposeTemplate=nt(e.toDisposeTemplate)}}C_.ID="listelement";class AQ{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return C_.ID}}var oi;(function(o){o[o.First=1]="First",o[o.Second=2]="Second",o[o.Last=3]="Last",o[o.Next=4]="Next",o[o.Previous=5]="Previous",o[o.NextPage=6]="NextPage",o[o.PreviousPage=7]="PreviousPage"})(oi||(oi={}));class rN{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new R,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new R,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new R,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new R,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new R,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new R,this.onKeyDown=this._onKeyDown.event,this._onLeave=new R,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=q(this.parent,br(".quick-input-list"));const n=new AQ,s=new OQ;this.list=i.createList("QuickInput",this.container,n,[new C_],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Rt(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(Ge?r.metaKey:r.ctrlKey)&&this.list.setFocus(Cn(this.list.length));break;case 16:{const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break}case 18:{const l=this.list.getFocus();l.length===1&&l[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(G(this.container,ae.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return ge.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=nt(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,s)=>{var r,a,l;if(n.type!=="separator"){const c=s&&e[s-1],d=n.label&&n.label.replace(/\r?\n/g," "),h=Wh(d).text.trim(),u=n.meta&&n.meta.replace(/\r?\n/g," "),g=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),_=n.ariaLabel||[d,g,f].map(v=>sB(v)).filter(v=>!!v).join(", "),b=this.parent.classList.contains("show-checkboxes");i.push(new TQ({hasCheckbox:b,index:s,item:n,saneLabel:d,saneSortLabel:h,saneMeta:u,saneAriaLabel:_,saneDescription:g,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:c&&c.type==="separator"?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,s)=>(i.set(n.item,s),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===oi.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=oi.First),e===oi.Previous&&this.list.getFocus()[0]===0&&(e=oi.Last),e===oi.Second&&this.list.length<2&&(e=oi.First),e){case oi.First:this.list.focusFirst();break;case oi.Second:this.list.focusNth(1);break;case oi.Last:this.list.focusLast();break;case oi.Next:this.list.focusNext();break;case oi.Previous:this.list.focusPrevious();break;case oi.NextPage:this.list.focusNextPage();break;case oi.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;const t=e;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(n=>{n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!1;const s=n.index&&this.inputElements[n.index-1];n.separator=s&&s.type==="separator"?s:void 0});else{let n;this.elements.forEach(s=>{let r;this.matchOnLabelMode==="fuzzy"?r=this.matchOnLabel?Wn(Db(e,Wh(s.saneLabel))):void 0:r=this.matchOnLabel?Wn(MQ(t,Wh(s.saneLabel))):void 0;const a=this.matchOnDescription?Wn(Db(e,Wh(s.saneDescription||""))):void 0,l=this.matchOnDetail?Wn(Db(e,Wh(s.saneDetail||""))):void 0,c=this.matchOnMeta?Wn(Db(e,Wh(s.saneMeta||""))):void 0;if(r||a||l||c?(s.labelHighlights=r,s.descriptionHighlights=a,s.detailHighlights=l,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item.alwaysShow),s.separator=void 0,!this.sortByLabel){const d=s.index&&this.inputElements[s.index-1];n=d&&d.type==="separator"?d:n,n&&!s.hidden&&(s.separator=n,n=void 0)}})}const i=this.elements.filter(n=>!n.hidden);if(this.sortByLabel&&e){const n=e.toLowerCase();i.sort((s,r)=>RQ(s,r,n))}return this.elementsToIndexes=i.reduce((n,s,r)=>(n.set(s.item,r),n),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=nt(this.elementDisposables),this.disposables=nt(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}LF([pi],rN.prototype,"onDidChangeFocus",null);LF([pi],rN.prototype,"onDidChangeSelection",null);function MQ(o,e){const{text:t,iconOffsets:i}=e;if(!i||i.length===0)return NM(o,t);const n=WC(t," "),s=t.length-n.length,r=NM(o,n);if(r)for(const a of r){const l=i[a.start+s]+s;a.start+=l,a.end+=l}return r}function NM(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t!==-1?[{start:t,end:t+o.length}]:null}function RQ(o,e,t){const i=o.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:IQ(o.saneSortLabel,e.saneSortLabel,t)}class OQ{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){var t;return!((t=e.separator)===null||t===void 0)&&t.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(!!e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}var TM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const ds=J,ak={iconClass:m.quickInputBack.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class O1 extends H{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=O1.noPromptMessage,this._severity=Bt.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new R),this.onDidHideEmitter=this._register(new R),this.onDisposeEmitter=this._register(new R),this.visibleDisposables=this._register(new Q),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!Ur;this._ignoreFocusOut=e&&!Ur,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){!this.visible||this.ui.hide()}didHide(e=Sm.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new xs,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const n=this.buttons.filter(r=>r===ak);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const s=this.buttons.filter(r=>r!==ak);this.ui.rightActionBar.push(s.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,oc(this.ui.message,...wd(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Bt.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}O1.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ym extends O1{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new R),this.onWillAcceptEmitter=this._register(new R),this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?To.NONE:To.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new R),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new R),this.onDidTriggerItemButtonEmitter=this._register(new R),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?fQ:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(oi.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(oi.Next),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(oi.Previous):this.ui.list.focus(oi.Last),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 12:this.ui.list.focus(oi.NextPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 11:this.ui.list.focus(oi.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(oi.First),ut.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(oi.Last),ut.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Ss(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return G(this.ui.container,ae.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Rt(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(n||(n=this.placeholder||ym.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case To.NONE:this._itemActivation=To.FIRST;break;case To.SECOND:this.ui.list.focus(oi.Second),this._itemActivation=To.FIRST;break;case To.LAST:this.ui.list.focus(oi.Last),this._itemActivation=To.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(oi.First)),this.keepScrollPosition&&(this.scrollTop=e)}}ym.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class P1 extends H{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),this.onDidTriggerButtonEmitter=this._register(new R),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new R),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new R),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(G(window,ae.KEY_DOWN,e,!0)),this._register(G(window,ae.KEY_UP,e,!0)),this._register(G(window,ae.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=q(this.parentElement,ds(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Qs(e),i=q(e,ds(".quick-input-titlebar")),n=this._register(new Zr(i));n.domNode.classList.add("quick-input-left-action-bar");const s=q(i,ds(".quick-input-title")),r=this._register(new Zr(i));r.domNode.classList.add("quick-input-right-action-bar");const a=q(e,ds(".quick-input-description")),l=q(e,ds(".quick-input-header")),c=q(l,ds("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",p("quickInput.checkAll","Toggle all checkboxes")),this._register(ki(c,ae.CHANGE,O=>{const F=c.checked;y.setAllVisibleChecked(F)})),this._register(G(c,ae.CLICK,O=>{(O.x||O.y)&&g.setFocus()}));const d=q(l,ds(".quick-input-description")),h=q(l,ds(".quick-input-and-message")),u=q(h,ds(".quick-input-filter")),g=this._register(new yQ(u));g.setAttribute("aria-describedby",`${this.idPrefix}message`);const f=q(u,ds(".quick-input-visible-count"));f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true");const _=new sk(f,{countFormat:p({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),b=q(u,ds(".quick-input-count"));b.setAttribute("aria-live","polite");const v=new sk(b,{countFormat:p({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),C=q(l,ds(".quick-input-action")),w=new DM(C);w.label=p("ok","OK"),this._register(w.onDidClick(O=>{this.onDidAcceptEmitter.fire()}));const S=q(l,ds(".quick-input-action")),k=new DM(S);k.label=p("custom","Custom"),this._register(k.onDidClick(O=>{this.onDidCustomEmitter.fire()}));const x=q(h,ds(`#${this.idPrefix}message.quick-input-message`)),y=this._register(new rN(e,this.idPrefix+"list",this.options));this._register(y.onChangedAllVisibleChecked(O=>{c.checked=O})),this._register(y.onChangedVisibleCount(O=>{_.setCount(O)})),this._register(y.onChangedCheckedCount(O=>{v.setCount(O)})),this._register(y.onLeave(()=>{setTimeout(()=>{g.setFocus(),this.controller instanceof ym&&this.controller.canSelectMany&&y.clearFocus()},0)})),this._register(y.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new R1(e);D.getContainer().classList.add("quick-input-progress");const I=Od(e);return this._register(I),this._register(G(e,ae.FOCUS,O=>{this.previousFocusElement=O.relatedTarget instanceof HTMLElement?O.relatedTarget:void 0},!0)),this._register(I.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(Sm.Blur),this.previousFocusElement=void 0})),this._register(G(e,ae.FOCUS,O=>{g.setFocus()})),this._register(G(e,ae.KEY_DOWN,O=>{const F=new Rt(O);switch(F.keyCode){case 3:ut.stop(O,!0),this.onDidAcceptEmitter.fire();break;case 9:ut.stop(O,!0),this.hide(Sm.Gesture);break;case 2:if(!F.altKey&&!F.ctrlKey&&!F.metaKey){const z=[".action-label.codicon"];e.classList.contains("show-checkboxes")?z.push("input"):z.push("input[type=text]"),this.getUI().list.isDisplayed()&&z.push(".monaco-list");const j=e.querySelectorAll(z.join(", "));F.shiftKey&&F.target===j[0]?(ut.stop(O,!0),j[j.length-1].focus()):!F.shiftKey&&F.target===j[j.length-1]&&(ut.stop(O,!0),j[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:s,description1:a,description2:d,rightActionBar:r,checkAll:c,filterContainer:u,inputBox:g,visibleCountContainer:f,visibleCount:_,countContainer:b,count:v,okContainer:C,ok:w,message:x,customButtonContainer:S,customButton:k,list:y,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:O=>this.show(O),hide:()=>this.hide(),setVisibilities:O=>this.setVisibilities(O),setComboboxAccessibility:O=>this.setComboboxAccessibility(O),setEnabled:O=>this.setEnabled(O),setContextKey:O=>this.options.setContextKey(O)},this.updateStyles(),this.ui}pick(e,t={},i=ze.None){return new Promise((n,s)=>{let r=d=>{var h;r=n,(h=t.onKeyMods)===null||h===void 0||h.call(t,a.keyMods),n(d)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const d=a.activeItems[0];d&&(r(d),a.hide())}}),a.onDidChangeActive(d=>{const h=d[0];h&&t.onDidFocus&&t.onDidFocus(h)}),a.onDidChangeSelection(d=>{if(!a.canSelectMany){const h=d[0];h&&(r(h),a.hide())}}),a.onDidTriggerItemButton(d=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},d),{removeItem:()=>{const h=a.items.indexOf(d.item);if(h!==-1){const u=a.items.slice(),g=u.splice(h,1),f=a.activeItems.filter(b=>b!==g[0]),_=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,f&&(a.activeItems=f),a.keepScrollPosition=_}}}))),a.onDidChangeValue(d=>{l&&!d&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{nt(c),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([d,h])=>{l=h,a.busy=!1,a.items=d,a.canSelectMany&&(a.selectedItems=d.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,d=>{s(d),a.hide()})})}createQuickPick(){const e=this.getUI();return new ym(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Bt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),oc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();ak.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!n){let s=this.previousFocusElement;for(;s&&!s.offsetParent;)s=Wn(s.parentElement);s!=null&&s.offsetParent?(s.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,P1.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` +`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}P1.MAX_WIDTH=600;class PQ{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}class Vh extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function AM(o,e){const t=[];for(const i of e){if(o.start>=i.range.end)continue;if(o.ende.concat(t),[]))}class MM{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const n=i.length-t,s=AM({start:0,end:e},this.groups),r=AM({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:lk(l.range,n),size:l.size})),a=i.map((l,c)=>({range:{start:e+c,end:e+c+1},size:l.size}));this.groups=BQ(s,a,r),this._size=this.groups.reduce((l,c)=>l+c.size*(c.range.end-c.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(const n of this.groups){const s=n.range.end-n.range.start,r=i+s*n.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var xc=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const gr={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(o){return[o]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w_{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class HQ{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class zQ{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;tn,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class Lo{constructor(e,t,i,n=gr){var s,r,a,l,c,d,h,u,g,f;if(this.virtualDelegate=t,this.domId=`list_id_${++Lo.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Kr(50),this.splicing=!1,this.dragOverAnimationStopDisposable=H.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=H.None,this.onDragLeaveTimeout=H.None,this.disposables=new Q,this._onDidChangeContentHeight=new R,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new MM;for(const b of i)this.renderers.set(b.templateId,b);this.cache=this.disposables.add(new VQ(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof n.mouseSupport=="boolean"?n.mouseSupport:!0),this._horizontalScrolling=(s=n.horizontalScrolling)!==null&&s!==void 0?s:gr.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof n.additionalScrollHeight>"u"?0:n.additionalScrollHeight,this.accessibilityProvider=new $Q(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((r=n.transformOptimization)!==null&&r!==void 0?r:gr.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(ft.addTarget(this.rowsContainer)),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:(a=n.smoothScrolling)!==null&&a!==void 0&&a?125:0,scheduleAtNextAnimationFrame:b=>Jo(b)}),this.scrollableElement=this.disposables.add(new pE(this.rowsContainer,{alwaysConsumeMouseWheel:(l=n.alwaysConsumeMouseWheel)!==null&&l!==void 0?l:gr.alwaysConsumeMouseWheel,horizontal:1,vertical:(c=n.verticalScrollMode)!==null&&c!==void 0?c:gr.verticalScrollMode,useShadows:(d=n.useShadows)!==null&&d!==void 0?d:gr.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(G(this.rowsContainer,xt.Change,b=>this.onTouchChange(b))),this.disposables.add(G(this.scrollableElement.getDomNode(),"scroll",b=>b.target.scrollTop=0)),this.disposables.add(G(this.domNode,"dragover",b=>this.onDragOver(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"drop",b=>this.onDrop(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragleave",b=>this.onDragLeave(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragend",b=>this.onDragEnd(b))),this.setRowLineHeight=(h=n.setRowLineHeight)!==null&&h!==void 0?h:gr.setRowLineHeight,this.setRowHeight=(u=n.setRowHeight)!==null&&u!==void 0?u:gr.setRowHeight,this.supportDynamicHeights=(g=n.supportDynamicHeights)!==null&&g!==void 0?g:gr.supportDynamicHeights,this.dnd=(f=n.dnd)!==null&&f!==void 0?f:gr.dnd,this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:oS(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){e.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling),e.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},r=en.intersect(n,s),a=new Map;for(let x=r.end-1;x>=r.start;x--){const y=this.items[x];if(y.dragStartDisposable.dispose(),y.checkedDisposable.dispose(),y.row){let D=a.get(y.templateId);D||(D=[],a.set(y.templateId,D));const I=this.renderers.get(y.templateId);I&&I.disposeElement&&I.disposeElement(y.element,x,y.row.templateData,y.size),D.push(y.row)}y.row=null}const l={start:e+t,end:this.items.length},c=en.intersect(l,n),d=en.relativeComplement(l,n),h=i.map(x=>({id:String(this.itemId++),element:x,templateId:this.virtualDelegate.getTemplateId(x),size:this.virtualDelegate.getHeight(x),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(x),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:H.None,checkedDisposable:H.None}));let u;e===0&&t>=this.items.length?(this.rangeMap=new MM,this.rangeMap.splice(0,0,h),u=this.items,this.items=h):(this.rangeMap.splice(e,t,h),u=this.items.splice(e,t,...h));const g=i.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=lk(c,g),b=en.intersect(f,_);for(let x=b.start;xlk(x,g)),S=[{start:e,end:e+i.length},...C].map(x=>en.intersect(f,x)),k=this.getNextToLastElement(S);for(const x of S)for(let y=x.start;yx.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Jo(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)typeof t.width<"u"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10})}rerender(){if(!!this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:typeof e=="number"?e:MH(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t<"u"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:oS(this.domNode)})}render(e,t,i,n,s,r=!1){const a=this.getRenderRange(t,i),l=en.relativeComplement(a,e),c=en.relativeComplement(e,a),d=this.getNextToLastElement(l);if(r){const h=en.intersect(e,a);for(let u=h.start;un.row.domNode.setAttribute("aria-checked",String(!!d));c(r.value),n.checkedDisposable=r.onDidChange(c)}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const a=this.renderers.get(n.templateId);if(!a)throw new Error(`No renderer found for template id ${n.templateId}`);a==null||a.renderElement(n.element,e,n.row.templateData,n.size);const l=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!l,l&&(n.dragStartDisposable=G(n.row.domNode,"dragstart",c=>this.onDragStart(n.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=Ls?"-moz-fit-content":"fit-content",e.width=oS(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return ge.map(this.disposables.add(new bt(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return ge.map(this.disposables.add(new bt(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return ge.filter(ge.map(this.disposables.add(new bt(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>e.browserEvent.button===1,this.disposables)}get onMouseDown(){return ge.map(this.disposables.add(new bt(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return ge.map(this.disposables.add(new bt(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return ge.any(ge.map(this.disposables.add(new bt(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),ge.map(this.disposables.add(new bt(this.domNode,xt.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return ge.map(this.disposables.add(new bt(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return ge.map(this.disposables.add(new bt(this.rowsContainer,xt.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var n,s;if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(__.TEXT,t),i.dataTransfer.setDragImage){let a;this.dnd.getDragLabel&&(a=this.dnd.getDragLabel(r,i)),typeof a>"u"&&(a=String(r.length));const l=J(".monaco-drag-image");l.textContent=a,document.body.appendChild(l),i.dataTransfer.setDragImage(l,-10,-10),setTimeout(()=>document.body.removeChild(l),0)}this.currentDragData=new w_(r),Vc.CurrentDragAndDropData=new HQ(r),(s=(n=this.dnd).onDragStart)===null||s===void 0||s.call(n,this.currentDragData,i)}onDragOver(e){var t;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),Vc.CurrentDragAndDropData&&Vc.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(Vc.CurrentDragAndDropData)this.currentDragData=Vc.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new zQ}const i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop=typeof i=="boolean"?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof i!="boolean"&&i.effect===0?"copy":"move";let n;if(typeof i!="boolean"&&i.feedback?n=i.feedback:typeof e.index>"u"?n=[-1]:n=[e.index],n=Qa(n).filter(s=>s>=-1&&ss-r),n=n[0]===-1?[-1]:n,UQ(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),n[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Be(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const s of n){const r=this.items[s];r.dropTarget=!0,(t=r.row)===null||t===void 0||t.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Be(()=>{var s;for(const r of n){const a=this.items[r];a.dropTarget=!1,(s=a.row)===null||s===void 0||s.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Ad(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=H.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=s4(this.domNode).top;this.dragOverAnimationDisposable=VH(this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Ad(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const n=i.getAttribute("data-index");if(n){const s=Number(n);if(!isNaN(s))return s}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let s,r;e===this.elementTop(n.start)?(s=n.start,r=0):n.end-n.start>1&&(s=n.start+1,r=this.elementTop(s)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let c=!1;for(let d=l.start;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},RM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class jQ{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex(s=>s.templateData===i);if(n>=0){const s=this.renderedElements[n];this.trait.unrender(i),s.index=t}else{const s={index:t,templateData:i};this.renderedElements.push(s)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index=e+t&&n.push({index:s.index+i-t,templateData:s.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}class sC{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new R,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new jQ(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const s=i.length-t,r=e+t,a=[...this.sortedIndexes.filter(c=>cc?d+e:-1).filter(c=>c!==-1),...this.sortedIndexes.filter(c=>c>=r).map(c=>c+s)],l=this.length+s;if(this.sortedIndexes.length>0&&a.length===0&&l>0){const c=(n=this.sortedIndexes.find(d=>d>=e))!==null&&n!==void 0?n:l-1;a.push(Math.min(c,l-1))}this.renderer.splice(e,t,i.length),this._set(a,a),this.length=l}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(PM),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=ck(s,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return aI(this.sortedIndexes,e,PM)>=0}dispose(){nt(this._onChange)}}wh([pi],sC.prototype,"renderer",null);class KQ extends sC{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class qS{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map(()=>!1));const n=this.trait.get().map(r=>this.identityProvider.getId(this.view.element(r)).toString()),s=i.map(r=>n.indexOf(this.identityProvider.getId(r).toString())>-1);this.trait.splice(e,t,s)}}function jd(o){return o.tagName==="INPUT"||o.tagName==="TEXTAREA"}function yu(o){return o.classList.contains("monaco-editor")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:yu(o.parentElement)}function DF(o){return o.tagName==="A"&&o.classList.contains("monaco-button")||o.tagName==="DIV"&&o.classList.contains("monaco-button-dropdown")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:DF(o.parentElement)}class kF{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new Q,this.multipleSelectionDisposables=new Q,this.onKeyDown.filter(n=>n.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===9).on(this.onEscape,this,this.disposables),i.multipleSelectionSupport!==!1&&this.onKeyDown.filter(n=>(Ge?n.metaKey:n.ctrlKey)&&n.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event).filter(e=>!jd(e.target)).map(e=>new Rt(e)))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(t=>(Ge?t.metaKey:t.ctrlKey)&&t.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Cn(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}wh([pi],kF.prototype,"onKeyDown",null);var Yl;(function(o){o[o.Automatic=0]="Automatic",o[o.Trigger=1]="Trigger"})(Yl||(Yl={}));var Lu;(function(o){o[o.Idle=0]="Idle",o[o.Typing=1]="Typing"})(Lu||(Lu={}));const qQ=new class{mightProducePrintableCharacter(o){return o.ctrlKey||o.metaKey||o.altKey?!1:o.keyCode>=31&&o.keyCode<=56||o.keyCode>=21&&o.keyCode<=30||o.keyCode>=93&&o.keyCode<=102||o.keyCode>=80&&o.keyCode<=90}};class GQ{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=Lu.Idle,this.mode=Yl.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new Q,this.disposables=new Q,this.updateOptions(e.options)}updateOptions(e){var t,i;!((t=e.typeNavigationEnabled)!==null&&t!==void 0)||t?this.enable():this.disable(),this.mode=(i=e.typeNavigationMode)!==null&&i!==void 0?i:Yl.Automatic}enable(){if(this.enabled)return;let e=!1;const t=this.enabledDisposables.add(ge.chain(this.enabledDisposables.add(new bt(this.view.domNode,"keydown")).event)).filter(s=>!jd(s.target)).filter(()=>this.mode===Yl.Automatic||this.triggered).map(s=>new Rt(s)).filter(s=>e||this.keyboardNavigationEventFilter(s)).filter(s=>this.delegate.mightProducePrintableCharacter(s)).forEach(ND).map(s=>s.browserEvent.key).event,i=ge.debounce(t,()=>null,800,void 0,void 0,this.enabledDisposables);ge.reduce(ge.any(t,i),(s,r)=>r===null?null:(s||"")+r,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t(()=>e=!0,void 0,this.enabledDisposables),i(()=>e=!1,void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));i&&Gi(i)}this.previouslyFocused=-1}onInput(e){if(!e){this.state=Lu.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===Lu.Idle?1:0;this.state=Lu.Typing;for(let s=0;s"u"||x1(e,l)){this.previouslyFocused=i,this.list.setFocus([r]),this.list.reveal(r);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class ZQ{constructor(e,t){this.list=e,this.view=t,this.disposables=new Q,this.disposables.add(ge.chain(this.disposables.add(new bt(t.domNode,"keydown")).event)).filter(n=>!jd(n.target)).map(n=>new Rt(n)).filter(n=>n.keyCode===2&&!n.ctrlKey&&!n.metaKey&&!n.shiftKey&&!n.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(n instanceof HTMLElement)||n.tabIndex===-1)return;const s=window.getComputedStyle(n);s.visibility==="hidden"||s.display==="none"||(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function xF(o){return Ge?o.browserEvent.metaKey:o.browserEvent.ctrlKey}function IF(o){return o.browserEvent.shiftKey}function YQ(o){return o instanceof MouseEvent&&o.button===2}const OM={isSelectionSingleChangeEvent:xF,isSelectionRangeChangeEvent:IF};class EF{constructor(e){this.list=e,this.disposables=new Q,this._onPointer=new R,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(ft.addTarget(e.getHTMLElement()))),ge.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){yu(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(yu(e.browserEvent.target))return;const t=typeof e.index>"u"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.index;if(typeof t>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),YQ(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(jd(e.browserEvent.target)||yu(e.browserEvent.target)||this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(typeof i>"u"){const d=this.list.getFocus()[0];i=d!=null?d:t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),r=Cn(n,s+1),a=this.list.getSelection(),l=JQ(ck(a,[i]),i);if(l.length===0)return;const c=ck(r,eX(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),s=n.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class NF{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):Ge||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionOutline&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { outline-color: ${e.listFocusAndSelectionOutline} !important; }`),e.listFocusAndSelectionBackground&&i.push(` .monaco-drag-image, .monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; } `),e.listFocusAndSelectionForeground&&i.push(` @@ -582,15 +582,15 @@ ${CM(m.menuSubmenu)} background-color: ${e.tableOddRowsBackgroundColor}; } `),this.styleElement.textContent=i.join(` -`)}}const QQ={listFocusBackground:W.fromHex("#7FB0D0"),listActiveSelectionBackground:W.fromHex("#0E639C"),listActiveSelectionForeground:W.fromHex("#FFFFFF"),listActiveSelectionIconForeground:W.fromHex("#FFFFFF"),listFocusAndSelectionOutline:W.fromHex("#90C2F9"),listFocusAndSelectionBackground:W.fromHex("#094771"),listFocusAndSelectionForeground:W.fromHex("#FFFFFF"),listInactiveSelectionBackground:W.fromHex("#3F3F46"),listInactiveSelectionIconForeground:W.fromHex("#FFFFFF"),listHoverBackground:W.fromHex("#2A2D2E"),listDropBackground:W.fromHex("#383B3D"),treeIndentGuidesStroke:W.fromHex("#a9a9a9"),tableColumnsBorder:W.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:W.fromHex("#cccccc").transparent(.04)},XQ={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function JQ(o,e){const t=o.indexOf(e);if(t===-1)return[];const i=[];let n=t-1;for(;n>=0&&o[n]===e-(t-n);)i.push(o[n--]);for(i.reverse(),n=t;n=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){t.push(o[i]),i++,n++;continue}else o[i]=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){i++,n++;continue}else o[i]o-e;class tX{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,n){let s=0;for(const r of this.renderers)r.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let r=0;for(const a of this.renderers)(s=a.disposeElement)===null||s===void 0||s.call(a,e,t,i[r],n),r+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class iX{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const s=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof s=="number"?i.setAttribute("aria-level",`${s}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class nX{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var s,r;(r=(s=this.dnd).onDragLeave)===null||r===void 0||r.call(s,e,t,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class rr{constructor(e,t,i,n,s=XQ){var r,a,l,c;this.user=e,this._options=s,this.focus=new sC("focused"),this.anchor=new sC("anchor"),this.eventBufferer=new gI,this._ariaLabel="",this.disposables=new Q,this._onDidDispose=new R,this.onDidDispose=this._onDidDispose.event;const d=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new KQ(d!=="listbox"),Jr(s,QQ,!1);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new iX(this.accessibilityProvider)),(l=(a=this.accessibilityProvider).onDidChangeActiveDescendant)===null||l===void 0||l.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map(g=>new tX(g.templateId,[...h,g]));const u=Object.assign(Object.assign({},s),{dnd:s.dnd&&new nX(this,s.dnd)});if(this.view=new Lo(t,i,n,u),this.view.domNode.setAttribute("role",d),s.styleController)this.styleController=s.styleController(this.view.domId);else{const g=Qs(this.view.domNode);this.styleController=new N5(g,this.view.domId)}if(this.spliceable=new PQ([new qS(this.focus,this.view,s.identityProvider),new qS(this.selection,this.view,s.identityProvider),new qS(this.anchor,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new ZQ(this,this.view)),(typeof s.keyboardSupport!="boolean"||s.keyboardSupport)&&(this.keyboardController=new k5(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const g=s.keyboardNavigationDelegate||qQ;this.typeNavigationController=new GQ(this,this.view,s.keyboardNavigationLabelProvider,(c=s.keyboardNavigationEventFilter)!==null&&c!==void 0?c:()=>!0,g),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(s),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return ge.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return ge.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e),this.disposables)}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event)).map(s=>new Rt(s)).filter(s=>e=s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).filter(()=>!1).event,i=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keyup")).event)).forEach(()=>e=!1).map(s=>new Rt(s)).filter(s=>s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).map(({browserEvent:s})=>{const r=this.getFocus(),a=r.length?r[0]:void 0,l=typeof a<"u"?this.view.element(a):void 0,c=typeof a<"u"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:s}}).event,n=this.disposables.add(ge.chain(this.view.onContextMenu)).filter(s=>!e).map(({element:s,index:r,browserEvent:a})=>({element:s,index:r,anchor:{x:a.pageX+1,y:a.pageY},browserEvent:a})).event;return ge.any(t,i,n)}get onKeyDown(){return this.disposables.add(new bt(this.view.domNode,"keydown")).event}get onDidFocus(){return ge.signal(this.disposables.add(new bt(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new E5(this)}updateOptions(e={}){var t,i;this._options=Object.assign(Object.assign({},this._options),e),(t=this.typeNavigationController)===null||t===void 0||t.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(i=this.keyboardController)===null||i===void 0||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new Vh(this.user,`Invalid start index: ${e}`);if(t<0)throw new Vh(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new Vh(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return VO(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new Vh(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findNextIndex(s.length>0?s[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}focusNextPage(e,t){return RM(this,void 0,void 0,function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const n=this.getFocus()[0];if(n!==i&&(n===void 0||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let r=s+this.view.renderHeight;i>n&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==s&&(this.setFocus([]),yield sc(0),yield this.focusNextPage(e,t))}})}focusPreviousPage(e,t){return RM(this,void 0,void 0,function*(){let i;const n=this.view.getScrollTop();n===0?i=this.view.indexAt(n):i=this.view.indexAfter(n-1);const s=this.getFocus()[0];if(s!==i&&(s===void 0||s>=i)){const r=this.findNextIndex(i,!1,t);r>-1&&s!==r?this.setFocus([r],e):this.setFocus([i],e)}else{const r=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==r&&(this.setFocus([]),yield sc(0),yield this.focusPreviousPage(e,t))}})}focusLast(e,t){if(this.length===0)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(this.length===0)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e=e%this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(tc(t)){const r=s-this.view.renderHeight;this.view.setScrollTop(r*Zn(t,0,1)+n)}else{const r=n+s,a=i+this.view.renderHeight;n=a||(n=a&&s>=this.view.renderHeight?this.view.setScrollTop(n):r>=a&&this.view.setScrollTop(r-this.view.renderHeight))}}getHTMLElement(){return this.view.domNode}getElementID(e){return this.view.getElementDomId(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;!((e=this.accessibilityProvider)===null||e===void 0)&&e.getActiveDescendantId&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}wh([pi],rr.prototype,"onDidChangeFocus",null);wh([pi],rr.prototype,"onDidChangeSelection",null);wh([pi],rr.prototype,"onContextMenu",null);wh([pi],rr.prototype,"onKeyDown",null);wh([pi],rr.prototype,"onDidFocus",null);class sX{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:H.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),!i.data)return;const s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);const r=new Qi,a=s.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then(l=>this.renderer.renderElement(l,e,i.data,n))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class oX{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function rX(o,e){return Object.assign(Object.assign({},e),{accessibilityProvider:e.accessibilityProvider&&new oX(o,e.accessibilityProvider)})}class aX{constructor(e,t,i,n,s={}){const r=()=>this.model,a=n.map(l=>new sX(l,r));this.list=new rr(e,t,i,a,rX(r,s))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return ge.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return ge.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(n=>this._model.get(n)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Cn(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const lX={separatorBorder:W.transparent};class T5{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,t){var i,n;e!==this.visible&&(e?(this.size=Zn(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e),(n=(i=this.view).setVisible)===null||n===void 0||n.call(i,e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class cX extends T5{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class dX extends T5{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var Sa;(function(o){o[o.Idle=0]="Idle",o[o.Busy=1]="Busy"})(Sa||(Sa={}));var oC;(function(o){o.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}o.Split=e;function t(i){return{type:"invisible",cachedVisibleSize:i}}o.Invisible=t})(oC||(oC={}));class A5 extends H{constructor(e,t={}){var i,n,s,r,a;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=Sa.Idle,this._onDidSashChange=this._register(new R),this._onDidSashReset=this._register(new R),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(n=t.inverseAltBehavior)!==null&&n!==void 0?n:!1,this.proportionalLayout=(s=t.proportionalLayout)!==null&&s!==void 0?s:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=q(this.el,J(".sash-container")),this.viewContainer=J(".split-view-container"),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:Jo}),this.scrollableElement=this._register(new pE(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(l=>{this.viewContainer.scrollTop=l.scrollTop,this.viewContainer.scrollLeft=l.scrollLeft})),q(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||lX),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((l,c)=>{const d=Xn(l.visible)||l.visible?l.size:{type:"invisible",cachedVisibleSize:l.size},h=l.view;this.doAddView(h,d,c,!0)}),this.contentSize=this.viewItems.reduce((l,c)=>l+c.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let n=0;nthis.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const n=this.sashItems.findIndex(a=>a.sash===e),s=qo(G(document.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),G(document.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const c=this.viewItems.map(f=>f.size);let d=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(n===this.sashItems.length-1){const _=this.viewItems[n];d=(_.minimumSize-_.size)/2,h=(_.maximumSize-_.size)/2}else{const _=this.viewItems[n+1];d=(_.size-_.maximumSize)/2,h=(_.size-_.minimumSize)/2}let u,g;if(!l){const f=Cn(n,-1),_=Cn(n+1,this.viewItems.length),b=f.reduce((D,I)=>D+(this.viewItems[I].minimumSize-c[I]),0),v=f.reduce((D,I)=>D+(this.viewItems[I].viewMaximumSize-c[I]),0),C=_.length===0?Number.POSITIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].minimumSize),0),w=_.length===0?Number.NEGATIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].viewMaximumSize),0),S=Math.max(b,w),k=Math.min(C,v),x=this.findFirstSnapIndex(f),y=this.findFirstSnapIndex(_);if(typeof x=="number"){const D=this.viewItems[x],I=Math.floor(D.viewMinimumSize/2);u={index:x,limitDelta:D.visible?S-I:S+I,size:D.size}}if(typeof y=="number"){const D=this.viewItems[y],I=Math.floor(D.viewMinimumSize/2);g={index:y,limitDelta:D.visible?k+I:k-I,size:D.size}}}this.sashDragState={start:a,current:a,index:n,sizes:c,minDelta:d,maxDelta:h,alt:l,snapBefore:u,snapAfter:g,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:s,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const d=e-i,h=this.resize(t,d,n,void 0,void 0,r,a,l,c);if(s){const u=t===this.sashItems.length-1,g=this.viewItems.map(w=>w.size),f=u?t:t+1,_=this.viewItems[f],b=_.size-_.maximumSize,v=_.size-_.minimumSize,C=u?t-1:t+1;this.resize(C,-h,g,void 0,void 0,b,v)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=Zn(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==Sa.Idle)throw new Error("Cant modify splitview");if(this.state=Sa.Busy,e<0||e>=this.viewItems.length)return;const i=Cn(this.viewItems.length).filter(a=>a!==e),n=[...i.filter(a=>this.viewItems[a].priority===1),e],s=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=Zn(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,s),this.state=Sa.Idle}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=Zn(i,a.minimumSize,a.maximumSize);const n=Cn(this.viewItems.length),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.relayout(s,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==Sa.Idle)throw new Error("Cant modify splitview");this.state=Sa.Busy;const s=J(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(i));const r=e.onDidChange(u=>this.onViewChange(d,u)),a=Be(()=>this.viewContainer.removeChild(s)),l=qo(r,a);let c;typeof t=="number"?c=t:t.type==="split"?c=this.getViewSize(t.index)/2:t.type==="invisible"?c={cachedVisibleSize:t.cachedVisibleSize}:c=e.minimumSize;const d=this.orientation===0?new cX(s,e,c,l):new dX(s,e,c,l);if(this.viewItems.splice(i,0,d),this.viewItems.length>1){const u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},g=this.orientation===0?new tn(this.sashContainer,{getHorizontalSashTop:D=>this.getSashPosition(D),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:1})):new tn(this.sashContainer,{getVerticalSashLeft:D=>this.getSashPosition(D),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:0})),f=this.orientation===0?D=>({sash:g,start:D.startY,current:D.currentY,alt:D.altKey}):D=>({sash:g,start:D.startX,current:D.currentX,alt:D.altKey}),b=ge.map(g.onDidStart,f)(this.onSashStart,this),C=ge.map(g.onDidChange,f)(this.onSashChange,this),S=ge.map(g.onDidEnd,()=>this.sashItems.findIndex(D=>D.sash===g))(this.onSashEnd,this),k=g.onDidReset(()=>{const D=this.sashItems.findIndex(j=>j.sash===g),I=Cn(D,-1),O=Cn(D+1,this.viewItems.length),F=this.findFirstSnapIndex(I),z=this.findFirstSnapIndex(O);typeof F=="number"&&!this.viewItems[F].visible||typeof z=="number"&&!this.viewItems[z].visible||this._onDidSashReset.fire(D)}),x=qo(b,C,S,k,g),y={sash:g,disposable:x};this.sashItems.splice(i-1,0,y)}s.appendChild(e.element);let h;typeof t!="number"&&t.type==="split"&&(h=[t.index]),n||this.relayout([i],h),this.state=Sa.Idle,!n&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce((n,s)=>n+s.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(d=>d.size),n,s,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const d=Cn(e,-1),h=Cn(e+1,this.viewItems.length);if(s)for(const y of s)Pw(d,y),Pw(h,y);if(n)for(const y of n)G_(d,y),G_(h,y);const u=d.map(y=>this.viewItems[y]),g=d.map(y=>i[y]),f=h.map(y=>this.viewItems[y]),_=h.map(y=>i[y]),b=d.reduce((y,D)=>y+(this.viewItems[D].minimumSize-i[D]),0),v=d.reduce((y,D)=>y+(this.viewItems[D].maximumSize-i[D]),0),C=h.length===0?Number.POSITIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].minimumSize),0),w=h.length===0?Number.NEGATIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].maximumSize),0),S=Math.max(b,w,r),k=Math.min(C,v,a);let x=!1;if(l){const y=this.viewItems[l.index],D=t>=l.limitDelta;x=D!==y.visible,y.setVisible(D,l.size)}if(!x&&c){const y=this.viewItems[c.index],D=ta+l.size,0);let i=this.size-t;const n=Cn(this.viewItems.length-1,-1),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);for(const a of r)Pw(n,a);for(const a of s)G_(n,a);typeof e=="number"&&G_(n,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),n=[...this.viewItems].reverse();e=!1;const s=n.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=n.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?c.state=1:C&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}dispose(){super.dispose(),nt(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}class S_{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=S_.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map(s=>[s.templateId,s]));this.renderers=[];for(const s of e){const r=n.get(s.templateId);if(!r)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=q(e,J(".monaco-table-tr")),i=[],n=[];for(let r=0;rnew uX(d,h)),l={size:a.reduce((d,h)=>d+h.column.weight,0),views:a.map(d=>({size:d.column.weight,view:d}))};this.splitview=this.disposables.add(new A5(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const c=new S_(n,s,d=>this.splitview.getViewSize(d));this.list=this.disposables.add(new rr(e,this.domNode,hX(i),[c],r)),ge.any(...a.map(d=>d.onDidLayout))(([d,h])=>c.layoutColumn(d,h),null,this.disposables),this.splitview.onDidSashReset(d=>{const h=n.reduce((g,f)=>g+f.weight,0),u=n[d].weight/h*this.cachedWidth;this.splitview.resizeView(d,u)},null,this.disposables),this.styleElement=Qs(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { +`)}}const QQ={listFocusBackground:W.fromHex("#7FB0D0"),listActiveSelectionBackground:W.fromHex("#0E639C"),listActiveSelectionForeground:W.fromHex("#FFFFFF"),listActiveSelectionIconForeground:W.fromHex("#FFFFFF"),listFocusAndSelectionOutline:W.fromHex("#90C2F9"),listFocusAndSelectionBackground:W.fromHex("#094771"),listFocusAndSelectionForeground:W.fromHex("#FFFFFF"),listInactiveSelectionBackground:W.fromHex("#3F3F46"),listInactiveSelectionIconForeground:W.fromHex("#FFFFFF"),listHoverBackground:W.fromHex("#2A2D2E"),listDropBackground:W.fromHex("#383B3D"),treeIndentGuidesStroke:W.fromHex("#a9a9a9"),tableColumnsBorder:W.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:W.fromHex("#cccccc").transparent(.04)},XQ={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function JQ(o,e){const t=o.indexOf(e);if(t===-1)return[];const i=[];let n=t-1;for(;n>=0&&o[n]===e-(t-n);)i.push(o[n--]);for(i.reverse(),n=t;n=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){t.push(o[i]),i++,n++;continue}else o[i]=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){i++,n++;continue}else o[i]o-e;class tX{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,n){let s=0;for(const r of this.renderers)r.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let r=0;for(const a of this.renderers)(s=a.disposeElement)===null||s===void 0||s.call(a,e,t,i[r],n),r+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class iX{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const s=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof s=="number"?i.setAttribute("aria-level",`${s}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class nX{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var s,r;(r=(s=this.dnd).onDragLeave)===null||r===void 0||r.call(s,e,t,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class rr{constructor(e,t,i,n,s=XQ){var r,a,l,c;this.user=e,this._options=s,this.focus=new sC("focused"),this.anchor=new sC("anchor"),this.eventBufferer=new gI,this._ariaLabel="",this.disposables=new Q,this._onDidDispose=new R,this.onDidDispose=this._onDidDispose.event;const d=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new KQ(d!=="listbox"),Jr(s,QQ,!1);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new iX(this.accessibilityProvider)),(l=(a=this.accessibilityProvider).onDidChangeActiveDescendant)===null||l===void 0||l.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map(g=>new tX(g.templateId,[...h,g]));const u=Object.assign(Object.assign({},s),{dnd:s.dnd&&new nX(this,s.dnd)});if(this.view=new Lo(t,i,n,u),this.view.domNode.setAttribute("role",d),s.styleController)this.styleController=s.styleController(this.view.domId);else{const g=Qs(this.view.domNode);this.styleController=new NF(g,this.view.domId)}if(this.spliceable=new PQ([new qS(this.focus,this.view,s.identityProvider),new qS(this.selection,this.view,s.identityProvider),new qS(this.anchor,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new ZQ(this,this.view)),(typeof s.keyboardSupport!="boolean"||s.keyboardSupport)&&(this.keyboardController=new kF(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const g=s.keyboardNavigationDelegate||qQ;this.typeNavigationController=new GQ(this,this.view,s.keyboardNavigationLabelProvider,(c=s.keyboardNavigationEventFilter)!==null&&c!==void 0?c:()=>!0,g),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(s),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return ge.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return ge.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e),this.disposables)}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event)).map(s=>new Rt(s)).filter(s=>e=s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).filter(()=>!1).event,i=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keyup")).event)).forEach(()=>e=!1).map(s=>new Rt(s)).filter(s=>s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).map(({browserEvent:s})=>{const r=this.getFocus(),a=r.length?r[0]:void 0,l=typeof a<"u"?this.view.element(a):void 0,c=typeof a<"u"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:s}}).event,n=this.disposables.add(ge.chain(this.view.onContextMenu)).filter(s=>!e).map(({element:s,index:r,browserEvent:a})=>({element:s,index:r,anchor:{x:a.pageX+1,y:a.pageY},browserEvent:a})).event;return ge.any(t,i,n)}get onKeyDown(){return this.disposables.add(new bt(this.view.domNode,"keydown")).event}get onDidFocus(){return ge.signal(this.disposables.add(new bt(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new EF(this)}updateOptions(e={}){var t,i;this._options=Object.assign(Object.assign({},this._options),e),(t=this.typeNavigationController)===null||t===void 0||t.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(i=this.keyboardController)===null||i===void 0||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new Vh(this.user,`Invalid start index: ${e}`);if(t<0)throw new Vh(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new Vh(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return VO(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new Vh(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findNextIndex(s.length>0?s[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}focusNextPage(e,t){return RM(this,void 0,void 0,function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const n=this.getFocus()[0];if(n!==i&&(n===void 0||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let r=s+this.view.renderHeight;i>n&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==s&&(this.setFocus([]),yield sc(0),yield this.focusNextPage(e,t))}})}focusPreviousPage(e,t){return RM(this,void 0,void 0,function*(){let i;const n=this.view.getScrollTop();n===0?i=this.view.indexAt(n):i=this.view.indexAfter(n-1);const s=this.getFocus()[0];if(s!==i&&(s===void 0||s>=i)){const r=this.findNextIndex(i,!1,t);r>-1&&s!==r?this.setFocus([r],e):this.setFocus([i],e)}else{const r=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==r&&(this.setFocus([]),yield sc(0),yield this.focusPreviousPage(e,t))}})}focusLast(e,t){if(this.length===0)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(this.length===0)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e=e%this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(tc(t)){const r=s-this.view.renderHeight;this.view.setScrollTop(r*Zn(t,0,1)+n)}else{const r=n+s,a=i+this.view.renderHeight;n=a||(n=a&&s>=this.view.renderHeight?this.view.setScrollTop(n):r>=a&&this.view.setScrollTop(r-this.view.renderHeight))}}getHTMLElement(){return this.view.domNode}getElementID(e){return this.view.getElementDomId(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;!((e=this.accessibilityProvider)===null||e===void 0)&&e.getActiveDescendantId&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}wh([pi],rr.prototype,"onDidChangeFocus",null);wh([pi],rr.prototype,"onDidChangeSelection",null);wh([pi],rr.prototype,"onContextMenu",null);wh([pi],rr.prototype,"onKeyDown",null);wh([pi],rr.prototype,"onDidFocus",null);class sX{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:H.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),!i.data)return;const s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);const r=new Qi,a=s.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then(l=>this.renderer.renderElement(l,e,i.data,n))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class oX{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function rX(o,e){return Object.assign(Object.assign({},e),{accessibilityProvider:e.accessibilityProvider&&new oX(o,e.accessibilityProvider)})}class aX{constructor(e,t,i,n,s={}){const r=()=>this.model,a=n.map(l=>new sX(l,r));this.list=new rr(e,t,i,a,rX(r,s))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return ge.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return ge.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(n=>this._model.get(n)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Cn(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const lX={separatorBorder:W.transparent};class TF{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,t){var i,n;e!==this.visible&&(e?(this.size=Zn(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e),(n=(i=this.view).setVisible)===null||n===void 0||n.call(i,e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class cX extends TF{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class dX extends TF{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var Sa;(function(o){o[o.Idle=0]="Idle",o[o.Busy=1]="Busy"})(Sa||(Sa={}));var oC;(function(o){o.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}o.Split=e;function t(i){return{type:"invisible",cachedVisibleSize:i}}o.Invisible=t})(oC||(oC={}));class AF extends H{constructor(e,t={}){var i,n,s,r,a;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=Sa.Idle,this._onDidSashChange=this._register(new R),this._onDidSashReset=this._register(new R),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(n=t.inverseAltBehavior)!==null&&n!==void 0?n:!1,this.proportionalLayout=(s=t.proportionalLayout)!==null&&s!==void 0?s:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=q(this.el,J(".sash-container")),this.viewContainer=J(".split-view-container"),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:Jo}),this.scrollableElement=this._register(new pE(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(l=>{this.viewContainer.scrollTop=l.scrollTop,this.viewContainer.scrollLeft=l.scrollLeft})),q(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||lX),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((l,c)=>{const d=Xn(l.visible)||l.visible?l.size:{type:"invisible",cachedVisibleSize:l.size},h=l.view;this.doAddView(h,d,c,!0)}),this.contentSize=this.viewItems.reduce((l,c)=>l+c.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let n=0;nthis.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const n=this.sashItems.findIndex(a=>a.sash===e),s=qo(G(document.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),G(document.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const c=this.viewItems.map(f=>f.size);let d=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(n===this.sashItems.length-1){const _=this.viewItems[n];d=(_.minimumSize-_.size)/2,h=(_.maximumSize-_.size)/2}else{const _=this.viewItems[n+1];d=(_.size-_.maximumSize)/2,h=(_.size-_.minimumSize)/2}let u,g;if(!l){const f=Cn(n,-1),_=Cn(n+1,this.viewItems.length),b=f.reduce((D,I)=>D+(this.viewItems[I].minimumSize-c[I]),0),v=f.reduce((D,I)=>D+(this.viewItems[I].viewMaximumSize-c[I]),0),C=_.length===0?Number.POSITIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].minimumSize),0),w=_.length===0?Number.NEGATIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].viewMaximumSize),0),S=Math.max(b,w),k=Math.min(C,v),x=this.findFirstSnapIndex(f),y=this.findFirstSnapIndex(_);if(typeof x=="number"){const D=this.viewItems[x],I=Math.floor(D.viewMinimumSize/2);u={index:x,limitDelta:D.visible?S-I:S+I,size:D.size}}if(typeof y=="number"){const D=this.viewItems[y],I=Math.floor(D.viewMinimumSize/2);g={index:y,limitDelta:D.visible?k+I:k-I,size:D.size}}}this.sashDragState={start:a,current:a,index:n,sizes:c,minDelta:d,maxDelta:h,alt:l,snapBefore:u,snapAfter:g,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:s,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const d=e-i,h=this.resize(t,d,n,void 0,void 0,r,a,l,c);if(s){const u=t===this.sashItems.length-1,g=this.viewItems.map(w=>w.size),f=u?t:t+1,_=this.viewItems[f],b=_.size-_.maximumSize,v=_.size-_.minimumSize,C=u?t-1:t+1;this.resize(C,-h,g,void 0,void 0,b,v)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=Zn(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==Sa.Idle)throw new Error("Cant modify splitview");if(this.state=Sa.Busy,e<0||e>=this.viewItems.length)return;const i=Cn(this.viewItems.length).filter(a=>a!==e),n=[...i.filter(a=>this.viewItems[a].priority===1),e],s=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=Zn(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,s),this.state=Sa.Idle}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=Zn(i,a.minimumSize,a.maximumSize);const n=Cn(this.viewItems.length),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.relayout(s,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==Sa.Idle)throw new Error("Cant modify splitview");this.state=Sa.Busy;const s=J(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(i));const r=e.onDidChange(u=>this.onViewChange(d,u)),a=Be(()=>this.viewContainer.removeChild(s)),l=qo(r,a);let c;typeof t=="number"?c=t:t.type==="split"?c=this.getViewSize(t.index)/2:t.type==="invisible"?c={cachedVisibleSize:t.cachedVisibleSize}:c=e.minimumSize;const d=this.orientation===0?new cX(s,e,c,l):new dX(s,e,c,l);if(this.viewItems.splice(i,0,d),this.viewItems.length>1){const u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},g=this.orientation===0?new tn(this.sashContainer,{getHorizontalSashTop:D=>this.getSashPosition(D),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:1})):new tn(this.sashContainer,{getVerticalSashLeft:D=>this.getSashPosition(D),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:0})),f=this.orientation===0?D=>({sash:g,start:D.startY,current:D.currentY,alt:D.altKey}):D=>({sash:g,start:D.startX,current:D.currentX,alt:D.altKey}),b=ge.map(g.onDidStart,f)(this.onSashStart,this),C=ge.map(g.onDidChange,f)(this.onSashChange,this),S=ge.map(g.onDidEnd,()=>this.sashItems.findIndex(D=>D.sash===g))(this.onSashEnd,this),k=g.onDidReset(()=>{const D=this.sashItems.findIndex(j=>j.sash===g),I=Cn(D,-1),O=Cn(D+1,this.viewItems.length),F=this.findFirstSnapIndex(I),z=this.findFirstSnapIndex(O);typeof F=="number"&&!this.viewItems[F].visible||typeof z=="number"&&!this.viewItems[z].visible||this._onDidSashReset.fire(D)}),x=qo(b,C,S,k,g),y={sash:g,disposable:x};this.sashItems.splice(i-1,0,y)}s.appendChild(e.element);let h;typeof t!="number"&&t.type==="split"&&(h=[t.index]),n||this.relayout([i],h),this.state=Sa.Idle,!n&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce((n,s)=>n+s.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(d=>d.size),n,s,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const d=Cn(e,-1),h=Cn(e+1,this.viewItems.length);if(s)for(const y of s)Pw(d,y),Pw(h,y);if(n)for(const y of n)G_(d,y),G_(h,y);const u=d.map(y=>this.viewItems[y]),g=d.map(y=>i[y]),f=h.map(y=>this.viewItems[y]),_=h.map(y=>i[y]),b=d.reduce((y,D)=>y+(this.viewItems[D].minimumSize-i[D]),0),v=d.reduce((y,D)=>y+(this.viewItems[D].maximumSize-i[D]),0),C=h.length===0?Number.POSITIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].minimumSize),0),w=h.length===0?Number.NEGATIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].maximumSize),0),S=Math.max(b,w,r),k=Math.min(C,v,a);let x=!1;if(l){const y=this.viewItems[l.index],D=t>=l.limitDelta;x=D!==y.visible,y.setVisible(D,l.size)}if(!x&&c){const y=this.viewItems[c.index],D=ta+l.size,0);let i=this.size-t;const n=Cn(this.viewItems.length-1,-1),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);for(const a of r)Pw(n,a);for(const a of s)G_(n,a);typeof e=="number"&&G_(n,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),n=[...this.viewItems].reverse();e=!1;const s=n.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=n.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?c.state=1:C&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}dispose(){super.dispose(),nt(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}class S_{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=S_.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map(s=>[s.templateId,s]));this.renderers=[];for(const s of e){const r=n.get(s.templateId);if(!r)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=q(e,J(".monaco-table-tr")),i=[],n=[];for(let r=0;rnew uX(d,h)),l={size:a.reduce((d,h)=>d+h.column.weight,0),views:a.map(d=>({size:d.column.weight,view:d}))};this.splitview=this.disposables.add(new AF(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const c=new S_(n,s,d=>this.splitview.getViewSize(d));this.list=this.disposables.add(new rr(e,this.domNode,hX(i),[c],r)),ge.any(...a.map(d=>d.onDidLayout))(([d,h])=>c.layoutColumn(d,h),null,this.disposables),this.splitview.onDidSashReset(d=>{const h=n.reduce((g,f)=>g+f.weight,0),u=n[d].weight/h*this.cachedWidth;this.splitview.resizeView(d,u)},null,this.disposables),this.styleElement=Qs(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { top: ${this.virtualDelegate.headerRowHeight+1}px; height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); }`),this.styleElement.textContent=t.join(` -`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}F1.InstanceCount=0;const gX={inputActiveOptionBorder:W.fromHex("#007ACC00"),inputActiveOptionForeground:W.fromHex("#FFFFFF"),inputActiveOptionBackground:W.fromHex("#0E639C50")};class y_ extends yo{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},gX),e),this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...Ln.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,i=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault(),i.stopPropagation();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const fX=p("caseDescription","Match Case"),pX=p("wordsDescription","Match Whole Word"),mX=p("regexDescription","Use Regular Expression");class M5 extends y_{constructor(e){super({icon:m.caseSensitive,title:fX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class R5 extends y_{constructor(e){super({icon:m.wholeWord,title:pX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class O5 extends y_{constructor(e){super({icon:m.regex,title:mX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}const _X=p("defaultLabel","input");class bX extends yo{constructor(e,t,i,n){var s;super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onCaseSensitiveKeyDown=this._register(new R),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new R),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||_X,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const r=n.appendCaseSensitiveLabel||"",a=n.appendWholeWordsLabel||"",l=n.appendRegexLabel||"",c=n.history||[],d=!!n.flexibleHeight,h=!!n.flexibleWidth,u=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new y5(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:c,showHistoryHint:n.showHistoryHint,flexibleHeight:d,flexibleWidth:h,flexibleMaxHeight:u})),this.regex=this._register(new O5({appendTitle:l,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(f=>{this._onRegexKeyDown.fire(f)})),this.wholeWords=this._register(new R5({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new M5({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(f=>{this._onCaseSensitiveKeyDown.fire(f)}));const g=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,f=>{if(f.equals(15)||f.equals(17)||f.equals(9)){const _=g.indexOf(document.activeElement);if(_>=0){let b=-1;f.equals(17)?b=(_+1)%g.length:f.equals(15)&&(_===0?b=g.length-1:b=_-1),f.equals(9)?(g[_].blur(),this.inputBox.focus()):b>=0&&g[b].focus(),ut.stop(f,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this._showOptionButtons||(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none");for(const f of(s=n==null?void 0:n.additionalToggles)!==null&&s!==void 0?s:[])this._register(f),this.controls.appendChild(f.domNode),this._register(f.onChange(_=>{this._onDidOptionChange.fire(_),!_&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(f);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((f,_)=>f+_.width(),0),this.domNode.appendChild(this.controls),e==null||e.appendChild(this.domNode),this._register(G(this.inputBox.inputElement,"compositionstart",f=>{this.imeSessionInProgress=!0})),this._register(G(this.inputBox.inputElement,"compositionend",f=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,f=>this._onKeyDown.fire(f)),this.onkeyup(this.inputBox.inputElement,f=>this._onKeyUp.fire(f)),this.oninput(this.inputBox.inputElement,f=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,f=>this._onMouseDown.fire(f))}get onDidChange(){return this.inputBox.onDidChange}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);for(const i of this.additionalToggles)i.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}var gd;(function(o){o[o.Unknown=0]="Unknown",o[o.Twistie=1]="Twistie",o[o.Element=2]="Element",o[o.Filter=3]="Filter"})(gd||(gd={}));class Ws extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class aN{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function lN(o){return typeof o=="object"&&"visibility"in o&&"data"in o}function Lm(o){switch(o){case!0:return 1;case!1:return 0;default:return o}}function GS(o){return typeof o.collapsible=="boolean"}class vX{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new gI,this._onDidChangeCollapseState=new R,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new R,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new R,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new Kr(RP),this.collapseByDefault=typeof n.collapseByDefault>"u"?!1:n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=typeof n.autoExpandSingleChildren>"u"?!1:n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=je.empty(),n={}){if(e.length===0)throw new Ws(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,s,r){var a;n===void 0&&(n=je.empty()),r===void 0&&(r=(a=s.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const c=[...n],d=t[t.length-1],h=new xr({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,d),...c,...l.children.slice(d+i)].map(b=>e.getId(b.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,s);const u=t.slice(0,-1),g=(b,v,C)=>{if(r>0)for(let w=0;wC.originalStart-v.originalStart))g(f,_,f-(b.originalStart+b.originalLength)),f=b.originalStart,_=b.modifiedStart-d,this.spliceSimple([...u,f],b.originalLength,je.slice(c,_,_+b.modifiedLength),s);g(f,_,f)}spliceSimple(e,t,i=je.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),h=[],u=je.map(i,y=>this.createTreeNode(y,a,a.visible?1:0,c,h,n)),g=e[e.length-1],f=a.children.length>0;let _=0;for(let y=g;y>=0&&yr.getId(y.element).toString())):a.lastDiffIds=a.children.map(y=>r.getId(y.element).toString()):a.lastDiffIds=void 0;let S=0;for(const y of w)y.visible&&S++;if(S!==0)for(let y=g+b.length;yD+(I.visible?I.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,C-y),this.list.splice(l,y,h)}if(w.length>0&&s){const y=D=>{s(D),D.children.forEach(y)};w.forEach(y)}this._onDidSplice.fire({insertedNodes:b,deletedNodes:w});const k=a.children.length>0;f!==k&&this.setCollapsible(e.slice(0,-1),k);let x=a;for(;x;){if(x.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}x=x.parent}}rerender(e){if(e.length===0)throw new Ws(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t>"u"&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);typeof t>"u"&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!GS(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(GS(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!GS(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,n&&s.push(a);const c=e.children||je.empty(),d=n&&l!==0&&!a.collapsed,h=je.map(c,f=>this.createTreeNode(f,a,l,d,s,r));let u=0,g=1;for(const f of h)a.children.push(f),g+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=u++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=u,a.visible=l===2?u>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=g):(a.renderNodeCount=0,n&&s.pop()),r==null||r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(s=this._filterNode(e,t),s===0)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||s!==0){let l=0;for(const c of e.children)a=this._updateNodeAfterFilterChange(c,s,i,n&&!e.collapsed)||a,c.visible&&(c.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=s===2?a:s===1,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):lN(i)?(e.filterData=i.data,Lm(i.visibility)):(e.filterData=void 0,Lm(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...n]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new Ws(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:s}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:n,visible:s&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,s=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function ZS(o){return o instanceof w_?new wX(o):o}class SX{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=H.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,ZS(e),t)}onDragOver(e,t,i,n,s=!0){const r=this.dnd.onDragOver(ZS(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t>"u")return r;if(a&&typeof r!="boolean"&&r.autoExpand&&(this.autoExpandDisposable=Ad(()=>{const u=this.modelProvider(),g=u.getNodeLocation(t);u.isCollapsed(g)&&u.setCollapsed(g,!1),this.autoExpandNode=void 0},500)),typeof r=="boolean"||!r.accept||typeof r.bubble>"u"||r.feedback){if(!s){const u=typeof r=="boolean"?r:r.accept,g=typeof r=="boolean"?void 0:r.effect;return{accept:u,effect:g,feedback:[i]}}return r}if(r.bubble===1){const u=this.modelProvider(),g=u.getNodeLocation(t),f=u.getParentNodeLocation(g),_=u.getNode(f),b=f&&u.getListIndex(f);return this.onDragOver(e,_,b,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),h=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:Cn(d,d+h)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ZS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function yX(o,e){return e&&Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new SX(o,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getSetSize(t){const i=o(),n=i.getNodeLocation(t),s=i.getParentNodeLocation(n);return i.getNode(s).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}})})}class cN{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;(n=(i=this.delegate).setDynamicHeight)===null||n===void 0||n.call(i,e.element,t)}}var Dm;(function(o){o.None="none",o.OnHover="onHover",o.Always="always"})(Dm||(Dm={}));class LX{constructor(e,t=[]){this._elements=t,this.disposables=new Q,this.onDidChange=ge.forEach(e,i=>this._elements=i,this.disposables)}get elements(){return this._elements}dispose(){this.disposables.dispose()}}class km{constructor(e,t,i,n,s={}){var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=km.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new CX,this.activeIndentNodes=new Set,this.indentGuidesDisposable=H.None,this.disposables=new Q,this.templateId=e.templateId,this.updateOptions(s),ge.map(i,a=>a.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(r=e.onDidChangeTwistieState)===null||r===void 0||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent<"u"&&(this.indent=Zn(e.indent,0,40)),typeof e.renderIndentGuides<"u"){const t=e.renderIndentGuides!==Dm.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const i=new Q;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof e.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=q(e,J(".monaco-tl-row")),i=q(t,J(".monaco-tl-indent")),n=q(t,J(".monaco-tl-twistie")),s=q(t,J(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:n,indentGuidesDisposable:H.None,templateData:r}}renderElement(e,t,i,n){typeof n=="number"&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));const s=km.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${s}px`,i.indent.style.width=`${s+this.indent-16}px`,this.renderTwistie(e,i),typeof n=="number"&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,r;i.indentGuidesDisposable.dispose(),(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,e,t,i.templateData,n),typeof n=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);!t||this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);!t||(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...m.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...m.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Si(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new Q,n=this.modelProvider();let s=e;for(;;){const r=n.getNodeLocation(s),a=n.getParentNodeLocation(r);if(!a)break;const l=n.getNode(a),c=J(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add(Be(()=>this.renderedIndentGuides.delete(l,c))),s=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(n=>{const s=i.getNodeLocation(n);try{const r=i.getParentNodeLocation(s);n.collapsible&&n.children.length>0&&!n.collapsed?t.add(n):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(n=>{t.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.remove("active"))}),t.forEach(n=>{this.activeIndentNodes.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),nt(this.disposables)}}km.DefaultIndent=8;class DX{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new Q,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}filter(e,t){let i=1;if(this._filter){const r=this._filter.filter(e,t);if(typeof r=="boolean"?i=r?1:0:lN(r)?i=Lm(r.visibility):i=r,i===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:Zo.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const r of s){const a=r&&r.toString();if(typeof a>"u")return{data:Zo.Default,visibility:i};const l=mg(this._pattern,this._lowercasePattern,0,a,a.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(l)return this._matchCount++,s.length===1?{data:l,visibility:i}:{data:{label:a,score:l},visibility:i}}return this.tree.findMode===Fr.Filter?2:{data:Zo.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){nt(this.disposables)}}var Fr;(function(o){o[o.Highlight=0]="Highlight",o[o.Filter=1]="Filter"})(Fr||(Fr={}));class kX{constructor(e,t,i,n,s){var r;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this._pattern="",this.width=0,this._onDidChangeMode=new R,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangePattern=new R,this._onDidChangeOpenState=new R,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new Q,this.disposables=new Q,this._mode=(r=e.options.defaultFindMode)!==null&&r!==void 0?r:Fr.Highlight,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var e,t;const i=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&i?(e=this.widget)===null||e===void 0||e.showMessage({type:2,content:p("not found","No elements found.")}):(t=this.widget)===null||t===void 0||t.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===Fr.Filter||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!Zo.isDefault(e.filterData)}style(e){var t;this.styles=e,(t=this.widget)===null||t===void 0||t.style(e)}layout(e){var t;this.width=e,(t=this.widget)===null||t===void 0||t.layout(e)}dispose(){this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function FM(o){let e=gd.Unknown;return rS(o.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=gd.Twistie:rS(o.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?e=gd.Element:rS(o.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(e=gd.Filter),{browserEvent:o.browserEvent,element:o.element?o.element.element:null,target:e}}function D0(o,e){e(o),o.children.forEach(t=>D0(t,e))}class YS{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new R,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(t!=null&&t.__forceEvent)&&Ss(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),c=d=>l.delete(d);t.forEach(d=>D0(d,c)),this.set([...l.values()]);return}const i=new Set,n=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>D0(l,n));const s=new Map,r=l=>s.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>D0(l,r));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const h=s.get(c);h&&a.push(h)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class xX extends E5{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(D5(e.browserEvent.target)||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let s=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?s=this.tree.expandOnlyOnTwistieClick(t.element):s=!!this.tree.expandOnlyOnTwistieClick,s&&!n&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e);if(t.collapsible){const r=this.tree.model,a=r.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),r.setCollapsed(a,void 0,l),s&&n)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick(e)}}class IX extends rr{constructor(e,t,i,n,s,r,a,l){super(e,t,i,n,l),this.focusTrait=s,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new xX(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const n=[],s=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&n.push(e+l),this.selectionTrait.has(a)&&s.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),n.length>0&&super.setFocus(Qa([...super.getFocus(),...n])),s.length>0&&super.setSelection(Qa([...super.getSelection(),...s])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(n=>this.element(n)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(n=>this.element(n)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class P5{constructor(e,t,i,n,s={}){var r;this._user=e,this._options=s,this.eventBufferer=new gI,this.onDidChangeFindOpenState=ge.None,this.disposables=new Q,this._onWillRefilter=new R,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new R;const a=new cN(i),l=new AT,c=new AT,d=this.disposables.add(new LX(c.event));this.renderers=n.map(g=>new km(g,()=>this.model,l.event,d,s));for(const g of this.renderers)this.disposables.add(g);let h;s.keyboardNavigationLabelProvider&&(h=new DX(this,s.keyboardNavigationLabelProvider,s.filter),s=Object.assign(Object.assign({},s),{filter:h}),this.disposables.add(h)),this.focus=new YS(()=>this.view.getFocusedElements()[0],s.identityProvider),this.selection=new YS(()=>this.view.getSelectedElements()[0],s.identityProvider),this.anchor=new YS(()=>this.view.getAnchorElement(),s.identityProvider),this.view=new IX(e,t,a,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},yX(()=>this.model,s)),{tree:this})),this.model=this.createModel(e,this.view,s),l.input=this.model.onDidChangeCollapseState;const u=ge.forEach(this.model.onDidSplice,g=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(g),this.selection.onDidModelSplice(g)})},this.disposables);if(u(()=>null,null,this.disposables),c.input=ge.chain(ge.any(u,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const g=new Set;for(const f of this.focus.getNodes())g.add(f);for(const f of this.selection.getNodes())g.add(f);return[...g.values()]}).event,s.keyboardSupport!==!1){const g=ge.chain(this.view.onKeyDown).filter(f=>!jd(f.target)).map(f=>new Rt(f));g.filter(f=>f.keyCode===15).on(this.onLeftArrow,this,this.disposables),g.filter(f=>f.keyCode===17).on(this.onRightArrow,this,this.disposables),g.filter(f=>f.keyCode===10).on(this.onSpace,this,this.disposables)}((r=s.findWidgetEnabled)!==null&&r!==void 0?r:!0)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider?(this.findController=new kX(this,this.model,this.view,h,s.contextViewProvider),this.focusNavigationFilter=g=>this.findController.shouldAllowFocus(g),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode):this.onDidChangeFindMode=ge.None,this.styleElement=Qs(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return ge.filter(ge.map(this.view.onMouseDblClick,FM),e=>e.target!==gd.Filter)}get onPointer(){return ge.map(this.view.onPointer,FM)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return ge.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return(t=(e=this.findController)===null||e===void 0?void 0:e.mode)!==null&&t!==void 0?t:Fr.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),tc(t)&&((i=this.findController)===null||i===void 0||i.layout(t))}style(e){var t;const i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=n.join(` -`),(t=this.findController)===null||t===void 0||t.style(e),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(s=>this.model.getNode(s));this.selection.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(s=>this.model.getNode(s));this.focus.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);i!==-1&&this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const r=this.model.getParentNodeLocation(n);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){nt(this.disposables),this.view.dispose()}}class dN{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new vX(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(n,s){return i.sorter.compare(n.element,s.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=je.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=je.empty(),i){const n=new Set,s=new Set,r=l=>{var c;if(l.element===null)return;const d=l;if(n.add(d.element),this.nodes.set(d.element,d),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.add(h),this.nodesByIdentity.set(h,d)}(c=i.onDidCreateNode)===null||c===void 0||c.call(i,d)},a=l=>{var c;if(l.element===null)return;const d=l;if(n.has(d.element)||this.nodes.delete(d.element),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.has(h)||this.nodesByIdentity.delete(h)}(c=i.onDidDeleteNode)===null||c===void 0||c.call(i,d)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:r,onDidDeleteNode:a}))}preserveCollapseState(e=je.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),je.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i)return Object.assign(Object.assign({},t),{children:this.preserveCollapseState(t.children)});const n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,s=typeof t.collapsed<"u"?t.collapsed:i.collapsed;return Object.assign(Object.assign({},t),{collapsible:n,collapsed:s,children:this.preserveCollapseState(t.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new Ws(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function k0(o){const e=[o.element],t=o.incompressible||!1;return{element:{elements:e,incompressible:t},children:je.map(je.from(o.children),k0),collapsible:o.collapsible,collapsed:o.collapsed}}function x0(o){const e=[o.element],t=o.incompressible||!1;let i,n;for(;[n,i]=je.consume(je.from(o.children),2),!(n.length!==1||n[0].incompressible);)o=n[0],e.push(o.element);return{element:{elements:e,incompressible:t},children:je.map(je.concat(n,i),x0),collapsible:o.collapsible,collapsed:o.collapsed}}function dk(o,e=0){let t;return edk(i,0)),e===0&&o.element.incompressible?{element:o.element.elements[e],children:t,incompressible:!0,collapsible:o.collapsible,collapsed:o.collapsed}:{element:o.element.elements[e],children:t,collapsible:o.collapsible,collapsed:o.collapsed}}function BM(o){return dk(o,0)}function F5(o,e,t){return o.element===e?Object.assign(Object.assign({},o),{children:t}):Object.assign(Object.assign({},o),{children:je.map(je.from(o.children),i=>F5(i,e,t))})}const EX=o=>({getId(e){return e.elements.map(t=>o.getId(t).toString()).join("\0")}});class NX{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new dN(e,t,i),this.enabled=typeof i.compressionEnabled>"u"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=je.empty(),i){const n=i.diffIdentityProvider&&EX(i.diffIdentityProvider);if(e===null){const g=je.map(t,this.enabled?x0:k0);this._setChildren(null,g,{diffIdentityProvider:n,diffDepth:1/0});return}const s=this.nodes.get(e);if(!s)throw new Error("Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),c=BM(r),d=F5(c,e,t),h=(this.enabled?x0:k0)(d),u=l.children.map(g=>g===r?h:g);this._setChildren(l.element,u,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,n=je.map(i,BM),s=je.map(n,e?x0:k0);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,s=a=>{for(const l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:s,onDidDeleteNode:r}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}}const TX=o=>o[o.length-1];class hN{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new hN(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function AX(o,e){return{splice(t,i,n){e.splice(t,i,n.map(s=>o.map(s)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function MX(o,e){return Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(o(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(o(t),i)}}})}class RX{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||TX;const n=s=>this.elementMapper(s.elements);this.nodeMapper=new aN(s=>new hN(n,s)),this.model=new NX(e,AX(this.nodeMapper,t),MX(n,i))}get onDidSplice(){return ge.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return ge.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return ge.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=je.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var OX=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};class uN extends P5{constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new dN(e,t,i)}}class B5{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){const s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);s.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,r,a,l;i.compressedTreeNode?(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,i.compressedTreeNode,t,i.data,n):(l=(a=this.renderer).disposeElement)===null||l===void 0||l.call(a,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}OX([pi],B5.prototype,"compressedTreeNodeProvider",null);function PX(o,e){return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=o().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}class W5 extends uN{constructor(e,t,i,n,s={}){const r=()=>this,a=n.map(l=>new B5(r,l));super(e,t,i,a,PX(r,s))}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new RX(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var vl=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function QS(o){return Object.assign(Object.assign({},o),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function hk(o,e){return e.parent?e.parent===o?!0:hk(o,e.parent):!1}function FX(o,e){return o===e||hk(o,e)||hk(e,o)}class gN{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new gN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class BX{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function WM(o){return{browserEvent:o.browserEvent,elements:o.elements.map(e=>e.element)}}function VM(o){return{browserEvent:o.browserEvent,element:o.element&&o.element.element,target:o.target}}class WX extends w_{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function XS(o){return o instanceof w_?new WX(o):o}class VX{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,XS(e),t)}onDragOver(e,t,i,n,s=!0){return this.dnd.onDragOver(XS(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(XS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function V5(o){return o&&Object.assign(Object.assign({},o),{collapseByDefault:!0,identityProvider:o.identityProvider&&{getId(e){return o.identityProvider.getId(e.element)}},dnd:o.dnd&&new VX(o.dnd),multipleSelectionController:o.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return o.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return o.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:o.accessibilityProvider&&Object.assign(Object.assign({},o.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:o.accessibilityProvider.getRole?e=>o.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:o.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=o.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return o.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return o.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:o.accessibilityProvider.getWidgetRole?()=>o.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:o.accessibilityProvider.getAriaLevel&&(e=>o.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:o.accessibilityProvider.getActiveDescendantId&&(e=>o.accessibilityProvider.getActiveDescendantId(e.element))}),filter:o.filter&&{filter(e,t){return o.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},o.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return o.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof o.expandOnlyOnTwistieClick>"u"?void 0:typeof o.expandOnlyOnTwistieClick!="function"?o.expandOnlyOnTwistieClick:e=>o.expandOnlyOnTwistieClick(e.element),additionalScrollHeight:o.additionalScrollHeight})}function uk(o,e){e(o),o.children.forEach(t=>uk(t,e))}class H5{constructor(e,t,i,n,s,r={}){this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new R,this._onDidChangeNodeSlowState=new R,this.nodeMapper=new aN(a=>new gN(a)),this.disposables=new Q,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,n,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=QS({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return ge.map(this.tree.onDidChangeFocus,WM)}get onDidChangeSelection(){return ge.map(this.tree.onDidChangeSelection,WM)}get onMouseDblClick(){return ge.map(this.tree.onMouseDblClick,VM)}get onPointer(){return ge.map(this.tree.onPointer,VM)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new BX(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=V5(s)||{};return new uN(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return vl(this,void 0,void 0,function*(){this.refreshPromises.forEach(n=>n.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)})}_updateChildren(e=this.root.element,t=!0,i=!1,n,s){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,n,s),i)try{this.tree.rerender(r)}catch{}})}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),n})}setSelection(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Ws(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return vl(this,void 0,void 0,function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)})}refreshNode(e,t,i){return vl(this,void 0,void 0,function*(){let n;if(this.subTreeRefreshPromises.forEach((s,r)=>{!n&&FX(r,e)&&(n=s.then(()=>this.refreshNode(e,t,i)))}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0;return}return this.doRefreshSubTree(e,t,i)})}doRefreshSubTree(e,t,i){return vl(this,void 0,void 0,function*(){let n;e.refreshPromise=new Promise(s=>n=s),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const s=yield this.doRefreshNode(e,t,i);e.stale=!1,yield KL.settled(s.map(r=>this.doRefreshSubTree(r,t,i)))}finally{n()}})}doRefreshNode(e,t,i){return vl(this,void 0,void 0,function*(){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(je.empty());else{const s=this.doGetChildren(e);if(ET(s))n=Promise.resolve(s);else{const r=sc(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=s.finally(()=>r.cancel())}}try{const s=yield n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),ea(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}})}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return ET(i)?this.processChildren(i):(t=Ri(()=>vl(this,void 0,void 0,function*(){return this.processChildren(yield i)})),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Te))}setChildren(e,t,i,n){const s=[...t];if(e.children.length===0&&s.length===0)return[];const r=new Map,a=new Map;for(const d of e.children)if(r.set(d.element,d),this.identityProvider){const h=this.tree.isCollapsed(d);a.set(d.id,{node:d,collapsed:h})}const l=[],c=s.map(d=>{const h=!!this.dataSource.hasChildren(d);if(!this.identityProvider){const _=QS({element:d,parent:e,hasChildren:h});return h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const u=this.identityProvider.getId(d).toString(),g=a.get(u);if(g){const _=g.node;return r.delete(_.element),this.nodes.delete(_.element),this.nodes.set(d,_),_.element=d,_.hasChildren=h,i?g.collapsed?(_.children.forEach(b=>uk(b,v=>this.nodes.delete(v.element))),_.children.splice(0,_.children.length),_.stale=!0):l.push(_):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const f=QS({element:d,parent:e,id:u,hasChildren:h});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(f),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(f),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1?l.push(f):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(f.collapsedByDefault=!1,l.push(f)),f});for(const d of r.values())uk(d,h=>this.nodes.delete(h.element));for(const d of c)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].collapsedByDefault=!1,l.push(c[0])),l}render(e,t,i){const n=e.children.map(r=>this.asTreeElement(r,t)),s=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}});this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:i=e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?je.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class fN{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new fN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class HX{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,r;(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=nt(this.disposables)}}function zX(o){const e=o&&V5(o);return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return o.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}})})}class UX extends H5{constructor(e,t,i,n,s,r,a={}){super(e,t,i,s,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new aN(l=>new fN(l)),this.filter=a.filter}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new HX(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=zX(s)||{};return new W5(e,t,r,a,l)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=u=>this.identityProvider.getId(u).toString(),n=u=>{const g=new Set;for(const f of u){const _=this.tree.getCompressedTreeNode(f===this.root?null:f);if(!!_.element)for(const b of _.element.elements)g.add(i(b.element))}return g},s=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let l=!1;const c=this.getFocus();let d=!1;const h=u=>{const g=u.element;if(g)for(let f=0;f{const i=this.filter.filter(t,1),n=$X(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}}function $X(o){return typeof o=="boolean"?o?1:0:lN(o)?Lm(o.visibility):Lm(o)}class jX extends P5{constructor(e,t,i,n,s,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=s,this.identityProvider=r.identityProvider}createModel(e,t,i){return new dN(e,t,i)}}new le("isMac",Ge,p("isMac","Whether the operating system is macOS"));new le("isLinux",dn,p("isLinux","Whether the operating system is Linux"));const B1=new le("isWindows",Yi,p("isWindows","Whether the operating system is Windows"));new le("isWeb",Sc,p("isWeb","Whether the platform is a web browser"));new le("isMacNative",Ge&&!Sc,p("isMacNative","Whether the operating system is macOS on a non-browser platform"));new le("isIOS",Ur,p("isIOS","Whether the operating system is iOS"));new le("isDevelopment",!1,!0);new le("productQualityType","",p("productQualityType","Quality type of VS Code"));const z5="inputFocus";new le(z5,!1,p("inputFocus","Whether keyboard focus is inside an input box"));var sa=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},st=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const so=Ye("listService");let gk=class{constructor(e){this._themeService=e,this.disposables=new Q,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const n=new N5(Qs(),"");this.disposables.add(Ud(n,this._themeService))}if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),qo(e.onDidFocus(()=>this.setLastFocusedList(e)),Be(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};gk=sa([st(0,Ct)],gk);const U5=new le("listFocus",!0),W1=new le("listSupportsMultiselect",!0),$5=se.and(U5,se.not(z5)),pN=new le("listHasSelectionOrFocus",!1),mN=new le("listDoubleSelection",!1),_N=new le("listMultiSelection",!1),V1=new le("listSelectionNavigation",!1),KX=new le("listSupportsFind",!0),bN=new le("treeElementCanCollapse",!1),qX=new le("treeElementHasParent",!1),vN=new le("treeElementCanExpand",!1),GX=new le("treeElementHasChild",!1),ZX=new le("treeFindOpen",!1),j5="listTypeNavigationMode",K5="listAutomaticKeyboardNavigation";function H1(o,e){const t=o.createScoped(e.getHTMLElement());return U5.bindTo(t),t}const Sh="workbench.list.multiSelectModifier",fk="workbench.list.openMode",Gs="workbench.list.horizontalScrolling",CN="workbench.list.defaultFindMode",wN="workbench.list.keyboardNavigation",xm="workbench.tree.indent",rC="workbench.tree.renderIndentGuides",tr="workbench.list.smoothScrolling",Yr="workbench.list.mouseWheelScrollSensitivity",Qr="workbench.list.fastScrollSensitivity",aC="workbench.tree.expandMode";function Xr(o){return o.getValue(Sh)==="alt"}class YX extends H{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Xr(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Sh)&&(this.useAltAsMultipleSelectionModifier=Xr(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:x5(e)}isSelectionRangeChangeEvent(e){return I5(e)}}function z1(o,e){var t;const i=o.get(ot),n=o.get(_i),s=new Q;return[Object.assign(Object.assign({},e),{keyboardNavigationDelegate:{mightProducePrintableCharacter(a){return n.mightProducePrintableCharacter(a)}},smoothScrolling:Boolean(i.getValue(tr)),mouseWheelScrollSensitivity:i.getValue(Yr),fastScrollSensitivity:i.getValue(Qr),multipleSelectionController:(t=e.multipleSelectionController)!==null&&t!==void 0?t:s.add(new YX(i)),keyboardNavigationEventFilter:JX(n)}),s]}let pk=class extends rr{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const _=this.getSelection(),b=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(_.length>0||b.length>0),this.listMultiSelection.set(_.length>1),this.listDoubleSelection.set(_.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const _=this.getSelection(),b=this.getFocus();this.listHasSelectionOrFocus.set(_.length>0||b.length>0)})),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new q5(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),super.dispose()}};pk=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],pk);let HM=class extends aX{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables=new Q,this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),s.overrideStyles&&this.disposables.add(Ud(this,l,s.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new q5(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};HM=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],HM);let zM=class extends F1{constructor(e,t,i,n,s,r,a,l,c,d,h){const u=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:Boolean(d.getValue(Gs)),[g,f]=h.invokeFunction(z1,r);super(e,t,i,n,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(c.getColorTheme(),A1)),g),{horizontalScrolling:u})),this.disposables.add(f),this.contextKeyService=H1(a,this),this.themeService=c,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(d),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const b=this.getSelection(),v=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(b.length>0||v.length>0),this.listMultiSelection.set(b.length>1),this.listDoubleSelection.set(b.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const b=this.getSelection(),v=this.getFocus();this.listHasSelectionOrFocus.set(b.length>0||v.length>0)})),this.disposables.add(d.onDidChangeConfiguration(b=>{b.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(d));let v={};if(b.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const C=Boolean(d.getValue(Gs));v=Object.assign(Object.assign({},v),{horizontalScrolling:C})}if(b.affectsConfiguration(tr)){const C=Boolean(d.getValue(tr));v=Object.assign(Object.assign({},v),{smoothScrolling:C})}if(b.affectsConfiguration(Yr)){const C=d.getValue(Yr);v=Object.assign(Object.assign({},v),{mouseWheelScrollSensitivity:C})}if(b.affectsConfiguration(Qr)){const C=d.getValue(Qr);v=Object.assign(Object.assign({},v),{fastScrollSensitivity:C})}Object.keys(v).length>0&&this.updateOptions(v)})),this.navigator=new QX(this,Object.assign({configurationService:d},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};zM=sa([st(6,Ee),st(7,so),st(8,Ct),st(9,ot),st(10,Ae)],zM);class SN extends H{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new R),this.onDidOpen=this._onDidOpen.event,this._register(ge.filter(this.widget.onDidChangeSelection,n=>n.browserEvent instanceof KeyboardEvent)(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t==null?void 0:t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick"}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i,s=!1;this._open(this.getSelectedElement(),i,n,s,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const n=t.button===1,s=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}_open(e,t,i,n,s){!e||this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class q5 extends SN{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class QX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class XX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function JX(o){let e=!1;return t=>{if(t.toKeybinding().isModifierKey())return!1;if(e)return e=!1,!1;const i=o.softDispatch(t,t.target);return i!=null&&i.enterChord?(e=!0,!1):(e=!1,!i)}}let UM=class extends uN{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};UM=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],UM);let $M=class extends W5{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};$M=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],$M);let jM=class extends jX{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};jM=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],jM);let mk=class extends H5{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mk=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],mk);let KM=class extends UX{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const{options:g,getTypeNavigationMode:f,disposable:_}=l.invokeFunction(L_,a);super(e,t,i,n,s,r,g),this.disposables.add(_),this.internals=new Kd(this,a,f,a.overrideStyles,c,d,h,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};KM=sa([st(7,Ae),st(8,Ee),st(9,so),st(10,Ct),st(11,ot)],KM);function G5(o){const e=o.getValue(CN);if(e==="highlight")return Fr.Highlight;if(e==="filter")return Fr.Filter;const t=o.getValue(wN);if(t==="simple"||t==="highlight")return Fr.Highlight;if(t==="filter")return Fr.Filter}function L_(o,e){var t;const i=o.get(ot),n=o.get(vh),s=o.get(Ee),r=o.get(Ae),a=()=>{const u=s.getContextKeyValue(j5);if(u==="automatic")return Yl.Automatic;if(u==="trigger"||s.getContextKeyValue(K5)===!1)return Yl.Trigger},l=e.horizontalScrolling!==void 0?e.horizontalScrolling:Boolean(i.getValue(Gs)),[c,d]=r.invokeFunction(z1,e),h=e.additionalScrollHeight;return{getTypeNavigationMode:a,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},c),{indent:typeof i.getValue(xm)=="number"?i.getValue(xm):void 0,renderIndentGuides:i.getValue(rC),smoothScrolling:Boolean(i.getValue(tr)),defaultFindMode:G5(i),horizontalScrolling:l,additionalScrollHeight:h,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(t=e.expandOnlyOnTwistieClick)!==null&&t!==void 0?t:i.getValue(aC)==="doubleClick",contextViewProvider:n})}}let Kd=class{constructor(e,t,i,n,s,r,a,l){var c;this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=H1(s,e),this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=KX.bindTo(this.contextKeyService),this.listSupportFindWidget.set((c=t.findWidgetEnabled)!==null&&c!==void 0?c:!0),this.hasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.hasDoubleSelection=mN.bindTo(this.contextKeyService),this.hasMultiSelection=_N.bindTo(this.contextKeyService),this.treeElementCanCollapse=bN.bindTo(this.contextKeyService),this.treeElementHasParent=qX.bindTo(this.contextKeyService),this.treeElementCanExpand=vN.bindTo(this.contextKeyService),this.treeElementHasChild=GX.bindTo(this.contextKeyService),this.treeFindOpen=ZX.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Xr(l),this.updateStyleOverrides(n);const h=()=>{const g=e.getFocus()[0];if(!g)return;const f=e.getNode(g);this.treeElementCanCollapse.set(f.collapsible&&!f.collapsed),this.treeElementHasParent.set(!!e.getParentElement(g)),this.treeElementCanExpand.set(f.collapsible&&f.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(g))},u=new Set;u.add(j5),u.add(K5),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const g=e.getSelection(),f=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(g.length>0||f.length>0),this.hasMultiSelection.set(g.length>1),this.hasDoubleSelection.set(g.length===2)})}),e.onDidChangeFocus(()=>{const g=e.getSelection(),f=e.getFocus();this.hasSelectionOrFocus.set(g.length>0||f.length>0),h()}),e.onDidChangeCollapseState(h),e.onDidChangeModel(h),e.onDidChangeFindOpenState(g=>this.treeFindOpen.set(g)),l.onDidChangeConfiguration(g=>{let f={};if(g.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(l)),g.affectsConfiguration(xm)){const _=l.getValue(xm);f=Object.assign(Object.assign({},f),{indent:_})}if(g.affectsConfiguration(rC)){const _=l.getValue(rC);f=Object.assign(Object.assign({},f),{renderIndentGuides:_})}if(g.affectsConfiguration(tr)){const _=Boolean(l.getValue(tr));f=Object.assign(Object.assign({},f),{smoothScrolling:_})}if((g.affectsConfiguration(CN)||g.affectsConfiguration(wN))&&e.updateOptions({defaultFindMode:G5(l)}),g.affectsConfiguration(Gs)&&t.horizontalScrolling===void 0){const _=Boolean(l.getValue(Gs));f=Object.assign(Object.assign({},f),{horizontalScrolling:_})}if(g.affectsConfiguration(aC)&&t.expandOnlyOnTwistieClick===void 0&&(f=Object.assign(Object.assign({},f),{expandOnlyOnTwistieClick:l.getValue(aC)==="doubleClick"})),g.affectsConfiguration(Yr)){const _=l.getValue(Yr);f=Object.assign(Object.assign({},f),{mouseWheelScrollSensitivity:_})}if(g.affectsConfiguration(Qr)){const _=l.getValue(Qr);f=Object.assign(Object.assign({},f),{fastScrollSensitivity:_})}Object.keys(f).length>0&&e.updateOptions(f)}),this.contextKeyService.onDidChangeContext(g=>{g.affectsSome(u)&&e.updateOptions({typeNavigationMode:i()})})),this.navigator=new XX(e,Object.assign({configurationService:l},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){nt(this.styler),this.styler=e?Ud(this.tree,this.themeService,e):H.None}dispose(){this.disposables=nt(this.disposables),nt(this.styler),this.styler=void 0}};Kd=sa([st(4,Ee),st(5,so),st(6,Ct),st(7,ot)],Kd);const eJ=zt.as(rl.Configuration);eJ.registerConfiguration({id:"workbench",order:7,title:p("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Sh]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[p("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:p({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[fk]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Gs]:{type:"boolean",default:!1,description:p("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[xm]:{type:"number",default:8,minimum:4,maximum:40,description:p("tree indent setting","Controls tree indentation in pixels.")},[rC]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:p("render tree indent guides","Controls whether the tree should render indent guides.")},[tr]:{type:"boolean",default:!1,description:p("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Yr]:{type:"number",default:1,markdownDescription:p("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Qr]:{type:"number",default:5,description:p("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[CN]:{type:"string",enum:["highlight","filter"],enumDescriptions:[p("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),p("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:p("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[wN]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[p("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),p("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),p("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:p("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:p("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' instead.")},[aC]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}});var _k;(function(o){o[o.PRESERVE=0]="PRESERVE",o[o.LAST=1]="LAST"})(_k||(_k={}));const yh={Quickaccess:"workbench.contributions.quickaccess"};class tJ{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Be(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return i_([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}zt.add(yh.Quickaccess,new tJ);const dl=Ye("quickInputService");var iJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let bk=class extends H{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=zt.as(yh.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[s,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let g;if(a&&l&&l!==r){const f=a.value.substr(l.prefix.length);f&&(g=`${r.prefix}${f}`)}if(!g){const f=s==null?void 0:s.defaultFilterValue;f===_k.LAST?g=this.lastAcceptedPickerValues.get(r):typeof f=="string"&&(g=`${r.prefix}${f}`)}typeof g=="string"&&(e=g)}const c=new Q,d=c.add(this.quickInputService.createQuickPick());d.value=e,this.adjustValueSelection(d,r,i),d.placeholder=r==null?void 0:r.placeholder,d.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||(i==null?void 0:i.quickNavigateConfiguration))&&(d.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:To.SECOND),d.contextKey=r==null?void 0:r.contextKey,d.filterValue=g=>g.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(d.ariaLabel=r==null?void 0:r.placeholder);let h;t&&(h=new RI,c.add(Xa(d.onWillAccept)(g=>{g.veto(),d.hide()}))),c.add(this.registerPickerListeners(d,s,r,e));const u=c.add(new Qi);if(s&&c.add(s.provide(d,u.token)),Xa(d.onDidHide)(()=>{d.selectedItems.length===0&&u.cancel(),c.dispose(),h==null||h.complete(d.selectedItems.slice(0))}),d.show(),t)return h==null?void 0:h.p}adjustValueSelection(e,t,i){var n;let s;i!=null&&i.preserveValue?s=[e.value.length,e.value.length]:s=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n){const s=new Q,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return s.add(Be(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),s.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&s.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),s}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};bk=iJ([qM(0,dl),qM(1,Ae)],bk);var nJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Nf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vk=class extends GH{constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=s,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(bk))),this._quickAccess}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:s=>this.setContextKey(s),returnFocus:()=>e.focus(),createList:(s,r,a,l,c)=>this.instantiationService.createInstance(pk,s,r,a,l,c),styles:this.computeStyles()},n=this._register(new P1(Object.assign(Object.assign({},i),t)));return n.layout(e.dimension,e.offset.quickPickTop),this._register(e.onDidLayout(s=>n.layout(s,e.offset.quickPickTop))),this._register(n.onShow(()=>this.resetContextKeys())),this._register(n.onHide(()=>this.resetContextKeys())),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new le(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t==null||t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=ze.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Ao(this.theme,{quickInputBackground:M2,quickInputForeground:yz,quickInputTitleBackground:Lz,contrastBorder:We,widgetShadow:Ho})),inputBox:Ao(this.theme,{inputForeground:f1,inputBackground:g1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE}),countBadge:Ao(this.theme,{badgeBackground:gu,badgeForeground:fu,badgeBorder:We}),button:Ao(this.theme,{buttonForeground:Uf,buttonBackground:lD,buttonHoverBackground:pz,buttonBorder:We}),progressBar:Ao(this.theme,{progressBarBackground:mz}),keybindingLabel:Ao(this.theme,{keybindingLabelBackground:xz,keybindingLabelForeground:Iz,keybindingLabelBorder:Ez,keybindingLabelBottomBorder:Nz,keybindingLabelShadow:Ho}),list:Ao(this.theme,{listBackground:M2,listInactiveFocusForeground:jf,listInactiveSelectionIconForeground:Kf,listInactiveFocusBackground:qf,listFocusOutline:Ot,listInactiveFocusOutline:Ot,pickerGroupBorder:kz,pickerGroupForeground:Dz})}}};vk=nJ([Nf(0,Ae),Nf(1,Ee),Nf(2,Ct),Nf(3,al),Nf(4,Yg)],vk);var Z5=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},td=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Ck=class extends vk{constructor(e,t,i,n,s,r){super(t,i,n,s,new FD(e.getContainerDomNode(),r)),this.host=void 0;const a=wg.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return l.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus(),offset:{top:0,quickPickTop:0}}}else this.host=void 0}createController(){return super.createController(this.host)}};Ck=Z5([td(1,Ae),td(2,Ee),td(3,Ct),td(4,al),td(5,ct)],Ck);let wk=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(Ck,e);this.mapEditorToService.set(e,t),Xa(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=ze.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};wk=Z5([td(0,Ae),td(1,ct)],wk);class wg{constructor(e){this.editor=e,this.widget=new U1(this.editor)}static get(e){return e.getContribution(wg.ID)}dispose(){this.widget.dispose()}}wg.ID="editor.controller.quickInput";class U1{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return U1.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}U1.ID="editor.contrib.quickInputWidget";tt(wg.ID,wg);class sJ{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}function oJ(o){if(!o||!Array.isArray(o))return[];const e=[];let t=0;for(let i=0,n=o.length;i{const u=hJ(d.token,h.token);return u!==0?u:d.index-h.index});let t=0,i="000000",n="ffffff";for(;o.length>=1&&o[0].token==="";){const d=o.shift();d.fontStyle!==-1&&(t=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(n=d.background)}const s=new lJ;for(const d of e)s.getId(d);const r=s.getId(i),a=s.getId(n),l=new yN(t,r,a),c=new LN(l);for(let d=0,h=o.length;d"u"){const n=this._match(t),s=dJ(t);i=(n.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const cJ=/\b(comment|string|regex|regexp)\b/;function dJ(o){const e=o.match(cJ);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function hJ(o,e){return oe?1:0}class yN{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new yN(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class LN{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,n;t===-1?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return typeof s<"u"?s.match(n):this._mainRule}insert(e,t,i,n){if(e===""){this._mainRule.acceptOverwrite(t,i,n);return}const s=e.indexOf(".");let r,a;s===-1?(r=e,a=""):(r=e.substring(0,s),a=e.substring(s+1));let l=this._children.get(r);typeof l>"u"&&(l=new LN(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,n)}}function uJ(o){const e=[];for(let t=1,i=o.length;te.fire()),o==null||o.onDidProductIconThemeChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const i=o?o.getProductIconTheme():new Q5,n={},s=a=>{const l=i.getIcon(a);if(!l)return;const c=l.font;return c?(n[c.id]=c.definition,`.codicon-${a.id}:before { content: '${l.fontCharacter}'; font-family: ${x2(c.id)}; }`):`.codicon-${a.id}:before { content: '${l.fontCharacter}'; }`},r=[];for(const a of t.getIcons()){const l=s(a);l&&r.push(l)}for(const a in n){const l=n[a],c=l.weight?`font-weight: ${l.weight};`:"",d=l.style?`font-style: ${l.style};`:"",h=l.src.map(u=>`${Pd(u.location)} format('${u.format}')`).join(", ");r.push(`@font-face { src: ${h}; font-family: ${x2(a)};${c}${d} font-display: block; }`)}return r.join(` -`)}}}class Q5{getIcon(e){const t=UF();let i=e.defaults;for(;at.isThemeIcon(i);){const n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}}const Ra="vs",Ku="vs-dark",Sd="hc-black",yd="hc-light",X5=zt.as(D4.ColorContribution),bJ=zt.as(f4.ThemingContribution);class J5{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(I0(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,W.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=Sk(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,W.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=X5.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case Ra:return Hs.LIGHT;case Sd:return Hs.HIGH_CONTRAST_DARK;case yd:return Hs.HIGH_CONTRAST_LIGHT;default:return Hs.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const s=Sk(this.themeData.base);e=s.rules,s.encodedTokensColors&&(t=s.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const s={token:""};i&&(s.foreground=i),n&&(s.background=n),e.push(s)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=Y5.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=qi.getForeground(s),a=qi.getFontStyle(s);return{foreground:r,italic:Boolean(a&1),bold:Boolean(a&2),underline:Boolean(a&4),strikethrough:Boolean(a&8)}}}function I0(o){return o===Ra||o===Ku||o===Sd||o===yd}function Sk(o){switch(o){case Ra:return gJ;case Ku:return fJ;case Sd:return pJ;case yd:return mJ}}function Fb(o){const e=Sk(o);return new J5(o,e)}class vJ extends H{constructor(){super(),this._onColorThemeChange=this._register(new R),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new R),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new Q5,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Ra,Fb(Ra)),this._knownThemes.set(Ku,Fb(Ku)),this._knownThemes.set(Sd,Fb(Sd)),this._knownThemes.set(yd,Fb(yd));const e=_J(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} -${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(Ra),this._onOSSchemeChanged(),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),DI("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return Gp(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Qs(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),H.None}_registerShadowDomContainer(e){const t=Qs(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(Ra),this._updateActualTheme(t)}_updateActualTheme(e){!e||this._theme===e||(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=window.matchMedia("(forced-colors: active)").matches;if(e!==cn(this._theme.type)){let t;Xp(this._theme.type)?t=e?Sd:Ku:t=e?yd:Ra,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};bJ.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const n=[];for(const r of X5.getColors()){const a=this._theme.getColor(r.id,!0);a&&n.push(`${L4(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor { ${n.join(` +`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}F1.InstanceCount=0;const gX={inputActiveOptionBorder:W.fromHex("#007ACC00"),inputActiveOptionForeground:W.fromHex("#FFFFFF"),inputActiveOptionBackground:W.fromHex("#0E639C50")};class y_ extends yo{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},gX),e),this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...Ln.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,i=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault(),i.stopPropagation();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const fX=p("caseDescription","Match Case"),pX=p("wordsDescription","Match Whole Word"),mX=p("regexDescription","Use Regular Expression");class MF extends y_{constructor(e){super({icon:m.caseSensitive,title:fX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class RF extends y_{constructor(e){super({icon:m.wholeWord,title:pX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class OF extends y_{constructor(e){super({icon:m.regex,title:mX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}const _X=p("defaultLabel","input");class bX extends yo{constructor(e,t,i,n){var s;super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onCaseSensitiveKeyDown=this._register(new R),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new R),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||_X,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const r=n.appendCaseSensitiveLabel||"",a=n.appendWholeWordsLabel||"",l=n.appendRegexLabel||"",c=n.history||[],d=!!n.flexibleHeight,h=!!n.flexibleWidth,u=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new yF(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:c,showHistoryHint:n.showHistoryHint,flexibleHeight:d,flexibleWidth:h,flexibleMaxHeight:u})),this.regex=this._register(new OF({appendTitle:l,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(f=>{this._onRegexKeyDown.fire(f)})),this.wholeWords=this._register(new RF({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new MF({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(f=>{this._onCaseSensitiveKeyDown.fire(f)}));const g=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,f=>{if(f.equals(15)||f.equals(17)||f.equals(9)){const _=g.indexOf(document.activeElement);if(_>=0){let b=-1;f.equals(17)?b=(_+1)%g.length:f.equals(15)&&(_===0?b=g.length-1:b=_-1),f.equals(9)?(g[_].blur(),this.inputBox.focus()):b>=0&&g[b].focus(),ut.stop(f,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this._showOptionButtons||(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none");for(const f of(s=n==null?void 0:n.additionalToggles)!==null&&s!==void 0?s:[])this._register(f),this.controls.appendChild(f.domNode),this._register(f.onChange(_=>{this._onDidOptionChange.fire(_),!_&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(f);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((f,_)=>f+_.width(),0),this.domNode.appendChild(this.controls),e==null||e.appendChild(this.domNode),this._register(G(this.inputBox.inputElement,"compositionstart",f=>{this.imeSessionInProgress=!0})),this._register(G(this.inputBox.inputElement,"compositionend",f=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,f=>this._onKeyDown.fire(f)),this.onkeyup(this.inputBox.inputElement,f=>this._onKeyUp.fire(f)),this.oninput(this.inputBox.inputElement,f=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,f=>this._onMouseDown.fire(f))}get onDidChange(){return this.inputBox.onDidChange}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);for(const i of this.additionalToggles)i.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}var gd;(function(o){o[o.Unknown=0]="Unknown",o[o.Twistie=1]="Twistie",o[o.Element=2]="Element",o[o.Filter=3]="Filter"})(gd||(gd={}));class Ws extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class aN{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function lN(o){return typeof o=="object"&&"visibility"in o&&"data"in o}function Lm(o){switch(o){case!0:return 1;case!1:return 0;default:return o}}function GS(o){return typeof o.collapsible=="boolean"}class vX{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new gI,this._onDidChangeCollapseState=new R,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new R,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new R,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new Kr(RP),this.collapseByDefault=typeof n.collapseByDefault>"u"?!1:n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=typeof n.autoExpandSingleChildren>"u"?!1:n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=je.empty(),n={}){if(e.length===0)throw new Ws(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,s,r){var a;n===void 0&&(n=je.empty()),r===void 0&&(r=(a=s.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const c=[...n],d=t[t.length-1],h=new xr({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,d),...c,...l.children.slice(d+i)].map(b=>e.getId(b.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,s);const u=t.slice(0,-1),g=(b,v,C)=>{if(r>0)for(let w=0;wC.originalStart-v.originalStart))g(f,_,f-(b.originalStart+b.originalLength)),f=b.originalStart,_=b.modifiedStart-d,this.spliceSimple([...u,f],b.originalLength,je.slice(c,_,_+b.modifiedLength),s);g(f,_,f)}spliceSimple(e,t,i=je.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),h=[],u=je.map(i,y=>this.createTreeNode(y,a,a.visible?1:0,c,h,n)),g=e[e.length-1],f=a.children.length>0;let _=0;for(let y=g;y>=0&&yr.getId(y.element).toString())):a.lastDiffIds=a.children.map(y=>r.getId(y.element).toString()):a.lastDiffIds=void 0;let S=0;for(const y of w)y.visible&&S++;if(S!==0)for(let y=g+b.length;yD+(I.visible?I.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,C-y),this.list.splice(l,y,h)}if(w.length>0&&s){const y=D=>{s(D),D.children.forEach(y)};w.forEach(y)}this._onDidSplice.fire({insertedNodes:b,deletedNodes:w});const k=a.children.length>0;f!==k&&this.setCollapsible(e.slice(0,-1),k);let x=a;for(;x;){if(x.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}x=x.parent}}rerender(e){if(e.length===0)throw new Ws(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t>"u"&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);typeof t>"u"&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!GS(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(GS(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!GS(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,n&&s.push(a);const c=e.children||je.empty(),d=n&&l!==0&&!a.collapsed,h=je.map(c,f=>this.createTreeNode(f,a,l,d,s,r));let u=0,g=1;for(const f of h)a.children.push(f),g+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=u++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=u,a.visible=l===2?u>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=g):(a.renderNodeCount=0,n&&s.pop()),r==null||r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(s=this._filterNode(e,t),s===0)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||s!==0){let l=0;for(const c of e.children)a=this._updateNodeAfterFilterChange(c,s,i,n&&!e.collapsed)||a,c.visible&&(c.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=s===2?a:s===1,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):lN(i)?(e.filterData=i.data,Lm(i.visibility)):(e.filterData=void 0,Lm(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...n]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new Ws(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:s}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:n,visible:s&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,s=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function ZS(o){return o instanceof w_?new wX(o):o}class SX{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=H.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,ZS(e),t)}onDragOver(e,t,i,n,s=!0){const r=this.dnd.onDragOver(ZS(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t>"u")return r;if(a&&typeof r!="boolean"&&r.autoExpand&&(this.autoExpandDisposable=Ad(()=>{const u=this.modelProvider(),g=u.getNodeLocation(t);u.isCollapsed(g)&&u.setCollapsed(g,!1),this.autoExpandNode=void 0},500)),typeof r=="boolean"||!r.accept||typeof r.bubble>"u"||r.feedback){if(!s){const u=typeof r=="boolean"?r:r.accept,g=typeof r=="boolean"?void 0:r.effect;return{accept:u,effect:g,feedback:[i]}}return r}if(r.bubble===1){const u=this.modelProvider(),g=u.getNodeLocation(t),f=u.getParentNodeLocation(g),_=u.getNode(f),b=f&&u.getListIndex(f);return this.onDragOver(e,_,b,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),h=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:Cn(d,d+h)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ZS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function yX(o,e){return e&&Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new SX(o,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getSetSize(t){const i=o(),n=i.getNodeLocation(t),s=i.getParentNodeLocation(n);return i.getNode(s).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}})})}class cN{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;(n=(i=this.delegate).setDynamicHeight)===null||n===void 0||n.call(i,e.element,t)}}var Dm;(function(o){o.None="none",o.OnHover="onHover",o.Always="always"})(Dm||(Dm={}));class LX{constructor(e,t=[]){this._elements=t,this.disposables=new Q,this.onDidChange=ge.forEach(e,i=>this._elements=i,this.disposables)}get elements(){return this._elements}dispose(){this.disposables.dispose()}}class km{constructor(e,t,i,n,s={}){var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=km.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new CX,this.activeIndentNodes=new Set,this.indentGuidesDisposable=H.None,this.disposables=new Q,this.templateId=e.templateId,this.updateOptions(s),ge.map(i,a=>a.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(r=e.onDidChangeTwistieState)===null||r===void 0||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent<"u"&&(this.indent=Zn(e.indent,0,40)),typeof e.renderIndentGuides<"u"){const t=e.renderIndentGuides!==Dm.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const i=new Q;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof e.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=q(e,J(".monaco-tl-row")),i=q(t,J(".monaco-tl-indent")),n=q(t,J(".monaco-tl-twistie")),s=q(t,J(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:n,indentGuidesDisposable:H.None,templateData:r}}renderElement(e,t,i,n){typeof n=="number"&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));const s=km.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${s}px`,i.indent.style.width=`${s+this.indent-16}px`,this.renderTwistie(e,i),typeof n=="number"&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,r;i.indentGuidesDisposable.dispose(),(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,e,t,i.templateData,n),typeof n=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);!t||this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);!t||(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...m.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...m.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Si(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new Q,n=this.modelProvider();let s=e;for(;;){const r=n.getNodeLocation(s),a=n.getParentNodeLocation(r);if(!a)break;const l=n.getNode(a),c=J(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add(Be(()=>this.renderedIndentGuides.delete(l,c))),s=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(n=>{const s=i.getNodeLocation(n);try{const r=i.getParentNodeLocation(s);n.collapsible&&n.children.length>0&&!n.collapsed?t.add(n):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(n=>{t.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.remove("active"))}),t.forEach(n=>{this.activeIndentNodes.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),nt(this.disposables)}}km.DefaultIndent=8;class DX{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new Q,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}filter(e,t){let i=1;if(this._filter){const r=this._filter.filter(e,t);if(typeof r=="boolean"?i=r?1:0:lN(r)?i=Lm(r.visibility):i=r,i===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:Zo.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const r of s){const a=r&&r.toString();if(typeof a>"u")return{data:Zo.Default,visibility:i};const l=mg(this._pattern,this._lowercasePattern,0,a,a.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(l)return this._matchCount++,s.length===1?{data:l,visibility:i}:{data:{label:a,score:l},visibility:i}}return this.tree.findMode===Fr.Filter?2:{data:Zo.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){nt(this.disposables)}}var Fr;(function(o){o[o.Highlight=0]="Highlight",o[o.Filter=1]="Filter"})(Fr||(Fr={}));class kX{constructor(e,t,i,n,s){var r;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this._pattern="",this.width=0,this._onDidChangeMode=new R,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangePattern=new R,this._onDidChangeOpenState=new R,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new Q,this.disposables=new Q,this._mode=(r=e.options.defaultFindMode)!==null&&r!==void 0?r:Fr.Highlight,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var e,t;const i=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&i?(e=this.widget)===null||e===void 0||e.showMessage({type:2,content:p("not found","No elements found.")}):(t=this.widget)===null||t===void 0||t.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===Fr.Filter||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!Zo.isDefault(e.filterData)}style(e){var t;this.styles=e,(t=this.widget)===null||t===void 0||t.style(e)}layout(e){var t;this.width=e,(t=this.widget)===null||t===void 0||t.layout(e)}dispose(){this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function FM(o){let e=gd.Unknown;return rS(o.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=gd.Twistie:rS(o.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?e=gd.Element:rS(o.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(e=gd.Filter),{browserEvent:o.browserEvent,element:o.element?o.element.element:null,target:e}}function D0(o,e){e(o),o.children.forEach(t=>D0(t,e))}class YS{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new R,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(t!=null&&t.__forceEvent)&&Ss(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),c=d=>l.delete(d);t.forEach(d=>D0(d,c)),this.set([...l.values()]);return}const i=new Set,n=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>D0(l,n));const s=new Map,r=l=>s.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>D0(l,r));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const h=s.get(c);h&&a.push(h)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class xX extends EF{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(DF(e.browserEvent.target)||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let s=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?s=this.tree.expandOnlyOnTwistieClick(t.element):s=!!this.tree.expandOnlyOnTwistieClick,s&&!n&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e);if(t.collapsible){const r=this.tree.model,a=r.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),r.setCollapsed(a,void 0,l),s&&n)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick(e)}}class IX extends rr{constructor(e,t,i,n,s,r,a,l){super(e,t,i,n,l),this.focusTrait=s,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new xX(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const n=[],s=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&n.push(e+l),this.selectionTrait.has(a)&&s.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),n.length>0&&super.setFocus(Qa([...super.getFocus(),...n])),s.length>0&&super.setSelection(Qa([...super.getSelection(),...s])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(n=>this.element(n)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(n=>this.element(n)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class PF{constructor(e,t,i,n,s={}){var r;this._user=e,this._options=s,this.eventBufferer=new gI,this.onDidChangeFindOpenState=ge.None,this.disposables=new Q,this._onWillRefilter=new R,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new R;const a=new cN(i),l=new AT,c=new AT,d=this.disposables.add(new LX(c.event));this.renderers=n.map(g=>new km(g,()=>this.model,l.event,d,s));for(const g of this.renderers)this.disposables.add(g);let h;s.keyboardNavigationLabelProvider&&(h=new DX(this,s.keyboardNavigationLabelProvider,s.filter),s=Object.assign(Object.assign({},s),{filter:h}),this.disposables.add(h)),this.focus=new YS(()=>this.view.getFocusedElements()[0],s.identityProvider),this.selection=new YS(()=>this.view.getSelectedElements()[0],s.identityProvider),this.anchor=new YS(()=>this.view.getAnchorElement(),s.identityProvider),this.view=new IX(e,t,a,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},yX(()=>this.model,s)),{tree:this})),this.model=this.createModel(e,this.view,s),l.input=this.model.onDidChangeCollapseState;const u=ge.forEach(this.model.onDidSplice,g=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(g),this.selection.onDidModelSplice(g)})},this.disposables);if(u(()=>null,null,this.disposables),c.input=ge.chain(ge.any(u,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const g=new Set;for(const f of this.focus.getNodes())g.add(f);for(const f of this.selection.getNodes())g.add(f);return[...g.values()]}).event,s.keyboardSupport!==!1){const g=ge.chain(this.view.onKeyDown).filter(f=>!jd(f.target)).map(f=>new Rt(f));g.filter(f=>f.keyCode===15).on(this.onLeftArrow,this,this.disposables),g.filter(f=>f.keyCode===17).on(this.onRightArrow,this,this.disposables),g.filter(f=>f.keyCode===10).on(this.onSpace,this,this.disposables)}((r=s.findWidgetEnabled)!==null&&r!==void 0?r:!0)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider?(this.findController=new kX(this,this.model,this.view,h,s.contextViewProvider),this.focusNavigationFilter=g=>this.findController.shouldAllowFocus(g),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode):this.onDidChangeFindMode=ge.None,this.styleElement=Qs(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return ge.filter(ge.map(this.view.onMouseDblClick,FM),e=>e.target!==gd.Filter)}get onPointer(){return ge.map(this.view.onPointer,FM)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return ge.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return(t=(e=this.findController)===null||e===void 0?void 0:e.mode)!==null&&t!==void 0?t:Fr.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),tc(t)&&((i=this.findController)===null||i===void 0||i.layout(t))}style(e){var t;const i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=n.join(` +`),(t=this.findController)===null||t===void 0||t.style(e),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(s=>this.model.getNode(s));this.selection.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(s=>this.model.getNode(s));this.focus.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);i!==-1&&this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const r=this.model.getParentNodeLocation(n);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){nt(this.disposables),this.view.dispose()}}class dN{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new vX(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(n,s){return i.sorter.compare(n.element,s.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=je.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=je.empty(),i){const n=new Set,s=new Set,r=l=>{var c;if(l.element===null)return;const d=l;if(n.add(d.element),this.nodes.set(d.element,d),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.add(h),this.nodesByIdentity.set(h,d)}(c=i.onDidCreateNode)===null||c===void 0||c.call(i,d)},a=l=>{var c;if(l.element===null)return;const d=l;if(n.has(d.element)||this.nodes.delete(d.element),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.has(h)||this.nodesByIdentity.delete(h)}(c=i.onDidDeleteNode)===null||c===void 0||c.call(i,d)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:r,onDidDeleteNode:a}))}preserveCollapseState(e=je.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),je.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i)return Object.assign(Object.assign({},t),{children:this.preserveCollapseState(t.children)});const n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,s=typeof t.collapsed<"u"?t.collapsed:i.collapsed;return Object.assign(Object.assign({},t),{collapsible:n,collapsed:s,children:this.preserveCollapseState(t.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new Ws(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function k0(o){const e=[o.element],t=o.incompressible||!1;return{element:{elements:e,incompressible:t},children:je.map(je.from(o.children),k0),collapsible:o.collapsible,collapsed:o.collapsed}}function x0(o){const e=[o.element],t=o.incompressible||!1;let i,n;for(;[n,i]=je.consume(je.from(o.children),2),!(n.length!==1||n[0].incompressible);)o=n[0],e.push(o.element);return{element:{elements:e,incompressible:t},children:je.map(je.concat(n,i),x0),collapsible:o.collapsible,collapsed:o.collapsed}}function dk(o,e=0){let t;return edk(i,0)),e===0&&o.element.incompressible?{element:o.element.elements[e],children:t,incompressible:!0,collapsible:o.collapsible,collapsed:o.collapsed}:{element:o.element.elements[e],children:t,collapsible:o.collapsible,collapsed:o.collapsed}}function BM(o){return dk(o,0)}function FF(o,e,t){return o.element===e?Object.assign(Object.assign({},o),{children:t}):Object.assign(Object.assign({},o),{children:je.map(je.from(o.children),i=>FF(i,e,t))})}const EX=o=>({getId(e){return e.elements.map(t=>o.getId(t).toString()).join("\0")}});class NX{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new dN(e,t,i),this.enabled=typeof i.compressionEnabled>"u"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=je.empty(),i){const n=i.diffIdentityProvider&&EX(i.diffIdentityProvider);if(e===null){const g=je.map(t,this.enabled?x0:k0);this._setChildren(null,g,{diffIdentityProvider:n,diffDepth:1/0});return}const s=this.nodes.get(e);if(!s)throw new Error("Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),c=BM(r),d=FF(c,e,t),h=(this.enabled?x0:k0)(d),u=l.children.map(g=>g===r?h:g);this._setChildren(l.element,u,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,n=je.map(i,BM),s=je.map(n,e?x0:k0);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,s=a=>{for(const l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:s,onDidDeleteNode:r}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}}const TX=o=>o[o.length-1];class hN{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new hN(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function AX(o,e){return{splice(t,i,n){e.splice(t,i,n.map(s=>o.map(s)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function MX(o,e){return Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(o(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(o(t),i)}}})}class RX{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||TX;const n=s=>this.elementMapper(s.elements);this.nodeMapper=new aN(s=>new hN(n,s)),this.model=new NX(e,AX(this.nodeMapper,t),MX(n,i))}get onDidSplice(){return ge.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return ge.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return ge.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=je.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var OX=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};class uN extends PF{constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new dN(e,t,i)}}class BF{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){const s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);s.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,r,a,l;i.compressedTreeNode?(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,i.compressedTreeNode,t,i.data,n):(l=(a=this.renderer).disposeElement)===null||l===void 0||l.call(a,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}OX([pi],BF.prototype,"compressedTreeNodeProvider",null);function PX(o,e){return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=o().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}class WF extends uN{constructor(e,t,i,n,s={}){const r=()=>this,a=n.map(l=>new BF(r,l));super(e,t,i,a,PX(r,s))}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new RX(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var vl=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function QS(o){return Object.assign(Object.assign({},o),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function hk(o,e){return e.parent?e.parent===o?!0:hk(o,e.parent):!1}function FX(o,e){return o===e||hk(o,e)||hk(e,o)}class gN{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new gN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class BX{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function WM(o){return{browserEvent:o.browserEvent,elements:o.elements.map(e=>e.element)}}function VM(o){return{browserEvent:o.browserEvent,element:o.element&&o.element.element,target:o.target}}class WX extends w_{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function XS(o){return o instanceof w_?new WX(o):o}class VX{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,XS(e),t)}onDragOver(e,t,i,n,s=!0){return this.dnd.onDragOver(XS(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(XS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function VF(o){return o&&Object.assign(Object.assign({},o),{collapseByDefault:!0,identityProvider:o.identityProvider&&{getId(e){return o.identityProvider.getId(e.element)}},dnd:o.dnd&&new VX(o.dnd),multipleSelectionController:o.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return o.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return o.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:o.accessibilityProvider&&Object.assign(Object.assign({},o.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:o.accessibilityProvider.getRole?e=>o.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:o.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=o.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return o.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return o.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:o.accessibilityProvider.getWidgetRole?()=>o.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:o.accessibilityProvider.getAriaLevel&&(e=>o.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:o.accessibilityProvider.getActiveDescendantId&&(e=>o.accessibilityProvider.getActiveDescendantId(e.element))}),filter:o.filter&&{filter(e,t){return o.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},o.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return o.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof o.expandOnlyOnTwistieClick>"u"?void 0:typeof o.expandOnlyOnTwistieClick!="function"?o.expandOnlyOnTwistieClick:e=>o.expandOnlyOnTwistieClick(e.element),additionalScrollHeight:o.additionalScrollHeight})}function uk(o,e){e(o),o.children.forEach(t=>uk(t,e))}class HF{constructor(e,t,i,n,s,r={}){this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new R,this._onDidChangeNodeSlowState=new R,this.nodeMapper=new aN(a=>new gN(a)),this.disposables=new Q,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,n,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=QS({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return ge.map(this.tree.onDidChangeFocus,WM)}get onDidChangeSelection(){return ge.map(this.tree.onDidChangeSelection,WM)}get onMouseDblClick(){return ge.map(this.tree.onMouseDblClick,VM)}get onPointer(){return ge.map(this.tree.onPointer,VM)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new BX(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=VF(s)||{};return new uN(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return vl(this,void 0,void 0,function*(){this.refreshPromises.forEach(n=>n.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)})}_updateChildren(e=this.root.element,t=!0,i=!1,n,s){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,n,s),i)try{this.tree.rerender(r)}catch{}})}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),n})}setSelection(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Ws(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return vl(this,void 0,void 0,function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)})}refreshNode(e,t,i){return vl(this,void 0,void 0,function*(){let n;if(this.subTreeRefreshPromises.forEach((s,r)=>{!n&&FX(r,e)&&(n=s.then(()=>this.refreshNode(e,t,i)))}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0;return}return this.doRefreshSubTree(e,t,i)})}doRefreshSubTree(e,t,i){return vl(this,void 0,void 0,function*(){let n;e.refreshPromise=new Promise(s=>n=s),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const s=yield this.doRefreshNode(e,t,i);e.stale=!1,yield KL.settled(s.map(r=>this.doRefreshSubTree(r,t,i)))}finally{n()}})}doRefreshNode(e,t,i){return vl(this,void 0,void 0,function*(){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(je.empty());else{const s=this.doGetChildren(e);if(ET(s))n=Promise.resolve(s);else{const r=sc(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=s.finally(()=>r.cancel())}}try{const s=yield n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),ea(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}})}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return ET(i)?this.processChildren(i):(t=Ri(()=>vl(this,void 0,void 0,function*(){return this.processChildren(yield i)})),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Te))}setChildren(e,t,i,n){const s=[...t];if(e.children.length===0&&s.length===0)return[];const r=new Map,a=new Map;for(const d of e.children)if(r.set(d.element,d),this.identityProvider){const h=this.tree.isCollapsed(d);a.set(d.id,{node:d,collapsed:h})}const l=[],c=s.map(d=>{const h=!!this.dataSource.hasChildren(d);if(!this.identityProvider){const _=QS({element:d,parent:e,hasChildren:h});return h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const u=this.identityProvider.getId(d).toString(),g=a.get(u);if(g){const _=g.node;return r.delete(_.element),this.nodes.delete(_.element),this.nodes.set(d,_),_.element=d,_.hasChildren=h,i?g.collapsed?(_.children.forEach(b=>uk(b,v=>this.nodes.delete(v.element))),_.children.splice(0,_.children.length),_.stale=!0):l.push(_):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const f=QS({element:d,parent:e,id:u,hasChildren:h});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(f),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(f),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1?l.push(f):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(f.collapsedByDefault=!1,l.push(f)),f});for(const d of r.values())uk(d,h=>this.nodes.delete(h.element));for(const d of c)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].collapsedByDefault=!1,l.push(c[0])),l}render(e,t,i){const n=e.children.map(r=>this.asTreeElement(r,t)),s=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}});this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:i=e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?je.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class fN{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new fN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class HX{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,r;(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=nt(this.disposables)}}function zX(o){const e=o&&VF(o);return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return o.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}})})}class UX extends HF{constructor(e,t,i,n,s,r,a={}){super(e,t,i,s,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new aN(l=>new fN(l)),this.filter=a.filter}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new HX(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=zX(s)||{};return new WF(e,t,r,a,l)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=u=>this.identityProvider.getId(u).toString(),n=u=>{const g=new Set;for(const f of u){const _=this.tree.getCompressedTreeNode(f===this.root?null:f);if(!!_.element)for(const b of _.element.elements)g.add(i(b.element))}return g},s=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let l=!1;const c=this.getFocus();let d=!1;const h=u=>{const g=u.element;if(g)for(let f=0;f{const i=this.filter.filter(t,1),n=$X(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}}function $X(o){return typeof o=="boolean"?o?1:0:lN(o)?Lm(o.visibility):Lm(o)}class jX extends PF{constructor(e,t,i,n,s,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=s,this.identityProvider=r.identityProvider}createModel(e,t,i){return new dN(e,t,i)}}new le("isMac",Ge,p("isMac","Whether the operating system is macOS"));new le("isLinux",dn,p("isLinux","Whether the operating system is Linux"));const B1=new le("isWindows",Yi,p("isWindows","Whether the operating system is Windows"));new le("isWeb",Sc,p("isWeb","Whether the platform is a web browser"));new le("isMacNative",Ge&&!Sc,p("isMacNative","Whether the operating system is macOS on a non-browser platform"));new le("isIOS",Ur,p("isIOS","Whether the operating system is iOS"));new le("isDevelopment",!1,!0);new le("productQualityType","",p("productQualityType","Quality type of VS Code"));const zF="inputFocus";new le(zF,!1,p("inputFocus","Whether keyboard focus is inside an input box"));var sa=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},st=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const so=Ye("listService");let gk=class{constructor(e){this._themeService=e,this.disposables=new Q,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const n=new NF(Qs(),"");this.disposables.add(Ud(n,this._themeService))}if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),qo(e.onDidFocus(()=>this.setLastFocusedList(e)),Be(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};gk=sa([st(0,Ct)],gk);const UF=new le("listFocus",!0),W1=new le("listSupportsMultiselect",!0),$F=se.and(UF,se.not(zF)),pN=new le("listHasSelectionOrFocus",!1),mN=new le("listDoubleSelection",!1),_N=new le("listMultiSelection",!1),V1=new le("listSelectionNavigation",!1),KX=new le("listSupportsFind",!0),bN=new le("treeElementCanCollapse",!1),qX=new le("treeElementHasParent",!1),vN=new le("treeElementCanExpand",!1),GX=new le("treeElementHasChild",!1),ZX=new le("treeFindOpen",!1),jF="listTypeNavigationMode",KF="listAutomaticKeyboardNavigation";function H1(o,e){const t=o.createScoped(e.getHTMLElement());return UF.bindTo(t),t}const Sh="workbench.list.multiSelectModifier",fk="workbench.list.openMode",Gs="workbench.list.horizontalScrolling",CN="workbench.list.defaultFindMode",wN="workbench.list.keyboardNavigation",xm="workbench.tree.indent",rC="workbench.tree.renderIndentGuides",tr="workbench.list.smoothScrolling",Yr="workbench.list.mouseWheelScrollSensitivity",Qr="workbench.list.fastScrollSensitivity",aC="workbench.tree.expandMode";function Xr(o){return o.getValue(Sh)==="alt"}class YX extends H{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Xr(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Sh)&&(this.useAltAsMultipleSelectionModifier=Xr(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:xF(e)}isSelectionRangeChangeEvent(e){return IF(e)}}function z1(o,e){var t;const i=o.get(ot),n=o.get(_i),s=new Q;return[Object.assign(Object.assign({},e),{keyboardNavigationDelegate:{mightProducePrintableCharacter(a){return n.mightProducePrintableCharacter(a)}},smoothScrolling:Boolean(i.getValue(tr)),mouseWheelScrollSensitivity:i.getValue(Yr),fastScrollSensitivity:i.getValue(Qr),multipleSelectionController:(t=e.multipleSelectionController)!==null&&t!==void 0?t:s.add(new YX(i)),keyboardNavigationEventFilter:JX(n)}),s]}let pk=class extends rr{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const _=this.getSelection(),b=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(_.length>0||b.length>0),this.listMultiSelection.set(_.length>1),this.listDoubleSelection.set(_.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const _=this.getSelection(),b=this.getFocus();this.listHasSelectionOrFocus.set(_.length>0||b.length>0)})),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new qF(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),super.dispose()}};pk=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],pk);let HM=class extends aX{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables=new Q,this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),s.overrideStyles&&this.disposables.add(Ud(this,l,s.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new qF(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};HM=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],HM);let zM=class extends F1{constructor(e,t,i,n,s,r,a,l,c,d,h){const u=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:Boolean(d.getValue(Gs)),[g,f]=h.invokeFunction(z1,r);super(e,t,i,n,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(c.getColorTheme(),A1)),g),{horizontalScrolling:u})),this.disposables.add(f),this.contextKeyService=H1(a,this),this.themeService=c,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(d),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const b=this.getSelection(),v=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(b.length>0||v.length>0),this.listMultiSelection.set(b.length>1),this.listDoubleSelection.set(b.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const b=this.getSelection(),v=this.getFocus();this.listHasSelectionOrFocus.set(b.length>0||v.length>0)})),this.disposables.add(d.onDidChangeConfiguration(b=>{b.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(d));let v={};if(b.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const C=Boolean(d.getValue(Gs));v=Object.assign(Object.assign({},v),{horizontalScrolling:C})}if(b.affectsConfiguration(tr)){const C=Boolean(d.getValue(tr));v=Object.assign(Object.assign({},v),{smoothScrolling:C})}if(b.affectsConfiguration(Yr)){const C=d.getValue(Yr);v=Object.assign(Object.assign({},v),{mouseWheelScrollSensitivity:C})}if(b.affectsConfiguration(Qr)){const C=d.getValue(Qr);v=Object.assign(Object.assign({},v),{fastScrollSensitivity:C})}Object.keys(v).length>0&&this.updateOptions(v)})),this.navigator=new QX(this,Object.assign({configurationService:d},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};zM=sa([st(6,Ee),st(7,so),st(8,Ct),st(9,ot),st(10,Ae)],zM);class SN extends H{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new R),this.onDidOpen=this._onDidOpen.event,this._register(ge.filter(this.widget.onDidChangeSelection,n=>n.browserEvent instanceof KeyboardEvent)(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t==null?void 0:t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick"}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i,s=!1;this._open(this.getSelectedElement(),i,n,s,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const n=t.button===1,s=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}_open(e,t,i,n,s){!e||this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class qF extends SN{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class QX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class XX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function JX(o){let e=!1;return t=>{if(t.toKeybinding().isModifierKey())return!1;if(e)return e=!1,!1;const i=o.softDispatch(t,t.target);return i!=null&&i.enterChord?(e=!0,!1):(e=!1,!i)}}let UM=class extends uN{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};UM=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],UM);let $M=class extends WF{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};$M=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],$M);let jM=class extends jX{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};jM=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],jM);let mk=class extends HF{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mk=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],mk);let KM=class extends UX{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const{options:g,getTypeNavigationMode:f,disposable:_}=l.invokeFunction(L_,a);super(e,t,i,n,s,r,g),this.disposables.add(_),this.internals=new Kd(this,a,f,a.overrideStyles,c,d,h,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};KM=sa([st(7,Ae),st(8,Ee),st(9,so),st(10,Ct),st(11,ot)],KM);function GF(o){const e=o.getValue(CN);if(e==="highlight")return Fr.Highlight;if(e==="filter")return Fr.Filter;const t=o.getValue(wN);if(t==="simple"||t==="highlight")return Fr.Highlight;if(t==="filter")return Fr.Filter}function L_(o,e){var t;const i=o.get(ot),n=o.get(vh),s=o.get(Ee),r=o.get(Ae),a=()=>{const u=s.getContextKeyValue(jF);if(u==="automatic")return Yl.Automatic;if(u==="trigger"||s.getContextKeyValue(KF)===!1)return Yl.Trigger},l=e.horizontalScrolling!==void 0?e.horizontalScrolling:Boolean(i.getValue(Gs)),[c,d]=r.invokeFunction(z1,e),h=e.additionalScrollHeight;return{getTypeNavigationMode:a,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},c),{indent:typeof i.getValue(xm)=="number"?i.getValue(xm):void 0,renderIndentGuides:i.getValue(rC),smoothScrolling:Boolean(i.getValue(tr)),defaultFindMode:GF(i),horizontalScrolling:l,additionalScrollHeight:h,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(t=e.expandOnlyOnTwistieClick)!==null&&t!==void 0?t:i.getValue(aC)==="doubleClick",contextViewProvider:n})}}let Kd=class{constructor(e,t,i,n,s,r,a,l){var c;this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=H1(s,e),this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=KX.bindTo(this.contextKeyService),this.listSupportFindWidget.set((c=t.findWidgetEnabled)!==null&&c!==void 0?c:!0),this.hasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.hasDoubleSelection=mN.bindTo(this.contextKeyService),this.hasMultiSelection=_N.bindTo(this.contextKeyService),this.treeElementCanCollapse=bN.bindTo(this.contextKeyService),this.treeElementHasParent=qX.bindTo(this.contextKeyService),this.treeElementCanExpand=vN.bindTo(this.contextKeyService),this.treeElementHasChild=GX.bindTo(this.contextKeyService),this.treeFindOpen=ZX.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Xr(l),this.updateStyleOverrides(n);const h=()=>{const g=e.getFocus()[0];if(!g)return;const f=e.getNode(g);this.treeElementCanCollapse.set(f.collapsible&&!f.collapsed),this.treeElementHasParent.set(!!e.getParentElement(g)),this.treeElementCanExpand.set(f.collapsible&&f.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(g))},u=new Set;u.add(jF),u.add(KF),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const g=e.getSelection(),f=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(g.length>0||f.length>0),this.hasMultiSelection.set(g.length>1),this.hasDoubleSelection.set(g.length===2)})}),e.onDidChangeFocus(()=>{const g=e.getSelection(),f=e.getFocus();this.hasSelectionOrFocus.set(g.length>0||f.length>0),h()}),e.onDidChangeCollapseState(h),e.onDidChangeModel(h),e.onDidChangeFindOpenState(g=>this.treeFindOpen.set(g)),l.onDidChangeConfiguration(g=>{let f={};if(g.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(l)),g.affectsConfiguration(xm)){const _=l.getValue(xm);f=Object.assign(Object.assign({},f),{indent:_})}if(g.affectsConfiguration(rC)){const _=l.getValue(rC);f=Object.assign(Object.assign({},f),{renderIndentGuides:_})}if(g.affectsConfiguration(tr)){const _=Boolean(l.getValue(tr));f=Object.assign(Object.assign({},f),{smoothScrolling:_})}if((g.affectsConfiguration(CN)||g.affectsConfiguration(wN))&&e.updateOptions({defaultFindMode:GF(l)}),g.affectsConfiguration(Gs)&&t.horizontalScrolling===void 0){const _=Boolean(l.getValue(Gs));f=Object.assign(Object.assign({},f),{horizontalScrolling:_})}if(g.affectsConfiguration(aC)&&t.expandOnlyOnTwistieClick===void 0&&(f=Object.assign(Object.assign({},f),{expandOnlyOnTwistieClick:l.getValue(aC)==="doubleClick"})),g.affectsConfiguration(Yr)){const _=l.getValue(Yr);f=Object.assign(Object.assign({},f),{mouseWheelScrollSensitivity:_})}if(g.affectsConfiguration(Qr)){const _=l.getValue(Qr);f=Object.assign(Object.assign({},f),{fastScrollSensitivity:_})}Object.keys(f).length>0&&e.updateOptions(f)}),this.contextKeyService.onDidChangeContext(g=>{g.affectsSome(u)&&e.updateOptions({typeNavigationMode:i()})})),this.navigator=new XX(e,Object.assign({configurationService:l},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){nt(this.styler),this.styler=e?Ud(this.tree,this.themeService,e):H.None}dispose(){this.disposables=nt(this.disposables),nt(this.styler),this.styler=void 0}};Kd=sa([st(4,Ee),st(5,so),st(6,Ct),st(7,ot)],Kd);const eJ=zt.as(rl.Configuration);eJ.registerConfiguration({id:"workbench",order:7,title:p("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Sh]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[p("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:p({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[fk]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Gs]:{type:"boolean",default:!1,description:p("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[xm]:{type:"number",default:8,minimum:4,maximum:40,description:p("tree indent setting","Controls tree indentation in pixels.")},[rC]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:p("render tree indent guides","Controls whether the tree should render indent guides.")},[tr]:{type:"boolean",default:!1,description:p("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Yr]:{type:"number",default:1,markdownDescription:p("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Qr]:{type:"number",default:5,description:p("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[CN]:{type:"string",enum:["highlight","filter"],enumDescriptions:[p("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),p("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:p("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[wN]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[p("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),p("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),p("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:p("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:p("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' instead.")},[aC]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}});var _k;(function(o){o[o.PRESERVE=0]="PRESERVE",o[o.LAST=1]="LAST"})(_k||(_k={}));const yh={Quickaccess:"workbench.contributions.quickaccess"};class tJ{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Be(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return i_([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}zt.add(yh.Quickaccess,new tJ);const dl=Ye("quickInputService");var iJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let bk=class extends H{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=zt.as(yh.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[s,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let g;if(a&&l&&l!==r){const f=a.value.substr(l.prefix.length);f&&(g=`${r.prefix}${f}`)}if(!g){const f=s==null?void 0:s.defaultFilterValue;f===_k.LAST?g=this.lastAcceptedPickerValues.get(r):typeof f=="string"&&(g=`${r.prefix}${f}`)}typeof g=="string"&&(e=g)}const c=new Q,d=c.add(this.quickInputService.createQuickPick());d.value=e,this.adjustValueSelection(d,r,i),d.placeholder=r==null?void 0:r.placeholder,d.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||(i==null?void 0:i.quickNavigateConfiguration))&&(d.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:To.SECOND),d.contextKey=r==null?void 0:r.contextKey,d.filterValue=g=>g.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(d.ariaLabel=r==null?void 0:r.placeholder);let h;t&&(h=new RI,c.add(Xa(d.onWillAccept)(g=>{g.veto(),d.hide()}))),c.add(this.registerPickerListeners(d,s,r,e));const u=c.add(new Qi);if(s&&c.add(s.provide(d,u.token)),Xa(d.onDidHide)(()=>{d.selectedItems.length===0&&u.cancel(),c.dispose(),h==null||h.complete(d.selectedItems.slice(0))}),d.show(),t)return h==null?void 0:h.p}adjustValueSelection(e,t,i){var n;let s;i!=null&&i.preserveValue?s=[e.value.length,e.value.length]:s=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n){const s=new Q,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return s.add(Be(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),s.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&s.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),s}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};bk=iJ([qM(0,dl),qM(1,Ae)],bk);var nJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Nf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vk=class extends GH{constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=s,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(bk))),this._quickAccess}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:s=>this.setContextKey(s),returnFocus:()=>e.focus(),createList:(s,r,a,l,c)=>this.instantiationService.createInstance(pk,s,r,a,l,c),styles:this.computeStyles()},n=this._register(new P1(Object.assign(Object.assign({},i),t)));return n.layout(e.dimension,e.offset.quickPickTop),this._register(e.onDidLayout(s=>n.layout(s,e.offset.quickPickTop))),this._register(n.onShow(()=>this.resetContextKeys())),this._register(n.onHide(()=>this.resetContextKeys())),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new le(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t==null||t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=ze.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Ao(this.theme,{quickInputBackground:M2,quickInputForeground:yz,quickInputTitleBackground:Lz,contrastBorder:We,widgetShadow:Ho})),inputBox:Ao(this.theme,{inputForeground:f1,inputBackground:g1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE}),countBadge:Ao(this.theme,{badgeBackground:gu,badgeForeground:fu,badgeBorder:We}),button:Ao(this.theme,{buttonForeground:Uf,buttonBackground:lD,buttonHoverBackground:pz,buttonBorder:We}),progressBar:Ao(this.theme,{progressBarBackground:mz}),keybindingLabel:Ao(this.theme,{keybindingLabelBackground:xz,keybindingLabelForeground:Iz,keybindingLabelBorder:Ez,keybindingLabelBottomBorder:Nz,keybindingLabelShadow:Ho}),list:Ao(this.theme,{listBackground:M2,listInactiveFocusForeground:jf,listInactiveSelectionIconForeground:Kf,listInactiveFocusBackground:qf,listFocusOutline:Ot,listInactiveFocusOutline:Ot,pickerGroupBorder:kz,pickerGroupForeground:Dz})}}};vk=nJ([Nf(0,Ae),Nf(1,Ee),Nf(2,Ct),Nf(3,al),Nf(4,Yg)],vk);var ZF=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},td=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Ck=class extends vk{constructor(e,t,i,n,s,r){super(t,i,n,s,new FD(e.getContainerDomNode(),r)),this.host=void 0;const a=wg.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return l.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus(),offset:{top:0,quickPickTop:0}}}else this.host=void 0}createController(){return super.createController(this.host)}};Ck=ZF([td(1,Ae),td(2,Ee),td(3,Ct),td(4,al),td(5,ct)],Ck);let wk=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(Ck,e);this.mapEditorToService.set(e,t),Xa(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=ze.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};wk=ZF([td(0,Ae),td(1,ct)],wk);class wg{constructor(e){this.editor=e,this.widget=new U1(this.editor)}static get(e){return e.getContribution(wg.ID)}dispose(){this.widget.dispose()}}wg.ID="editor.controller.quickInput";class U1{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return U1.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}U1.ID="editor.contrib.quickInputWidget";tt(wg.ID,wg);class sJ{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}function oJ(o){if(!o||!Array.isArray(o))return[];const e=[];let t=0;for(let i=0,n=o.length;i{const u=hJ(d.token,h.token);return u!==0?u:d.index-h.index});let t=0,i="000000",n="ffffff";for(;o.length>=1&&o[0].token==="";){const d=o.shift();d.fontStyle!==-1&&(t=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(n=d.background)}const s=new lJ;for(const d of e)s.getId(d);const r=s.getId(i),a=s.getId(n),l=new yN(t,r,a),c=new LN(l);for(let d=0,h=o.length;d"u"){const n=this._match(t),s=dJ(t);i=(n.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const cJ=/\b(comment|string|regex|regexp)\b/;function dJ(o){const e=o.match(cJ);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function hJ(o,e){return oe?1:0}class yN{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new yN(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class LN{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,n;t===-1?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return typeof s<"u"?s.match(n):this._mainRule}insert(e,t,i,n){if(e===""){this._mainRule.acceptOverwrite(t,i,n);return}const s=e.indexOf(".");let r,a;s===-1?(r=e,a=""):(r=e.substring(0,s),a=e.substring(s+1));let l=this._children.get(r);typeof l>"u"&&(l=new LN(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,n)}}function uJ(o){const e=[];for(let t=1,i=o.length;te.fire()),o==null||o.onDidProductIconThemeChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const i=o?o.getProductIconTheme():new QF,n={},s=a=>{const l=i.getIcon(a);if(!l)return;const c=l.font;return c?(n[c.id]=c.definition,`.codicon-${a.id}:before { content: '${l.fontCharacter}'; font-family: ${x2(c.id)}; }`):`.codicon-${a.id}:before { content: '${l.fontCharacter}'; }`},r=[];for(const a of t.getIcons()){const l=s(a);l&&r.push(l)}for(const a in n){const l=n[a],c=l.weight?`font-weight: ${l.weight};`:"",d=l.style?`font-style: ${l.style};`:"",h=l.src.map(u=>`${Pd(u.location)} format('${u.format}')`).join(", ");r.push(`@font-face { src: ${h}; font-family: ${x2(a)};${c}${d} font-display: block; }`)}return r.join(` +`)}}}class QF{getIcon(e){const t=U5();let i=e.defaults;for(;at.isThemeIcon(i);){const n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}}const Ra="vs",Ku="vs-dark",Sd="hc-black",yd="hc-light",XF=zt.as(D4.ColorContribution),bJ=zt.as(f4.ThemingContribution);class JF{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(I0(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,W.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=Sk(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,W.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=XF.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case Ra:return Hs.LIGHT;case Sd:return Hs.HIGH_CONTRAST_DARK;case yd:return Hs.HIGH_CONTRAST_LIGHT;default:return Hs.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const s=Sk(this.themeData.base);e=s.rules,s.encodedTokensColors&&(t=s.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const s={token:""};i&&(s.foreground=i),n&&(s.background=n),e.push(s)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=YF.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=qi.getForeground(s),a=qi.getFontStyle(s);return{foreground:r,italic:Boolean(a&1),bold:Boolean(a&2),underline:Boolean(a&4),strikethrough:Boolean(a&8)}}}function I0(o){return o===Ra||o===Ku||o===Sd||o===yd}function Sk(o){switch(o){case Ra:return gJ;case Ku:return fJ;case Sd:return pJ;case yd:return mJ}}function Fb(o){const e=Sk(o);return new JF(o,e)}class vJ extends H{constructor(){super(),this._onColorThemeChange=this._register(new R),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new R),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new QF,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Ra,Fb(Ra)),this._knownThemes.set(Ku,Fb(Ku)),this._knownThemes.set(Sd,Fb(Sd)),this._knownThemes.set(yd,Fb(yd));const e=_J(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(Ra),this._onOSSchemeChanged(),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),DI("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return Gp(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Qs(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),H.None}_registerShadowDomContainer(e){const t=Qs(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(Ra),this._updateActualTheme(t)}_updateActualTheme(e){!e||this._theme===e||(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=window.matchMedia("(forced-colors: active)").matches;if(e!==cn(this._theme.type)){let t;Xp(this._theme.type)?t=e?Sd:Ku:t=e?yd:Ra,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};bJ.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const n=[];for(const r of XF.getColors()){const a=this._theme.getColor(r.id,!0);a&&n.push(`${L4(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor { ${n.join(` `)} }`);const s=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(uJ(s)),this._themeCSS=e.join(` `),this._updateCSS(),Wt.setColorMap(s),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} ${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}const Es=Ye("themeService");var CJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let yk=class extends H{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new R,this._onDidChangeReducedMotion=new R,this._accessibilityModeEnabledContext=c_.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(r=>{r.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),r.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),n(),this._register(this.onDidChangeScreenReaderOptimized(()=>n()));const s=window.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(s)}initReducedMotionListeners(e){if(!this._layoutService.hasContainer)return;this._register(G(e,"change",()=>{this._systemMotionReduced=e.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.container.classList.toggle("reduce-motion",i),this._layoutService.container.classList.toggle("enable-motion",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return e==="on"||e==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return e==="on"||e==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};yk=CJ([JS(0,Ee),JS(1,Yg),JS(2,ot)],yk);var Jf=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Du;(function(o){o[o.None=0]="None",o[o.Initialized=1]="Initialized",o[o.Closed=2]="Closed"})(Du||(Du={}));class qu extends H{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new R),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=Du.None,this.cache=new Map,this.flushDelayer=new EW(qu.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,i;(t=e.changed)===null||t===void 0||t.forEach((n,s)=>this.accept(s,n)),(i=e.deleted)===null||i===void 0||i.forEach(n=>this.accept(n,void 0))}accept(e,t){if(this.state===Du.Closed)return;let i=!1;ms(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}get(e,t){const i=this.cache.get(e);return ms(i)?t:i}getBoolean(e,t){const i=this.get(e);return ms(i)?t:i==="true"}getNumber(e,t){const i=this.get(e);return ms(i)?t:parseInt(i,10)}set(e,t){return Jf(this,void 0,void 0,function*(){if(this.state===Du.Closed)return;if(ms(t))return this.delete(e);const i=String(t);if(this.cache.get(e)!==i)return this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}delete(e){return Jf(this,void 0,void 0,function*(){if(!(this.state===Du.Closed||!this.cache.delete(e)))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return Jf(this,void 0,void 0,function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var t;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(t=this.whenFlushedCallbacks.pop())===null||t===void 0||t()})})}doFlush(e){return Jf(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),e)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}qu.DEFAULT_FLUSH_DELAY=100;class ey{constructor(){this.onDidChangeItemsExternal=ge.None,this.items=new Map}updateItems(e){var t,i;return Jf(this,void 0,void 0,function*(){(t=e.insert)===null||t===void 0||t.forEach((n,s)=>this.items.set(s,n)),(i=e.delete)===null||i===void 0||i.forEach(n=>this.items.delete(n))})}}const Bb="__$__targetStorageMarker",Do=Ye("storageService");var lC;(function(o){o[o.NONE=0]="NONE",o[o.SHUTDOWN=1]="SHUTDOWN"})(lC||(lC={}));class $1 extends H{constructor(e={flushInterval:$1.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new Z0),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new Z0),this._onWillSaveState=this._register(new R),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}emitDidChangeValue(e,t){if(t===Bb){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getNumber(e,i)}store(e,t,i,n){if(ms(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var s;this.updateKeyTarget(e,i,n),(s=this.getStorage(i))===null||s===void 0||s.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),(i=this.getStorage(t))===null||i===void 0||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,s;const r=this.getKeyTargets(t);typeof i=="number"?r[e]!==i&&(r[e]=i,(n=this.getStorage(t))===null||n===void 0||n.set(Bb,JSON.stringify(r))):typeof r[e]=="number"&&(delete r[e],(s=this.getStorage(t))===null||s===void 0||s.set(Bb,JSON.stringify(r)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.get(Bb,e);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}}$1.DEFAULT_FLUSH_INTERVAL=60*1e3;class wJ extends $1{constructor(){super(),this.applicationStorage=this._register(new qu(new ey)),this.profileStorage=this._register(new qu(new ey)),this.workspaceStorage=this._register(new qu(new ey)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.profileStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e))),this._register(this.applicationStorage.onDidChangeStorage(e=>this.emitDidChangeValue(-1,e)))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}var DN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Lk=class{constructor(e,t){this._commandService=e,this._hiddenStates=new cC(t)}createMenu(e,t,i){return new Dk(e,this._hiddenStates,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};Lk=DN([Gu(0,ci),Gu(1,Do)],Lk);let cC=class ep{constructor(e){this._storageService=e,this._disposables=new Q,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1;try{const t=e.get(ep._key,0,"{}");this._data=JSON.parse(t)}catch{this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(t=>{if(t.key===ep._key){if(!this._ignoreChangeEvent)try{const i=e.get(ep._key,0,"{}");this._data=JSON.parse(i)}catch(i){console.log("FAILED to read storage after UPDATE",i)}this._onDidChange.fire()}}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}isHidden(e,t){var i,n;return(n=(i=this._data[e.id])===null||i===void 0?void 0:i.includes(t))!==null&&n!==void 0?n:!1}updateHidden(e,t,i){const n=this._data[e.id];if(i)n?n.indexOf(t)<0&&n.push(t):this._data[e.id]=[t];else if(n){const s=n.indexOf(t);s>=0&&T8(n,s),n.length===0&&delete this._data[e.id]}this._persist()}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(ep._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};cC._key="menu.hiddenCommands";cC=DN([Gu(0,Do)],cC);let Dk=class iu{constructor(e,t,i,n,s,r){this._id=e,this._hiddenStates=t,this._options=i,this._commandService=n,this._contextKeyService=s,this._menuService=r,this._disposables=new Q,this._menuGroups=[],this._contextKeys=new Set,this._build();const a=new mt(()=>{this._build(),this._onDidChange.fire(this)},i.eventDebounceDelay);this._disposables.add(a),this._disposables.add(qs.onDidChangeMenu(d=>{d.has(e)&&a.schedule()}));const l=this._disposables.add(new Q),c=()=>{const d=new mt(()=>this._onDidChange.fire(this),i.eventDebounceDelay);l.add(d),l.add(s.onDidChangeContext(h=>{h.affectsSome(this._contextKeys)&&d.schedule()})),l.add(t.onDidChange(()=>{d.schedule()}))};this._onDidChange=new R({onFirstListenerAdd:c,onLastListenerRemove:l.clear.bind(l)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const e=qs.getMenuItems(this._id);let t;e.sort(iu._compareMenuItems);for(const i of e){const n=i.group||"";(!t||t[0]!==n)&&(t=[n,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(iu._fillInKbExprKeys(e.when,this._contextKeys),uu(e)){if(e.command.precondition&&iu._fillInKbExprKeys(e.command.precondition,this._contextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;iu._fillInKbExprKeys(t,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&qs.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}getActions(e){const t=[];for(const i of this._menuGroups){const[n,s]=i,r=[],a=[];for(const l of s)if(this._contextKeyService.contextMatchesRules(l.when)){let c;if(uu(l)){const h=SJ(this._id,l.command,this._hiddenStates);c=new ac(l.command,l.alt,e,h,this._contextKeyService,this._commandService)}else c=new GI(l,this._menuService,this._contextKeyService,e),c.actions.length===0&&(c.dispose(),c=void 0);c&&a.push(c)}a.length>0&&t.push([n,a]),r.length>0}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(i){if(!n)return-1}else return 1;if(i==="navigation")return-1;if(n==="navigation")return 1;const a=i.localeCompare(n);if(a!==0)return a}const s=e.order||0,r=t.order||0;return sr?1:iu._compareTitles(uu(e)?e.command.title:e.title,uu(t)?t.command.title:t.title)}static _compareTitles(e,t){const i=typeof e=="string"?e:e.original,n=typeof t=="string"?t:t.original;return i.localeCompare(n)}};Dk=DN([Gu(3,ci),Gu(4,Ee),Gu(5,ph)],Dk);function SJ(o,e,t){const i=`${o.id}/${e.id}`,n=typeof e.title=="string"?e.title:e.title.value,s=E2({id:i,label:p("hide.label","Hide '{0}'",n),run(){t.updateHidden(o,e.id,!0)}}),r=E2({id:i,label:n,get checked(){return!t.isHidden(o,e.id)},run(){const a=!t.isHidden(o,e.id);t.updateHidden(o,e.id,a)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}var yJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},GM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Hh=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kk=class extends H{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],(Ja||xI)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){const e=()=>{const t=new RI;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=t,navigator.clipboard.write([new ClipboardItem({"text/plain":t.p})]).catch(i=>Hh(this,void 0,void 0,function*(){(!(i instanceof Error)||i.name!=="NotAllowedError"||!t.isRejected)&&this.logService.error(i)}))};this.layoutService.hasContainer&&(this._register(G(this.layoutService.container,"click",e)),this._register(G(this.layoutService.container,"keydown",e)))}writeText(e,t){return Hh(this,void 0,void 0,function*(){if(t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return yield navigator.clipboard.writeText(e)}catch(s){console.error(s)}const i=document.activeElement,n=document.body.appendChild(J("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(n)})}readText(e){return Hh(this,void 0,void 0,function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(t){return console.error(t),""}})}readFindText(){return Hh(this,void 0,void 0,function*(){return this.findText})}writeFindText(e){return Hh(this,void 0,void 0,function*(){this.findText=e})}readResources(){return Hh(this,void 0,void 0,function*(){return this.resources})}};kk=yJ([GM(0,Yg),GM(1,So)],kk);var LJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},DJ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const kp="data-keybinding-context";class kN{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return Object.assign({},this._value)}setValue(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1}removeValue(e){return e in this._value?(delete this._value[e],!0):!1}getValue(e){const t=this._value[e];return typeof t>"u"&&this._parent?this._parent.getValue(e):t}}class Sg extends kN{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Sg.INSTANCE=new Sg;class Im extends kN{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Uu.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(n=>{if(n.source===7){const s=Array.from(je.map(this._values,([r])=>r));this._values.clear(),i.fire(new YM(s))}else{const s=[];for(const r of n.affectedKeys){const a=`config.${r}`,l=this._values.findSuperstr(a);l!==void 0&&(s.push(...je.map(l,([c])=>c)),this._values.deleteSuperstr(a)),this._values.has(a)&&(s.push(a),this._values.delete(a))}i.fire(new YM(s))}})}dispose(){this._listener.dispose()}getValue(e){if(e.indexOf(Im._keyPrefix)!==0)return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Im._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:Array.isArray(i)?n=JSON.stringify(i):n=i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Im._keyPrefix="config.";class kJ{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class ZM{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class YM{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every(t=>e.has(t))}}class xJ{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(t=>t.allKeysContainedIn(e))}}function IJ(o,e){return o.allKeysContainedIn(new Set(Object.keys(e)))}class e3{constructor(e){this._onDidChangeContext=new Z0({merge:t=>new xJ(t)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new kJ(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new EJ(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return e?e.evaluate(t):!0}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);!i||i.setValue(e,t)&&this._onDidChangeContext.fire(new ZM(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new ZM(e))}getContext(e){return this._isDisposed?Sg.INSTANCE:this.getContextValuesContainer(NJ(e))}}let xk=class extends e3{constructor(e){super(0),this._contexts=new Map,this._toDispose=new Q,this._lastContextId=0;const t=new Im(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?Sg.INSTANCE:this._contexts.get(e)||Sg.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new kN(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};xk=LJ([DJ(0,ot)],xk);class EJ extends e3{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new _n,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(kp)){let i="";this._domNode.classList&&(i=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${i?": "+i:""}`)}this._domNode.setAttribute(kp,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{const i=this._parent.getContextValuesContainer(this._myContextId).value;IJ(e,i)||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(kp),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?Sg.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function NJ(o){for(;o;){if(o.hasAttribute(kp)){const e=o.getAttribute(kp);return e?parseInt(e,10):NaN}o=o.parentElement}return 0}function TJ(o,e,t){o.get(Ee).createKey(String(e),AJ(t))}function AJ(o){return qO(o,e=>{if(typeof e=="object"&&e.$mid===1)return _e.revive(e).toString();if(e instanceof _e)return e.toString()})}Xe.registerCommand(KH,TJ);Xe.registerCommand({id:"getContextKeyInfo",handler(){return[...le.all()].sort((o,e)=>o.key.localeCompare(e.key))},description:{description:p("getContextKeyInfo","A command that returns information about context keys"),args:[]}});Xe.registerCommand("_generateContextKeyInfo",function(){const o=[],e=new Set;for(const t of le.all())e.has(t.key)||(e.add(t.key),o.push(t));o.sort((t,i)=>t.key.localeCompare(i.key)),console.log(JSON.stringify(o,void 0,2))});class MJ{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class RJ{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),n),n.incoming.set(this._hashFn(e),i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new MJ(e),this._nodes.set(t,i)),i}isEmpty(){return this._nodes.size===0}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}, (incoming)[${[...i.incoming.keys()].join(", ")}], (outgoing)[${[...i.outgoing.keys()].join(",")}]`);return e.join(` @@ -601,34 +601,34 @@ ${e.toString()}`}}class xN{constructor(e=new k1,t=!1,i){this._activeInstantiatio `+e.detail),Promise.resolve(window.confirm(t))}show(e,t,i,n){return Promise.resolve({choice:0})}}class K1{info(e){return this.notify({severity:Bt.Info,message:e})}warn(e){return this.notify({severity:Bt.Warning,message:e})}error(e){return this.notify({severity:Bt.Error,message:e})}notify(e){switch(e.severity){case Bt.Error:console.error(e.message);break;case Bt.Warning:console.warn(e.message);break;default:console.log(e.message);break}return K1.NO_OP}status(e,t){return H.None}}K1.NO_OP=new _G;let Ek=class{constructor(e){this._onWillExecuteCommand=new R,this._onDidExecuteCommand=new R,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=Xe.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};Ek=Ic([pn(0,Ae)],Ek);let yg=class extends rY{constructor(e,t,i,n,s,r){super(e,t,i,n,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=g=>{const f=new Q;f.add(G(g,ae.KEY_DOWN,_=>{const b=new Rt(_);this._dispatch(b,b.target)&&(b.preventDefault(),b.stopPropagation())})),f.add(G(g,ae.KEY_UP,_=>{const b=new Rt(_);this._singleModifierDispatch(b,b.target)&&b.preventDefault()})),this._domNodeListeners.push(new zJ(g,f))},l=g=>{for(let f=0;f{g.getOption(56)||a(g.getContainerDomNode())},d=g=>{g.getOption(56)||l(g.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove(d)),r.listCodeEditors().forEach(c);const h=g=>{a(g.getContainerDomNode())},u=g=>{l(g.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove(u)),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,n){return qo(Xe.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map(i=>{var n,s;const r=eD(i.keybinding,Os);return{keybinding:(n=r==null?void 0:r.parts)!==null&&n!==void 0?n:null,command:(s=i.command)!==null&&s!==void 0?s:null,commandArgs:i.commandArgs,when:i.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),Be(()=>{for(let i=0;ithis._log(i))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const s of e){const r=s.when||void 0,a=s.keybinding;if(!a)i[n++]=new aM(void 0,s.command,s.commandArgs,r,t,null,!1);else{const l=mm.resolveUserBinding(a,Os);for(const c of l)i[n++]=new aM(c,s.command,s.commandArgs,r,t,null,!1)}}return i}resolveKeyboardEvent(e){const t=new Md(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new mm(t,Os)}};yg=Ic([pn(0,Ee),pn(1,ci),pn(2,sr),pn(3,di),pn(4,So),pn(5,ct)],yg);class zJ extends H{constructor(e,t){super(),this.domNode=e,this._register(t)}}function JM(o){return o&&typeof o=="object"&&(!o.overrideIdentifier||typeof o.overrideIdentifier=="string")&&(!o.resource||o.resource instanceof _e)}class s3{constructor(){this._onDidChangeConfiguration=new R,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new N1(new BJ,new Qn,new Qn,new Qn)}getValue(e,t){const i=typeof e=="string"?e:void 0,n=JM(e)?e:JM(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[s,r]=n;this.getValue(s)!==r&&(this._configuration.updateValue(s,r),i.push(s))}if(i.length>0){const n=new sY({keys:i,overrides:[]},t,this._configuration);n.source=8,n.sourceConfig=null,this._onDidChangeConfiguration.fire(n)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Nk=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new R,this.configurationService.onDidChangeConfiguration(t=>{this._onDidChangeConfiguration.fire({affectedKeys:t.affectedKeys,affectsConfiguration:(i,n)=>t.affectsConfiguration(n)})})}getValue(e,t,i){const s=(B.isIPosition(t)?t:null)?typeof i=="string"?i:void 0:typeof t=="string"?t:void 0;return typeof s>"u"?this.configurationService.getValue():this.configurationService.getValue(s)}};Nk=Ic([pn(0,ot)],Nk);let Tk=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&typeof i=="string"&&i!=="auto"?i:dn||Ge?` `:`\r -`}};Tk=Ic([pn(0,ot)],Tk);class UJ{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Em{constructor(){const e=_e.from({scheme:Em.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new uY({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Em.SCHEME?this.workspace.folders[0]:null}}Em.SCHEME="inmemory";function dC(o,e,t){if(!e||!(o instanceof s3))return;const i=[];Object.keys(e).forEach(n=>{tY(n)&&i.push([`editor.${n}`,e[n]]),t&&iY(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Ak=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return n3(this,void 0,void 0,function*(){const i=new Map;for(const r of e){if(!(r instanceof Cd))throw new Error("bad edit - only text edits are supported");const a=this._modelService.getModel(r.resource);if(!a)throw new Error("bad edit - model not found");if(typeof r.versionId=="number"&&a.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let l=i.get(a);l||(l=[],i.set(a,l)),l.push(Ft.replaceMove(L.lift(r.textEdit.range),r.textEdit.text))}let n=0,s=0;for(const[r,a]of i)r.pushStackElement(),r.pushEditOperations([],a,()=>[]),r.pushStackElement(),s+=1,n+=a.length;return{ariaSummary:Vs(jD.bulkEditServiceSummary,n,s)}})}};Ak=Ic([pn(0,Ut)],Ak);class $J{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return Js(e)}}let Mk=class extends KD{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};Mk=Ic([pn(0,Yg),pn(1,ct)],Mk);class jJ{constructor(){this._neverEmitter=new R,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class KJ extends Cm{constructor(){super()}}class qJ extends mV{constructor(){super(new pV)}}let Rk=class extends ZD{constructor(e,t,i,n,s){super(e,t,i,n,s),this.configure({blockMouse:!1})}};Rk=Ic([pn(0,sr),pn(1,di),pn(2,vh),pn(3,_i),pn(4,Ct)],Rk);et(ot,s3);et(WI,Nk);et(VP,Tk);et(_m,Em);et(bg,$J);et(sr,UJ);et(b_,HJ);et(di,K1);et(na,kl);et(Ht,KJ);et(Es,vJ);et(So,qJ);et(Ut,iC);et(KI,ek);et(Ee,xk);et(GF,VJ);et(kc,j1);et(Do,wJ);et(to,XL);et(v_,Ak);et(l5,jJ);et(Kn,Ik);et(al,yk);et(so,gk);et(ci,Ek);et(_i,yg);et(dl,wk);et(vh,Mk);et(io,JD);et(cl,kk);et(ll,Rk);et(ph,Lk);var Le;(function(o){const e=new k1;for(const[r,a]of UT())e.set(r,a);const t=new xN(e,!0);e.set(Ae,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof yr?t.invokeFunction(l=>l.get(r)):a}o.get=i;let n=!1;function s(r){if(n)return t;n=!0;for(const[a,l]of UT())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=Ye(a);e.get(l)instanceof yr&&e.set(l,r[a])}return t}o.initialize=s})(Le||(Le={}));var IN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},At=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let GJ=0,eR=!1;function ZJ(o){if(!o){if(eR)return;eR=!0}UH(o||document.body)}let hC=class extends pg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);g.ariaLabel=g.ariaLabel||Zv.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+Zv.accessibilityHelpMessage,super(e,g,{},i,n,s,r,l,c,d,h,u),a instanceof yg?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,ZJ(g.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++GJ,s=se.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),H.None;const t=e.id,i=e.label,n=se.and(se.equals("editorId",this.getId()),se.deserialize(e.precondition)),s=e.keybindings,r=se.and(n,se.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(g,...f)=>Promise.resolve(e.run(this,...f)),d=new Q,h=this.getId()+":"+t;if(d.add(Xe.registerCommand(h,c)),a){const g={command:{id:h,title:i},when:n,group:a,order:l};d.add(qs.appendMenuItem(M.EditorContext,g))}if(Array.isArray(s))for(const g of s)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,g,c,r));const u=new aF(h,i,i,n,c,this._contextKeyService);return this._actions[t]=u,d.add(Be(()=>{delete this._actions[t]})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof Uv)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};hC=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Ct),At(8,di),At(9,al),At(10,si),At(11,de)],hC);let Ok=class extends hC{constructor(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_){const b=Object.assign({},t);dC(d,b,!1);const v=l.registerEditorContainer(e);typeof b.theme=="string"&&l.setTheme(b.theme),typeof b.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(Boolean(b.autoDetectHighContrast));const C=b.model;delete b.model,super(e,b,i,n,s,r,a,l,c,h,f,_),this._configurationService=d,this._standaloneThemeService=l,this._register(v);let w;if(typeof C>"u"){const S=g.getLanguageIdByMimeType(b.language)||b.language||Ks;w=o3(u,g,b.value||"",S,void 0),this._ownsModel=!0}else w=C,this._ownsModel=!1;if(this._attachModel(w),w){const S={oldModelUrl:null,newModelUrl:w.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Ok=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Es),At(8,di),At(9,ot),At(10,al),At(11,Ut),At(12,Ht),At(13,si),At(14,de)],Ok);let Pk=class extends uc{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);dC(c,g,!0);const f=a.registerEditorContainer(e);typeof g.theme=="string"&&a.setTheme(g.theme),typeof g.autoDetectHighContrast<"u"&&a.setAutoDetectHighContrast(Boolean(g.autoDetectHighContrast)),super(e,g,{},u,s,n,i,r,a,l,d,h),this._configurationService=c,this._standaloneThemeService=a,this._register(f)}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(hC,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};Pk=IN([At(2,Ae),At(3,Ee),At(4,to),At(5,ct),At(6,Es),At(7,di),At(8,ot),At(9,ll),At(10,kc),At(11,cl)],Pk);function o3(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` +`}};Tk=Ic([pn(0,ot)],Tk);class UJ{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Em{constructor(){const e=_e.from({scheme:Em.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new uY({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Em.SCHEME?this.workspace.folders[0]:null}}Em.SCHEME="inmemory";function dC(o,e,t){if(!e||!(o instanceof s3))return;const i=[];Object.keys(e).forEach(n=>{tY(n)&&i.push([`editor.${n}`,e[n]]),t&&iY(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Ak=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return n3(this,void 0,void 0,function*(){const i=new Map;for(const r of e){if(!(r instanceof Cd))throw new Error("bad edit - only text edits are supported");const a=this._modelService.getModel(r.resource);if(!a)throw new Error("bad edit - model not found");if(typeof r.versionId=="number"&&a.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let l=i.get(a);l||(l=[],i.set(a,l)),l.push(Ft.replaceMove(L.lift(r.textEdit.range),r.textEdit.text))}let n=0,s=0;for(const[r,a]of i)r.pushStackElement(),r.pushEditOperations([],a,()=>[]),r.pushStackElement(),s+=1,n+=a.length;return{ariaSummary:Vs(jD.bulkEditServiceSummary,n,s)}})}};Ak=Ic([pn(0,Ut)],Ak);class $J{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return Js(e)}}let Mk=class extends KD{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};Mk=Ic([pn(0,Yg),pn(1,ct)],Mk);class jJ{constructor(){this._neverEmitter=new R,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class KJ extends Cm{constructor(){super()}}class qJ extends mV{constructor(){super(new pV)}}let Rk=class extends ZD{constructor(e,t,i,n,s){super(e,t,i,n,s),this.configure({blockMouse:!1})}};Rk=Ic([pn(0,sr),pn(1,di),pn(2,vh),pn(3,_i),pn(4,Ct)],Rk);et(ot,s3);et(WI,Nk);et(VP,Tk);et(_m,Em);et(bg,$J);et(sr,UJ);et(b_,HJ);et(di,K1);et(na,kl);et(Ht,KJ);et(Es,vJ);et(So,qJ);et(Ut,iC);et(KI,ek);et(Ee,xk);et(G5,VJ);et(kc,j1);et(Do,wJ);et(to,XL);et(v_,Ak);et(lF,jJ);et(Kn,Ik);et(al,yk);et(so,gk);et(ci,Ek);et(_i,yg);et(dl,wk);et(vh,Mk);et(io,JD);et(cl,kk);et(ll,Rk);et(ph,Lk);var Le;(function(o){const e=new k1;for(const[r,a]of UT())e.set(r,a);const t=new xN(e,!0);e.set(Ae,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof yr?t.invokeFunction(l=>l.get(r)):a}o.get=i;let n=!1;function s(r){if(n)return t;n=!0;for(const[a,l]of UT())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=Ye(a);e.get(l)instanceof yr&&e.set(l,r[a])}return t}o.initialize=s})(Le||(Le={}));var IN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},At=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let GJ=0,eR=!1;function ZJ(o){if(!o){if(eR)return;eR=!0}UH(o||document.body)}let hC=class extends pg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);g.ariaLabel=g.ariaLabel||Zv.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+Zv.accessibilityHelpMessage,super(e,g,{},i,n,s,r,l,c,d,h,u),a instanceof yg?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,ZJ(g.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++GJ,s=se.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),H.None;const t=e.id,i=e.label,n=se.and(se.equals("editorId",this.getId()),se.deserialize(e.precondition)),s=e.keybindings,r=se.and(n,se.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(g,...f)=>Promise.resolve(e.run(this,...f)),d=new Q,h=this.getId()+":"+t;if(d.add(Xe.registerCommand(h,c)),a){const g={command:{id:h,title:i},when:n,group:a,order:l};d.add(qs.appendMenuItem(M.EditorContext,g))}if(Array.isArray(s))for(const g of s)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,g,c,r));const u=new a5(h,i,i,n,c,this._contextKeyService);return this._actions[t]=u,d.add(Be(()=>{delete this._actions[t]})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof Uv)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};hC=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Ct),At(8,di),At(9,al),At(10,si),At(11,de)],hC);let Ok=class extends hC{constructor(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_){const b=Object.assign({},t);dC(d,b,!1);const v=l.registerEditorContainer(e);typeof b.theme=="string"&&l.setTheme(b.theme),typeof b.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(Boolean(b.autoDetectHighContrast));const C=b.model;delete b.model,super(e,b,i,n,s,r,a,l,c,h,f,_),this._configurationService=d,this._standaloneThemeService=l,this._register(v);let w;if(typeof C>"u"){const S=g.getLanguageIdByMimeType(b.language)||b.language||Ks;w=o3(u,g,b.value||"",S,void 0),this._ownsModel=!0}else w=C,this._ownsModel=!1;if(this._attachModel(w),w){const S={oldModelUrl:null,newModelUrl:w.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Ok=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Es),At(8,di),At(9,ot),At(10,al),At(11,Ut),At(12,Ht),At(13,si),At(14,de)],Ok);let Pk=class extends uc{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);dC(c,g,!0);const f=a.registerEditorContainer(e);typeof g.theme=="string"&&a.setTheme(g.theme),typeof g.autoDetectHighContrast<"u"&&a.setAutoDetectHighContrast(Boolean(g.autoDetectHighContrast)),super(e,g,{},u,s,n,i,r,a,l,d,h),this._configurationService=c,this._standaloneThemeService=a,this._register(f)}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(hC,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};Pk=IN([At(2,Ae),At(3,Ee),At(4,to),At(5,ct),At(6,Es),At(7,di),At(8,ot),At(9,ll),At(10,kc),At(11,cl)],Pk);function o3(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` `);let r=t;return s!==-1&&(r=t.substring(0,s)),tR(o,t,e.createByFilepathOrFirstLine(n||null,r),n)}return tR(o,t,e.createById(i),n)}function tR(o,e,t,i){return o.createModel(e,t,i)}function YJ(o,e,t){return Le.initialize(t||{}).createInstance(Ok,o,e)}function QJ(o){return Le.get(ct).onCodeEditorAdd(t=>{o(t)})}function XJ(o){return Le.get(ct).onDiffEditorAdd(t=>{o(t)})}function JJ(){return Le.get(ct).listCodeEditors()}function eee(){return Le.get(ct).listDiffEditors()}function tee(o,e,t){return Le.initialize(t||{}).createInstance(Pk,o,e)}function iee(o,e){return new FB(o,e)}function nee(o){if(typeof o.id!="string"||typeof o.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Xe.registerCommand(o.id,o.run)}function see(o){if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=se.deserialize(o.precondition),t=(n,...s)=>xi.runEditorCommand(n,s,e,(r,a,l)=>Promise.resolve(o.run(a,...l))),i=new Q;if(i.add(Xe.registerCommand(o.id,t)),o.contextMenuGroupId){const n={command:{id:o.id,title:o.label},when:e,group:o.contextMenuGroupId,order:o.contextMenuOrder||0};i.add(qs.appendMenuItem(M.EditorContext,n))}if(Array.isArray(o.keybindings)){const n=Le.get(_i);if(!(n instanceof yg))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const s=se.and(e,se.deserialize(o.keybindingContext));i.add(n.addDynamicKeybindings(o.keybindings.map(r=>({keybinding:r,command:o.id,when:s}))))}}return i}function oee(o){return r3([o])}function r3(o){const e=Le.get(_i);return e instanceof yg?e.addDynamicKeybindings(o.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:se.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),H.None)}function ree(o,e,t){const i=Le.get(Ht),n=i.getLanguageIdByMimeType(e)||e;return o3(Le.get(Ut),i,o,n,t)}function aee(o,e){const t=Le.get(Ht);Le.get(Ut).setMode(o,t.createById(e))}function lee(o,e,t){o&&Le.get(na).changeOne(e,o.uri,t)}function cee(o){Le.get(na).changeAll(o,[])}function dee(o){return Le.get(na).read(o)}function hee(o){return Le.get(na).onMarkerChanged(o)}function uee(o){return Le.get(Ut).getModel(o)}function gee(){return Le.get(Ut).getModels()}function fee(o){return Le.get(Ut).onModelAdded(o)}function pee(o){return Le.get(Ut).onModelRemoved(o)}function mee(o){return Le.get(Ut).onModelLanguageChanged(t=>{o({model:t.model,oldLanguage:t.oldLanguageId})})}function _ee(o){return wV(Le.get(Ut),Le.get(si),o)}function bee(o,e){const t=Le.get(Ht),i=Le.get(Es);return i.registerEditorContainer(o),UI.colorizeElement(i,t,o,e)}function vee(o,e,t){const i=Le.get(Ht);return Le.get(Es).registerEditorContainer(document.body),UI.colorize(i,o,e,t)}function Cee(o,e,t=4){return Le.get(Es).registerEditorContainer(document.body),UI.colorizeModelLine(o,e,t)}function wee(o){const e=Wt.get(o);return e||{getInitialState:()=>ng,tokenize:(t,i,n)=>AI(o,n)}}function See(o,e){Wt.getOrCreate(e);const t=wee(e),i=jr(o),n=[];let s=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw Dt(o,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw Dt(o,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!VV(o,Il(o,n,"",[],""))))throw Dt(o,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,o.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,s=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=Fk(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=Bk(e,this.name,t)}}function a3(o,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=o,t.includeLF=Wb(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Wb(e.ignoreCase,!1),t.unicode=Wb(e.unicode,!1),t.tokenPostfix=iR(e.tokenPostfix,"."+t.languageId),t.defaultToken=iR(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=o,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const c of l){let d=c.include;if(d){if(typeof d!="string")throw Dt(t,"an 'include' attribute must be a string at: "+r);if(d[0]==="@"&&(d=d.substr(1)),!e.tokenizer[d])throw Dt(t,"include target '"+d+"' is not defined at: "+r);n(r+"."+d,a,e.tokenizer[d])}else{const h=new Aee(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(h.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")h.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const u=c[1];u.next=c[2],h.setAction(i,u)}else throw Dt(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else h.setAction(i,c[1]);else{if(!c.regex)throw Dt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(h.name=c.name),c.matchOnlyAtStart&&(h.matchOnlyAtLineStart=Wb(c.matchOnlyAtLineStart,!1)),h.setRegex(i,c.regex),h.setAction(i,c.action)}a.push(h)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw Dt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw Dt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw Dt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:Kl(t,a.open),close:Kl(t,a.close)});else throw Dt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Mee=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function Ree(o){ig.registerLanguage(o)}function Oee(){let o=[];return o=o.concat(ig.getLanguages()),o}function Pee(o){return Le.get(Ht).languageIdCodec.encodeLanguageId(o)}function Fee(o,e){const i=Le.get(Ht).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function Bee(o,e){if(!Le.get(Ht).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return Le.get(si).register(o,e,100)}class Wee{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return Nm.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new BC(n.tokens,n.endState)}}class Nm{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let g=h.startIndex;c===0?g=0:gMee(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Vee(i)?c3(o,i):new Kp(Le.get(Ht),Le.get(Es),o,a3(o,i),Le.get(ot)):null})};return Wt.registerFactory(o,t)}function Uee(o,e){if(!Le.get(Ht).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return l3(e)?EN(o,{create:()=>e}):Wt.register(o,c3(o,e))}function $ee(o,e){const t=i=>new Kp(Le.get(Ht),Le.get(Es),o,a3(o,i),Le.get(ot));return l3(e)?EN(o,{create:()=>e}):Wt.register(o,t(e))}function jee(o,e){return Le.get(de).referenceProvider.register(o,e)}function Kee(o,e){return Le.get(de).renameProvider.register(o,e)}function qee(o,e){return Le.get(de).signatureHelpProvider.register(o,e)}function Gee(o,e){return Le.get(de).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(!!a)return!a.range&&r&&(a.range=new L(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new L(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function Zee(o,e){return Le.get(de).documentSymbolProvider.register(o,e)}function Yee(o,e){return Le.get(de).documentHighlightProvider.register(o,e)}function Qee(o,e){return Le.get(de).linkedEditingRangeProvider.register(o,e)}function Xee(o,e){return Le.get(de).definitionProvider.register(o,e)}function Jee(o,e){return Le.get(de).implementationProvider.register(o,e)}function ete(o,e){return Le.get(de).typeDefinitionProvider.register(o,e)}function tte(o,e){return Le.get(de).codeLensProvider.register(o,e)}function ite(o,e,t){return Le.get(de).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const c=Le.get(na).read({resource:n.uri}).filter(d=>L.areIntersectingOrTouching(d,s));return e.provideCodeActions(n,s,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function nte(o,e){return Le.get(de).documentFormattingEditProvider.register(o,e)}function ste(o,e){return Le.get(de).documentRangeFormattingEditProvider.register(o,e)}function ote(o,e){return Le.get(de).onTypeFormattingEditProvider.register(o,e)}function rte(o,e){return Le.get(de).linkProvider.register(o,e)}function ate(o,e){return Le.get(de).completionProvider.register(o,e)}function lte(o,e){return Le.get(de).colorProvider.register(o,e)}function cte(o,e){return Le.get(de).foldingRangeProvider.register(o,e)}function dte(o,e){return Le.get(de).declarationProvider.register(o,e)}function hte(o,e){return Le.get(de).selectionRangeProvider.register(o,e)}function ute(o,e){return Le.get(de).documentSemanticTokensProvider.register(o,e)}function gte(o,e){return Le.get(de).documentRangeSemanticTokensProvider.register(o,e)}function fte(o,e){return Le.get(de).inlineCompletionsProvider.register(o,e)}function pte(o,e){return Le.get(de).inlayHintsProvider.register(o,e)}function mte(){return{register:Ree,getLanguages:Oee,onLanguage:Fee,getEncodedLanguageId:Pee,setLanguageConfiguration:Bee,setColorMap:zee,registerTokensProviderFactory:EN,setTokensProvider:Uee,setMonarchTokensProvider:$ee,registerReferenceProvider:jee,registerRenameProvider:Kee,registerCompletionItemProvider:ate,registerSignatureHelpProvider:qee,registerHoverProvider:Gee,registerDocumentSymbolProvider:Zee,registerDocumentHighlightProvider:Yee,registerLinkedEditingRangeProvider:Qee,registerDefinitionProvider:Xee,registerImplementationProvider:Jee,registerTypeDefinitionProvider:ete,registerCodeLensProvider:tte,registerCodeActionProvider:ite,registerDocumentFormattingEditProvider:nte,registerDocumentRangeFormattingEditProvider:ste,registerOnTypeFormattingEditProvider:ote,registerLinkProvider:rte,registerColorProvider:lte,registerFoldingRangeProvider:cte,registerDeclarationProvider:dte,registerSelectionRangeProvider:hte,registerDocumentSemanticTokensProvider:ute,registerDocumentRangeSemanticTokensProvider:gte,registerInlineCompletionsProvider:fte,registerInlayHintsProvider:pte,DocumentHighlightKind:lL,CompletionItemKind:iL,CompletionItemTag:nL,CompletionItemInsertTextRule:J0,SymbolKind:TL,SymbolTag:AL,IndentAction:gL,CompletionTriggerKind:sL,SignatureHelpTriggerKind:NL,InlayHintKind:pL,InlineCompletionTriggerKind:mL,CodeActionTriggerType:tL,FoldingRangeKind:Qo}}const NN=Ye("IEditorCancelService"),d3=new le("cancellableOperation",!1,p("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));et(NN,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=d3.bindTo(n.get(Ee)),r=new Dn;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},!0);class _te extends Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(NN).add(e,this))}dispose(){this._unregister(),super.dispose()}}ee(new class extends xi{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:d3})}runEditorCommand(o,e){o.get(NN).cancel(e)}});class Tm{constructor(e,t){if(this.flags=t,(this.flags&1)!==0){const i=e.getModel();this.modelVersionId=i?Vs("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=e.getPosition():this.position=null,(this.flags&2)!==0?this.selection=e.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof Tm))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new Tm(e,this.flags))}}class qd extends _te{constructor(e,t,i,n){super(e,n),this._listener=new Q,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!L.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!L.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class TN extends Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function nl(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===o_.ICodeEditor:!1}function h3(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===o_.IDiffEditor:!1}function u3(o){return nl(o)?o:h3(o)?o.getModifiedEditor():null}class Lg{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Lg._handleEolEdits(e,t);n.length===1&&Lg._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map(s=>Ft.replace(L.lift(s.range),s.text))):e.executeEdits("formatEditsCommand",n.map(s=>Ft.replaceMove(L.lift(s.range),s.text))),i&&e.pushUndoStop()}}class ty{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var ir=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function AN(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&L.areIntersectingOrTouching(l[c-1],f)?l[c-1]=L.fromPositions(l[c-1].getStartPosition(),f.getEndPosition()):c=l.push(f);const d=f=>ir(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,f,r.getFormattingOptions(),a.token))||[]}),h=(f,_)=>{if(!f.length||!_.length)return!1;const b=f.reduce((v,C)=>L.plusRange(v,C.range),f[0].range);if(!_.some(v=>L.intersectRanges(b,v.range)))return!1;for(const v of f)for(const C of _)if(L.intersectRanges(v.range,C.range))return!0;return!1},u=[],g=[];try{for(const f of l){if(a.token.isCancellationRequested)return!0;g.push(yield d(f))}for(let f=0;f({text:b.text,range:L.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:v}of b)if(L.areIntersectingOrTouching(v,_))return[new oe(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn)];return null})}return!0})}function vte(o,e,t,i,n){return ir(this,void 0,void 0,function*(){const s=o.get(Ae),r=o.get(de),a=nl(e)?e.getModel():e,l=g3(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield Gd.select(l,a,t);c&&(i.report(c),yield s.invokeFunction(Cte,c,e,t,n))})}function Cte(o,e,t,i,n){return ir(this,void 0,void 0,function*(){const s=o.get(to);let r,a;nl(t)?(r=t.getModel(),a=new qd(t,5,void 0,n)):(r=t,a=new TN(t,n));let l;try{const c=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,c),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(nl(t))Lg.execute(t,l,i!==2),i!==2&&(AN(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:c}]=l,d=new oe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn);r.pushEditOperations([d],l.map(h=>({text:h.text,range:L.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(L.areIntersectingOrTouching(u,d))return[new oe(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function wte(o,e,t,i,n,s){return ir(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Pi);if(rn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function Ste(o,e,t,i,n){return ir(this,void 0,void 0,function*(){const s=g3(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Pi);if(rn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function p3(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Pi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}Xe.registerCommand("_executeFormatRangeProvider",function(o,...e){return ir(this,void 0,void 0,function*(){const[t,i,n]=e;pt(_e.isUri(t)),pt(L.isIRange(i));const s=o.get(Kn),r=o.get(to),a=o.get(de),l=yield s.createModelReference(t);try{return wte(r,a,l.object.textEditorModel,L.lift(i),n,ze.None)}finally{l.dispose()}})});Xe.registerCommand("_executeFormatDocumentProvider",function(o,...e){return ir(this,void 0,void 0,function*(){const[t,i]=e;pt(_e.isUri(t));const n=o.get(Kn),s=o.get(to),r=o.get(de),a=yield n.createModelReference(t);try{return Ste(s,r,a.object.textEditorModel,i,ze.None)}finally{a.dispose()}})});Xe.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return ir(this,void 0,void 0,function*(){const[t,i,n,s]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string");const r=o.get(Kn),a=o.get(to),l=o.get(de),c=yield r.createModelReference(t);try{return p3(a,l,c.object.textEditorModel,B.lift(i),n,s,ze.None)}finally{c.dispose()}})});var iy;nr.wrappingIndent.defaultValue=0;nr.glyphMargin.defaultValue=!1;nr.autoIndent.defaultValue=3;nr.overviewRulerLanes.defaultValue=2;Gd.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const xn=lP();xn.editor=xee();xn.languages=mte();const yte=xn.CancellationTokenSource,Lte=xn.Emitter,Dte=xn.KeyCode,kte=xn.KeyMod,xte=xn.Position,Ite=xn.Range,Ete=xn.Selection,Nte=xn.SelectionDirection,Tte=xn.MarkerSeverity,Ate=xn.MarkerTag,Mte=xn.Uri,Rte=xn.Token,Ote=xn.editor,Pte=xn.languages;(((iy=ni.MonacoEnvironment)===null||iy===void 0?void 0:iy.globalAPI)||typeof define=="function"&&define.amd)&&(self.monaco=xn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const D_=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:yte,Emitter:Lte,KeyCode:Dte,KeyMod:kte,Position:xte,Range:Ite,Selection:Ete,SelectionDirection:Nte,MarkerSeverity:Tte,MarkerTag:Ate,Uri:Mte,Token:Rte,editor:Ote,languages:Pte},Symbol.toStringTag,{value:"Module"}));/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Fte=Object.defineProperty,Bte=Object.getOwnPropertyDescriptor,Wte=Object.getOwnPropertyNames,Vte=Object.prototype.hasOwnProperty,sR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wte(e))!Vte.call(o,n)&&n!==t&&Fte(o,n,{get:()=>e[n],enumerable:!(i=Bte(e,n))||i.enumerable});return o},Hte=(o,e,t)=>(sR(o,e,"default"),t&&sR(t,e,"default")),tp={};Hte(tp,D_);var m3={},ny={},_3=class{constructor(o){qt(this,"_languageId");qt(this,"_loadingTriggered");qt(this,"_lazyLoadPromise");qt(this,"_lazyLoadPromiseResolve");qt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return ny[o]||(ny[o]=new _3(o)),ny[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,m3[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function pe(o){const e=o.id;m3[e]=o,tp.languages.register(o);const t=_3.getOrCreate(e);tp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),tp.languages.onLanguage(e,async()=>{const i=await t.load();tp.languages.setLanguageConfiguration(e,i.conf)})}pe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ue(()=>import("./abap.15cc56c3.js"),[])});pe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ue(()=>import("./apex.3097bfba.js"),[])});pe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ue(()=>import("./azcli.b70fb9b3.js"),[])});pe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ue(()=>import("./bat.4e83862e.js"),[])});pe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ue(()=>import("./bicep.107c4876.js"),[])});pe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ue(()=>import("./cameligo.9b7ef084.js"),[])});pe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ue(()=>import("./clojure.9b9ce362.js"),[])});pe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ue(()=>import("./coffee.3343db4b.js"),[])});pe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ue(()=>import("./csharp.711e6ef5.js"),[])});pe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ue(()=>import("./csp.1454e635.js"),[])});pe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ue(()=>import("./css.0f39058b.js"),[])});pe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ue(()=>import("./cypher.8b877bda.js"),[])});pe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ue(()=>import("./dart.d9ca4827.js"),[])});pe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ue(()=>import("./dockerfile.b12c8d75.js"),[])});pe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ue(()=>import("./ecl.5841a83e.js"),[])});pe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ue(()=>import("./elixir.837d31f3.js"),[])});pe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ue(()=>import("./flow9.02cb4afd.js"),[])});pe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ue(()=>import("./fsharp.c6cc3d99.js"),[])});pe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ue(()=>import("./freemarker2.9c65c42f.js"),["assets/freemarker2.9c65c42f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ue(()=>import("./freemarker2.9c65c42f.js"),["assets/freemarker2.9c65c42f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAngleInterpolationDollar)});pe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ue(()=>import("./freemarker2.9c65c42f.js"),["assets/freemarker2.9c65c42f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagBracketInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ue(()=>import("./freemarker2.9c65c42f.js"),["assets/freemarker2.9c65c42f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAngleInterpolationBracket)});pe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ue(()=>import("./freemarker2.9c65c42f.js"),["assets/freemarker2.9c65c42f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagBracketInterpolationBracket)});pe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ue(()=>import("./freemarker2.9c65c42f.js"),["assets/freemarker2.9c65c42f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ue(()=>import("./freemarker2.9c65c42f.js"),["assets/freemarker2.9c65c42f.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAutoInterpolationBracket)});pe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ue(()=>import("./go.e18cc8fd.js"),[])});pe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ue(()=>import("./graphql.91865f29.js"),[])});pe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ue(()=>import("./handlebars.863cb9e2.js"),["assets/handlebars.863cb9e2.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ue(()=>import("./hcl.89542f1d.js"),[])});pe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ue(()=>import("./html.8243278a.js"),["assets/html.8243278a.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ue(()=>import("./ini.927d4958.js"),[])});pe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ue(()=>import("./java.cae92986.js"),[])});pe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ue(()=>import("./javascript.802e4030.js"),["assets/javascript.802e4030.js","assets/typescript.902b12cd.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ue(()=>import("./julia.1ab2c6a6.js"),[])});pe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ue(()=>import("./kotlin.567012b4.js"),[])});pe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ue(()=>import("./less.8ff15de1.js"),[])});pe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ue(()=>import("./lexon.892ac9e8.js"),[])});pe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ue(()=>import("./lua.84919ba3.js"),[])});pe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ue(()=>import("./liquid.acb04b21.js"),["assets/liquid.acb04b21.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ue(()=>import("./m3.dbd6d890.js"),[])});pe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ue(()=>import("./markdown.0bd269fb.js"),[])});pe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ue(()=>import("./mips.5b57214f.js"),[])});pe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ue(()=>import("./msdax.664f04d4.js"),[])});pe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ue(()=>import("./mysql.b3be80b5.js"),[])});pe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ue(()=>import("./objective-c.f61689b5.js"),[])});pe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ue(()=>import("./pascal.63810ab2.js"),[])});pe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ue(()=>import("./pascaligo.f3c373fd.js"),[])});pe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ue(()=>import("./perl.7a13b920.js"),[])});pe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ue(()=>import("./pgsql.231377e2.js"),[])});pe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ue(()=>import("./php.f75fab85.js"),[])});pe({id:"pla",extensions:[".pla"],loader:()=>ue(()=>import("./pla.53add393.js"),[])});pe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ue(()=>import("./postiats.b78836c4.js"),[])});pe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ue(()=>import("./powerquery.40e0a8e5.js"),[])});pe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ue(()=>import("./powershell.b2dc53b1.js"),[])});pe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ue(()=>import("./protobuf.bce7ad87.js"),[])});pe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ue(()=>import("./pug.e7bd8f2e.js"),[])});pe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ue(()=>import("./python.7a521083.js"),["assets/python.7a521083.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ue(()=>import("./qsharp.9d22faff.js"),[])});pe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ue(()=>import("./r.77bb7e19.js"),[])});pe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ue(()=>import("./razor.7f9ae009.js"),["assets/razor.7f9ae009.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ue(()=>import("./redis.d60fd379.js"),[])});pe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ue(()=>import("./redshift.3c32617e.js"),[])});pe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ue(()=>import("./restructuredtext.6d30740a.js"),[])});pe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ue(()=>import("./ruby.10c929d1.js"),[])});pe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ue(()=>import("./rust.abc56d3e.js"),[])});pe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ue(()=>import("./sb.4973b57f.js"),[])});pe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ue(()=>import("./scala.2026dee1.js"),[])});pe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ue(()=>import("./scheme.fe55144d.js"),[])});pe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ue(()=>import("./scss.4ba8f803.js"),[])});pe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ue(()=>import("./shell.2643570b.js"),[])});pe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ue(()=>import("./solidity.9a85e4e7.js"),[])});pe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ue(()=>import("./sophia.ae3e217e.js"),[])});pe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ue(()=>import("./sparql.6944fd44.js"),[])});pe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ue(()=>import("./sql.4f48b9c1.js"),[])});pe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ue(()=>import("./st.7c961594.js"),[])});pe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ue(()=>import("./swift.23da7225.js"),[])});pe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ue(()=>import("./tcl.236460f4.js"),[])});pe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ue(()=>import("./twig.b70b7ae1.js"),[])});pe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ue(()=>import("./typescript.902b12cd.js"),["assets/typescript.902b12cd.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ue(()=>import("./vb.5502a104.js"),[])});pe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ue(()=>import("./xml.f90a8222.js"),["assets/xml.f90a8222.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});pe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ue(()=>import("./yaml.a868c292.js"),["assets/yaml.a868c292.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Fte=Object.defineProperty,Bte=Object.getOwnPropertyDescriptor,Wte=Object.getOwnPropertyNames,Vte=Object.prototype.hasOwnProperty,sR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wte(e))!Vte.call(o,n)&&n!==t&&Fte(o,n,{get:()=>e[n],enumerable:!(i=Bte(e,n))||i.enumerable});return o},Hte=(o,e,t)=>(sR(o,e,"default"),t&&sR(t,e,"default")),tp={};Hte(tp,D_);var m3={},ny={},_3=class{constructor(o){qt(this,"_languageId");qt(this,"_loadingTriggered");qt(this,"_lazyLoadPromise");qt(this,"_lazyLoadPromiseResolve");qt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return ny[o]||(ny[o]=new _3(o)),ny[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,m3[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function pe(o){const e=o.id;m3[e]=o,tp.languages.register(o);const t=_3.getOrCreate(e);tp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),tp.languages.onLanguage(e,async()=>{const i=await t.load();tp.languages.setLanguageConfiguration(e,i.conf)})}pe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ue(()=>import("./abap.15cc56c3.js"),[])});pe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ue(()=>import("./apex.3097bfba.js"),[])});pe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ue(()=>import("./azcli.b70fb9b3.js"),[])});pe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ue(()=>import("./bat.4e83862e.js"),[])});pe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ue(()=>import("./bicep.107c4876.js"),[])});pe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ue(()=>import("./cameligo.9b7ef084.js"),[])});pe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ue(()=>import("./clojure.9b9ce362.js"),[])});pe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ue(()=>import("./coffee.3343db4b.js"),[])});pe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ue(()=>import("./csharp.711e6ef5.js"),[])});pe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ue(()=>import("./csp.1454e635.js"),[])});pe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ue(()=>import("./css.0f39058b.js"),[])});pe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ue(()=>import("./cypher.8b877bda.js"),[])});pe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ue(()=>import("./dart.d9ca4827.js"),[])});pe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ue(()=>import("./dockerfile.b12c8d75.js"),[])});pe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ue(()=>import("./ecl.5841a83e.js"),[])});pe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ue(()=>import("./elixir.837d31f3.js"),[])});pe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ue(()=>import("./flow9.02cb4afd.js"),[])});pe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ue(()=>import("./fsharp.c6cc3d99.js"),[])});pe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ue(()=>import("./freemarker2.3806a069.js"),["assets/freemarker2.3806a069.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ue(()=>import("./freemarker2.3806a069.js"),["assets/freemarker2.3806a069.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAngleInterpolationDollar)});pe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ue(()=>import("./freemarker2.3806a069.js"),["assets/freemarker2.3806a069.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagBracketInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ue(()=>import("./freemarker2.3806a069.js"),["assets/freemarker2.3806a069.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAngleInterpolationBracket)});pe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ue(()=>import("./freemarker2.3806a069.js"),["assets/freemarker2.3806a069.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagBracketInterpolationBracket)});pe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ue(()=>import("./freemarker2.3806a069.js"),["assets/freemarker2.3806a069.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ue(()=>import("./freemarker2.3806a069.js"),["assets/freemarker2.3806a069.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"]).then(o=>o.TagAutoInterpolationBracket)});pe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ue(()=>import("./go.e18cc8fd.js"),[])});pe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ue(()=>import("./graphql.91865f29.js"),[])});pe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ue(()=>import("./handlebars.76a5e9e9.js"),["assets/handlebars.76a5e9e9.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ue(()=>import("./hcl.89542f1d.js"),[])});pe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ue(()=>import("./html.489aa539.js"),["assets/html.489aa539.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ue(()=>import("./ini.927d4958.js"),[])});pe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ue(()=>import("./java.cae92986.js"),[])});pe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ue(()=>import("./javascript.21420475.js"),["assets/javascript.21420475.js","assets/typescript.e19112ef.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ue(()=>import("./julia.1ab2c6a6.js"),[])});pe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ue(()=>import("./kotlin.567012b4.js"),[])});pe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ue(()=>import("./less.8ff15de1.js"),[])});pe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ue(()=>import("./lexon.892ac9e8.js"),[])});pe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ue(()=>import("./lua.84919ba3.js"),[])});pe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ue(()=>import("./liquid.47ad104a.js"),["assets/liquid.47ad104a.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ue(()=>import("./m3.dbd6d890.js"),[])});pe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ue(()=>import("./markdown.0bd269fb.js"),[])});pe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ue(()=>import("./mips.5b57214f.js"),[])});pe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ue(()=>import("./msdax.664f04d4.js"),[])});pe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ue(()=>import("./mysql.b3be80b5.js"),[])});pe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ue(()=>import("./objective-c.f61689b5.js"),[])});pe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ue(()=>import("./pascal.63810ab2.js"),[])});pe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ue(()=>import("./pascaligo.f3c373fd.js"),[])});pe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ue(()=>import("./perl.7a13b920.js"),[])});pe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ue(()=>import("./pgsql.231377e2.js"),[])});pe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ue(()=>import("./php.f75fab85.js"),[])});pe({id:"pla",extensions:[".pla"],loader:()=>ue(()=>import("./pla.53add393.js"),[])});pe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ue(()=>import("./postiats.b78836c4.js"),[])});pe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ue(()=>import("./powerquery.40e0a8e5.js"),[])});pe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ue(()=>import("./powershell.b2dc53b1.js"),[])});pe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ue(()=>import("./protobuf.bce7ad87.js"),[])});pe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ue(()=>import("./pug.e7bd8f2e.js"),[])});pe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ue(()=>import("./python.2fad7506.js"),["assets/python.2fad7506.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ue(()=>import("./qsharp.9d22faff.js"),[])});pe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ue(()=>import("./r.77bb7e19.js"),[])});pe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ue(()=>import("./razor.9516989f.js"),["assets/razor.9516989f.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ue(()=>import("./redis.d60fd379.js"),[])});pe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ue(()=>import("./redshift.3c32617e.js"),[])});pe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ue(()=>import("./restructuredtext.6d30740a.js"),[])});pe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ue(()=>import("./ruby.10c929d1.js"),[])});pe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ue(()=>import("./rust.abc56d3e.js"),[])});pe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ue(()=>import("./sb.4973b57f.js"),[])});pe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ue(()=>import("./scala.2026dee1.js"),[])});pe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ue(()=>import("./scheme.fe55144d.js"),[])});pe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ue(()=>import("./scss.4ba8f803.js"),[])});pe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ue(()=>import("./shell.2643570b.js"),[])});pe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ue(()=>import("./solidity.9a85e4e7.js"),[])});pe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ue(()=>import("./sophia.ae3e217e.js"),[])});pe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ue(()=>import("./sparql.6944fd44.js"),[])});pe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ue(()=>import("./sql.4f48b9c1.js"),[])});pe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ue(()=>import("./st.7c961594.js"),[])});pe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ue(()=>import("./swift.23da7225.js"),[])});pe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ue(()=>import("./tcl.236460f4.js"),[])});pe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ue(()=>import("./twig.b70b7ae1.js"),[])});pe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ue(()=>import("./typescript.e19112ef.js"),["assets/typescript.e19112ef.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ue(()=>import("./vb.5502a104.js"),[])});pe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ue(()=>import("./xml.fec6f77b.js"),["assets/xml.fec6f77b.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});pe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ue(()=>import("./yaml.a1fd6845.js"),["assets/yaml.a1fd6845.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var zte=Object.defineProperty,Ute=Object.getOwnPropertyDescriptor,$te=Object.getOwnPropertyNames,jte=Object.prototype.hasOwnProperty,oR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $te(e))!jte.call(o,n)&&n!==t&&zte(o,n,{get:()=>e[n],enumerable:!(i=Ute(e,n))||i.enumerable});return o},Kte=(o,e,t)=>(oR(o,e,"default"),t&&oR(t,e,"default")),Xg={};Kte(Xg,D_);var MN=class{constructor(o,e,t){qt(this,"_onDidChange",new Xg.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(o){this.setOptions(o)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},RN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},ON={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},b3=new MN("css",RN,ON),v3=new MN("scss",RN,ON),C3=new MN("less",RN,ON);Xg.languages.css={cssDefaults:b3,lessDefaults:C3,scssDefaults:v3};function PN(){return ue(()=>import("./cssMode.02cc791c.js"),["assets/cssMode.02cc791c.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])}Xg.languages.onLanguage("less",()=>{PN().then(o=>o.setupMode(C3))});Xg.languages.onLanguage("scss",()=>{PN().then(o=>o.setupMode(v3))});Xg.languages.onLanguage("css",()=>{PN().then(o=>o.setupMode(b3))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var zte=Object.defineProperty,Ute=Object.getOwnPropertyDescriptor,$te=Object.getOwnPropertyNames,jte=Object.prototype.hasOwnProperty,oR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $te(e))!jte.call(o,n)&&n!==t&&zte(o,n,{get:()=>e[n],enumerable:!(i=Ute(e,n))||i.enumerable});return o},Kte=(o,e,t)=>(oR(o,e,"default"),t&&oR(t,e,"default")),Xg={};Kte(Xg,D_);var MN=class{constructor(o,e,t){qt(this,"_onDidChange",new Xg.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(o){this.setOptions(o)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},RN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},ON={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},b3=new MN("css",RN,ON),v3=new MN("scss",RN,ON),C3=new MN("less",RN,ON);Xg.languages.css={cssDefaults:b3,lessDefaults:C3,scssDefaults:v3};function PN(){return ue(()=>import("./cssMode.a76de97d.js"),["assets/cssMode.a76de97d.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])}Xg.languages.onLanguage("less",()=>{PN().then(o=>o.setupMode(C3))});Xg.languages.onLanguage("scss",()=>{PN().then(o=>o.setupMode(v3))});Xg.languages.onLanguage("css",()=>{PN().then(o=>o.setupMode(b3))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var qte=Object.defineProperty,Gte=Object.getOwnPropertyDescriptor,Zte=Object.getOwnPropertyNames,Yte=Object.prototype.hasOwnProperty,rR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zte(e))!Yte.call(o,n)&&n!==t&&qte(o,n,{get:()=>e[n],enumerable:!(i=Gte(e,n))||i.enumerable});return o},Qte=(o,e,t)=>(rR(o,e,"default"),t&&rR(t,e,"default")),q1={};Qte(q1,D_);var Xte=class{constructor(o,e,t){qt(this,"_onDidChange",new q1.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},Jte={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},G1={format:Jte,suggest:{},data:{useDefaultDataProvider:!0}};function Z1(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xp,documentFormattingEdits:o===xp,documentRangeFormattingEdits:o===xp}}var xp="html",aR="handlebars",lR="razor",w3=Y1(xp,G1,Z1(xp)),eie=w3.defaults,S3=Y1(aR,G1,Z1(aR)),tie=S3.defaults,y3=Y1(lR,G1,Z1(lR)),iie=y3.defaults;q1.languages.html={htmlDefaults:eie,razorDefaults:iie,handlebarDefaults:tie,htmlLanguageService:w3,handlebarLanguageService:S3,razorLanguageService:y3,registerHTMLLanguageService:Y1};function nie(){return ue(()=>import("./htmlMode.e7157056.js"),["assets/htmlMode.e7157056.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])}function Y1(o,e=G1,t=Z1(o)){const i=new Xte(o,e,t);let n;const s=q1.languages.onLanguage(o,async()=>{n=(await nie()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var qte=Object.defineProperty,Gte=Object.getOwnPropertyDescriptor,Zte=Object.getOwnPropertyNames,Yte=Object.prototype.hasOwnProperty,rR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zte(e))!Yte.call(o,n)&&n!==t&&qte(o,n,{get:()=>e[n],enumerable:!(i=Gte(e,n))||i.enumerable});return o},Qte=(o,e,t)=>(rR(o,e,"default"),t&&rR(t,e,"default")),q1={};Qte(q1,D_);var Xte=class{constructor(o,e,t){qt(this,"_onDidChange",new q1.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},Jte={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},G1={format:Jte,suggest:{},data:{useDefaultDataProvider:!0}};function Z1(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xp,documentFormattingEdits:o===xp,documentRangeFormattingEdits:o===xp}}var xp="html",aR="handlebars",lR="razor",w3=Y1(xp,G1,Z1(xp)),eie=w3.defaults,S3=Y1(aR,G1,Z1(aR)),tie=S3.defaults,y3=Y1(lR,G1,Z1(lR)),iie=y3.defaults;q1.languages.html={htmlDefaults:eie,razorDefaults:iie,handlebarDefaults:tie,htmlLanguageService:w3,handlebarLanguageService:S3,razorLanguageService:y3,registerHTMLLanguageService:Y1};function nie(){return ue(()=>import("./htmlMode.adc6d55e.js"),["assets/htmlMode.adc6d55e.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])}function Y1(o,e=G1,t=Z1(o)){const i=new Xte(o,e,t);let n;const s=q1.languages.onLanguage(o,async()=>{n=(await nie()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var sie=Object.defineProperty,oie=Object.getOwnPropertyDescriptor,rie=Object.getOwnPropertyNames,aie=Object.prototype.hasOwnProperty,cR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rie(e))!aie.call(o,n)&&n!==t&&sie(o,n,{get:()=>e[n],enumerable:!(i=oie(e,n))||i.enumerable});return o},lie=(o,e,t)=>(cR(o,e,"default"),t&&cR(t,e,"default")),k_={};lie(k_,D_);var cie=class{constructor(o,e,t){qt(this,"_onDidChange",new k_.Emitter);qt(this,"_diagnosticsOptions");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},die={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},hie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},L3=new cie("json",die,hie);k_.languages.json={jsonDefaults:L3};function uie(){return ue(()=>import("./jsonMode.9a008227.js"),["assets/jsonMode.9a008227.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])}k_.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});k_.languages.onLanguage("json",()=>{uie().then(o=>o.setupMode(L3))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var sie=Object.defineProperty,oie=Object.getOwnPropertyDescriptor,rie=Object.getOwnPropertyNames,aie=Object.prototype.hasOwnProperty,cR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rie(e))!aie.call(o,n)&&n!==t&&sie(o,n,{get:()=>e[n],enumerable:!(i=oie(e,n))||i.enumerable});return o},lie=(o,e,t)=>(cR(o,e,"default"),t&&cR(t,e,"default")),k_={};lie(k_,D_);var cie=class{constructor(o,e,t){qt(this,"_onDidChange",new k_.Emitter);qt(this,"_diagnosticsOptions");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},die={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},hie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},L3=new cie("json",die,hie);k_.languages.json={jsonDefaults:L3};function uie(){return ue(()=>import("./jsonMode.d4351b14.js"),["assets/jsonMode.d4351b14.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])}k_.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});k_.languages.onLanguage("json",()=>{uie().then(o=>o.setupMode(L3))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var gie=Object.defineProperty,fie=Object.getOwnPropertyDescriptor,pie=Object.getOwnPropertyNames,mie=Object.prototype.hasOwnProperty,dR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pie(e))!mie.call(o,n)&&n!==t&&gie(o,n,{get:()=>e[n],enumerable:!(i=fie(e,n))||i.enumerable});return o},_ie=(o,e,t)=>(dR(o,e,"default"),t&&dR(t,e,"default")),bie="4.5.5",Dg={};_ie(Dg,D_);var D3=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(D3||{}),k3=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(k3||{}),x3=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(x3||{}),I3=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(I3||{}),E3=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(E3||{}),N3=class{constructor(o,e,t,i){qt(this,"_onDidChange",new Dg.Emitter);qt(this,"_onDidExtraLibsChange",new Dg.Emitter);qt(this,"_extraLibs");qt(this,"_removedExtraLibs");qt(this,"_eagerModelSync");qt(this,"_compilerOptions");qt(this,"_diagnosticsOptions");qt(this,"_workerOptions");qt(this,"_onDidExtraLibsChangeTimeout");qt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}},vie=bie,T3=new N3({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),A3=new N3({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Cie=()=>Q1().then(o=>o.getTypeScriptWorker()),wie=()=>Q1().then(o=>o.getJavaScriptWorker());Dg.languages.typescript={ModuleKind:D3,JsxEmit:k3,NewLineKind:x3,ScriptTarget:I3,ModuleResolutionKind:E3,typescriptVersion:vie,typescriptDefaults:T3,javascriptDefaults:A3,getTypeScriptWorker:Cie,getJavaScriptWorker:wie};function Q1(){return ue(()=>import("./tsMode.30dc47d8.js"),["assets/tsMode.30dc47d8.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css"])}Dg.languages.onLanguage("typescript",()=>Q1().then(o=>o.setupTypeScript(T3)));Dg.languages.onLanguage("javascript",()=>Q1().then(o=>o.setupJavaScript(A3)));var Sie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},X1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const J1=new le("selectionAnchorSet",!1);let sl=class M3{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=J1.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(M3.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(oe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Fn().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Gi(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Sie([yie(1,Ee)],sl);class Lie extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2080),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Die extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:J1})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class kie extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2089),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class xie extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}tt(sl.ID,sl);ie(Lie);ie(Die);ie(kie);ie(xie);const Iie=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Eie extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Yo.get(t))===null||i===void 0||i.jumpToBracket()}}class Nie extends ce{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Yo.get(t))===null||n===void 0||n.selectToBracket(s)}}class Tie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Yo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Yo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(L.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h{const t=o.getColor(b$);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=o.getColor(z4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qs.appendMenuItem(M.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Aie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new L(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,s,i,s),a)}else{const r=new L(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class R3 extends ce{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new Aie(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Mie extends R3{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:N.writable})}}class Rie extends R3{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:N.writable})}}ie(Mie);ie(Rie);class Oie extends ce{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():lt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=lt.leftPosition(i,d),u=lt.leftPosition(i,h),g=i.getValueInRange(L.fromPositions(u,h)),f=i.getValueInRange(L.fromPositions(h,d)),_=L.fromPositions(u,d);n.push(new zi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Oie);var Pie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Zd="9_cutcopypaste",Fie=jo||document.queryCommandSupported("cut"),O3=jo||document.queryCommandSupported("copy"),Bie=typeof navigator.clipboard>"u"||Ls?document.queryCommandSupported("paste"):!0;function FN(o){return o.register(),o}const Wie=Fie?FN(new Ug({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:jo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Vie=O3?FN(new Ug({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:jo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qs.appendMenuItem(M.MenubarEditMenu,{submenu:M.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:Zd,order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextShare,title:{value:p("share","Share"),original:"Share"},group:"11_share",order:-1});const sy=Bie?FN(new Ug({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:jo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Hie extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(gD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),gD.forceCopyWithSyntaxHighlighting=!1)}}function P3(o,e){!o||(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ct).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}P3(Wie,"cut");P3(Vie,"copy");sy&&(sy.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ct),i=o.get(cl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Sc?(()=>Pie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=im.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),sy.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));O3&&ie(Hie);class Ze{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ze.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ze(this.value+Ze.sep+e)}}Ze.sep=".";Ze.None=new Ze("@@none@@");Ze.Empty=new Ze("");Ze.QuickFix=new Ze("quickfix");Ze.Refactor=new Ze("refactor");Ze.Source=new Ze("source");Ze.SourceOrganizeImports=Ze.Source.append("organizeImports");Ze.SourceFixAll=Ze.Source.append("fixAll");var bn;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(bn||(bn={}));function zie(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>F3(e,t,o.include))||!o.includeSourceActions&&Ze.Source.contains(e))}function Uie(o,e){const t=e.kind?new Ze(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>F3(t,i,o.include))||!o.includeSourceActions&&t&&Ze.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function F3(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Nr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Nr(t.kind,t.apply,!1):new Nr(Nr.getKindFromUser(e,t.kind),Nr.getApplyFromUser(e,t.apply),Nr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ze(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var BN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const B3="editor.action.codeAction",W3="editor.action.refactor",$ie="editor.action.refactor.preview",V3="editor.action.sourceAction",WN="editor.action.organizeImports",VN="editor.action.fixAll";class H3{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return BN(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Pi(n)}i&&(this.action.edit=i.edit)}return this})}}class HN extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(HN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:rn(e.diagnostics)?rn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:rn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ze.QuickFix.contains(new Ze(e.kind))&&!!e.isPreferred)}}const hR={actions:[],documentation:void 0};function zN(o,e,t,i,n,s){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new TN(e,s),d=jie(o,e,a),h=new Q,u=d.map(f=>BN(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return hR;const b=((_==null?void 0:_.actions)||[]).filter(C=>C&&Uie(a,C)),v=Kie(f,b,a.include);return{actions:b.map(C=>new H3(C,f)),documentation:v}}catch(_){if(ea(_))throw _;return Pi(_),hR}})),g=o.onDidChange(()=>{const f=o.all(e);Ss(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(v=>v.actions).flat(),b=i_(f.map(v=>v.documentation));return new HN(_,b,h)}).finally(()=>{g.dispose(),c.dispose()})}function jie(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>zie(t,new Ze(n))):!0)}function Kie(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ze(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const s of i)if(s.kind.contains(new Ze(n.kind)))return s.command}}Xe.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return BN(this,void 0,void 0,function*(){if(!(e instanceof _e))throw Ko();const{codeActionProvider:s}=o.get(de),r=o.get(Ut).getModel(e);if(!r)throw Ko();const a=oe.isISelection(t)?oe.liftSelection(t):L.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ko();const l=typeof i=="string"?new Ze(i):void 0,c=yield zN(s,r,a,{type:1,triggerAction:bn.Default,filter:{includeSourceActions:!0,include:l}},Ch.None,ze.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let os=class Wk{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new Q,this._editor=e,this._visible=Wk.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(Wk.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Gi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new uR(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new xs(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new L(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(uR.fadeOut(this._messageWidget.value))}};os.ID="editor.contrib.messageController";os.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));os=qie([Gie(1,Ee)],os);const Zie=xi.bindToContribution(os.get);ee(new Zie({id:"leaveEditorMessage",precondition:os.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class uR{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}tt(os.ID,os);var z3=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_a=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Yie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Jg={Visible:new le("CodeActionMenuVisible",!1,p("CodeActionMenuVisible","Whether the code action list widget is visible"))};class oy extends is{constructor(e,t){super(e.command?e.command.id:e.title,Qie(e.title),void 0,!e.disabled,t),this.action=e}}function Qie(o){return o.replace(/\r\n|\r|\n/g," ")}const Xie="codeActionWidget",ry=26;let Vk=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return Xie}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,s=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=s,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=nt(e.disposables)}};Vk=z3([_a(1,_i)],Vk);let uC=class Hk extends H{constructor(e,t,i,n,s,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=s,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ew({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=Jg.Visible.bindTo(this._contextKeyService),this.listRenderer=new Vk(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,s;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new Q,s=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(G(this.block,ae.MOUSE_DOWN,u=>u.stopPropagation())),s.id="codeActionMenuWidget",s.classList.add("codeActionMenuWidget"),e.appendChild(s),this.codeActionList.value=new rr("codeActionWidget",s,{getHeight(u){return u.isSeparator?10:ry},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof oy&&(_=u.action.kind===Hk.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*ry+10:t.length*ry;s.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const b=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);s.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Od(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Yie(this,void 0,void 0,function*(){const s=this._editor.getModel();if(!s)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,QO();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(s)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof oy?c(h.action):void 0})})}getMenuActions(e,t,i){var n,s;const r=d=>new oy(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(s=(n=e.filter)===null||n===void 0?void 0:n.include)===null||s===void 0?void 0:s.value},t.map(h=>h.action)));return l.length&&a.push(new ln,...l.map(d=>r(new H3({title:d.title,command:d,kind:Hk.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}};uC.documentationID="_documentation";uC=z3([_a(2,ll),_a(3,_i),_a(4,de),_a(5,sr),_a(6,Ct),_a(7,ot),_a(8,vh),_a(9,Ee)],uC);class ew{constructor(e){this._keybindingProvider=e}getResolver(){const e=new Ju(()=>this._keybindingProvider.getKeybindings().filter(t=>ew.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===WN?i={kind:Ze.SourceOrganizeImports.value}:t.command===VN&&(i={kind:Ze.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Nr.fromUser(i,{kind:Ze.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ze(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}}ew.codeActionCommands=[W3,B3,V3,WN,VN];var Jie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ene=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ip;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(Ip||(Ip={}));let gC=class U3 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new R),this.onClick=this._onClick.event,this._state=Ip.Hidden,this._domNode=document.createElement("div"),this._domNode.className=m.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),ft.ignoreTarget(this._domNode),this._register(IH(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(46),d=s.getLineContent(r),h=S1(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ip.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:U3._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ip.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...m.lightBulb.classNamesArray),this._domNode.classList.add(...m.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...m.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...m.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gC._posPref=[0];gC=Jie([ene(3,_i)],gC);Et((o,e)=>{var t;const i=(t=o.getColor(wi))===null||t===void 0?void 0:t.transparent(.7),n=o.getColor(Uz);n&&e.addRule(` + *-----------------------------------------------------------------------------*/var gie=Object.defineProperty,fie=Object.getOwnPropertyDescriptor,pie=Object.getOwnPropertyNames,mie=Object.prototype.hasOwnProperty,dR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pie(e))!mie.call(o,n)&&n!==t&&gie(o,n,{get:()=>e[n],enumerable:!(i=fie(e,n))||i.enumerable});return o},_ie=(o,e,t)=>(dR(o,e,"default"),t&&dR(t,e,"default")),bie="4.5.5",Dg={};_ie(Dg,D_);var D3=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(D3||{}),k3=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(k3||{}),x3=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(x3||{}),I3=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(I3||{}),E3=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(E3||{}),N3=class{constructor(o,e,t,i){qt(this,"_onDidChange",new Dg.Emitter);qt(this,"_onDidExtraLibsChange",new Dg.Emitter);qt(this,"_extraLibs");qt(this,"_removedExtraLibs");qt(this,"_eagerModelSync");qt(this,"_compilerOptions");qt(this,"_diagnosticsOptions");qt(this,"_workerOptions");qt(this,"_onDidExtraLibsChangeTimeout");qt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}},vie=bie,T3=new N3({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),A3=new N3({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Cie=()=>Q1().then(o=>o.getTypeScriptWorker()),wie=()=>Q1().then(o=>o.getJavaScriptWorker());Dg.languages.typescript={ModuleKind:D3,JsxEmit:k3,NewLineKind:x3,ScriptTarget:I3,ModuleResolutionKind:E3,typescriptVersion:vie,typescriptDefaults:T3,javascriptDefaults:A3,getTypeScriptWorker:Cie,getJavaScriptWorker:wie};function Q1(){return ue(()=>import("./tsMode.079c19d5.js"),["assets/tsMode.079c19d5.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css"])}Dg.languages.onLanguage("typescript",()=>Q1().then(o=>o.setupTypeScript(T3)));Dg.languages.onLanguage("javascript",()=>Q1().then(o=>o.setupJavaScript(A3)));var Sie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},X1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const J1=new le("selectionAnchorSet",!1);let sl=class M3{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=J1.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(M3.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(oe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Fn().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Gi(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Sie([yie(1,Ee)],sl);class Lie extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2080),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Die extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:J1})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class kie extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2089),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class xie extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}tt(sl.ID,sl);ie(Lie);ie(Die);ie(kie);ie(xie);const Iie=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Eie extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Yo.get(t))===null||i===void 0||i.jumpToBracket()}}class Nie extends ce{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Yo.get(t))===null||n===void 0||n.selectToBracket(s)}}class Tie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Yo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Yo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(L.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h{const t=o.getColor(b$);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=o.getColor(z4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qs.appendMenuItem(M.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Aie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new L(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,s,i,s),a)}else{const r=new L(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class R3 extends ce{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new Aie(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Mie extends R3{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:N.writable})}}class Rie extends R3{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:N.writable})}}ie(Mie);ie(Rie);class Oie extends ce{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():lt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=lt.leftPosition(i,d),u=lt.leftPosition(i,h),g=i.getValueInRange(L.fromPositions(u,h)),f=i.getValueInRange(L.fromPositions(h,d)),_=L.fromPositions(u,d);n.push(new zi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Oie);var Pie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Zd="9_cutcopypaste",Fie=jo||document.queryCommandSupported("cut"),O3=jo||document.queryCommandSupported("copy"),Bie=typeof navigator.clipboard>"u"||Ls?document.queryCommandSupported("paste"):!0;function FN(o){return o.register(),o}const Wie=Fie?FN(new Ug({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:jo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Vie=O3?FN(new Ug({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:jo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qs.appendMenuItem(M.MenubarEditMenu,{submenu:M.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:Zd,order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextShare,title:{value:p("share","Share"),original:"Share"},group:"11_share",order:-1});const sy=Bie?FN(new Ug({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:jo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Hie extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(gD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),gD.forceCopyWithSyntaxHighlighting=!1)}}function P3(o,e){!o||(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ct).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}P3(Wie,"cut");P3(Vie,"copy");sy&&(sy.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ct),i=o.get(cl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Sc?(()=>Pie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=im.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),sy.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));O3&&ie(Hie);class Ze{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ze.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ze(this.value+Ze.sep+e)}}Ze.sep=".";Ze.None=new Ze("@@none@@");Ze.Empty=new Ze("");Ze.QuickFix=new Ze("quickfix");Ze.Refactor=new Ze("refactor");Ze.Source=new Ze("source");Ze.SourceOrganizeImports=Ze.Source.append("organizeImports");Ze.SourceFixAll=Ze.Source.append("fixAll");var bn;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(bn||(bn={}));function zie(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>F3(e,t,o.include))||!o.includeSourceActions&&Ze.Source.contains(e))}function Uie(o,e){const t=e.kind?new Ze(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>F3(t,i,o.include))||!o.includeSourceActions&&t&&Ze.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function F3(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Nr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Nr(t.kind,t.apply,!1):new Nr(Nr.getKindFromUser(e,t.kind),Nr.getApplyFromUser(e,t.apply),Nr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ze(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var BN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const B3="editor.action.codeAction",W3="editor.action.refactor",$ie="editor.action.refactor.preview",V3="editor.action.sourceAction",WN="editor.action.organizeImports",VN="editor.action.fixAll";class H3{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return BN(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Pi(n)}i&&(this.action.edit=i.edit)}return this})}}class HN extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(HN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:rn(e.diagnostics)?rn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:rn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ze.QuickFix.contains(new Ze(e.kind))&&!!e.isPreferred)}}const hR={actions:[],documentation:void 0};function zN(o,e,t,i,n,s){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new TN(e,s),d=jie(o,e,a),h=new Q,u=d.map(f=>BN(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return hR;const b=((_==null?void 0:_.actions)||[]).filter(C=>C&&Uie(a,C)),v=Kie(f,b,a.include);return{actions:b.map(C=>new H3(C,f)),documentation:v}}catch(_){if(ea(_))throw _;return Pi(_),hR}})),g=o.onDidChange(()=>{const f=o.all(e);Ss(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(v=>v.actions).flat(),b=i_(f.map(v=>v.documentation));return new HN(_,b,h)}).finally(()=>{g.dispose(),c.dispose()})}function jie(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>zie(t,new Ze(n))):!0)}function Kie(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ze(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const s of i)if(s.kind.contains(new Ze(n.kind)))return s.command}}Xe.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return BN(this,void 0,void 0,function*(){if(!(e instanceof _e))throw Ko();const{codeActionProvider:s}=o.get(de),r=o.get(Ut).getModel(e);if(!r)throw Ko();const a=oe.isISelection(t)?oe.liftSelection(t):L.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ko();const l=typeof i=="string"?new Ze(i):void 0,c=yield zN(s,r,a,{type:1,triggerAction:bn.Default,filter:{includeSourceActions:!0,include:l}},Ch.None,ze.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let os=class Wk{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new Q,this._editor=e,this._visible=Wk.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(Wk.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Gi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new uR(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new xs(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new L(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(uR.fadeOut(this._messageWidget.value))}};os.ID="editor.contrib.messageController";os.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));os=qie([Gie(1,Ee)],os);const Zie=xi.bindToContribution(os.get);ee(new Zie({id:"leaveEditorMessage",precondition:os.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class uR{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}tt(os.ID,os);var z3=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_a=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Yie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Jg={Visible:new le("CodeActionMenuVisible",!1,p("CodeActionMenuVisible","Whether the code action list widget is visible"))};class oy extends is{constructor(e,t){super(e.command?e.command.id:e.title,Qie(e.title),void 0,!e.disabled,t),this.action=e}}function Qie(o){return o.replace(/\r\n|\r|\n/g," ")}const Xie="codeActionWidget",ry=26;let Vk=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return Xie}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,s=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=s,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=nt(e.disposables)}};Vk=z3([_a(1,_i)],Vk);let uC=class Hk extends H{constructor(e,t,i,n,s,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=s,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ew({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=Jg.Visible.bindTo(this._contextKeyService),this.listRenderer=new Vk(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,s;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new Q,s=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(G(this.block,ae.MOUSE_DOWN,u=>u.stopPropagation())),s.id="codeActionMenuWidget",s.classList.add("codeActionMenuWidget"),e.appendChild(s),this.codeActionList.value=new rr("codeActionWidget",s,{getHeight(u){return u.isSeparator?10:ry},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof oy&&(_=u.action.kind===Hk.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*ry+10:t.length*ry;s.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const b=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);s.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Od(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Yie(this,void 0,void 0,function*(){const s=this._editor.getModel();if(!s)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,QO();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(s)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof oy?c(h.action):void 0})})}getMenuActions(e,t,i){var n,s;const r=d=>new oy(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(s=(n=e.filter)===null||n===void 0?void 0:n.include)===null||s===void 0?void 0:s.value},t.map(h=>h.action)));return l.length&&a.push(new ln,...l.map(d=>r(new H3({title:d.title,command:d,kind:Hk.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}};uC.documentationID="_documentation";uC=z3([_a(2,ll),_a(3,_i),_a(4,de),_a(5,sr),_a(6,Ct),_a(7,ot),_a(8,vh),_a(9,Ee)],uC);class ew{constructor(e){this._keybindingProvider=e}getResolver(){const e=new Ju(()=>this._keybindingProvider.getKeybindings().filter(t=>ew.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===WN?i={kind:Ze.SourceOrganizeImports.value}:t.command===VN&&(i={kind:Ze.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Nr.fromUser(i,{kind:Ze.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ze(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}}ew.codeActionCommands=[W3,B3,V3,WN,VN];var Jie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ene=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ip;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(Ip||(Ip={}));let gC=class U3 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new R),this.onClick=this._onClick.event,this._state=Ip.Hidden,this._domNode=document.createElement("div"),this._domNode.className=m.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),ft.ignoreTarget(this._domNode),this._register(IH(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(46),d=s.getLineContent(r),h=S1(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ip.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:U3._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ip.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...m.lightBulb.classNamesArray),this._domNode.classList.add(...m.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...m.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...m.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gC._posPref=[0];gC=Jie([ene(3,_i)],gC);Et((o,e)=>{var t;const i=(t=o.getColor(wi))===null||t===void 0?void 0:t.transparent(.7),n=o.getColor(Uz);n&&e.addRule(` .monaco-editor .contentWidgets ${m.lightBulb.cssSelector} { color: ${n}; background-color: ${i}; @@ -636,11 +636,11 @@ ${e.toString()}`}}class xN{constructor(e=new k1,t=!1,i){this._activeInstantiatio .monaco-editor .contentWidgets ${m.lightbulbAutofix.cssSelector} { color: ${s}; background-color: ${i}; - }`)});var tne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ine=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ay=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},nne=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},sne=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},E0;let zk=class extends H{constructor(e,t,i,n,s){super(),this._editor=e,this.delegate=n,this._activeCodeActions=this._register(new _n),this.previewOn=!1,E0.set(this,!1),this._codeActionWidget=new Ju(()=>this._register(s.createInstance(uC,this._editor,{onSelectCodeAction:(r,a)=>ay(this,void 0,void 0,function*(){this.previewOn?this.delegate.applyCodeAction(r,!0,Boolean(this.previewOn)):this.delegate.applyCodeAction(r,!0,Boolean(a.preview)),this.previewOn=!1})}))),this._lightBulbWidget=new Ju(()=>{const r=this._register(s.createInstance(gC,this._editor,t,i));return this._register(r.onClick(a=>this.showCodeActionList(a.trigger,a.actions,a,{includeDisabledActions:!1,fromLightbulb:!0}))),r})}dispose(){nne(this,E0,!0,"f"),super.dispose()}hideCodeActionWidget(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().hideCodeActionWidget()}onEnter(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().onEnterSet()}onPreviewEnter(){this.previewOn=!0,this.onEnter()}navigateList(e){this._codeActionWidget.hasValue()&&(e?this._codeActionWidget.getValue().navigateListWithKeysUp():this._codeActionWidget.getValue().navigateListWithKeysDown())}update(e){var t,i,n,s,r;return ay(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Te(l);return}if(!sne(this,E0,"f"))if(this._lightBulbWidget.getValue().update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=os.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=os.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this._codeActionWidget.getValue().show(e.trigger,a,e.position,{includeDisabledActions:l,fromLightbulb:!1})}else this._codeActionWidget.getValue().isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(!!t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(!!t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i,n){return ay(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(e,t,i,n)})}};E0=new WeakMap;zk=tne([ine(4,Ae)],zk);var ly=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},one=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},nu;const $3=new le("supportedCodeAction","");class rne extends H{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new xs),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();!t||e.some(i=>_F(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(!!t)for(const i of this._markerService.read({resource:t.uri})){const n=t.validateRange(i);if(L.intersectRanges(n,e))return L.lift(n)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n=this._getRangeOfMarker(t),s=n?n.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:s};return this._signalChange(r),r}}var id;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(ea(a))return ane;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(id||(id={}));const ane={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class lne extends H{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new _n),this._state=id.Empty,this._onDidChangeState=this._register(new R),this.onDidChangeState=this._onDidChangeState.event,nu.set(this,!1),this._supportedCodeActions=$3.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){ly(this,nu,"f")||(one(this,nu,!0,"f"),super.dispose(),this.setState(id.Empty,!0))}_update(){if(ly(this,nu,"f"))return;this._codeActionOracle.value=void 0,this.setState(id.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(83)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new rne(this._editor,this._markerService,i=>{var n;if(!i){this.setState(id.Empty);return}const s=Ri(r=>zN(this._registry,e,i.selection,i.trigger,Ch.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new id.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:bn.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!ly(this,nu,"f")&&this._onDidChangeState.fire(e))}}nu=new WeakMap;var cne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},j3=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function x_(o){return se.regex($3.keys()[0],new RegExp("(\\s|^)"+ys(o.value)+"\\b"))}function K3(o,e,t,i){const n=Nr.fromUser(e,{kind:Ze.Refactor,apply:"never"});return Lh(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?p("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):p("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?p("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):p("editor.action.refactor.noneMessage","No refactorings available"),{include:Ze.Refactor.contains(n.kind)?n.kind:Ze.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const tw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:p("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:p("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[p("args.schema.apply.first","Always apply the first returned code action."),p("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),p("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:p("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let fc=class q3 extends H{constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new lne(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new Ju(()=>this._register(new zk(e,ef.Id,I_.Id,{applyCodeAction:(a,l,c)=>j3(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:bn.QuickFix,filter:{}})}})},this._instantiationService)))}static get(e){return e.getContribution(q3.ID)}update(e){this._ui.getValue().update(e)}hideCodeActionMenu(){this._ui.hasValue()&&this._ui.getValue().hideCodeActionWidget()}navigateCodeActionList(e){this._ui.hasValue()&&this._ui.getValue().navigateList(e)}selectedOption(){this._ui.hasValue()&&this._ui.getValue().onEnter()}selectedOptionWithPreview(){this._ui.hasValue()&&this._ui.getValue().onPreviewEnter()}showCodeActions(e,t,i){return this._ui.getValue().showCodeActionList(e,t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=os.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(dne,e,Uk.FromCodeActions,{preview:t,editor:this._editor})}};fc.ID="editor.contrib.quickFixController";fc=cne([Tf(1,na),Tf(2,Ee),Tf(3,kc),Tf(4,Ae),Tf(5,de)],fc);var Uk;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(Uk||(Uk={}));function dne(o,e,t,i){return j3(this,void 0,void 0,function*(){const n=o.get(v_),s=o.get(ci),r=o.get(sr),a=o.get(di);if(r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(ze.None),e.action.edit&&(yield n.apply(Qg.convert(e.action.edit),{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:!0,showPreview:i==null?void 0:i.preview})),e.action.command)try{yield s.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(l){const c=hne(l);a.error(typeof c=="string"?c:p("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function hne(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}function Lh(o,e,t,i,n=!1,s=bn.Default){if(o.hasModel()){const r=fc.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class ef extends ce{constructor(){super({id:ef.Id,label:p("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return Lh(t,p("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,bn.QuickFix)}}ef.Id="editor.action.quickFix";class une extends xi{constructor(){super({id:B3,precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:tw}]}})}runEditorCommand(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Empty,apply:"ifSingle"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):p("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?p("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):p("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class gne extends ce{constructor(){super({id:W3,label:p("refactor.label","Refactor..."),alias:"Refactor...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:se.and(N.writable,x_(Ze.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!1,bn.Refactor)}}class fne extends ce{constructor(){super({id:$ie,label:p("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!0,bn.RefactorPreview)}}class pne extends ce{constructor(){super({id:V3,label:p("source.label","Source Action..."),alias:"Source Action...",precondition:se.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:se.and(N.writable,x_(Ze.Source))},description:{description:"Source Action...",args:[{name:"args",schema:tw}]}})}run(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Source,apply:"never"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):p("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?p("editor.action.source.noneMessage.preferred","No preferred source actions available"):p("editor.action.source.noneMessage","No source actions available"),{include:Ze.Source.contains(n.kind)?n.kind:Ze.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,bn.SourceAction)}}class mne extends ce{constructor(){super({id:WN,label:p("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:se.and(N.writable,x_(Ze.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return Lh(t,p("editor.action.organize.noneMessage","No organize imports action available"),{include:Ze.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,bn.OrganizeImports)}}class _ne extends ce{constructor(){super({id:VN,label:p("fixAll.label","Fix All"),alias:"Fix All",precondition:se.and(N.writable,x_(Ze.SourceFixAll))})}run(e,t){return Lh(t,p("fixAll.noneMessage","No fix all action available"),{include:Ze.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,bn.FixAll)}}class I_ extends ce{constructor(){super({id:I_.Id,label:p("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:se.and(N.writable,x_(Ze.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return Lh(t,p("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ze.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,bn.AutoFix)}}I_.Id="editor.action.autoFix";const E_=xi.bindToContribution(fc.get),N_=100+90;ee(new E_({id:"hideCodeActionMenuWidget",precondition:Jg.Visible,handler(o){o.hideCodeActionMenu()},kbOpts:{weight:N_,primary:9,secondary:[1033]}}));ee(new E_({id:"focusPreviousCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!0)},kbOpts:{weight:N_+1e5,primary:16,secondary:[2064]}}));ee(new E_({id:"focusNextCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!1)},kbOpts:{weight:N_+1e5,primary:18,secondary:[2066]}}));ee(new E_({id:"onEnterSelectCodeAction",precondition:Jg.Visible,handler(o){o.selectedOption()},kbOpts:{weight:N_+1e5,primary:3,secondary:[1026]}}));ee(new E_({id:"onEnterSelectCodeActionWithPreview",precondition:Jg.Visible,handler(o){o.selectedOptionWithPreview()},kbOpts:{weight:N_+1e5,primary:2051}}));zt.as(rl.Configuration).registerConfiguration(Object.assign(Object.assign({},GE),{properties:{"editor.experimental.useCustomCodeActionMenu":{type:"boolean",tags:["experimental"],scope:5,description:p("codeActionWidget","Enabling this adjusts how the code action menu is rendered."),default:!1}}}));tt(fc.ID,fc);ie(ef);ie(gne);ie(fne);ie(pne);ie(mne);ie(I_);ie(_ne);ee(new une);var gR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class $k{constructor(){this.lenses=[],this._disposables=new Q}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function G3(o,e,t){return gR(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new $k,r=i.map((a,l)=>gR(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Pi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}Xe.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;pt(_e.isUri(t)),pt(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(de),s=o.get(Ut).getModel(t);if(!s)throw Ko();const r=[],a=new Q;return G3(n,s,ze.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||Boolean(d.symbol.command)?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,ze.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var bne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vne=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Z3=Ye("ICodeLensCache");class fR{constructor(e,t){this.lineCount=e,this.data=t}}let jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Dc(20,.75);const t="codelens/cache";Up(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),Xa(e.onWillSaveState)(s=>{s.reason===lC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new $k;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new fR(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new L(a,1,a,11)});const r=new $k;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new fR(n.lineCount,r))}}catch{}}};jk=bne([vne(0,Do)],jk);et(Z3,jk);class Cne{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class iw{constructor(e,t,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${iw._idPool++}`,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&c.push(d.symbol),n.addDecoration({range:d.symbol.range,options:Ne.EMPTY},u=>this._decorationIds[h]=u),l?l=L.plusRange(l,d.symbol.range):l=L.lift(d.symbol.range)}),this._viewZone=new Cne(l.startLineNumber-1,r,a),this._viewZoneId=s.addZone(this._viewZone),c.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(c,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new iw(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&L.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:Ne.EMPTY},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Af=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Sne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kg=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Q,this._localToDispose=new Q,this._lenses=[],this._oldCodeLensModels=new Q,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new mt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(46)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+OI(this._editor.getId()).toString(16),this._styleElement=Qs(Gp(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(61)/this._editor.getOption(48));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(48)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(46),s=`--codelens-font-family${this._styleClassName}`,r=`--codelens-font-features${this._styleClassName}`;let a=` + }`)});var tne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ine=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ay=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},nne=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},sne=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},E0;let zk=class extends H{constructor(e,t,i,n,s){super(),this._editor=e,this.delegate=n,this._activeCodeActions=this._register(new _n),this.previewOn=!1,E0.set(this,!1),this._codeActionWidget=new Ju(()=>this._register(s.createInstance(uC,this._editor,{onSelectCodeAction:(r,a)=>ay(this,void 0,void 0,function*(){this.previewOn?this.delegate.applyCodeAction(r,!0,Boolean(this.previewOn)):this.delegate.applyCodeAction(r,!0,Boolean(a.preview)),this.previewOn=!1})}))),this._lightBulbWidget=new Ju(()=>{const r=this._register(s.createInstance(gC,this._editor,t,i));return this._register(r.onClick(a=>this.showCodeActionList(a.trigger,a.actions,a,{includeDisabledActions:!1,fromLightbulb:!0}))),r})}dispose(){nne(this,E0,!0,"f"),super.dispose()}hideCodeActionWidget(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().hideCodeActionWidget()}onEnter(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().onEnterSet()}onPreviewEnter(){this.previewOn=!0,this.onEnter()}navigateList(e){this._codeActionWidget.hasValue()&&(e?this._codeActionWidget.getValue().navigateListWithKeysUp():this._codeActionWidget.getValue().navigateListWithKeysDown())}update(e){var t,i,n,s,r;return ay(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Te(l);return}if(!sne(this,E0,"f"))if(this._lightBulbWidget.getValue().update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=os.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=os.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this._codeActionWidget.getValue().show(e.trigger,a,e.position,{includeDisabledActions:l,fromLightbulb:!1})}else this._codeActionWidget.getValue().isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(!!t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(!!t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i,n){return ay(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(e,t,i,n)})}};E0=new WeakMap;zk=tne([ine(4,Ae)],zk);var ly=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},one=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},nu;const $3=new le("supportedCodeAction","");class rne extends H{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new xs),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();!t||e.some(i=>_5(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(!!t)for(const i of this._markerService.read({resource:t.uri})){const n=t.validateRange(i);if(L.intersectRanges(n,e))return L.lift(n)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n=this._getRangeOfMarker(t),s=n?n.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:s};return this._signalChange(r),r}}var id;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(ea(a))return ane;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(id||(id={}));const ane={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class lne extends H{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new _n),this._state=id.Empty,this._onDidChangeState=this._register(new R),this.onDidChangeState=this._onDidChangeState.event,nu.set(this,!1),this._supportedCodeActions=$3.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){ly(this,nu,"f")||(one(this,nu,!0,"f"),super.dispose(),this.setState(id.Empty,!0))}_update(){if(ly(this,nu,"f"))return;this._codeActionOracle.value=void 0,this.setState(id.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(83)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new rne(this._editor,this._markerService,i=>{var n;if(!i){this.setState(id.Empty);return}const s=Ri(r=>zN(this._registry,e,i.selection,i.trigger,Ch.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new id.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:bn.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!ly(this,nu,"f")&&this._onDidChangeState.fire(e))}}nu=new WeakMap;var cne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},j3=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function x_(o){return se.regex($3.keys()[0],new RegExp("(\\s|^)"+ys(o.value)+"\\b"))}function K3(o,e,t,i){const n=Nr.fromUser(e,{kind:Ze.Refactor,apply:"never"});return Lh(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?p("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):p("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?p("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):p("editor.action.refactor.noneMessage","No refactorings available"),{include:Ze.Refactor.contains(n.kind)?n.kind:Ze.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const tw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:p("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:p("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[p("args.schema.apply.first","Always apply the first returned code action."),p("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),p("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:p("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let fc=class q3 extends H{constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new lne(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new Ju(()=>this._register(new zk(e,ef.Id,I_.Id,{applyCodeAction:(a,l,c)=>j3(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:bn.QuickFix,filter:{}})}})},this._instantiationService)))}static get(e){return e.getContribution(q3.ID)}update(e){this._ui.getValue().update(e)}hideCodeActionMenu(){this._ui.hasValue()&&this._ui.getValue().hideCodeActionWidget()}navigateCodeActionList(e){this._ui.hasValue()&&this._ui.getValue().navigateList(e)}selectedOption(){this._ui.hasValue()&&this._ui.getValue().onEnter()}selectedOptionWithPreview(){this._ui.hasValue()&&this._ui.getValue().onPreviewEnter()}showCodeActions(e,t,i){return this._ui.getValue().showCodeActionList(e,t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=os.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(dne,e,Uk.FromCodeActions,{preview:t,editor:this._editor})}};fc.ID="editor.contrib.quickFixController";fc=cne([Tf(1,na),Tf(2,Ee),Tf(3,kc),Tf(4,Ae),Tf(5,de)],fc);var Uk;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(Uk||(Uk={}));function dne(o,e,t,i){return j3(this,void 0,void 0,function*(){const n=o.get(v_),s=o.get(ci),r=o.get(sr),a=o.get(di);if(r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(ze.None),e.action.edit&&(yield n.apply(Qg.convert(e.action.edit),{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:!0,showPreview:i==null?void 0:i.preview})),e.action.command)try{yield s.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(l){const c=hne(l);a.error(typeof c=="string"?c:p("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function hne(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}function Lh(o,e,t,i,n=!1,s=bn.Default){if(o.hasModel()){const r=fc.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class ef extends ce{constructor(){super({id:ef.Id,label:p("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return Lh(t,p("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,bn.QuickFix)}}ef.Id="editor.action.quickFix";class une extends xi{constructor(){super({id:B3,precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:tw}]}})}runEditorCommand(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Empty,apply:"ifSingle"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):p("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?p("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):p("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class gne extends ce{constructor(){super({id:W3,label:p("refactor.label","Refactor..."),alias:"Refactor...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:se.and(N.writable,x_(Ze.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!1,bn.Refactor)}}class fne extends ce{constructor(){super({id:$ie,label:p("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!0,bn.RefactorPreview)}}class pne extends ce{constructor(){super({id:V3,label:p("source.label","Source Action..."),alias:"Source Action...",precondition:se.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:se.and(N.writable,x_(Ze.Source))},description:{description:"Source Action...",args:[{name:"args",schema:tw}]}})}run(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Source,apply:"never"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):p("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?p("editor.action.source.noneMessage.preferred","No preferred source actions available"):p("editor.action.source.noneMessage","No source actions available"),{include:Ze.Source.contains(n.kind)?n.kind:Ze.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,bn.SourceAction)}}class mne extends ce{constructor(){super({id:WN,label:p("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:se.and(N.writable,x_(Ze.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return Lh(t,p("editor.action.organize.noneMessage","No organize imports action available"),{include:Ze.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,bn.OrganizeImports)}}class _ne extends ce{constructor(){super({id:VN,label:p("fixAll.label","Fix All"),alias:"Fix All",precondition:se.and(N.writable,x_(Ze.SourceFixAll))})}run(e,t){return Lh(t,p("fixAll.noneMessage","No fix all action available"),{include:Ze.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,bn.FixAll)}}class I_ extends ce{constructor(){super({id:I_.Id,label:p("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:se.and(N.writable,x_(Ze.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return Lh(t,p("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ze.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,bn.AutoFix)}}I_.Id="editor.action.autoFix";const E_=xi.bindToContribution(fc.get),N_=100+90;ee(new E_({id:"hideCodeActionMenuWidget",precondition:Jg.Visible,handler(o){o.hideCodeActionMenu()},kbOpts:{weight:N_,primary:9,secondary:[1033]}}));ee(new E_({id:"focusPreviousCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!0)},kbOpts:{weight:N_+1e5,primary:16,secondary:[2064]}}));ee(new E_({id:"focusNextCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!1)},kbOpts:{weight:N_+1e5,primary:18,secondary:[2066]}}));ee(new E_({id:"onEnterSelectCodeAction",precondition:Jg.Visible,handler(o){o.selectedOption()},kbOpts:{weight:N_+1e5,primary:3,secondary:[1026]}}));ee(new E_({id:"onEnterSelectCodeActionWithPreview",precondition:Jg.Visible,handler(o){o.selectedOptionWithPreview()},kbOpts:{weight:N_+1e5,primary:2051}}));zt.as(rl.Configuration).registerConfiguration(Object.assign(Object.assign({},GE),{properties:{"editor.experimental.useCustomCodeActionMenu":{type:"boolean",tags:["experimental"],scope:5,description:p("codeActionWidget","Enabling this adjusts how the code action menu is rendered."),default:!1}}}));tt(fc.ID,fc);ie(ef);ie(gne);ie(fne);ie(pne);ie(mne);ie(I_);ie(_ne);ee(new une);var gR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class $k{constructor(){this.lenses=[],this._disposables=new Q}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function G3(o,e,t){return gR(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new $k,r=i.map((a,l)=>gR(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Pi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}Xe.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;pt(_e.isUri(t)),pt(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(de),s=o.get(Ut).getModel(t);if(!s)throw Ko();const r=[],a=new Q;return G3(n,s,ze.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||Boolean(d.symbol.command)?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,ze.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var bne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vne=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Z3=Ye("ICodeLensCache");class fR{constructor(e,t){this.lineCount=e,this.data=t}}let jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Dc(20,.75);const t="codelens/cache";Up(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),Xa(e.onWillSaveState)(s=>{s.reason===lC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new $k;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new fR(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new L(a,1,a,11)});const r=new $k;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new fR(n.lineCount,r))}}catch{}}};jk=bne([vne(0,Do)],jk);et(Z3,jk);class Cne{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class iw{constructor(e,t,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${iw._idPool++}`,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&c.push(d.symbol),n.addDecoration({range:d.symbol.range,options:Ne.EMPTY},u=>this._decorationIds[h]=u),l?l=L.plusRange(l,d.symbol.range):l=L.lift(d.symbol.range)}),this._viewZone=new Cne(l.startLineNumber-1,r,a),this._viewZoneId=s.addZone(this._viewZone),c.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(c,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new iw(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&L.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:Ne.EMPTY},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Af=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Sne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kg=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Q,this._localToDispose=new Q,this._lenses=[],this._oldCodeLensModels=new Q,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new mt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(46)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+OI(this._editor.getId()).toString(16),this._styleElement=Qs(Gp(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(61)/this._editor.getOption(48));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(48)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(46),s=`--codelens-font-family${this._styleClassName}`,r=`--codelens-font-features${this._styleClassName}`;let a=` .monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${e}px; font-size: ${t}px; padding-right: ${Math.round(t*.5)}px; font-feature-settings: var(${r}) } .monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${e}px; font-size: ${t}px; } `;i&&(a+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${s}), ${ts.fontFamily}}`),this._styleElement.textContent=a,this._editor.getContainerDomNode().style.setProperty(s,i!=null?i:"inherit"),this._editor.getContainerDomNode().style.setProperty(r,n.fontFeatureSettings),this._editor.changeViewZones(l=>{for(const c of this._lenses)c.updateHeight(e,l)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(Ad(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new mt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Ri(r=>G3(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Te)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Be(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new cy;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Be(()=>{if(this._editor.getModel()){const n=hc.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new cy;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}const s=hc.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new cy;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Ri(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,f)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(_=>{h[f]=_},Pi):(h[f]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Te(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};kg.ID="css.editor.codeLens";kg=wne([Af(1,de),Af(2,no),Af(3,ci),Af(4,di),Af(5,Z3)],kg);tt(kg.ID,kg);ie(class extends ce{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:p("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Sne(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(dl),n=e.get(ci),s=e.get(di),r=t.getSelection().positionLineNumber,a=t.getContribution(kg.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(!!d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function yne(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function mR(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}Xe.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof _e))throw Ko();const{colorProvider:i}=o.get(de),n=o.get(Ut).getModel(t);if(!n)throw Ko();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,ze.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});Xe.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof _e)||!Array.isArray(t)||t.length!==4||!L.isIRange(s))throw Ko();const[r,a,l,c]=t,{colorProvider:d}=o.get(de),h=o.get(Ut).getModel(n);if(!h)throw Ko();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],_=d.ordered(h).reverse().map(b=>Promise.resolve(b.provideColorPresentations(h,u,ze.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(_).then(()=>g)});var Lne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Dne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Y3=Object.create({}),kne=500;let Yd=class Q3 extends H{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Q),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d_(this._editor),this._colorDecorationClassRefs=this._register(new Q),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:Q3.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(()=>{const s=this._isEnabled;this._isEnabled=this.isEnabled(),s!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new xs,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Ri(e=>Dne(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new $n(!1),n=yield yne(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Te)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Ne.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Yd.ID="editor.contrib.colorDetector";Yd.RECOMPUTE_TIME=1e3;Yd=Lne([dy(1,ot),dy(2,de),dy(3,no)],Yd);tt(Yd.ID,Yd);class xne{constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new R,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new R,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new R,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let i=0;i{this.backgroundColor=r.getColor(Bd)||W.white})),this._register(G(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(G(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=W.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=W.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(Uo(".codicon.codicon-color-mode"))}}class Ene extends H{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=Uo(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nne(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Tne(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Ane(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new W(new Rr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new W(new Rr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new W(new Rr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nne extends H{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new R,this.onColorFlushed=this._onColorFlushed.event,this.domNode=Uo(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=Uo(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(G(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new jg);const t=on(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=G(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new W(new Rr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=W.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class X3 extends H{constructor(e,t){super(),this.model=t,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new R,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,Uo(".strip")),this.overlay=q(this.domNode,Uo(".overlay")),this.slider=q(this.domNode,Uo(".slider")),this.slider.style.top="0px",this._register(G(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new jg),i=on(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=G(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Tne extends X3{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new W(new qe(t,i,n,1)),r=new W(new qe(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Ane extends X3{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Mne extends yo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(tg.onDidChange(()=>this.layout()));const s=Uo(".colorpicker-widget");e.appendChild(s);const r=new Ine(s,this.model,n);this.body=new Ene(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Rne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},One=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},_R=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Pne{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Kk=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return ri.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return _R(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Yd.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return _R(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new qe(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new W(c),h=yield mR(e,t,i,ze.None),u=new xne(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Pne(this,L.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return H.None;const i=new Q,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Mne(e.fragment,r,this._editor.getOption(131),this._themeService));e.setColorPicker(a);let l=new L(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new L(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>mR(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,ze.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};Kk=Rne([One(1,Ct)],Kk);function qk(o,e){return!!o[e]}class hy{constructor(e,t){this.target=e.target,this.hasTriggerModifier=qk(e.event,t.triggerModifier),this.hasSideBySideModifier=qk(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class bR{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=qk(e,t.triggerModifier)}}class Vb{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function vR(o){return o==="altKey"?Ge?new Vb(57,"metaKey",6,"altKey"):new Vb(5,"ctrlKey",6,"altKey"):Ge?new Vb(6,"altKey",57,"metaKey"):new Vb(6,"altKey",5,"ctrlKey")}class UN extends H{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new R),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new R),this.onExecute=this._onExecute.event,this._onCancel=this._register(new R),this.onCancel=this._onCancel.event,this._editor=e,this._opts=vR(this._editor.getOption(72)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(t=>{if(t.hasChanged(72)){const i=vR(this._editor.getOption(72));if(this._opts.equals(i))return;this._opts=i,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(t=>this._onEditorMouseMove(new hy(t,this._opts)))),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(new hy(t,this._opts)))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(new hy(t,this._opts)))),this._register(this._editor.onKeyDown(t=>this._onEditorKeyDown(new bR(t,this._opts)))),this._register(this._editor.onKeyUp(t=>this._onEditorKeyUp(new bR(t,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(t=>this._onDidChangeCursorSelection(t))),this._register(this._editor.onDidChangeModel(t=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(t=>{(t.scrollTopChanged||t.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Fne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},fa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Qd=class extends pg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){Jr(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Qd=Fne([fa(3,Ae),fa(4,ct),fa(5,ci),fa(6,Ee),fa(7,Ct),fa(8,di),fa(9,al),fa(10,si),fa(11,de)],Qd);const CR=new W(new qe(0,122,204)),Bne={showArrow:!0,showFrame:!0,className:"",frameColor:CR,arrowColor:CR,keepEditorSelection:!1},Wne="vs.editor.contrib.zoneWidget";class Vne{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Hne{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class nw{constructor(e){this._editor=e,this._ruleName=nw._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),D2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){D2(this._ruleName),nD(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:L.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}nw._IdGenerator=new nN(".arrow-decoration-");class zne{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Q,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=La(t),Jr(this.options,Bne,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new nw(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash&&this._resizeSash.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(!!e)return e.getStartPosition()}show(e,t){const i=L.isIRange(e)?L.lift(e):L.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Ne.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(61);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(61),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Vne(r,i.lineNumber,i.column,t,f=>this._onViewZoneTop(f),f=>this._onViewZoneHeight(f)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new Hne(Wne+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=e.endLineNumber+1;g<=u.getLineCount()?this.revealLine(g,!1):this.revealLine(u.getLineCount(),!0)}}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}setCssClass(e,t){!this.container||(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new tn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(61),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}class Une extends og{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new R),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=q(e,J(".monaco-dropdown")),this._label=q(this._element,J(".dropdown-label"));let i=t.labelRenderer;i||(i=s=>(s.textContent=t.label||"",null));for(const s of[ae.CLICK,ae.MOUSE_DOWN,xt.Tap])this._register(G(this.element,s,r=>ut.stop(r,!0)));for(const s of[ae.MOUSE_DOWN,xt.Tap])this._register(G(this._label,s,r=>{r instanceof MouseEvent&&(r.detail>1||r.button!==0)||(this.visible?this.hide():this.show())}));this._register(G(this._label,ae.KEY_UP,s=>{const r=new Rt(s);(r.equals(3)||r.equals(10))&&(ut.stop(s,!0),this.visible?this.hide():this.show())}));const n=i(this._label);n&&this._register(n),this._register(ft.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class $ne extends Une{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class J3 extends Dr{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new R),this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=s=>{this.element=q(s,J("a.action-label"));let r=[];return typeof this.options.classNames=="string"?r=this.options.classNames.split(/\s+/g).filter(a=>!!a):this.options.classNames&&(r=this.options.classNames),r.find(a=>a==="icon")||r.push("codicon"),this.element.classList.add(...r),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",this.element.ariaLabel=this._action.label||"",null},i=Array.isArray(this.menuActionsOrProvider),n={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:i?this.menuActionsOrProvider:void 0,actionProvider:i?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new $ne(e,n)),this._register(this.dropdownMenu.onDidChangeVisibility(s=>{var r;(r=this.element)===null||r===void 0||r.setAttribute("aria-expanded",`${s}`),this._onDidChangeVisibility.fire(s)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const s=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return s.options.anchorAlignmentProvider()}})}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.getAction().tooltip?e=this.getAction().tooltip:this.getAction().label&&(e=this.getAction().label),e!=null?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}updateEnabled(){var e,t;const i=!this.getAction().enabled;(e=this.actionItem)===null||e===void 0||e.classList.toggle("disabled",i),(t=this.element)===null||t===void 0||t.classList.toggle("disabled",i)}}var $N=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rs=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},e7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function jne(o,e,t,i,n,s,r){const a=o.getActions(e);return qne(a,t,!1,typeof i=="string"?c=>c===i:i,n,s,r),Kne(a)}function Kne(o){const e=new Q;for(const[,t]of o)for(const i of t)e.add(i);return e}function qne(o,e,t,i=a=>a==="navigation",n=Number.MAX_SAFE_INTEGER,s=()=>!1,r=!1){let a,l;Array.isArray(e)?(a=e,l=e):(a=e.primary,l=e.secondary);const c=new Set;for(const[d,h]of o){let u;i(d)?(u=a,u.length>0&&r&&u.push(new ln)):(u=l,u.length>0&&u.push(new ln));for(let g of h){t&&(g=g instanceof ac&&g.alt?g.alt:g);const f=u.push(g);g instanceof Qp&&c.add({group:d,action:g,index:f-1})}}for(const{group:d,action:h,index:u}of c){const g=i(d)?a:l,f=h.actions;(f.length<=1||g.length+f.length-2<=n)&&s(h,d,g.length)&&g.splice(u,1,...f)}if(a!==l&&a.length>n){const d=a.splice(n,a.length-n);l.unshift(...d,new ln)}}let xg=class extends fm{constructor(e,t,i,n,s,r,a){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:t==null?void 0:t.draggable,keybinding:t==null?void 0:t.keybinding,hoverDelegate:t==null?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new _n),this._altKey=Ol.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return e7(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(Yi||dn)&&this._altKey.keyStatus.shiftKey;const n=()=>{var s;const r=t&&i&&!!(!((s=this._commandAction.alt)===null||s===void 0)&&s.enabled);r!==this._wantsAltCommand&&(this._wantsAltCommand=r,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(s=>{i=s.altKey||(Yi||dn)&&s.shiftKey,n()})),this._register(G(e,"mouseleave",s=>{t=!1,n()})),this._register(G(e,"mouseenter",s=>{t=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let s=i?p("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&((e=this._menuItemAction.alt)===null||e===void 0?void 0:e.enabled)){const r=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,a=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),l=a&&a.getLabel(),c=l?p("titleAndKb","{0} ({1})",r,l):r;s=p("titleAndKbAndAlt",`{0} -[{1}] {2}`,s,ZE.modifierLabels[Os].altKey,c)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;const{element:i,label:n}=this;if(!i||!n)return;const s=this._commandAction.checked&&((t=e.toggled)===null||t===void 0?void 0:t.icon)?e.toggled.icon:e.icon;if(!!s)if(at.isThemeIcon(s)){const r=at.asClassNameArray(s);n.classList.add(...r),this._itemClassDispose.value=Be(()=>{n.classList.remove(...r)})}else n.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(s.dark):Pd(s.light),n.classList.add("icon"),this._itemClassDispose.value=qo(Be(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};xg=$N([Rs(2,_i),Rs(3,di),Rs(4,Ee),Rs(5,Ct),Rs(6,ll)],xg);let Gk=class extends J3{constructor(e,t,i,n){var s,r;const a=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(s=t==null?void 0:t.menuAsChild)!==null&&s!==void 0?s:!1,classNames:(r=t==null?void 0:t.classNames)!==null&&r!==void 0?r:at.isThemeIcon(e.item.icon)?at.asClassName(e.item.icon):void 0});super(e,{getActions:()=>e.actions},i,a),this._contextMenuService=i,this._themeService=n}render(e){super.render(e),pt(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!at.isThemeIcon(i)){this.element.classList.add("icon");const n=()=>{this.element&&(this.element.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(i.dark):Pd(i.light))};n(),this._register(this._themeService.onDidColorThemeChange(()=>{n()}))}}};Gk=$N([Rs(2,ll),Rs(3,Ct)],Gk);let Zk=class extends Dr{constructor(e,t,i,n,s,r,a,l){var c,d,h;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=r,this._instaService=a,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let u;const g=l.get(this._storageKey,1);g&&(u=e.actions.find(_=>g===_.id)),u||(u=e.actions[0]),this._defaultAction=this._instaService.createInstance(xg,u,{keybinding:this._getDefaultActionKeybindingLabel(u)});const f=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(c=t==null?void 0:t.menuAsChild)!==null&&c!==void 0?c:!0,classNames:(d=t==null?void 0:t.classNames)!==null&&d!==void 0?d:["codicon","codicon-chevron-down"],actionRunner:(h=t==null?void 0:t.actionRunner)!==null&&h!==void 0?h:new og});this._dropdown=new J3(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(_=>{_.action instanceof ac&&this.update(_.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(xg,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends og{runAction(t,i){return e7(this,void 0,void 0,function*(){yield t.run(void 0)})}},this._container&&this._defaultAction.render(FH(this._container,J(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(!((t=this._options)===null||t===void 0)&&t.renderKeybindingWithDefaultActionLabel){const n=this._keybindingService.lookupKeybinding(e.id);n&&(i=`(${n.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=J(".action-container");this._defaultAction.render(q(this._container,t)),this._register(G(t,ae.KEY_DOWN,n=>{const s=new Rt(n);s.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),s.stopPropagation())}));const i=J(".dropdown-action-container");this._dropdown.render(q(this._container,i)),this._register(G(i,ae.KEY_DOWN,n=>{var s;const r=new Rt(n);r.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(s=this._defaultAction.element)===null||s===void 0||s.focus(),r.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};Zk=$N([Rs(2,_i),Rs(3,di),Rs(4,ll),Rs(5,ph),Rs(6,Ae),Rs(7,Do)],Zk);function Gne(o,e,t){return e instanceof ac?o.createInstance(xg,e,t):e instanceof GI?e.item.rememberDefaultAction?o.createInstance(Zk,e,t):o.createInstance(Gk,e,t):void 0}var t7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},i7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const n7=Ye("IPeekViewService");et(n7,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}});var jn;(function(o){o.inPeekEditor=new le("inReferenceSearchEditor",!0,p("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(jn||(jn={}));let Am=class{constructor(e,t){e instanceof Qd&&jn.inPeekEditor.bindTo(t)}dispose(){}};Am.ID="editor.contrib.referenceController";Am=t7([i7(1,Ee)],Am);tt(Am.ID,Am);function Zne(o){const e=o.get(ct).getFocusedCodeEditor();return e instanceof Qd?e.getParentEditor():e}const Yne={headerBackgroundColor:W.white,primaryHeadingColor:W.fromHex("#333333"),secondaryHeadingColor:W.fromHex("#6c6c6cb3")};let fC=class extends zne{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new R,this.onDidClose=this._onDidClose.event,Jr(this.options,Yne,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=J(".head"),this._bodyElement=J(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=J(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),ki(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=J("span.filename"),this._secondaryHeading=J("span.dirname"),this._metaHeading=J("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=J(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new Zr(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new is("peekview.close",p("label.close","Close"),m.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Gne.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:Si(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,bs(this._metaHeading)):Pn(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(61)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};fC=t7([i7(2,Ae)],fC);const Qne=T("peekViewTitle.background",{dark:fe(zn,.1),light:fe(zn,.1),hcDark:null,hcLight:null},p("peekViewTitleBackground","Background color of the peek view title area.")),s7=T("peekViewTitleLabel.foreground",{dark:W.white,light:W.black,hcDark:W.white,hcLight:Cs},p("peekViewTitleForeground","Color of the peek view title.")),o7=T("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},p("peekViewTitleInfoForeground","Color of the peek view title info.")),Xne=T("peekView.border",{dark:zn,light:zn,hcDark:We,hcLight:We},p("peekViewBorder","Color of the peek view borders and arrow.")),Jne=T("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:W.black,hcLight:W.white},p("peekViewResultsBackground","Background color of the peek view result list."));T("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:W.white,hcLight:Cs},p("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));T("peekViewResult.fileForeground",{dark:W.white,light:"#1E1E1E",hcDark:W.white,hcLight:Cs},p("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));T("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},p("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));T("peekViewResult.selectionForeground",{dark:W.white,light:"#6C6C6C",hcDark:W.white,hcLight:Cs},p("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const Hb=T("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:W.black,hcLight:W.white},p("peekViewEditorBackground","Background color of the peek view editor."));T("peekViewEditorGutter.background",{dark:Hb,light:Hb,hcDark:Hb,hcLight:Hb},p("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));T("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},p("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));T("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},p("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));T("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Ot,hcLight:Ot},p("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var ese=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class pc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v5.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?p({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",Js(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):p("aria.oneReference","symbol in {0} on line {1} at column {2}",Js(this.uri),this.range.startLineNumber,this.range.startColumn)}}class tse{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new L(n,l.startColumn,n,s),d=new L(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class Mm{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new mn}dispose(){nt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?p("aria.fileReferences.1","1 symbol in {0}, full path {1}",Js(this.uri),this.uri.fsPath):p("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Js(this.uri),this.uri.fsPath)}resolve(e){return ese(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new tse(i))}catch(i){Te(i)}return this})}}class ns{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new R,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(ns._compareReferences);let n;for(const s of e)if((!n||!It.isEqual(n.uri,s.uri,!0))&&(n=new Mm(this,s.uri),this.groups.push(n)),n.children.length===0||ns._compareReferences(s,n.children[n.children.length-1])!==0){const r=new pc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){nt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new ns(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?p("aria.result.0","No results found"):this.references.length===1?p("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?p("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):p("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:Nd(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&L.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return It.compare(e.uri,t.uri)||L.compareRangesUsingStarts(e.range,t.range)}}var sw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rm=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Yk=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof ns||e instanceof Mm}getChildren(e){if(e instanceof ns)return e.groups;if(e instanceof Mm)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};Yk=sw([Rm(0,Kn)],Yk);class ise{getHeight(){return 23}getTemplateId(e){return e instanceof Mm?Om.id:T_.id}}let Qk=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof pc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return Js(e.uri)}};Qk=sw([Rm(0,_i)],Qk);class nse{getId(e){return e instanceof pc?e.id:e.uri}}let Xk=class extends H{constructor(e,t,i){super(),this._labelService=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new nC(n,{supportHighlights:!0})),this.badge=new sk(q(n,J(".count"))),this._register(VY(this.badge,i)),e.appendChild(n)}set(e,t){const i=L1(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(p("referencesCount","{0} references",n)):this.badge.setTitleFormat(p("referenceCount","{0} reference",n))}};Xk=sw([Rm(1,bg),Rm(2,Ct)],Xk);let Om=class r7{constructor(e){this._instantiationService=e,this.templateId=r7.id}renderTemplate(e){return this._instantiationService.createInstance(Xk,e)}renderElement(e,t,i){i.set(e.element,E1(e.filterData))}disposeTemplate(e){e.dispose()}};Om.id="FileReferencesRenderer";Om=sw([Rm(0,Ae)],Om);class sse{constructor(e){this.label=new $d(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${Js(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!Zo.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,E1(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class T_{constructor(){this.templateId=T_.id}renderTemplate(e){return new sse(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}T_.id="OneReferenceRenderer";class ose{getWidgetAriaLabel(){return p("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var rse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},wR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class ow{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Q,this._callOnModelChange=new Q,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(!!e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(lse,"ReferencesWidget",this._treeContainer,new ise,[this._instantiationService.createInstance(Om),this._instantiationService.createInstance(T_)],this._instantiationService.createInstance(Yk),i),this._splitView.addView({onDidChange:ge.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},oC.Distribute),this._splitView.addView({onDidChange:ge.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},oC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof pc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),Pn(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new vt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{!this._model||(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=p("noResults","No results"),bs(this._messageContainer),Promise.resolve(void 0)):(Pn(this._messageContainer),this._decorationsManager=new ow(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();!n||this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),bs(this._treeContainer),bs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof pc)return e;if(e instanceof Mm&&e.children.length>0)return e.children[0]}revealReference(e){return wR(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return wR(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Me.inMemory?this.setTitle(hq(e.uri),this._uriLabel.getUriLabel(L1(e.uri))):this.setTitle(p("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}nt(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=L.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};Jk=rse([pa(3,Ct),pa(4,Kn),pa(5,Ae),pa(6,n7),pa(7,bg),pa(8,D1),pa(9,_i),pa(10,Ht),pa(11,si)],Jk);var cse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},SR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Dh=new le("referenceSearchVisible",!1,p("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let mc=class ex{constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Q,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Dh.bindTo(i)}static get(e){return e.getContribution(ex.ID)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),!!n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=ase.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(Jk,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(p("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(!!c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(p("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new B(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(79)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){!this._widget||(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return SR(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return SR(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const t=L.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:t,selectionSource:"code.jump"}},this._editor).then(i=>{var n;if(this._ignoreModelChangeEvent=!1,!i||!this._widget){this.closeWidget();return}if(this._editor===i)this._widget.show(t),this._widget.focusOnReferenceTree();else{const s=ex.get(i),r=this._model.clone();this.closeWidget(),i.focus(),s==null||s.toggleWidget(t,Ri(a=>Promise.resolve(r)),(n=this._peekMode)!==null&&n!==void 0?n:!1)}},i=>{this._ignoreModelChangeEvent=!1,Te(i)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};mc.ID="editor.contrib.referencesController";mc=cse([zh(2,Ee),zh(3,ct),zh(4,di),zh(5,Ae),zh(6,Do),zh(7,ot)],mc);function kh(o,e){const t=Zne(o);if(!t)return;const i=mc.get(t);i&&e(i)}as.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:yi(2089,60),when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});as.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!0)})}});as.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!1)})}});Xe.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Xe.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Xe.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Xe.registerCommand("closeReferenceSearch",o=>kh(o,e=>e.closeWidget()));as.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:se.and(jn.inPeekEditor,se.not("config.editor.stablePeek"))});as.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:se.and(Dh,se.not("config.editor.stablePeek"))});as.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:se.and(Dh,$5,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.revealReference(i[0]))}});as.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:se.and(Dh,$5,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!0,!0))}});Xe.registerCommand("openReference",o=>{var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!1,!0))});var a7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ip=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const jN=new le("hasSymbols",!1,p("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),rw=Ye("ISymbolNavigationService");let tx=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=jN.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new ix(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(_F(h.uri,a.uri))c=!0,d=d||L.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=qo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:L.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?p("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):p("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};tx=a7([ip(0,Ee),ip(1,ct),ip(2,di),ip(3,_i)],tx);et(rw,tx,!0);ee(new class extends xi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:jN,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(rw).revealNext(e)}});as.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:jN,primary:9,handler(o){o.get(rw).reset()}});let ix=class{constructor(e){this._listener=new Map,this._disposables=new Q,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),nt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,qo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};ix=a7([ip(0,ct)],ix);var l7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function A_(o,e,t,i){const s=t.ordered(o).map(r=>Promise.resolve(i(r,o,e)).then(void 0,a=>{Pi(a)}));return Promise.all(s).then(r=>{const a=[];for(const l of r)Array.isArray(l)?a.push(...l):l&&a.push(l);return a})}function KN(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function c7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function d7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function h7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function aw(o,e,t,i,n){return A_(e,t,o,(s,r,a)=>l7(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function M_(o){return l7(this,void 0,void 0,function*(){const e=yield o(),t=new ns(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}ia("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=KN(i.definitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=h7(i.typeDefinitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(de),n=c7(i.declarationProvider,e,t,ze.None);return M_(()=>n)});ia("_executeReferenceProvider",(o,e,t)=>{const i=o.get(de),n=aw(i.referenceProvider,e,t,!1,ze.None);return M_(()=>n)});ia("_executeImplementationProvider",(o,e,t)=>{const i=o.get(de),n=d7(i.implementationProvider,e,t,ze.None);return M_(()=>n)});var bo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},uy,gy,fy,py,my,_y,by,vy;qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextPeek,title:p("peek.submenu","Peek"),group:"navigation",order:100});const u7=new Set;function ar(o){const e=new o;return C4(e),u7.add(e.id),e}class Pm{constructor(e,t){this.model=e,this.position=t}static is(e){return!e||typeof e!="object"?!1:!!(e instanceof Pm||B.isIPosition(e.position)&&e.model)}}class vo extends ce{constructor(e,t){super(t),this.configuration=e}run(e,t,i){if(!t.hasModel())return Promise.resolve(void 0);const n=e.get(di),s=e.get(ct),r=e.get(kc),a=e.get(rw),l=e.get(de),c=t.getModel(),d=t.getPosition(),h=Pm.is(i)?i:new Pm(c,d),u=new qd(t,5),g=MI(this._getLocationModel(l,h.model,h.position,u.token),u.token).then(f=>bo(this,void 0,void 0,function*(){var _;if(!f||u.token.isCancellationRequested)return;Gi(f.ariaMessage);let b;if(f.referenceAt(c.uri,d)){const C=this._getAlternativeCommand(t);!vo._activeAlternativeCommands.has(C)&&u7.has(C)&&(b=t.getAction(C))}const v=f.references.length;if(v===0){if(!this.configuration.muteMessage){const C=c.getWordAtPosition(d);(_=os.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(C),d)}}else if(v===1&&b)vo._activeAlternativeCommands.add(this.id),b.run().finally(()=>{vo._activeAlternativeCommands.delete(this.id)});else return this._onResult(s,a,t,f)}),f=>{n.error(f)}).finally(()=>{u.dispose()});return r.showWhile(g,250),g}_onResult(e,t,i,n){return bo(this,void 0,void 0,function*(){const s=this._getGoToPreference(i);if(!(i instanceof Qd)&&(this.configuration.openInPeek||s==="peek"&&n.references.length>1))this._openInPeek(i,n);else{const r=n.firstReference(),a=n.references.length>1&&s==="gotoAndPeek",l=yield this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n):n.dispose(),s==="goto"&&t.put(r)}})}_openReference(e,t,i,n,s){return bo(this,void 0,void 0,function*(){let r;if(aB(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:L.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(!!a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t){const i=mc.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),Ri(n=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}vo._activeAlternativeCommands=new Set;class R_ extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield KN(e.definitionProvider,t,i,n),p("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("noResultWord","No definition found for '{0}'",e.word):p("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleDefinitions}}const g7=Sc&&!II()?2118:70;ar((uy=class nx extends R_{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:nx.id,label:p("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:g7,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),Xe.registerCommandAlias("editor.action.goToDeclaration",nx.id)}},uy.id="editor.action.revealDefinition",uy));ar((gy=class sx extends R_{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:sx.id,label:p("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,g7),weight:100}}),Xe.registerCommandAlias("editor.action.openDeclarationToTheSide",sx.id)}},gy.id="editor.action.revealDefinitionAside",gy));ar((fy=class ox extends R_{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:ox.id,label:p("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:se.and(N.hasDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:2}}),Xe.registerCommandAlias("editor.action.previewDeclaration",ox.id)}},fy.id="editor.action.peekDefinition",fy));class f7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield c7(e.declarationProvider,t,i,n),p("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(53).multipleDeclarations}}ar((py=class p7 extends f7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:p7.id,label:p("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:se.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}},py.id="editor.action.revealDeclaration",py));ar(class extends f7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:p("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:se.and(N.hasDeclarationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:3}})}});class m7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield h7(e.typeDefinitionProvider,t,i,n),p("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):p("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleTypeDefinitions}}ar((my=class _7 extends m7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:_7.ID,label:p("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}},my.ID="editor.action.goToTypeDefinition",my));ar((_y=class b7 extends m7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:b7.ID,label:p("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:4}})}},_y.ID="editor.action.peekTypeDefinition",_y));class v7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield d7(e.implementationProvider,t,i,n),p("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):p("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(53).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(53).multipleImplementations}}ar((by=class C7 extends v7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:C7.ID,label:p("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:se.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}},by.ID="editor.action.goToImplementation",by));ar((vy=class w7 extends v7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:w7.ID,label:p("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:se.and(N.hasImplementationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:5}})}},vy.ID="editor.action.peekImplementation",vy));class S7 extends vo{_getNoResultFoundMessage(e){return e?p("references.no","No references found for '{0}'",e.word):p("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(53).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(53).multipleReferences}}ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:p("goToReferences.label","Go to References"),alias:"Go to References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!0,n),p("ref.title","References"))})}});ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:p("references.action.label","Peek References"),alias:"Peek References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!1,n),p("ref.title","References"))})}});class dse extends vo{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:p("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:se.and(jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(this._references,p("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&p("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(53).multipleReferences}_getAlternativeCommand(){return""}}Xe.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>bo(void 0,void 0,void 0,function*(){pt(_e.isUri(e)),pt(B.isIPosition(t)),pt(Array.isArray(i)),pt(typeof n>"u"||typeof n=="string"),pt(typeof r>"u"||typeof r=="boolean");const a=o.get(ct),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(nl(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends dse{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!Boolean(s),openInPeek:Boolean(r),openToSide:!1},i,n);c.get(Ae).invokeFunction(d.run.bind(d),l)})})});Xe.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>bo(void 0,void 0,void 0,function*(){o.get(ci).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});Xe.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{pt(_e.isUri(e)),pt(B.isIPosition(t));const i=o.get(de),n=o.get(ct);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!nl(s)||!s.hasModel())return;const r=mc.get(s);if(!r)return;const a=Ri(c=>aw(i.referenceProvider,s.getModel(),B.lift(t),!1,c).then(d=>new ns(d,p("ref.title","References")))),l=new L(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});Xe.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");qs.appendMenuItems([{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:p({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:p({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:p({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:p({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:p({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}]);var hse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Cy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xd=class N0{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Q,this.toUnhookForKeyboard=new Q,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new UN(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,Wn(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},a=>{this.removeLinkDecorations(),Te(a)})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(N0.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;const n=new Tm(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Ri(s=>this.findDefinition(e,s)),this.previousPromise.then(s=>{if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}if(s.length>1)this.addDecoration(new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),new Fn().appendText(p("multipleResults","Click to show {0} definitions.",s.length)));else{const r=s[0];if(!r.uri)return;this.textModelResolverService.createModelReference(r.uri).then(a=>{if(!a.object||!a.object.textEditorModel){a.dispose();return}const{object:{textEditorModel:l}}=a,{startLineNumber:c}=r.range;if(c<1||c>l.getLineCount()){a.dispose();return}const d=this.getPreviewValue(l,c,r);let h;r.originSelectionRange?h=L.lift(r.originSelectionRange):h=new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const u=this.languageService.guessLanguageIdByFilepathOrFirstLine(l.uri);this.addDecoration(h,new Fn().appendCodeblock(u||"",d)),a.dispose()})}}).then(void 0,Te)}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=N0.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(80)&&!this.isInPeekEditor(i);return new R_({openToSide:t,openInPeek:n,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(i,this.editor)})}isInPeekEditor(e){const t=e.get(Ee);return jn.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};Xd.ID="editor.contrib.gotodefinitionatposition";Xd.MAX_SOURCE_PREVIEW_LINES=8;Xd=hse([Cy(1,Kn),Cy(2,Ht),Cy(3,de)],Xd);tt(Xd.ID,Xd);Et((o,e)=>{const t=o.getColor(lE);t&&e.addRule(`.monaco-editor .goto-definition-link { color: ${t} !important; }`)});const zb=J;class y7 extends H{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new p_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class qN extends H{constructor(e,t,i){super(),this.actionContainer=q(e,zb("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,zb("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,zb(`span.icon.${t.iconClass}`));const n=q(this.action,zb("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(G(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(G(this.actionContainer,ae.KEY_UP,s=>{new Rt(s).equals(3)&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}static render(e,t,i){return new qN(e,t,i)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var use=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},gse=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class fse{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class L7 extends H{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new R),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new mt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new mt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new mt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(55).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=TW(e=>this._computer.computeAsync(e)),use(this,void 0,void 0,function*(){var e,t;try{try{for(var i=gse(this._asyncIterable),n;n=yield i.next(),!n.done;){const s=n.value;s&&(this._result.push(s),this._fireResult())}}catch(s){e={error:s}}finally{try{n&&!n.done&&(t=i.return)&&(yield t.call(i))}finally{if(e)throw e.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(s){Te(s)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new fse(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class wy{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class T0{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const xh=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ho{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ho._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ho.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ho.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ho.isVariableCharacter(i)||ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ho._table[i]>"u"&&!ho.isDigitCharacter(i)&&!ho.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ho._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13};class tf{constructor(){this._children=[]}appendChild(e){return e instanceof Bn&&this._children[this._children.length-1]instanceof Bn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof O_)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Bn extends tf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Bn(this.value)}}class D7 extends tf{}class go extends D7{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof nf?this._children[0]:void 0}clone(){const e=new go(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class nf extends tf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Bn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new nf;return this.options.forEach(e.appendChild,e),e}}class GN extends tf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Mo&&Boolean(s.elseValue))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Mo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new GN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Mo extends tf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(e)&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Mo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Fm extends D7{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Bn(t)],!0):!1}clone(){const e=new Fm(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function yR(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class O_ extends tf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof go&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return yR([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof go&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Fm&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new O_;return this._children=this.children.map(t=>t.clone()),e}walk(e){yR(this.children,e)}}class _c{constructor(){this._scanner=new ho,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new O_;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i!=null?i:!1,t!=null?t:!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(r=>(r instanceof go&&(r.isFinalTabstop?n.set(0,void 0):!n.has(r.index)&&r.children.length>0?n.set(r.index,r.children):s.push(r)),!0));for(const r of s){const a=n.get(r.index);if(a){const l=new go(r.index);l.transform=r.transform;for(const c of a)l.appendChild(c.clone());t.replace(r,[l])}}return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new go(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Bn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new go(Number(t)):new Fm(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new go(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new nf;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Bn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new Fm(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new GN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Bn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Mo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Mo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Mo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Mo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Bn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const pse=p("defaultLabel","input"),mse=p("label.preserveCaseToggle","Preserve Case");class _se extends y_{constructor(e){super({icon:m.preserveCase,title:mse+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class bse extends yo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onPreserveCaseKeyDown=this._register(new R),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||pse,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new y5(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c})),this.preserveCase=this._register(new _se({appendTitle:s,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let f=-1;u.equals(17)?f=(g+1)%d.length:u.equals(15)&&(g===0?f=d.length-1:f=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):f>=0&&d[f].focus(),ut.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var k7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},x7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ZN=new le("suggestWidgetVisible",!1,p("suggestWidgetVisible","Whether suggestion are visible")),YN="historyNavigationWidgetFocus",I7="historyNavigationForwardsEnabled",E7="historyNavigationBackwardsEnabled";let Ld;const Ub=[];function N7(o,e){if(Ub.includes(e))throw new Error("Cannot register the same widget multiple times");Ub.push(e);const t=new Q,i=t.add(o.createScoped(e.element)),n=new le(YN,!1).bindTo(i),s=new le(I7,!0).bindTo(i),r=new le(E7,!0).bindTo(i),a=()=>{n.set(!0),Ld=e},l=()=>{n.set(!1),Ld===e&&(Ld=void 0)};return e.element===document.activeElement&&a(),t.add(e.onDidFocus(()=>a())),t.add(e.onDidBlur(()=>l())),t.add(Be(()=>{Ub.splice(Ub.indexOf(e),1),l()})),{scopedContextKeyService:i,historyNavigationForwardsEnablement:s,historyNavigationBackwardsEnablement:r,dispose(){t.dispose()}}}let rx=class extends bX{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};rx=k7([x7(3,Ee)],rx);let ax=class extends bse{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};ax=k7([x7(3,Ee)],ax);as.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:se.and(se.has(YN),se.equals(E7,!0),ZN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{Ld&&Ld.showPreviousValue()}});as.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:se.and(se.has(YN),se.equals(I7,!0),ZN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{Ld&&Ld.showNextValue()}});var Ep=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ke={Visible:ZN,HasFocusedSuggestion:new le("suggestWidgetHasFocusedSuggestion",!1,p("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new le("suggestWidgetDetailsVisible",!1,p("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new le("suggestWidgetMultipleSuggestions",!1,p("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new le("suggestionMakesTextEdit",!0,p("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new le("acceptSuggestionOnEnter",!0,p("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new le("suggestionHasInsertAndReplaceRange",!1,p("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new le("suggestionInsertMode",void 0,{type:"string",description:p("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new le("suggestionCanResolve",!1,p("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Ql=new M("suggestWidgetStatusBar");class vse{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=Zo.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,L.isIRange(t.range)?(this.editStart=new B(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new B(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new B(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new B(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new B(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new B(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range.insert)||L.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return Ep(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{ea(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class Bm{constructor(e=2,t=new Set,i=new Set,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=n}}Bm.default=new Bm;let Cse;function wse(){return Cse}class Sse{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function QN(o,e,t,i=Bm.default,n={triggerKind:0},s=ze.None){return Ep(this,void 0,void 0,function*(){const r=new $n(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new L(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):L.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Q,u=[];let g=!1;const f=(b,v,C)=>{var w,S,k;let x=!1;if(!v)return x;for(const y of v.suggestions)if(!i.kindFilter.has(y.kind)){if(!i.showDeprecated&&((w=y==null?void 0:y.tags)===null||w===void 0?void 0:w.includes(1)))continue;y.range||(y.range=c),y.sortText||(y.sortText=typeof y.label=="string"?y.label:y.label.label),!g&&y.insertTextRules&&y.insertTextRules&4&&(g=_c.guessNeedsClipboard(y.insertText)),d.push(new vse(t,y,v,b)),x=!0}return hI(v)&&h.add(v),u.push({providerName:(S=b._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(k=v.duration)!==null&&k!==void 0?k:-1,elapsedOverall:C.elapsed()}),x},_=(()=>Ep(this,void 0,void 0,function*(){}))();for(const b of o.orderedGroups(e)){let v=!1;if(yield Promise.all(b.map(C=>Ep(this,void 0,void 0,function*(){if(!(i.providerFilter.size>0&&!i.providerFilter.has(C)))try{const w=new $n(!0),S=yield C.provideCompletionItems(e,t,n,s);v=f(C,S,w)||v}catch(w){Pi(w)}}))),v||s.isCancellationRequested)break}return yield _,s.isCancellationRequested?(h.dispose(),Promise.reject(new yc)):new Sse(d.sort(T7(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function XN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function yse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return XN(o,e)}function Lse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return XN(o,e)}const lw=new Map;lw.set(0,yse);lw.set(2,Lse);lw.set(1,XN);function T7(o){return lw.get(o)}Xe.registerCommand("_executeCompletionItemProvider",(o,...e)=>Ep(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string"||!n),pt(typeof s=="number"||!s);const{completionProvider:r}=o.get(de),a=yield o.get(Kn).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield QN(r,a.object.textEditorModel,B.lift(i),void 0,{triggerCharacter:n,triggerKind:n?1:0});for(const h of d.items)c.length<(s!=null?s:0)&&c.push(h.resolve(ze.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function Dse(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class ku{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var JN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const LR=J;let mC=class lx extends H{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(Dd,this._editor)),this._isChangingDecorations=!1,this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const n of xh.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new _C(this._editor,this._participants),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value,n.isComplete,n.hasLoadingMessage)})),this._register(this._editor.onDidChangeModelDecorations(()=>{this._isChangingDecorations||this._onModelDecorationsChanged()})),this._register(ki(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Wt.onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new wy(0,i.range)),i.type===7){const n=this._editor.getOption(46).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingAt(t[0],0,!1),!0)}startShowingAtRange(e,t,i){this._startShowingAt(new wy(0,e),t,i)}_startShowingAt(e,t,i){if(!(this._computer.anchor&&this._computer.anchor.equals(e))){if(this._hoverOperation.cancel(),this._widget.position)if(!this._computer.anchor||!e.canAdoptVisibleHover(this._computer.anchor,this._widget.position))this.hide();else{const n=this._messages.filter(s=>s.isValidForHoverAnchor(e));if(n.length===0)this.hide();else{if(n.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,n)}}this._computer.anchor=e,this._computer.shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e,t,i){this._messages=i?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}_renderMessages(e,t){const{showAtPosition:i,showAtRange:n,highlightRange:s}=lx.computeHoverRanges(e.range,t),r=new Q,a=r.add(new cx(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const h of this._participants){const u=t.filter(g=>g.owner===h);u.length>0&&r.add(h.renderHoverParts(d,u))}if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const h=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,h.set([{range:s,options:lx._DECORATION_OPTIONS}])}finally{this._isChangingDecorations=!1}r.add(Be(()=>{try{this._isChangingDecorations=!0,h.clear()}finally{this._isChangingDecorations=!1}}))}this._widget.showAt(l,new kse(c,i,n,this._editor.getOption(55).above,this._computer.shouldFocus,r))}else r.dispose()}static computeHoverRanges(e,t){const i=e.startLineNumber;let n=e.startColumn,s=e.endColumn,r=t[0].range,a=null;for(const l of t)r=L.plusRange(r,l.range),l.range.startLineNumber===i&&l.range.endLineNumber===i&&(n=Math.min(n,l.range.startColumn),s=Math.max(s,l.range.endColumn)),l.forceShowAtRange&&(a=l.range);return{showAtPosition:a?a.getStartPosition():new B(e.startLineNumber,n),showAtRange:a||new L(i,n,i,s),highlightRange:r}}};mC._DECORATION_OPTIONS=Ne.register({description:"content-hover-highlight",className:"hoverHighlight"});mC=JN([pC(1,Ae),pC(2,_i)],mC);class kse{constructor(e,t,i,n,s,r){this.colorPicker=e,this.showAtPosition=t,this.showAtRange=i,this.preferAbove=n,this.stoleFocus=s,this.disposables=r}}let Dd=class A7 extends H{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new y7),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(46)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return Boolean((e=this._visibleData)===null||e===void 0?void 0:e.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return A7.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(Ke.Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(46);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};Dd.ID="editor.contrib.contentHoverWidget";Dd=JN([pC(1,Ee)],Dd);let cx=class extends H{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=LR("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,LR("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(qN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};cx=JN([pC(0,_i)],cx);class _C{constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}static _getLineDecorations(e,t){if(t.type!==1)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return ri.EMPTY;const i=_C._getLineDecorations(this._editor,t);return ri.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):ri.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=_C._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return i_(t)}}let M7={};(function(){function o(e,t){t(M7)}o.amd=!0,function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof o=="function"&&o.amd?o(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.marked={}))}(this,function(e){function t(Z,U){for(var $=0;$Z.length)&&(U=Z.length);for(var $=0,E=new Array(U);$=Z.length?{done:!0}:{done:!1,value:Z[E++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +[{1}] {2}`,s,ZE.modifierLabels[Os].altKey,c)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;const{element:i,label:n}=this;if(!i||!n)return;const s=this._commandAction.checked&&((t=e.toggled)===null||t===void 0?void 0:t.icon)?e.toggled.icon:e.icon;if(!!s)if(at.isThemeIcon(s)){const r=at.asClassNameArray(s);n.classList.add(...r),this._itemClassDispose.value=Be(()=>{n.classList.remove(...r)})}else n.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(s.dark):Pd(s.light),n.classList.add("icon"),this._itemClassDispose.value=qo(Be(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};xg=$N([Rs(2,_i),Rs(3,di),Rs(4,Ee),Rs(5,Ct),Rs(6,ll)],xg);let Gk=class extends J3{constructor(e,t,i,n){var s,r;const a=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(s=t==null?void 0:t.menuAsChild)!==null&&s!==void 0?s:!1,classNames:(r=t==null?void 0:t.classNames)!==null&&r!==void 0?r:at.isThemeIcon(e.item.icon)?at.asClassName(e.item.icon):void 0});super(e,{getActions:()=>e.actions},i,a),this._contextMenuService=i,this._themeService=n}render(e){super.render(e),pt(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!at.isThemeIcon(i)){this.element.classList.add("icon");const n=()=>{this.element&&(this.element.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(i.dark):Pd(i.light))};n(),this._register(this._themeService.onDidColorThemeChange(()=>{n()}))}}};Gk=$N([Rs(2,ll),Rs(3,Ct)],Gk);let Zk=class extends Dr{constructor(e,t,i,n,s,r,a,l){var c,d,h;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=r,this._instaService=a,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let u;const g=l.get(this._storageKey,1);g&&(u=e.actions.find(_=>g===_.id)),u||(u=e.actions[0]),this._defaultAction=this._instaService.createInstance(xg,u,{keybinding:this._getDefaultActionKeybindingLabel(u)});const f=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(c=t==null?void 0:t.menuAsChild)!==null&&c!==void 0?c:!0,classNames:(d=t==null?void 0:t.classNames)!==null&&d!==void 0?d:["codicon","codicon-chevron-down"],actionRunner:(h=t==null?void 0:t.actionRunner)!==null&&h!==void 0?h:new og});this._dropdown=new J3(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(_=>{_.action instanceof ac&&this.update(_.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(xg,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends og{runAction(t,i){return e7(this,void 0,void 0,function*(){yield t.run(void 0)})}},this._container&&this._defaultAction.render(FH(this._container,J(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(!((t=this._options)===null||t===void 0)&&t.renderKeybindingWithDefaultActionLabel){const n=this._keybindingService.lookupKeybinding(e.id);n&&(i=`(${n.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=J(".action-container");this._defaultAction.render(q(this._container,t)),this._register(G(t,ae.KEY_DOWN,n=>{const s=new Rt(n);s.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),s.stopPropagation())}));const i=J(".dropdown-action-container");this._dropdown.render(q(this._container,i)),this._register(G(i,ae.KEY_DOWN,n=>{var s;const r=new Rt(n);r.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(s=this._defaultAction.element)===null||s===void 0||s.focus(),r.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};Zk=$N([Rs(2,_i),Rs(3,di),Rs(4,ll),Rs(5,ph),Rs(6,Ae),Rs(7,Do)],Zk);function Gne(o,e,t){return e instanceof ac?o.createInstance(xg,e,t):e instanceof GI?e.item.rememberDefaultAction?o.createInstance(Zk,e,t):o.createInstance(Gk,e,t):void 0}var t7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},i7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const n7=Ye("IPeekViewService");et(n7,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}});var jn;(function(o){o.inPeekEditor=new le("inReferenceSearchEditor",!0,p("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(jn||(jn={}));let Am=class{constructor(e,t){e instanceof Qd&&jn.inPeekEditor.bindTo(t)}dispose(){}};Am.ID="editor.contrib.referenceController";Am=t7([i7(1,Ee)],Am);tt(Am.ID,Am);function Zne(o){const e=o.get(ct).getFocusedCodeEditor();return e instanceof Qd?e.getParentEditor():e}const Yne={headerBackgroundColor:W.white,primaryHeadingColor:W.fromHex("#333333"),secondaryHeadingColor:W.fromHex("#6c6c6cb3")};let fC=class extends zne{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new R,this.onDidClose=this._onDidClose.event,Jr(this.options,Yne,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=J(".head"),this._bodyElement=J(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=J(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),ki(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=J("span.filename"),this._secondaryHeading=J("span.dirname"),this._metaHeading=J("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=J(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new Zr(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new is("peekview.close",p("label.close","Close"),m.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Gne.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:Si(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,bs(this._metaHeading)):Pn(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(61)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};fC=t7([i7(2,Ae)],fC);const Qne=T("peekViewTitle.background",{dark:fe(zn,.1),light:fe(zn,.1),hcDark:null,hcLight:null},p("peekViewTitleBackground","Background color of the peek view title area.")),s7=T("peekViewTitleLabel.foreground",{dark:W.white,light:W.black,hcDark:W.white,hcLight:Cs},p("peekViewTitleForeground","Color of the peek view title.")),o7=T("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},p("peekViewTitleInfoForeground","Color of the peek view title info.")),Xne=T("peekView.border",{dark:zn,light:zn,hcDark:We,hcLight:We},p("peekViewBorder","Color of the peek view borders and arrow.")),Jne=T("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:W.black,hcLight:W.white},p("peekViewResultsBackground","Background color of the peek view result list."));T("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:W.white,hcLight:Cs},p("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));T("peekViewResult.fileForeground",{dark:W.white,light:"#1E1E1E",hcDark:W.white,hcLight:Cs},p("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));T("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},p("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));T("peekViewResult.selectionForeground",{dark:W.white,light:"#6C6C6C",hcDark:W.white,hcLight:Cs},p("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const Hb=T("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:W.black,hcLight:W.white},p("peekViewEditorBackground","Background color of the peek view editor."));T("peekViewEditorGutter.background",{dark:Hb,light:Hb,hcDark:Hb,hcLight:Hb},p("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));T("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},p("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));T("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},p("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));T("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Ot,hcLight:Ot},p("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var ese=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class pc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=vF.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?p({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",Js(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):p("aria.oneReference","symbol in {0} on line {1} at column {2}",Js(this.uri),this.range.startLineNumber,this.range.startColumn)}}class tse{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new L(n,l.startColumn,n,s),d=new L(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class Mm{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new mn}dispose(){nt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?p("aria.fileReferences.1","1 symbol in {0}, full path {1}",Js(this.uri),this.uri.fsPath):p("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Js(this.uri),this.uri.fsPath)}resolve(e){return ese(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new tse(i))}catch(i){Te(i)}return this})}}class ns{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new R,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(ns._compareReferences);let n;for(const s of e)if((!n||!It.isEqual(n.uri,s.uri,!0))&&(n=new Mm(this,s.uri),this.groups.push(n)),n.children.length===0||ns._compareReferences(s,n.children[n.children.length-1])!==0){const r=new pc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){nt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new ns(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?p("aria.result.0","No results found"):this.references.length===1?p("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?p("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):p("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:Nd(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&L.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return It.compare(e.uri,t.uri)||L.compareRangesUsingStarts(e.range,t.range)}}var sw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rm=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Yk=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof ns||e instanceof Mm}getChildren(e){if(e instanceof ns)return e.groups;if(e instanceof Mm)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};Yk=sw([Rm(0,Kn)],Yk);class ise{getHeight(){return 23}getTemplateId(e){return e instanceof Mm?Om.id:T_.id}}let Qk=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof pc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return Js(e.uri)}};Qk=sw([Rm(0,_i)],Qk);class nse{getId(e){return e instanceof pc?e.id:e.uri}}let Xk=class extends H{constructor(e,t,i){super(),this._labelService=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new nC(n,{supportHighlights:!0})),this.badge=new sk(q(n,J(".count"))),this._register(VY(this.badge,i)),e.appendChild(n)}set(e,t){const i=L1(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(p("referencesCount","{0} references",n)):this.badge.setTitleFormat(p("referenceCount","{0} reference",n))}};Xk=sw([Rm(1,bg),Rm(2,Ct)],Xk);let Om=class r7{constructor(e){this._instantiationService=e,this.templateId=r7.id}renderTemplate(e){return this._instantiationService.createInstance(Xk,e)}renderElement(e,t,i){i.set(e.element,E1(e.filterData))}disposeTemplate(e){e.dispose()}};Om.id="FileReferencesRenderer";Om=sw([Rm(0,Ae)],Om);class sse{constructor(e){this.label=new $d(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${Js(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!Zo.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,E1(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class T_{constructor(){this.templateId=T_.id}renderTemplate(e){return new sse(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}T_.id="OneReferenceRenderer";class ose{getWidgetAriaLabel(){return p("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var rse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},wR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class ow{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Q,this._callOnModelChange=new Q,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(!!e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(lse,"ReferencesWidget",this._treeContainer,new ise,[this._instantiationService.createInstance(Om),this._instantiationService.createInstance(T_)],this._instantiationService.createInstance(Yk),i),this._splitView.addView({onDidChange:ge.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},oC.Distribute),this._splitView.addView({onDidChange:ge.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},oC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof pc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),Pn(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new vt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{!this._model||(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=p("noResults","No results"),bs(this._messageContainer),Promise.resolve(void 0)):(Pn(this._messageContainer),this._decorationsManager=new ow(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();!n||this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),bs(this._treeContainer),bs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof pc)return e;if(e instanceof Mm&&e.children.length>0)return e.children[0]}revealReference(e){return wR(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return wR(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Me.inMemory?this.setTitle(hq(e.uri),this._uriLabel.getUriLabel(L1(e.uri))):this.setTitle(p("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}nt(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=L.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};Jk=rse([pa(3,Ct),pa(4,Kn),pa(5,Ae),pa(6,n7),pa(7,bg),pa(8,D1),pa(9,_i),pa(10,Ht),pa(11,si)],Jk);var cse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},SR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Dh=new le("referenceSearchVisible",!1,p("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let mc=class ex{constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Q,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Dh.bindTo(i)}static get(e){return e.getContribution(ex.ID)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),!!n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=ase.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(Jk,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(p("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(!!c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(p("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new B(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(79)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){!this._widget||(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return SR(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return SR(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const t=L.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:t,selectionSource:"code.jump"}},this._editor).then(i=>{var n;if(this._ignoreModelChangeEvent=!1,!i||!this._widget){this.closeWidget();return}if(this._editor===i)this._widget.show(t),this._widget.focusOnReferenceTree();else{const s=ex.get(i),r=this._model.clone();this.closeWidget(),i.focus(),s==null||s.toggleWidget(t,Ri(a=>Promise.resolve(r)),(n=this._peekMode)!==null&&n!==void 0?n:!1)}},i=>{this._ignoreModelChangeEvent=!1,Te(i)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};mc.ID="editor.contrib.referencesController";mc=cse([zh(2,Ee),zh(3,ct),zh(4,di),zh(5,Ae),zh(6,Do),zh(7,ot)],mc);function kh(o,e){const t=Zne(o);if(!t)return;const i=mc.get(t);i&&e(i)}as.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:yi(2089,60),when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});as.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!0)})}});as.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!1)})}});Xe.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Xe.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Xe.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Xe.registerCommand("closeReferenceSearch",o=>kh(o,e=>e.closeWidget()));as.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:se.and(jn.inPeekEditor,se.not("config.editor.stablePeek"))});as.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:se.and(Dh,se.not("config.editor.stablePeek"))});as.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:se.and(Dh,$F,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.revealReference(i[0]))}});as.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:se.and(Dh,$F,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!0,!0))}});Xe.registerCommand("openReference",o=>{var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!1,!0))});var a7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ip=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const jN=new le("hasSymbols",!1,p("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),rw=Ye("ISymbolNavigationService");let tx=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=jN.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new ix(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(_5(h.uri,a.uri))c=!0,d=d||L.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=qo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:L.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?p("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):p("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};tx=a7([ip(0,Ee),ip(1,ct),ip(2,di),ip(3,_i)],tx);et(rw,tx,!0);ee(new class extends xi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:jN,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(rw).revealNext(e)}});as.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:jN,primary:9,handler(o){o.get(rw).reset()}});let ix=class{constructor(e){this._listener=new Map,this._disposables=new Q,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),nt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,qo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};ix=a7([ip(0,ct)],ix);var l7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function A_(o,e,t,i){const s=t.ordered(o).map(r=>Promise.resolve(i(r,o,e)).then(void 0,a=>{Pi(a)}));return Promise.all(s).then(r=>{const a=[];for(const l of r)Array.isArray(l)?a.push(...l):l&&a.push(l);return a})}function KN(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function c7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function d7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function h7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function aw(o,e,t,i,n){return A_(e,t,o,(s,r,a)=>l7(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function M_(o){return l7(this,void 0,void 0,function*(){const e=yield o(),t=new ns(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}ia("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=KN(i.definitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=h7(i.typeDefinitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(de),n=c7(i.declarationProvider,e,t,ze.None);return M_(()=>n)});ia("_executeReferenceProvider",(o,e,t)=>{const i=o.get(de),n=aw(i.referenceProvider,e,t,!1,ze.None);return M_(()=>n)});ia("_executeImplementationProvider",(o,e,t)=>{const i=o.get(de),n=d7(i.implementationProvider,e,t,ze.None);return M_(()=>n)});var bo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},uy,gy,fy,py,my,_y,by,vy;qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextPeek,title:p("peek.submenu","Peek"),group:"navigation",order:100});const u7=new Set;function ar(o){const e=new o;return C4(e),u7.add(e.id),e}class Pm{constructor(e,t){this.model=e,this.position=t}static is(e){return!e||typeof e!="object"?!1:!!(e instanceof Pm||B.isIPosition(e.position)&&e.model)}}class vo extends ce{constructor(e,t){super(t),this.configuration=e}run(e,t,i){if(!t.hasModel())return Promise.resolve(void 0);const n=e.get(di),s=e.get(ct),r=e.get(kc),a=e.get(rw),l=e.get(de),c=t.getModel(),d=t.getPosition(),h=Pm.is(i)?i:new Pm(c,d),u=new qd(t,5),g=MI(this._getLocationModel(l,h.model,h.position,u.token),u.token).then(f=>bo(this,void 0,void 0,function*(){var _;if(!f||u.token.isCancellationRequested)return;Gi(f.ariaMessage);let b;if(f.referenceAt(c.uri,d)){const C=this._getAlternativeCommand(t);!vo._activeAlternativeCommands.has(C)&&u7.has(C)&&(b=t.getAction(C))}const v=f.references.length;if(v===0){if(!this.configuration.muteMessage){const C=c.getWordAtPosition(d);(_=os.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(C),d)}}else if(v===1&&b)vo._activeAlternativeCommands.add(this.id),b.run().finally(()=>{vo._activeAlternativeCommands.delete(this.id)});else return this._onResult(s,a,t,f)}),f=>{n.error(f)}).finally(()=>{u.dispose()});return r.showWhile(g,250),g}_onResult(e,t,i,n){return bo(this,void 0,void 0,function*(){const s=this._getGoToPreference(i);if(!(i instanceof Qd)&&(this.configuration.openInPeek||s==="peek"&&n.references.length>1))this._openInPeek(i,n);else{const r=n.firstReference(),a=n.references.length>1&&s==="gotoAndPeek",l=yield this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n):n.dispose(),s==="goto"&&t.put(r)}})}_openReference(e,t,i,n,s){return bo(this,void 0,void 0,function*(){let r;if(aB(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:L.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(!!a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t){const i=mc.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),Ri(n=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}vo._activeAlternativeCommands=new Set;class R_ extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield KN(e.definitionProvider,t,i,n),p("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("noResultWord","No definition found for '{0}'",e.word):p("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleDefinitions}}const g7=Sc&&!II()?2118:70;ar((uy=class nx extends R_{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:nx.id,label:p("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:g7,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),Xe.registerCommandAlias("editor.action.goToDeclaration",nx.id)}},uy.id="editor.action.revealDefinition",uy));ar((gy=class sx extends R_{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:sx.id,label:p("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,g7),weight:100}}),Xe.registerCommandAlias("editor.action.openDeclarationToTheSide",sx.id)}},gy.id="editor.action.revealDefinitionAside",gy));ar((fy=class ox extends R_{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:ox.id,label:p("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:se.and(N.hasDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:2}}),Xe.registerCommandAlias("editor.action.previewDeclaration",ox.id)}},fy.id="editor.action.peekDefinition",fy));class f7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield c7(e.declarationProvider,t,i,n),p("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(53).multipleDeclarations}}ar((py=class p7 extends f7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:p7.id,label:p("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:se.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}},py.id="editor.action.revealDeclaration",py));ar(class extends f7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:p("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:se.and(N.hasDeclarationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:3}})}});class m7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield h7(e.typeDefinitionProvider,t,i,n),p("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):p("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleTypeDefinitions}}ar((my=class _7 extends m7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:_7.ID,label:p("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}},my.ID="editor.action.goToTypeDefinition",my));ar((_y=class b7 extends m7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:b7.ID,label:p("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:4}})}},_y.ID="editor.action.peekTypeDefinition",_y));class v7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield d7(e.implementationProvider,t,i,n),p("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):p("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(53).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(53).multipleImplementations}}ar((by=class C7 extends v7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:C7.ID,label:p("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:se.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}},by.ID="editor.action.goToImplementation",by));ar((vy=class w7 extends v7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:w7.ID,label:p("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:se.and(N.hasImplementationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:5}})}},vy.ID="editor.action.peekImplementation",vy));class S7 extends vo{_getNoResultFoundMessage(e){return e?p("references.no","No references found for '{0}'",e.word):p("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(53).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(53).multipleReferences}}ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:p("goToReferences.label","Go to References"),alias:"Go to References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!0,n),p("ref.title","References"))})}});ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:p("references.action.label","Peek References"),alias:"Peek References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!1,n),p("ref.title","References"))})}});class dse extends vo{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:p("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:se.and(jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(this._references,p("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&p("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(53).multipleReferences}_getAlternativeCommand(){return""}}Xe.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>bo(void 0,void 0,void 0,function*(){pt(_e.isUri(e)),pt(B.isIPosition(t)),pt(Array.isArray(i)),pt(typeof n>"u"||typeof n=="string"),pt(typeof r>"u"||typeof r=="boolean");const a=o.get(ct),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(nl(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends dse{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!Boolean(s),openInPeek:Boolean(r),openToSide:!1},i,n);c.get(Ae).invokeFunction(d.run.bind(d),l)})})});Xe.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>bo(void 0,void 0,void 0,function*(){o.get(ci).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});Xe.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{pt(_e.isUri(e)),pt(B.isIPosition(t));const i=o.get(de),n=o.get(ct);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!nl(s)||!s.hasModel())return;const r=mc.get(s);if(!r)return;const a=Ri(c=>aw(i.referenceProvider,s.getModel(),B.lift(t),!1,c).then(d=>new ns(d,p("ref.title","References")))),l=new L(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});Xe.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");qs.appendMenuItems([{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:p({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:p({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:p({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:p({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:p({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}]);var hse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Cy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xd=class N0{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Q,this.toUnhookForKeyboard=new Q,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new UN(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,Wn(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},a=>{this.removeLinkDecorations(),Te(a)})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(N0.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;const n=new Tm(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Ri(s=>this.findDefinition(e,s)),this.previousPromise.then(s=>{if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}if(s.length>1)this.addDecoration(new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),new Fn().appendText(p("multipleResults","Click to show {0} definitions.",s.length)));else{const r=s[0];if(!r.uri)return;this.textModelResolverService.createModelReference(r.uri).then(a=>{if(!a.object||!a.object.textEditorModel){a.dispose();return}const{object:{textEditorModel:l}}=a,{startLineNumber:c}=r.range;if(c<1||c>l.getLineCount()){a.dispose();return}const d=this.getPreviewValue(l,c,r);let h;r.originSelectionRange?h=L.lift(r.originSelectionRange):h=new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const u=this.languageService.guessLanguageIdByFilepathOrFirstLine(l.uri);this.addDecoration(h,new Fn().appendCodeblock(u||"",d)),a.dispose()})}}).then(void 0,Te)}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=N0.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(80)&&!this.isInPeekEditor(i);return new R_({openToSide:t,openInPeek:n,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(i,this.editor)})}isInPeekEditor(e){const t=e.get(Ee);return jn.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};Xd.ID="editor.contrib.gotodefinitionatposition";Xd.MAX_SOURCE_PREVIEW_LINES=8;Xd=hse([Cy(1,Kn),Cy(2,Ht),Cy(3,de)],Xd);tt(Xd.ID,Xd);Et((o,e)=>{const t=o.getColor(lE);t&&e.addRule(`.monaco-editor .goto-definition-link { color: ${t} !important; }`)});const zb=J;class y7 extends H{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new p_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class qN extends H{constructor(e,t,i){super(),this.actionContainer=q(e,zb("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,zb("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,zb(`span.icon.${t.iconClass}`));const n=q(this.action,zb("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(G(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(G(this.actionContainer,ae.KEY_UP,s=>{new Rt(s).equals(3)&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}static render(e,t,i){return new qN(e,t,i)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var use=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},gse=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class fse{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class L7 extends H{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new R),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new mt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new mt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new mt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(55).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=TW(e=>this._computer.computeAsync(e)),use(this,void 0,void 0,function*(){var e,t;try{try{for(var i=gse(this._asyncIterable),n;n=yield i.next(),!n.done;){const s=n.value;s&&(this._result.push(s),this._fireResult())}}catch(s){e={error:s}}finally{try{n&&!n.done&&(t=i.return)&&(yield t.call(i))}finally{if(e)throw e.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(s){Te(s)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new fse(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class wy{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class T0{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const xh=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ho{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ho._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ho.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ho.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ho.isVariableCharacter(i)||ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ho._table[i]>"u"&&!ho.isDigitCharacter(i)&&!ho.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ho._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13};class tf{constructor(){this._children=[]}appendChild(e){return e instanceof Bn&&this._children[this._children.length-1]instanceof Bn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof O_)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Bn extends tf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Bn(this.value)}}class D7 extends tf{}class go extends D7{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof nf?this._children[0]:void 0}clone(){const e=new go(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class nf extends tf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Bn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new nf;return this.options.forEach(e.appendChild,e),e}}class GN extends tf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Mo&&Boolean(s.elseValue))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Mo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new GN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Mo extends tf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(e)&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Mo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Fm extends D7{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Bn(t)],!0):!1}clone(){const e=new Fm(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function yR(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class O_ extends tf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof go&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return yR([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof go&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Fm&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new O_;return this._children=this.children.map(t=>t.clone()),e}walk(e){yR(this.children,e)}}class _c{constructor(){this._scanner=new ho,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new O_;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i!=null?i:!1,t!=null?t:!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(r=>(r instanceof go&&(r.isFinalTabstop?n.set(0,void 0):!n.has(r.index)&&r.children.length>0?n.set(r.index,r.children):s.push(r)),!0));for(const r of s){const a=n.get(r.index);if(a){const l=new go(r.index);l.transform=r.transform;for(const c of a)l.appendChild(c.clone());t.replace(r,[l])}}return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new go(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Bn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new go(Number(t)):new Fm(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new go(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new nf;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Bn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new Fm(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new GN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Bn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Mo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Mo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Mo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Mo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Bn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const pse=p("defaultLabel","input"),mse=p("label.preserveCaseToggle","Preserve Case");class _se extends y_{constructor(e){super({icon:m.preserveCase,title:mse+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class bse extends yo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onPreserveCaseKeyDown=this._register(new R),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||pse,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new yF(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c})),this.preserveCase=this._register(new _se({appendTitle:s,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let f=-1;u.equals(17)?f=(g+1)%d.length:u.equals(15)&&(g===0?f=d.length-1:f=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):f>=0&&d[f].focus(),ut.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var k7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},x7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ZN=new le("suggestWidgetVisible",!1,p("suggestWidgetVisible","Whether suggestion are visible")),YN="historyNavigationWidgetFocus",I7="historyNavigationForwardsEnabled",E7="historyNavigationBackwardsEnabled";let Ld;const Ub=[];function N7(o,e){if(Ub.includes(e))throw new Error("Cannot register the same widget multiple times");Ub.push(e);const t=new Q,i=t.add(o.createScoped(e.element)),n=new le(YN,!1).bindTo(i),s=new le(I7,!0).bindTo(i),r=new le(E7,!0).bindTo(i),a=()=>{n.set(!0),Ld=e},l=()=>{n.set(!1),Ld===e&&(Ld=void 0)};return e.element===document.activeElement&&a(),t.add(e.onDidFocus(()=>a())),t.add(e.onDidBlur(()=>l())),t.add(Be(()=>{Ub.splice(Ub.indexOf(e),1),l()})),{scopedContextKeyService:i,historyNavigationForwardsEnablement:s,historyNavigationBackwardsEnablement:r,dispose(){t.dispose()}}}let rx=class extends bX{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};rx=k7([x7(3,Ee)],rx);let ax=class extends bse{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};ax=k7([x7(3,Ee)],ax);as.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:se.and(se.has(YN),se.equals(E7,!0),ZN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{Ld&&Ld.showPreviousValue()}});as.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:se.and(se.has(YN),se.equals(I7,!0),ZN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{Ld&&Ld.showNextValue()}});var Ep=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ke={Visible:ZN,HasFocusedSuggestion:new le("suggestWidgetHasFocusedSuggestion",!1,p("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new le("suggestWidgetDetailsVisible",!1,p("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new le("suggestWidgetMultipleSuggestions",!1,p("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new le("suggestionMakesTextEdit",!0,p("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new le("acceptSuggestionOnEnter",!0,p("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new le("suggestionHasInsertAndReplaceRange",!1,p("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new le("suggestionInsertMode",void 0,{type:"string",description:p("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new le("suggestionCanResolve",!1,p("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Ql=new M("suggestWidgetStatusBar");class vse{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=Zo.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,L.isIRange(t.range)?(this.editStart=new B(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new B(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new B(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new B(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new B(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new B(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range.insert)||L.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return Ep(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{ea(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class Bm{constructor(e=2,t=new Set,i=new Set,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=n}}Bm.default=new Bm;let Cse;function wse(){return Cse}class Sse{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function QN(o,e,t,i=Bm.default,n={triggerKind:0},s=ze.None){return Ep(this,void 0,void 0,function*(){const r=new $n(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new L(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):L.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Q,u=[];let g=!1;const f=(b,v,C)=>{var w,S,k;let x=!1;if(!v)return x;for(const y of v.suggestions)if(!i.kindFilter.has(y.kind)){if(!i.showDeprecated&&((w=y==null?void 0:y.tags)===null||w===void 0?void 0:w.includes(1)))continue;y.range||(y.range=c),y.sortText||(y.sortText=typeof y.label=="string"?y.label:y.label.label),!g&&y.insertTextRules&&y.insertTextRules&4&&(g=_c.guessNeedsClipboard(y.insertText)),d.push(new vse(t,y,v,b)),x=!0}return hI(v)&&h.add(v),u.push({providerName:(S=b._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(k=v.duration)!==null&&k!==void 0?k:-1,elapsedOverall:C.elapsed()}),x},_=(()=>Ep(this,void 0,void 0,function*(){}))();for(const b of o.orderedGroups(e)){let v=!1;if(yield Promise.all(b.map(C=>Ep(this,void 0,void 0,function*(){if(!(i.providerFilter.size>0&&!i.providerFilter.has(C)))try{const w=new $n(!0),S=yield C.provideCompletionItems(e,t,n,s);v=f(C,S,w)||v}catch(w){Pi(w)}}))),v||s.isCancellationRequested)break}return yield _,s.isCancellationRequested?(h.dispose(),Promise.reject(new yc)):new Sse(d.sort(T7(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function XN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function yse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return XN(o,e)}function Lse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return XN(o,e)}const lw=new Map;lw.set(0,yse);lw.set(2,Lse);lw.set(1,XN);function T7(o){return lw.get(o)}Xe.registerCommand("_executeCompletionItemProvider",(o,...e)=>Ep(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string"||!n),pt(typeof s=="number"||!s);const{completionProvider:r}=o.get(de),a=yield o.get(Kn).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield QN(r,a.object.textEditorModel,B.lift(i),void 0,{triggerCharacter:n,triggerKind:n?1:0});for(const h of d.items)c.length<(s!=null?s:0)&&c.push(h.resolve(ze.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function Dse(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class ku{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var JN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const LR=J;let mC=class lx extends H{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(Dd,this._editor)),this._isChangingDecorations=!1,this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const n of xh.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new _C(this._editor,this._participants),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value,n.isComplete,n.hasLoadingMessage)})),this._register(this._editor.onDidChangeModelDecorations(()=>{this._isChangingDecorations||this._onModelDecorationsChanged()})),this._register(ki(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Wt.onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new wy(0,i.range)),i.type===7){const n=this._editor.getOption(46).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingAt(t[0],0,!1),!0)}startShowingAtRange(e,t,i){this._startShowingAt(new wy(0,e),t,i)}_startShowingAt(e,t,i){if(!(this._computer.anchor&&this._computer.anchor.equals(e))){if(this._hoverOperation.cancel(),this._widget.position)if(!this._computer.anchor||!e.canAdoptVisibleHover(this._computer.anchor,this._widget.position))this.hide();else{const n=this._messages.filter(s=>s.isValidForHoverAnchor(e));if(n.length===0)this.hide();else{if(n.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,n)}}this._computer.anchor=e,this._computer.shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e,t,i){this._messages=i?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}_renderMessages(e,t){const{showAtPosition:i,showAtRange:n,highlightRange:s}=lx.computeHoverRanges(e.range,t),r=new Q,a=r.add(new cx(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const h of this._participants){const u=t.filter(g=>g.owner===h);u.length>0&&r.add(h.renderHoverParts(d,u))}if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const h=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,h.set([{range:s,options:lx._DECORATION_OPTIONS}])}finally{this._isChangingDecorations=!1}r.add(Be(()=>{try{this._isChangingDecorations=!0,h.clear()}finally{this._isChangingDecorations=!1}}))}this._widget.showAt(l,new kse(c,i,n,this._editor.getOption(55).above,this._computer.shouldFocus,r))}else r.dispose()}static computeHoverRanges(e,t){const i=e.startLineNumber;let n=e.startColumn,s=e.endColumn,r=t[0].range,a=null;for(const l of t)r=L.plusRange(r,l.range),l.range.startLineNumber===i&&l.range.endLineNumber===i&&(n=Math.min(n,l.range.startColumn),s=Math.max(s,l.range.endColumn)),l.forceShowAtRange&&(a=l.range);return{showAtPosition:a?a.getStartPosition():new B(e.startLineNumber,n),showAtRange:a||new L(i,n,i,s),highlightRange:r}}};mC._DECORATION_OPTIONS=Ne.register({description:"content-hover-highlight",className:"hoverHighlight"});mC=JN([pC(1,Ae),pC(2,_i)],mC);class kse{constructor(e,t,i,n,s,r){this.colorPicker=e,this.showAtPosition=t,this.showAtRange=i,this.preferAbove=n,this.stoleFocus=s,this.disposables=r}}let Dd=class A7 extends H{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new y7),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(46)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return Boolean((e=this._visibleData)===null||e===void 0?void 0:e.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return A7.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(Ke.Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(46);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};Dd.ID="editor.contrib.contentHoverWidget";Dd=JN([pC(1,Ee)],Dd);let cx=class extends H{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=LR("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,LR("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(qN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};cx=JN([pC(0,_i)],cx);class _C{constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}static _getLineDecorations(e,t){if(t.type!==1)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return ri.EMPTY;const i=_C._getLineDecorations(this._editor,t);return ri.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):ri.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=_C._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return i_(t)}}let M7={};(function(){function o(e,t){t(M7)}o.amd=!0,function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof o=="function"&&o.amd?o(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.marked={}))}(this,function(e){function t(Z,U){for(var $=0;$Z.length)&&(U=Z.length);for(var $=0,E=new Array(U);$=Z.length?{done:!0}:{done:!1,value:Z[E++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults=a();function l(Z){e.defaults=Z}var c=/[&<>"']/,d=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,g={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(U){return g[U]};function _(Z,U){if(U){if(c.test(Z))return Z.replace(d,f)}else if(h.test(Z))return Z.replace(u,f);return Z}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(Z){return Z.replace(b,function(U,$){return $=$.toLowerCase(),$==="colon"?":":$.charAt(0)==="#"?$.charAt(1)==="x"?String.fromCharCode(parseInt($.substring(2),16)):String.fromCharCode(+$.substring(1)):""})}var C=/(^|[^\[])\^/g;function w(Z,U){Z=typeof Z=="string"?Z:Z.source,U=U||"";var $={replace:function(A,V){return V=V.source||V,V=V.replace(C,"$1"),Z=Z.replace(A,V),$},getRegex:function(){return new RegExp(Z,U)}};return $}var S=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(Z,U,$){if(Z){var E;try{E=decodeURIComponent(v($)).replace(S,"").toLowerCase()}catch{return null}if(E.indexOf("javascript:")===0||E.indexOf("vbscript:")===0||E.indexOf("data:")===0)return null}U&&!k.test($)&&($=F(U,$));try{$=encodeURI($).replace(/%25/g,"%")}catch{return null}return $}var y={},D=/^[^:]+:\/*[^/]*$/,I=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function F(Z,U){y[" "+Z]||(D.test(Z)?y[" "+Z]=Z+"/":y[" "+Z]=he(Z,"/",!0)),Z=y[" "+Z];var $=Z.indexOf(":")===-1;return U.substring(0,2)==="//"?$?U:Z.replace(I,"$1")+U:U.charAt(0)==="/"?$?U:Z.replace(O,"$1")+U:Z+U}var z={exec:function(){}};function j(Z){for(var U=1,$,E;U=0&&Y[De]==="\\";)ne=!ne;return ne?"|":" |"}),E=$.split(/ \|/),A=0;if(E[0].trim()||E.shift(),E.length>0&&!E[E.length-1].trim()&&E.pop(),E.length>U)E.splice(U);else for(;E.length1;)U&1&&($+=Z),U>>=1,Z+=Z;return $+Z}function He(Z,U,$,E){var A=U.href,V=U.title?_(U.title):null,P=Z[1].replace(/\\([\[\]])/g,"$1");if(Z[0].charAt(0)!=="!"){E.state.inLink=!0;var Y={type:"link",raw:$,href:A,title:V,text:P,tokens:E.inlineTokens(P,[])};return E.state.inLink=!1,Y}return{type:"image",raw:$,href:A,title:V,text:_(P)}}function Mt(Z,U){var $=Z.match(/^(\s+)(?:```)/);if($===null)return U;var E=$[1];return U.split(` `).map(function(A){var V=A.match(/^\s+/);if(V===null)return A;var P=V[0];return P.length>=E.length?A.slice(E.length):A}).join(` `)}var yt=function(){function Z($){this.options=$||e.defaults}var U=Z.prototype;return U.space=function(E){var A=this.rules.block.newline.exec(E);if(A&&A[0].length>0)return{type:"space",raw:A[0]}},U.code=function(E){var A=this.rules.block.code.exec(E);if(A){var V=A[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:A[0],codeBlockStyle:"indented",text:this.options.pedantic?V:he(V,` @@ -688,7 +688,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)},U.strong=function(E){return""+E+""},U.em=function(E){return""+E+""},U.codespan=function(E){return""+E+""},U.br=function(){return this.options.xhtml?"
":"
"},U.del=function(E){return""+E+""},U.link=function(E,A,V){if(E=x(this.options.sanitize,this.options.baseUrl,E),E===null)return V;var P='",P},U.image=function(E,A,V){if(E=x(this.options.sanitize,this.options.baseUrl,E),E===null)return V;var P=''+V+'":">",P},U.text=function(E){return E},Z}(),oa=function(){function Z(){}var U=Z.prototype;return U.strong=function(E){return E},U.em=function(E){return E},U.codespan=function(E){return E},U.del=function(E){return E},U.html=function(E){return E},U.text=function(E){return E},U.link=function(E,A,V){return""+V},U.image=function(E,A,V){return""+V},U.br=function(){return""},Z}(),xo=function(){function Z(){this.seen={}}var U=Z.prototype;return U.serialize=function(E){return E.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},U.getNextSafeSlug=function(E,A){var V=E,P=0;if(this.seen.hasOwnProperty(V)){P=this.seen[E];do P++,V=E+"-"+P;while(this.seen.hasOwnProperty(V))}return A||(this.seen[E]=P,this.seen[V]=0),V},U.slug=function(E,A){A===void 0&&(A={});var V=this.serialize(E);return this.getNextSafeSlug(V,A.dryrun)},Z}(),cr=function(){function Z($){this.options=$||e.defaults,this.options.renderer=this.options.renderer||new ko,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new oa,this.slugger=new xo}Z.parse=function(E,A){var V=new Z(A);return V.parse(E)},Z.parseInline=function(E,A){var V=new Z(A);return V.parseInline(E)};var U=Z.prototype;return U.parse=function(E,A){A===void 0&&(A=!0);var V="",P,Y,ne,De,Ce,Ve,Fe,wt,dt,ke,bi,Jt,Ns,jt,Bi,Rc,cs,dr,ra,Oc=E.length;for(P=0;P0&&Bi.tokens[0].type==="paragraph"?(Bi.tokens[0].text=dr+" "+Bi.tokens[0].text,Bi.tokens[0].tokens&&Bi.tokens[0].tokens.length>0&&Bi.tokens[0].tokens[0].type==="text"&&(Bi.tokens[0].tokens[0].text=dr+" "+Bi.tokens[0].tokens[0].text)):Bi.tokens.unshift({type:"text",text:dr}):jt+=dr),jt+=this.parse(Bi.tokens,Ns),dt+=this.renderer.listitem(jt,cs,Rc);V+=this.renderer.list(dt,bi,Jt);continue}case"html":{V+=this.renderer.html(ke.text);continue}case"paragraph":{V+=this.renderer.paragraph(this.parseInline(ke.tokens));continue}case"text":{for(dt=ke.tokens?this.parseInline(ke.tokens):ke.text;P+1"u"||Z===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Z!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Z)+", string expected");if(typeof U=="function"&&($=U,U=null),U=j({},Pe.defaults,U||{}),ye(U),$){var E=U.highlight,A;try{A=In.lex(Z,U)}catch(ne){return $(ne)}var V=function(De){var Ce;if(!De)try{U.walkTokens&&Pe.walkTokens(A,U.walkTokens),Ce=cr.parse(A,U)}catch(Ve){De=Ve}return U.highlight=E,De?$(De):$(null,Ce)};if(!E||E.length<3||(delete U.highlight,!A.length))return V();var P=0;Pe.walkTokens(A,function(ne){ne.type==="code"&&(P++,setTimeout(function(){E(ne.text,ne.lang,function(De,Ce){if(De)return V(De);Ce!=null&&Ce!==ne.text&&(ne.text=Ce,ne.escaped=!0),P--,P===0&&V()})},0))}),P===0&&V();return}try{var Y=In.lex(Z,U);return U.walkTokens&&Pe.walkTokens(Y,U.walkTokens),cr.parse(Y,U)}catch(ne){if(ne.message+=` Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An error occurred:

"+_(ne.message+"",!0)+"
";throw ne}}Pe.options=Pe.setOptions=function(Z){return j(Pe.defaults,Z),l(Pe.defaults),Pe},Pe.getDefaults=a,Pe.defaults=e.defaults,Pe.use=function(){for(var Z=arguments.length,U=new Array(Z),$=0;$"u"||Z===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Z!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Z)+", string expected");U=j({},Pe.defaults,U||{}),ye(U);try{var $=In.lexInline(Z,U);return U.walkTokens&&Pe.walkTokens($,U.walkTokens),cr.parseInline($,U)}catch(E){if(E.message+=` -Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An error occurred:

"+_(E.message+"",!0)+"
";throw E}},Pe.Parser=cr,Pe.parser=cr.parse,Pe.Renderer=ko,Pe.TextRenderer=oa,Pe.Lexer=In,Pe.lexer=In.lex,Pe.Tokenizer=yt,Pe.Slugger=xo,Pe.parse=Pe;var hl=Pe.options,df=Pe.setOptions,hf=Pe.use,ul=Pe.walkTokens,Ih=Pe.parseInline,U_=Pe,Eh=cr.parse,$_=In.lex;e.Lexer=In,e.Parser=cr,e.Renderer=ko,e.Slugger=xo,e.TextRenderer=oa,e.Tokenizer=yt,e.getDefaults=a,e.lexer=$_,e.marked=Pe,e.options=hl,e.parse=U_,e.parseInline=Ih,e.parser=Eh,e.setOptions=df,e.use=hf,e.walkTokens=ul,Object.defineProperty(e,"__esModule",{value:!0})})})();var DR=M7||exports;function xse(o,e={},t={}){var i;const n=new Q;let s=!1;const r=sN(e),a=function(_){let b;try{b=Qv(decodeURIComponent(_))}catch{}return b?(b=qO(b,v=>{if(o.uris&&o.uris[v])return _e.revive(o.uris[v])}),encodeURIComponent(JSON.stringify(b))):_},l=function(_,b){const v=o.uris&&o.uris[_];let C=_e.revive(v);return b?_.startsWith(Me.data+":")?_:(C||(C=_e.parse(_)),e4.asBrowserUri(C).toString(!0)):!C||_e.parse(_).toString()===C.toString()?_:(C.query&&(C=C.with({query:a(C.query)})),C.toString())},c=new DR.Renderer;c.image=(_,b,v)=>{let C=[],w=[];return _&&({href:_,dimensions:C}=_Z(_),w.push(`src="${kb(_)}"`)),v&&w.push(`alt="${kb(v)}"`),b&&w.push(`title="${kb(b)}"`),C.length&&(w=w.concat(C)),""},c.link=(_,b,v)=>typeof _!="string"?"":(_===v&&(v=MS(v)),b=typeof b=="string"?kb(MS(b)):"",_=MS(_),_=_.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
${v}`),c.paragraph=_=>`

${_}

`;const d=[];if(e.codeBlockRenderer&&(c.code=(_,b)=>{const v=v5.nextId(),C=e.codeBlockRenderer(b!=null?b:"",_);return d.push(C.then(w=>[v,w])),`
${_I(_)}
`}),e.actionHandler){const _=e.actionHandler.disposables.add(new bt(r,"click")),b=e.actionHandler.disposables.add(new bt(r,"auxclick"));e.actionHandler.disposables.add(ge.any(_.event,b.event)(v=>{const C=new Mr(v);if(!C.leftButton&&!C.middleButton)return;let w=C.target;if(!(w.tagName!=="A"&&(w=w.parentElement,!w||w.tagName!=="A")))try{let S=w.dataset.href;S&&(o.baseUri&&(S=Sy(_e.from(o.baseUri),S)),e.actionHandler.callback(S,C))}catch(S){Te(S)}finally{C.preventDefault()}}))}o.supportHtml||(t.sanitizer=_=>(o.isTrusted?_.match(/^(]+>)|(<\/\s*span>)$/):void 0)?_:"",t.sanitize=!0,t.silent=!0),t.renderer=c;let h=(i=o.value)!==null&&i!==void 0?i:"";h.length>1e5&&(h=`${h.substr(0,1e5)}\u2026`),o.supportThemeIcons&&(h=gZ(h));let u=DR.parse(h,t);o.supportThemeIcons&&(u=wd(u).map(b=>typeof b=="string"?b:b.outerHTML).join(""));const f=new DOMParser().parseFromString(kR(o,u),"text/html");if(f.body.querySelectorAll("img").forEach(_=>{const b=_.getAttribute("src");if(b){let v=b;try{o.baseUri&&(v=Sy(_e.from(o.baseUri),v))}catch{}_.src=l(v,!0)}}),f.body.querySelectorAll("a").forEach(_=>{const b=_.getAttribute("href");if(_.setAttribute("href",""),!b||/^data:|javascript:/i.test(b)||/^command:/i.test(b)&&!o.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(b))_.replaceWith(..._.childNodes);else{let v=l(b,!1);o.baseUri&&(v=Sy(_e.from(o.baseUri),b)),_.dataset.href=v}}),r.innerHTML=kR(o,f.body.innerHTML),d.length>0&&Promise.all(d).then(_=>{var b,v;if(s)return;const C=new Map(_),w=r.querySelectorAll("div[data-code]");for(const S of w){const k=C.get((b=S.dataset.code)!==null&&b!==void 0?b:"");k&&oc(S,k)}(v=e.asyncRenderCallback)===null||v===void 0||v.call(e)}),e.asyncRenderCallback)for(const _ of r.getElementsByTagName("img")){const b=n.add(G(_,"load",()=>{b.dispose(),e.asyncRenderCallback()}))}return{element:r,dispose:()=>{s=!0,n.dispose()}}}function Sy(o,e){return/^\w[\w\d+.-]*:/.test(e)?e:o.path.endsWith("/")?fA(o,e).toString():fA(L1(o),e).toString()}function kR(o,e){const{config:t,allowedSchemes:i}=Ise(o);QP("uponSanitizeAttribute",(s,r)=>{if(r.attrName==="style"||r.attrName==="class"){if(s.tagName==="SPAN"){if(r.attrName==="style"){r.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(r.attrValue);return}else if(r.attrName==="class"){r.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(r.attrValue);return}}r.keepAttr=!1;return}});const n=HH(i);try{return LH(e,Object.assign(Object.assign({},t),{RETURN_TRUSTED_TYPE:!0}))}finally{XP("uponSanitizeAttribute"),n.dispose()}}function Ise(o){const e=[Me.http,Me.https,Me.mailto,Me.data,Me.file,Me.vscodeFileResource,Me.vscodeRemote,Me.vscodeRemoteResource];return o.isTrusted&&e.push(Me.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:e}}var Ese=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xR=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Nse=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},yy;let ol=class R7{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new R,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Q;return{element:n.add(xse(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>Nse(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Ks);const c=yield eG(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=R7._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(46);an(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>this._openerService.open(i,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:e.isTrusted}).catch(Te),disposables:t}}}};ol._ttpTokenizer=(yy=window.trustedTypes)===null||yy===void 0?void 0:yy.createPolicy("tokenizeToString",{createHTML(o){return o}});ol=Ese([xR(1,Ht),xR(2,io)],ol);const IR=J;class Zu extends H{constructor(e,t,i=YZ){super(),this._renderDisposeables=this._register(new Q),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new y7),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new ol({editor:this._editor},t,i)),this._computer=new Tse(this._editor),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(46)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Zu.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=IR("div.hover-row.markdown-hover"),r=q(s,IR("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(61),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}Zu.ID="editor.contrib.modesGlyphHoverWidget";class Tse{constructor(e){this._editor=e,this._lineNumber=-1}get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||_g(s)||i.push(...lI(s).map(e))}return i}}var Ase=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Mse{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Rse(o,e,t,i,n){return Ase(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Pse(s))return new Mse(o,s,e)}catch(s){Pi(s)}})}function eT(o,e,t,i){const s=o.ordered(e).map((r,a)=>Rse(r,a,e,t,i));return ri.fromPromises(s).coalesce()}function Ose(o,e,t,i){return eT(o,e,t,i).map(n=>n.hover).toPromise()}ia("_executeHoverProvider",(o,e,t)=>{const i=o.get(de);return Ose(i.hoverProvider,e,t,ze.None)});function Pse(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Fse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$b=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ER=J;class Tr{constructor(e,t,i,n){this.owner=e,this.range=t,this.contents=i,this.ordinal=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let bC=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new Tr(this,e.range,[new Fn().appendText(p("modesContentHover.loading","Loading..."))],2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});typeof d=="number"&&l>=d&&r.push(new Tr(this,e.range,[{value:p("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],a++));for(const h of t){const u=h.range.startLineNumber===n?h.range.startColumn:1,g=h.range.endLineNumber===n?h.range.endColumn:s,f=h.options.hoverMessage;if(!f||_g(f))continue;const _=new L(e.range.startLineNumber,u,e.range.startLineNumber,g);r.push(new Tr(this,_,lI(f),a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return ri.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return ri.EMPTY;const s=new B(e.range.startLineNumber,e.range.startColumn);return eT(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!_g(r.hover.contents)).map(r=>{const a=r.hover.range?L.lift(r.hover.range):e.range;return new Tr(this,a,r.hover.contents,r.ordinal)})}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};bC=Fse([$b(1,Ht),$b(2,io),$b(3,ot),$b(4,de)],bC);function O7(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Q;for(const r of e)for(const a of r.contents){if(_g(a))continue;const l=ER("div.hover-row.markdown-hover"),c=q(l,ER("div.hover-contents")),d=s.add(new ol({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var P7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class NR{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let dx=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._dispoables=new Q,this._markers=[],this._nextIdx=-1,_e.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Bp(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=L.compareRangesUsingStarts(a,l)||Vt.compare(a.severity,l.severity):c=Vt.compare(a.severity,l.severity)||L.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:_e.isUri(e)?e:void 0,severities:Vt.Error|Vt.Warning|Vt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new NR(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=aI(this._markers,{resource:e.uri},(r,a)=>Bp(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i{const t=o.getColor(RU);if(t){const s=m.error.cssSelector;e.addRule(` +Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An error occurred:

"+_(E.message+"",!0)+"
";throw E}},Pe.Parser=cr,Pe.parser=cr.parse,Pe.Renderer=ko,Pe.TextRenderer=oa,Pe.Lexer=In,Pe.lexer=In.lex,Pe.Tokenizer=yt,Pe.Slugger=xo,Pe.parse=Pe;var hl=Pe.options,df=Pe.setOptions,hf=Pe.use,ul=Pe.walkTokens,Ih=Pe.parseInline,U_=Pe,Eh=cr.parse,$_=In.lex;e.Lexer=In,e.Parser=cr,e.Renderer=ko,e.Slugger=xo,e.TextRenderer=oa,e.Tokenizer=yt,e.getDefaults=a,e.lexer=$_,e.marked=Pe,e.options=hl,e.parse=U_,e.parseInline=Ih,e.parser=Eh,e.setOptions=df,e.use=hf,e.walkTokens=ul,Object.defineProperty(e,"__esModule",{value:!0})})})();var DR=M7||exports;function xse(o,e={},t={}){var i;const n=new Q;let s=!1;const r=sN(e),a=function(_){let b;try{b=Qv(decodeURIComponent(_))}catch{}return b?(b=qO(b,v=>{if(o.uris&&o.uris[v])return _e.revive(o.uris[v])}),encodeURIComponent(JSON.stringify(b))):_},l=function(_,b){const v=o.uris&&o.uris[_];let C=_e.revive(v);return b?_.startsWith(Me.data+":")?_:(C||(C=_e.parse(_)),e4.asBrowserUri(C).toString(!0)):!C||_e.parse(_).toString()===C.toString()?_:(C.query&&(C=C.with({query:a(C.query)})),C.toString())},c=new DR.Renderer;c.image=(_,b,v)=>{let C=[],w=[];return _&&({href:_,dimensions:C}=_Z(_),w.push(`src="${kb(_)}"`)),v&&w.push(`alt="${kb(v)}"`),b&&w.push(`title="${kb(b)}"`),C.length&&(w=w.concat(C)),""},c.link=(_,b,v)=>typeof _!="string"?"":(_===v&&(v=MS(v)),b=typeof b=="string"?kb(MS(b)):"",_=MS(_),_=_.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`${v}`),c.paragraph=_=>`

${_}

`;const d=[];if(e.codeBlockRenderer&&(c.code=(_,b)=>{const v=vF.nextId(),C=e.codeBlockRenderer(b!=null?b:"",_);return d.push(C.then(w=>[v,w])),`
${_I(_)}
`}),e.actionHandler){const _=e.actionHandler.disposables.add(new bt(r,"click")),b=e.actionHandler.disposables.add(new bt(r,"auxclick"));e.actionHandler.disposables.add(ge.any(_.event,b.event)(v=>{const C=new Mr(v);if(!C.leftButton&&!C.middleButton)return;let w=C.target;if(!(w.tagName!=="A"&&(w=w.parentElement,!w||w.tagName!=="A")))try{let S=w.dataset.href;S&&(o.baseUri&&(S=Sy(_e.from(o.baseUri),S)),e.actionHandler.callback(S,C))}catch(S){Te(S)}finally{C.preventDefault()}}))}o.supportHtml||(t.sanitizer=_=>(o.isTrusted?_.match(/^(]+>)|(<\/\s*span>)$/):void 0)?_:"",t.sanitize=!0,t.silent=!0),t.renderer=c;let h=(i=o.value)!==null&&i!==void 0?i:"";h.length>1e5&&(h=`${h.substr(0,1e5)}\u2026`),o.supportThemeIcons&&(h=gZ(h));let u=DR.parse(h,t);o.supportThemeIcons&&(u=wd(u).map(b=>typeof b=="string"?b:b.outerHTML).join(""));const f=new DOMParser().parseFromString(kR(o,u),"text/html");if(f.body.querySelectorAll("img").forEach(_=>{const b=_.getAttribute("src");if(b){let v=b;try{o.baseUri&&(v=Sy(_e.from(o.baseUri),v))}catch{}_.src=l(v,!0)}}),f.body.querySelectorAll("a").forEach(_=>{const b=_.getAttribute("href");if(_.setAttribute("href",""),!b||/^data:|javascript:/i.test(b)||/^command:/i.test(b)&&!o.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(b))_.replaceWith(..._.childNodes);else{let v=l(b,!1);o.baseUri&&(v=Sy(_e.from(o.baseUri),b)),_.dataset.href=v}}),r.innerHTML=kR(o,f.body.innerHTML),d.length>0&&Promise.all(d).then(_=>{var b,v;if(s)return;const C=new Map(_),w=r.querySelectorAll("div[data-code]");for(const S of w){const k=C.get((b=S.dataset.code)!==null&&b!==void 0?b:"");k&&oc(S,k)}(v=e.asyncRenderCallback)===null||v===void 0||v.call(e)}),e.asyncRenderCallback)for(const _ of r.getElementsByTagName("img")){const b=n.add(G(_,"load",()=>{b.dispose(),e.asyncRenderCallback()}))}return{element:r,dispose:()=>{s=!0,n.dispose()}}}function Sy(o,e){return/^\w[\w\d+.-]*:/.test(e)?e:o.path.endsWith("/")?fA(o,e).toString():fA(L1(o),e).toString()}function kR(o,e){const{config:t,allowedSchemes:i}=Ise(o);QP("uponSanitizeAttribute",(s,r)=>{if(r.attrName==="style"||r.attrName==="class"){if(s.tagName==="SPAN"){if(r.attrName==="style"){r.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(r.attrValue);return}else if(r.attrName==="class"){r.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(r.attrValue);return}}r.keepAttr=!1;return}});const n=HH(i);try{return LH(e,Object.assign(Object.assign({},t),{RETURN_TRUSTED_TYPE:!0}))}finally{XP("uponSanitizeAttribute"),n.dispose()}}function Ise(o){const e=[Me.http,Me.https,Me.mailto,Me.data,Me.file,Me.vscodeFileResource,Me.vscodeRemote,Me.vscodeRemoteResource];return o.isTrusted&&e.push(Me.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:e}}var Ese=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xR=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Nse=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},yy;let ol=class R7{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new R,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Q;return{element:n.add(xse(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>Nse(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Ks);const c=yield eG(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=R7._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(46);an(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>this._openerService.open(i,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:e.isTrusted}).catch(Te),disposables:t}}}};ol._ttpTokenizer=(yy=window.trustedTypes)===null||yy===void 0?void 0:yy.createPolicy("tokenizeToString",{createHTML(o){return o}});ol=Ese([xR(1,Ht),xR(2,io)],ol);const IR=J;class Zu extends H{constructor(e,t,i=YZ){super(),this._renderDisposeables=this._register(new Q),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new y7),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new ol({editor:this._editor},t,i)),this._computer=new Tse(this._editor),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(46)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Zu.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=IR("div.hover-row.markdown-hover"),r=q(s,IR("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(61),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}Zu.ID="editor.contrib.modesGlyphHoverWidget";class Tse{constructor(e){this._editor=e,this._lineNumber=-1}get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||_g(s)||i.push(...lI(s).map(e))}return i}}var Ase=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Mse{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Rse(o,e,t,i,n){return Ase(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Pse(s))return new Mse(o,s,e)}catch(s){Pi(s)}})}function eT(o,e,t,i){const s=o.ordered(e).map((r,a)=>Rse(r,a,e,t,i));return ri.fromPromises(s).coalesce()}function Ose(o,e,t,i){return eT(o,e,t,i).map(n=>n.hover).toPromise()}ia("_executeHoverProvider",(o,e,t)=>{const i=o.get(de);return Ose(i.hoverProvider,e,t,ze.None)});function Pse(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Fse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$b=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ER=J;class Tr{constructor(e,t,i,n){this.owner=e,this.range=t,this.contents=i,this.ordinal=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let bC=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new Tr(this,e.range,[new Fn().appendText(p("modesContentHover.loading","Loading..."))],2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});typeof d=="number"&&l>=d&&r.push(new Tr(this,e.range,[{value:p("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],a++));for(const h of t){const u=h.range.startLineNumber===n?h.range.startColumn:1,g=h.range.endLineNumber===n?h.range.endColumn:s,f=h.options.hoverMessage;if(!f||_g(f))continue;const _=new L(e.range.startLineNumber,u,e.range.startLineNumber,g);r.push(new Tr(this,_,lI(f),a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return ri.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return ri.EMPTY;const s=new B(e.range.startLineNumber,e.range.startColumn);return eT(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!_g(r.hover.contents)).map(r=>{const a=r.hover.range?L.lift(r.hover.range):e.range;return new Tr(this,a,r.hover.contents,r.ordinal)})}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};bC=Fse([$b(1,Ht),$b(2,io),$b(3,ot),$b(4,de)],bC);function O7(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Q;for(const r of e)for(const a of r.contents){if(_g(a))continue;const l=ER("div.hover-row.markdown-hover"),c=q(l,ER("div.hover-contents")),d=s.add(new ol({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var P7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class NR{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let dx=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._dispoables=new Q,this._markers=[],this._nextIdx=-1,_e.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Bp(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=L.compareRangesUsingStarts(a,l)||Vt.compare(a.severity,l.severity):c=Vt.compare(a.severity,l.severity)||L.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:_e.isUri(e)?e:void 0,severities:Vt.Error|Vt.Warning|Vt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new NR(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=aI(this._markers,{resource:e.uri},(r,a)=>Bp(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i{const t=o.getColor(RU);if(t){const s=m.error.cssSelector;e.addRule(` .monaco-editor .zone-widget ${s}, .markers-panel .marker-icon${s}, .text-search-provider-messages .providerMessage ${s}, @@ -712,13 +712,13 @@ Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An .extension-editor ${s} { color: ${n}; } - `)}});var Bse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Uh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Wse{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Q,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(ki(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new iF(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){nt(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=jr(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);Si(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=J("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=f=>{this._openerService.open(s.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()};const g=q(this._codeLink,J("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(Si(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),rn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(61)*.66)}px`,this._lines+=1;for(const g of n){const f=document.createElement("div"),_=document.createElement("a");_.classList.add("filename"),_.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,_.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(_,g);const b=document.createElement("span");b.innerText=g.message,f.appendChild(_),f.appendChild(b),this._lines+=1,u.appendChild(f)}}const c=this._editor.getOption(46),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Vt.Error:t=p("Error","Error");break;case Vt.Warning:t=p("Warning","Warning");break;case Vt.Info:t=p("Info","Info");break;case Vt.Hint:t=p("Hint","Hint");break}let i=p("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let Ig=class B7 extends fC{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Q,this._onDidSelectRelatedInformation=new R,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Vt.Warning,this._backgroundColor=W.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Use);let t=gx,i=Vse;this._severity===Vt.Warning?(t=A0,i=Hse):this._severity===Vt.Info&&(t=fx,i=zse);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(s7),secondaryHeadingColor:e.getColor(o7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(B7.TitleMenu,this._contextKeyService);jne(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,J(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Wse(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=L.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?p("problems","{0} of {1} problems",t,i):p("change","{0} of {1} problem",t,i);this.setTitle(Js(a.uri),l)}this._icon.className=`codicon ${ux.className(Vt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};Ig.TitleMenu=new M("gotoErrorTitleMenu");Ig=Bse([Uh(1,Ct),Uh(2,io),Uh(3,ph),Uh(4,Ae),Uh(5,Ee),Uh(6,bg)],Ig);const TR=em(Or,x4),AR=em(vs,ag),MR=em(zn,Cv),gx=T("editorMarkerNavigationError.background",{dark:TR,light:TR,hcDark:We,hcLight:We},p("editorMarkerNavigationError","Editor marker navigation widget error color.")),Vse=T("editorMarkerNavigationError.headerBackground",{dark:fe(gx,.1),light:fe(gx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),A0=T("editorMarkerNavigationWarning.background",{dark:AR,light:AR,hcDark:We,hcLight:We},p("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Hse=T("editorMarkerNavigationWarning.headerBackground",{dark:fe(A0,.1),light:fe(A0,.1),hcDark:"#0C141F",hcLight:fe(A0,.2)},p("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),fx=T("editorMarkerNavigationInfo.background",{dark:MR,light:MR,hcDark:We,hcLight:We},p("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),zse=T("editorMarkerNavigationInfo.headerBackground",{dark:fe(fx,.1),light:fe(fx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Use=T("editorMarkerNavigation.background",{dark:wi,light:wi,hcDark:wi,hcLight:wi},p("editorMarkerNavigationBackground","Editor marker navigation widget background."));var $se=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},W7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let bc=class M0{constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Q,this._editor=e,this._widgetVisible=V7.bindTo(this._contextKeyService)}static get(e){return e.getContribution(M0.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(Ig,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!L.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:L.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new B(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return W7(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=M0.get(r))===null||i===void 0||i.close(),(n=M0.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};bc.ID="editor.contrib.markerController";bc=$se([jb(1,F7),jb(2,Ee),jb(3,ct),jb(4,Ae)],bc);class cw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return W7(this,void 0,void 0,function*(){t.hasModel()&&((i=bc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Xl extends cw{constructor(){super(!0,!1,{id:Xl.ID,label:Xl.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:Xl.LABEL,icon:mi("marker-navigation-next",m.arrowDown,p("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Xl.ID="editor.action.marker.next";Xl.LABEL=p("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class kd extends cw{constructor(){super(!1,!1,{id:kd.ID,label:kd.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:kd.LABEL,icon:mi("marker-navigation-previous",m.arrowUp,p("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}kd.ID="editor.action.marker.prev";kd.LABEL=p("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class jse extends cw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:p("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Kse extends cw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:p("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}tt(bc.ID,bc);ie(Xl);ie(kd);ie(jse);ie(Kse);const V7=new le("markersNavigationVisible",!1),qse=xi.bindToContribution(bc.get);ee(new qse({id:"closeMarkersNavigation",precondition:V7,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var Gse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ly=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ao=J;class Zse{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const RR={type:1,filter:{include:Ze.QuickFix},triggerAction:bn.QuickFixHover};let px=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new L(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new Zse(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return H.None;const i=new Q;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>Vt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=ao("div.hover-row"),n=q(i,ao("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,ao("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=ao("span");if(s){const f=q(d,ao("span"));f.innerText=s}const h=q(d,ao("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(G(h,"click",f=>{this._openerService.open(a.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()}));const u=q(h,ao("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,ao("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(rn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const f=q(n,ao("div"));f.style.marginTop="8px";const _=q(f,ao("a"));_.innerText=`${Js(h)}(${u}, ${g}): `,_.style.cursor="pointer",t.add(G(_,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Te)}));const b=q(f,ao("span"));b.innerText=d,this._editor.applyFontInfo(b)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===Vt.Error||t.marker.severity===Vt.Warning||t.marker.severity===Vt.Info)&&e.statusBar.addAction({label:p("view problem","View Problem"),commandId:Xl.ID,run:()=>{var n;e.hide(),(n=bc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(83)){const n=e.statusBar.append(ao("div"));this.recentMarkerCodeActionsInfo&&(eC.makeKey(this.recentMarkerCodeActionsInfo.marker)===eC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=p("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?H.None:i.add(Ad(()=>n.textContent=p("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Be(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=p("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Be(()=>{l||a.dispose()})),e.statusBar.addAction({label:p("quick fixes","Quick Fix..."),commandId:ef.Id,run:c=>{l=!0;const d=fc.get(this._editor),h=on(c);e.hide(),d==null||d.showCodeActions(RR,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Te)}}getCodeActions(e){return Ri(t=>zN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),RR,Ch.None,t))}};px=Gse([Ly(1,KI),Ly(2,io),Ly(3,de)],px);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${i}; }`)});var Yse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vc=class H7{constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Q,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(55)&&(this._unhookEvents(),this._hookEvents())})}static get(e){return e.getContribution(H7.ID)}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(55);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===Dd.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===Zu.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r;const a=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&a.type===9&&a.detail===Dd.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&a.type===9&&a.detail===Dd.ID&&((n=this._contentWidget)===null||n===void 0?void 0:n.isColorPickerVisible())||this._isHoverSticky&&a.type===12&&a.detail===Zu.ID)return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(s=this._glyphWidget)===null||s===void 0||s.hide();return}if(a.type===2&&a.position){(r=this._contentWidget)===null||r===void 0||r.hide(),this._glyphWidget||(this._glyphWidget=new Zu(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(a.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(mC,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i){this._getOrCreateContentWidget().startShowingAtRange(e,t,i)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};vc.ID="editor.contrib.hover";vc=Yse([Kb(1,Ae),Kb(2,io),Kb(3,Ht),Kb(4,Ee)],vc);class Qse extends ce{constructor(){super({id:"editor.action.showHover",label:p({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=vc.get(t);if(!i)return;const n=t.getPosition(),s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,r)}}class Xse extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:p({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=vc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=Xd.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,!0)})}}tt(vc.ID,vc);ie(Qse);ie(Xse);xh.register(bC);xh.register(px);Et((o,e)=>{const t=o.getColor(Fz);t&&e.addRule(`.monaco-editor .hoverHighlight { background-color: ${t}; }`);const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .monaco-hover { background-color: ${i}; }`);const n=o.getColor(aE);n&&(e.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${n.transparent(.5)}; }`));const s=o.getColor(h1);s&&e.addRule(`.monaco-editor .monaco-hover a { color: ${s}; }`);const r=o.getColor(u1);r&&e.addRule(`.monaco-editor .monaco-hover a:hover { color: ${r}; }`);const a=o.getColor(rE);a&&e.addRule(`.monaco-editor .monaco-hover { color: ${a}; }`);const l=o.getColor(Bz);l&&e.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${l}; }`);const c=o.getColor(k4);c&&e.addRule(`.monaco-editor .monaco-hover code { background-color: ${c}; }`)});class mx extends H{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==Y3||!t.range)return;const i=this._editor.getContribution(vc.ID);if(!!i&&!i.isColorPickerVisible()){const n=new L(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,!1)}}}mx.ID="editor.contrib.colorContribution";tt(mx.ID,mx);xh.register(Kk);var z7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function tT(o){return{asString:()=>z7(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function Jse(o,e,t){return{asString:()=>z7(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class U7{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const $7=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n0){const i=o.dataTransfer.getData(CC.EDITORS);if(i)try{t.push(...Qv(i))}catch{}else try{const r=o.dataTransfer.getData(__.RESOURCES);t.push(...toe(r))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let r=0;r0){const{selection:n,uri:s}=r5(_e.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class ioe{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const j7={DragAndDropContribution:"workbench.contributions.dragAndDrop"};zt.add(j7.DragAndDropContribution,new ioe);var noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function _x(o){const e=new U7;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,tT(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,soe(n))}}return e}function soe(o){const e=o.path?_e.parse(o.path):void 0;return Jse(o.name,e,()=>noe(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const ooe=Object.freeze([CC.EDITORS,CC.FILES,__.RESOURCES]);function roe(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Vn.uriList))){const n=eoe(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?_e.file(r.path).toString():r.name)}n.length&&o.replace(Vn.uriList,tT(iT.create(n)))}for(const n of ooe)o.delete(n)}const iT=Object.freeze({create:o=>Qa(o.map(e=>e.toString())).join(`\r + `)}});var Bse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Uh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Wse{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Q,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(ki(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new i5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){nt(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=jr(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);Si(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=J("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=f=>{this._openerService.open(s.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()};const g=q(this._codeLink,J("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(Si(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),rn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(61)*.66)}px`,this._lines+=1;for(const g of n){const f=document.createElement("div"),_=document.createElement("a");_.classList.add("filename"),_.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,_.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(_,g);const b=document.createElement("span");b.innerText=g.message,f.appendChild(_),f.appendChild(b),this._lines+=1,u.appendChild(f)}}const c=this._editor.getOption(46),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Vt.Error:t=p("Error","Error");break;case Vt.Warning:t=p("Warning","Warning");break;case Vt.Info:t=p("Info","Info");break;case Vt.Hint:t=p("Hint","Hint");break}let i=p("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let Ig=class B7 extends fC{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Q,this._onDidSelectRelatedInformation=new R,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Vt.Warning,this._backgroundColor=W.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Use);let t=gx,i=Vse;this._severity===Vt.Warning?(t=A0,i=Hse):this._severity===Vt.Info&&(t=fx,i=zse);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(s7),secondaryHeadingColor:e.getColor(o7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(B7.TitleMenu,this._contextKeyService);jne(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,J(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Wse(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=L.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?p("problems","{0} of {1} problems",t,i):p("change","{0} of {1} problem",t,i);this.setTitle(Js(a.uri),l)}this._icon.className=`codicon ${ux.className(Vt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};Ig.TitleMenu=new M("gotoErrorTitleMenu");Ig=Bse([Uh(1,Ct),Uh(2,io),Uh(3,ph),Uh(4,Ae),Uh(5,Ee),Uh(6,bg)],Ig);const TR=em(Or,x4),AR=em(vs,ag),MR=em(zn,Cv),gx=T("editorMarkerNavigationError.background",{dark:TR,light:TR,hcDark:We,hcLight:We},p("editorMarkerNavigationError","Editor marker navigation widget error color.")),Vse=T("editorMarkerNavigationError.headerBackground",{dark:fe(gx,.1),light:fe(gx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),A0=T("editorMarkerNavigationWarning.background",{dark:AR,light:AR,hcDark:We,hcLight:We},p("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Hse=T("editorMarkerNavigationWarning.headerBackground",{dark:fe(A0,.1),light:fe(A0,.1),hcDark:"#0C141F",hcLight:fe(A0,.2)},p("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),fx=T("editorMarkerNavigationInfo.background",{dark:MR,light:MR,hcDark:We,hcLight:We},p("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),zse=T("editorMarkerNavigationInfo.headerBackground",{dark:fe(fx,.1),light:fe(fx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Use=T("editorMarkerNavigation.background",{dark:wi,light:wi,hcDark:wi,hcLight:wi},p("editorMarkerNavigationBackground","Editor marker navigation widget background."));var $se=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},W7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let bc=class M0{constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Q,this._editor=e,this._widgetVisible=V7.bindTo(this._contextKeyService)}static get(e){return e.getContribution(M0.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(Ig,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!L.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:L.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new B(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return W7(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=M0.get(r))===null||i===void 0||i.close(),(n=M0.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};bc.ID="editor.contrib.markerController";bc=$se([jb(1,F7),jb(2,Ee),jb(3,ct),jb(4,Ae)],bc);class cw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return W7(this,void 0,void 0,function*(){t.hasModel()&&((i=bc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Xl extends cw{constructor(){super(!0,!1,{id:Xl.ID,label:Xl.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:Xl.LABEL,icon:mi("marker-navigation-next",m.arrowDown,p("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Xl.ID="editor.action.marker.next";Xl.LABEL=p("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class kd extends cw{constructor(){super(!1,!1,{id:kd.ID,label:kd.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:kd.LABEL,icon:mi("marker-navigation-previous",m.arrowUp,p("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}kd.ID="editor.action.marker.prev";kd.LABEL=p("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class jse extends cw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:p("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Kse extends cw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:p("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}tt(bc.ID,bc);ie(Xl);ie(kd);ie(jse);ie(Kse);const V7=new le("markersNavigationVisible",!1),qse=xi.bindToContribution(bc.get);ee(new qse({id:"closeMarkersNavigation",precondition:V7,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var Gse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ly=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ao=J;class Zse{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const RR={type:1,filter:{include:Ze.QuickFix},triggerAction:bn.QuickFixHover};let px=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new L(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new Zse(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return H.None;const i=new Q;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>Vt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=ao("div.hover-row"),n=q(i,ao("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,ao("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=ao("span");if(s){const f=q(d,ao("span"));f.innerText=s}const h=q(d,ao("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(G(h,"click",f=>{this._openerService.open(a.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()}));const u=q(h,ao("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,ao("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(rn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const f=q(n,ao("div"));f.style.marginTop="8px";const _=q(f,ao("a"));_.innerText=`${Js(h)}(${u}, ${g}): `,_.style.cursor="pointer",t.add(G(_,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Te)}));const b=q(f,ao("span"));b.innerText=d,this._editor.applyFontInfo(b)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===Vt.Error||t.marker.severity===Vt.Warning||t.marker.severity===Vt.Info)&&e.statusBar.addAction({label:p("view problem","View Problem"),commandId:Xl.ID,run:()=>{var n;e.hide(),(n=bc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(83)){const n=e.statusBar.append(ao("div"));this.recentMarkerCodeActionsInfo&&(eC.makeKey(this.recentMarkerCodeActionsInfo.marker)===eC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=p("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?H.None:i.add(Ad(()=>n.textContent=p("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Be(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=p("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Be(()=>{l||a.dispose()})),e.statusBar.addAction({label:p("quick fixes","Quick Fix..."),commandId:ef.Id,run:c=>{l=!0;const d=fc.get(this._editor),h=on(c);e.hide(),d==null||d.showCodeActions(RR,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Te)}}getCodeActions(e){return Ri(t=>zN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),RR,Ch.None,t))}};px=Gse([Ly(1,KI),Ly(2,io),Ly(3,de)],px);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${i}; }`)});var Yse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vc=class H7{constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Q,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(55)&&(this._unhookEvents(),this._hookEvents())})}static get(e){return e.getContribution(H7.ID)}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(55);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===Dd.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===Zu.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r;const a=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&a.type===9&&a.detail===Dd.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&a.type===9&&a.detail===Dd.ID&&((n=this._contentWidget)===null||n===void 0?void 0:n.isColorPickerVisible())||this._isHoverSticky&&a.type===12&&a.detail===Zu.ID)return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(s=this._glyphWidget)===null||s===void 0||s.hide();return}if(a.type===2&&a.position){(r=this._contentWidget)===null||r===void 0||r.hide(),this._glyphWidget||(this._glyphWidget=new Zu(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(a.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(mC,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i){this._getOrCreateContentWidget().startShowingAtRange(e,t,i)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};vc.ID="editor.contrib.hover";vc=Yse([Kb(1,Ae),Kb(2,io),Kb(3,Ht),Kb(4,Ee)],vc);class Qse extends ce{constructor(){super({id:"editor.action.showHover",label:p({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=vc.get(t);if(!i)return;const n=t.getPosition(),s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,r)}}class Xse extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:p({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=vc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=Xd.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,!0)})}}tt(vc.ID,vc);ie(Qse);ie(Xse);xh.register(bC);xh.register(px);Et((o,e)=>{const t=o.getColor(Fz);t&&e.addRule(`.monaco-editor .hoverHighlight { background-color: ${t}; }`);const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .monaco-hover { background-color: ${i}; }`);const n=o.getColor(aE);n&&(e.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${n.transparent(.5)}; }`));const s=o.getColor(h1);s&&e.addRule(`.monaco-editor .monaco-hover a { color: ${s}; }`);const r=o.getColor(u1);r&&e.addRule(`.monaco-editor .monaco-hover a:hover { color: ${r}; }`);const a=o.getColor(rE);a&&e.addRule(`.monaco-editor .monaco-hover { color: ${a}; }`);const l=o.getColor(Bz);l&&e.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${l}; }`);const c=o.getColor(k4);c&&e.addRule(`.monaco-editor .monaco-hover code { background-color: ${c}; }`)});class mx extends H{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==Y3||!t.range)return;const i=this._editor.getContribution(vc.ID);if(!!i&&!i.isColorPickerVisible()){const n=new L(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,!1)}}}mx.ID="editor.contrib.colorContribution";tt(mx.ID,mx);xh.register(Kk);var z7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function tT(o){return{asString:()=>z7(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function Jse(o,e,t){return{asString:()=>z7(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class U7{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const $7=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n0){const i=o.dataTransfer.getData(CC.EDITORS);if(i)try{t.push(...Qv(i))}catch{}else try{const r=o.dataTransfer.getData(__.RESOURCES);t.push(...toe(r))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let r=0;r0){const{selection:n,uri:s}=rF(_e.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class ioe{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const j7={DragAndDropContribution:"workbench.contributions.dragAndDrop"};zt.add(j7.DragAndDropContribution,new ioe);var noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function _x(o){const e=new U7;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,tT(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,soe(n))}}return e}function soe(o){const e=o.path?_e.parse(o.path):void 0;return Jse(o.name,e,()=>noe(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const ooe=Object.freeze([CC.EDITORS,CC.FILES,__.RESOURCES]);function roe(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Vn.uriList))){const n=eoe(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?_e.file(r.path).toString():r.name)}n.length&&o.replace(Vn.uriList,tT(iT.create(n)))}for(const n of ooe)o.delete(n)}const iT=Object.freeze({create:o=>Qa(o.map(e=>e.toString())).join(`\r `),parse:o=>o.split(`\r `).filter(e=>!e.startsWith("#"))});function OR(o,e=Yi){return dq(o,e)?o.charAt(0).toUpperCase()+o.slice(1):o}var aoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},loe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class PR{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(i!==void 0)return i}}}class FR{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let i=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!i&&this._overtypingCapturer){const s=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);s&&(i=s.value,n=s.multiline)}if(i&&n&&e.snippet){const s=this._model.getLineContent(this._selection.startLineNumber),r=_t(s,0,this._selection.startColumn-1);let a=r;e.snippet.walk(c=>c===e?!1:(c instanceof Bn&&(a=_t(jr(c.value).pop())),!0));const l=Nd(a,r);i=i.replace(/(\r\n|\r|\n)(.*)/g,(c,d,h)=>`${d}${a.substr(l)}${h}`)}return i}else{if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){const i=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return i&&i.word||void 0}else{if(t==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(t==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(t==="CURSOR_INDEX")return String(this._selectionIdx);if(t==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}}class BR{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if(t==="TM_FILENAME")return fd(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){const i=fd(this._model.uri.fsPath),n=i.lastIndexOf(".");return n<=0?i:i.slice(0,n)}else{if(t==="TM_DIRECTORY")return sP(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(L1(this._model.uri));if(t==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(t==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}}class WR{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if(e.name!=="CLIPBOARD")return;const t=this._readClipboardText();if(!!t){if(this._spread){const i=t.split(/\r\n|\n|\r/).filter(n=>!dP(n));if(i.length===this._selectionCount)return i[this._selectionIdx]}return t}}}let wC=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(!!n){if(t==="LINE_COMMENT")return n.lineCommentToken||void 0;if(t==="BLOCK_COMMENT_START")return n.blockCommentStartToken||void 0;if(t==="BLOCK_COMMENT_END")return n.blockCommentEndToken||void 0}}};wC=aoe([loe(2,si)],wC);class $o{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if(t==="CURRENT_YEAR")return String(this._date.getFullYear());if(t==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(t==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(t==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(t==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(t==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(t==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(t==="CURRENT_DAY_NAME")return $o.dayNames[this._date.getDay()];if(t==="CURRENT_DAY_NAME_SHORT")return $o.dayNamesShort[this._date.getDay()];if(t==="CURRENT_MONTH_NAME")return $o.monthNames[this._date.getMonth()];if(t==="CURRENT_MONTH_NAME_SHORT")return $o.monthNamesShort[this._date.getMonth()];if(t==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3))}}$o.dayNames=[p("Sunday","Sunday"),p("Monday","Monday"),p("Tuesday","Tuesday"),p("Wednesday","Wednesday"),p("Thursday","Thursday"),p("Friday","Friday"),p("Saturday","Saturday")];$o.dayNamesShort=[p("SundayShort","Sun"),p("MondayShort","Mon"),p("TuesdayShort","Tue"),p("WednesdayShort","Wed"),p("ThursdayShort","Thu"),p("FridayShort","Fri"),p("SaturdayShort","Sat")];$o.monthNames=[p("January","January"),p("February","February"),p("March","March"),p("April","April"),p("May","May"),p("June","June"),p("July","July"),p("August","August"),p("September","September"),p("October","October"),p("November","November"),p("December","December")];$o.monthNamesShort=[p("JanuaryShort","Jan"),p("FebruaryShort","Feb"),p("MarchShort","Mar"),p("AprilShort","Apr"),p("MayShort","May"),p("JuneShort","Jun"),p("JulyShort","Jul"),p("AugustShort","Aug"),p("SeptemberShort","Sep"),p("OctoberShort","Oct"),p("NovemberShort","Nov"),p("DecemberShort","Dec")];class VR{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=hY(this._workspaceService.getWorkspace());if(!!t){if(e.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(t);if(e.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(t)}}_resolveWorkspaceName(e){if(lM(e))return fd(e.uri.path);let t=fd(e.configPath.path);return t.endsWith(HD)&&(t=t.substr(0,t.length-HD.length-1)),t}_resoveWorkspacePath(e){if(lM(e))return OR(e.uri.fsPath);const t=fd(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?OR(i):"/"}}class HR{resolve(e){const{name:t}=e;if(t==="RANDOM")return Math.random().toString().slice(-6);if(t==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(t==="UUID")return $7()}}var coe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},doe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Ms{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=DT(t.placeholders,go.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations(t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),s=this._snippet.fullLen(i),r=L.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+s)),a=i.isFinalTabstop?Ms._decor.inactiveFinal:Ms._decor.inactive,l=t.addDecoration(r,a);this._placeholderDecorations.set(i,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const n=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx])if(s.transform){const r=this._placeholderDecorations.get(s),a=this._editor.getModel().getDecorationRange(r),l=this._editor.getModel().getValueInRange(a),c=s.transform.resolve(l).split(/\r\n|\r|\n/);for(let d=1;d0&&this._editor.executeEdits("snippet.placeholderTransform",n)}let t=!1;e===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations(n=>{const s=new Set,r=[];for(const a of this._placeholderGroups[this._placeholderGroupsIdx]){const l=this._placeholderDecorations.get(a),c=this._editor.getModel().getDecorationRange(l);r.push(new oe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(a),n.changeDecorationOptions(l,a.isFinalTabstop?Ms._decor.activeFinal:Ms._decor.active),s.add(a);for(const d of this._snippet.enclosingPlaceholders(a)){const h=this._placeholderDecorations.get(d);n.changeDecorationOptions(h,d.isFinalTabstop?Ms._decor.activeFinal:Ms._decor.active),s.add(d)}}for(const[a,l]of this._placeholderDecorations)s.has(a)||n.changeDecorationOptions(l,a.isFinalTabstop?Ms._decor.inactiveFinal:Ms._decor.inactive);return r});return t?this.move(e):i!=null?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof go){const i=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(i).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){return this._snippet.placeholders.length===0||this._snippet.placeholders.length===1&&this._snippet.placeholders[0].isFinalTabstop}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const s=this._placeholderDecorations.get(n),r=this._editor.getModel().getDecorationRange(s);if(!r){e.delete(n.index);break}i.push(r)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(e!=null&&e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);if(!!i)return{range:i,choice:e.choice}}get hasChoice(){let e=!1;return this._snippet.walk(t=>(e=t instanceof nf,!e)),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const s=e.shift();console.assert(s._offset!==-1),console.assert(!s._placeholderDecorations);const r=s._snippet.placeholderInfo.last.index;for(const l of s._snippet.placeholderInfo.all)l.isFinalTabstop?l.index=n.index+(r+1)/this._nestingLevel:l.index=n.index+l.index/this._nestingLevel;this._snippet.replace(n,s._snippet.children);const a=this._placeholderDecorations.get(n);i.removeDecoration(a),this._placeholderDecorations.delete(n);for(const l of s._snippet.placeholders){const c=s._snippet.offset(l),d=s._snippet.fullLen(l),h=L.fromPositions(t.getPositionAt(s._offset+c),t.getPositionAt(s._offset+c+d)),u=i.addDecoration(h,Ms._decor.inactive);this._placeholderDecorations.set(l,u)}}this._placeholderGroups=DT(this._snippet.placeholders,go.compareByIndex)})}}Ms._decor={active:Ne.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:Ne.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:Ne.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:Ne.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const zR={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let SC=class ba{constructor(e,t,i=zR,n){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}static adjustWhitespace(e,t,i,n,s){const r=e.getLineContent(t.lineNumber),a=_t(r,0,t.column-1);let l;return i.walk(c=>{if(!(c instanceof Bn)||c.parent instanceof nf)return!0;const d=c.value.split(/\r\n|\r|\n/);if(n){const u=i.offset(c);if(u===0)d[0]=e.normalizeIndentation(d[0]);else{l=l!=null?l:i.toString();const g=l.charCodeAt(u-1);(g===10||g===13)&&(d[0]=e.normalizeIndentation(a+d[0]))}for(let g=1;gS.get(_m)),f=e.invokeWithinContext(S=>new BR(S.get(bg),u)),_=()=>a,b=u.getValueInRange(ba.adjustSelection(u,e.getSelection(),i,0)),v=u.getValueInRange(ba.adjustSelection(u,e.getSelection(),0,n)),C=u.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),w=e.getSelections().map((S,k)=>({selection:S,idx:k})).sort((S,k)=>L.compareRangesUsingStarts(S.selection,k.selection));for(const{selection:S,idx:k}of w){let x=ba.adjustSelection(u,S,i,0),y=ba.adjustSelection(u,S,0,n);b!==u.getValueInRange(x)&&(x=S),v!==u.getValueInRange(y)&&(y=S);const D=S.setStartPosition(x.startLineNumber,x.startColumn).setEndPosition(y.endLineNumber,y.endColumn),I=new _c().parse(t,!0,s),O=D.getStartPosition(),F=ba.adjustWhitespace(u,O,I,r||k>0&&C!==u.getLineFirstNonWhitespaceColumn(S.positionLineNumber),!0);I.resolveVariables(new PR([f,new WR(_,k,w.length,e.getOption(73)==="spread"),new FR(u,S,k,l),new wC(u,S,c),new $o,new VR(g),new HR])),d[k]=Ft.replace(D,I.toString()),d[k].identifier={major:k,minor:0},d[k]._isTracked=!0,h[k]=new Ms(e,I,F)}return{edits:d,snippets:h}}static createEditsAndSnippetsFromEdits(e,t,i,n,s,r,a){if(!e.hasModel()||t.length===0)return{edits:[],snippets:[]};const l=[],c=e.getModel(),d=new _c,h=new O_,u=new PR([e.invokeWithinContext(f=>new BR(f.get(bg),c)),new WR(()=>s,0,e.getSelections().length,e.getOption(73)==="spread"),new FR(c,e.getSelection(),0,r),new wC(c,e.getSelection(),a),new $o,new VR(e.invokeWithinContext(f=>f.get(_m))),new HR]);t=t.sort((f,_)=>L.compareRangesUsingStarts(f.range,_.range));let g=0;for(let f=0;f0){const S=t[f-1].range,k=L.fromPositions(S.getEndPosition(),_.getStartPosition()),x=new Bn(c.getValueInRange(k));h.appendChild(x),g+=x.value.length}d.parseFragment(b,h),h.resolveVariables(u);const v=h.toString(),C=v.slice(g);g=v.length;const w=Ft.replace(_,C);w.identifier={major:f,minor:0},w._isTracked=!0,l.push(w)}return d.ensureFinalTabstop(h,i,!0),{edits:l,snippets:[new Ms(e,h,"")]}}dispose(){nt(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}=typeof this._template=="string"?ba.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):ba.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,i=>{const n=i.filter(s=>!!s.identifier);for(let s=0;soe.fromPositions(s.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=zR){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=ba.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,s=>{const r=s.filter(l=>!!l.identifier);for(let l=0;loe.fromPositions(l.range.getEndPosition()))})}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length{s.push(...n.get(r))})}e.sort(L.compareRangesUsingStarts);for(const[i,n]of t){if(n.length!==e.length){t.delete(i);continue}n.sort(L.compareRangesUsingStarts);for(let s=0;s0}};SC=coe([doe(3,si)],SC);var hoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Gb={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let Oi=class np{constructor(e,t,i,n,s){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=s,this._snippetListener=new Q,this._modelVersionId=-1,this._inSnippet=np.InSnippetMode.bindTo(n),this._hasNextTabstop=np.HasNextTabstop.bindTo(n),this._hasPrevTabstop=np.HasPrevTabstop.bindTo(n)}static get(e){return e.getContribution(np.ID)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),(e=this._session)===null||e===void 0||e.dispose(),this._snippetListener.dispose()}apply(e,t){try{this._doInsert(e,typeof t>"u"?Gb:Object.assign(Object.assign({},Gb),t))}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_edits=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}insert(e,t){try{this._doInsert(e,typeof t>"u"?Gb:Object.assign(Object.assign({},Gb),t))}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var i;if(!!this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof e!="string"&&this.cancel(),this._session?(pt(typeof e=="string"),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new SC(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),!((i=this._session)===null||i===void 0)&&i.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:(s,r)=>{if(!this._session||s!==this._editor.getModel()||!B.equals(this._editor.getPosition(),r))return;const{activeChoice:a}=this._session;if(!a||a.choice.options.length===0)return;const l=s.getValueInRange(a.range),c=Boolean(a.choice.options.find(h=>h.value===l)),d=[];for(let h=0;hn.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}const{activeChoice:e}=this._session;if(!e||!this._choiceCompletionItemProvider){this._currentChoice=void 0;return}this._currentChoice!==e.choice&&(this._currentChoice=e.choice,queueMicrotask(()=>{Dse(this._editor,this._choiceCompletionItemProvider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,(t=this._session)===null||t===void 0||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};Oi.ID="snippetController2";Oi.InSnippetMode=new le("inSnippetMode",!1,p("inSnippetMode","Whether the editor in current in snippet mode"));Oi.HasNextTabstop=new le("hasNextTabstop",!1,p("hasNextTabstop","Whether there is a next tab stop when in snippet mode"));Oi.HasPrevTabstop=new le("hasPrevTabstop",!1,p("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"));Oi=hoe([qb(1,So),qb(2,de),qb(3,Ee),qb(4,si)],Oi);tt(Oi.ID,Oi);const dw=xi.bindToContribution(Oi.get);ee(new dw({id:"jumpToNextSnippetPlaceholder",precondition:se.and(Oi.InSnippetMode,Oi.HasNextTabstop),handler:o=>o.next(),kbOpts:{weight:100+30,kbExpr:N.editorTextFocus,primary:2}}));ee(new dw({id:"jumpToPrevSnippetPlaceholder",precondition:se.and(Oi.InSnippetMode,Oi.HasPrevTabstop),handler:o=>o.prev(),kbOpts:{weight:100+30,kbExpr:N.editorTextFocus,primary:1026}}));ee(new dw({id:"leaveSnippet",precondition:Oi.InSnippetMode,handler:o=>o.cancel(!0),kbOpts:{weight:100+30,kbExpr:N.editorTextFocus,primary:9,secondary:[1033]}}));ee(new dw({id:"acceptSnippet",precondition:Oi.InSnippetMode,handler:o=>o.finish()}));function K7(o,e,t){const i=Oi.get(o);return i?(o.focus(),i.apply(t.map(n=>({range:oe.liftSelection(n),template:e}))),i.isInSnippet()):!1}var uoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},UR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Dy="application/vnd.code.copyMetadata";let Wm=class extends H{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._clipboardService=i,this._configurationService=n,this._languageFeaturesService=s,this._editor=e;const r=e.getContainerDomNode();this._register(G(r,"copy",a=>this.handleCopy(a))),this._register(G(r,"cut",a=>this.handleCopy(a))),this._register(G(r,"paste",a=>this.handlePaste(a),!0))}arePasteActionsEnabled(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const i=this._editor.getModel(),n=this._editor.getSelections();if(!i||!(n!=null&&n.length)||!this.arePasteActionsEnabled(i))return;const s=[...n],r=n[0],a=r.isEmpty();if(a){if(!this._editor.getOption(33))return;s[0]=new L(r.startLineNumber,0,r.startLineNumber,i.getLineLength(r.startLineNumber))}const l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(u=>!!u.prepareDocumentPaste);if(!l.length){this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:a});return}const c=_x(e.clipboardData),d=$7();this.setCopyMetadata(e.clipboardData,{id:d,wasFromEmptySelection:a});const h=Ri(u=>UR(this,void 0,void 0,function*(){const g=yield Promise.all(l.map(f=>f.prepareDocumentPaste(i,s,c,u)));for(const f of g)f==null||f.forEach((_,b)=>{c.replace(b,_)});return c}));(t=this._currentClipboardItem)===null||t===void 0||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:d,dataTransferPromise:h}}setCopyMetadata(e,t){e.setData(Dy,JSON.stringify(t))}handlePaste(e){var t,i,n;return UR(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const s=this._editor.getSelections();if(!(s!=null&&s.length)||!this._editor.hasModel())return;const r=this._editor.getModel();if(!this.arePasteActionsEnabled(r))return;let a;const l=(t=e.clipboardData)===null||t===void 0?void 0:t.getData(Dy);l&&typeof l=="string"&&(a=JSON.parse(l));const c=this._languageFeaturesService.documentPasteEditProvider.ordered(r);if(!c.length)return;e.preventDefault(),e.stopImmediatePropagation();const d=r.getVersionId(),h=new qd(this._editor,3);try{const u=_x(e.clipboardData);if((a==null?void 0:a.id)&&((i=this._currentClipboardItem)===null||i===void 0?void 0:i.handle)===a.id&&(yield this._currentClipboardItem.dataTransferPromise).forEach((b,v)=>{u.replace(v,b)}),!u.has(Vn.uriList)){const _=yield this._clipboardService.readResources();_.length&&u.append(Vn.uriList,tT(iT.create(_)))}u.delete(Dy);for(const _ of c){if(!_.pasteMimeTypes.some(v=>v.toLowerCase()===__.FILES.toLowerCase()?[...u.values()].some(C=>C.asFile()):u.has(v)))continue;const b=yield _.provideDocumentPasteEdits(r,s,u,h.token);if(d!==r.getVersionId())return;if(b){K7(this._editor,typeof b.insertText=="string"?_c.escape(b.insertText):b.insertText.snippet,s),b.additionalEdit&&(yield this._bulkEditService.apply(Qg.convert(b.additionalEdit),{editor:this._editor}));return}}const g=(n=u.get(Vn.text))!==null&&n!==void 0?n:u.get("text");if(!g)return;const f=yield g.asString();if(d!==r.getVersionId())return;this._editor.trigger("keyboard","paste",{text:f,pasteOnNewLine:a==null?void 0:a.wasFromEmptySelection,multicursorText:null})}finally{h.dispose()}})}};Wm.ID="editor.contrib.copyPasteActionController";Wm=uoe([Zb(1,v_),Zb(2,cl),Zb(3,ot),Zb(4,de)],Wm);tt(Wm.ID,Wm);zt.as(rl.Configuration).registerConfiguration(Object.assign(Object.assign({},GE),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:p("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}));class Vl{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(c);let g=h.lastIndexOf(t,l-1+t.length),f=u.indexOf(i,d-1-i.length);if(g!==-1&&f!==-1)if(a===c)h.substring(g+t.length,f).indexOf(i)>=0&&(g=-1,f=-1);else{const b=h.substring(g+t.length),v=u.substring(0,f);(b.indexOf(i)>=0||v.indexOf(i)>=0)&&(g=-1,f=-1)}let _;g!==-1&&f!==-1?(n&&g+t.length0&&u.charCodeAt(f-1)===32&&(i=" "+i,f-=1),_=Vl._createRemoveBlockCommentOperations(new L(a,g+t.length+1,c,f+1),t,i)):(_=Vl._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=_.length===1?i:null);for(const b of _)r.addTrackedEditOperation(b.range,b.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return L.isEmpty(e)?n.push(Ft.delete(new L(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(Ft.delete(new L(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(Ft.delete(new L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return L.isEmpty(e)?s.push(Ft.replace(new L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(Ft.insert(new B(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(Ft.insert(new B(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new oe(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new oe(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class ya{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let c=0,d=i-t+1;cs?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class nT extends ce{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(si);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(19),l=t.getSelections().map((d,h)=>({selection:d,index:h,ignoreFirstLine:!1}));l.sort((d,h)=>L.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$h=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Eg=class q7{constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Q,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&Rd(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{!this._editor.getOption(20)||l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}static get(e){return e.getContribution(q7.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(20)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(20)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?M.SimpleEditorContext:M.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const c of a)if(c instanceof GI){const d=this._getMenuActions(e,c.item.submenu);d.length>0&&(i.push(new Qp(c.id,c.label,d)),l++)}else i.push(c),l++;l&&i.push(new ln)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(55);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=on(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new fm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new fm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(67);let i=0;const n=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run,dispose:()=>null}),s=(c,d)=>new Qp(`menu-action-${++i}`,c,d,void 0),r=(c,d,h,u,g)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});const f=b=>()=>{this._configurationService.updateValue(h,b)},_=[];for(const b of g)_.push(n({label:b.label,checked:u===b.value,run:f(b.value)}));return s(c,_)},a=[];a.push(n({label:p("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new ln),a.push(n({label:p("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(p("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:p("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:p("context.minimap.size.fill","Fill"),value:"fill"},{label:p("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(p("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:p("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:p("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Eg.ID="editor.contrib.contextmenu";Eg=_oe([$h(1,ll),$h(2,vh),$h(3,Ee),$h(4,_i),$h(5,ph),$h(6,ot)],Eg);class boe extends ce{constructor(){super({id:"editor.action.showContextMenu",label:p("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=Eg.get(t))===null||i===void 0||i.showContextMenu()}}tt(Eg.ID,Eg);ie(boe);class ky{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new ky(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new xy(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(Jd.ID)}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Jd.ID="editor.contrib.cursorUndoRedoController";class voe extends ce{constructor(){super({id:"cursorUndo",label:p("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorUndo()}}class Coe extends ce{constructor(){super({id:"cursorRedo",label:p("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorRedo()}}tt(Jd.ID,Jd);ie(voe);ie(Coe);class woe{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new oe(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new oe(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!0),this._mouseDown&&jh(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===Za.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}jh(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new B(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new oe(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new oe(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(jh(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(Za.ID,new woe(this._dragSelection,t,jh(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:Za._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}Za.ID="editor.contrib.dragAndDrop";Za.TRIGGER_KEY_VALUE=Ge?6:5;Za._DECORATION_OPTIONS=Ne.register({description:"dnd-target",className:"dnd-target"});tt(Za.ID,Za);var G7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},R0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Vm=class extends H{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new bx(s))}onDropIntoEditor(e,t,i){return R0(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const n=e.getModel(),s=n.getVersionId(),r=yield this.extractDataTransferData(i);if(r.size===0||e.getModel().getVersionId()!==s)return;const a=new qd(e,1);try{const l=this._languageFeaturesService.documentOnDropEditProvider.ordered(n),c=yield this._progressService.withProgress({location:15,delay:750,title:p("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>MI((()=>R0(this,void 0,void 0,function*(){for(const d of l){const h=yield d.provideDocumentOnDropEdits(n,t,r,a.token);if(a.token.isCancellationRequested)return;if(h)return h}}))(),a.token),()=>{a.cancel()});if(a.token.isCancellationRequested||e.getModel().getVersionId()!==s)return;if(c){const d=new L(t.lineNumber,t.column,t.lineNumber,t.column);K7(e,typeof c.insertText=="string"?_c.escape(c.insertText):c.insertText.snippet,[oe.fromRange(d,0)]),c.additionalEdit&&(yield this._bulkEditService.apply(Qg.convert(c.additionalEdit),{editor:e}));return}}finally{a.dispose()}})}extractDataTransferData(e){return R0(this,void 0,void 0,function*(){if(!e.dataTransfer)return new U7;const t=_x(e.dataTransfer);return roe(t,e),t})}};Vm.ID="editor.contrib.dropIntoEditorController";Vm=G7([sp(1,v_),sp(2,de),sp(3,GF),sp(4,_m)],Vm);let bx=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return R0(this,void 0,void 0,function*(){const r=i.get(Vn.uriList);if(r){const l=yield r.asString(),c=this.getUriListInsertText(l);if(c)return{insertText:c}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Vn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of iT.parse(e))try{t.push(_e.parse(i))}catch{}if(!!t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=pq(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};bx=G7([sp(0,_m)],bx);tt(Vm.ID,Vm);class fn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const n=i.options;if(n===fn._FIND_MATCH_DECORATION||n===fn._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,s=this._decorations.length;n{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,fn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,fn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new L(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,fn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=fn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=fn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,f=e.length;g=_.startLineNumber?_.endLineNumber>u&&(u=_.endLineNumber):(s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=_.startLineNumber,u=_.endLineNumber)}s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,fn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;rL.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function $R(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function jR(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=Z7([n[a]],r)+t}),s.slice(0,-1)}class KR{constructor(e){this.staticValue=e,this.kind=0}}class yoe{constructor(e){this.pieces=e,this.kind=1}}class Ng{constructor(e){!e||e.length===0?this._state=new KR(""):e.length===1&&e[0].staticValue!==null?this._state=new KR(e[0].staticValue):this._state=new yoe(e)}static fromStaticValue(e){return new Ng([xd.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Z7(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],c=r.caseOps.length;let d=0;for(let h=0,u=a.length;h=c){l.push(a.slice(h));break}switch(r.caseOps[d]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),d++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),d++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` -`,i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(i-1),t.emitStatic("",i+1),e.push(String.fromCharCode(r));break}continue}if(s===36){if(i++,i>=n)break;const r=o.charCodeAt(i);if(r===36){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(r===48||r===38){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1,e),e.length=0;continue}if(49<=r&&r<=57){let a=r-48;if(i+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,nt(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||!this._editor.hasModel()||(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},koe)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;typeof t<"u"?t!==null&&(Array.isArray(t)?i=t:i=[t]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new L(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));const n=this._findMatches(i,!1,Hl);this._decorations.set(n,i);const s=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(s);if(r===0&&n.length>0){const a=BO(n.map(l=>l.range),l=>L.compareRangesUsingStarts(l,s)>=0);r=a>0?a-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===1?(i===1?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new B(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new B(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()Np._getSearchRange(this._editor.getModel(),s));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Hl?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const t=new $c(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let h="mu";i.ignoreCase&&(h+="i"),i.global&&(h+="g"),i=new RegExp(i.source,h)}const n=this._editor.getModel(),s=n.getValue(1),r=n.getFullModelRange(),a=this._getReplacePattern();let l;const c=this._state.preserveCase;a.hasReplacementPatterns||c?l=s.replace(i,function(){return a.buildReplaceString(arguments,c)}):l=s.replace(i,a.buildReplaceString(null,c));const d=new gE(r,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let r=0,a=i.length;rr.range),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let i=this._findMatches(e,!1,1073741824).map(s=>new oe(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn));const n=this._editor.getSelection();for(let s=0,r=i.length;sthis._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s=n.getColorTheme().getColor(_v),r=n.getColorTheme().getColor(vv),a=n.getColorTheme().getColor(bv);this.caseSensitive=this._register(new M5({appendTitle:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new R5({appendTitle:this._keybindingLabelFor(kt.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new O5({appendTitle:this._keybindingLabelFor(kt.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(l=>{let c=!1;l.isRegex&&(this.regex.checked=this._state.isRegex,c=!0),l.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,c=!0),l.matchCase&&(this.caseSensitive.checked=this._state.matchCase,c=!0),!this._state.isRevealed&&c&&this._revealTemporarily()})),this._register(G(this._domNode,ae.MOUSE_LEAVE,l=>this._onMouseLeave())),this._register(G(this._domNode,"mouseover",l=>this._onMouseOver())),this._applyTheme(n.getColorTheme()),this._register(n.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return uw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionForeground:e.getColor(vv),inputActiveOptionBackground:e.getColor(bv)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}uw.ID="editor.contrib.findOptionsWidget";Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)});function t0(o,e){return o===1?!0:o===2?!1:e}class xoe extends H{constructor(){super(),this._onFindReplaceStateChange=this._register(new R),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return t0(this._isRegexOverride,this._isRegex)}get wholeWord(){return t0(this._wholeWordOverride,this._wholeWord)}get matchCase(){return t0(this._matchCaseOverride,this._matchCase)}get preserveCase(){return t0(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),typeof i<"u"&&(L.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let r=!1;const a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString<"u"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,r=!0),typeof e.replaceString<"u"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,r=!0),typeof e.isRevealed<"u"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,r=!0),typeof e.isReplaceRevealed<"u"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,r=!0),typeof e.isRegex<"u"&&(this._isRegex=e.isRegex),typeof e.wholeWord<"u"&&(this._wholeWord=e.wholeWord),typeof e.matchCase<"u"&&(this._matchCase=e.matchCase),typeof e.preserveCase<"u"&&(this._preserveCase=e.preserveCase),typeof e.searchScope<"u"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(h=>{var u;return(u=this._searchScope)===null||u===void 0?void 0:u.some(g=>!L.equalsRange(g,h))})||(this._searchScope=e.searchScope,s.searchScope=!0,r=!0)),typeof e.loop<"u"&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,r=!0),typeof e.isSearching<"u"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,r=!0),typeof e.filters<"u"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride<"u"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride<"u"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride<"u"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride<"u"?e.preserveCaseOverride:0,a!==this.isRegex&&(r=!0,s.isRegex=!0),l!==this.wholeWord&&(r=!0,s.wholeWord=!0),c!==this.matchCase&&(r=!0,s.matchCase=!0),d!==this.preserveCase&&(r=!0,s.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Hl}}function qR(o){var e,t;return((e=o.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=o.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var Ioe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Eoe=mi("find-selection",m.selection,p("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),GR=mi("find-collapsed",m.chevronRight,p("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),ZR=mi("find-expanded",m.chevronDown,p("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Noe=mi("find-replace",m.replace,p("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Toe=mi("find-replace-all",m.replaceAll,p("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Aoe=mi("find-previous-match",m.arrowUp,p("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Moe=mi("find-next-match",m.arrowDown,p("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Roe=p("label.find","Find"),Ooe=p("placeholder.find","Find"),Poe=p("label.previousMatchButton","Previous Match"),Foe=p("label.nextMatchButton","Next Match"),Boe=p("label.toggleSelectionFind","Find in Selection"),Woe=p("label.closeButton","Close"),Voe=p("label.replace","Replace"),Hoe=p("placeholder.replace","Replace"),zoe=p("label.replaceButton","Replace"),Uoe=p("label.replaceAllButton","Replace All"),$oe=p("label.toggleReplaceButton","Toggle Replace"),joe=p("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Hl),Koe=p("label.matchesLocation","{0} of {1}"),YR=p("label.noResults","No results"),fr=419,qoe=275,Goe=qoe-54;let Mf=69;const Zoe=33,QR="ctrlEnterReplaceAll.windows.donotask",XR=Ge?256:2048;class Iy{constructor(e){this.afterLineNumber=e,this.heightInPx=Zoe,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function JR(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionStart>0){o.stopPropagation();return}}function eO(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(83)&&(this._codeEditor.getOption(83)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(133)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(37)){const h=this._codeEditor.getOption(37).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new Iy(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Ioe(this,void 0,void 0,function*(){if(this._isVisible){const d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=hw.bindTo(r),this._findFocusTracker=this._register(Od(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=sT.bindTo(r),this._replaceFocusTracker=this._register(Od(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(37).addExtraSpaceOnTop&&(this._viewZone=new Iy(0)),this._applyTheme(a.getColorTheme()),this._register(a.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{!this._isVisible||(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return gw.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(83)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=co(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Te)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=Mf+"px",this._state.matchesCount>=Hl?this._matchesCount.title=joe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=Hl&&(t+="+");let i=String(this._state.matchesPosition);i==="0"&&(i="?"),e=Vs(Koe,i,t)}else e=YR;this._matchesCount.appendChild(document.createTextNode(e)),Gi(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Mf=Math.max(Mf,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===YR)return i===""?p("ariaSearchNoResultEmpty","{0} found",e):p("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=p("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();return s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1?`${s.getLineContent(t.startLineNumber)}, ${n}`:n}return p("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(83);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(37).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const i=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=i;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(37).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=on(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(s?s.left:0),a=s?s.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);const l=s4(this._domNode).left;r>l&&(t=!1);const c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(37).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const i=this._viewZone;this._viewZoneId!==void 0||!i||this._codeEditor.changeViewZones(n=>{i.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(i),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+i.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(37).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Iy(0));const i=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){const s=this._getHeight();if(s===i.heightInPx)return;const r=s-i.heightInPx;i.heightInPx=s,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r);return}else{let s=this._getHeight();if(s-=this._codeEditor.getOption(77).top,s<=0)return;i.heightInPx=s,this._viewZoneId=n.addZone(i),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionBackground:e.getColor(bv),inputActiveOptionForeground:e.getColor(vv),inputBackground:e.getColor(g1),inputForeground:e.getColor(f1),inputBorder:e.getColor(p1),inputValidationInfoBackground:e.getColor(ZI),inputValidationInfoForeground:e.getColor(YI),inputValidationInfoBorder:e.getColor(QI),inputValidationWarningBackground:e.getColor(XI),inputValidationWarningForeground:e.getColor(JI),inputValidationWarningBorder:e.getColor(eE),inputValidationErrorBackground:e.getColor(tE),inputValidationErrorForeground:e.getColor(iE),inputValidationErrorBorder:e.getColor(nE)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!jI(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const i=e.width,n=e.minimap.minimapWidth;let s=!1,r=!1,a=!1;if(this._resized&&co(this._domNode)>fr){this._domNode.style.maxWidth=`${i-28-n-15}px`,this._replaceInput.width=co(this._findInput.domNode);return}if(fr+28+n>=i&&(r=!0),fr+28+n-Mf>=i&&(a=!0),fr+28+n-Mf>=i+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",r),!a&&!s&&(this._domNode.style.maxWidth=`${i-28-n-15}px`),this._resized){this._findInput.inputBox.layout();const l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(!!this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));const i=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!L.equalsRange(t,i)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(XR|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` +`),this._selectionId=t.trackSelection(i);return}i.startLineNumbers?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class nT extends ce{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(si);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(19),l=t.getSelections().map((d,h)=>({selection:d,index:h,ignoreFirstLine:!1}));l.sort((d,h)=>L.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$h=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Eg=class q7{constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Q,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&Rd(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{!this._editor.getOption(20)||l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}static get(e){return e.getContribution(q7.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(20)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(20)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?M.SimpleEditorContext:M.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const c of a)if(c instanceof GI){const d=this._getMenuActions(e,c.item.submenu);d.length>0&&(i.push(new Qp(c.id,c.label,d)),l++)}else i.push(c),l++;l&&i.push(new ln)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(55);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=on(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new fm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new fm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(67);let i=0;const n=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run,dispose:()=>null}),s=(c,d)=>new Qp(`menu-action-${++i}`,c,d,void 0),r=(c,d,h,u,g)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});const f=b=>()=>{this._configurationService.updateValue(h,b)},_=[];for(const b of g)_.push(n({label:b.label,checked:u===b.value,run:f(b.value)}));return s(c,_)},a=[];a.push(n({label:p("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new ln),a.push(n({label:p("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(p("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:p("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:p("context.minimap.size.fill","Fill"),value:"fill"},{label:p("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(p("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:p("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:p("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Eg.ID="editor.contrib.contextmenu";Eg=_oe([$h(1,ll),$h(2,vh),$h(3,Ee),$h(4,_i),$h(5,ph),$h(6,ot)],Eg);class boe extends ce{constructor(){super({id:"editor.action.showContextMenu",label:p("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=Eg.get(t))===null||i===void 0||i.showContextMenu()}}tt(Eg.ID,Eg);ie(boe);class ky{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new ky(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new xy(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(Jd.ID)}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Jd.ID="editor.contrib.cursorUndoRedoController";class voe extends ce{constructor(){super({id:"cursorUndo",label:p("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorUndo()}}class Coe extends ce{constructor(){super({id:"cursorRedo",label:p("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorRedo()}}tt(Jd.ID,Jd);ie(voe);ie(Coe);class woe{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new oe(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new oe(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!0),this._mouseDown&&jh(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===Za.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}jh(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new B(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new oe(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new oe(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(jh(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(Za.ID,new woe(this._dragSelection,t,jh(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:Za._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}Za.ID="editor.contrib.dragAndDrop";Za.TRIGGER_KEY_VALUE=Ge?6:5;Za._DECORATION_OPTIONS=Ne.register({description:"dnd-target",className:"dnd-target"});tt(Za.ID,Za);var G7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},R0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Vm=class extends H{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new bx(s))}onDropIntoEditor(e,t,i){return R0(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const n=e.getModel(),s=n.getVersionId(),r=yield this.extractDataTransferData(i);if(r.size===0||e.getModel().getVersionId()!==s)return;const a=new qd(e,1);try{const l=this._languageFeaturesService.documentOnDropEditProvider.ordered(n),c=yield this._progressService.withProgress({location:15,delay:750,title:p("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>MI((()=>R0(this,void 0,void 0,function*(){for(const d of l){const h=yield d.provideDocumentOnDropEdits(n,t,r,a.token);if(a.token.isCancellationRequested)return;if(h)return h}}))(),a.token),()=>{a.cancel()});if(a.token.isCancellationRequested||e.getModel().getVersionId()!==s)return;if(c){const d=new L(t.lineNumber,t.column,t.lineNumber,t.column);K7(e,typeof c.insertText=="string"?_c.escape(c.insertText):c.insertText.snippet,[oe.fromRange(d,0)]),c.additionalEdit&&(yield this._bulkEditService.apply(Qg.convert(c.additionalEdit),{editor:e}));return}}finally{a.dispose()}})}extractDataTransferData(e){return R0(this,void 0,void 0,function*(){if(!e.dataTransfer)return new U7;const t=_x(e.dataTransfer);return roe(t,e),t})}};Vm.ID="editor.contrib.dropIntoEditorController";Vm=G7([sp(1,v_),sp(2,de),sp(3,G5),sp(4,_m)],Vm);let bx=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return R0(this,void 0,void 0,function*(){const r=i.get(Vn.uriList);if(r){const l=yield r.asString(),c=this.getUriListInsertText(l);if(c)return{insertText:c}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Vn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of iT.parse(e))try{t.push(_e.parse(i))}catch{}if(!!t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=pq(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};bx=G7([sp(0,_m)],bx);tt(Vm.ID,Vm);class fn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const n=i.options;if(n===fn._FIND_MATCH_DECORATION||n===fn._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,s=this._decorations.length;n{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,fn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,fn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new L(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,fn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=fn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=fn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,f=e.length;g=_.startLineNumber?_.endLineNumber>u&&(u=_.endLineNumber):(s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=_.startLineNumber,u=_.endLineNumber)}s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,fn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;rL.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function $R(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function jR(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=Z7([n[a]],r)+t}),s.slice(0,-1)}class KR{constructor(e){this.staticValue=e,this.kind=0}}class yoe{constructor(e){this.pieces=e,this.kind=1}}class Ng{constructor(e){!e||e.length===0?this._state=new KR(""):e.length===1&&e[0].staticValue!==null?this._state=new KR(e[0].staticValue):this._state=new yoe(e)}static fromStaticValue(e){return new Ng([xd.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Z7(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],c=r.caseOps.length;let d=0;for(let h=0,u=a.length;h=c){l.push(a.slice(h));break}switch(r.caseOps[d]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),d++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),d++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` +`,i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(i-1),t.emitStatic("",i+1),e.push(String.fromCharCode(r));break}continue}if(s===36){if(i++,i>=n)break;const r=o.charCodeAt(i);if(r===36){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(r===48||r===38){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1,e),e.length=0;continue}if(49<=r&&r<=57){let a=r-48;if(i+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,nt(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||!this._editor.hasModel()||(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},koe)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;typeof t<"u"?t!==null&&(Array.isArray(t)?i=t:i=[t]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new L(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));const n=this._findMatches(i,!1,Hl);this._decorations.set(n,i);const s=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(s);if(r===0&&n.length>0){const a=BO(n.map(l=>l.range),l=>L.compareRangesUsingStarts(l,s)>=0);r=a>0?a-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===1?(i===1?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new B(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new B(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()Np._getSearchRange(this._editor.getModel(),s));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Hl?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const t=new $c(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let h="mu";i.ignoreCase&&(h+="i"),i.global&&(h+="g"),i=new RegExp(i.source,h)}const n=this._editor.getModel(),s=n.getValue(1),r=n.getFullModelRange(),a=this._getReplacePattern();let l;const c=this._state.preserveCase;a.hasReplacementPatterns||c?l=s.replace(i,function(){return a.buildReplaceString(arguments,c)}):l=s.replace(i,a.buildReplaceString(null,c));const d=new gE(r,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let r=0,a=i.length;rr.range),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let i=this._findMatches(e,!1,1073741824).map(s=>new oe(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn));const n=this._editor.getSelection();for(let s=0,r=i.length;sthis._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s=n.getColorTheme().getColor(_v),r=n.getColorTheme().getColor(vv),a=n.getColorTheme().getColor(bv);this.caseSensitive=this._register(new MF({appendTitle:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new RF({appendTitle:this._keybindingLabelFor(kt.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new OF({appendTitle:this._keybindingLabelFor(kt.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(l=>{let c=!1;l.isRegex&&(this.regex.checked=this._state.isRegex,c=!0),l.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,c=!0),l.matchCase&&(this.caseSensitive.checked=this._state.matchCase,c=!0),!this._state.isRevealed&&c&&this._revealTemporarily()})),this._register(G(this._domNode,ae.MOUSE_LEAVE,l=>this._onMouseLeave())),this._register(G(this._domNode,"mouseover",l=>this._onMouseOver())),this._applyTheme(n.getColorTheme()),this._register(n.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return uw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionForeground:e.getColor(vv),inputActiveOptionBackground:e.getColor(bv)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}uw.ID="editor.contrib.findOptionsWidget";Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)});function t0(o,e){return o===1?!0:o===2?!1:e}class xoe extends H{constructor(){super(),this._onFindReplaceStateChange=this._register(new R),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return t0(this._isRegexOverride,this._isRegex)}get wholeWord(){return t0(this._wholeWordOverride,this._wholeWord)}get matchCase(){return t0(this._matchCaseOverride,this._matchCase)}get preserveCase(){return t0(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),typeof i<"u"&&(L.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let r=!1;const a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString<"u"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,r=!0),typeof e.replaceString<"u"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,r=!0),typeof e.isRevealed<"u"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,r=!0),typeof e.isReplaceRevealed<"u"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,r=!0),typeof e.isRegex<"u"&&(this._isRegex=e.isRegex),typeof e.wholeWord<"u"&&(this._wholeWord=e.wholeWord),typeof e.matchCase<"u"&&(this._matchCase=e.matchCase),typeof e.preserveCase<"u"&&(this._preserveCase=e.preserveCase),typeof e.searchScope<"u"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(h=>{var u;return(u=this._searchScope)===null||u===void 0?void 0:u.some(g=>!L.equalsRange(g,h))})||(this._searchScope=e.searchScope,s.searchScope=!0,r=!0)),typeof e.loop<"u"&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,r=!0),typeof e.isSearching<"u"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,r=!0),typeof e.filters<"u"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride<"u"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride<"u"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride<"u"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride<"u"?e.preserveCaseOverride:0,a!==this.isRegex&&(r=!0,s.isRegex=!0),l!==this.wholeWord&&(r=!0,s.wholeWord=!0),c!==this.matchCase&&(r=!0,s.matchCase=!0),d!==this.preserveCase&&(r=!0,s.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Hl}}function qR(o){var e,t;return((e=o.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=o.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var Ioe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Eoe=mi("find-selection",m.selection,p("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),GR=mi("find-collapsed",m.chevronRight,p("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),ZR=mi("find-expanded",m.chevronDown,p("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Noe=mi("find-replace",m.replace,p("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Toe=mi("find-replace-all",m.replaceAll,p("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Aoe=mi("find-previous-match",m.arrowUp,p("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Moe=mi("find-next-match",m.arrowDown,p("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Roe=p("label.find","Find"),Ooe=p("placeholder.find","Find"),Poe=p("label.previousMatchButton","Previous Match"),Foe=p("label.nextMatchButton","Next Match"),Boe=p("label.toggleSelectionFind","Find in Selection"),Woe=p("label.closeButton","Close"),Voe=p("label.replace","Replace"),Hoe=p("placeholder.replace","Replace"),zoe=p("label.replaceButton","Replace"),Uoe=p("label.replaceAllButton","Replace All"),$oe=p("label.toggleReplaceButton","Toggle Replace"),joe=p("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Hl),Koe=p("label.matchesLocation","{0} of {1}"),YR=p("label.noResults","No results"),fr=419,qoe=275,Goe=qoe-54;let Mf=69;const Zoe=33,QR="ctrlEnterReplaceAll.windows.donotask",XR=Ge?256:2048;class Iy{constructor(e){this.afterLineNumber=e,this.heightInPx=Zoe,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function JR(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionStart>0){o.stopPropagation();return}}function eO(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(83)&&(this._codeEditor.getOption(83)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(133)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(37)){const h=this._codeEditor.getOption(37).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new Iy(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Ioe(this,void 0,void 0,function*(){if(this._isVisible){const d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=hw.bindTo(r),this._findFocusTracker=this._register(Od(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=sT.bindTo(r),this._replaceFocusTracker=this._register(Od(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(37).addExtraSpaceOnTop&&(this._viewZone=new Iy(0)),this._applyTheme(a.getColorTheme()),this._register(a.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{!this._isVisible||(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return gw.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(83)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=co(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Te)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=Mf+"px",this._state.matchesCount>=Hl?this._matchesCount.title=joe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=Hl&&(t+="+");let i=String(this._state.matchesPosition);i==="0"&&(i="?"),e=Vs(Koe,i,t)}else e=YR;this._matchesCount.appendChild(document.createTextNode(e)),Gi(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Mf=Math.max(Mf,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===YR)return i===""?p("ariaSearchNoResultEmpty","{0} found",e):p("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=p("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();return s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1?`${s.getLineContent(t.startLineNumber)}, ${n}`:n}return p("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(83);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(37).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const i=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=i;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(37).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=on(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(s?s.left:0),a=s?s.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);const l=s4(this._domNode).left;r>l&&(t=!1);const c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(37).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const i=this._viewZone;this._viewZoneId!==void 0||!i||this._codeEditor.changeViewZones(n=>{i.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(i),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+i.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(37).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Iy(0));const i=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){const s=this._getHeight();if(s===i.heightInPx)return;const r=s-i.heightInPx;i.heightInPx=s,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r);return}else{let s=this._getHeight();if(s-=this._codeEditor.getOption(77).top,s<=0)return;i.heightInPx=s,this._viewZoneId=n.addZone(i),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionBackground:e.getColor(bv),inputActiveOptionForeground:e.getColor(vv),inputBackground:e.getColor(g1),inputForeground:e.getColor(f1),inputBorder:e.getColor(p1),inputValidationInfoBackground:e.getColor(ZI),inputValidationInfoForeground:e.getColor(YI),inputValidationInfoBorder:e.getColor(QI),inputValidationWarningBackground:e.getColor(XI),inputValidationWarningForeground:e.getColor(JI),inputValidationWarningBorder:e.getColor(eE),inputValidationErrorBackground:e.getColor(tE),inputValidationErrorForeground:e.getColor(iE),inputValidationErrorBorder:e.getColor(nE)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!jI(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const i=e.width,n=e.minimap.minimapWidth;let s=!1,r=!1,a=!1;if(this._resized&&co(this._domNode)>fr){this._domNode.style.maxWidth=`${i-28-n-15}px`,this._replaceInput.width=co(this._findInput.domNode);return}if(fr+28+n>=i&&(r=!0),fr+28+n-Mf>=i&&(a=!0),fr+28+n-Mf>=i+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",r),!a&&!s&&(this._domNode.style.maxWidth=`${i-28-n-15}px`),this._resized){this._findInput.inputBox.layout();const l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(!!this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));const i=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!L.equalsRange(t,i)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(XR|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` `),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return JR(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(e.equals(18))return eO(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(e){if(e.equals(XR|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{Yi&&jo&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(p("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(QR,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` -`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return JR(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return eO(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new rx(null,this._contextViewProvider,{width:Goe,label:Roe,placeholder:Ooe,appendCaseSensitiveLabel:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(kt.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(kt.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),dn&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Kh({label:Poe+this._keybindingLabelFor(kt.PreviousMatchFindAction),icon:Aoe,onTrigger:()=>{this._codeEditor.getAction(kt.PreviousMatchFindAction).run().then(void 0,Te)}})),this._nextBtn=this._register(new Kh({label:Foe+this._keybindingLabelFor(kt.NextMatchFindAction),icon:Moe,onTrigger:()=>{this._codeEditor.getAction(kt.NextMatchFindAction).run().then(void 0,Te)}}));const i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",i.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new y_({icon:Eoe,title:Boe+this._keybindingLabelFor(kt.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Kh({label:Woe+this._keybindingLabelFor(kt.CloseFindWidgetCommand),icon:KF,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ax(null,void 0,{label:Voe,placeholder:Hoe,appendPreserveCaseLabel:this._keybindingLabelFor(kt.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new Kh({label:zoe+this._keybindingLabelFor(kt.ReplaceOneAction),icon:Noe,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new Kh({label:Uoe+this._keybindingLabelFor(kt.ReplaceAllAction),icon:Toe,onTrigger:()=>{this._controller.replaceAll()}}));const s=document.createElement("div");s.className="replace-part",s.appendChild(this._replaceInput.domNode);const r=document.createElement("div");r.className="replace-actions",s.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Kh({label:$oe,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${fr}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(s),this._resizeSash=new tn(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=fr;this._register(this._resizeSash.onDidStart(()=>{a=co(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;const c=a+l.startX-l.currentX;if(cd||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const l=co(this._domNode);if(l{this._opts.onTrigger(),i.preventDefault()}),this.onkeydown(this._domNode,i=>{var n,s;if(i.equals(10)||i.equals(3)){this._opts.onTrigger(),i.preventDefault();return}(s=(n=this._opts).onKeyDown)===null||s===void 0||s.call(n,i)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...at.asClassNameArray(GR)),this._domNode.classList.add(...at.asClassNameArray(ZR))):(this._domNode.classList.remove(...at.asClassNameArray(ZR)),this._domNode.classList.add(...at.asClassNameArray(GR)))}}Et((o,e)=>{const t=(f,_)=>{_&&e.addRule(`.monaco-editor ${f} { background-color: ${_}; }`)};t(".findMatch",o.getColor(Va)),t(".currentFindMatch",o.getColor(Mz)),t(".findScope",o.getColor(Rz));const i=o.getColor(li);t(".find-widget",i);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(cd);s&&e.addRule(`.monaco-editor .findMatch { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(Oz);r&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r}; padding: 1px; box-sizing: border-box; }`);const a=o.getColor(Pz);a&&e.addRule(`.monaco-editor .findScope { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; }`);const l=o.getColor(We);l&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=o.getColor(zo);c&&e.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const d=o.getColor(fz);d&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${d}; }`);const h=o.getColor(Sz);if(h)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{const f=o.getColor(Ba);f&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${f}; }`)}const u=o.getColor(hD);u&&e.addRule(` +`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return JR(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return eO(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new rx(null,this._contextViewProvider,{width:Goe,label:Roe,placeholder:Ooe,appendCaseSensitiveLabel:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(kt.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(kt.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),dn&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Kh({label:Poe+this._keybindingLabelFor(kt.PreviousMatchFindAction),icon:Aoe,onTrigger:()=>{this._codeEditor.getAction(kt.PreviousMatchFindAction).run().then(void 0,Te)}})),this._nextBtn=this._register(new Kh({label:Foe+this._keybindingLabelFor(kt.NextMatchFindAction),icon:Moe,onTrigger:()=>{this._codeEditor.getAction(kt.NextMatchFindAction).run().then(void 0,Te)}}));const i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",i.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new y_({icon:Eoe,title:Boe+this._keybindingLabelFor(kt.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Kh({label:Woe+this._keybindingLabelFor(kt.CloseFindWidgetCommand),icon:K5,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ax(null,void 0,{label:Voe,placeholder:Hoe,appendPreserveCaseLabel:this._keybindingLabelFor(kt.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new Kh({label:zoe+this._keybindingLabelFor(kt.ReplaceOneAction),icon:Noe,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new Kh({label:Uoe+this._keybindingLabelFor(kt.ReplaceAllAction),icon:Toe,onTrigger:()=>{this._controller.replaceAll()}}));const s=document.createElement("div");s.className="replace-part",s.appendChild(this._replaceInput.domNode);const r=document.createElement("div");r.className="replace-actions",s.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Kh({label:$oe,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${fr}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(s),this._resizeSash=new tn(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=fr;this._register(this._resizeSash.onDidStart(()=>{a=co(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;const c=a+l.startX-l.currentX;if(cd||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const l=co(this._domNode);if(l{this._opts.onTrigger(),i.preventDefault()}),this.onkeydown(this._domNode,i=>{var n,s;if(i.equals(10)||i.equals(3)){this._opts.onTrigger(),i.preventDefault();return}(s=(n=this._opts).onKeyDown)===null||s===void 0||s.call(n,i)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...at.asClassNameArray(GR)),this._domNode.classList.add(...at.asClassNameArray(ZR))):(this._domNode.classList.remove(...at.asClassNameArray(ZR)),this._domNode.classList.add(...at.asClassNameArray(GR)))}}Et((o,e)=>{const t=(f,_)=>{_&&e.addRule(`.monaco-editor ${f} { background-color: ${_}; }`)};t(".findMatch",o.getColor(Va)),t(".currentFindMatch",o.getColor(Mz)),t(".findScope",o.getColor(Rz));const i=o.getColor(li);t(".find-widget",i);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(cd);s&&e.addRule(`.monaco-editor .findMatch { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(Oz);r&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r}; padding: 1px; box-sizing: border-box; }`);const a=o.getColor(Pz);a&&e.addRule(`.monaco-editor .findScope { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; }`);const l=o.getColor(We);l&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=o.getColor(zo);c&&e.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const d=o.getColor(fz);d&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${d}; }`);const h=o.getColor(Sz);if(h)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{const f=o.getColor(Ba);f&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${f}; }`)}const u=o.getColor(hD);u&&e.addRule(` .monaco-editor .find-widget .button:not(.disabled):hover, .monaco-editor .find-widget .codicon-find-selection:hover { background-color: ${u} !important; @@ -758,7 +758,7 @@ The flag will not be saved for the future. `)});class qre extends ce{constructor(){super({id:"editor.action.fontZoomIn",label:p("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){el.setZoomLevel(el.getZoomLevel()+1)}}class Gre extends ce{constructor(){super({id:"editor.action.fontZoomOut",label:p("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){el.setZoomLevel(el.getZoomLevel()-1)}}class Zre extends ce{constructor(){super({id:"editor.action.fontZoomReset",label:p("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){el.setZoomLevel(0)}}ie(qre);ie(Gre);ie(Zre);var o9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},lT=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Hm=class{constructor(e,t,i){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._disposables=new Q,this._sessionDisposables=new Q,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(n=>{n.hasChanged(51)&&this._update()}))}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(51)||!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new cu;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(n=>{const s=n.charCodeAt(n.length-1);i.has(s)&&this._trigger(String.fromCharCode(s))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),n=new Qi,s=this._editor.onDidChangeModelContent(r=>{if(r.isFlush){n.cancel(),s.dispose();return}for(let a=0,l=r.changes.length;a{n.token.isCancellationRequested||rn(r)&&(Lg.execute(this._editor,r,!0),AN(r))}).finally(()=>{s.dispose()})}};Hm.ID="editor.contrib.autoFormat";Hm=o9([yC(1,de),yC(2,to)],Hm);let zm=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new Q,this._callOnModel=new Q,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(50)&&(!this.editor.hasModel()||!this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())||this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e))))}_trigger(e){!this.editor.hasModel()||this.editor.getSelections().length>1||this._instantiationService.invokeFunction(f3,this.editor,e,2,Ch.None,ze.None).catch(Te)}};zm.ID="editor.contrib.formatOnPaste";zm=o9([yC(1,de),yC(2,Ae)],zm);class Yre extends ce{constructor(){super({id:"editor.action.formatDocument",label:p("formatDocument.label","Format Document"),alias:"Format Document",precondition:se.and(N.notInCompositeEditor,N.writable,N.hasDocumentFormattingProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return lT(this,void 0,void 0,function*(){if(t.hasModel()){const i=e.get(Ae);yield e.get(kc).showWhile(i.invokeFunction(vte,t,1,Ch.None,ze.None),250)}})}}class Qre extends ce{constructor(){super({id:"editor.action.formatSelection",label:p("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:se.and(N.writable,N.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2084),weight:100},contextMenuOpts:{when:N.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return lT(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ae),n=t.getModel(),s=t.getSelections().map(a=>a.isEmpty()?new L(a.startLineNumber,1,a.startLineNumber,n.getLineMaxColumn(a.startLineNumber)):a);yield e.get(kc).showWhile(i.invokeFunction(f3,t,s,1,Ch.None,ze.None),250)})}}tt(Hm.ID,Hm);tt(zm.ID,zm);ie(Yre);ie(Qre);Xe.registerCommand("editor.action.format",o=>lT(void 0,void 0,void 0,function*(){const e=o.get(ct).getFocusedCodeEditor();if(!e||!e.hasModel())return;const t=o.get(ci);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}));var Xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ny=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Jre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class xu{remove(){var e;(e=this.parent)===null||e===void 0||e.children.delete(this.id)}static findId(e,t){let i;typeof e=="string"?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,t.children.get(i)!==void 0&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let s=0;t.children.get(n)!==void 0;s++)n=`${i}_${s}`;return n}static empty(e){return e.children.size===0}}class LC extends xu{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class eae extends xu{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class Ea extends xu{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(e,t,i){const n=new Qi(i),s=new Ea(t.uri),r=e.ordered(t),a=r.map((c,d)=>{var h;const u=xu.findId(`provider_${d}`,s),g=new eae(u,s,(h=c.displayName)!==null&&h!==void 0?h:"Unknown Outline Provider",d);return Promise.resolve(c.provideDocumentSymbols(t,n.token)).then(f=>{for(const _ of f||[])Ea._makeOutlineElement(_,g);return g},f=>(Pi(f),g)).then(f=>{xu.empty(f)?f.remove():s._groups.set(u,f)})}),l=e.onDidChange(()=>{const c=e.ordered(t);Ss(c,r)||n.cancel()});return Promise.all(a).then(()=>n.token.isCancellationRequested&&!i.isCancellationRequested?Ea.create(e,t,i):s._compact()).finally(()=>{l.dispose()})}static _makeOutlineElement(e,t){const i=xu.findId(e,t),n=new LC(i,t,e);if(e.children)for(const s of e.children)Ea._makeOutlineElement(s,n);t.children.set(n.id,n)}_compact(){let e=0;for(const[t,i]of this._groups)i.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{const t=je.first(this._groups.values());for(const[,i]of t.children)i.parent=this,this.children.set(i.id,i)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof LC?e.push(t.symbol):e.push(...je.map(t.children.values(),i=>i.symbol));return e.sort((t,i)=>L.compareRangesUsingStarts(t.range,i.range))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return Ea._flattenDocumentSymbols(t,e,""),t.sort((i,n)=>B.compare(L.getStartPosition(i.range),L.getStartPosition(n.range))||B.compare(L.getEndPosition(n.range),L.getEndPosition(i.range)))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&Ea._flattenDocumentSymbols(e,n.children,n.name)}}const pw=Ye("IOutlineModelService");let wx=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new Q,this._cache=new Dc(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved(n=>{this._cache.delete(n.id)}))}dispose(){this._disposables.dispose()}getOrCreate(e,t){return Jre(this,void 0,void 0,function*(){const i=this._languageFeaturesService.documentSymbolProvider,n=i.ordered(e);let s=this._cache.get(e.id);if(!s||s.versionId!==e.getVersionId()||!Ss(s.provider,n)){const a=new Qi;s={versionId:e.getVersionId(),provider:n,promiseCnt:0,source:a,promise:Ea.create(i,e,a.token),model:void 0},this._cache.set(e.id,s);const l=Date.now();s.promise.then(c=>{s.model=c,this._debounceInformation.update(e,Date.now()-l)}).catch(c=>{this._cache.delete(e.id)})}if(s.model)return s.model;s.promiseCnt+=1;const r=t.onCancellationRequested(()=>{--s.promiseCnt===0&&(s.source.cancel(),this._cache.delete(e.id))});try{return yield s.promise}finally{r.dispose()}})}};wx=Xre([Ny(0,de),Ny(1,no),Ny(2,Ut)],wx);et(pw,wx,!0);var tae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};Xe.registerCommand("_executeDocumentSymbolProvider",function(o,...e){return tae(this,void 0,void 0,function*(){const[t]=e;pt(_e.isUri(t));const i=o.get(pw),s=yield o.get(Kn).createModelReference(t);try{return(yield i.getOrCreate(s.object.textEditorModel,ze.None)).getTopLevelSymbols()}finally{s.dispose()}})});const DC="editor.action.inlineSuggest.commit";function iae(o,e){return{object:o,dispose:()=>e==null?void 0:e.dispose()}}function nae(o,e){const t=new sae(o),i=e.map(n=>{const s=L.lift(n.range);return{startOffset:t.getOffset(s.getStartPosition()),endOffset:t.getOffset(s.getEndPosition()),text:n.text}});i.sort((n,s)=>s.startOffset-n.startOffset);for(const n of i)o=o.substring(0,n.startOffset)+n.text+o.substring(n.endOffset);return o}class sae{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t({range:{startLineNumber:1,endLineNumber:1,startColumn:s.column,endColumn:s.column},text:s.lines.join(` `)}))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(e=>e.lines.length===0)}}class Sx{constructor(e,t,i){this.column=e,this.lines=t,this.preview=i}}class a9{constructor(e,t,i,n,s=0){this.lineNumber=e,this.columnStart=t,this.length=i,this.newLines=n,this.additionalReservedLineCount=s,this.parts=[new Sx(this.columnStart+this.length,this.newLines,!1)]}renderForScreenReader(e){return this.newLines.join(` -`)}}class l9 extends H{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(108)&&this._expanded===void 0&&this.onDidChangeEmitter.fire()}))}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}function kC(o,e){if(!e)return e;const t=o.getValueInRange(e.range),i=Nd(t,e.insertText),n=o.getOffsetAt(e.range.getStartPosition())+i,s=o.getPositionAt(n),r=t.substr(i),a=Wp(r,e.insertText),l=o.getPositionAt(Math.max(n,o.getOffsetAt(e.range.getEndPosition())-a));return{range:L.fromPositions(s,l),insertText:e.insertText.substr(i,e.insertText.length-i-a),snippetInfo:e.snippetInfo,filterText:e.filterText,additionalTextEdits:e.additionalTextEdits}}function aae(o,e){return o===e?!0:!o||!e?!1:o.range.equalsRange(e.range)&&o.insertText===e.insertText&&o.command===e.command}function c9(o,e,t,i,n=0){if(o.range.startLineNumber!==o.range.endLineNumber)return;const s=e.getLineContent(o.range.startLineNumber),r=_t(s).length;if(o.range.startColumn-1<=r){const g=_t(o.insertText).length,f=s.substring(o.range.startColumn-1,r),_=L.fromPositions(o.range.getStartPosition().delta(0,f.length),o.range.getEndPosition()),b=o.insertText.startsWith(f)?o.insertText.substring(f.length):o.insertText.substring(g);o={range:_,insertText:b,command:o.command,snippetInfo:void 0,filterText:o.filterText,additionalTextEdits:o.additionalTextEdits}}const l=e.getValueInRange(o.range),c=lae(l,o.insertText);if(!c)return;const d=o.range.startLineNumber,h=new Array;if(t==="prefix"){const g=c.filter(f=>f.originalLength===0);if(g.length>1||g.length===1&&g[0].originalStart!==l.length)return}const u=o.insertText.length-n;for(const g of c){const f=o.range.startColumn+g.originalStart+g.originalLength;if(t==="subwordSmart"&&i&&i.lineNumber===o.range.startLineNumber&&f0)return;if(g.modifiedLength===0)continue;const _=g.modifiedStart+g.modifiedLength,b=Math.max(g.modifiedStart,Math.min(_,u)),v=o.insertText.substring(g.modifiedStart,b),C=o.insertText.substring(b,Math.max(g.modifiedStart,_));if(v.length>0){const w=jr(v);h.push(new Sx(f,w,!1))}if(C.length>0){const w=jr(C);h.push(new Sx(f,w,!0))}}return new r9(d,h,0)}let pr;function lae(o,e){if((pr==null?void 0:pr.originalValue)===o&&(pr==null?void 0:pr.newValue)===e)return pr==null?void 0:pr.changes;{let t=oO(o,e,!0);if(t){const i=sO(t);if(i>0){const n=oO(o,e,!1);n&&sO(n)5e3||e.length>5e3)return;function i(c){let d=0;for(let h=0,u=c.length;hd&&(d=g)}return d}const n=Math.max(i(o),i(e));function s(c){if(c<0)throw new Error("unexpected");return n+c+1}function r(c){let d=0,h=0;const u=new Int32Array(c.length);for(let g=0,f=c.length;ga},{getElements:()=>l}).ComputeDiff(!1).changes}function cae(o,e){const t=new lF,i=new dF(t,c=>e.getLanguageConfiguration(c)),n=new cF(new dae([o]),i),s=CD(n,[],void 0,!0);let r="";const a=o.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=Xt(d,c.openingBracket.length),c.child&&(l(c.child,d),d=Xt(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=Xt(d,c.closingBracket.length);else{const u=i.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);r+=u}else if(c.kind!==3){if(c.kind===0||c.kind===1)r+=a.substring(d,Xt(d,c.length));else if(c.kind===4)for(const h of c.children)l(h,d),d=Xt(d,h.length)}}return l(s,mo),r}class dae{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var hae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Of=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Na=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let yx=class extends H{constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.cache=t,this.commandService=i,this.languageConfigurationService=n,this.languageFeaturesService=s,this.debounceService=r,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new _n),this.active=!1,this.disposed=!1,this.debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(i.onDidExecuteCommand(l=>{new Set([Wu.Tab.id,Wu.DeleteLeft.id,Wu.DeleteRight.id,DC,"acceptSelectedSuggestion"]).has(l.commandId)&&e.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(l=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(l=>{(l.reason===3||this.session&&!this.session.isValid)&&this.hide()})),this._register(Be(()=>{this.disposed=!0})),this._register(this.editor.onDidBlurEditorWidget(()=>{a.getValue("editor.inlineSuggest.hideOnBlur")||this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.disposed||this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var e;return(e=this.session)===null||e===void 0?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}setExpanded(e){var t;(t=this.session)===null||t===void 0||t.setExpanded(e)}setActive(e){var t;this.active=e,e&&((t=this.session)===null||t===void 0||t.scheduleAutomaticUpdate())}startSessionIfTriggered(){!this.editor.getOption(57).enabled||this.session&&this.session.isValid||this.trigger(Ps.Automatic)}trigger(e){if(this.completionSession.value){e===Ps.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext();return}this.completionSession.value=new uae(this.editor,this.editor.getPosition(),()=>this.active,this.commandService,this.cache,e,this.languageConfigurationService,this.languageFeaturesService.inlineCompletionsProvider,this.debounceValue),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()}))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;(e=this.session)===null||e===void 0||e.commitCurrentCompletion()}showNext(){var e;(e=this.session)===null||e===void 0||e.showNextInlineCompletion()}showPrevious(){var e;(e=this.session)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){const t=yield(e=this.session)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};yx=hae([Of(2,ci),Of(3,si),Of(4,de),Of(5,no),Of(6,ot)],yx);class uae extends l9{constructor(e,t,i,n,s,r,a,l,c){super(e),this.triggerPosition=t,this.shouldUpdate=i,this.commandService=n,this.cache=s,this.initialTriggerKind=r,this.languageConfigurationService=a,this.registry=l,this.debounce=c,this.minReservedLineCount=0,this.updateOperation=this._register(new _n),this.updateSoon=this._register(new mt(()=>{const h=this.initialTriggerKind;return this.initialTriggerKind=Ps.Automatic,this.update(h)},50)),this.filteredCompletions=[],this.currentlySelectedCompletionId=void 0;let d;this._register(this.onDidChange(()=>{var h;const u=this.currentCompletion;if(u&&u.sourceInlineCompletion!==d){d=u.sourceInlineCompletion;const g=u.sourceProvider;(h=g.handleItemDidShow)===null||h===void 0||h.call(g,u.sourceInlineCompletions,d)}})),this._register(Be(()=>{this.cache.clear()})),this._register(this.editor.onDidChangeCursorPosition(h=>{var u;h.reason!==3&&((u=this.cache.value)===null||u===void 0||u.updateRanges(),this.cache.value&&(this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire()))})),this._register(this.editor.onDidChangeModelContent(h=>{var u;(u=this.cache.value)===null||u===void 0||u.updateRanges(),this.updateFilteredInlineCompletions(),this.scheduleAutomaticUpdate()})),this._register(this.registry.onDidChange(()=>{this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))})),this.scheduleAutomaticUpdate()}updateFilteredInlineCompletions(){if(!this.cache.value){this.filteredCompletions=[];return}const e=this.editor.getModel(),t=e.validatePosition(this.editor.getPosition());this.filteredCompletions=this.cache.value.completions.filter(i=>{const n=e.getValueInRange(i.synchronizedRange).toLowerCase(),s=i.inlineCompletion.filterText.toLowerCase(),r=e.getLineIndentColumn(i.synchronizedRange.startLineNumber),a=Math.max(0,t.column-i.synchronizedRange.startColumn);let l=s.substring(0,a),c=s.substring(a),d=n.substring(0,a),h=n.substring(a);return i.synchronizedRange.startColumn<=r&&(d=d.trimStart(),d.length===0&&(h=h.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&AF(h,c)})}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value||this.cache.value.completions.length===0)return 0;const e=this.filteredCompletions.findIndex(t=>t.semanticId===this.currentlySelectedCompletionId);return e===-1?(this.currentlySelectedCompletionId=void 0,0):e}get currentCachedCompletion(){if(!!this.cache.value)return this.filteredCompletions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}showPreviousInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+e.length-1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}ensureUpdateWithExplicitContext(){var e;return Na(this,void 0,void 0,function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===Ps.Explicit?yield this.updateOperation.value.promise:yield this.update(Ps.Explicit):((e=this.cache.value)===null||e===void 0?void 0:e.triggerKind)!==Ps.Explicit&&(yield this.update(Ps.Explicit))})}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){return yield this.ensureUpdateWithExplicitContext(),(((e=this.cache.value)===null||e===void 0?void 0:e.completions.length)||0)>1})}get ghostText(){const e=this.currentCompletion;if(!e)return;const t=this.editor.getPosition();if(e.range.getEndPosition().isBefore(t))return;const i=this.editor.getOptions().get(57).mode,n=c9(e,this.editor.getModel(),i,t);return n?n.isEmpty()?void 0:n:new a9(e.range.startLineNumber,e.range.startColumn,e.range.endColumn-e.range.startColumn,e.insertText.split(` +`)}}class l9 extends H{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(108)&&this._expanded===void 0&&this.onDidChangeEmitter.fire()}))}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}function kC(o,e){if(!e)return e;const t=o.getValueInRange(e.range),i=Nd(t,e.insertText),n=o.getOffsetAt(e.range.getStartPosition())+i,s=o.getPositionAt(n),r=t.substr(i),a=Wp(r,e.insertText),l=o.getPositionAt(Math.max(n,o.getOffsetAt(e.range.getEndPosition())-a));return{range:L.fromPositions(s,l),insertText:e.insertText.substr(i,e.insertText.length-i-a),snippetInfo:e.snippetInfo,filterText:e.filterText,additionalTextEdits:e.additionalTextEdits}}function aae(o,e){return o===e?!0:!o||!e?!1:o.range.equalsRange(e.range)&&o.insertText===e.insertText&&o.command===e.command}function c9(o,e,t,i,n=0){if(o.range.startLineNumber!==o.range.endLineNumber)return;const s=e.getLineContent(o.range.startLineNumber),r=_t(s).length;if(o.range.startColumn-1<=r){const g=_t(o.insertText).length,f=s.substring(o.range.startColumn-1,r),_=L.fromPositions(o.range.getStartPosition().delta(0,f.length),o.range.getEndPosition()),b=o.insertText.startsWith(f)?o.insertText.substring(f.length):o.insertText.substring(g);o={range:_,insertText:b,command:o.command,snippetInfo:void 0,filterText:o.filterText,additionalTextEdits:o.additionalTextEdits}}const l=e.getValueInRange(o.range),c=lae(l,o.insertText);if(!c)return;const d=o.range.startLineNumber,h=new Array;if(t==="prefix"){const g=c.filter(f=>f.originalLength===0);if(g.length>1||g.length===1&&g[0].originalStart!==l.length)return}const u=o.insertText.length-n;for(const g of c){const f=o.range.startColumn+g.originalStart+g.originalLength;if(t==="subwordSmart"&&i&&i.lineNumber===o.range.startLineNumber&&f0)return;if(g.modifiedLength===0)continue;const _=g.modifiedStart+g.modifiedLength,b=Math.max(g.modifiedStart,Math.min(_,u)),v=o.insertText.substring(g.modifiedStart,b),C=o.insertText.substring(b,Math.max(g.modifiedStart,_));if(v.length>0){const w=jr(v);h.push(new Sx(f,w,!1))}if(C.length>0){const w=jr(C);h.push(new Sx(f,w,!0))}}return new r9(d,h,0)}let pr;function lae(o,e){if((pr==null?void 0:pr.originalValue)===o&&(pr==null?void 0:pr.newValue)===e)return pr==null?void 0:pr.changes;{let t=oO(o,e,!0);if(t){const i=sO(t);if(i>0){const n=oO(o,e,!1);n&&sO(n)5e3||e.length>5e3)return;function i(c){let d=0;for(let h=0,u=c.length;hd&&(d=g)}return d}const n=Math.max(i(o),i(e));function s(c){if(c<0)throw new Error("unexpected");return n+c+1}function r(c){let d=0,h=0;const u=new Int32Array(c.length);for(let g=0,f=c.length;ga},{getElements:()=>l}).ComputeDiff(!1).changes}function cae(o,e){const t=new l5,i=new d5(t,c=>e.getLanguageConfiguration(c)),n=new c5(new dae([o]),i),s=CD(n,[],void 0,!0);let r="";const a=o.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=Xt(d,c.openingBracket.length),c.child&&(l(c.child,d),d=Xt(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=Xt(d,c.closingBracket.length);else{const u=i.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);r+=u}else if(c.kind!==3){if(c.kind===0||c.kind===1)r+=a.substring(d,Xt(d,c.length));else if(c.kind===4)for(const h of c.children)l(h,d),d=Xt(d,h.length)}}return l(s,mo),r}class dae{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var hae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Of=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Na=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let yx=class extends H{constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.cache=t,this.commandService=i,this.languageConfigurationService=n,this.languageFeaturesService=s,this.debounceService=r,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new _n),this.active=!1,this.disposed=!1,this.debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(i.onDidExecuteCommand(l=>{new Set([Wu.Tab.id,Wu.DeleteLeft.id,Wu.DeleteRight.id,DC,"acceptSelectedSuggestion"]).has(l.commandId)&&e.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(l=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(l=>{(l.reason===3||this.session&&!this.session.isValid)&&this.hide()})),this._register(Be(()=>{this.disposed=!0})),this._register(this.editor.onDidBlurEditorWidget(()=>{a.getValue("editor.inlineSuggest.hideOnBlur")||this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.disposed||this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var e;return(e=this.session)===null||e===void 0?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}setExpanded(e){var t;(t=this.session)===null||t===void 0||t.setExpanded(e)}setActive(e){var t;this.active=e,e&&((t=this.session)===null||t===void 0||t.scheduleAutomaticUpdate())}startSessionIfTriggered(){!this.editor.getOption(57).enabled||this.session&&this.session.isValid||this.trigger(Ps.Automatic)}trigger(e){if(this.completionSession.value){e===Ps.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext();return}this.completionSession.value=new uae(this.editor,this.editor.getPosition(),()=>this.active,this.commandService,this.cache,e,this.languageConfigurationService,this.languageFeaturesService.inlineCompletionsProvider,this.debounceValue),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()}))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;(e=this.session)===null||e===void 0||e.commitCurrentCompletion()}showNext(){var e;(e=this.session)===null||e===void 0||e.showNextInlineCompletion()}showPrevious(){var e;(e=this.session)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){const t=yield(e=this.session)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};yx=hae([Of(2,ci),Of(3,si),Of(4,de),Of(5,no),Of(6,ot)],yx);class uae extends l9{constructor(e,t,i,n,s,r,a,l,c){super(e),this.triggerPosition=t,this.shouldUpdate=i,this.commandService=n,this.cache=s,this.initialTriggerKind=r,this.languageConfigurationService=a,this.registry=l,this.debounce=c,this.minReservedLineCount=0,this.updateOperation=this._register(new _n),this.updateSoon=this._register(new mt(()=>{const h=this.initialTriggerKind;return this.initialTriggerKind=Ps.Automatic,this.update(h)},50)),this.filteredCompletions=[],this.currentlySelectedCompletionId=void 0;let d;this._register(this.onDidChange(()=>{var h;const u=this.currentCompletion;if(u&&u.sourceInlineCompletion!==d){d=u.sourceInlineCompletion;const g=u.sourceProvider;(h=g.handleItemDidShow)===null||h===void 0||h.call(g,u.sourceInlineCompletions,d)}})),this._register(Be(()=>{this.cache.clear()})),this._register(this.editor.onDidChangeCursorPosition(h=>{var u;h.reason!==3&&((u=this.cache.value)===null||u===void 0||u.updateRanges(),this.cache.value&&(this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire()))})),this._register(this.editor.onDidChangeModelContent(h=>{var u;(u=this.cache.value)===null||u===void 0||u.updateRanges(),this.updateFilteredInlineCompletions(),this.scheduleAutomaticUpdate()})),this._register(this.registry.onDidChange(()=>{this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))})),this.scheduleAutomaticUpdate()}updateFilteredInlineCompletions(){if(!this.cache.value){this.filteredCompletions=[];return}const e=this.editor.getModel(),t=e.validatePosition(this.editor.getPosition());this.filteredCompletions=this.cache.value.completions.filter(i=>{const n=e.getValueInRange(i.synchronizedRange).toLowerCase(),s=i.inlineCompletion.filterText.toLowerCase(),r=e.getLineIndentColumn(i.synchronizedRange.startLineNumber),a=Math.max(0,t.column-i.synchronizedRange.startColumn);let l=s.substring(0,a),c=s.substring(a),d=n.substring(0,a),h=n.substring(a);return i.synchronizedRange.startColumn<=r&&(d=d.trimStart(),d.length===0&&(h=h.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&A5(h,c)})}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value||this.cache.value.completions.length===0)return 0;const e=this.filteredCompletions.findIndex(t=>t.semanticId===this.currentlySelectedCompletionId);return e===-1?(this.currentlySelectedCompletionId=void 0,0):e}get currentCachedCompletion(){if(!!this.cache.value)return this.filteredCompletions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}showPreviousInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+e.length-1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}ensureUpdateWithExplicitContext(){var e;return Na(this,void 0,void 0,function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===Ps.Explicit?yield this.updateOperation.value.promise:yield this.update(Ps.Explicit):((e=this.cache.value)===null||e===void 0?void 0:e.triggerKind)!==Ps.Explicit&&(yield this.update(Ps.Explicit))})}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){return yield this.ensureUpdateWithExplicitContext(),(((e=this.cache.value)===null||e===void 0?void 0:e.completions.length)||0)>1})}get ghostText(){const e=this.currentCompletion;if(!e)return;const t=this.editor.getPosition();if(e.range.getEndPosition().isBefore(t))return;const i=this.editor.getOptions().get(57).mode,n=c9(e,this.editor.getModel(),i,t);return n?n.isEmpty()?void 0:n:new a9(e.range.startLineNumber,e.range.startColumn,e.range.endColumn-e.range.startColumn,e.insertText.split(` `),0)}get currentCompletion(){const e=this.currentCachedCompletion;if(!!e)return e.toLiveInlineCompletion()}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))}update(e){return Na(this,void 0,void 0,function*(){if(!this.shouldUpdate())return;const t=this.editor.getPosition(),i=new Date,n=Ri(r=>Na(this,void 0,void 0,function*(){let a;try{a=yield h9(this.registry,t,this.editor.getModel(),{triggerKind:e,selectedSuggestionInfo:void 0},r,this.languageConfigurationService);const l=new Date;this.debounce.update(this.editor.getModel(),l.getTime()-i.getTime())}catch(l){Te(l);return}r.isCancellationRequested||(this.cache.setValue(this.editor,a,e),this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire())})),s=new d9(n,e);this.updateOperation.value=s,yield n,this.updateOperation.value===s&&this.updateOperation.clear()})}takeOwnership(e){this._register(e)}commitCurrentCompletion(){if(!this.ghostText)return;const t=this.currentCompletion;t&&this.commit(t)}commit(e){var t;const i=this.cache.clearAndLeak();e.snippetInfo?(this.editor.executeEdits("inlineSuggestion.accept",[Ft.replaceMove(e.range,""),...e.additionalTextEdits]),this.editor.setPosition(e.snippetInfo.range.getStartPosition()),(t=Oi.get(this.editor))===null||t===void 0||t.insert(e.snippetInfo.snippet)):this.editor.executeEdits("inlineSuggestion.accept",[Ft.replaceMove(e.range,e.insertText),...e.additionalTextEdits]),e.command?this.commandService.executeCommand(e.command.id,...e.command.arguments||[]).finally(()=>{i==null||i.dispose()}).then(void 0,Pi):i==null||i.dispose(),this.onDidChangeEmitter.fire()}get commands(){var e;return[...new Set(((e=this.cache.value)===null||e===void 0?void 0:e.completions.map(i=>i.inlineCompletion.sourceInlineCompletions))||[])].flatMap(i=>i.commands||[])}}class d9{constructor(e,t){this.promise=e,this.triggerKind=t}dispose(){this.promise.cancel()}}class gae extends H{constructor(e,t,i,n){super(),this.editor=t,this.onChange=i,this.triggerKind=n,this.isDisposing=!1;const s=t.changeDecorations(r=>r.deltaDecorations([],e.items.map(a=>({range:a.range,options:{description:"inline-completion-tracking-range"}}))));this._register(Be(()=>{this.isDisposing=!0,t.removeDecorations(s)})),this.completions=e.items.map((r,a)=>new fae(r,s[a])),this._register(t.onDidChangeModelContent(()=>{this.updateRanges()})),this._register(e)}updateRanges(){if(this.isDisposing)return;let e=!1;const t=this.editor.getModel();for(const i of this.completions){const n=t.getDecorationRange(i.decorationId);if(!n){Te(new Error("Decoration has no range"));continue}i.synchronizedRange.equalsRange(n)||(e=!0,i.synchronizedRange=n)}e&&this.onChange()}}class fae{constructor(e,t){this.inlineCompletion=e,this.decorationId=t,this.semanticId=JSON.stringify({text:this.inlineCompletion.insertText,abbreviation:this.inlineCompletion.filterText,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=e.range}toLiveInlineCompletion(){return{insertText:this.inlineCompletion.insertText,range:this.synchronizedRange,command:this.inlineCompletion.command,sourceProvider:this.inlineCompletion.sourceProvider,sourceInlineCompletions:this.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:this.inlineCompletion.sourceInlineCompletion,snippetInfo:this.inlineCompletion.snippetInfo,filterText:this.inlineCompletion.filterText,additionalTextEdits:this.inlineCompletion.additionalTextEdits}}}function h9(o,e,t,i,n=ze.None,s){return Na(this,void 0,void 0,function*(){const r=pae(e,t),a=o.all(t),l=yield Promise.all(a.map(d=>Na(this,void 0,void 0,function*(){const h=yield Promise.resolve(d.provideInlineCompletions(t,e,i,n)).catch(Pi);return{completions:h,provider:d,dispose:()=>{h&&d.freeInlineCompletions(h)}}}))),c=new Map;for(const d of l){const h=d.completions;if(!!h)for(const u of h.items){let g=u.range?L.lift(u.range):r;if(g.startLineNumber!==g.endLineNumber)continue;let f,_;if(typeof u.insertText=="string"){if(f=u.insertText,s&&u.completeBracketPairs){f=mae(f,g.getStartPosition(),t,s);const v=f.length-u.insertText.length;v!==0&&(g=new L(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn+v))}_=void 0}else"snippet"in u.insertText?(f=new _c().parse(u.insertText.snippet).toString(),_={snippet:u.insertText.snippet,range:g}):OC(u.insertText);const b={insertText:f,snippetInfo:_,range:g,command:u.command,sourceProvider:d.provider,sourceInlineCompletions:h,sourceInlineCompletion:u,filterText:u.filterText||f,additionalTextEdits:u.additionalTextEdits||rae()};c.set(JSON.stringify({insertText:f,range:u.range}),b)}}return{items:[...c.values()],dispose:()=>{for(const d of l)d.dispose()}}})}function pae(o,e){const t=e.getWordAtPosition(o),i=e.getLineMaxColumn(o.lineNumber);return t?new L(o.lineNumber,t.startColumn,o.lineNumber,i):L.fromPositions(o,o.with(void 0,i))}function mae(o,e,t,i){const s=t.getLineContent(e.lineNumber).substring(0,e.column-1)+o,r=t.tokenization.tokenizeLineWithEdit(e,s.length-(e.column-1),o),a=r==null?void 0:r.sliceAndInflate(e.column-1,s.length,0);return a?cae(a,i):o}var _ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class cT{constructor(e){this.name=e}select(e,t,i){if(i.length===0)return 0;const n=i[0].score[0];for(let s=0;sl&&h.type===i[c].completion.kind&&h.insertText===i[c].completion.insertText&&(l=h.touch,a=c),i[c].completion.preselect&&r===-1)return r=c}return a!==-1?a:r!==-1?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();const t=0;for(const[i,n]of e)n.touch=t,n.type=typeof n.type=="number"?n.type:Pp.fromString(n.type),this._cache.set(i,n);this._seq=this._cache.size}}class vae extends cT{constructor(){super("recentlyUsedByPrefix"),this._trie=Uu.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),s=`${e.getLanguageId()}/${n}`;this._trie.set(s,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const s=`${e.getLanguageId()}/${n}`;let r=this._trie.get(s);if(r||(r=this._trie.findSubstr(s)),r)for(let a=0;ae.push([i,t])),e.sort((t,i)=>-(t[1].touch-i[1].touch)).forEach((t,i)=>t[1].touch=i),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type=typeof i.type=="number"?i.type:Pp.fromString(i.type),this._trie.set(t,i)}}}let Um=class O0{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new Q,this._persistSoon=new mt(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(i=>{i.reason===lC.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(((i=this._strategy)===null||i===void 0?void 0:i.name)!==n){this._saveState();const s=O0._strategyCtors.get(n)||u9;this._strategy=new s;try{const a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${O0._storagePrefix}/${n}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch{}}return this._strategy}_saveState(){if(this._strategy){const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=JSON.stringify(this._strategy);this._storageService.store(`${O0._storagePrefix}/${this._strategy.name}`,i,t,1)}}};Um._strategyCtors=new Map([["recentlyUsedByPrefix",vae],["recentlyUsed",bae],["first",u9]]);Um._storagePrefix="suggest/memories";Um=_ae([rO(0,Do),rO(1,ot)],Um);const mw=Ye("ISuggestMemories");et(mw,Um,!0);var Cae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wae=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let $m=class g9{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=g9.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(i=>i.hasChanged(113)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),(e=this._selectionListener)===null||e===void 0||e.dispose(),this._ckAtEnd.reset()}_update(){const e=this._editor.getOption(113)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){const t=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const i=this._editor.getModel(),n=this._editor.getSelection(),s=i.getWordAtPosition(n.getStartPosition());if(!s){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(s.endColumn===n.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};$m.AtEnd=new le("atEndOfWord",!1);$m=Cae([wae(1,Ee)],$m);var Sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yae=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ih=class P0{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=P0.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),(e=this._listener)===null||e===void 0||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(e.items.length===0){this.reset();return}if(P0._moveIndex(!0,e,t)===t){this.reset();return}this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(e,t,i){let n=i;for(;n=(n+t.items.length+(e?1:-1))%t.items.length,!(n===i||!t.items[n].completion.additionalTextEdits););return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(!!this._model)try{this._ignore=!0,this._index=P0._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};ih.OtherSuggestions=new le("hasOtherSuggestions",!1);ih=Sae([yae(1,Ee)],ih);class Lae{constructor(e,t,i){this._disposables=new Q,this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(n=>{if(this._active&&!t.isFrozen()){const s=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(s)&&e.getOption(0)&&i(this._active.item)}}))}_onItem(e){if(!e||!rn(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;const t=new cu;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var Dae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class fs{provideSelectionRanges(e,t){return Dae(this,void 0,void 0,function*(){const i=[];for(const n of t){const s=[];i.push(s);const r=new Map;yield new Promise(a=>fs._bracketsRightYield(a,0,e,n,r)),yield new Promise(a=>fs._bracketsLeftYield(a,0,e,n,r,s))}return i})}static _bracketsRightYield(e,t,i,n,s){const r=new Map,a=Date.now();for(;;){if(t>=fs._maxRounds){e();break}if(!n){e();break}const l=i.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-a>fs._maxDuration){setTimeout(()=>fs._bracketsRightYield(e,t+1,i,n,s));break}if(l.bracketInfo.isOpeningBracket){const d=l.bracketInfo.bracketText,h=r.has(d)?r.get(d):0;r.set(d,h+1)}else{const d=l.bracketInfo.getClosedBrackets()[0].bracketText;let h=r.has(d)?r.get(d):0;if(h-=1,r.set(d,Math.max(0,h)),h<0){let u=s.get(d);u||(u=new Dn,s.set(d,u)),u.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,s,r){const a=new Map,l=Date.now();for(;;){if(t>=fs._maxRounds&&s.size===0){e();break}if(!n){e();break}const c=i.bracketPairs.findPrevBracket(n);if(!c){e();break}if(Date.now()-l>fs._maxDuration){setTimeout(()=>fs._bracketsLeftYield(e,t+1,i,n,s,r));break}if(c.bracketInfo.isOpeningBracket){const h=c.bracketInfo.bracketText;let u=a.has(h)?a.get(h):0;if(u-=1,a.set(h,Math.max(0,u)),u<0){const g=s.get(h);if(g){const f=g.shift();g.size===0&&s.delete(h);const _=L.fromPositions(c.range.getEndPosition(),f.getStartPosition()),b=L.fromPositions(c.range.getStartPosition(),f.getEndPosition());r.push({range:_}),r.push({range:b}),fs._addBracketLeading(i,b,r)}}}else{const h=c.bracketInfo.getClosedBrackets()[0].bracketText,u=a.has(h)?a.get(h):0;a.set(h,u+1)}n=c.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(n);s!==0&&s!==t.startColumn&&(i.push({range:L.fromPositions(new B(n,s),t.getEndPosition())}),i.push({range:L.fromPositions(new B(n,1),t.getEndPosition())}));const r=n-1;if(r>0){const a=e.getLineFirstNonWhitespaceColumn(r);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(r)&&(i.push({range:L.fromPositions(new B(r,a),t.getEndPosition())}),i.push({range:L.fromPositions(new B(r,1),t.getEndPosition())}))}}}fs._maxDuration=30;fs._maxRounds=2;var kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fo{static create(e,t){return kae(this,void 0,void 0,function*(){if(!t.getOption(108).localityBonus||!t.hasModel())return Fo.None;const i=t.getModel(),n=t.getPosition();if(!e.canComputeWordRanges(i.uri))return Fo.None;const[s]=yield new fs().provideSelectionRanges(i,[n]);if(s.length===0)return Fo.None;const r=yield e.computeWordRanges(i.uri,s[0].range);if(!r)return Fo.None;const a=i.getWordUntilPosition(n);return delete r[a.word],new class extends Fo{distance(l,c){if(!n.equals(t.getPosition()))return 0;if(c.kind===17)return 2<<20;const d=typeof c.label=="string"?c.label:c.label.label,h=r[d];if(WO(h))return 2<<20;const u=aI(h,L.fromPositions(l),L.compareRangesUsingStarts),g=u>=0?h[u]:h[Math.max(0,~u-1)];let f=s.length;for(const _ of s){if(!L.containsRange(_.range,g))break;f-=1}return f}}})}}Fo.None=new class extends Fo{distance(){return 0}};class aO{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class Al{constructor(e,t,i,n,s,r,a=$E.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=Al._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=s,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=a,r==="top"?this._snippetCompareFn=Al._compareCompletionItemsSnippetsUp:r==="bottom"&&(this._snippetCompareFn=Al._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){(this._lineContext.leadingLineContent!==e.leadingLineContent||this._lineContext.characterCountDelta!==e.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta2e3?mg:rZ;for(let c=0;c=u)d.score=Zo.Default;else if(typeof d.completion.filterText=="string"){const f=l(n,s,g,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!f)continue;FL(d.completion.filterText,d.textLabel)===0?d.score=f:(d.score=iZ(n,s,g,d.textLabel,d.labelLow,0),d.score[0]=f[0])}else{const f=l(n,s,g,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!f)continue;d.score=f}}d.idx=c,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),e.push(d.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?Uy(e.length-.85,e,(c,d)=>c-d):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return Al._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return Al._compareCompletionItems(e,t)}}var xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zc=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qh{constructor(e,t,i,n,s){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=i,this.shy=n,this.noSelect=s}static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!(!n||n.endColumn!==i.column||!isNaN(Number(n.word)))}}function Eae(o,e,t){if(!Boolean(e.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getValue("editor.inlineSuggest.allowQuickSuggestions");return i!==void 0?Boolean(i):!1}function Nae(o,e,t){if(!Boolean(e.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters");return i!==void 0?Boolean(i):!1}let Lx=class f9{constructor(e,t,i,n,s,r,a,l){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=s,this._contextKeyService=r,this._configurationService=a,this._languageFeaturesService=l,this._toDispose=new Q,this._triggerCharacterListener=new Q,this._triggerQuickSuggest=new xs,this._state=0,this._completionDisposables=new Q,this._onDidCancel=new R,this._onDidTrigger=new R,this._onDidSuggest=new R,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new oe(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let c=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{c=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{c=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(d=>{c||this._onCursorChange(d)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{c||this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){nt(this._triggerCharacterListener),nt([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(83)||!this._editor.hasModel()||!this._editor.getOption(111))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const n of i.triggerCharacters||[]){let s=e.get(n);s||(s=new Set,s.add(wse()),e.set(n,s)),s.add(i)}const t=i=>{if(!Nae(this._editor,this._contextKeyService,this._configurationService)||qh.shouldAutoTrigger(this._editor))return;if(!i){const r=this._editor.getPosition();i=this._editor.getModel().getLineContent(r.lineNumber).substr(0,r.column-1)}let n="";Td(i.charCodeAt(i.length-1))?Li(i.charCodeAt(i.length-2))&&(n=i.substr(i.length-2)):n=i.charAt(i.length-1);const s=e.get(n);if(s){const r=this._completionModel?{items:this._completionModel.adopt(s),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,noSelect:!1,triggerCharacter:n},Boolean(this._completionModel),s,r)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>t()))}get state(){return this._state}cancel(e=!1){var t;this._state!==0&&(this._triggerQuickSuggest.cancel(),(t=this._requestToken)===null||t===void 0||t.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._state!==0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1,noSelect:!1},!0))}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||e.reason!==0&&e.reason!==3||e.source!=="keyboard"&&e.source!=="deleteLeft"){this.cancel();return}this._state===0&&e.reason===0?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._state!==0&&e.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._state===0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;ku.isAllOff(this._editor.getOption(81))||this._editor.getOption(108).snippetsPreventQuickSuggestions&&((e=Oi.get(this._editor))===null||e===void 0?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._state!==0||!qh.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const t=this._editor.getModel(),i=this._editor.getPosition(),n=this._editor.getOption(81);if(!ku.isAllOff(n)){if(!ku.isAllOn(n)){t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.tokenization.getLineTokens(i.lineNumber),r=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(i.column-1-1,0)));if(ku.valueFor(n,r)!=="on")return}!Eae(this._editor,this._contextKeyService,this._configurationService)||!this._languageFeaturesService.completionProvider.has(t)||this.trigger({auto:!0,shy:!1,noSelect:!1})}},this._editor.getOption(82)))}_refilterCompletionItems(){Promise.resolve().then(()=>{if(this._state===0||!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=new qh(e,t,this._state===2,!1,!1);this._onNewContext(i)})}trigger(e,t=!1,i,n,s){var r;if(!this._editor.hasModel())return;const a=this._editor.getModel(),l=e.auto,c=new qh(a,this._editor.getPosition(),l,e.shy,e.noSelect);this.cancel(t),this._state=l?2:1,this._onDidTrigger.fire({auto:l,shy:e.shy,position:this._editor.getPosition()}),this._context=c;let d={triggerKind:(r=e.triggerKind)!==null&&r!==void 0?r:0};e.triggerCharacter&&(d={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new Qi;const h=this._editor.getOption(103);let u=1;switch(h){case"top":u=0;break;case"bottom":u=2;break}const{itemKind:g,showDeprecated:f}=f9._createSuggestFilter(this._editor),_=new Bm(u,s?new Set:g,i,f),b=Fo.create(this._editorWorkerService,this._editor),v=QN(this._languageFeaturesService.completionProvider,a,this._editor.getPosition(),_,d,this._requestToken.token);Promise.all([v,b]).then(([C,w])=>Iae(this,void 0,void 0,function*(){var S;if((S=this._requestToken)===null||S===void 0||S.dispose(),!this._editor.hasModel())return;let k=n==null?void 0:n.clipboardText;if(!k&&C.needsClipboard&&(k=yield this._clipboardService.readText()),this._state===0)return;const x=this._editor.getModel();let y=C.items;if(n){const I=T7(u);y=y.concat(n.items).sort(I)}const D=new qh(x,this._editor.getPosition(),l,e.shy,e.noSelect);this._completionModel=new Al(y,this._context.column,{leadingLineContent:D.leadingLineContent,characterCountDelta:D.column-this._context.column},w,this._editor.getOption(108),this._editor.getOption(103),void 0,k),this._completionDisposables.add(C.disposable),this._onNewContext(D),this._reportDurationsTelemetry(C.durations)})).catch(Te)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static _createSuggestFilter(e){const t=new Set;e.getOption(103)==="none"&&t.add(27);const n=e.getOption(108);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),{itemKind:t,showDeprecated:n.showDeprecated}}_onNewContext(e){if(!!this._context){if(e.lineNumber!==this._context.lineNumber){this.cancel();return}if(_t(e.leadingLineContent)!==_t(this._context.leadingLineContent)){this.cancel();return}if(e.columnthis._context.leadingWord.startColumn){const t=new Set(this._languageFeaturesService.completionProvider.all(this._editor.getModel()));for(const n of this._completionModel.allProvider)t.delete(n);const i=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0,t,{items:i,clipboardText:this._completionModel.clipboardText});return}if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&e.leadingWord.word.length!==0){const{incomplete:t}=this._completionModel,i=this._completionModel.adopt(t);this.trigger({auto:this._state===2,shy:!1,noSelect:!1,triggerKind:2},!0,t,{items:i,clipboardText:this._completionModel.clipboardText})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){if(qh.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0,i&&e.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,noSelect:this._context.noSelect,isFrozen:i})}}}}};Lx=xae([zc(1,to),zc(2,cl),zc(3,sr),zc(4,So),zc(5,Ee),zc(6,ot),zc(7,de)],Lx);class _w{constructor(e,t){this._disposables=new Q,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(!this._empty||!e.hasModel())return;const i=e.getSelections(),n=i.length;let s=!1;for(let a=0;a_w._maxSelectionLength)return;this._lastOvertyped[a]={value:r.getValueInRange(l),multiline:l.startLineNumber!==l.endLineNumber}}this._empty=!1})),this._disposables.add(t.onDidCancel(i=>{!this._empty&&!i.retrigger&&(this._empty=!0)}))}getLastOvertypedInfo(e){if(!this._empty&&e>=0&&e=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ty=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class dT extends xg{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=p("ddd","{0} ({1})",this._action.label,dT.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return(t=e.getLabel())===null||t===void 0?void 0:t.replace(/\benter\b/gi,"\u23CE")}}let Dx=class{constructor(e,t,i,n){this._menuService=i,this._contextKeyService=n,this._menuDisposables=new Q,this.element=q(e,J(".suggest-status-bar"));const s=r=>r instanceof ac?t.createInstance(dT,r,void 0):void 0;this._leftActions=new Zr(this.element,{actionViewItemProvider:s}),this._rightActions=new Zr(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(Ql,this._contextKeyService),t=()=>{const i=[],n=[];for(const[s,r]of e.getActions())s==="left"?i.push(...r):n.push(...r);this._leftActions.clear(),this._leftActions.push(i),this._rightActions.clear(),this._rightActions.push(n)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};Dx=Tae([Ty(1,Ae),Ty(2,ph),Ty(3,Ee)],Dx);const Aae=T("symbolIcon.arrayForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mae=T("symbolIcon.booleanForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rae=T("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},p("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Oae=T("symbolIcon.colorForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pae=T("symbolIcon.constantForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Fae=T("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},p("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Bae=T("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},p("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Wae=T("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vae=T("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},p("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Hae=T("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zae=T("symbolIcon.fileForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Uae=T("symbolIcon.folderForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$ae=T("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},p("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),jae=T("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kae=T("symbolIcon.keyForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),qae=T("symbolIcon.keywordForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gae=T("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},p("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Zae=T("symbolIcon.moduleForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Yae=T("symbolIcon.namespaceForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qae=T("symbolIcon.nullForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Xae=T("symbolIcon.numberForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jae=T("symbolIcon.objectForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ele=T("symbolIcon.operatorForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tle=T("symbolIcon.packageForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ile=T("symbolIcon.propertyForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nle=T("symbolIcon.referenceForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sle=T("symbolIcon.snippetForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ole=T("symbolIcon.stringForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rle=T("symbolIcon.structForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ale=T("symbolIcon.textForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),lle=T("symbolIcon.typeParameterForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),cle=T("symbolIcon.unitForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),dle=T("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Et((o,e)=>{const t=o.getColor(Aae);t&&e.addRule(`${m.symbolArray.cssSelector} { color: ${t}; }`);const i=o.getColor(Mae);i&&e.addRule(`${m.symbolBoolean.cssSelector} { color: ${i}; }`);const n=o.getColor(Rae);n&&e.addRule(`${m.symbolClass.cssSelector} { color: ${n}; }`);const s=o.getColor(Gae);s&&e.addRule(`${m.symbolMethod.cssSelector} { color: ${s}; }`);const r=o.getColor(Oae);r&&e.addRule(`${m.symbolColor.cssSelector} { color: ${r}; }`);const a=o.getColor(Pae);a&&e.addRule(`${m.symbolConstant.cssSelector} { color: ${a}; }`);const l=o.getColor(Fae);l&&e.addRule(`${m.symbolConstructor.cssSelector} { color: ${l}; }`);const c=o.getColor(Bae);c&&e.addRule(` ${m.symbolValue.cssSelector},${m.symbolEnum.cssSelector} { color: ${c}; }`);const d=o.getColor(Wae);d&&e.addRule(`${m.symbolEnumMember.cssSelector} { color: ${d}; }`);const h=o.getColor(Vae);h&&e.addRule(`${m.symbolEvent.cssSelector} { color: ${h}; }`);const u=o.getColor(Hae);u&&e.addRule(`${m.symbolField.cssSelector} { color: ${u}; }`);const g=o.getColor(zae);g&&e.addRule(`${m.symbolFile.cssSelector} { color: ${g}; }`);const f=o.getColor(Uae);f&&e.addRule(`${m.symbolFolder.cssSelector} { color: ${f}; }`);const _=o.getColor($ae);_&&e.addRule(`${m.symbolFunction.cssSelector} { color: ${_}; }`);const b=o.getColor(jae);b&&e.addRule(`${m.symbolInterface.cssSelector} { color: ${b}; }`);const v=o.getColor(Kae);v&&e.addRule(`${m.symbolKey.cssSelector} { color: ${v}; }`);const C=o.getColor(qae);C&&e.addRule(`${m.symbolKeyword.cssSelector} { color: ${C}; }`);const w=o.getColor(Zae);w&&e.addRule(`${m.symbolModule.cssSelector} { color: ${w}; }`);const S=o.getColor(Yae);S&&e.addRule(`${m.symbolNamespace.cssSelector} { color: ${S}; }`);const k=o.getColor(Qae);k&&e.addRule(`${m.symbolNull.cssSelector} { color: ${k}; }`);const x=o.getColor(Xae);x&&e.addRule(`${m.symbolNumber.cssSelector} { color: ${x}; }`);const y=o.getColor(Jae);y&&e.addRule(`${m.symbolObject.cssSelector} { color: ${y}; }`);const D=o.getColor(ele);D&&e.addRule(`${m.symbolOperator.cssSelector} { color: ${D}; }`);const I=o.getColor(tle);I&&e.addRule(`${m.symbolPackage.cssSelector} { color: ${I}; }`);const O=o.getColor(ile);O&&e.addRule(`${m.symbolProperty.cssSelector} { color: ${O}; }`);const F=o.getColor(nle);F&&e.addRule(`${m.symbolReference.cssSelector} { color: ${F}; }`);const z=o.getColor(sle);z&&e.addRule(`${m.symbolSnippet.cssSelector} { color: ${z}; }`);const j=o.getColor(ole);j&&e.addRule(`${m.symbolString.cssSelector} { color: ${j}; }`);const re=o.getColor(rle);re&&e.addRule(`${m.symbolStruct.cssSelector} { color: ${re}; }`);const he=o.getColor(ale);he&&e.addRule(`${m.symbolText.cssSelector} { color: ${he}; }`);const Se=o.getColor(lle);Se&&e.addRule(`${m.symbolTypeParameter.cssSelector} { color: ${Se}; }`);const ye=o.getColor(cle);ye&&e.addRule(`${m.symbolUnit.cssSelector} { color: ${ye}; }`);const xe=o.getColor(dle);xe&&e.addRule(`${m.symbolVariable.cssSelector} { color: ${xe}; }`)});class p9{constructor(){this._onDidWillResize=new R,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new R,this.onDidResize=this._onDidResize.event,this._sashListener=new Q,this._size=new vt(0,0),this._minSize=new vt(0,0),this._maxSize=new vt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new tn(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new tn(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new tn(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:Fv.North}),this._southSash=new tn(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:Fv.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,i=0;this._sashListener.add(ge.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(ge.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(ge.any(this._eastSash.onDidReset,this._westSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(ge.any(this._northSash.onDidReset,this._southSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:s,width:r}=this._maxSize;e=Math.max(i,Math.min(s,e)),t=Math.max(n,Math.min(r,t));const a=new vt(t,e);vt.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}var hle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ule=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function hT(o){return!!o&&Boolean(o.completion.documentation||o.completion.detail&&o.completion.detail!==o.completion.label)}let kx=class{constructor(e,t){this._editor=e,this._onDidClose=new R,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new R,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new Q,this._renderDisposeable=new Q,this._borderWidth=1,this._size=new vt(330,0),this.domNode=J(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(ol,{editor:e}),this._body=J(".body"),this._scrollbar=new p_(this._body,{alwaysConsumeMouseWheel:!0}),q(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=q(this._body,J(".header")),this._close=q(this._header,J("span"+m.close.cssSelector)),this._close.title=p("details.close","Close"),this._type=q(this._header,J("p.type")),this._docs=q(this._body,J("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(46)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(46),i=t.getMassagedFontFamily(),n=e.get(109)||t.fontSize,s=e.get(110)||t.lineHeight,r=t.fontWeight,a=`${n}px`,l=`${s}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${s/n}`,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){const e=this._editor.getOption(110)||this._editor.getOption(46).lineHeight,t=this._borderWidth,i=t*2;return{lineHeight:e,borderWidth:t,borderHeight:i,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=p("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:r}=e.completion;if(t){let a="";a+=`score: ${e.score[0]} `,a+=`prefix: ${(i=e.word)!==null&&i!==void 0?i:"(no prefix)"} @@ -766,7 +766,7 @@ The flag will not be saved for the future. `,a+=`distance: ${e.distance} (localityBonus-setting) `,a+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"} `,a+=`commit_chars: ${(n=e.completion.commitCharacters)===null||n===void 0?void 0:n.join("")} -`,r=new Fn().appendCodeblock("empty",a),s=`Provider: ${e.provider._debugDisplayName}`}if(!t&&!hT(e)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),s){const a=s.length>1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=a,this._type.title=a,bs(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else Si(this._type),this._type.title="",Pn(this._type),this.domNode.classList.add("no-type");if(Si(this._docs),typeof r=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=r;else if(r){this._docs.classList.add("markdown-docs"),Si(this._docs);const a=this._markdownRenderer.render(r);this._docs.appendChild(a.element),this._renderDisposeable.add(a),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=a=>{a.preventDefault(),a.stopPropagation()},this._close.onclick=a=>{a.preventDefault(),a.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){const i=new vt(e,t);vt.equals(i,this._size)||(this._size=i,TH(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};kx=hle([ule(1,Ae)],kx);class gle{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new Q,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new p9,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let i,n,s=0,r=0;this._disposables.add(this._resizable.onDidWillResize(()=>{i=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(i&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(r=n.width-a.dimension.width,l=!0),a.north&&(s=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:i.top+s,left:i.left+r})}a.done&&(i=void 0,n=void 0,s=0,r=0,this._userSize=a.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var a;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(i=this._userSize)!==null&&i!==void 0?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=JC(document.body),r=this.widget.getLayoutInfo(),a=new vt(220,2*r.lineHeight),l=e.top,c=function(){const w=s.width-(e.left+e.width+r.borderWidth+r.horizontalPadding),S=-r.borderWidth+e.left+e.width,k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),d=function(){const w=e.left-r.borderWidth-r.horizontalPadding,S=Math.max(r.horizontalPadding,e.left-t.width-r.borderWidth),k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),h=function(){const w=e.left,S=-r.borderWidth+e.top+e.height,k=new vt(e.width-r.borderHeight,s.height-e.top-e.height-r.verticalPadding);return{top:S,left:w,fit:k.height-t.height,maxSizeBottom:k,maxSizeTop:k,minSize:a.with(k.width)}}(),u=[c,d,h],g=(n=u.find(w=>w.fit>=0))!==null&&n!==void 0?n:u.sort((w,S)=>S.fit-w.fit)[0],f=e.top+e.height-r.borderHeight;let _,b=t.height;const v=Math.max(g.maxSizeTop.height,g.maxSizeBottom.height);b>v&&(b=v);let C;i?b<=g.maxSizeTop.height?(_=!0,C=g.maxSizeTop):(_=!1,C=g.maxSizeBottom):b<=g.maxSizeBottom.height?(_=!1,C=g.maxSizeBottom):(_=!0,C=g.maxSizeTop),this._applyTopLeft({left:g.left,top:_?g.top:f-b}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!_,g===c,_,g!==c),this._resizable.minSize=g.minSize,this._resizable.maxSize=C,this._resizable.layout(b,Math.min(C.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}var Ka;(function(o){o[o.FILE=0]="FILE",o[o.FOLDER=1]="FOLDER",o[o.ROOT_FOLDER=2]="ROOT_FOLDER"})(Ka||(Ka={}));const fle=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function i0(o,e,t,i){const n=i===Ka.ROOT_FOLDER?["rootfolder-icon"]:i===Ka.FOLDER?["folder-icon"]:["file-icon"];if(t){let s;if(t.scheme===Me.data)s=cc.parseMetaData(t).get(cc.META_DATA_LABEL);else{const r=t.path.match(fle);r?(s=n0(r[2].toLowerCase()),r[1]&&n.push(`${n0(r[1].toLowerCase())}-name-dir-icon`)):s=n0(t.authority.toLowerCase())}if(i===Ka.FOLDER)n.push(`${s}-name-folder-icon`);else{if(s){if(n.push(`${s}-name-file-icon`),n.push("name-file-icon"),s.length<=255){const a=s.split(".");for(let l=1;l=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ay=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Pf;function m9(o){return`suggest-aria-id:${o}`}const _le=mi("suggest-more-info",m.chevronRight,p("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),ble=new(Pf=class F0{extract(e,t){if(e.textLabel.match(F0._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(F0._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){const i=F0._regexRelaxed.exec(e.completion.documentation);if(i&&(i.index===0||i.index+i[0].length===e.completion.documentation.length))return t[0]=i[0],!0}return!1}},Pf._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Pf._regexStrict=new RegExp(`^${Pf._regexRelaxed.source}$`,"i"),Pf);let xx=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new R,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=Object.create(null);t.disposables=new Q,t.root=e,t.root.classList.add("show-file-icons"),t.icon=q(e,J(".icon")),t.colorspan=q(t.icon,J("span.colorspan"));const i=q(e,J(".contents")),n=q(i,J(".main"));t.iconContainer=q(n,J(".icon-label.codicon")),t.left=q(n,J("span.left")),t.right=q(n,J("span.right")),t.iconLabel=new nC(t.left,{supportHighlights:!0,supportIcons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=q(t.left,J("span.signature-label")),t.qualifierLabel=q(t.left,J("span.qualifier-label")),t.detailsLabel=q(t.right,J("span.details-label")),t.readMore=q(t.right,J("span.readMore"+at.asCSSSelector(_le))),t.readMore.title=p("readMore","Read More");const s=()=>{const r=this._editor.getOptions(),a=r.get(46),l=a.getMassagedFontFamily(),c=a.fontFeatureSettings,d=r.get(109)||a.fontSize,h=r.get(110)||a.lineHeight,u=a.fontWeight,g=a.letterSpacing,f=`${d}px`,_=`${h}px`,b=`${g}px`;t.root.style.fontSize=f,t.root.style.fontWeight=u,t.root.style.letterSpacing=b,n.style.fontFamily=l,n.style.fontFeatureSettings=c,n.style.lineHeight=_,t.icon.style.height=_,t.icon.style.width=_,t.readMore.style.height=_,t.readMore.style.width=_};return s(),t.disposables.add(this._editor.onDidChangeConfiguration(r=>{(r.hasChanged(46)||r.hasChanged(109)||r.hasChanged(110))&&s()})),t}renderElement(e,t,i){const{completion:n}=e;i.root.id=m9(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:E1(e.score)},r=[];if(n.kind===19&&ble.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const a=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FILE),l=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FILE);s.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FOLDER),i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...Ln.asClassNameArray(Pp.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),typeof n.label=="string"?(i.parametersLabel.textContent="",i.detailsLabel.textContent=My(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=My(n.label.detail||""),i.detailsLabel.textContent=My(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(108).showInlineDetails?bs(i.detailsLabel):Pn(i.detailsLabel),hT(e)?(i.right.classList.add("can-expand-details"),bs(i.readMore),i.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},i.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),Pn(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};xx=mle([Ay(1,Ut),Ay(2,Ht),Ay(3,Ct)],xx);function My(o){return o.replace(/\r\n|\r|\n/g,"")}var vle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},s0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Cle=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};T("editorSuggestWidget.background",{dark:li,light:li,hcDark:li,hcLight:li},p("editorSuggestWidgetBackground","Background color of the suggest widget."));T("editorSuggestWidget.border",{dark:Ba,light:Ba,hcDark:Ba,hcLight:Ba},p("editorSuggestWidgetBorder","Border color of the suggest widget."));const o0=T("editorSuggestWidget.foreground",{dark:Cs,light:Cs,hcDark:Cs,hcLight:Cs},p("editorSuggestWidgetForeground","Foreground color of the suggest widget."));T("editorSuggestWidget.selectedForeground",{dark:jf,light:jf,hcDark:jf,hcLight:jf},p("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));T("editorSuggestWidget.selectedIconForeground",{dark:Kf,light:Kf,hcDark:Kf,hcLight:Kf},p("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const wle=T("editorSuggestWidget.selectedBackground",{dark:qf,light:qf,hcDark:qf,hcLight:qf},p("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));T("editorSuggestWidget.highlightForeground",{dark:fo,light:fo,hcDark:fo,hcLight:fo},p("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));T("editorSuggestWidget.focusHighlightForeground",{dark:ob,light:ob,hcDark:ob,hcLight:ob},p("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));T("editorSuggestWidgetStatus.foreground",{dark:fe(o0,.5),light:fe(o0,.5),hcDark:fe(o0,.5),hcLight:fe(o0,.5)},p("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class Sle{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Qd}`}restore(){var e;const t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{const i=JSON.parse(t);if(vt.is(i))return vt.lift(i)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let jm=class Ix{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new xs,this._disposables=new Q,this._onDidSelect=new R,this._onDidFocus=new R,this._onDidHide=new R,this._onDidShow=new R,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new R,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new p9,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new yle(this,e),this._persistedSize=new Sle(t,e);class r{constructor(g,f,_=!1,b=!1){this.persistedSize=g,this.currentSize=f,this.persistHeight=_,this.persistWidth=b}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new r(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(u=>{var g,f,_,b;if(this._resize(u.dimension.width,u.dimension.height),a&&(a.persistHeight=a.persistHeight||!!u.north||!!u.south,a.persistWidth=a.persistWidth||!!u.east||!!u.west),!!u.done){if(a){const{itemHeight:v,defaultSize:C}=this.getLayoutInfo(),w=Math.round(v/2);let{width:S,height:k}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-k)<=w)&&(k=(f=(g=a.persistedSize)===null||g===void 0?void 0:g.height)!==null&&f!==void 0?f:C.height),(!a.persistWidth||Math.abs(a.currentSize.width-S)<=w)&&(S=(b=(_=a.persistedSize)===null||_===void 0?void 0:_.width)!==null&&b!==void 0?b:C.width),this._persistedSize.store(new vt(S,k))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=q(this.element.domNode,J(".message")),this._listElement=q(this.element.domNode,J(".tree"));const l=s.createInstance(kx,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new gle(l,this.editor);const c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(108).showIcons);c();const d=s.createInstance(xx,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new rr("SuggestWidget",this._listElement,{getHeight:u=>this.getLayoutInfo().itemHeight,getTemplateId:u=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>p("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:u=>{let g=u.textLabel;if(typeof u.completion.label!="string"){const{detail:v,description:C}=u.completion.label;v&&C?g=p("label.full","{0}{1}, {2}",g,v,C):v?g=p("label.detail","{0}{1}",g,v):C&&(g=p("label.desc","{0}, {1}",g,C))}if(!u.isResolved||!this._isDetailsVisible())return g;const{documentation:f,detail:_}=u.completion,b=Vs("{0}{1}",_||"",f?typeof f=="string"?f:f.value:"");return p("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",g,b)}}}),this._status=s.createInstance(Dx,this.element.domNode);const h=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(108).showStatusBar);h(),this._disposables.add(Ud(this._list,n,{listInactiveFocusBackground:wle,listInactiveFocusOutline:Ot})),this._disposables.add(n.onDidColorThemeChange(u=>this._onThemeChange(u))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onTap(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onDidChangeSelection(u=>this._onListSelection(u))),this._disposables.add(this._list.onDidChangeFocus(u=>this._onListFocus(u))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(u=>{u.hasChanged(108)&&(h(),c())})),this._ctxSuggestWidgetVisible=Ke.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=Ke.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=Ke.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=Ke.HasFocusedSuggestion.bindTo(i),this._disposables.add(ki(this._details.widget.domNode,"keydown",u=>{this._onDetailsKeydown.fire(u)})),this._disposables.add(this.editor.onMouseDown(u=>this._onEditorMouseDown(u)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(e){typeof e.element>"u"||typeof e.index>"u"||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=cn(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=Ri(s=>Cle(this,void 0,void 0,function*(){const r=Ad(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=s.onCancellationRequested(()=>r.dispose()),l=yield i.resolve(s);return r.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:m9(n)}))}).catch(Te)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",e===4),this.element.domNode.classList.remove("message"),e){case 0:Pn(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.LOADING_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.NO_SUGGESTIONS_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 4:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 5:Pn(this._messageElement),bs(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=Ad(()=>this._setState(1),t)))}showSuggestions(e,t,i,n){var s,r;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(r=this._currentSuggestionDetails)===null||r===void 0||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&this._state!==2&&this._state!==0){this._setState(4);return}const a=this._completionModel.items.length,l=a===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l){this._setState(n?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),t>=0&&(this._list.reveal(t,0),this._list.setFocus([t])),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(hT(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);const d=this._completionModel?this._completionModel.stats.pLabelLen*r.typicalHalfwidthCharacterWidth:l,h=r.statusBarHeight+this._list.contentHeight+r.borderHeight,u=r.itemHeight+r.statusBarHeight,g=on(this.editor.getDomNode()),f=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),_=g.top+f.top+f.height,b=Math.min(s.height-_-r.verticalPadding,h),v=g.top+f.top-r.verticalPadding,C=Math.min(v,h);let w=Math.min(Math.max(C,b)+r.borderHeight,h);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aw&&(a=w);const S=150;a>b||this._forceRenderingAbove&&v>S?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),w=C):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),w=b),this.element.preferredSize=new vt(d,r.defaultSize.height),this.element.maxSize=new vt(c,w),this.element.minSize=new vt(220,u),this._cappedHeight=a===h?{wanted:(n=(i=this._cappedHeight)===null||i===void 0?void 0:i.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=`${t-s}px`,this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((e=this._contentWidget.getPosition())===null||e===void 0?void 0:e.preference[0])===2)}getLayoutInfo(){const e=this.editor.getOption(46),t=Zn(this.editor.getOption(110)||e.lineHeight,8,1e3),i=!this.editor.getOption(108).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new vt(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};jm.LOADING_MESSAGE=p("suggestWidget.loading","Loading...");jm.NO_SUGGESTIONS_MESSAGE=p("suggestWidget.noSuggestions","No suggestions.");jm=vle([s0(1,Do),s0(2,Ee),s0(3,Ct),s0(4,Ae)],jm);class yle{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new vt(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Lle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Dle{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){const n=e.getOffsetAt(t),s=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:L.fromPositions(t,s),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let _o=class _9{constructor(e,t,i,n,s,r,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=r,this._telemetryService=a,this._lineSuffix=new _n,this._toDispose=new Q,this._selectors=new kle(h=>h.priority),this._telemetryGate=0,this.editor=e,this.model=s.createInstance(Lx,this.editor);const l=Ke.InsertMode.bindTo(n);l.set(e.getOption(108).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(108).insertMode)),this.widget=this._toDispose.add(new $l(()=>{const h=this._instantiationService.createInstance(jm,this.editor);this._toDispose.add(h),this._toDispose.add(h.onDidSelect(b=>this._insertSuggestion(b,0),this));const u=new Lae(this.editor,h,b=>this._insertSuggestion(b,2));this._toDispose.add(u),this._toDispose.add(this.model.onDidSuggest(b=>{b.completionModel.items.length===0&&u.reset()}));const g=Ke.MakesTextEdit.bindTo(this._contextKeyService),f=Ke.HasInsertAndReplaceRange.bindTo(this._contextKeyService),_=Ke.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Be(()=>{g.reset(),f.reset(),_.reset()})),this._toDispose.add(h.onDidFocus(({item:b})=>{const v=this.editor.getPosition(),C=b.editStart.column,w=v.column;let S=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!b.completion.additionalTextEdits&&!(b.completion.insertTextRules&4)&&w-C===b.completion.insertText.length&&(S=this.editor.getModel().getValueInRange({startLineNumber:v.lineNumber,startColumn:C,endLineNumber:v.lineNumber,endColumn:w})!==b.completion.insertText),g.set(S),f.set(!B.equals(b.editInsertEnd,b.editReplaceEnd)),_.set(Boolean(b.provider.resolveCompletionItem)||Boolean(b.completion.documentation)||b.completion.detail!==b.completion.label)})),this._toDispose.add(h.onDetailsKeyDown(b=>{if(b.toKeybinding().equals(new Md(!0,!1,!1,!1,33))||Ge&&b.toKeybinding().equals(new Md(!1,!1,!1,!0,33))){b.stopPropagation();return}b.toKeybinding().isModifierKey()||this.editor.focus()})),h})),this._overtypingCapturer=this._toDispose.add(new $l(()=>this._toDispose.add(new _w(this.editor,this.model)))),this._alternatives=this._toDispose.add(new $l(()=>this._toDispose.add(new ih(this.editor,this._contextKeyService)))),this._toDispose.add(s.createInstance($m,e)),this._toDispose.add(this.model.onDidTrigger(h=>{this.widget.value.showTriggered(h.auto,h.shy?250:50),this._lineSuffix.value=new Dle(this.editor.getModel(),h.position)})),this._toDispose.add(this.model.onDidSuggest(h=>{if(h.shy)return;let u=-1;if(!h.noSelect){for(const g of this._selectors.itemsOrderedByPriorityDesc)if(u=g.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items),u!==-1)break;u===-1&&(u=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items))}this.widget.value.showSuggestions(h.completionModel,u,h.isFrozen,h.auto)})),this._toDispose.add(this.model.onDidCancel(h=>{h.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));const c=Ke.AcceptSuggestionsOnEnter.bindTo(n),d=()=>{const h=this.editor.getOption(1);c.set(h==="on"||h==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}static get(e){return e.getContribution(_9.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const i=Oi.get(this.editor);if(!i)return;const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:r}=e,a=[],l=new Qi;t&1||this.editor.pushUndoStop();const c=this.getOverwriteInfo(r,Boolean(t&8));if(this._memoryService.memorize(n,this.editor.getPosition(),r),Array.isArray(r.completion.additionalTextEdits)){const h=hc.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map(u=>Ft.replaceMove(L.lift(u.range),u.text))),h.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!r.isResolved){const h=new $n(!0);let u;const g=n.onDidChangeContent(v=>{if(v.isFlush){l.cancel(),g.dispose();return}for(const C of v.changes){const w=L.getEndPosition(C.range);(!u||B.isBefore(w,u))&&(u=w)}}),f=t;t|=2;let _=!1;const b=this.editor.onWillType(()=>{b.dispose(),_=!0,f&2||this.editor.pushUndoStop()});a.push(r.resolve(l.token).then(()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested||u&&r.completion.additionalTextEdits.some(C=>B.isBefore(u,L.getStartPosition(C.range))))return!1;_&&this.editor.pushUndoStop();const v=hc.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map(C=>Ft.replaceMove(L.lift(C.range),C.text))),v.restoreRelativeVerticalPositionOfCursor(this.editor),(_||!(f&2))&&this.editor.pushUndoStop(),!0}).then(v=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",h.elapsed(),v),g.dispose(),b.dispose()}))}let{insertText:d}=r.completion;r.completion.insertTextRules&4||(d=_c.escape(d)),i.insert(d,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(r.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),r.completion.command?r.completion.command.id===F_.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(a.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch(Te)),this.model.cancel()):this.model.cancel(),t&4&&this._alternatives.value.set(e,h=>{for(l.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(h,3|(t&8?8:0));break}}),this._alertCompletionItem(r),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(r,n,e),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i){var n;if(this._telemetryGate++%100!==0)return;const s=e.extensionId?e.extensionId.value:((n=i.item.provider._debugDisplayName)!==null&&n!==void 0?n:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:s,kind:e.completion.kind,basenameHash:OI(Js(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:uq(t.uri)})}getOverwriteInfo(e,t){pt(this.editor.hasModel());let i=this.editor.getOption(108).insertMode==="replace";t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,r=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+r,overwriteAfter:s+a}}_alertCompletionItem(e){if(rn(e.completion.additionalTextEdits)){const t=p("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);Gi(t)}}triggerSuggest(e,t,i,n){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,shy:!1,noSelect:n!=null?n:!1},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=s=>{if(s.completion.insertTextRules&4||s.completion.additionalTextEdits)return!0;const r=this.editor.getPosition(),a=s.editStart.column,l=r.column;return l-a!==s.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:r.lineNumber,startColumn:a,endLineNumber:r.lineNumber,endColumn:l})!==s.completion.insertText};ge.once(this.model.onDidTrigger)(s=>{const r=[];ge.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{nt(r),i()},void 0,r),this.model.onDidSuggest(({completionModel:a})=>{if(nt(r),a.items.length===0){i();return}const l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!n(c)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,r)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){!this.widget.isInitialized||this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};_o.ID="editor.contrib.suggestController";_o=Lle([Gh(1,mw),Gh(2,ci),Gh(3,Ee),Gh(4,Ae),Gh(5,So),Gh(6,sr)],_o);class kle{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(this._items.indexOf(e)!==-1)throw new Error("Value is already registered");return this._items.push(e),this._items.sort((t,i)=>this.prioritySelector(i)-this.prioritySelector(t)),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class F_ extends ce{constructor(){super({id:F_.id,label:p("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:se.and(N.writable,N.hasCompletionItemProvider),kbOpts:{kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=_o.get(t);if(!n)return;let s,r;i&&typeof i=="object"&&(i.auto===!0&&(s=!0),i.noSelection===!0&&(r=!0)),n.triggerSuggest(void 0,s,void 0,r)}}F_.id="editor.action.triggerSuggest";tt(_o.ID,_o);ie(F_);const eo=100+90,ls=xi.bindToContribution(_o.get);ee(new ls({id:"acceptSelectedSuggestion",precondition:se.and(Ke.Visible,Ke.HasFocusedSuggestion),handler(o){o.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:se.and(Ke.Visible,N.textInputFocus),weight:eo},{primary:3,kbExpr:se.and(Ke.Visible,N.textInputFocus,Ke.AcceptSuggestionsOnEnter,Ke.MakesTextEdit),weight:eo}],menuOpts:[{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:Ke.HasInsertAndReplaceRange.toNegated()},{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert"))},{menuId:Ql,title:p("accept.replace","Replace"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace"))}]}));ee(new ls({id:"acceptAlternativeSelectedSuggestion",precondition:se.and(Ke.Visible,N.textInputFocus,Ke.HasFocusedSuggestion),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1027,secondary:[1026]},handler(o){o.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert")),title:p("accept.replace","Replace")},{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace")),title:p("accept.insert","Insert")}]}));Xe.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");ee(new ls({id:"hideSuggestWidget",precondition:Ke.Visible,handler:o=>o.cancelSuggestWidget(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:9,secondary:[1033]}}));ee(new ls({id:"selectNextSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));ee(new ls({id:"selectNextPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:12,secondary:[2060]}}));ee(new ls({id:"selectLastSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectLastSuggestion()}));ee(new ls({id:"selectPrevSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));ee(new ls({id:"selectPrevPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:11,secondary:[2059]}}));ee(new ls({id:"selectFirstSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectFirstSuggestion()}));ee(new ls({id:"toggleSuggestionDetails",precondition:Ke.Visible,handler:o=>o.toggleSuggestionDetails(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible,Ke.CanResolve),title:p("detail.more","show less")},{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible.toNegated(),Ke.CanResolve),title:p("detail.less","show more")}]}));ee(new ls({id:"toggleExplainMode",precondition:Ke.Visible,handler:o=>o.toggleExplainMode(),kbOpts:{weight:100,primary:2133}}));ee(new ls({id:"toggleSuggestionFocus",precondition:Ke.Visible,handler:o=>o.toggleSuggestionFocus(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2570,mac:{primary:778}}}));ee(new ls({id:"insertBestCompletion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),$m.AtEnd,Ke.Visible.toNegated(),ih.OtherSuggestions.toNegated(),Oi.InSnippetMode.toNegated()),handler:(o,e)=>{o.triggerSuggestAndAcceptBest(Hn(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:eo,primary:2}}));ee(new ls({id:"insertNextSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2}}));ee(new ls({id:"insertPrevSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1026}}));ie(class extends ce{constructor(){super({id:"editor.action.resetSuggestSize",label:p("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(o,e){var t;(t=_o.get(e))===null||t===void 0||t.resetWidgetSize()}});class xle extends H{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new mt(()=>{this.isSuggestWidgetVisible||this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(n=>{n.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(n=>{n.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const i=_o.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(r,a,l)=>{const c=this.editor.getModel(),d=kC(c,this.suggestControllerPreselector());if(!d)return-1;const h=B.lift(a),u=l.map((f,_)=>{const b=lO(i,h,f,this.isShiftKeyPressed),v=kC(c,b==null?void 0:b.normalizedInlineCompletion);if(!v)return;const C=Ile(d.range,v.range)&&d.insertText.startsWith(v.insertText);return{index:_,valid:C,prefixLength:v.insertText.length,suggestItem:f}}).filter(f=>f&&f.valid),g=zO(u,op(f=>f.prefixLength,O8));return g?g.index:-1}}));let n=!1;const s=()=>{n||(n=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ge.once(i.model.onDidTrigger)(r=>{s()}))}this.update(this._isActive)}get state(){if(!!this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){const t=this.getSuggestItemInfo();let i=!1;Ele(this._currentSuggestItemInfo,t)||(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){const e=_o.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem();if(!!t)return lO(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const e=_o.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){const e=_o.get(this.editor);e&&e.forceRenderingAbove()}}function Ile(o,e){return e.startLineNumber===o.startLineNumber&&e.startColumn===o.startColumn&&(e.endLineNumber0)return{completionItemKind:t.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:L.fromPositions(e,e),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:n}=t.completion,s=!1;if(t.completion.insertTextRules&4){const a=new _c().parse(n),l=o.editor.getModel();if(a.children.length>100)return;SC.adjustWhitespace(l,e,a,!0,!0),n=a.toString(),s=!0}const r=o.getOverwriteInfo(t,i);return{isSnippetText:s,completionItemKind:t.completion.kind,normalizedInlineCompletion:{insertText:n,filterText:n,range:L.fromPositions(e.delta(0,-r.overwriteBefore),e.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}var Nle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},cO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Ex=class extends l9{constructor(e,t,i){super(e),this.cache=t,this.languageFeaturesService=i,this.suggestionInlineCompletionSource=this._register(new xle(this.editor,()=>{var n,s;return(s=(n=this.cache.value)===null||n===void 0?void 0:n.completions[0])===null||s===void 0?void 0:s.toLiveInlineCompletion()})),this.updateOperation=this._register(new _n),this.updateCacheSoon=this._register(new mt(()=>this.updateCache(),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange(()=>{if(!this.editor.hasModel())return;this.updateCacheSoon.schedule(),this.suggestionInlineCompletionSource.state||(this.minReservedLineCount=0);const s=this.ghostText;s&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,Ale(s.parts.map(r=>r.lines.length-1)))),this.minReservedLineCount>=1?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()})),this._register(this.cache.onDidChange(()=>{this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeCursorPosition(n=>{this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire()})),this._register(Be(()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove()))}get isActive(){return this.suggestionInlineCompletionSource.state!==void 0}isSuggestionPreviewEnabled(){return this.editor.getOption(108).preview}updateCache(){return cO(this,void 0,void 0,function*(){const e=this.suggestionInlineCompletionSource.state;if(!e||!e.selectedItem)return;const t={text:e.selectedItem.normalizedInlineCompletion.insertText,range:e.selectedItem.normalizedInlineCompletion.range,isSnippetText:e.selectedItem.isSnippetText,completionKind:e.selectedItem.completionItemKind},i=this.editor.getPosition();if(e.selectedItem.isSnippetText||e.selectedItem.completionItemKind===27||e.selectedItem.completionItemKind===20||e.selectedItem.completionItemKind===23){this.cache.clear();return}const n=Ri(r=>cO(this,void 0,void 0,function*(){let a;try{a=yield h9(this.languageFeaturesService.inlineCompletionsProvider,i,this.editor.getModel(),{triggerKind:Ps.Automatic,selectedSuggestionInfo:t},r)}catch(l){Te(l);return}if(r.isCancellationRequested){a.dispose();return}this.cache.setValue(this.editor,a,Ps.Automatic),this.onDidChangeEmitter.fire()})),s=new d9(n,Ps.Automatic);this.updateOperation.value=s,yield n,this.updateOperation.value===s&&this.updateOperation.clear()})}get ghostText(){var e,t,i;const n=this.isSuggestionPreviewEnabled(),s=this.editor.getModel(),r=kC(s,(t=(e=this.cache.value)===null||e===void 0?void 0:e.completions[0])===null||t===void 0?void 0:t.toLiveInlineCompletion()),a=this.suggestionInlineCompletionSource.state,l=kC(s,(i=a==null?void 0:a.selectedItem)===null||i===void 0?void 0:i.normalizedInlineCompletion),c=r&&l&&r.insertText.startsWith(l.insertText)&&r.range.equalsRange(l.range);if(!n&&!c)return;const d=c?r:l||r,h=c?d.insertText.length-l.insertText.length:0;return this.toGhostText(d,h)}toGhostText(e,t){const i=this.editor.getOptions().get(108).previewMode;return e?c9(e,this.editor.getModel(),i,this.editor.getPosition(),t)||new r9(e.range.endLineNumber,[],this.minReservedLineCount):void 0}};Ex=Nle([Tle(2,de)],Ex);function Ale(o){return o.reduce((e,t)=>e+t,0)}var Mle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ole=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ple extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new _n)}get targetModel(){var e;return(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object}setTargetModel(e){var t;((t=this.currentModelRef.value)===null||t===void 0?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?iae(e,e.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=(t=(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object)===null||t===void 0?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;(t=this.targetModel)===null||t===void 0||t.setExpanded(e)}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let Nx=class extends Ple{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.sharedCache=this._register(new Fle),this.suggestWidgetAdapterModel=this._register(this.instantiationService.createInstance(Ex,this.editor,this.sharedCache)),this.inlineCompletionsModel=this._register(this.instantiationService.createInstance(yx,this.editor,this.sharedCache)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const i=(t=this.activeInlineCompletionsModel)===null||t===void 0?void 0:t.ghostText;return i?i.parts.some(n=>e.containsPosition(new B(i.lineNumber,n.column))):!1}triggerInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.trigger(Ps.Explicit)}commitInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.commitCurrentSuggestion()}hideInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.hide()}showNextInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showNext()}showPreviousInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showPrevious()}hasMultipleInlineCompletions(){var e;return Ole(this,void 0,void 0,function*(){const t=yield(e=this.activeInlineCompletionsModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Nx=Mle([Rle(1,Ae)],Nx);class Fle extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.cache=this._register(new _n)}get value(){return this.cache.value}setValue(e,t,i){this.cache.value=new gae(t,e,()=>this.onDidChangeEmitter.fire(),i)}clearAndLeak(){return this.cache.clearAndLeak()}clear(){this.cache.clear()}}var Ble=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ry;const hO=(Ry=window.trustedTypes)===null||Ry===void 0?void 0:Ry.createPolicy("editorGhostText",{createHTML:o=>o});let Tx=class extends H{constructor(e,t,i,n){super(),this.editor=e,this.model=t,this.instantiationService=i,this.languageService=n,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(Vle,this.editor)),this.additionalLinesWidget=this._register(new Hle(this.editor,this.languageService.languageIdCodec)),this.viewMoreContentWidget=void 0,this.replacementDecoration=this._register(new Wle(this.editor)),this._register(this.editor.onDidChangeConfiguration(s=>{(s.hasChanged(29)||s.hasChanged(107)||s.hasChanged(90)||s.hasChanged(85)||s.hasChanged(47)||s.hasChanged(46)||s.hasChanged(61))&&this.update()})),this._register(Be(()=>{var s;this.disposed=!0,this.update(),(s=this.viewMoreContentWidget)===null||s===void 0||s.dispose(),this.viewMoreContentWidget=void 0})),this._register(t.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e;const t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed){this.partsWidget.clear(),this.additionalLinesWidget.clear(),this.replacementDecoration.clear();return}const i=new Array,n=new Array;function s(c,d){if(n.length>0){const h=n[n.length-1];d&&h.decorations.push(new es(h.content.length+1,h.content.length+1+c[0].length,d,0)),h.content+=c[0],c=c.slice(1)}for(const h of c)n.push({content:h,decorations:d?[new es(1,h.length+1,d,0)]:[]})}t instanceof a9?this.replacementDecoration.setDecorations([{range:new L(t.lineNumber,t.columnStart,t.lineNumber,t.columnStart+t.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.replacementDecoration.setDecorations([]);const r=this.editor.getModel().getLineContent(t.lineNumber);let a,l=0;for(const c of t.parts){let d=c.lines;a===void 0?(i.push({column:c.column,text:d[0],preview:c.preview}),d=d.slice(1)):s([r.substring(l,c.column-1)],void 0),d.length>0&&(s(d,"ghost-text"),a===void 0&&c.column<=r.length&&(a=c.column)),l=c.column-1}a!==void 0&&s([r.substring(l)],void 0),this.partsWidget.setParts(t.lineNumber,i,a!==void 0?{column:a,length:r.length+1-a}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,n,t.additionalReservedLineCount),(e=this.viewMoreContentWidget)===null||e===void 0||e.dispose(),this.viewMoreContentWidget=void 0}renderViewMoreLines(e,t,i){const n=this.editor.getOption(46),s=document.createElement("div");s.className="suggest-preview-additional-widget",an(s,n);const r=document.createElement("span");r.className="content-spacer",r.append(t),s.append(r);const a=document.createElement("span");a.className="content-newline suggest-preview-text",a.append("\u23CE "),s.append(a);const l=new Q,c=document.createElement("div");return c.className="button suggest-preview-text",c.append(`+${i} lines\u2026`),l.add(ki(c,"mousedown",d=>{var h;(h=this.model)===null||h===void 0||h.setExpanded(!0),d.preventDefault(),this.editor.focus()})),s.append(c),new Ule(this.editor,e,s,l)}};Tx=Ble([dO(2,Ae),dO(3,Ht)],Tx);class Wle{constructor(e){this.editor=e,this.decorationIds=[]}setDecorations(e){this.editor.changeDecorations(t=>{this.decorationIds=t.deltaDecorations(this.decorationIds,e)})}clear(){this.setDecorations([])}dispose(){this.clear()}}class Vle{constructor(e){this.editor=e,this.decorationIds=[]}dispose(){this.clear()}clear(){this.editor.changeDecorations(e=>{this.decorationIds=e.deltaDecorations(this.decorationIds,[])})}setParts(e,t,i){if(!this.editor.getModel())return;const s=new Array;i&&s.push({range:L.fromPositions(new B(e,i.column),new B(e,i.column+i.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.editor.changeDecorations(r=>{this.decorationIds=r.deltaDecorations(this.decorationIds,t.map(a=>({range:L.fromPositions(new B(e,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Wo.Left},showIfCollapsed:!0}})).concat(s))})}}class Hle{constructor(e,t){this.editor=e,this.languageIdCodec=t,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones(r=>{this._viewZoneId&&(r.removeZone(this._viewZoneId),this._viewZoneId=void 0);const a=Math.max(t.length,i);if(a>0){const l=document.createElement("div");zle(l,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=r.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}}function zle(o,e,t,i,n){const s=i.get(29),r=i.get(107),a="none",l=i.get(85),c=i.get(47),d=i.get(46),h=i.get(61),u=nc(1e4);u.appendASCIIString('

');for(let _=0,b=t.length;_');const w=VC(C),S=eg(C),k=Di.createEmpty(C,n);a_(new Lc(d.isMonospace&&!s,d.canUseHalfwidthRightwardsArrow,C,!1,w,S,0,k,v.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,r,a,l,c!==_s.OFF,null),u),u.appendASCIIString("
")}u.appendASCIIString(""),an(o,d);const g=u.build(),f=hO?hO.createHTML(g):g;o.innerHTML=f}class Ule extends H{constructor(e,t,i,n){super(),this.editor=e,this.position=t,this.domNode=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(n),this._register(Be(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Et((o,e)=>{const t=o.getColor(D$);t&&(e.addRule(`.monaco-editor .ghost-text-decoration { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { color: ${t.toString()} !important; }`));const i=o.getColor(k$);i&&(e.addRule(`.monaco-editor .ghost-text-decoration { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { background-color: ${i.toString()}; }`));const n=o.getColor(L$);n&&(e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { border: 1px solid ${n}; }`))});var b9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ax=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},bw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Mi=class v9 extends H{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new _n),this.activeModelDidChangeEmitter=this._register(new R),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(i=>{i.hasChanged(108)&&this.updateModelController(),i.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(e){return e.getContribution(v9.ID)}get activeModel(){var e;return(e=this.activeController.value)===null||e===void 0?void 0:e.model}updateModelController(){const e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(Mx,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return((t=this.activeModel)===null||t===void 0?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return((i=(t=this.activeController.value)===null||t===void 0?void 0:t.widget)===null||i===void 0?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),(e=this.activeModel)===null||e===void 0||e.triggerInlineCompletion()}commit(){var e;(e=this.activeModel)===null||e===void 0||e.commitInlineCompletion()}hide(){var e;(e=this.activeModel)===null||e===void 0||e.hideInlineCompletion()}showNextInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return bw(this,void 0,void 0,function*(){const t=yield(e=this.activeModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Mi.inlineSuggestionVisible=new le("inlineSuggestionVisible",!1,p("inlineSuggestionVisible","Whether an inline suggestion is visible"));Mi.inlineSuggestionHasIndentation=new le("inlineSuggestionHasIndentation",!1,p("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"));Mi.inlineSuggestionHasIndentationLessThanTabSize=new le("inlineSuggestionHasIndentationLessThanTabSize",!0,p("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"));Mi.ID="editor.contrib.ghostTextController";Mi=b9([Ax(1,Ae)],Mi);class $le{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=Mi.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=Mi.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=Mi.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let Mx=class extends H{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new $le(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(Nx,this.editor)),this.widget=this._register(this.instantiationService.createInstance(Tx,this.editor,this.model)),this._register(Be(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set(((e=this.model.activeInlineCompletionsModel)===null||e===void 0?void 0:e.ghostText)!==void 0);let t=!1,i=!0;const n=this.model.inlineCompletionsModel.ghostText;if(!!this.model.activeInlineCompletionsModel&&n&&n.parts.length>0){const{column:s,lines:r}=n.parts[0],a=r[0],l=this.editor.getModel().getLineIndentColumn(n.lineNumber);if(s<=l){let d=kn(a);d===-1&&(d=a.length-1),t=d>0;const h=this.editor.getModel().getOptions().tabSize;i=Ci.visibleColumnFromColumn(a,d+1,h)=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class qle{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return((i=(t=(e=this.controller.activeModel)===null||e===void 0?void 0:e.activeInlineCompletionsModel)===null||t===void 0?void 0:t.completionSession.value)===null||i===void 0?void 0:i.commands)||[]}}let Rx=class{constructor(e,t,i,n,s,r,a){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=s,this._openerService=r,this.accessibilityService=a,this.hoverOrdinal=3}suggestHoverAnchor(e){const t=Mi.get(this._editor);if(!t)return null;const i=e.target;if(i.type===8){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new T0(1e3,this,L.fromPositions(n.positionBefore||n.position,n.positionBefore||n.position))}return i.type===7&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):i.type===6&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):null}computeSync(e,t){const i=Mi.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new qle(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new Q,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);const s=i.add(this._menuService.createMenu(M.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:p("showNextInlineSuggestion","Next"),commandId:Ag.ID,run:()=>this._commandService.executeCommand(Ag.ID)}),a=e.statusBar.addAction({label:p("showPreviousInlineSuggestion","Previous"),commandId:Mg.ID,run:()=>this._commandService.executeCommand(Mg.ID)});e.statusBar.addAction({label:p("acceptInlineSuggestion","Accept"),commandId:DC,run:()=>this._commandService.executeCommand(DC)});const l=[r,a];for(const c of l)c.setEnabled(!1);n.hasMultipleSuggestions().then(c=>{for(const d of l)d.setEnabled(c)});for(const c of n.commands)e.statusBar.addAction({label:c.title,commandId:c.id,run:()=>this._commandService.executeCommand(c.id,...c.arguments||[])});for(const[c,d]of s.getActions())for(const h of d)h instanceof ac&&e.statusBar.addAction({label:h.label,commandId:h.item.id,run:()=>this._commandService.executeCommand(h.item.id)});return i}renderScreenReaderText(e,t,i){var n,s;const r=J,a=r("div.hover-row.markdown-hover"),l=q(a,r("div.hover-contents")),c=i.add(new ol({editor:this._editor},this._languageService,this._openerService)),d=u=>{i.add(c.onDidRenderAsync(()=>{l.className="hover-contents code-hover-contents",e.onContentsChanged()}));const g=p("inlineSuggestionFollows","Suggestion:"),f=i.add(c.render(new Fn().appendText(g).appendCodeblock("text",u)));l.replaceChildren(f.element)},h=(s=(n=t.controller.activeModel)===null||n===void 0?void 0:n.inlineCompletionsModel)===null||s===void 0?void 0:s.ghostText;if(h){const u=this._editor.getModel().getLineContent(h.lineNumber);d(h.renderForScreenReader(u))}e.fragment.appendChild(a)}};Rx=Kle([Zh(1,ci),Zh(2,ph),Zh(3,Ee),Zh(4,Ht),Zh(5,io),Zh(6,al)],Rx);tt(Mi.ID,Mi);ie(jle);ie(Ag);ie(Mg);xh.register(Rx);const C9=xi.bindToContribution(Mi.get),Ox=new C9({id:DC,precondition:Mi.inlineSuggestionVisible,handler(o){o.commit(),o.editor.focus()}});ee(Ox);as.registerKeybindingRule({primary:2,weight:200,id:Ox.id,when:se.and(Ox.precondition,N.tabMovesFocus.toNegated(),Mi.inlineSuggestionHasIndentationLessThanTabSize)});ee(new C9({id:"editor.action.inlineSuggest.hide",precondition:Mi.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(o){o.hide()}}));function Gn(o,e){let t=0;for(let i=0;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function w9(o,e,t,i,n){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return[];const s=e.getLanguageConfiguration(o.getLanguageId()).indentationRules;if(!s)return[];for(i=Math.min(i,o.getLineCount());t<=i&&s.unIndentedLinePattern;){const b=o.getLineContent(t);if(!s.unIndentedLinePattern.test(b))break;t++}if(t>i-1)return[];const{tabSize:r,indentSize:a,insertSpaces:l}=o.getOptions(),c=(b,v)=>(v=v||1,Bs.shiftIndent(b,b.length+v,r,a,l)),d=(b,v)=>(v=v||1,Bs.unshiftIndent(b,b.length+v,r,a,l)),h=[];let u;const g=o.getLineContent(t);let f=g;if(n!=null){u=n;const b=_t(g);f=u+g.substring(b.length),s.decreaseIndentPattern&&s.decreaseIndentPattern.test(f)&&(u=d(u),f=u+g.substring(b.length)),g!==f&&h.push(Ft.replaceMove(new oe(t,1,t,b.length+1),Sv(u,a,l)))}else u=_t(g);let _=u;s.increaseIndentPattern&&s.increaseIndentPattern.test(f)?(_=c(_),u=c(u)):s.indentNextLinePattern&&s.indentNextLinePattern.test(f)&&(_=c(_)),t++;for(let b=t;b<=i;b++){const v=o.getLineContent(b),C=_t(v),w=_+v.substring(C.length);s.decreaseIndentPattern&&s.decreaseIndentPattern.test(w)&&(_=d(_),u=d(u)),C!==_&&h.push(Ft.replaceMove(new oe(b,1,b,C.length+1),Sv(_,a,l))),!(s.unIndentedLinePattern&&s.unIndentedLinePattern.test(v))&&(s.increaseIndentPattern&&s.increaseIndentPattern.test(w)?(u=c(u),_=u):s.indentNextLinePattern&&s.indentNextLinePattern.test(w)?_=c(_):_=u)}return h}class vw extends ce{constructor(){super({id:vw.ID,label:p("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new Jle(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}vw.ID="editor.action.indentationToSpaces";class Cw extends ce{constructor(){super({id:Cw.ID,label:p("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new ece(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}Cw.ID="editor.action.indentationToTabs";class S9 extends ce{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const i=e.get(dl),n=e.get(Ut),s=t.getModel();if(!s)return;const r=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),a=[1,2,3,4,5,6,7,8].map(c=>({id:c.toString(),label:c.toString(),description:c===r.tabSize?p("configuredTabSize","Configured Tab Size"):void 0})),l=Math.min(s.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(a,{placeHolder:p({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then(c=>{c&&s&&!s.isDisposed()&&s.updateOptions({tabSize:parseInt(c.label,10),insertSpaces:this.insertSpaces})})},50)}}class ww extends S9{constructor(){super(!1,{id:ww.ID,label:p("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}ww.ID="editor.action.indentUsingTabs";class Sw extends S9{constructor(){super(!0,{id:Sw.ID,label:p("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}Sw.ID="editor.action.indentUsingSpaces";class yw extends ce{constructor(){super({id:yw.ID,label:p("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(Ut),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}yw.ID="editor.action.detectIndentation";class Yle extends ce{constructor(){super({id:"editor.action.reindentlines",label:p("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=w9(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class Qle extends ce{constructor(){super({id:"editor.action.reindentselectedlines",label:p("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=t.getSelections();if(s===null)return;const r=[];for(const a of s){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;const d=w9(n,i,l,c);r.push(...d)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class Xle{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&typeof i.text=="string"&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(L.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let Km=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new Q,this.callOnModel=new Q,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(9)<4||this.editor.getOption(50))&&(!this.editor.hasModel()||this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(t===null||t.length>1)return;const i=this.editor.getModel();if(!i||!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(9),{tabSize:s,indentSize:r,insertSpaces:a}=i.getOptions(),l=[],c={shiftIndent:g=>Bs.shiftIndent(g,g.length+1,s,r,a),unshiftIndent:g=>Bs.unshiftIndent(g,g.length+1,s,r,a)};let d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(i,d)){d++;continue}break}if(d>e.endLineNumber)return;let h=i.getLineContent(d);if(!/\S/.test(h.substring(0,e.startColumn-1))){const g=hp(n,i,i.getLanguageId(),d,c,this._languageConfigurationService);if(g!==null){const f=_t(h),_=Gn(g,s),b=Gn(f,s);if(_!==b){const v=Tp(_,s,a);l.push({range:new L(d,1,d,f.length+1),text:v}),h=v+h.substr(f.length)}else{const v=Z4(i,d,this._languageConfigurationService);if(v===0||v===8)return}}}const u=d;for(;di.tokenization.getLineTokens(_),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(_,b)=>i.getLanguageIdAtPosition(_,b)},getLineContent:_=>_===u?h:i.getLineContent(_)},i.getLanguageId(),d+1,c,this._languageConfigurationService);if(f!==null){const _=Gn(f,s),b=Gn(_t(i.getLineContent(d+1)),s);if(_!==b){const v=_-b;for(let C=d+1;C<=e.endLineNumber;C++){const w=i.getLineContent(C),S=_t(w),x=Gn(S,s)+v,y=Tp(x,s,a);y!==S&&l.push({range:new L(C,1,C,S.length+1),text:y})}}}}if(l.length>0){this.editor.pushUndoStop();const g=new Xle(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",g),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(i===0)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const s=n.findTokenIndexAtOffset(i);if(s>=0&&n.getStandardTokenType(s)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};Km.ID="editor.contrib.autoIndentOnPaste";Km=Gle([Zle(1,si)],Km);function y9(o,e,t,i){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return;let n="";for(let r=0;rthis._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,i;return xC(this,void 0,void 0,function*(){try{const n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=n==null?void 0:n.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(i=n==null?void 0:n.label)!==null&&i!==void 0?i:this.hint.label,this._isResolved=!0}catch(n){Pi(n),this._isResolved=!1}})}}class qm{constructor(e,t,i){this._disposables=new Q,this.ranges=e,this.provider=new Set;const n=[];for(const[s,r]of t){this._disposables.add(s),this.provider.add(r);for(const a of s.hints){const l=i.validatePosition(a.position);let c="before";const d=qm._getRangeAtPosition(i,l);let h;d.getStartPosition().isBefore(l)?(h=L.fromPositions(d.getStartPosition(),l),c="after"):(h=L.fromPositions(l,d.getEndPosition()),c="before"),n.push(new uT(a,new L9(h,c),r))}}this.items=n.sort((s,r)=>B.compare(s.hint.position,r.hint.position))}static create(e,t,i,n){return xC(this,void 0,void 0,function*(){const s=[],r=e.ordered(t).reverse().map(a=>i.map(l=>xC(this,void 0,void 0,function*(){try{const c=yield a.provideInlayHints(t,l,n);c!=null&&c.hints.length&&s.push([c,a])}catch(c){Pi(c)}})));if(yield Promise.all(r.flat()),n.isCancellationRequested||t.isDisposed())throw new yc;return new qm(i,s,t)})}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new L(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),r=t.column-1,a=s.findTokenIndexAtOffset(r);let l=s.getStartOffset(a),c=s.getEndOffset(a);return c-l===1&&(l===r&&a>1?(l=s.getStartOffset(a-1),c=s.getEndOffset(a-1)):c===r&&auu(f)?f.command.id:""));for(const f of md.getEditorActions())f instanceof vo&&u.has(f.id)&&h.push(new is(f.id,f.label,void 0,!0,()=>Ap(this,void 0,void 0,function*(){const _=yield s.createModelReference(d.uri);try{yield l.invokeFunction(f.run.bind(f),e,new Pm(_.object.textEditorModel,L.getStartPosition(d.range)))}finally{_.dispose()}})));if(i.part.command){const{command:f}=i.part;h.push(new ln),h.push(new is(f.id,f.title,void 0,!0,()=>Ap(this,void 0,void 0,function*(){var _;try{yield a.executeCommand(f.id,...(_=f.arguments)!==null&&_!==void 0?_:[])}catch(b){c.notify({severity:IF.Error,source:i.item.provider.displayName,message:b})}})))}const g=e.getOption(117);r.showContextMenu({domForShadowRoot:g&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{const f=on(t);return{x:f.left,y:f.top+f.height+8}},getActions:()=>h,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function nce(o,e,t,i){return Ap(this,void 0,void 0,function*(){const s=yield o.get(Kn).createModelReference(i.uri);yield t.invokeWithinContext(r=>Ap(this,void 0,void 0,function*(){const a=e.hasSideBySideModifier,l=r.get(Ee),c=jn.inPeekEditor.getValue(l),d=!a&&t.getOption(80)&&!c;return new R_({openToSide:a,openInPeek:d,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(r,t,{model:s.object.textEditorModel,position:L.getStartPosition(i.range)})})),s.dispose()})}var sce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Yh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},su=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class IC{constructor(){this._entries=new Dc(50)}get(e){const t=IC._key(e);return this._entries.get(t)}set(e,t){const i=IC._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const D9=Ye("IInlayHintsCache");et(D9,IC,!0);class Px{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}}class oce{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let nh=class Fx{constructor(e,t,i,n,s,r,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=r,this._instaService=a,this._disposables=new Q,this._sessionDisposables=new Q,this._decorationsMetadata=new Map,this._ruleFactory=new d_(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(129)&&this._update()})),this._update()}static get(e){var t;return(t=e.getContribution(Fx.ID))!==null&&t!==void 0?t:void 0}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(129);if(e.enabled==="off")return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;const i=this._inlayHintsCache.get(t);i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add(Be(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n;const s=new Set,r=new mt(()=>su(this,void 0,void 0,function*(){const a=Date.now();n==null||n.dispose(!0),n=new Qi;const l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{const c=n.token,d=yield qm.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(r.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(const h of d.provider)typeof h.onDidChangeInlayHints=="function"&&!s.has(h)&&(s.add(h),this._sessionDisposables.add(h.onDidChangeInlayHints(()=>{r.isScheduled()||r.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){Te(c)}finally{n.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(r),this._sessionDisposables.add(Be(()=>n==null?void 0:n.dispose(!0))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!r.isScheduled())&&r.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{const l=Math.max(r.delay,1250);r.schedule(l)})),e.enabled==="on")this._activeRenderMode=0;else{let a,l;e.enabled==="onUnlessPressed"?(a=0,l=1):(a=1,l=0),this._activeRenderMode=a,this._sessionDisposables.add(Ol.getInstance().event(c=>{if(!this._editor.hasModel())return;const d=c.altKey&&c.ctrlKey?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;const h=this._editor.getModel(),u=this._copyInlayHintsWithCurrentAnchor(h);this._updateHintsDecorators([h.getFullModelRange()],u),r.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>r.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new Q,t=e.add(new UN(this._editor)),i=new Q;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{const[s]=n,r=this._getInlayHintLabelPart(s),a=this._editor.getModel();if(!r||!a){i.clear();return}const l=new Qi;i.add(Be(()=>l.dispose(!0))),r.item.resolve(l.token),this._activeInlayHintPart=r.part.command||r.part.location?new oce(r,s.hasTriggerModifier):void 0;const c=r.item.hint.position.lineNumber,d=new L(c,1,c,a.getLineMaxColumn(c)),h=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],h),i.add(Be(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],h)}))})),e.add(t.onCancel(()=>i.clear())),e.add(t.onExecute(n=>su(this,void 0,void 0,function*(){const s=this._getInlayHintLabelPart(n);if(s){const r=s.part;r.location?this._instaService.invokeFunction(nce,n,this._editor,r.location):Jy.is(r.command)&&(yield this._invokeCommand(r.command,s.item))}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>su(this,void 0,void 0,function*(){if(t.event.detail!==2)return;const i=this._getInlayHintLabelPart(t);if(!!i&&(t.event.preventDefault(),yield i.item.resolve(ze.None),rn(i.item.hint.textEdits))){const n=i.item.hint.textEdits.map(s=>Ft.replace(L.lift(s.range),s.text));this._editor.executeEdits("inlayHint.default",n),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>su(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(ice,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;const i=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(i instanceof zd&&(i==null?void 0:i.attachedData)instanceof Px)return i.attachedData}_invokeCommand(e,t){var i;return su(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(i=e.arguments)!==null&&i!==void 0?i:[])}catch(n){this._notificationService.notify({severity:IF.Error,source:t.provider.displayName,message:n})}})}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const r=new L9(s,n.item.anchor.direction),a=n.item.with({anchor:r});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){const t=this._editor.getModel(),i=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const s of i.sort(L.compareRangesUsingStarts)){const r=t.validateRange(new L(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));n.length===0||!L.areIntersectingOrTouching(n[n.length-1],r)?n.push(r):n[n.length-1]=L.plusRange(n[n.length-1],r)}return n}_updateHintsDecorators(e,t){var i,n;const s=[],r=(f,_,b,v,C)=>{const w={content:b,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:_.className,cursorStops:v,attachedData:C};s.push({item:f,classNameRef:_,decoration:{range:f.anchor.range,options:{description:"InlayHint",showIfCollapsed:f.anchor.range.isEmpty(),collapseOnReplaceEdit:!f.anchor.range.isEmpty(),stickiness:0,[f.anchor.direction]:this._activeRenderMode===0?w:void 0}}})},a=(f,_)=>{const b=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});r(f,b,"\u200A",_?Wo.Right:Wo.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:h}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,c);for(const f of t){f.hint.paddingLeft&&a(f,!1);const _=typeof f.hint.label=="string"?[{label:f.hint.label}]:f.hint.label;for(let b=0;b<_.length;b++){const v=_[b],C=b===0,w=b===_.length-1,S={fontSize:`${l}px`,fontFamily:`var(${u}), ${ts.fontFamily}`,verticalAlign:h?"baseline":"middle"};rn(f.hint.textEdits)&&(S.cursor="default"),this._fillInColors(S,f.hint),(v.command||v.location)&&((i=this._activeInlayHintPart)===null||i===void 0?void 0:i.part.item)===f&&this._activeInlayHintPart.part.index===b&&(S.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(S.color=Qt(lE),S.cursor="pointer")),d&&(C&&w?(S.padding=`1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px`):C?(S.padding=`1px 0 1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):w?(S.padding=`1px ${Math.max(1,l/4)|0}px 1px 0`,S.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):S.padding="1px 0 1px 0"),r(f,this._ruleFactory.createClassNameRef(S),rce(v.label),w&&!f.hint.paddingRight?Wo.Right:Wo.None,new Px(f,b))}if(f.hint.paddingRight&&a(f,!0),s.length>Fx._MAX_DECORATORS)break}const g=[];for(const f of e)for(const{id:_}of(n=this._editor.getDecorationsInRange(f))!==null&&n!==void 0?n:[]){const b=this._decorationsMetadata.get(_);b&&(g.push(_),b.classNameRef.dispose(),this._decorationsMetadata.delete(_))}this._editor.changeDecorations(f=>{const _=f.deltaDecorations(g,s.map(b=>b.decoration));for(let b=0;b<_.length;b++){const v=s[b];this._decorationsMetadata.set(_[b],v)}})}_fillInColors(e,t){t.kind===X0.Parameter?(e.backgroundColor=Qt(zz),e.color=Qt(Hz)):t.kind===X0.Type?(e.backgroundColor=Qt(Vz),e.color=Qt(Wz)):(e.backgroundColor=Qt(za),e.color=Qt(Ha))}_getLayoutInfo(){const e=this._editor.getOption(129),t=e.padding,i=this._editor.getOption(48),n=this._editor.getOption(45);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const r=e.fontFamily||n;return{fontSize:s,fontFamily:r,padding:t,isUniform:!t&&r===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};nh.ID="editor.contrib.InlayHints";nh._MAX_DECORATORS=1500;nh=sce([Yh(1,de),Yh(2,no),Yh(3,D9),Yh(4,ci),Yh(5,di),Yh(6,Ae)],nh);function rce(o){const e="\xA0";return o.replace(/[ \t]/g,e)}Xe.registerCommand("_executeInlayHintProvider",(o,...e)=>su(void 0,void 0,void 0,function*(){const[t,i]=e;pt(_e.isUri(t)),pt(L.isIRange(i));const{inlayHintsProvider:n}=o.get(de),s=yield o.get(Kn).createModelReference(t);try{const r=yield qm.create(n,s.object.textEditorModel,[L.lift(i)],ze.None),a=r.items.map(l=>l.hint);return setTimeout(()=>r.dispose(),0),a}finally{s.dispose()}}));var ace=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ff=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},uO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lce=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class gO extends T0{constructor(e,t){super(10,t,e.item.anchor.range),this.part=e}}let Bx=class extends bC{constructor(e,t,i,n,s,r){super(e,t,i,n,r),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!nh.get(this._editor)||e.target.type!==6)return null;const n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof zd&&n.attachedData instanceof Px?new gO(n.attachedData,this):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof gO?new ri(n=>uO(this,void 0,void 0,function*(){var s,r;const{part:a}=e;if(yield a.item.resolve(i),i.isCancellationRequested)return;let l;typeof a.item.hint.tooltip=="string"?l=new Fn().appendText(a.item.hint.tooltip):a.item.hint.tooltip&&(l=a.item.hint.tooltip),l&&n.emitOne(new Tr(this,e.range,[l],0)),rn(a.item.hint.textEdits)&&n.emitOne(new Tr(this,e.range,[new Fn().appendText(p("hint.dbl","Double click to insert"))],10001));let c;if(typeof a.part.tooltip=="string"?c=new Fn().appendText(a.part.tooltip):a.part.tooltip&&(c=a.part.tooltip),c&&n.emitOne(new Tr(this,e.range,[c],1)),a.part.location||a.part.command){let g;const _=this._editor.getOption(72)==="altKey"?Ge?p("links.navigate.kb.meta.mac","cmd + click"):p("links.navigate.kb.meta","ctrl + click"):Ge?p("links.navigate.kb.alt.mac","option + click"):p("links.navigate.kb.alt","alt + click");a.part.location&&a.part.command?g=new Fn().appendText(p("hint.defAndCommand","Go to Definition ({0}), right click for more",_)):a.part.location?g=new Fn().appendText(p("hint.def","Go to Definition ({0})",_)):a.part.command&&(g=new Fn(`[${p("hint.cmd","Execute Command")}](${tce(a.part.command)} "${a.part.command.title}") (${_})`,{isTrusted:!0})),g&&n.emitOne(new Tr(this,e.range,[g],1e4))}const d=yield this._resolveInlayHintLabelPartHover(a,i);try{for(var h=lce(d),u;u=yield h.next(),!u.done;){const g=u.value;n.emitOne(g)}}catch(g){s={error:g}}finally{try{u&&!u.done&&(r=h.return)&&(yield r.call(h))}finally{if(s)throw s.error}}})):ri.EMPTY}_resolveInlayHintLabelPartHover(e,t){return uO(this,void 0,void 0,function*(){if(!e.part.location)return ri.EMPTY;const{uri:i,range:n}=e.part.location,s=yield this._resolverService.createModelReference(i);try{const r=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(r)?eT(this._languageFeaturesService.hoverProvider,r,new B(n.startLineNumber,n.startColumn),t).filter(a=>!_g(a.hover.contents)).map(a=>new Tr(this,e.item.anchor.range,a.hover.contents,2+a.ordinal)):ri.EMPTY}finally{s.dispose()}})}};Bx=ace([Ff(1,Ht),Ff(2,io),Ff(3,ot),Ff(4,Kn),Ff(5,de)],Bx);tt(nh.ID,nh);xh.register(Bx);class cce{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new oe(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new oe(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var dce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hce=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cc=class Wx{constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}static get(e){return e.getContribution(Wx.ID)}dispose(){}run(e,t){this.currentRequest&&this.currentRequest.cancel();const i=this.editor.getSelection(),n=this.editor.getModel();if(!n||!i)return;let s=i;if(s.startLineNumber!==s.endLineNumber)return;const r=new Tm(this.editor,5),a=n.uri;return this.editorWorkerService.canNavigateValueSet(a)?(this.currentRequest=Ri(l=>this.editorWorkerService.navigateValueSet(a,s,t)),this.currentRequest.then(l=>{if(!l||!l.range||!l.value||!r.validate(this.editor))return;const c=L.lift(l.range);let d=l.range;const h=l.value.length-(s.endColumn-s.startColumn);d={startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.startColumn+l.value.length},h>1&&(s=new oe(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+h-1));const u=new cce(c,s,l.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:d,options:Wx.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=sc(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(Te)}).catch(Te)):Promise.resolve(void 0)}};Cc.ID="editor.contrib.inPlaceReplaceController";Cc.DECORATION=Ne.register({description:"in-place-replace",className:"valueSetReplacement"});Cc=dce([hce(1,to)],Cc);class uce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.up",label:p("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3154,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}class gce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.down",label:p("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3156,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}tt(Cc.ID,Cc);ie(uce);ie(gce);Et((o,e)=>{const t=o.getColor(z4);t&&e.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${t}; }`)});class fce extends ce{constructor(){super({id:"expandLineSelection",label:p("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:N.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,Wi.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(i.source,!0)}}ie(fce);class pce{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){const i=mce(e,this._cursors);for(let n=0,s=i.length;nr.lineNumber===a.lineNumber?r.column-a.column:r.lineNumber-a.lineNumber);for(let r=e.length-2;r>=0;r--)e[r].lineNumber===e[r+1].lineNumber&&e.splice(r,1);const t=[];let i=0,n=0;const s=e.length;for(let r=1,a=o.getLineCount();r<=a;r++){const l=o.getLineContent(r),c=l.length+1;let d=0;if(n1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=a,this._type.title=a,bs(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else Si(this._type),this._type.title="",Pn(this._type),this.domNode.classList.add("no-type");if(Si(this._docs),typeof r=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=r;else if(r){this._docs.classList.add("markdown-docs"),Si(this._docs);const a=this._markdownRenderer.render(r);this._docs.appendChild(a.element),this._renderDisposeable.add(a),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=a=>{a.preventDefault(),a.stopPropagation()},this._close.onclick=a=>{a.preventDefault(),a.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){const i=new vt(e,t);vt.equals(i,this._size)||(this._size=i,TH(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};kx=hle([ule(1,Ae)],kx);class gle{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new Q,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new p9,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let i,n,s=0,r=0;this._disposables.add(this._resizable.onDidWillResize(()=>{i=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(i&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(r=n.width-a.dimension.width,l=!0),a.north&&(s=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:i.top+s,left:i.left+r})}a.done&&(i=void 0,n=void 0,s=0,r=0,this._userSize=a.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var a;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(i=this._userSize)!==null&&i!==void 0?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=JC(document.body),r=this.widget.getLayoutInfo(),a=new vt(220,2*r.lineHeight),l=e.top,c=function(){const w=s.width-(e.left+e.width+r.borderWidth+r.horizontalPadding),S=-r.borderWidth+e.left+e.width,k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),d=function(){const w=e.left-r.borderWidth-r.horizontalPadding,S=Math.max(r.horizontalPadding,e.left-t.width-r.borderWidth),k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),h=function(){const w=e.left,S=-r.borderWidth+e.top+e.height,k=new vt(e.width-r.borderHeight,s.height-e.top-e.height-r.verticalPadding);return{top:S,left:w,fit:k.height-t.height,maxSizeBottom:k,maxSizeTop:k,minSize:a.with(k.width)}}(),u=[c,d,h],g=(n=u.find(w=>w.fit>=0))!==null&&n!==void 0?n:u.sort((w,S)=>S.fit-w.fit)[0],f=e.top+e.height-r.borderHeight;let _,b=t.height;const v=Math.max(g.maxSizeTop.height,g.maxSizeBottom.height);b>v&&(b=v);let C;i?b<=g.maxSizeTop.height?(_=!0,C=g.maxSizeTop):(_=!1,C=g.maxSizeBottom):b<=g.maxSizeBottom.height?(_=!1,C=g.maxSizeBottom):(_=!0,C=g.maxSizeTop),this._applyTopLeft({left:g.left,top:_?g.top:f-b}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!_,g===c,_,g!==c),this._resizable.minSize=g.minSize,this._resizable.maxSize=C,this._resizable.layout(b,Math.min(C.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}var Ka;(function(o){o[o.FILE=0]="FILE",o[o.FOLDER=1]="FOLDER",o[o.ROOT_FOLDER=2]="ROOT_FOLDER"})(Ka||(Ka={}));const fle=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function i0(o,e,t,i){const n=i===Ka.ROOT_FOLDER?["rootfolder-icon"]:i===Ka.FOLDER?["folder-icon"]:["file-icon"];if(t){let s;if(t.scheme===Me.data)s=cc.parseMetaData(t).get(cc.META_DATA_LABEL);else{const r=t.path.match(fle);r?(s=n0(r[2].toLowerCase()),r[1]&&n.push(`${n0(r[1].toLowerCase())}-name-dir-icon`)):s=n0(t.authority.toLowerCase())}if(i===Ka.FOLDER)n.push(`${s}-name-folder-icon`);else{if(s){if(n.push(`${s}-name-file-icon`),n.push("name-file-icon"),s.length<=255){const a=s.split(".");for(let l=1;l=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ay=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Pf;function m9(o){return`suggest-aria-id:${o}`}const _le=mi("suggest-more-info",m.chevronRight,p("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),ble=new(Pf=class F0{extract(e,t){if(e.textLabel.match(F0._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(F0._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){const i=F0._regexRelaxed.exec(e.completion.documentation);if(i&&(i.index===0||i.index+i[0].length===e.completion.documentation.length))return t[0]=i[0],!0}return!1}},Pf._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Pf._regexStrict=new RegExp(`^${Pf._regexRelaxed.source}$`,"i"),Pf);let xx=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new R,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=Object.create(null);t.disposables=new Q,t.root=e,t.root.classList.add("show-file-icons"),t.icon=q(e,J(".icon")),t.colorspan=q(t.icon,J("span.colorspan"));const i=q(e,J(".contents")),n=q(i,J(".main"));t.iconContainer=q(n,J(".icon-label.codicon")),t.left=q(n,J("span.left")),t.right=q(n,J("span.right")),t.iconLabel=new nC(t.left,{supportHighlights:!0,supportIcons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=q(t.left,J("span.signature-label")),t.qualifierLabel=q(t.left,J("span.qualifier-label")),t.detailsLabel=q(t.right,J("span.details-label")),t.readMore=q(t.right,J("span.readMore"+at.asCSSSelector(_le))),t.readMore.title=p("readMore","Read More");const s=()=>{const r=this._editor.getOptions(),a=r.get(46),l=a.getMassagedFontFamily(),c=a.fontFeatureSettings,d=r.get(109)||a.fontSize,h=r.get(110)||a.lineHeight,u=a.fontWeight,g=a.letterSpacing,f=`${d}px`,_=`${h}px`,b=`${g}px`;t.root.style.fontSize=f,t.root.style.fontWeight=u,t.root.style.letterSpacing=b,n.style.fontFamily=l,n.style.fontFeatureSettings=c,n.style.lineHeight=_,t.icon.style.height=_,t.icon.style.width=_,t.readMore.style.height=_,t.readMore.style.width=_};return s(),t.disposables.add(this._editor.onDidChangeConfiguration(r=>{(r.hasChanged(46)||r.hasChanged(109)||r.hasChanged(110))&&s()})),t}renderElement(e,t,i){const{completion:n}=e;i.root.id=m9(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:E1(e.score)},r=[];if(n.kind===19&&ble.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const a=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FILE),l=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FILE);s.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FOLDER),i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...Ln.asClassNameArray(Pp.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),typeof n.label=="string"?(i.parametersLabel.textContent="",i.detailsLabel.textContent=My(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=My(n.label.detail||""),i.detailsLabel.textContent=My(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(108).showInlineDetails?bs(i.detailsLabel):Pn(i.detailsLabel),hT(e)?(i.right.classList.add("can-expand-details"),bs(i.readMore),i.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},i.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),Pn(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};xx=mle([Ay(1,Ut),Ay(2,Ht),Ay(3,Ct)],xx);function My(o){return o.replace(/\r\n|\r|\n/g,"")}var vle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},s0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Cle=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};T("editorSuggestWidget.background",{dark:li,light:li,hcDark:li,hcLight:li},p("editorSuggestWidgetBackground","Background color of the suggest widget."));T("editorSuggestWidget.border",{dark:Ba,light:Ba,hcDark:Ba,hcLight:Ba},p("editorSuggestWidgetBorder","Border color of the suggest widget."));const o0=T("editorSuggestWidget.foreground",{dark:Cs,light:Cs,hcDark:Cs,hcLight:Cs},p("editorSuggestWidgetForeground","Foreground color of the suggest widget."));T("editorSuggestWidget.selectedForeground",{dark:jf,light:jf,hcDark:jf,hcLight:jf},p("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));T("editorSuggestWidget.selectedIconForeground",{dark:Kf,light:Kf,hcDark:Kf,hcLight:Kf},p("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const wle=T("editorSuggestWidget.selectedBackground",{dark:qf,light:qf,hcDark:qf,hcLight:qf},p("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));T("editorSuggestWidget.highlightForeground",{dark:fo,light:fo,hcDark:fo,hcLight:fo},p("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));T("editorSuggestWidget.focusHighlightForeground",{dark:ob,light:ob,hcDark:ob,hcLight:ob},p("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));T("editorSuggestWidgetStatus.foreground",{dark:fe(o0,.5),light:fe(o0,.5),hcDark:fe(o0,.5),hcLight:fe(o0,.5)},p("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class Sle{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Qd}`}restore(){var e;const t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{const i=JSON.parse(t);if(vt.is(i))return vt.lift(i)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let jm=class Ix{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new xs,this._disposables=new Q,this._onDidSelect=new R,this._onDidFocus=new R,this._onDidHide=new R,this._onDidShow=new R,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new R,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new p9,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new yle(this,e),this._persistedSize=new Sle(t,e);class r{constructor(g,f,_=!1,b=!1){this.persistedSize=g,this.currentSize=f,this.persistHeight=_,this.persistWidth=b}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new r(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(u=>{var g,f,_,b;if(this._resize(u.dimension.width,u.dimension.height),a&&(a.persistHeight=a.persistHeight||!!u.north||!!u.south,a.persistWidth=a.persistWidth||!!u.east||!!u.west),!!u.done){if(a){const{itemHeight:v,defaultSize:C}=this.getLayoutInfo(),w=Math.round(v/2);let{width:S,height:k}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-k)<=w)&&(k=(f=(g=a.persistedSize)===null||g===void 0?void 0:g.height)!==null&&f!==void 0?f:C.height),(!a.persistWidth||Math.abs(a.currentSize.width-S)<=w)&&(S=(b=(_=a.persistedSize)===null||_===void 0?void 0:_.width)!==null&&b!==void 0?b:C.width),this._persistedSize.store(new vt(S,k))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=q(this.element.domNode,J(".message")),this._listElement=q(this.element.domNode,J(".tree"));const l=s.createInstance(kx,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new gle(l,this.editor);const c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(108).showIcons);c();const d=s.createInstance(xx,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new rr("SuggestWidget",this._listElement,{getHeight:u=>this.getLayoutInfo().itemHeight,getTemplateId:u=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>p("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:u=>{let g=u.textLabel;if(typeof u.completion.label!="string"){const{detail:v,description:C}=u.completion.label;v&&C?g=p("label.full","{0}{1}, {2}",g,v,C):v?g=p("label.detail","{0}{1}",g,v):C&&(g=p("label.desc","{0}, {1}",g,C))}if(!u.isResolved||!this._isDetailsVisible())return g;const{documentation:f,detail:_}=u.completion,b=Vs("{0}{1}",_||"",f?typeof f=="string"?f:f.value:"");return p("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",g,b)}}}),this._status=s.createInstance(Dx,this.element.domNode);const h=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(108).showStatusBar);h(),this._disposables.add(Ud(this._list,n,{listInactiveFocusBackground:wle,listInactiveFocusOutline:Ot})),this._disposables.add(n.onDidColorThemeChange(u=>this._onThemeChange(u))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onTap(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onDidChangeSelection(u=>this._onListSelection(u))),this._disposables.add(this._list.onDidChangeFocus(u=>this._onListFocus(u))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(u=>{u.hasChanged(108)&&(h(),c())})),this._ctxSuggestWidgetVisible=Ke.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=Ke.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=Ke.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=Ke.HasFocusedSuggestion.bindTo(i),this._disposables.add(ki(this._details.widget.domNode,"keydown",u=>{this._onDetailsKeydown.fire(u)})),this._disposables.add(this.editor.onMouseDown(u=>this._onEditorMouseDown(u)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(e){typeof e.element>"u"||typeof e.index>"u"||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=cn(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=Ri(s=>Cle(this,void 0,void 0,function*(){const r=Ad(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=s.onCancellationRequested(()=>r.dispose()),l=yield i.resolve(s);return r.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:m9(n)}))}).catch(Te)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",e===4),this.element.domNode.classList.remove("message"),e){case 0:Pn(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.LOADING_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.NO_SUGGESTIONS_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 4:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 5:Pn(this._messageElement),bs(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=Ad(()=>this._setState(1),t)))}showSuggestions(e,t,i,n){var s,r;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(r=this._currentSuggestionDetails)===null||r===void 0||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&this._state!==2&&this._state!==0){this._setState(4);return}const a=this._completionModel.items.length,l=a===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l){this._setState(n?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),t>=0&&(this._list.reveal(t,0),this._list.setFocus([t])),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(hT(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);const d=this._completionModel?this._completionModel.stats.pLabelLen*r.typicalHalfwidthCharacterWidth:l,h=r.statusBarHeight+this._list.contentHeight+r.borderHeight,u=r.itemHeight+r.statusBarHeight,g=on(this.editor.getDomNode()),f=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),_=g.top+f.top+f.height,b=Math.min(s.height-_-r.verticalPadding,h),v=g.top+f.top-r.verticalPadding,C=Math.min(v,h);let w=Math.min(Math.max(C,b)+r.borderHeight,h);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aw&&(a=w);const S=150;a>b||this._forceRenderingAbove&&v>S?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),w=C):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),w=b),this.element.preferredSize=new vt(d,r.defaultSize.height),this.element.maxSize=new vt(c,w),this.element.minSize=new vt(220,u),this._cappedHeight=a===h?{wanted:(n=(i=this._cappedHeight)===null||i===void 0?void 0:i.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=`${t-s}px`,this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((e=this._contentWidget.getPosition())===null||e===void 0?void 0:e.preference[0])===2)}getLayoutInfo(){const e=this.editor.getOption(46),t=Zn(this.editor.getOption(110)||e.lineHeight,8,1e3),i=!this.editor.getOption(108).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new vt(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};jm.LOADING_MESSAGE=p("suggestWidget.loading","Loading...");jm.NO_SUGGESTIONS_MESSAGE=p("suggestWidget.noSuggestions","No suggestions.");jm=vle([s0(1,Do),s0(2,Ee),s0(3,Ct),s0(4,Ae)],jm);class yle{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new vt(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Lle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Dle{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){const n=e.getOffsetAt(t),s=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:L.fromPositions(t,s),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let _o=class _9{constructor(e,t,i,n,s,r,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=r,this._telemetryService=a,this._lineSuffix=new _n,this._toDispose=new Q,this._selectors=new kle(h=>h.priority),this._telemetryGate=0,this.editor=e,this.model=s.createInstance(Lx,this.editor);const l=Ke.InsertMode.bindTo(n);l.set(e.getOption(108).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(108).insertMode)),this.widget=this._toDispose.add(new $l(()=>{const h=this._instantiationService.createInstance(jm,this.editor);this._toDispose.add(h),this._toDispose.add(h.onDidSelect(b=>this._insertSuggestion(b,0),this));const u=new Lae(this.editor,h,b=>this._insertSuggestion(b,2));this._toDispose.add(u),this._toDispose.add(this.model.onDidSuggest(b=>{b.completionModel.items.length===0&&u.reset()}));const g=Ke.MakesTextEdit.bindTo(this._contextKeyService),f=Ke.HasInsertAndReplaceRange.bindTo(this._contextKeyService),_=Ke.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Be(()=>{g.reset(),f.reset(),_.reset()})),this._toDispose.add(h.onDidFocus(({item:b})=>{const v=this.editor.getPosition(),C=b.editStart.column,w=v.column;let S=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!b.completion.additionalTextEdits&&!(b.completion.insertTextRules&4)&&w-C===b.completion.insertText.length&&(S=this.editor.getModel().getValueInRange({startLineNumber:v.lineNumber,startColumn:C,endLineNumber:v.lineNumber,endColumn:w})!==b.completion.insertText),g.set(S),f.set(!B.equals(b.editInsertEnd,b.editReplaceEnd)),_.set(Boolean(b.provider.resolveCompletionItem)||Boolean(b.completion.documentation)||b.completion.detail!==b.completion.label)})),this._toDispose.add(h.onDetailsKeyDown(b=>{if(b.toKeybinding().equals(new Md(!0,!1,!1,!1,33))||Ge&&b.toKeybinding().equals(new Md(!1,!1,!1,!0,33))){b.stopPropagation();return}b.toKeybinding().isModifierKey()||this.editor.focus()})),h})),this._overtypingCapturer=this._toDispose.add(new $l(()=>this._toDispose.add(new _w(this.editor,this.model)))),this._alternatives=this._toDispose.add(new $l(()=>this._toDispose.add(new ih(this.editor,this._contextKeyService)))),this._toDispose.add(s.createInstance($m,e)),this._toDispose.add(this.model.onDidTrigger(h=>{this.widget.value.showTriggered(h.auto,h.shy?250:50),this._lineSuffix.value=new Dle(this.editor.getModel(),h.position)})),this._toDispose.add(this.model.onDidSuggest(h=>{if(h.shy)return;let u=-1;if(!h.noSelect){for(const g of this._selectors.itemsOrderedByPriorityDesc)if(u=g.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items),u!==-1)break;u===-1&&(u=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items))}this.widget.value.showSuggestions(h.completionModel,u,h.isFrozen,h.auto)})),this._toDispose.add(this.model.onDidCancel(h=>{h.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));const c=Ke.AcceptSuggestionsOnEnter.bindTo(n),d=()=>{const h=this.editor.getOption(1);c.set(h==="on"||h==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}static get(e){return e.getContribution(_9.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const i=Oi.get(this.editor);if(!i)return;const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:r}=e,a=[],l=new Qi;t&1||this.editor.pushUndoStop();const c=this.getOverwriteInfo(r,Boolean(t&8));if(this._memoryService.memorize(n,this.editor.getPosition(),r),Array.isArray(r.completion.additionalTextEdits)){const h=hc.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map(u=>Ft.replaceMove(L.lift(u.range),u.text))),h.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!r.isResolved){const h=new $n(!0);let u;const g=n.onDidChangeContent(v=>{if(v.isFlush){l.cancel(),g.dispose();return}for(const C of v.changes){const w=L.getEndPosition(C.range);(!u||B.isBefore(w,u))&&(u=w)}}),f=t;t|=2;let _=!1;const b=this.editor.onWillType(()=>{b.dispose(),_=!0,f&2||this.editor.pushUndoStop()});a.push(r.resolve(l.token).then(()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested||u&&r.completion.additionalTextEdits.some(C=>B.isBefore(u,L.getStartPosition(C.range))))return!1;_&&this.editor.pushUndoStop();const v=hc.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map(C=>Ft.replaceMove(L.lift(C.range),C.text))),v.restoreRelativeVerticalPositionOfCursor(this.editor),(_||!(f&2))&&this.editor.pushUndoStop(),!0}).then(v=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",h.elapsed(),v),g.dispose(),b.dispose()}))}let{insertText:d}=r.completion;r.completion.insertTextRules&4||(d=_c.escape(d)),i.insert(d,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(r.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),r.completion.command?r.completion.command.id===F_.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(a.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch(Te)),this.model.cancel()):this.model.cancel(),t&4&&this._alternatives.value.set(e,h=>{for(l.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(h,3|(t&8?8:0));break}}),this._alertCompletionItem(r),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(r,n,e),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i){var n;if(this._telemetryGate++%100!==0)return;const s=e.extensionId?e.extensionId.value:((n=i.item.provider._debugDisplayName)!==null&&n!==void 0?n:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:s,kind:e.completion.kind,basenameHash:OI(Js(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:uq(t.uri)})}getOverwriteInfo(e,t){pt(this.editor.hasModel());let i=this.editor.getOption(108).insertMode==="replace";t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,r=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+r,overwriteAfter:s+a}}_alertCompletionItem(e){if(rn(e.completion.additionalTextEdits)){const t=p("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);Gi(t)}}triggerSuggest(e,t,i,n){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,shy:!1,noSelect:n!=null?n:!1},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=s=>{if(s.completion.insertTextRules&4||s.completion.additionalTextEdits)return!0;const r=this.editor.getPosition(),a=s.editStart.column,l=r.column;return l-a!==s.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:r.lineNumber,startColumn:a,endLineNumber:r.lineNumber,endColumn:l})!==s.completion.insertText};ge.once(this.model.onDidTrigger)(s=>{const r=[];ge.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{nt(r),i()},void 0,r),this.model.onDidSuggest(({completionModel:a})=>{if(nt(r),a.items.length===0){i();return}const l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!n(c)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,r)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){!this.widget.isInitialized||this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};_o.ID="editor.contrib.suggestController";_o=Lle([Gh(1,mw),Gh(2,ci),Gh(3,Ee),Gh(4,Ae),Gh(5,So),Gh(6,sr)],_o);class kle{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(this._items.indexOf(e)!==-1)throw new Error("Value is already registered");return this._items.push(e),this._items.sort((t,i)=>this.prioritySelector(i)-this.prioritySelector(t)),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class F_ extends ce{constructor(){super({id:F_.id,label:p("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:se.and(N.writable,N.hasCompletionItemProvider),kbOpts:{kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=_o.get(t);if(!n)return;let s,r;i&&typeof i=="object"&&(i.auto===!0&&(s=!0),i.noSelection===!0&&(r=!0)),n.triggerSuggest(void 0,s,void 0,r)}}F_.id="editor.action.triggerSuggest";tt(_o.ID,_o);ie(F_);const eo=100+90,ls=xi.bindToContribution(_o.get);ee(new ls({id:"acceptSelectedSuggestion",precondition:se.and(Ke.Visible,Ke.HasFocusedSuggestion),handler(o){o.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:se.and(Ke.Visible,N.textInputFocus),weight:eo},{primary:3,kbExpr:se.and(Ke.Visible,N.textInputFocus,Ke.AcceptSuggestionsOnEnter,Ke.MakesTextEdit),weight:eo}],menuOpts:[{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:Ke.HasInsertAndReplaceRange.toNegated()},{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert"))},{menuId:Ql,title:p("accept.replace","Replace"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace"))}]}));ee(new ls({id:"acceptAlternativeSelectedSuggestion",precondition:se.and(Ke.Visible,N.textInputFocus,Ke.HasFocusedSuggestion),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1027,secondary:[1026]},handler(o){o.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert")),title:p("accept.replace","Replace")},{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace")),title:p("accept.insert","Insert")}]}));Xe.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");ee(new ls({id:"hideSuggestWidget",precondition:Ke.Visible,handler:o=>o.cancelSuggestWidget(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:9,secondary:[1033]}}));ee(new ls({id:"selectNextSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));ee(new ls({id:"selectNextPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:12,secondary:[2060]}}));ee(new ls({id:"selectLastSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectLastSuggestion()}));ee(new ls({id:"selectPrevSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));ee(new ls({id:"selectPrevPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:11,secondary:[2059]}}));ee(new ls({id:"selectFirstSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectFirstSuggestion()}));ee(new ls({id:"toggleSuggestionDetails",precondition:Ke.Visible,handler:o=>o.toggleSuggestionDetails(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible,Ke.CanResolve),title:p("detail.more","show less")},{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible.toNegated(),Ke.CanResolve),title:p("detail.less","show more")}]}));ee(new ls({id:"toggleExplainMode",precondition:Ke.Visible,handler:o=>o.toggleExplainMode(),kbOpts:{weight:100,primary:2133}}));ee(new ls({id:"toggleSuggestionFocus",precondition:Ke.Visible,handler:o=>o.toggleSuggestionFocus(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2570,mac:{primary:778}}}));ee(new ls({id:"insertBestCompletion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),$m.AtEnd,Ke.Visible.toNegated(),ih.OtherSuggestions.toNegated(),Oi.InSnippetMode.toNegated()),handler:(o,e)=>{o.triggerSuggestAndAcceptBest(Hn(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:eo,primary:2}}));ee(new ls({id:"insertNextSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2}}));ee(new ls({id:"insertPrevSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1026}}));ie(class extends ce{constructor(){super({id:"editor.action.resetSuggestSize",label:p("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(o,e){var t;(t=_o.get(e))===null||t===void 0||t.resetWidgetSize()}});class xle extends H{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new mt(()=>{this.isSuggestWidgetVisible||this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(n=>{n.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(n=>{n.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const i=_o.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(r,a,l)=>{const c=this.editor.getModel(),d=kC(c,this.suggestControllerPreselector());if(!d)return-1;const h=B.lift(a),u=l.map((f,_)=>{const b=lO(i,h,f,this.isShiftKeyPressed),v=kC(c,b==null?void 0:b.normalizedInlineCompletion);if(!v)return;const C=Ile(d.range,v.range)&&d.insertText.startsWith(v.insertText);return{index:_,valid:C,prefixLength:v.insertText.length,suggestItem:f}}).filter(f=>f&&f.valid),g=zO(u,op(f=>f.prefixLength,O8));return g?g.index:-1}}));let n=!1;const s=()=>{n||(n=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ge.once(i.model.onDidTrigger)(r=>{s()}))}this.update(this._isActive)}get state(){if(!!this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){const t=this.getSuggestItemInfo();let i=!1;Ele(this._currentSuggestItemInfo,t)||(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){const e=_o.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem();if(!!t)return lO(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const e=_o.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){const e=_o.get(this.editor);e&&e.forceRenderingAbove()}}function Ile(o,e){return e.startLineNumber===o.startLineNumber&&e.startColumn===o.startColumn&&(e.endLineNumber0)return{completionItemKind:t.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:L.fromPositions(e,e),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:n}=t.completion,s=!1;if(t.completion.insertTextRules&4){const a=new _c().parse(n),l=o.editor.getModel();if(a.children.length>100)return;SC.adjustWhitespace(l,e,a,!0,!0),n=a.toString(),s=!0}const r=o.getOverwriteInfo(t,i);return{isSnippetText:s,completionItemKind:t.completion.kind,normalizedInlineCompletion:{insertText:n,filterText:n,range:L.fromPositions(e.delta(0,-r.overwriteBefore),e.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}var Nle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},cO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Ex=class extends l9{constructor(e,t,i){super(e),this.cache=t,this.languageFeaturesService=i,this.suggestionInlineCompletionSource=this._register(new xle(this.editor,()=>{var n,s;return(s=(n=this.cache.value)===null||n===void 0?void 0:n.completions[0])===null||s===void 0?void 0:s.toLiveInlineCompletion()})),this.updateOperation=this._register(new _n),this.updateCacheSoon=this._register(new mt(()=>this.updateCache(),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange(()=>{if(!this.editor.hasModel())return;this.updateCacheSoon.schedule(),this.suggestionInlineCompletionSource.state||(this.minReservedLineCount=0);const s=this.ghostText;s&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,Ale(s.parts.map(r=>r.lines.length-1)))),this.minReservedLineCount>=1?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()})),this._register(this.cache.onDidChange(()=>{this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeCursorPosition(n=>{this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire()})),this._register(Be(()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove()))}get isActive(){return this.suggestionInlineCompletionSource.state!==void 0}isSuggestionPreviewEnabled(){return this.editor.getOption(108).preview}updateCache(){return cO(this,void 0,void 0,function*(){const e=this.suggestionInlineCompletionSource.state;if(!e||!e.selectedItem)return;const t={text:e.selectedItem.normalizedInlineCompletion.insertText,range:e.selectedItem.normalizedInlineCompletion.range,isSnippetText:e.selectedItem.isSnippetText,completionKind:e.selectedItem.completionItemKind},i=this.editor.getPosition();if(e.selectedItem.isSnippetText||e.selectedItem.completionItemKind===27||e.selectedItem.completionItemKind===20||e.selectedItem.completionItemKind===23){this.cache.clear();return}const n=Ri(r=>cO(this,void 0,void 0,function*(){let a;try{a=yield h9(this.languageFeaturesService.inlineCompletionsProvider,i,this.editor.getModel(),{triggerKind:Ps.Automatic,selectedSuggestionInfo:t},r)}catch(l){Te(l);return}if(r.isCancellationRequested){a.dispose();return}this.cache.setValue(this.editor,a,Ps.Automatic),this.onDidChangeEmitter.fire()})),s=new d9(n,Ps.Automatic);this.updateOperation.value=s,yield n,this.updateOperation.value===s&&this.updateOperation.clear()})}get ghostText(){var e,t,i;const n=this.isSuggestionPreviewEnabled(),s=this.editor.getModel(),r=kC(s,(t=(e=this.cache.value)===null||e===void 0?void 0:e.completions[0])===null||t===void 0?void 0:t.toLiveInlineCompletion()),a=this.suggestionInlineCompletionSource.state,l=kC(s,(i=a==null?void 0:a.selectedItem)===null||i===void 0?void 0:i.normalizedInlineCompletion),c=r&&l&&r.insertText.startsWith(l.insertText)&&r.range.equalsRange(l.range);if(!n&&!c)return;const d=c?r:l||r,h=c?d.insertText.length-l.insertText.length:0;return this.toGhostText(d,h)}toGhostText(e,t){const i=this.editor.getOptions().get(108).previewMode;return e?c9(e,this.editor.getModel(),i,this.editor.getPosition(),t)||new r9(e.range.endLineNumber,[],this.minReservedLineCount):void 0}};Ex=Nle([Tle(2,de)],Ex);function Ale(o){return o.reduce((e,t)=>e+t,0)}var Mle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ole=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ple extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new _n)}get targetModel(){var e;return(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object}setTargetModel(e){var t;((t=this.currentModelRef.value)===null||t===void 0?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?iae(e,e.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=(t=(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object)===null||t===void 0?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;(t=this.targetModel)===null||t===void 0||t.setExpanded(e)}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let Nx=class extends Ple{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.sharedCache=this._register(new Fle),this.suggestWidgetAdapterModel=this._register(this.instantiationService.createInstance(Ex,this.editor,this.sharedCache)),this.inlineCompletionsModel=this._register(this.instantiationService.createInstance(yx,this.editor,this.sharedCache)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const i=(t=this.activeInlineCompletionsModel)===null||t===void 0?void 0:t.ghostText;return i?i.parts.some(n=>e.containsPosition(new B(i.lineNumber,n.column))):!1}triggerInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.trigger(Ps.Explicit)}commitInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.commitCurrentSuggestion()}hideInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.hide()}showNextInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showNext()}showPreviousInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showPrevious()}hasMultipleInlineCompletions(){var e;return Ole(this,void 0,void 0,function*(){const t=yield(e=this.activeInlineCompletionsModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Nx=Mle([Rle(1,Ae)],Nx);class Fle extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.cache=this._register(new _n)}get value(){return this.cache.value}setValue(e,t,i){this.cache.value=new gae(t,e,()=>this.onDidChangeEmitter.fire(),i)}clearAndLeak(){return this.cache.clearAndLeak()}clear(){this.cache.clear()}}var Ble=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ry;const hO=(Ry=window.trustedTypes)===null||Ry===void 0?void 0:Ry.createPolicy("editorGhostText",{createHTML:o=>o});let Tx=class extends H{constructor(e,t,i,n){super(),this.editor=e,this.model=t,this.instantiationService=i,this.languageService=n,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(Vle,this.editor)),this.additionalLinesWidget=this._register(new Hle(this.editor,this.languageService.languageIdCodec)),this.viewMoreContentWidget=void 0,this.replacementDecoration=this._register(new Wle(this.editor)),this._register(this.editor.onDidChangeConfiguration(s=>{(s.hasChanged(29)||s.hasChanged(107)||s.hasChanged(90)||s.hasChanged(85)||s.hasChanged(47)||s.hasChanged(46)||s.hasChanged(61))&&this.update()})),this._register(Be(()=>{var s;this.disposed=!0,this.update(),(s=this.viewMoreContentWidget)===null||s===void 0||s.dispose(),this.viewMoreContentWidget=void 0})),this._register(t.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e;const t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed){this.partsWidget.clear(),this.additionalLinesWidget.clear(),this.replacementDecoration.clear();return}const i=new Array,n=new Array;function s(c,d){if(n.length>0){const h=n[n.length-1];d&&h.decorations.push(new es(h.content.length+1,h.content.length+1+c[0].length,d,0)),h.content+=c[0],c=c.slice(1)}for(const h of c)n.push({content:h,decorations:d?[new es(1,h.length+1,d,0)]:[]})}t instanceof a9?this.replacementDecoration.setDecorations([{range:new L(t.lineNumber,t.columnStart,t.lineNumber,t.columnStart+t.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.replacementDecoration.setDecorations([]);const r=this.editor.getModel().getLineContent(t.lineNumber);let a,l=0;for(const c of t.parts){let d=c.lines;a===void 0?(i.push({column:c.column,text:d[0],preview:c.preview}),d=d.slice(1)):s([r.substring(l,c.column-1)],void 0),d.length>0&&(s(d,"ghost-text"),a===void 0&&c.column<=r.length&&(a=c.column)),l=c.column-1}a!==void 0&&s([r.substring(l)],void 0),this.partsWidget.setParts(t.lineNumber,i,a!==void 0?{column:a,length:r.length+1-a}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,n,t.additionalReservedLineCount),(e=this.viewMoreContentWidget)===null||e===void 0||e.dispose(),this.viewMoreContentWidget=void 0}renderViewMoreLines(e,t,i){const n=this.editor.getOption(46),s=document.createElement("div");s.className="suggest-preview-additional-widget",an(s,n);const r=document.createElement("span");r.className="content-spacer",r.append(t),s.append(r);const a=document.createElement("span");a.className="content-newline suggest-preview-text",a.append("\u23CE "),s.append(a);const l=new Q,c=document.createElement("div");return c.className="button suggest-preview-text",c.append(`+${i} lines\u2026`),l.add(ki(c,"mousedown",d=>{var h;(h=this.model)===null||h===void 0||h.setExpanded(!0),d.preventDefault(),this.editor.focus()})),s.append(c),new Ule(this.editor,e,s,l)}};Tx=Ble([dO(2,Ae),dO(3,Ht)],Tx);class Wle{constructor(e){this.editor=e,this.decorationIds=[]}setDecorations(e){this.editor.changeDecorations(t=>{this.decorationIds=t.deltaDecorations(this.decorationIds,e)})}clear(){this.setDecorations([])}dispose(){this.clear()}}class Vle{constructor(e){this.editor=e,this.decorationIds=[]}dispose(){this.clear()}clear(){this.editor.changeDecorations(e=>{this.decorationIds=e.deltaDecorations(this.decorationIds,[])})}setParts(e,t,i){if(!this.editor.getModel())return;const s=new Array;i&&s.push({range:L.fromPositions(new B(e,i.column),new B(e,i.column+i.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.editor.changeDecorations(r=>{this.decorationIds=r.deltaDecorations(this.decorationIds,t.map(a=>({range:L.fromPositions(new B(e,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Wo.Left},showIfCollapsed:!0}})).concat(s))})}}class Hle{constructor(e,t){this.editor=e,this.languageIdCodec=t,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones(r=>{this._viewZoneId&&(r.removeZone(this._viewZoneId),this._viewZoneId=void 0);const a=Math.max(t.length,i);if(a>0){const l=document.createElement("div");zle(l,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=r.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}}function zle(o,e,t,i,n){const s=i.get(29),r=i.get(107),a="none",l=i.get(85),c=i.get(47),d=i.get(46),h=i.get(61),u=nc(1e4);u.appendASCIIString('
');for(let _=0,b=t.length;_');const w=VC(C),S=eg(C),k=Di.createEmpty(C,n);a_(new Lc(d.isMonospace&&!s,d.canUseHalfwidthRightwardsArrow,C,!1,w,S,0,k,v.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,r,a,l,c!==_s.OFF,null),u),u.appendASCIIString("
")}u.appendASCIIString(""),an(o,d);const g=u.build(),f=hO?hO.createHTML(g):g;o.innerHTML=f}class Ule extends H{constructor(e,t,i,n){super(),this.editor=e,this.position=t,this.domNode=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(n),this._register(Be(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Et((o,e)=>{const t=o.getColor(D$);t&&(e.addRule(`.monaco-editor .ghost-text-decoration { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { color: ${t.toString()} !important; }`));const i=o.getColor(k$);i&&(e.addRule(`.monaco-editor .ghost-text-decoration { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { background-color: ${i.toString()}; }`));const n=o.getColor(L$);n&&(e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { border: 1px solid ${n}; }`))});var b9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ax=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},bw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Mi=class v9 extends H{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new _n),this.activeModelDidChangeEmitter=this._register(new R),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(i=>{i.hasChanged(108)&&this.updateModelController(),i.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(e){return e.getContribution(v9.ID)}get activeModel(){var e;return(e=this.activeController.value)===null||e===void 0?void 0:e.model}updateModelController(){const e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(Mx,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return((t=this.activeModel)===null||t===void 0?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return((i=(t=this.activeController.value)===null||t===void 0?void 0:t.widget)===null||i===void 0?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),(e=this.activeModel)===null||e===void 0||e.triggerInlineCompletion()}commit(){var e;(e=this.activeModel)===null||e===void 0||e.commitInlineCompletion()}hide(){var e;(e=this.activeModel)===null||e===void 0||e.hideInlineCompletion()}showNextInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return bw(this,void 0,void 0,function*(){const t=yield(e=this.activeModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Mi.inlineSuggestionVisible=new le("inlineSuggestionVisible",!1,p("inlineSuggestionVisible","Whether an inline suggestion is visible"));Mi.inlineSuggestionHasIndentation=new le("inlineSuggestionHasIndentation",!1,p("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"));Mi.inlineSuggestionHasIndentationLessThanTabSize=new le("inlineSuggestionHasIndentationLessThanTabSize",!0,p("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"));Mi.ID="editor.contrib.ghostTextController";Mi=b9([Ax(1,Ae)],Mi);class $le{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=Mi.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=Mi.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=Mi.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let Mx=class extends H{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new $le(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(Nx,this.editor)),this.widget=this._register(this.instantiationService.createInstance(Tx,this.editor,this.model)),this._register(Be(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set(((e=this.model.activeInlineCompletionsModel)===null||e===void 0?void 0:e.ghostText)!==void 0);let t=!1,i=!0;const n=this.model.inlineCompletionsModel.ghostText;if(!!this.model.activeInlineCompletionsModel&&n&&n.parts.length>0){const{column:s,lines:r}=n.parts[0],a=r[0],l=this.editor.getModel().getLineIndentColumn(n.lineNumber);if(s<=l){let d=kn(a);d===-1&&(d=a.length-1),t=d>0;const h=this.editor.getModel().getOptions().tabSize;i=Ci.visibleColumnFromColumn(a,d+1,h)=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class qle{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return((i=(t=(e=this.controller.activeModel)===null||e===void 0?void 0:e.activeInlineCompletionsModel)===null||t===void 0?void 0:t.completionSession.value)===null||i===void 0?void 0:i.commands)||[]}}let Rx=class{constructor(e,t,i,n,s,r,a){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=s,this._openerService=r,this.accessibilityService=a,this.hoverOrdinal=3}suggestHoverAnchor(e){const t=Mi.get(this._editor);if(!t)return null;const i=e.target;if(i.type===8){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new T0(1e3,this,L.fromPositions(n.positionBefore||n.position,n.positionBefore||n.position))}return i.type===7&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):i.type===6&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):null}computeSync(e,t){const i=Mi.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new qle(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new Q,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);const s=i.add(this._menuService.createMenu(M.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:p("showNextInlineSuggestion","Next"),commandId:Ag.ID,run:()=>this._commandService.executeCommand(Ag.ID)}),a=e.statusBar.addAction({label:p("showPreviousInlineSuggestion","Previous"),commandId:Mg.ID,run:()=>this._commandService.executeCommand(Mg.ID)});e.statusBar.addAction({label:p("acceptInlineSuggestion","Accept"),commandId:DC,run:()=>this._commandService.executeCommand(DC)});const l=[r,a];for(const c of l)c.setEnabled(!1);n.hasMultipleSuggestions().then(c=>{for(const d of l)d.setEnabled(c)});for(const c of n.commands)e.statusBar.addAction({label:c.title,commandId:c.id,run:()=>this._commandService.executeCommand(c.id,...c.arguments||[])});for(const[c,d]of s.getActions())for(const h of d)h instanceof ac&&e.statusBar.addAction({label:h.label,commandId:h.item.id,run:()=>this._commandService.executeCommand(h.item.id)});return i}renderScreenReaderText(e,t,i){var n,s;const r=J,a=r("div.hover-row.markdown-hover"),l=q(a,r("div.hover-contents")),c=i.add(new ol({editor:this._editor},this._languageService,this._openerService)),d=u=>{i.add(c.onDidRenderAsync(()=>{l.className="hover-contents code-hover-contents",e.onContentsChanged()}));const g=p("inlineSuggestionFollows","Suggestion:"),f=i.add(c.render(new Fn().appendText(g).appendCodeblock("text",u)));l.replaceChildren(f.element)},h=(s=(n=t.controller.activeModel)===null||n===void 0?void 0:n.inlineCompletionsModel)===null||s===void 0?void 0:s.ghostText;if(h){const u=this._editor.getModel().getLineContent(h.lineNumber);d(h.renderForScreenReader(u))}e.fragment.appendChild(a)}};Rx=Kle([Zh(1,ci),Zh(2,ph),Zh(3,Ee),Zh(4,Ht),Zh(5,io),Zh(6,al)],Rx);tt(Mi.ID,Mi);ie(jle);ie(Ag);ie(Mg);xh.register(Rx);const C9=xi.bindToContribution(Mi.get),Ox=new C9({id:DC,precondition:Mi.inlineSuggestionVisible,handler(o){o.commit(),o.editor.focus()}});ee(Ox);as.registerKeybindingRule({primary:2,weight:200,id:Ox.id,when:se.and(Ox.precondition,N.tabMovesFocus.toNegated(),Mi.inlineSuggestionHasIndentationLessThanTabSize)});ee(new C9({id:"editor.action.inlineSuggest.hide",precondition:Mi.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(o){o.hide()}}));function Gn(o,e){let t=0;for(let i=0;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function w9(o,e,t,i,n){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return[];const s=e.getLanguageConfiguration(o.getLanguageId()).indentationRules;if(!s)return[];for(i=Math.min(i,o.getLineCount());t<=i&&s.unIndentedLinePattern;){const b=o.getLineContent(t);if(!s.unIndentedLinePattern.test(b))break;t++}if(t>i-1)return[];const{tabSize:r,indentSize:a,insertSpaces:l}=o.getOptions(),c=(b,v)=>(v=v||1,Bs.shiftIndent(b,b.length+v,r,a,l)),d=(b,v)=>(v=v||1,Bs.unshiftIndent(b,b.length+v,r,a,l)),h=[];let u;const g=o.getLineContent(t);let f=g;if(n!=null){u=n;const b=_t(g);f=u+g.substring(b.length),s.decreaseIndentPattern&&s.decreaseIndentPattern.test(f)&&(u=d(u),f=u+g.substring(b.length)),g!==f&&h.push(Ft.replaceMove(new oe(t,1,t,b.length+1),Sv(u,a,l)))}else u=_t(g);let _=u;s.increaseIndentPattern&&s.increaseIndentPattern.test(f)?(_=c(_),u=c(u)):s.indentNextLinePattern&&s.indentNextLinePattern.test(f)&&(_=c(_)),t++;for(let b=t;b<=i;b++){const v=o.getLineContent(b),C=_t(v),w=_+v.substring(C.length);s.decreaseIndentPattern&&s.decreaseIndentPattern.test(w)&&(_=d(_),u=d(u)),C!==_&&h.push(Ft.replaceMove(new oe(b,1,b,C.length+1),Sv(_,a,l))),!(s.unIndentedLinePattern&&s.unIndentedLinePattern.test(v))&&(s.increaseIndentPattern&&s.increaseIndentPattern.test(w)?(u=c(u),_=u):s.indentNextLinePattern&&s.indentNextLinePattern.test(w)?_=c(_):_=u)}return h}class vw extends ce{constructor(){super({id:vw.ID,label:p("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new Jle(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}vw.ID="editor.action.indentationToSpaces";class Cw extends ce{constructor(){super({id:Cw.ID,label:p("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new ece(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}Cw.ID="editor.action.indentationToTabs";class S9 extends ce{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const i=e.get(dl),n=e.get(Ut),s=t.getModel();if(!s)return;const r=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),a=[1,2,3,4,5,6,7,8].map(c=>({id:c.toString(),label:c.toString(),description:c===r.tabSize?p("configuredTabSize","Configured Tab Size"):void 0})),l=Math.min(s.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(a,{placeHolder:p({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then(c=>{c&&s&&!s.isDisposed()&&s.updateOptions({tabSize:parseInt(c.label,10),insertSpaces:this.insertSpaces})})},50)}}class ww extends S9{constructor(){super(!1,{id:ww.ID,label:p("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}ww.ID="editor.action.indentUsingTabs";class Sw extends S9{constructor(){super(!0,{id:Sw.ID,label:p("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}Sw.ID="editor.action.indentUsingSpaces";class yw extends ce{constructor(){super({id:yw.ID,label:p("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(Ut),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}yw.ID="editor.action.detectIndentation";class Yle extends ce{constructor(){super({id:"editor.action.reindentlines",label:p("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=w9(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class Qle extends ce{constructor(){super({id:"editor.action.reindentselectedlines",label:p("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=t.getSelections();if(s===null)return;const r=[];for(const a of s){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;const d=w9(n,i,l,c);r.push(...d)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class Xle{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&typeof i.text=="string"&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(L.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let Km=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new Q,this.callOnModel=new Q,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(9)<4||this.editor.getOption(50))&&(!this.editor.hasModel()||this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(t===null||t.length>1)return;const i=this.editor.getModel();if(!i||!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(9),{tabSize:s,indentSize:r,insertSpaces:a}=i.getOptions(),l=[],c={shiftIndent:g=>Bs.shiftIndent(g,g.length+1,s,r,a),unshiftIndent:g=>Bs.unshiftIndent(g,g.length+1,s,r,a)};let d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(i,d)){d++;continue}break}if(d>e.endLineNumber)return;let h=i.getLineContent(d);if(!/\S/.test(h.substring(0,e.startColumn-1))){const g=hp(n,i,i.getLanguageId(),d,c,this._languageConfigurationService);if(g!==null){const f=_t(h),_=Gn(g,s),b=Gn(f,s);if(_!==b){const v=Tp(_,s,a);l.push({range:new L(d,1,d,f.length+1),text:v}),h=v+h.substr(f.length)}else{const v=Z4(i,d,this._languageConfigurationService);if(v===0||v===8)return}}}const u=d;for(;di.tokenization.getLineTokens(_),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(_,b)=>i.getLanguageIdAtPosition(_,b)},getLineContent:_=>_===u?h:i.getLineContent(_)},i.getLanguageId(),d+1,c,this._languageConfigurationService);if(f!==null){const _=Gn(f,s),b=Gn(_t(i.getLineContent(d+1)),s);if(_!==b){const v=_-b;for(let C=d+1;C<=e.endLineNumber;C++){const w=i.getLineContent(C),S=_t(w),x=Gn(S,s)+v,y=Tp(x,s,a);y!==S&&l.push({range:new L(C,1,C,S.length+1),text:y})}}}}if(l.length>0){this.editor.pushUndoStop();const g=new Xle(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",g),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(i===0)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const s=n.findTokenIndexAtOffset(i);if(s>=0&&n.getStandardTokenType(s)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};Km.ID="editor.contrib.autoIndentOnPaste";Km=Gle([Zle(1,si)],Km);function y9(o,e,t,i){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return;let n="";for(let r=0;rthis._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,i;return xC(this,void 0,void 0,function*(){try{const n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=n==null?void 0:n.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(i=n==null?void 0:n.label)!==null&&i!==void 0?i:this.hint.label,this._isResolved=!0}catch(n){Pi(n),this._isResolved=!1}})}}class qm{constructor(e,t,i){this._disposables=new Q,this.ranges=e,this.provider=new Set;const n=[];for(const[s,r]of t){this._disposables.add(s),this.provider.add(r);for(const a of s.hints){const l=i.validatePosition(a.position);let c="before";const d=qm._getRangeAtPosition(i,l);let h;d.getStartPosition().isBefore(l)?(h=L.fromPositions(d.getStartPosition(),l),c="after"):(h=L.fromPositions(l,d.getEndPosition()),c="before"),n.push(new uT(a,new L9(h,c),r))}}this.items=n.sort((s,r)=>B.compare(s.hint.position,r.hint.position))}static create(e,t,i,n){return xC(this,void 0,void 0,function*(){const s=[],r=e.ordered(t).reverse().map(a=>i.map(l=>xC(this,void 0,void 0,function*(){try{const c=yield a.provideInlayHints(t,l,n);c!=null&&c.hints.length&&s.push([c,a])}catch(c){Pi(c)}})));if(yield Promise.all(r.flat()),n.isCancellationRequested||t.isDisposed())throw new yc;return new qm(i,s,t)})}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new L(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),r=t.column-1,a=s.findTokenIndexAtOffset(r);let l=s.getStartOffset(a),c=s.getEndOffset(a);return c-l===1&&(l===r&&a>1?(l=s.getStartOffset(a-1),c=s.getEndOffset(a-1)):c===r&&auu(f)?f.command.id:""));for(const f of md.getEditorActions())f instanceof vo&&u.has(f.id)&&h.push(new is(f.id,f.label,void 0,!0,()=>Ap(this,void 0,void 0,function*(){const _=yield s.createModelReference(d.uri);try{yield l.invokeFunction(f.run.bind(f),e,new Pm(_.object.textEditorModel,L.getStartPosition(d.range)))}finally{_.dispose()}})));if(i.part.command){const{command:f}=i.part;h.push(new ln),h.push(new is(f.id,f.title,void 0,!0,()=>Ap(this,void 0,void 0,function*(){var _;try{yield a.executeCommand(f.id,...(_=f.arguments)!==null&&_!==void 0?_:[])}catch(b){c.notify({severity:I5.Error,source:i.item.provider.displayName,message:b})}})))}const g=e.getOption(117);r.showContextMenu({domForShadowRoot:g&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{const f=on(t);return{x:f.left,y:f.top+f.height+8}},getActions:()=>h,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function nce(o,e,t,i){return Ap(this,void 0,void 0,function*(){const s=yield o.get(Kn).createModelReference(i.uri);yield t.invokeWithinContext(r=>Ap(this,void 0,void 0,function*(){const a=e.hasSideBySideModifier,l=r.get(Ee),c=jn.inPeekEditor.getValue(l),d=!a&&t.getOption(80)&&!c;return new R_({openToSide:a,openInPeek:d,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(r,t,{model:s.object.textEditorModel,position:L.getStartPosition(i.range)})})),s.dispose()})}var sce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Yh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},su=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class IC{constructor(){this._entries=new Dc(50)}get(e){const t=IC._key(e);return this._entries.get(t)}set(e,t){const i=IC._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const D9=Ye("IInlayHintsCache");et(D9,IC,!0);class Px{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}}class oce{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let nh=class Fx{constructor(e,t,i,n,s,r,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=r,this._instaService=a,this._disposables=new Q,this._sessionDisposables=new Q,this._decorationsMetadata=new Map,this._ruleFactory=new d_(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(129)&&this._update()})),this._update()}static get(e){var t;return(t=e.getContribution(Fx.ID))!==null&&t!==void 0?t:void 0}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(129);if(e.enabled==="off")return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;const i=this._inlayHintsCache.get(t);i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add(Be(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n;const s=new Set,r=new mt(()=>su(this,void 0,void 0,function*(){const a=Date.now();n==null||n.dispose(!0),n=new Qi;const l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{const c=n.token,d=yield qm.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(r.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(const h of d.provider)typeof h.onDidChangeInlayHints=="function"&&!s.has(h)&&(s.add(h),this._sessionDisposables.add(h.onDidChangeInlayHints(()=>{r.isScheduled()||r.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){Te(c)}finally{n.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(r),this._sessionDisposables.add(Be(()=>n==null?void 0:n.dispose(!0))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!r.isScheduled())&&r.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{const l=Math.max(r.delay,1250);r.schedule(l)})),e.enabled==="on")this._activeRenderMode=0;else{let a,l;e.enabled==="onUnlessPressed"?(a=0,l=1):(a=1,l=0),this._activeRenderMode=a,this._sessionDisposables.add(Ol.getInstance().event(c=>{if(!this._editor.hasModel())return;const d=c.altKey&&c.ctrlKey?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;const h=this._editor.getModel(),u=this._copyInlayHintsWithCurrentAnchor(h);this._updateHintsDecorators([h.getFullModelRange()],u),r.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>r.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new Q,t=e.add(new UN(this._editor)),i=new Q;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{const[s]=n,r=this._getInlayHintLabelPart(s),a=this._editor.getModel();if(!r||!a){i.clear();return}const l=new Qi;i.add(Be(()=>l.dispose(!0))),r.item.resolve(l.token),this._activeInlayHintPart=r.part.command||r.part.location?new oce(r,s.hasTriggerModifier):void 0;const c=r.item.hint.position.lineNumber,d=new L(c,1,c,a.getLineMaxColumn(c)),h=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],h),i.add(Be(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],h)}))})),e.add(t.onCancel(()=>i.clear())),e.add(t.onExecute(n=>su(this,void 0,void 0,function*(){const s=this._getInlayHintLabelPart(n);if(s){const r=s.part;r.location?this._instaService.invokeFunction(nce,n,this._editor,r.location):Jy.is(r.command)&&(yield this._invokeCommand(r.command,s.item))}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>su(this,void 0,void 0,function*(){if(t.event.detail!==2)return;const i=this._getInlayHintLabelPart(t);if(!!i&&(t.event.preventDefault(),yield i.item.resolve(ze.None),rn(i.item.hint.textEdits))){const n=i.item.hint.textEdits.map(s=>Ft.replace(L.lift(s.range),s.text));this._editor.executeEdits("inlayHint.default",n),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>su(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(ice,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;const i=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(i instanceof zd&&(i==null?void 0:i.attachedData)instanceof Px)return i.attachedData}_invokeCommand(e,t){var i;return su(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(i=e.arguments)!==null&&i!==void 0?i:[])}catch(n){this._notificationService.notify({severity:I5.Error,source:t.provider.displayName,message:n})}})}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const r=new L9(s,n.item.anchor.direction),a=n.item.with({anchor:r});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){const t=this._editor.getModel(),i=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const s of i.sort(L.compareRangesUsingStarts)){const r=t.validateRange(new L(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));n.length===0||!L.areIntersectingOrTouching(n[n.length-1],r)?n.push(r):n[n.length-1]=L.plusRange(n[n.length-1],r)}return n}_updateHintsDecorators(e,t){var i,n;const s=[],r=(f,_,b,v,C)=>{const w={content:b,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:_.className,cursorStops:v,attachedData:C};s.push({item:f,classNameRef:_,decoration:{range:f.anchor.range,options:{description:"InlayHint",showIfCollapsed:f.anchor.range.isEmpty(),collapseOnReplaceEdit:!f.anchor.range.isEmpty(),stickiness:0,[f.anchor.direction]:this._activeRenderMode===0?w:void 0}}})},a=(f,_)=>{const b=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});r(f,b,"\u200A",_?Wo.Right:Wo.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:h}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,c);for(const f of t){f.hint.paddingLeft&&a(f,!1);const _=typeof f.hint.label=="string"?[{label:f.hint.label}]:f.hint.label;for(let b=0;b<_.length;b++){const v=_[b],C=b===0,w=b===_.length-1,S={fontSize:`${l}px`,fontFamily:`var(${u}), ${ts.fontFamily}`,verticalAlign:h?"baseline":"middle"};rn(f.hint.textEdits)&&(S.cursor="default"),this._fillInColors(S,f.hint),(v.command||v.location)&&((i=this._activeInlayHintPart)===null||i===void 0?void 0:i.part.item)===f&&this._activeInlayHintPart.part.index===b&&(S.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(S.color=Qt(lE),S.cursor="pointer")),d&&(C&&w?(S.padding=`1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px`):C?(S.padding=`1px 0 1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):w?(S.padding=`1px ${Math.max(1,l/4)|0}px 1px 0`,S.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):S.padding="1px 0 1px 0"),r(f,this._ruleFactory.createClassNameRef(S),rce(v.label),w&&!f.hint.paddingRight?Wo.Right:Wo.None,new Px(f,b))}if(f.hint.paddingRight&&a(f,!0),s.length>Fx._MAX_DECORATORS)break}const g=[];for(const f of e)for(const{id:_}of(n=this._editor.getDecorationsInRange(f))!==null&&n!==void 0?n:[]){const b=this._decorationsMetadata.get(_);b&&(g.push(_),b.classNameRef.dispose(),this._decorationsMetadata.delete(_))}this._editor.changeDecorations(f=>{const _=f.deltaDecorations(g,s.map(b=>b.decoration));for(let b=0;b<_.length;b++){const v=s[b];this._decorationsMetadata.set(_[b],v)}})}_fillInColors(e,t){t.kind===X0.Parameter?(e.backgroundColor=Qt(zz),e.color=Qt(Hz)):t.kind===X0.Type?(e.backgroundColor=Qt(Vz),e.color=Qt(Wz)):(e.backgroundColor=Qt(za),e.color=Qt(Ha))}_getLayoutInfo(){const e=this._editor.getOption(129),t=e.padding,i=this._editor.getOption(48),n=this._editor.getOption(45);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const r=e.fontFamily||n;return{fontSize:s,fontFamily:r,padding:t,isUniform:!t&&r===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};nh.ID="editor.contrib.InlayHints";nh._MAX_DECORATORS=1500;nh=sce([Yh(1,de),Yh(2,no),Yh(3,D9),Yh(4,ci),Yh(5,di),Yh(6,Ae)],nh);function rce(o){const e="\xA0";return o.replace(/[ \t]/g,e)}Xe.registerCommand("_executeInlayHintProvider",(o,...e)=>su(void 0,void 0,void 0,function*(){const[t,i]=e;pt(_e.isUri(t)),pt(L.isIRange(i));const{inlayHintsProvider:n}=o.get(de),s=yield o.get(Kn).createModelReference(t);try{const r=yield qm.create(n,s.object.textEditorModel,[L.lift(i)],ze.None),a=r.items.map(l=>l.hint);return setTimeout(()=>r.dispose(),0),a}finally{s.dispose()}}));var ace=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ff=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},uO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lce=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class gO extends T0{constructor(e,t){super(10,t,e.item.anchor.range),this.part=e}}let Bx=class extends bC{constructor(e,t,i,n,s,r){super(e,t,i,n,r),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!nh.get(this._editor)||e.target.type!==6)return null;const n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof zd&&n.attachedData instanceof Px?new gO(n.attachedData,this):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof gO?new ri(n=>uO(this,void 0,void 0,function*(){var s,r;const{part:a}=e;if(yield a.item.resolve(i),i.isCancellationRequested)return;let l;typeof a.item.hint.tooltip=="string"?l=new Fn().appendText(a.item.hint.tooltip):a.item.hint.tooltip&&(l=a.item.hint.tooltip),l&&n.emitOne(new Tr(this,e.range,[l],0)),rn(a.item.hint.textEdits)&&n.emitOne(new Tr(this,e.range,[new Fn().appendText(p("hint.dbl","Double click to insert"))],10001));let c;if(typeof a.part.tooltip=="string"?c=new Fn().appendText(a.part.tooltip):a.part.tooltip&&(c=a.part.tooltip),c&&n.emitOne(new Tr(this,e.range,[c],1)),a.part.location||a.part.command){let g;const _=this._editor.getOption(72)==="altKey"?Ge?p("links.navigate.kb.meta.mac","cmd + click"):p("links.navigate.kb.meta","ctrl + click"):Ge?p("links.navigate.kb.alt.mac","option + click"):p("links.navigate.kb.alt","alt + click");a.part.location&&a.part.command?g=new Fn().appendText(p("hint.defAndCommand","Go to Definition ({0}), right click for more",_)):a.part.location?g=new Fn().appendText(p("hint.def","Go to Definition ({0})",_)):a.part.command&&(g=new Fn(`[${p("hint.cmd","Execute Command")}](${tce(a.part.command)} "${a.part.command.title}") (${_})`,{isTrusted:!0})),g&&n.emitOne(new Tr(this,e.range,[g],1e4))}const d=yield this._resolveInlayHintLabelPartHover(a,i);try{for(var h=lce(d),u;u=yield h.next(),!u.done;){const g=u.value;n.emitOne(g)}}catch(g){s={error:g}}finally{try{u&&!u.done&&(r=h.return)&&(yield r.call(h))}finally{if(s)throw s.error}}})):ri.EMPTY}_resolveInlayHintLabelPartHover(e,t){return uO(this,void 0,void 0,function*(){if(!e.part.location)return ri.EMPTY;const{uri:i,range:n}=e.part.location,s=yield this._resolverService.createModelReference(i);try{const r=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(r)?eT(this._languageFeaturesService.hoverProvider,r,new B(n.startLineNumber,n.startColumn),t).filter(a=>!_g(a.hover.contents)).map(a=>new Tr(this,e.item.anchor.range,a.hover.contents,2+a.ordinal)):ri.EMPTY}finally{s.dispose()}})}};Bx=ace([Ff(1,Ht),Ff(2,io),Ff(3,ot),Ff(4,Kn),Ff(5,de)],Bx);tt(nh.ID,nh);xh.register(Bx);class cce{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new oe(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new oe(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var dce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hce=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cc=class Wx{constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}static get(e){return e.getContribution(Wx.ID)}dispose(){}run(e,t){this.currentRequest&&this.currentRequest.cancel();const i=this.editor.getSelection(),n=this.editor.getModel();if(!n||!i)return;let s=i;if(s.startLineNumber!==s.endLineNumber)return;const r=new Tm(this.editor,5),a=n.uri;return this.editorWorkerService.canNavigateValueSet(a)?(this.currentRequest=Ri(l=>this.editorWorkerService.navigateValueSet(a,s,t)),this.currentRequest.then(l=>{if(!l||!l.range||!l.value||!r.validate(this.editor))return;const c=L.lift(l.range);let d=l.range;const h=l.value.length-(s.endColumn-s.startColumn);d={startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.startColumn+l.value.length},h>1&&(s=new oe(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+h-1));const u=new cce(c,s,l.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:d,options:Wx.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=sc(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(Te)}).catch(Te)):Promise.resolve(void 0)}};Cc.ID="editor.contrib.inPlaceReplaceController";Cc.DECORATION=Ne.register({description:"in-place-replace",className:"valueSetReplacement"});Cc=dce([hce(1,to)],Cc);class uce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.up",label:p("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3154,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}class gce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.down",label:p("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3156,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}tt(Cc.ID,Cc);ie(uce);ie(gce);Et((o,e)=>{const t=o.getColor(z4);t&&e.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${t}; }`)});class fce extends ce{constructor(){super({id:"expandLineSelection",label:p("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:N.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,Wi.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(i.source,!0)}}ie(fce);class pce{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){const i=mce(e,this._cursors);for(let n=0,s=i.length;nr.lineNumber===a.lineNumber?r.column-a.column:r.lineNumber-a.lineNumber);for(let r=e.length-2;r>=0;r--)e[r].lineNumber===e[r+1].lineNumber&&e.splice(r,1);const t=[];let i=0,n=0;const s=e.length;for(let r=1,a=o.getLineCount();r<=a;r++){const l=o.getLineContent(r),c=l.length+1;let d=0;if(n{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(n=>{(n.matchCase||n.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new oe(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){!e||(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(!!this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const n=e.getState().matchCase;if(!B9(this._editor.getModel(),t,n)){const r=this._editor.getModel(),a=[];for(let l=0,c=t.length;l0&&i.isRegex){const n=this._editor.getModel();i.searchScope?t=n.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(119):null,!1,1073741824):t=n.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(119):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const n=this._editor.getSelection();for(let s=0,r=t.length;snew oe(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn)))}}}sh.ID="editor.contrib.multiCursorController";class rf extends ce{run(e,t){const i=sh.get(t);if(!i)return;const n=rs.get(t);if(!n)return;const s=t._getViewModel();if(s){const r=s.getCursorStates();this._run(i,n),Nc(r,s.getCursorStates())}}}class tde extends rf{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:2082,weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"3_multi",title:p({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class ide extends rf{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:M.MenubarSelectionMenu,group:"3_multi",title:p({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class nde extends rf{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:yi(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class sde extends rf{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class ode extends rf{constructor(){super({id:"editor.action.selectHighlights",label:p("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:3114,weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"3_multi",title:p({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class rde extends rf{constructor(){super({id:"editor.action.changeAll",label:p("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:se.and(N.writable,N.editorTextFocus),kbOpts:{kbExpr:N.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class ade{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(L.compareRangesUsingStarts)),this._cachedFindMatches}}let oh=class B0 extends H{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(99),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new mt(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(n=>{this._isEnabled=e.getOption(99)})),this._register(e.onDidChangeCursorSelection(n=>{!this._isEnabled||(n.selection.isEmpty()?n.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(n=>{this._setState(null)})),this._register(e.onDidChangeModelContent(n=>{this._isEnabled&&this.updateSoon.schedule()}));const i=rs.get(e);i&&this._register(i.getState().onFindReplaceStateChange(n=>{this._update()}))}_update(){this._setState(B0._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t||!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const s=sh.get(i);if(!s)return null;const r=rs.get(i);if(!r)return null;let a=s.getSession(r);if(!a){const d=i.getSelections();if(d.length>1){const u=r.getState().matchCase;if(!B9(i.getModel(),d,u))return null}a=Zm.create(i,r)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||a.searchText.length>200)return null;const l=r.getState(),c=l.matchCase;if(l.isRevealed){let d=l.searchString;c||(d=d.toLowerCase());let h=a.searchText;if(c||(h=h.toLowerCase()),d===h&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new ade(i.getModel(),a.searchText,a.matchCase,a.wholeWord?i.getOption(119):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(L.compareRangesUsingStarts);const s=[];for(let l=0,c=0,d=i.length,h=n.length;l=h)s.push(u),l++;else{const g=L.compareRangesUsingStarts(u,n[c]);g<0?((n[c].isEmpty()||!L.areIntersecting(u,n[c]))&&s.push(u),l++):(g>0||l++,c++)}}const r=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(74),a=s.map(l=>({range:l,options:r?B0._SELECTION_HIGHLIGHT:B0._SELECTION_HIGHLIGHT_OVERVIEW}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};oh.ID="editor.contrib.selectionHighlighter";oh._SELECTION_HIGHLIGHT_OVERVIEW=Ne.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",minimap:{color:Qt(m1),position:js.Inline},overviewRuler:{color:Qt(T4),position:Zs.Center}});oh._SELECTION_HIGHLIGHT=Ne.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"});oh=Gce([Zce(1,de)],oh);function B9(o,e,t){const i=pO(o,e[0],!t);for(let n=1,s=e.length;nW9(void 0,void 0,void 0,function*(){const[t,i,n]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string"||!n);const s=o.get(de),r=yield o.get(Kn).createModelReference(t);try{const a=yield V9(s.signatureHelpProvider,r.object.textEditorModel,B.lift(i),{triggerKind:Wr.Invoke,isRetrigger:!1,triggerCharacter:n},ze.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{r.dispose()}}));var dde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},xl;(function(o){o.Default={type:0};class e{constructor(n,s){this.request=n,this.previouslyActiveHints=s,this.type=2}}o.Pending=e;class t{constructor(n){this.hints=n,this.type=1}}o.Active=t})(xl||(xl={}));class Dw extends H{constructor(e,t,i=Dw.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new R),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=xl.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new _n),this.triggerChars=new cu,this.retriggerChars=new cu,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new Kr(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(n=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(n=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(n=>this.onCursorChange(n))),this._register(this.editor.onDidChangeModelContent(n=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(n=>this.onDidType(n))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=xl.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(Te)}next(){if(this.state.type!==1)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?0:t+1)}previous(){if(this.state.type!==1)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t===0,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new xl.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return dde(this,void 0,void 0,function*(){const t=this.state.type===1||this.state.type===2,i=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const n=this._pendingTriggers.reduce(hde);this._pendingTriggers=[];const s={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),a=this.editor.getPosition();this.state=new xl.Pending(Ri(l=>V9(this.providers,r,a,s,l)),i);try{const l=yield this.state.request;return e!==this.triggerId?(l==null||l.dispose(),!1):!l||!l.value.signatures||l.value.signatures.length===0?(l==null||l.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new xl.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),!0)}catch(l){return e===this.triggerId&&(this.state=xl.Default),Te(l),!1}})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new cu,this.retriggerChars=new cu;const e=this.editor.getModel();if(!!e)for(const t of this.providers.ordered(e)){for(const i of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(i.charCodeAt(0)),this.retriggerChars.add(i.charCodeAt(0));for(const i of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(i.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:Wr.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Wr.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Wr.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(78).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}Dw.DEFAULT_DELAY=120;function hde(o,e){switch(e.triggerKind){case Wr.Invoke:return e;case Wr.ContentChange:return o;case Wr.TriggerCharacter:default:return e}}var ude=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},c0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const hs=J,gde=mi("parameter-hints-next",m.chevronDown,p("parameterHintsNextIcon","Icon for show next parameter hint.")),fde=mi("parameter-hints-previous",m.chevronUp,p("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let NC=class H9 extends H{constructor(e,t,i,n,s){super(),this.editor=e,this.renderDisposeables=this._register(new Q),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new ol({editor:e},n,i)),this.model=this._register(new Dw(e,s.signatureHelpProvider)),this.keyVisible=rh.Visible.bindTo(t),this.keyMultipleSignatures=rh.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(r=>{r?(this.show(),this.render(r)):this.hide()}))}createParameterHintDOMNodes(){const e=hs(".editor-widget.parameter-hints-widget"),t=q(e,hs(".phwrapper"));t.tabIndex=-1;const i=q(t,hs(".controls")),n=q(i,hs(".button"+at.asCSSSelector(fde))),s=q(i,hs(".overloads")),r=q(i,hs(".button"+at.asCSSSelector(gde)));this._register(G(n,"click",u=>{ut.stop(u),this.previous()})),this._register(G(r,"click",u=>{ut.stop(u),this.next()}));const a=hs(".body"),l=new p_(a,{alwaysConsumeMouseWheel:!0});this._register(l),t.appendChild(l.getDomNode());const c=q(a,hs(".signature")),d=q(a,hs(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:s,docs:d,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(u=>{this.visible&&this.editor.layoutContentWidget(this)}));const h=()=>{if(!this.domNodes)return;const u=this.editor.getOption(46);this.domNodes.element.style.fontSize=`${u.fontSize}px`,this.domNodes.element.style.lineHeight=`${u.lineHeight/u.fontSize}`};h(),this._register(ge.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(u=>u.hasChanged(46)).on(h,null)),this._register(this.editor.onDidLayoutChange(u=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{var e;(e=this.domNodes)===null||e===void 0||e.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,(e=this.domNodes)===null||e===void 0||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const s=q(this.domNodes.signature,hs(".code")),r=this.editor.getOption(46);s.style.fontSize=`${r.fontSize}px`,s.style.fontFamily=r.fontFamily;const a=n.parameters.length>0,l=(t=n.activeParameter)!==null&&t!==void 0?t:e.activeParameter;if(a)this.renderParameters(s,n,l);else{const h=q(s,hs("span"));h.textContent=n.label}const c=n.parameters[l];if(c!=null&&c.documentation){const h=hs("span.documentation");if(typeof c.documentation=="string")h.textContent=c.documentation;else{const u=this.renderMarkdownDocs(c.documentation);h.appendChild(u.element)}q(this.domNodes.docs,hs("p",{},h))}if(n.documentation!==void 0)if(typeof n.documentation=="string")q(this.domNodes.docs,hs("p",{},n.documentation));else{const h=this.renderMarkdownDocs(n.documentation);q(this.domNodes.docs,h.element)}const d=this.hasDocs(n,c);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,c){let h="";const u=n.parameters[l];Array.isArray(u.label)?h=n.label.substring(u.label[0],u.label[1]):h=u.label,u.documentation&&(h+=typeof u.documentation=="string"?`, ${u.documentation}`:`, ${u.documentation.value}`),n.documentation&&(h+=typeof n.documentation=="string"?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==h&&(Gi(p("hint","{0}, hint",h)),this.announcedLabel=h)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var i;(i=this.domNodes)===null||i===void 0||i.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Z_(t.documentation).length>0||t&&typeof t.documentation=="object"&&Z_(t.documentation).value.length>0||e.documentation&&typeof e.documentation=="string"&&Z_(e.documentation).length>0||e.documentation&&typeof e.documentation=="object"&&Z_(e.documentation.value).length>0)}renderParameters(e,t,i){const[n,s]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,n);const a=document.createElement("span");a.textContent=t.label.substring(n,s),a.className="parameter active";const l=document.createElement("span");l.textContent=t.label.substring(s),q(e,r,a,l)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const n=new RegExp(`(\\W|^)${ys(i.label)}(?=\\W|$)`,"g");n.test(e.label);const s=n.lastIndex-i.label.length;return s>=0?[s,n.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return H9.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){if(!this.domNodes)return;const t=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=t;const i=this.domNodes.element.getElementsByClassName("phwrapper");i.length&&(i[0].style.maxHeight=t)}};NC.ID="editor.widget.parameterHintsWidget";NC=ude([c0(1,Ee),c0(2,io),c0(3,Ht),c0(4,de)],NC);const pde=T("editorHoverWidget.highlightForeground",{dark:fo,light:fo,hcDark:fo,hcLight:fo},p("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));Et((o,e)=>{const t=o.getColor(aE);if(t){const c=cn(o.type)?2:1;e.addRule(`.monaco-editor .parameter-hints-widget { border: ${c}px solid ${t}; }`),e.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${t.transparent(.5)}; }`)}const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${i}; }`);const n=o.getColor(h1);n&&e.addRule(`.monaco-editor .parameter-hints-widget a { color: ${n}; }`);const s=o.getColor(u1);s&&e.addRule(`.monaco-editor .parameter-hints-widget a:hover { color: ${s}; }`);const r=o.getColor(rE);r&&e.addRule(`.monaco-editor .parameter-hints-widget { color: ${r}; }`);const a=o.getColor(k4);a&&e.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${a}; }`);const l=o.getColor(pde);l&&e.addRule(`.monaco-editor .parameter-hints-widget .parameter.active { color: ${l}}`)});var mde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_de=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ah=class z9 extends H{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(NC,this.editor))}static get(e){return e.getContribution(z9.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};ah.ID="editor.controller.parameterHints";ah=mde([_de(1,Ae)],ah);class bde extends ce{constructor(){super({id:"editor.action.triggerParameterHints",label:p("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:N.hasSignatureHelpProvider,kbOpts:{kbExpr:N.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=ah.get(t);i&&i.trigger({triggerKind:Wr.Invoke})}}tt(ah.ID,ah);ie(bde);const gT=100+75,fT=xi.bindToContribution(ah.get);ee(new fT({id:"closeParameterHints",precondition:rh.Visible,handler:o=>o.cancel(),kbOpts:{weight:gT,kbExpr:N.focus,primary:9,secondary:[1033]}}));ee(new fT({id:"showPrevParameterHint",precondition:se.and(rh.Visible,rh.MultipleSignatures),handler:o=>o.previous(),kbOpts:{weight:gT,kbExpr:N.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}}));ee(new fT({id:"showNextParameterHint",precondition:se.and(rh.Visible,rh.MultipleSignatures),handler:o=>o.next(),kbOpts:{weight:gT,kbExpr:N.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var vde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Oy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const kw=new le("renameInputVisible",!1,p("renameInputVisible","Whether the rename input widget is visible"));let Ux=class{constructor(e,t,i,n,s){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._disposables=new Q,this.allowEditorOverflow=!0,this._visibleContextKey=kw.bindTo(s),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(46)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",p("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);const e=()=>{var t,i;const[n,s]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(n),this._label.innerText=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(t=this._keybindingService.lookupKeybinding(n))===null||t===void 0?void 0:t.getLabel(),(i=this._keybindingService.lookupKeybinding(s))===null||i===void 0?void 0:i.getLabel())};e(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(e)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(e){var t,i,n,s;if(!this._input||!this._domNode)return;const r=e.getColor(Ho);this._domNode.style.backgroundColor=String((t=e.getColor(li))!==null&&t!==void 0?t:""),this._domNode.style.boxShadow=r?` 0 0 8px 2px ${r}`:"",this._domNode.style.color=String((i=e.getColor(f1))!==null&&i!==void 0?i:""),this._input.style.backgroundColor=String((n=e.getColor(g1))!==null&&n!==void 0?n:"");const a=e.getColor(p1);this._input.style.borderWidth=a?"1px":"0px",this._input.style.borderStyle=a?"solid":"none",this._input.style.borderColor=(s=a==null?void 0:a.toString())!==null&&s!==void 0?s:"none"}_updateFont(){if(!this._input||!this._label)return;const e=this._editor.getOption(46);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=`${e.fontSize*.8}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){var t;(t=this._currentAcceptInput)===null||t===void 0||t.call(this,e)}cancelInput(e){var t;(t=this._currentCancelInput)===null||t===void 0||t.call(this,e)}getInput(e,t,i,n,s,r){this._domNode.classList.toggle("preview",s),this._position=new B(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",i.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max((e.endColumn-e.startColumn)*1.1,20);const a=new Q;return new Promise(l=>{this._currentCancelInput=c=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l(c),!0),this._currentAcceptInput=c=>{if(this._input.value.trim().length===0||this._input.value===t){this.cancelInput(!0);return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l({newName:this._input.value,wantsPreview:s&&c})},a.add(r.onCancellationRequested(()=>this.cancelInput(!0))),a.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{a.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};Ux=vde([Oy(2,Ct),Oy(3,_i),Oy(4,Ee)],Ux);var Cde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Uc=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Id=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class pT{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return Id(this,void 0,void 0,function*(){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join(` `):void 0}:{range:L.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(` `):void 0}})}provideRenameEdits(e,t){return Id(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,i,n){return Id(this,void 0,void 0,function*(){const s=this._providers[t];if(!s)return{edits:[],rejectReason:i.join(` -`)};const r=yield s.provideRenameEdits(this.model,this.position,e,n);if(r){if(r.rejectReason)return this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),n)}else return this._provideRenameEdits(e,t+1,i.concat(p("no result","No result.")),n);return r})}}function wde(o,e,t,i){return Id(this,void 0,void 0,function*(){const n=new pT(e,t,o),s=yield n.resolveRenameLocation(ze.None);return s!=null&&s.rejectReason?{edits:[],rejectReason:s.rejectReason}:n.provideRenameEdits(i,ze.None)})}let lh=class U9{constructor(e,t,i,n,s,r,a,l){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new Q,this._cts=new Qi,this._renameInputField=this._disposableStore.add(new $l(()=>this._disposableStore.add(this._instaService.createInstance(Ux,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(e){return e.getContribution(U9.ID)}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Id(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const i=this.editor.getPosition(),n=new pT(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;this._cts=new qd(this.editor,5);let s;try{const u=n.resolveRenameLocation(this._cts.token);this._progressService.showWhile(u,250),s=yield u}catch(u){(e=os.get(this.editor))===null||e===void 0||e.showMessage(u||p("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i);return}if(!s)return;if(s.rejectReason){(t=os.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,i);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new qd(this.editor,5,s.range);const r=this.editor.getSelection();let a=0,l=s.text.length;!L.isEmpty(r)&&!L.spansMultipleLines(r)&&L.containsRange(s.range,r)&&(a=Math.max(0,r.startColumn-s.range.startColumn),l=Math.min(s.range.endColumn,r.endColumn)-s.range.startColumn);const c=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),d=yield this._renameInputField.value.getInput(s.range,s.text,a,l,c,this._cts.token);if(typeof d=="boolean"){d&&this.editor.focus();return}this.editor.focus();const h=MI(n.provideRenameEdits(d.newName,this._cts.token),this._cts.token).then(u=>Id(this,void 0,void 0,function*(){if(!(!u||!this.editor.hasModel())){if(u.rejectReason){this._notificationService.info(u.rejectReason);return}this.editor.setSelection(L.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(Qg.convert(u),{editor:this.editor,showPreview:d.wantsPreview,label:p("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,d.newName),code:"undoredo.rename",quotableLabel:p("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,d.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&Gi(p("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,d.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(p("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),u=>{this._notificationService.error(p("rename.failed","Rename failed to compute edits")),this._logService.error(u)});return this._progressService.showWhile(h,250),h})}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};lh.ID="editor.contrib.renameController";lh=Cde([Uc(1,Ae),Uc(2,di),Uc(3,v_),Uc(4,kc),Uc(5,So),Uc(6,WI),Uc(7,de)],lh);class Sde extends ce{constructor(){super({id:"editor.action.rename",label:p("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:se.and(N.writable,N.hasRenameProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(ct),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return _e.isUri(n)&&B.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(r=>{!r||(r.setPosition(s),r.invokeWithinContext(a=>(this.reportTelemetry(a,r),this.run(a,r))))},Te):super.runCommand(e,t)}run(e,t){const i=lh.get(t);return i?i.run():Promise.resolve()}}tt(lh.ID,lh);ie(Sde);const mT=xi.bindToContribution(lh.get);ee(new mT({id:"acceptRenameInput",precondition:kw,handler:o=>o.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:N.focus,primary:3}}));ee(new mT({id:"acceptRenameInputWithPreview",precondition:se.and(kw,se.has("config.editor.rename.enablePreview")),handler:o=>o.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:N.focus,primary:1024+3}}));ee(new mT({id:"cancelRenameInput",precondition:kw,handler:o=>o.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:N.focus,primary:9,secondary:[1033]}}));ia("_executeDocumentRenameProvider",function(o,e,t,...i){const[n]=i;pt(typeof n=="string");const{renameProvider:s}=o.get(de);return wde(s,e,t,n)});ia("_executePrepareRename",function(o,e,t){return Id(this,void 0,void 0,function*(){const{renameProvider:i}=o.get(de),s=yield new pT(e,t,i).resolveRenameLocation(ze.None);if(s!=null&&s.rejectReason)throw new Error(s.rejectReason);return s})});zt.as(rl.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:p("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lde=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},mO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Py;let Ym=class extends H{constructor(e,t){super(),this._sessionStore=new Q,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new Dde(this._editor),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new mt(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(this._editor.getOption(34).stickyScroll.enabled===!1){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}else this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(t=>this._onTokensChange(t))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){const t=this.stickyScrollWidget.getCurrentLines();for(const i of t)for(const n of e.ranges)if(i>=n.fromLineNumber&&i<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return mO(this,void 0,void 0,function*(){e&&((t=this._cts)===null||t===void 0||t.dispose(!0),this._cts=new Qi,yield this._updateOutlineModel(this._cts.token));const n=(i=this._editor._getViewModel())===null||i===void 0?void 0:i.getHiddenAreas();if(n)for(const s of n)this._ranges=this._ranges.filter(r=>!(r[0]>=s.startLineNumber&&r[1]<=s.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(e!=null&&e.children.size){let i=!1;for(const n of e==null?void 0:e.children.values()){const s=n.symbol.kind;(s===4||s===8||s===11||s===10||s===5||s===1)&&(i=!0,this._findLineRanges(n,t+1))}i||this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){const s=e.symbol.kind;if((s===4||s===8||s===11||s===10||s===5||s===1)&&(i=e==null?void 0:e.symbol.range.startLineNumber,n=e==null?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof LC)e=e.parent;else break}}_updateOutlineModel(e){return mO(this,void 0,void 0,function*(){if(this._editor.hasModel()){const t=this._editor.getModel(),i=t.getVersionId(),n=yield Ea.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(e.isCancellationRequested)return;this._ranges=[],this._rangesVersionId=i;for(const s of n.children.values()){if(s instanceof LC){const a=s.symbol.kind;a===4||a===8||a===11||a===10||a===5||a===1?this._findLineRanges(s,1):this._findLineRanges(s,0)}this._ranges=this._ranges.sort(function(a,l){return a[0]!==l[0]?a[0]-l[0]:a[1]!==l[1]?l[1]-a[1]:a[2]-l[2]});let r=[];for(const[a,l]of this._ranges.entries()){const[c,d,h]=l;r[0]===c&&r[1]===d?this._ranges.splice(a,1):r=l}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;const e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;const i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();const n=new Set;for(const[s,r]of this._ranges.entries()){const[a,l,c]=r;if(l-a>0&&t.getLineContent(a)!==""){const d=(c-1)*e,h=c*e,u=this._editor.getBottomForLineNumber(a)-i,g=this._editor.getTopForLineNumber(l)-i,f=this._editor.getBottomForLineNumber(l)-i;if(n.has(a))this._ranges.splice(s,1);else if(d>=g-1&&du&&ho});class bO{constructor(e,t,i,n,s){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=s,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){const e=document.createElement("div"),t=this._editor._getViewModel(),i=t.coordinatesConverter.convertModelPositionToViewPosition(new B(this._lineNumber,1)).lineNumber,n=t.getViewLineRenderingData(i);let s;try{s=es.filter(n.inlineDecorations,i,n.minColumn,n.maxColumn)}catch{s=[]}const r=new Lc(!0,!0,n.content,n.continuesWithWrappedLine,n.isBasicASCII,n.containsRTL,0,n.tokens,s,n.tabSize,n.startVisibleColumn,1,1,1,100,"none",!0,!0,null),a=nc(400);a_(r,a);let l;_O?l=_O.createHTML(a.build()):l=a.build();const c=document.createElement("span");c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",c.style.overflow="hidden",c.style.whiteSpace="nowrap",c.style.display="inline-block",c.style.lineHeight=this._editor.getOption(61).toString()+"px",c.innerHTML=l;const d=document.createElement("span");d.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.color="var(--vscode-editorLineNumber-foreground)",d.style.display="inline-block",d.style.lineHeight=this._editor.getOption(61).toString()+"px";const h=document.createElement("span");return h.innerText=this._lineNumber.toString(),h.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",h.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",h.style.backgroundColor="var(--vscode-editorStickyScroll-background)",h.style.textAlign="right",h.style.float="left",h.style.lineHeight=this._editor.getOption(61).toString()+"px",d.appendChild(h),e.onclick=u=>{u.stopPropagation(),u.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},e.onmouseover=u=>{h.style.background="var(--vscode-editorStickyScrollHover-background)",c.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",e.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",h.style.cursor="pointer",c.style.cursor="pointer",e.style.cursor="pointer",d.style.cursor="pointer"},e.onmouseleave=u=>{h.style.background="var(--vscode-editorStickyScroll-background)",c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(c),this._editor.applyFontInfo(h),e.appendChild(d),e.appendChild(c),e.style.zIndex=this._zIndex.toString(),e.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.width="100%",e.style.lineHeight=this._editor.getOption(61).toString()+"px",e.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(e.style.position="relative",e.style.top=this._relativePosition+"px",e.style.width="100%"),e}}class Dde{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){const e=[];for(const t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(const t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,Si(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}tt(Ym.ID,Ym);class kde{provideSelectionRanges(e,t){const i=[];for(const n of t){const s=[];i.push(s),this._addInWordRanges(s,e,n),this._addWordRanges(s,e,n),this._addWhitespaceLine(s,e,n),s.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:r}=n,a=i.column-r;let l=a,c=a,d=0;for(;l>=0;l--){const h=s.charCodeAt(l);if(l!==a&&(h===95||h===45))break;if(Ml(h)&&Sr(d))break;d=h}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(i.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(i.lineNumber)===0&&e.push({range:new L(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var xde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ide=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},xw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class _T{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new _T(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let Og=class $9{constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}static get(e){return e.getContribution($9.ID)}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}run(e){return xw(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||(yield K9(this._languageFeaturesService.selectionRangeProvider,i,t.map(s=>s.getPosition()),this._editor.getOption(104),ze.None).then(s=>{var r;if(!(!rn(s)||s.length!==t.length)&&!(!this._editor.hasModel()||!Ss(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),s[a].unshift(t[a]);this._state=s.map(a=>new _T(0,a)),(r=this._selectionListener)===null||r===void 0||r.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var a;this._ignoreSelection||((a=this._selectionListener)===null||a===void 0||a.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(s=>s.mov(e));const n=this._state.map(s=>oe.fromPositions(s.ranges[s.index].getStartPosition(),s.ranges[s.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};Og.ID="editor.contrib.smartSelectController";Og=xde([Ide(1,de)],Og);class j9 extends ce{constructor(e,t){super(t),this._forward=e}run(e,t){return xw(this,void 0,void 0,function*(){const i=Og.get(t);i&&(yield i.run(this._forward))})}}class Ede extends j9{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:p("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}Xe.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class Nde extends j9{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:p("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}tt(Og.ID,Og);ie(Ede);ie(Nde);function K9(o,e,t,i,n){return xw(this,void 0,void 0,function*(){const s=o.all(e).concat(new kde);s.length===1&&s.unshift(new fs);const r=[],a=[];for(const l of s)r.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(rn(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((u,g)=>B.isBefore(u.getStartPosition(),g.getStartPosition())?1:B.isBefore(g.getStartPosition(),u.getStartPosition())||B.isBefore(u.getEndPosition(),g.getEndPosition())?-1:B.isBefore(g.getEndPosition(),u.getEndPosition())?1:0);const c=[];let d;for(const u of l)(!d||L.containsRange(u,d)&&!L.equalsRange(u,d))&&(c.push(u),d=u);if(!i.selectLeadingAndTrailingWhitespace)return c;const h=[c[0]];for(let u=1;u=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ed=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Tde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ade{constructor(e,t,i,n,s,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=r}}let $x=class extends A6{constructor(e,t,i,n,s,r){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&l.resolve(ze.None)}return t}};$x=bT([Ed(5,mw)],$x);let jx=class{constructor(e,t,i,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=i,this._suggestMemoryService=n}provideInlineCompletions(e,t,i,n){var s;return Tde(this,void 0,void 0,function*(){if(i.selectedSuggestionInfo)return;const r=this._getEditorOption(81,e);if(ku.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(ku.valueFor(r,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let h;const u=e.getValueInRange(new L(t.lineNumber,1,t.lineNumber,t.column));if(!d&&((s=this._lastResult)===null||s===void 0?void 0:s.canBeReused(e,t.lineNumber,c))){const g=new aO(u,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=g,this._lastResult.acquire(),h=this._lastResult}else{const g=yield QN(this._languageFeatureService.completionProvider,e,t,new Bm(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n);let f;g.needsClipboard&&(f=yield this._clipboardService.readText());const _=new Al(g.items,t.column,new aO(u,0),Fo.None,this._getEditorOption(108,e),this._getEditorOption(103,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},f);h=new $x(e,t.lineNumber,c,_,g,this._suggestMemoryService)}return this._lastResult=h,h})}handleItemDidShow(e,t){t.completion.resolve(ze.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(L.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const r of this._languageFeatureService.completionProvider.all(e))!((i=r.triggerCharacters)===null||i===void 0)&&i.includes(n)&&s.add(r);if(s.size!==0)return{providers:s,ch:n}}};jx=bT([Ed(1,de),Ed(2,cl),Ed(3,mw)],jx);let TC=class ou{constructor(e,t,i,n){if(++ou._counter===1){const s=n.createInstance(jx,(r,a)=>{var l;return((l=i.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(r)});ou._disposable=t.inlineCompletionsProvider.register("*",s)}}dispose(){var e;--ou._counter===0&&((e=ou._disposable)===null||e===void 0||e.dispose(),ou._disposable=void 0)}};TC._counter=0;TC=bT([Ed(1,de),Ed(2,ct),Ed(3,Ae)],TC);tt("suggest.inlineCompletionsProvider",TC);class Mde extends ce{constructor(){super({id:"editor.action.forceRetokenize",label:p("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new $n(!0);i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}ie(Mde);class Pg extends ce{constructor(){super({id:Pg.ID,label:p({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){const n=!mv.getTabFocusMode();mv.setTabFocusMode(n),Gi(n?p("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):p("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}Pg.ID="editor.action.toggleTabFocusMode";ie(Pg);var Rde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ode=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Kx=class extends H{constructor(e,t,i={},n){var s;super(),this._link=t,this._enabled=!0,this.el=q(e,J("a.monaco-link",{tabIndex:(s=t.tabIndex)!==null&&s!==void 0?s:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");const r=this._register(new bt(this.el,"click")),a=this._register(new bt(this.el,"keypress")),l=ge.chain(a.event).map(h=>new Rt(h)).filter(h=>h.keyCode===3).event,c=this._register(new bt(this.el,xt.Tap)).event;this._register(ft.addTarget(this.el));const d=ge.any(r.event,l,c);this._register(d(h=>{!this.enabled||(ut.stop(h,!0),i!=null&&i.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}};Kx=Rde([Ode(3,io)],Kx);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-link { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-link:hover { color: ${i}; }`)});var q9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},G9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Pde=26;let qx=class extends H{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(Gx))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,Pde)}};qx=q9([G9(1,Ae)],qx);let Gx=class extends H{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(ol,{}),this.element=J("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){const t=J("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){Si(this.element)}show(e){Si(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=q(this.element,J("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild(J(`div${at.asCSSSelector(e.icon)}`));const n=q(this.element,J("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=q(this.element,J("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(Kx,this.messageActionsContainer,Object.assign(Object.assign({},r),{tabIndex:-1}),{}));const s=q(this.element,J("div.action-container"));this.actionBar=this._register(new Zr(s)),this.actionBar.push(this._register(new is("banner.close","Close Banner",at.asClassName(KF),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Gx=q9([G9(0,Ae)],Gx);var vT=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nn=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Fde=mi("extensions-warning-message",m.warning,p("warningIcon","Icon shown with a warning message in the extensions editor."));let Fg=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=s=>{if(s&&s.hasMore){if(this._bannerClosed)return;const r=Math.max(s.ambiguousCharacterCount,s.nonBasicAsciiCharacterCount,s.invisibleCharacterCount);let a;if(s.nonBasicAsciiCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new lf};else if(s.ambiguousCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Tc};else if(s.invisibleCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new af};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:Fde,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(qx,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(115),this._register(i.onDidChangeTrust(s=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(s=>{s.hasChanged(115)&&(this._options=e.getOption(115),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=Bde(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(i=>i===!1))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(i=>i.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(i=>i==="_os"?new Intl.NumberFormat().resolvedOptions().locale:i==="_vscode"?y8:i)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Zx(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new Wde(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Fg.ID="editor.contrib.unicodeHighlighter";Fg=vT([Qu(1,to),Qu(2,l5),Qu(3,Ae)],Fg);function Bde(o,e){return{nonBasicASCII:e.nonBasicASCII===gs?!o:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===gs?!o:e.includeComments,includeStrings:e.includeStrings===gs?!o:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}let Zx=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const n of t.ranges)i.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!TE(t,e))return null;const i=t.getValueInRange(e.range);return{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}}};Zx=vT([Qu(3,to)],Zx);class Wde extends H{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const s=BI.computeUnicodeHighlights(this._model,this._options,n);for(const r of s.ranges)i.ranges.push(r);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||s.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return TE(t,e)?{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}:null}}let Yx=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=4}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=this._editor.getContribution(Fg.ID);if(!n)return[];const s=[];let r=300;for(const a of t){const l=n.getDecorationInfo(a);if(!l)continue;const d=i.getValueInRange(a.range).codePointAt(0),h=vO(d);let u;switch(l.reason.kind){case 0:u=p("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,vO(l.reason.confusableWith.codePointAt(0)));break;case 1:u=p("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:u=p("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}const g={codePoint:d,reason:l.reason,inComment:l.inComment,inString:l.inString},f=p("unicodeHighlight.adjustSettings","Adjust settings"),_=`command:${W_.ID}?${encodeURIComponent(JSON.stringify(g))}`,b=new Fn("",!0).appendMarkdown(u).appendText(" ").appendLink(_,f);s.push(new Tr(this,a.range,[b],r++))}return s}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};Yx=vT([Qu(1,Ht),Qu(2,io)],Yx);function Qx(o){return`U+${o.toString(16).padStart(4,"0")}`}function vO(o){let e=`\`${Qx(o)}\``;return Hr.isInvisibleCharacter(o)||(e+=` "${`${Vde(o)}`}"`),e}function Vde(o){return o===96?"`` ` ``":"`"+String.fromCodePoint(o)+"`"}function Z9(o,e){return BI.computeUnicodeHighlightReason(o,e)}class AC{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=Ne.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}AC.instance=new AC;class Hde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeComments,!1,2)})}}class zde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeStrings,!1,2)})}}class Tc extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.ambiguousCharacters,!1,2)})}}Tc.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class af extends ce{constructor(){super({id:af.ID,label:p("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.invisibleCharacters,!1,2)})}}af.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class lf extends ce{constructor(){super({id:lf.ID,label:p("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.nonBasicASCII,!1,2)})}}lf.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class W_ extends ce{constructor(){super({id:W_.ID,label:p("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,i){return nn(this,void 0,void 0,function*(){const{codePoint:n,reason:s,inString:r,inComment:a}=i,l=String.fromCodePoint(n),c=e.get(dl),d=e.get(ot);function h(f){return Hr.isInvisibleCharacter(f)?p("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Qx(f)):p("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Qx(f)} "${l}"`)}const u=[];if(s.kind===0)for(const f of s.notAmbiguousInLocales)u.push({label:p("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',f),run:()=>nn(this,void 0,void 0,function*(){$de(d,[f])})});if(u.push({label:h(n),run:()=>Ude(d,[n])}),a){const f=new Hde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(r){const f=new zde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}if(s.kind===0){const f=new Tc;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===1){const f=new af;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===2){const f=new lf;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else jde(s);const g=yield c.pick(u,{title:p("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});g&&(yield g.run())})}}W_.ID="editor.action.unicodeHighlight.showExcludeOptions";function Ude(o,e){return nn(this,void 0,void 0,function*(){const t=o.getValue(On.allowedCharacters);let i;typeof t=="object"&&t?i=t:i={};for(const n of e)i[String.fromCodePoint(n)]=!0;yield o.updateValue(On.allowedCharacters,i,2)})}function $de(o,e){var t;return nn(this,void 0,void 0,function*(){const i=(t=o.inspect(On.allowedLocales).user)===null||t===void 0?void 0:t.value;let n;typeof i=="object"&&i?n=Object.assign({},i):n={};for(const s of e)n[s]=!0;yield o.updateValue(On.allowedLocales,n,2)})}function jde(o){throw new Error(`Unexpected value: ${o}`)}ie(Tc);ie(af);ie(lf);ie(W_);tt(Fg.ID,Fg);xh.register(Yx);var Kde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},CO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Y9="ignoreUnusualLineTerminators";function Gde(o,e,t){o.setModelProperty(e.uri,Y9,t)}function Zde(o,e){return o.getModelProperty(e.uri,Y9)}let Qm=class extends H{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return qde(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Zde(this._codeEditorService,e)===!0||this._editor.getOption(83))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:p("unusualLineTerminators.title","Unusual Line Terminators"),message:p("unusualLineTerminators.message","Detected unusual line terminators"),detail:p("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Js(e.uri)),primaryButton:p("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:p("unusualLineTerminators.ignore","Ignore")})).confirmed){Gde(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};Qm.ID="editor.contrib.unusualLineTerminatorsDetector";Qm=Kde([CO(1,b_),CO(2,ct)],Qm);tt(Qm.ID,Qm);var Yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Bf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xm=class extends H{constructor(e,t,i,n,s,r){super(),this._modelService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new mt(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{a()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),a()})),this._register(this._editor.onDidChangeModelContent(l=>{this._cancelAll(),a()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),a()})),this._register(this._configurationService.onDidChangeConfiguration(l=>{l.affectsConfiguration(iN)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()}))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,i)))}_requestRange(e,t){const i=e.getVersionId(),n=Ri(r=>Promise.resolve(eN(this._provider,e,t,r))),s=new $n(!1);return n.then(r=>{if(this._debounceInformation.update(e,s.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:a,tokens:l}=r,c=this._modelService.getSemanticTokensProviderStyling(a);e.tokenization.setPartialSemanticTokens(t,g5(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};Xm.ID="editor.contrib.viewportSemanticTokens";Xm=Yde([Bf(1,Ut),Bf(2,Ct),Bf(3,ot),Bf(4,no),Bf(5,de)],Xm);tt(Xm.ID,Xm);var Qde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Xde=T("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},p("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Jde=T("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},p("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),ehe=T("editor.wordHighlightBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),the=T("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),ihe=T("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},p("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),nhe=T("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},p("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Iw=new le("hasWordHighlights",!1);function Q9(o,e,t,i){const n=o.ordered(e);return OP(n.map(s=>()=>Promise.resolve(s.provideDocumentHighlights(e,t,i)).then(void 0,Pi)),rn)}class X9{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Ri(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,r=t.endColumn,a=this._getCurrentWordRange(e,t);let l=Boolean(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=i.length;!l&&c=r&&(l=!0)}return l}cancel(){this.result.cancel()}}class she extends X9{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return Q9(this._providers,e,t.getPosition(),n).then(s=>s||[])}}class ohe extends X9{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,n){return sc(250,n).then(()=>{if(!t.isEmpty())return[];const s=e.getWordAtPosition(t.getPosition());return!s||s.word.length>1e3?[]:e.findMatches(s.word,!0,!1,!0,i,!1).map(a=>({range:a.range,kind:Fp.Text}))})}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,i)}}function rhe(o,e,t,i){return o.has(e)?new she(e,t,i,o):new ohe(e,t,i)}ia("_executeDocumentHighlights",(o,e,t)=>{const i=o.get(de);return Q9(i.documentHighlightProvider,e,t,ze.None)});class cf{constructor(e,t,i){this.toUnhook=new Q,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this._hasWordHighlights=Iw.bindTo(i),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(74),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(n=>{this._ignorePositionChangeEvent||!this.occurrencesHighlight||this._onPositionChanged(n)})),this.toUnhook.add(e.onDidChangeModelContent(n=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(n=>{const s=this.editor.getOption(74);this.occurrencesHighlight!==s&&(this.occurrencesHighlight=s,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){!this.occurrencesHighlight||this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(L.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:i})}_run(){const e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}const t=e.startColumn,i=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{r===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},Te)}}_beginRenderDecorations(){const e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:cf._getDecorationOptions(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===Fp.Write?this._WRITE_OPTIONS:e===Fp.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}cf._WRITE_OPTIONS=Ne.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Qt(nhe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._TEXT_OPTIONS=Ne.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Qt(T4),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._REGULAR_OPTIONS=Ne.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Qt(ihe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});let ch=class J9 extends H{constructor(e,t,i){super(),this.wordHighlighter=null;const n=()=>{e.hasModel()&&(this.wordHighlighter=new cf(e,i.documentHighlightProvider,t))};this._register(e.onDidChangeModel(s=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(e){return e.getContribution(J9.ID)}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};ch.ID="editor.contrib.wordHighlighter";ch=Qde([wO(1,Ee),wO(2,de)],ch);class e8 extends ce{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=ch.get(t);!i||(this._isNext?i.moveNext():i.moveBack())}}class ahe extends e8{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:p("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:65,weight:100}})}}class lhe extends e8{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:p("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:1089,weight:100}})}}class che extends ce{constructor(){super({id:"editor.action.wordHighlight.trigger",label:p("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Iw.toNegated(),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=ch.get(t);!n||n.restoreViewState(!0)}}tt(ch.ID,ch);ie(ahe);ie(lhe);ie(che);Et((o,e)=>{const t=o.getColor(oE);t&&(e.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${t}; }`),e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`));const i=o.getColor(Xde);i&&e.addRule(`.monaco-editor .wordHighlight { background-color: ${i}; }`);const n=o.getColor(Jde);n&&e.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${n}; }`);const s=o.getColor(Az);s&&e.addRule(`.monaco-editor .selectionHighlight { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(ehe);r&&e.addRule(`.monaco-editor .wordHighlight { border: 1px ${cn(o.type)?"dashed":"solid"} ${r}; box-sizing: border-box; }`);const a=o.getColor(the);a&&e.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; box-sizing: border-box; }`)});class Ew extends xi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=new B(l.positionLineNumber,l.positionColumn),d=this._move(n,s,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>$e.fromModelSelection(l))),a.length===1){const l=new B(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,i){return i?new oe(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new oe(t.lineNumber,t.column,t.lineNumber,t.column)}}class Ac extends Ew{_move(e,t,i,n){return it.moveWordLeft(e,t,i,n)}}class Mc extends Ew{_move(e,t,i,n){return it.moveWordRight(e,t,i,n)}}class dhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class hhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class uhe extends Ac{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class ghe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class fhe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class phe extends Ac{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class mhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class _he extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class bhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class vhe extends Mc{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class Che extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class whe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class She extends Mc{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class yhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class Lhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Dhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Nw extends xi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(si);if(!t.hasModel())return;const s=Ys(t.getOption(119)),r=t.getModel(),a=t.getSelections(),l=t.getOption(5),c=t.getOption(8),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),h=t._getViewModel(),u=a.map(g=>{const f=this._delete({wordSeparators:s,model:r,selection:g,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:h.getCursorAutoClosedCharacters()},this._wordNavigationType);return new zi(f,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class CT extends Nw{_delete(e,t){const i=it.deleteWordLeft(e,t);return i||new L(1,1,1,1)}}class wT extends Nw{_delete(e,t){const i=it.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class khe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:N.writable})}}class xhe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:N.writable})}}class Ihe extends CT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class Ehe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:N.writable})}}class Nhe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:N.writable})}}class The extends wT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class Ahe extends ce{constructor(){super({id:"deleteInsideWord",precondition:N.writable,label:p("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=it.deleteInsideWord(n,s,l);return new zi(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}}ee(new dhe);ee(new hhe);ee(new uhe);ee(new ghe);ee(new fhe);ee(new phe);ee(new bhe);ee(new vhe);ee(new Che);ee(new whe);ee(new She);ee(new yhe);ee(new mhe);ee(new _he);ee(new Lhe);ee(new Dhe);ee(new khe);ee(new xhe);ee(new Ihe);ee(new Ehe);ee(new Nhe);ee(new The);ie(Ahe);class Mhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=v1.deleteWordPartLeft(e);return i||new L(1,1,1,1)}}class Rhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=v1.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class t8 extends Ew{_move(e,t,i,n){return v1.moveWordPartLeft(e,t,i)}}class Ohe extends t8{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class Phe extends t8{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class i8 extends Ew{_move(e,t,i,n){return v1.moveWordPartRight(e,t,i)}}class Fhe extends i8{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class Bhe extends i8{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}ee(new Mhe);ee(new Rhe);ee(new Ohe);ee(new Phe);ee(new Fhe);ee(new Bhe);class Xx extends H{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const e=os.get(this.editor);e&&this.editor.hasModel()&&(this.editor.isSimpleWidget?e.showMessage(p("editor.simple.readonly","Cannot edit in read-only input"),this.editor.getPosition()):e.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this.editor.getPosition()))}}Xx.ID="editor.contrib.readOnlyMessageController";tt(Xx.ID,Xx);var n8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},W0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const s8=new le("accessibilityHelpWidgetVisible",!1);let dh=class o8 extends H{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(Bg,this._editor))}static get(e){return e.getContribution(o8.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};dh.ID="editor.contrib.accessibilityHelpController";dh=n8([W0(1,Ae)],dh);function Whe(o,e){return!o||o.length===0?hi.noSelection:o.length===1?e?Vs(hi.singleSelectionRange,o[0].positionLineNumber,o[0].positionColumn,e):Vs(hi.singleSelection,o[0].positionLineNumber,o[0].positionColumn):e?Vs(hi.multiSelectionRange,o.length,e):o.length>0?Vs(hi.multiSelection,o.length):""}let Bg=class V0 extends yo{constructor(e,t,i,n){super(),this._contextKeyService=t,this._keybindingService=i,this._openerService=n,this._editor=e,this._isVisibleKey=s8.bindTo(this._contextKeyService),this._domNode=Je(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Je(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(ki(this._contentDomNode.domNode,"keydown",s=>{if(!!this._isVisible&&(s.equals(2083)&&(Gi(hi.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),Si(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),s.preventDefault(),s.stopPropagation()),s.equals(2086))){Gi(hi.openingDocs);let r=this._editor.getRawOptions().accessibilityHelpUrl;typeof r>"u"&&(r="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(_e.parse(r)),s.preventDefault(),s.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return V0.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,i){const n=this._keybindingService.lookupKeybinding(e);return n?Vs(t,n.getAriaLabel()):Vs(i,e)}_buildContent(){const e=this._editor.getOptions(),t=this._editor.getSelections();let i=0;if(t){const a=this._editor.getModel();a&&t.forEach(l=>{i+=a.getValueLengthInRange(l)})}let n=Whe(t,i);e.get(56)?e.get(83)?n+=hi.readonlyDiffEditor:n+=hi.editableDiffEditor:e.get(83)?n+=hi.readonlyEditor:n+=hi.editableEditor;const s=Ge?hi.changeConfigToOnMac:hi.changeConfigToOnWinLinux;switch(e.get(2)){case 0:n+=` +`)};const r=yield s.provideRenameEdits(this.model,this.position,e,n);if(r){if(r.rejectReason)return this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),n)}else return this._provideRenameEdits(e,t+1,i.concat(p("no result","No result.")),n);return r})}}function wde(o,e,t,i){return Id(this,void 0,void 0,function*(){const n=new pT(e,t,o),s=yield n.resolveRenameLocation(ze.None);return s!=null&&s.rejectReason?{edits:[],rejectReason:s.rejectReason}:n.provideRenameEdits(i,ze.None)})}let lh=class U9{constructor(e,t,i,n,s,r,a,l){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new Q,this._cts=new Qi,this._renameInputField=this._disposableStore.add(new $l(()=>this._disposableStore.add(this._instaService.createInstance(Ux,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(e){return e.getContribution(U9.ID)}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Id(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const i=this.editor.getPosition(),n=new pT(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;this._cts=new qd(this.editor,5);let s;try{const u=n.resolveRenameLocation(this._cts.token);this._progressService.showWhile(u,250),s=yield u}catch(u){(e=os.get(this.editor))===null||e===void 0||e.showMessage(u||p("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i);return}if(!s)return;if(s.rejectReason){(t=os.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,i);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new qd(this.editor,5,s.range);const r=this.editor.getSelection();let a=0,l=s.text.length;!L.isEmpty(r)&&!L.spansMultipleLines(r)&&L.containsRange(s.range,r)&&(a=Math.max(0,r.startColumn-s.range.startColumn),l=Math.min(s.range.endColumn,r.endColumn)-s.range.startColumn);const c=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),d=yield this._renameInputField.value.getInput(s.range,s.text,a,l,c,this._cts.token);if(typeof d=="boolean"){d&&this.editor.focus();return}this.editor.focus();const h=MI(n.provideRenameEdits(d.newName,this._cts.token),this._cts.token).then(u=>Id(this,void 0,void 0,function*(){if(!(!u||!this.editor.hasModel())){if(u.rejectReason){this._notificationService.info(u.rejectReason);return}this.editor.setSelection(L.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(Qg.convert(u),{editor:this.editor,showPreview:d.wantsPreview,label:p("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,d.newName),code:"undoredo.rename",quotableLabel:p("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,d.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&Gi(p("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,d.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(p("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),u=>{this._notificationService.error(p("rename.failed","Rename failed to compute edits")),this._logService.error(u)});return this._progressService.showWhile(h,250),h})}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};lh.ID="editor.contrib.renameController";lh=Cde([Uc(1,Ae),Uc(2,di),Uc(3,v_),Uc(4,kc),Uc(5,So),Uc(6,WI),Uc(7,de)],lh);class Sde extends ce{constructor(){super({id:"editor.action.rename",label:p("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:se.and(N.writable,N.hasRenameProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(ct),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return _e.isUri(n)&&B.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(r=>{!r||(r.setPosition(s),r.invokeWithinContext(a=>(this.reportTelemetry(a,r),this.run(a,r))))},Te):super.runCommand(e,t)}run(e,t){const i=lh.get(t);return i?i.run():Promise.resolve()}}tt(lh.ID,lh);ie(Sde);const mT=xi.bindToContribution(lh.get);ee(new mT({id:"acceptRenameInput",precondition:kw,handler:o=>o.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:N.focus,primary:3}}));ee(new mT({id:"acceptRenameInputWithPreview",precondition:se.and(kw,se.has("config.editor.rename.enablePreview")),handler:o=>o.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:N.focus,primary:1024+3}}));ee(new mT({id:"cancelRenameInput",precondition:kw,handler:o=>o.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:N.focus,primary:9,secondary:[1033]}}));ia("_executeDocumentRenameProvider",function(o,e,t,...i){const[n]=i;pt(typeof n=="string");const{renameProvider:s}=o.get(de);return wde(s,e,t,n)});ia("_executePrepareRename",function(o,e,t){return Id(this,void 0,void 0,function*(){const{renameProvider:i}=o.get(de),s=yield new pT(e,t,i).resolveRenameLocation(ze.None);if(s!=null&&s.rejectReason)throw new Error(s.rejectReason);return s})});zt.as(rl.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:p("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lde=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},mO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Py;let Ym=class extends H{constructor(e,t){super(),this._sessionStore=new Q,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new Dde(this._editor),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new mt(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(this._editor.getOption(34).stickyScroll.enabled===!1){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}else this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(t=>this._onTokensChange(t))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){const t=this.stickyScrollWidget.getCurrentLines();for(const i of t)for(const n of e.ranges)if(i>=n.fromLineNumber&&i<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return mO(this,void 0,void 0,function*(){e&&((t=this._cts)===null||t===void 0||t.dispose(!0),this._cts=new Qi,yield this._updateOutlineModel(this._cts.token));const n=(i=this._editor._getViewModel())===null||i===void 0?void 0:i.getHiddenAreas();if(n)for(const s of n)this._ranges=this._ranges.filter(r=>!(r[0]>=s.startLineNumber&&r[1]<=s.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(e!=null&&e.children.size){let i=!1;for(const n of e==null?void 0:e.children.values()){const s=n.symbol.kind;(s===4||s===8||s===11||s===10||s===5||s===1)&&(i=!0,this._findLineRanges(n,t+1))}i||this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){const s=e.symbol.kind;if((s===4||s===8||s===11||s===10||s===5||s===1)&&(i=e==null?void 0:e.symbol.range.startLineNumber,n=e==null?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof LC)e=e.parent;else break}}_updateOutlineModel(e){return mO(this,void 0,void 0,function*(){if(this._editor.hasModel()){const t=this._editor.getModel(),i=t.getVersionId(),n=yield Ea.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(e.isCancellationRequested)return;this._ranges=[],this._rangesVersionId=i;for(const s of n.children.values()){if(s instanceof LC){const a=s.symbol.kind;a===4||a===8||a===11||a===10||a===5||a===1?this._findLineRanges(s,1):this._findLineRanges(s,0)}this._ranges=this._ranges.sort(function(a,l){return a[0]!==l[0]?a[0]-l[0]:a[1]!==l[1]?l[1]-a[1]:a[2]-l[2]});let r=[];for(const[a,l]of this._ranges.entries()){const[c,d,h]=l;r[0]===c&&r[1]===d?this._ranges.splice(a,1):r=l}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;const e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;const i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();const n=new Set;for(const[s,r]of this._ranges.entries()){const[a,l,c]=r;if(l-a>0&&t.getLineContent(a)!==""){const d=(c-1)*e,h=c*e,u=this._editor.getBottomForLineNumber(a)-i,g=this._editor.getTopForLineNumber(l)-i,f=this._editor.getBottomForLineNumber(l)-i;if(n.has(a))this._ranges.splice(s,1);else if(d>=g-1&&du&&ho});class bO{constructor(e,t,i,n,s){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=s,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){const e=document.createElement("div"),t=this._editor._getViewModel(),i=t.coordinatesConverter.convertModelPositionToViewPosition(new B(this._lineNumber,1)).lineNumber,n=t.getViewLineRenderingData(i);let s;try{s=es.filter(n.inlineDecorations,i,n.minColumn,n.maxColumn)}catch{s=[]}const r=new Lc(!0,!0,n.content,n.continuesWithWrappedLine,n.isBasicASCII,n.containsRTL,0,n.tokens,s,n.tabSize,n.startVisibleColumn,1,1,1,100,"none",!0,!0,null),a=nc(400);a_(r,a);let l;_O?l=_O.createHTML(a.build()):l=a.build();const c=document.createElement("span");c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",c.style.overflow="hidden",c.style.whiteSpace="nowrap",c.style.display="inline-block",c.style.lineHeight=this._editor.getOption(61).toString()+"px",c.innerHTML=l;const d=document.createElement("span");d.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.color="var(--vscode-editorLineNumber-foreground)",d.style.display="inline-block",d.style.lineHeight=this._editor.getOption(61).toString()+"px";const h=document.createElement("span");return h.innerText=this._lineNumber.toString(),h.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",h.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",h.style.backgroundColor="var(--vscode-editorStickyScroll-background)",h.style.textAlign="right",h.style.float="left",h.style.lineHeight=this._editor.getOption(61).toString()+"px",d.appendChild(h),e.onclick=u=>{u.stopPropagation(),u.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},e.onmouseover=u=>{h.style.background="var(--vscode-editorStickyScrollHover-background)",c.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",e.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",h.style.cursor="pointer",c.style.cursor="pointer",e.style.cursor="pointer",d.style.cursor="pointer"},e.onmouseleave=u=>{h.style.background="var(--vscode-editorStickyScroll-background)",c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(c),this._editor.applyFontInfo(h),e.appendChild(d),e.appendChild(c),e.style.zIndex=this._zIndex.toString(),e.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.width="100%",e.style.lineHeight=this._editor.getOption(61).toString()+"px",e.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(e.style.position="relative",e.style.top=this._relativePosition+"px",e.style.width="100%"),e}}class Dde{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){const e=[];for(const t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(const t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,Si(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}tt(Ym.ID,Ym);class kde{provideSelectionRanges(e,t){const i=[];for(const n of t){const s=[];i.push(s),this._addInWordRanges(s,e,n),this._addWordRanges(s,e,n),this._addWhitespaceLine(s,e,n),s.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:r}=n,a=i.column-r;let l=a,c=a,d=0;for(;l>=0;l--){const h=s.charCodeAt(l);if(l!==a&&(h===95||h===45))break;if(Ml(h)&&Sr(d))break;d=h}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(i.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(i.lineNumber)===0&&e.push({range:new L(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var xde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ide=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},xw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class _T{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new _T(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let Og=class $9{constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}static get(e){return e.getContribution($9.ID)}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}run(e){return xw(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||(yield K9(this._languageFeaturesService.selectionRangeProvider,i,t.map(s=>s.getPosition()),this._editor.getOption(104),ze.None).then(s=>{var r;if(!(!rn(s)||s.length!==t.length)&&!(!this._editor.hasModel()||!Ss(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),s[a].unshift(t[a]);this._state=s.map(a=>new _T(0,a)),(r=this._selectionListener)===null||r===void 0||r.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var a;this._ignoreSelection||((a=this._selectionListener)===null||a===void 0||a.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(s=>s.mov(e));const n=this._state.map(s=>oe.fromPositions(s.ranges[s.index].getStartPosition(),s.ranges[s.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};Og.ID="editor.contrib.smartSelectController";Og=xde([Ide(1,de)],Og);class j9 extends ce{constructor(e,t){super(t),this._forward=e}run(e,t){return xw(this,void 0,void 0,function*(){const i=Og.get(t);i&&(yield i.run(this._forward))})}}class Ede extends j9{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:p("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}Xe.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class Nde extends j9{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:p("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}tt(Og.ID,Og);ie(Ede);ie(Nde);function K9(o,e,t,i,n){return xw(this,void 0,void 0,function*(){const s=o.all(e).concat(new kde);s.length===1&&s.unshift(new fs);const r=[],a=[];for(const l of s)r.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(rn(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((u,g)=>B.isBefore(u.getStartPosition(),g.getStartPosition())?1:B.isBefore(g.getStartPosition(),u.getStartPosition())||B.isBefore(u.getEndPosition(),g.getEndPosition())?-1:B.isBefore(g.getEndPosition(),u.getEndPosition())?1:0);const c=[];let d;for(const u of l)(!d||L.containsRange(u,d)&&!L.equalsRange(u,d))&&(c.push(u),d=u);if(!i.selectLeadingAndTrailingWhitespace)return c;const h=[c[0]];for(let u=1;u=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ed=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Tde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ade{constructor(e,t,i,n,s,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=r}}let $x=class extends A6{constructor(e,t,i,n,s,r){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&l.resolve(ze.None)}return t}};$x=bT([Ed(5,mw)],$x);let jx=class{constructor(e,t,i,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=i,this._suggestMemoryService=n}provideInlineCompletions(e,t,i,n){var s;return Tde(this,void 0,void 0,function*(){if(i.selectedSuggestionInfo)return;const r=this._getEditorOption(81,e);if(ku.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(ku.valueFor(r,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let h;const u=e.getValueInRange(new L(t.lineNumber,1,t.lineNumber,t.column));if(!d&&((s=this._lastResult)===null||s===void 0?void 0:s.canBeReused(e,t.lineNumber,c))){const g=new aO(u,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=g,this._lastResult.acquire(),h=this._lastResult}else{const g=yield QN(this._languageFeatureService.completionProvider,e,t,new Bm(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n);let f;g.needsClipboard&&(f=yield this._clipboardService.readText());const _=new Al(g.items,t.column,new aO(u,0),Fo.None,this._getEditorOption(108,e),this._getEditorOption(103,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},f);h=new $x(e,t.lineNumber,c,_,g,this._suggestMemoryService)}return this._lastResult=h,h})}handleItemDidShow(e,t){t.completion.resolve(ze.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(L.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const r of this._languageFeatureService.completionProvider.all(e))!((i=r.triggerCharacters)===null||i===void 0)&&i.includes(n)&&s.add(r);if(s.size!==0)return{providers:s,ch:n}}};jx=bT([Ed(1,de),Ed(2,cl),Ed(3,mw)],jx);let TC=class ou{constructor(e,t,i,n){if(++ou._counter===1){const s=n.createInstance(jx,(r,a)=>{var l;return((l=i.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(r)});ou._disposable=t.inlineCompletionsProvider.register("*",s)}}dispose(){var e;--ou._counter===0&&((e=ou._disposable)===null||e===void 0||e.dispose(),ou._disposable=void 0)}};TC._counter=0;TC=bT([Ed(1,de),Ed(2,ct),Ed(3,Ae)],TC);tt("suggest.inlineCompletionsProvider",TC);class Mde extends ce{constructor(){super({id:"editor.action.forceRetokenize",label:p("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new $n(!0);i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}ie(Mde);class Pg extends ce{constructor(){super({id:Pg.ID,label:p({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){const n=!mv.getTabFocusMode();mv.setTabFocusMode(n),Gi(n?p("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):p("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}Pg.ID="editor.action.toggleTabFocusMode";ie(Pg);var Rde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ode=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Kx=class extends H{constructor(e,t,i={},n){var s;super(),this._link=t,this._enabled=!0,this.el=q(e,J("a.monaco-link",{tabIndex:(s=t.tabIndex)!==null&&s!==void 0?s:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");const r=this._register(new bt(this.el,"click")),a=this._register(new bt(this.el,"keypress")),l=ge.chain(a.event).map(h=>new Rt(h)).filter(h=>h.keyCode===3).event,c=this._register(new bt(this.el,xt.Tap)).event;this._register(ft.addTarget(this.el));const d=ge.any(r.event,l,c);this._register(d(h=>{!this.enabled||(ut.stop(h,!0),i!=null&&i.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}};Kx=Rde([Ode(3,io)],Kx);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-link { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-link:hover { color: ${i}; }`)});var q9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},G9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Pde=26;let qx=class extends H{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(Gx))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,Pde)}};qx=q9([G9(1,Ae)],qx);let Gx=class extends H{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(ol,{}),this.element=J("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){const t=J("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){Si(this.element)}show(e){Si(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=q(this.element,J("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild(J(`div${at.asCSSSelector(e.icon)}`));const n=q(this.element,J("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=q(this.element,J("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(Kx,this.messageActionsContainer,Object.assign(Object.assign({},r),{tabIndex:-1}),{}));const s=q(this.element,J("div.action-container"));this.actionBar=this._register(new Zr(s)),this.actionBar.push(this._register(new is("banner.close","Close Banner",at.asClassName(K5),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Gx=q9([G9(0,Ae)],Gx);var vT=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nn=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Fde=mi("extensions-warning-message",m.warning,p("warningIcon","Icon shown with a warning message in the extensions editor."));let Fg=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=s=>{if(s&&s.hasMore){if(this._bannerClosed)return;const r=Math.max(s.ambiguousCharacterCount,s.nonBasicAsciiCharacterCount,s.invisibleCharacterCount);let a;if(s.nonBasicAsciiCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new lf};else if(s.ambiguousCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Tc};else if(s.invisibleCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new af};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:Fde,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(qx,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(115),this._register(i.onDidChangeTrust(s=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(s=>{s.hasChanged(115)&&(this._options=e.getOption(115),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=Bde(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(i=>i===!1))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(i=>i.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(i=>i==="_os"?new Intl.NumberFormat().resolvedOptions().locale:i==="_vscode"?y8:i)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Zx(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new Wde(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Fg.ID="editor.contrib.unicodeHighlighter";Fg=vT([Qu(1,to),Qu(2,lF),Qu(3,Ae)],Fg);function Bde(o,e){return{nonBasicASCII:e.nonBasicASCII===gs?!o:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===gs?!o:e.includeComments,includeStrings:e.includeStrings===gs?!o:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}let Zx=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const n of t.ranges)i.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!TE(t,e))return null;const i=t.getValueInRange(e.range);return{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}}};Zx=vT([Qu(3,to)],Zx);class Wde extends H{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const s=BI.computeUnicodeHighlights(this._model,this._options,n);for(const r of s.ranges)i.ranges.push(r);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||s.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return TE(t,e)?{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}:null}}let Yx=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=4}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=this._editor.getContribution(Fg.ID);if(!n)return[];const s=[];let r=300;for(const a of t){const l=n.getDecorationInfo(a);if(!l)continue;const d=i.getValueInRange(a.range).codePointAt(0),h=vO(d);let u;switch(l.reason.kind){case 0:u=p("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,vO(l.reason.confusableWith.codePointAt(0)));break;case 1:u=p("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:u=p("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}const g={codePoint:d,reason:l.reason,inComment:l.inComment,inString:l.inString},f=p("unicodeHighlight.adjustSettings","Adjust settings"),_=`command:${W_.ID}?${encodeURIComponent(JSON.stringify(g))}`,b=new Fn("",!0).appendMarkdown(u).appendText(" ").appendLink(_,f);s.push(new Tr(this,a.range,[b],r++))}return s}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};Yx=vT([Qu(1,Ht),Qu(2,io)],Yx);function Qx(o){return`U+${o.toString(16).padStart(4,"0")}`}function vO(o){let e=`\`${Qx(o)}\``;return Hr.isInvisibleCharacter(o)||(e+=` "${`${Vde(o)}`}"`),e}function Vde(o){return o===96?"`` ` ``":"`"+String.fromCodePoint(o)+"`"}function Z9(o,e){return BI.computeUnicodeHighlightReason(o,e)}class AC{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=Ne.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}AC.instance=new AC;class Hde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeComments,!1,2)})}}class zde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeStrings,!1,2)})}}class Tc extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.ambiguousCharacters,!1,2)})}}Tc.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class af extends ce{constructor(){super({id:af.ID,label:p("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.invisibleCharacters,!1,2)})}}af.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class lf extends ce{constructor(){super({id:lf.ID,label:p("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.nonBasicASCII,!1,2)})}}lf.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class W_ extends ce{constructor(){super({id:W_.ID,label:p("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,i){return nn(this,void 0,void 0,function*(){const{codePoint:n,reason:s,inString:r,inComment:a}=i,l=String.fromCodePoint(n),c=e.get(dl),d=e.get(ot);function h(f){return Hr.isInvisibleCharacter(f)?p("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Qx(f)):p("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Qx(f)} "${l}"`)}const u=[];if(s.kind===0)for(const f of s.notAmbiguousInLocales)u.push({label:p("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',f),run:()=>nn(this,void 0,void 0,function*(){$de(d,[f])})});if(u.push({label:h(n),run:()=>Ude(d,[n])}),a){const f=new Hde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(r){const f=new zde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}if(s.kind===0){const f=new Tc;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===1){const f=new af;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===2){const f=new lf;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else jde(s);const g=yield c.pick(u,{title:p("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});g&&(yield g.run())})}}W_.ID="editor.action.unicodeHighlight.showExcludeOptions";function Ude(o,e){return nn(this,void 0,void 0,function*(){const t=o.getValue(On.allowedCharacters);let i;typeof t=="object"&&t?i=t:i={};for(const n of e)i[String.fromCodePoint(n)]=!0;yield o.updateValue(On.allowedCharacters,i,2)})}function $de(o,e){var t;return nn(this,void 0,void 0,function*(){const i=(t=o.inspect(On.allowedLocales).user)===null||t===void 0?void 0:t.value;let n;typeof i=="object"&&i?n=Object.assign({},i):n={};for(const s of e)n[s]=!0;yield o.updateValue(On.allowedLocales,n,2)})}function jde(o){throw new Error(`Unexpected value: ${o}`)}ie(Tc);ie(af);ie(lf);ie(W_);tt(Fg.ID,Fg);xh.register(Yx);var Kde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},CO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Y9="ignoreUnusualLineTerminators";function Gde(o,e,t){o.setModelProperty(e.uri,Y9,t)}function Zde(o,e){return o.getModelProperty(e.uri,Y9)}let Qm=class extends H{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return qde(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Zde(this._codeEditorService,e)===!0||this._editor.getOption(83))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:p("unusualLineTerminators.title","Unusual Line Terminators"),message:p("unusualLineTerminators.message","Detected unusual line terminators"),detail:p("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Js(e.uri)),primaryButton:p("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:p("unusualLineTerminators.ignore","Ignore")})).confirmed){Gde(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};Qm.ID="editor.contrib.unusualLineTerminatorsDetector";Qm=Kde([CO(1,b_),CO(2,ct)],Qm);tt(Qm.ID,Qm);var Yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Bf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xm=class extends H{constructor(e,t,i,n,s,r){super(),this._modelService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new mt(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{a()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),a()})),this._register(this._editor.onDidChangeModelContent(l=>{this._cancelAll(),a()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),a()})),this._register(this._configurationService.onDidChangeConfiguration(l=>{l.affectsConfiguration(iN)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()}))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,i)))}_requestRange(e,t){const i=e.getVersionId(),n=Ri(r=>Promise.resolve(eN(this._provider,e,t,r))),s=new $n(!1);return n.then(r=>{if(this._debounceInformation.update(e,s.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:a,tokens:l}=r,c=this._modelService.getSemanticTokensProviderStyling(a);e.tokenization.setPartialSemanticTokens(t,gF(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};Xm.ID="editor.contrib.viewportSemanticTokens";Xm=Yde([Bf(1,Ut),Bf(2,Ct),Bf(3,ot),Bf(4,no),Bf(5,de)],Xm);tt(Xm.ID,Xm);var Qde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Xde=T("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},p("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Jde=T("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},p("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),ehe=T("editor.wordHighlightBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),the=T("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),ihe=T("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},p("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),nhe=T("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},p("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Iw=new le("hasWordHighlights",!1);function Q9(o,e,t,i){const n=o.ordered(e);return OP(n.map(s=>()=>Promise.resolve(s.provideDocumentHighlights(e,t,i)).then(void 0,Pi)),rn)}class X9{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Ri(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,r=t.endColumn,a=this._getCurrentWordRange(e,t);let l=Boolean(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=i.length;!l&&c=r&&(l=!0)}return l}cancel(){this.result.cancel()}}class she extends X9{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return Q9(this._providers,e,t.getPosition(),n).then(s=>s||[])}}class ohe extends X9{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,n){return sc(250,n).then(()=>{if(!t.isEmpty())return[];const s=e.getWordAtPosition(t.getPosition());return!s||s.word.length>1e3?[]:e.findMatches(s.word,!0,!1,!0,i,!1).map(a=>({range:a.range,kind:Fp.Text}))})}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,i)}}function rhe(o,e,t,i){return o.has(e)?new she(e,t,i,o):new ohe(e,t,i)}ia("_executeDocumentHighlights",(o,e,t)=>{const i=o.get(de);return Q9(i.documentHighlightProvider,e,t,ze.None)});class cf{constructor(e,t,i){this.toUnhook=new Q,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this._hasWordHighlights=Iw.bindTo(i),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(74),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(n=>{this._ignorePositionChangeEvent||!this.occurrencesHighlight||this._onPositionChanged(n)})),this.toUnhook.add(e.onDidChangeModelContent(n=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(n=>{const s=this.editor.getOption(74);this.occurrencesHighlight!==s&&(this.occurrencesHighlight=s,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){!this.occurrencesHighlight||this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(L.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:i})}_run(){const e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}const t=e.startColumn,i=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{r===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},Te)}}_beginRenderDecorations(){const e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:cf._getDecorationOptions(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===Fp.Write?this._WRITE_OPTIONS:e===Fp.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}cf._WRITE_OPTIONS=Ne.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Qt(nhe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._TEXT_OPTIONS=Ne.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Qt(T4),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._REGULAR_OPTIONS=Ne.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Qt(ihe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});let ch=class J9 extends H{constructor(e,t,i){super(),this.wordHighlighter=null;const n=()=>{e.hasModel()&&(this.wordHighlighter=new cf(e,i.documentHighlightProvider,t))};this._register(e.onDidChangeModel(s=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(e){return e.getContribution(J9.ID)}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};ch.ID="editor.contrib.wordHighlighter";ch=Qde([wO(1,Ee),wO(2,de)],ch);class e8 extends ce{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=ch.get(t);!i||(this._isNext?i.moveNext():i.moveBack())}}class ahe extends e8{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:p("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:65,weight:100}})}}class lhe extends e8{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:p("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:1089,weight:100}})}}class che extends ce{constructor(){super({id:"editor.action.wordHighlight.trigger",label:p("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Iw.toNegated(),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=ch.get(t);!n||n.restoreViewState(!0)}}tt(ch.ID,ch);ie(ahe);ie(lhe);ie(che);Et((o,e)=>{const t=o.getColor(oE);t&&(e.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${t}; }`),e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`));const i=o.getColor(Xde);i&&e.addRule(`.monaco-editor .wordHighlight { background-color: ${i}; }`);const n=o.getColor(Jde);n&&e.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${n}; }`);const s=o.getColor(Az);s&&e.addRule(`.monaco-editor .selectionHighlight { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(ehe);r&&e.addRule(`.monaco-editor .wordHighlight { border: 1px ${cn(o.type)?"dashed":"solid"} ${r}; box-sizing: border-box; }`);const a=o.getColor(the);a&&e.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; box-sizing: border-box; }`)});class Ew extends xi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=new B(l.positionLineNumber,l.positionColumn),d=this._move(n,s,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>$e.fromModelSelection(l))),a.length===1){const l=new B(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,i){return i?new oe(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new oe(t.lineNumber,t.column,t.lineNumber,t.column)}}class Ac extends Ew{_move(e,t,i,n){return it.moveWordLeft(e,t,i,n)}}class Mc extends Ew{_move(e,t,i,n){return it.moveWordRight(e,t,i,n)}}class dhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class hhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class uhe extends Ac{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class ghe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class fhe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class phe extends Ac{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class mhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class _he extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class bhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class vhe extends Mc{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class Che extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class whe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class She extends Mc{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class yhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class Lhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Dhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Nw extends xi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(si);if(!t.hasModel())return;const s=Ys(t.getOption(119)),r=t.getModel(),a=t.getSelections(),l=t.getOption(5),c=t.getOption(8),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),h=t._getViewModel(),u=a.map(g=>{const f=this._delete({wordSeparators:s,model:r,selection:g,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:h.getCursorAutoClosedCharacters()},this._wordNavigationType);return new zi(f,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class CT extends Nw{_delete(e,t){const i=it.deleteWordLeft(e,t);return i||new L(1,1,1,1)}}class wT extends Nw{_delete(e,t){const i=it.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class khe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:N.writable})}}class xhe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:N.writable})}}class Ihe extends CT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class Ehe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:N.writable})}}class Nhe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:N.writable})}}class The extends wT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class Ahe extends ce{constructor(){super({id:"deleteInsideWord",precondition:N.writable,label:p("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=it.deleteInsideWord(n,s,l);return new zi(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}}ee(new dhe);ee(new hhe);ee(new uhe);ee(new ghe);ee(new fhe);ee(new phe);ee(new bhe);ee(new vhe);ee(new Che);ee(new whe);ee(new She);ee(new yhe);ee(new mhe);ee(new _he);ee(new Lhe);ee(new Dhe);ee(new khe);ee(new xhe);ee(new Ihe);ee(new Ehe);ee(new Nhe);ee(new The);ie(Ahe);class Mhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=v1.deleteWordPartLeft(e);return i||new L(1,1,1,1)}}class Rhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=v1.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class t8 extends Ew{_move(e,t,i,n){return v1.moveWordPartLeft(e,t,i)}}class Ohe extends t8{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class Phe extends t8{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class i8 extends Ew{_move(e,t,i,n){return v1.moveWordPartRight(e,t,i)}}class Fhe extends i8{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class Bhe extends i8{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}ee(new Mhe);ee(new Rhe);ee(new Ohe);ee(new Phe);ee(new Fhe);ee(new Bhe);class Xx extends H{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const e=os.get(this.editor);e&&this.editor.hasModel()&&(this.editor.isSimpleWidget?e.showMessage(p("editor.simple.readonly","Cannot edit in read-only input"),this.editor.getPosition()):e.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this.editor.getPosition()))}}Xx.ID="editor.contrib.readOnlyMessageController";tt(Xx.ID,Xx);var n8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},W0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const s8=new le("accessibilityHelpWidgetVisible",!1);let dh=class o8 extends H{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(Bg,this._editor))}static get(e){return e.getContribution(o8.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};dh.ID="editor.contrib.accessibilityHelpController";dh=n8([W0(1,Ae)],dh);function Whe(o,e){return!o||o.length===0?hi.noSelection:o.length===1?e?Vs(hi.singleSelectionRange,o[0].positionLineNumber,o[0].positionColumn,e):Vs(hi.singleSelection,o[0].positionLineNumber,o[0].positionColumn):e?Vs(hi.multiSelectionRange,o.length,e):o.length>0?Vs(hi.multiSelection,o.length):""}let Bg=class V0 extends yo{constructor(e,t,i,n){super(),this._contextKeyService=t,this._keybindingService=i,this._openerService=n,this._editor=e,this._isVisibleKey=s8.bindTo(this._contextKeyService),this._domNode=Je(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Je(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(ki(this._contentDomNode.domNode,"keydown",s=>{if(!!this._isVisible&&(s.equals(2083)&&(Gi(hi.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),Si(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),s.preventDefault(),s.stopPropagation()),s.equals(2086))){Gi(hi.openingDocs);let r=this._editor.getRawOptions().accessibilityHelpUrl;typeof r>"u"&&(r="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(_e.parse(r)),s.preventDefault(),s.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return V0.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,i){const n=this._keybindingService.lookupKeybinding(e);return n?Vs(t,n.getAriaLabel()):Vs(i,e)}_buildContent(){const e=this._editor.getOptions(),t=this._editor.getSelections();let i=0;if(t){const a=this._editor.getModel();a&&t.forEach(l=>{i+=a.getValueLengthInRange(l)})}let n=Whe(t,i);e.get(56)?e.get(83)?n+=hi.readonlyDiffEditor:n+=hi.editableDiffEditor:e.get(83)?n+=hi.readonlyEditor:n+=hi.editableEditor;const s=Ge?hi.changeConfigToOnMac:hi.changeConfigToOnWinLinux;switch(e.get(2)){case 0:n+=` - `+s;break;case 2:n+=` @@ -793,6 +793,6 @@ The flag will not be saved for the future. - `+r,n+=` -`+hi.outroMsg,this._contentDomNode.domNode.appendChild(C5(n)),this._contentDomNode.domNode.setAttribute("aria-label",n)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,Si(this._contentDomNode.domNode),this._editor.focus())}_layout(){const e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(V0.WIDTH,e.width-40)),i=Math.max(5,Math.min(V0.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(i);const n=Math.round((e.height-i)/2);this._domNode.setTop(n);const s=Math.round((e.width-t)/2);this._domNode.setLeft(s)}};Bg.ID="editor.contrib.accessibilityHelpWidget";Bg.WIDTH=500;Bg.HEIGHT=300;Bg=n8([W0(1,Ee),W0(2,_i),W0(3,io)],Bg);class Vhe extends ce{constructor(){super({id:"editor.action.showAccessibilityHelp",label:hi.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){const i=dh.get(t);i&&i.show()}}tt(dh.ID,dh);ie(Vhe);const Hhe=xi.bindToContribution(dh.get);ee(new Hhe({id:"closeAccessibilityHelp",precondition:s8,handler:o=>o.hide(),kbOpts:{weight:100+100,kbExpr:N.focus,primary:9,secondary:[1033]}}));Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${s}; }`)});class Jx extends H{constructor(e){super(),this.editor=e,this.widget=null,Ur&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(83);!this.widget&&e?this.widget=new Tw(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}Jx.ID="editor.contrib.iPadShowKeyboard";class Tw extends H{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(G(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(G(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return Tw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}Tw.ID="editor.contrib.ShowKeyboardWidget";tt(Jx.ID,Jx);var zhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Wg=class r8 extends H{constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(Wt.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}static get(e){return e.getContribution(r8.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new Aw(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Wg.ID="editor.contrib.inspectTokens";Wg=zhe([SO(1,Es),SO(2,Ht)],Wg);class Uhe extends ce{constructor(){super({id:"editor.action.inspectTokens",label:zD.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=Wg.get(t);i&&i.launch()}}function $he(o){let e="";for(let t=0,i=o.length;tng,tokenize:(n,s,r)=>AI(e,r),tokenizeEncoded:(n,s,r)=>qC(i,r)}}class Aw extends H{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=jhe(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(i=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return Aw._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let l=t.tokens1.length-1;l>=0;l--){const c=t.tokens1[l];if(e.column-1>=c.offset){i=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}const s=this._model.getLineContent(e.lineNumber);let r="";if(i{const t=o.getColor(aE);if(t){const s=cn(o.type)?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${s}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const n=o.getColor(rE);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${n}; }`)});var Khe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let MC=class H0{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=zt.as(yh.Quickaccess)}provide(e){const t=new Q;return t.add(e.onDidAccept(()=>{const[i]=e.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(i=>{const n=this.registry.getQuickAccessProvider(i.substr(H0.PREFIX.length));n&&n.prefix&&n.prefix!==H0.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders(),t}getQuickAccessProviders(){const e=[];for(const t of this.registry.getQuickAccessProviders().sort((i,n)=>i.prefix.localeCompare(n.prefix)))if(t.prefix!==H0.PREFIX)for(const i of t.helpEntries){const n=i.prefix||t.prefix,s=n||"\u2026";e.push({prefix:n,label:s,keybinding:i.commandId?this.keybindingService.lookupKeybinding(i.commandId):void 0,ariaLabel:p("helpPickAriaLabel","{0}, {1}",s,i.description),description:i.description})}return e}};MC.PREFIX="?";MC=Khe([yO(0,dl),yO(1,_i)],MC);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:MC,prefix:"",helpEntries:[{description:UD.helpQuickAccessActionLabel}]});class a8{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const s=n.add(new _n);return s.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{s.value=void 0,s.value=this.doProvide(e,t)})),n}doProvide(e,t){const i=new Q,n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const s={editor:n},r=u3(n);if(r){let a=Wn(n.saveViewState());i.add(r.onDidChangeCursorPosition(()=>{a=Wn(n.saveViewState())})),s.restoreViewState=()=>{a&&n===this.activeTextEditorControl&&n.restoreViewState(a)},i.add(Xa(t.onCancellationRequested)(()=>{var l;return(l=s.restoreViewState)===null||l===void 0?void 0:l.call(s)}))}i.add(Be(()=>this.clearDecorations(n))),i.add(this.provideWithTextEditor(s,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return h3(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(i=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Qt(x$),position:Zs.Full}}}],[r,a]=i.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:a}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(i=>{i.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class Mw extends a8{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=p("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=new Q;s.add(t.onDidAccept(l=>{const[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));const r=()=>{const l=this.parsePosition(n,t.value.trim().substr(Mw.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}const d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};r(),s.add(t.onDidChangeValue(()=>r()));const a=u3(n);return a&&a.getOptions().get(62).renderType===2&&(a.updateOptions({lineNumbers:"on"}),s.add(Be(()=>a.updateOptions({lineNumbers:"relative"})))),s}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(s=>parseInt(s,10)).filter(s=>!isNaN(s)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?p("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):p("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?p("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):p("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||typeof i!="number")return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return(i=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&i!==void 0?i:0}}Mw.PREFIX=":";var qhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ghe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Jm=class extends Mw{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};Jm=qhe([Ghe(0,ct)],Jm);class V_ extends ce{constructor(){super({id:V_.ID,label:qv.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(dl).quickAccess.show(Jm.PREFIX)}}V_.ID="editor.action.gotoLine";ie(V_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:Jm,prefix:Jm.PREFIX,helpEntries:[{description:qv.gotoLineActionLabel,commandId:V_.ID}]});const l8=[void 0,[]];function Fy(o,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?Zhe(o,n.values,t,i):c8(o,e,t,i)}function Zhe(o,e,t,i){let n=0;const s=[];for(const r of e){const[a,l]=c8(o,r,t,i);if(typeof a!="number")return l8;n+=a,s.push(...l)}return[n,Yhe(s)]}function c8(o,e,t,i){const n=mg(e.original,e.originalLowercase,t,o,o.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],E1(n)]:l8}Object.freeze({score:0});function Yhe(o){const e=o.sort((n,s)=>n.start-s.start),t=[];let i;for(const n of e)!i||!Qhe(i,n)?(i=n,t.push(n)):(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end));return t}function Qhe(o,e){return!(o.end=0,r=LO(o);let a;const l=o.split(d8);if(l.length>1)for(const c of l){const d=LO(c),{pathNormalized:h,normalized:u,normalizedLowercase:g}=DO(c);u&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:h,normalized:u,normalizedLowercase:g,expectContiguousMatch:d}))}return{original:o,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function DO(o){let e;Yi?e=o.replace(/\//g,Br):e=o.replace(/\\/g,Br);const t=uB(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function kO(o){return Array.isArray(o)?eI(o.map(e=>e.original).join(d8)):eI(o.original)}var Xhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Wf=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Co=class tI extends a8{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,p("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):H.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new Q;return this.provideLabelPick(i,p("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Wf(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,s))||n.isCancellationRequested||s.add(this.doProvideWithEditorSymbols(e,t,i,n))}),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Wf(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new RI,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(Be(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(e,t,i,n){var s;const r=e.editor,a=new Q;a.add(i.onDidAccept(u=>{const[g]=i.selectedItems;g&&g.range&&(this.gotoLocation(e,{range:g.range.selection,keyMods:i.keyMods,preserveFocus:u.inBackground}),u.inBackground||i.hide())})),a.add(i.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const l=this.getDocumentSymbols(t,n);let c;const d=u=>Wf(this,void 0,void 0,function*(){c==null||c.dispose(!0),i.busy=!1,c=new Qi(n),i.busy=!0;try{const g=eI(i.value.substr(tI.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,g,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(i.items=f,u&&g.original.length===0){const _=j0(f,b=>Boolean(b.type!=="separator"&&b.range&&L.containsPosition(b.range.decoration,u)));_&&(i.activeItems=[_])}}else g.original.length>0?this.provideLabelPick(i,p("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,p("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}});a.add(i.onDidChangeValue(()=>d(void 0))),d((s=r.getSelection())===null||s===void 0?void 0:s.getPosition());let h=2;return a.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;if(u&&u.range){if(h-- >0)return;r.revealRangeInCenter(u.range.selection,0),this.addDecorations(r,u.range.decoration)}})),a}doGetSymbolPicks(e,t,i,n){return Wf(this,void 0,void 0,function*(){const s=yield e;if(n.isCancellationRequested)return[];const r=t.original.indexOf(tI.SCOPE_PREFIX)===0,a=r?1:0;let l,c;t.values&&t.values.length>1?(l=kO(t.values[0]),c=kO(t.values.slice(1))):l=t;const d=[];for(let g=0;ga){let D=!1;if(l!==t&&([w,S]=Fy(b,Object.assign(Object.assign({},t),{values:void 0}),a,v),typeof w=="number"&&(D=!0)),typeof w!="number"&&([w,S]=Fy(b,l,a,v),typeof w!="number"))continue;if(!D&&c){if(C&&c.original.length>0&&([k,x]=Fy(C,c)),typeof k!="number")continue;typeof w=="number"&&(w+=k)}}const y=f.tags&&f.tags.indexOf(1)>=0;d.push({index:g,kind:f.kind,score:w,label:b,ariaLabel:_,description:C,highlights:y?void 0:{label:S,description:x},range:{selection:L.collapseToStart(f.selectionRange),decoration:f.range},strikethrough:y,buttons:(()=>{var D,I;const O=!((D=this.options)===null||D===void 0)&&D.openSideBySideDirection?(I=this.options)===null||I===void 0?void 0:I.openSideBySideDirection():void 0;if(!!O)return[{iconClass:O==="right"?m.splitHorizontal.classNames:m.splitVertical.classNames,tooltip:O==="right"?p("openToSide","Open to the Side"):p("openToBottom","Open to the Bottom")}]})()})}const h=d.sort((g,f)=>r?this.compareByKindAndScore(g,f):this.compareByScore(g,f));let u=[];if(r){let b=function(){f&&typeof g=="number"&&_>0&&(f.label=Vs(Wy[g]||By,_))},g,f,_=0;for(const v of h)g!==v.kind?(b(),g=v.kind,_=1,f={type:"separator"},u.push(f)):_++,u.push(v);b()}else h.length>0&&(u=[{label:p("symbols","symbols ({0})",d.length),type:"separator"},...h]);return u})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=Wy[e.kind]||By,n=Wy[t.kind]||By,s=i.localeCompare(n);return s===0?this.compareByScore(e,t):s}getDocumentSymbols(e,t){return Wf(this,void 0,void 0,function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};Co.PREFIX="@";Co.SCOPE_PREFIX=":";Co.PREFIX_BY_CATEGORY=`${Co.PREFIX}${Co.SCOPE_PREFIX}`;Co=Xhe([xO(0,de),xO(1,pw)],Co);const By=p("property","properties ({0})"),Wy={[5]:p("method","methods ({0})"),[11]:p("function","functions ({0})"),[8]:p("_constructor","constructors ({0})"),[12]:p("variable","variables ({0})"),[4]:p("class","classes ({0})"),[22]:p("struct","structs ({0})"),[23]:p("event","events ({0})"),[24]:p("operator","operators ({0})"),[10]:p("interface","interfaces ({0})"),[2]:p("namespace","namespaces ({0})"),[3]:p("package","packages ({0})"),[25]:p("typeParameter","type parameters ({0})"),[1]:p("modules","modules ({0})"),[6]:p("property","properties ({0})"),[9]:p("enum","enumerations ({0})"),[21]:p("enumMember","enumeration members ({0})"),[14]:p("string","strings ({0})"),[0]:p("file","files ({0})"),[17]:p("array","arrays ({0})"),[15]:p("number","numbers ({0})"),[16]:p("boolean","booleans ({0})"),[18]:p("object","objects ({0})"),[19]:p("key","keys ({0})"),[7]:p("field","fields ({0})"),[13]:p("constant","constants ({0})")};var Jhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Vy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class extends Co{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};iI=Jhe([Vy(0,ct),Vy(1,de),Vy(2,pw)],iI);class H_ extends ce{constructor(){super({id:H_.ID,label:bm.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:N.hasDocumentSymbolProvider,kbOpts:{kbExpr:N.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(dl).quickAccess.show(Co.PREFIX)}}H_.ID="editor.action.quickOutline";ie(H_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:iI,prefix:Co.PREFIX,helpEntries:[{description:bm.quickOutlineActionLabel,prefix:Co.PREFIX,commandId:H_.ID},{description:bm.quickOutlineByCategoryActionLabel,prefix:Co.PREFIX_BY_CATEGORY}]});function Hy(o,e){return e&&(o.stack||o.stacktrace)?p("stackTrace.format","{0}: {1}",EO(o),IO(o.stack)||IO(o.stacktrace)):EO(o)}function IO(o){return Array.isArray(o)?o.join(` -`):o}function EO(o){return typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function h8(o=null,e=!1){if(!o)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=i_(o),i=h8(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Un(o))return o;if(o.detail){const t=o.detail;if(t.error)return Hy(t.error,e);if(t.exception)return Hy(t.exception,e)}return o.stack?Hy(o,e):o.message?o.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var d0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Iu;(function(o){o[o.NO_ACTION=0]="NO_ACTION",o[o.CLOSE_PICKER=1]="CLOSE_PICKER",o[o.REFRESH_PICKER=2]="REFRESH_PICKER",o[o.REMOVE_ITEM=3]="REMOVE_ITEM"})(Iu||(Iu={}));function zy(o){const e=o;return Array.isArray(e.items)}function eue(o){const e=o;return!!e.picks&&e.additionalPicks instanceof Promise}class Rw extends H{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s;const r=n.add(new _n),a=()=>d0(this,void 0,void 0,function*(){const l=r.value=new Q;s==null||s.dispose(!0),e.busy=!1,s=new Qi(t);const c=s.token,d=e.value.substr(this.prefix.length).trim(),h=this._getPicks(d,l,c),u=(g,f)=>{var _;let b,v;if(zy(g)?(b=g.items,v=g.active):b=g,b.length===0){if(f)return!1;d.length>0&&((_=this.options)===null||_===void 0?void 0:_.noResultsPick)&&(b=[this.options.noResultsPick])}return e.items=b,v&&(e.activeItems=[v]),!0};if(h!==null)if(eue(h)){let g=!1,f=!1;yield Promise.all([(()=>d0(this,void 0,void 0,function*(){yield sc(Rw.FAST_PICKS_RACE_DELAY),!c.isCancellationRequested&&(f||(g=u(h.picks,!0)))}))(),(()=>d0(this,void 0,void 0,function*(){e.busy=!0;try{const _=yield h.additionalPicks;if(c.isCancellationRequested)return;let b,v;zy(h.picks)?(b=h.picks.items,v=h.picks.active):b=h.picks;let C,w;if(zy(_)?(C=_.items,w=_.active):C=_,C.length>0||!g){let S;if(!v&&!w){const k=e.activeItems[0];k&&b.indexOf(k)!==-1&&(S=k)}u({items:[...b,...C],active:v||w||S})}}finally{c.isCancellationRequested||(e.busy=!1),f=!0}}))()])}else if(!(h instanceof Promise))u(h);else{e.busy=!0;try{const g=yield h;if(c.isCancellationRequested)return;u(g)}finally{c.isCancellationRequested||(e.busy=!1)}}});return n.add(e.onDidChangeValue(()=>a())),a(),n.add(e.onDidAccept(l=>{const[c]=e.selectedItems;typeof(c==null?void 0:c.accept)=="function"&&(l.inBackground||e.hide(),c.accept(e.keyMods,l))})),n.add(e.onDidTriggerItemButton(({button:l,item:c})=>d0(this,void 0,void 0,function*(){var d,h;if(typeof c.trigger=="function"){const u=(h=(d=c.buttons)===null||d===void 0?void 0:d.indexOf(l))!==null&&h!==void 0?h:-1;if(u>=0){const g=c.trigger(u,e.keyMods),f=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(f){case Iu.NO_ACTION:break;case Iu.CLOSE_PICKER:e.hide();break;case Iu.REFRESH_PICKER:a();break;case Iu.REMOVE_ITEM:{const _=e.items.indexOf(c);if(_!==-1){const b=e.items.slice(),v=b.splice(_,1),C=e.activeItems.filter(S=>S!==v[0]),w=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=b,C&&(e.activeItems=C),e.keepScrollPosition=w}break}}}}}))),n}}Rw.FAST_PICKS_RACE_DELAY=200;var u8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nd=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},NO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let e_=class z0 extends Rw{constructor(e,t,i,n,s,r){super(z0.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(hh)),this.options=e}_getPicks(e,t,i){return NO(this,void 0,void 0,function*(){const n=yield this.getCommandPicks(t,i);if(i.isCancellationRequested)return[];const s=[];for(const c of n){const d=Wn(z0.WORD_FILTER(e,c.label)),h=c.commandAlias?Wn(z0.WORD_FILTER(e,c.commandAlias)):void 0;d||h?(c.highlights={label:d,detail:this.options.showAlias?h:void 0},s.push(c)):e===c.commandId&&s.push(c)}const r=new Map;for(const c of s){const d=r.get(c.label);d?(c.description=c.commandId,d.description=d.commandId):r.set(c.label,c)}s.sort((c,d)=>{const h=this.commandsHistory.peek(c.commandId),u=this.commandsHistory.peek(d.commandId);return h&&u?h>u?-1:1:h?-1:u?1:c.label.localeCompare(d.label)});const a=[];let l=!1;for(let c=0;cNO(this,void 0,void 0,function*(){this.commandsHistory.push(d.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"quick open"});try{yield this.commandService.executeCommand(d.commandId)}catch(g){ea(g)||this.dialogService.show(Bt.Error,p("canNotRun","Command '{0}' resulted in an error ({1})",d.label,h8(g)))}})}))}return a})}};e_.PREFIX=">";e_.WORD_FILTER=WE(x1,JG,TF);e_=u8([nd(1,Ae),nd(2,_i),nd(3,ci),nd(4,sr),nd(5,b_)],e_);let hh=class Ii extends H{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Ii.getConfiguredCommandHistoryLength(this.configurationService),Ii.cache&&Ii.cache.limit!==this.configuredCommandsHistoryLength&&(Ii.cache.limit=this.configuredCommandsHistoryLength,Ii.saveState(this.storageService))}load(){const e=this.storageService.get(Ii.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=Ii.cache=new Dc(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((s,r)=>s.value-r.value),n.forEach(s=>i.set(s.key,s.value))}Ii.counter=this.storageService.getNumber(Ii.PREF_KEY_COUNTER,0,Ii.counter)}push(e){!Ii.cache||(Ii.cache.set(e,Ii.counter++),Ii.saveState(this.storageService))}peek(e){var t;return(t=Ii.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Ii.cache)return;const t={usesLRU:!0,entries:[]};Ii.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(Ii.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(Ii.PREF_KEY_COUNTER,Ii.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const s=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof s=="number"?s:Ii.DEFAULT_COMMANDS_HISTORY_LENGTH}};hh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;hh.PREF_KEY_CACHE="commandPalette.mru.cache";hh.PREF_KEY_COUNTER="commandPalette.mru.counter";hh.counter=1;hh=u8([nd(0,Do),nd(1,ot)],hh);class tue extends e_{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:KE(i.label)||i.id});return t}}var iue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nue=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let t_=class extends tue{constructor(e,t,i,n,s,r){super({showAlias:!1},e,i,n,s,r),this.codeEditorService=t}get activeTextEditorControl(){return Wn(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return nue(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};t_=iue([Qh(0,Ae),Qh(1,ct),Qh(2,_i),Qh(3,ci),Qh(4,sr),Qh(5,b_)],t_);class z_ extends ce{constructor(){super({id:z_.ID,label:Gv.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(dl).quickAccess.show(t_.PREFIX)}}z_.ID="editor.action.quickCommand";ie(z_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:t_,prefix:t_.PREFIX,helpEntries:[{description:Gv.quickCommandHelp,commandId:z_.ID}]});var sue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let nI=class extends mc{constructor(e,t,i,n,s,r,a){super(!0,e,t,i,n,s,r,a)}};nI=sue([Xh(1,Ee),Xh(2,ct),Xh(3,di),Xh(4,Ae),Xh(5,Do),Xh(6,ot)],nI);tt(mc.ID,nI);class oue extends ce{constructor(){super({id:"editor.action.toggleHighContrast",label:$D.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(Es),n=i.getColorTheme();cn(n.type)?(i.setTheme(this._originalThemeName||(Xp(n.type)?Ku:Ra)),this._originalThemeName=null):(i.setTheme(Xp(n.type)?Sd:yd),this._originalThemeName=n.themeName)}}ie(oue);export{yte as C,Lte as E,Dte as K,Tte as M,xte as P,Ite as R,Ete as S,Rte as T,Mte as U,kte as a,Nte as b,Ate as c,Ote as e,Pte as l,D_ as m,T3 as t}; -//# sourceMappingURL=toggleHighContrast.017fb466.js.map +`+hi.outroMsg,this._contentDomNode.domNode.appendChild(CF(n)),this._contentDomNode.domNode.setAttribute("aria-label",n)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,Si(this._contentDomNode.domNode),this._editor.focus())}_layout(){const e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(V0.WIDTH,e.width-40)),i=Math.max(5,Math.min(V0.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(i);const n=Math.round((e.height-i)/2);this._domNode.setTop(n);const s=Math.round((e.width-t)/2);this._domNode.setLeft(s)}};Bg.ID="editor.contrib.accessibilityHelpWidget";Bg.WIDTH=500;Bg.HEIGHT=300;Bg=n8([W0(1,Ee),W0(2,_i),W0(3,io)],Bg);class Vhe extends ce{constructor(){super({id:"editor.action.showAccessibilityHelp",label:hi.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){const i=dh.get(t);i&&i.show()}}tt(dh.ID,dh);ie(Vhe);const Hhe=xi.bindToContribution(dh.get);ee(new Hhe({id:"closeAccessibilityHelp",precondition:s8,handler:o=>o.hide(),kbOpts:{weight:100+100,kbExpr:N.focus,primary:9,secondary:[1033]}}));Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${s}; }`)});class Jx extends H{constructor(e){super(),this.editor=e,this.widget=null,Ur&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(83);!this.widget&&e?this.widget=new Tw(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}Jx.ID="editor.contrib.iPadShowKeyboard";class Tw extends H{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(G(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(G(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return Tw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}Tw.ID="editor.contrib.ShowKeyboardWidget";tt(Jx.ID,Jx);var zhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Wg=class r8 extends H{constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(Wt.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}static get(e){return e.getContribution(r8.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new Aw(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Wg.ID="editor.contrib.inspectTokens";Wg=zhe([SO(1,Es),SO(2,Ht)],Wg);class Uhe extends ce{constructor(){super({id:"editor.action.inspectTokens",label:zD.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=Wg.get(t);i&&i.launch()}}function $he(o){let e="";for(let t=0,i=o.length;tng,tokenize:(n,s,r)=>AI(e,r),tokenizeEncoded:(n,s,r)=>qC(i,r)}}class Aw extends H{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=jhe(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(i=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return Aw._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let l=t.tokens1.length-1;l>=0;l--){const c=t.tokens1[l];if(e.column-1>=c.offset){i=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}const s=this._model.getLineContent(e.lineNumber);let r="";if(i{const t=o.getColor(aE);if(t){const s=cn(o.type)?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${s}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const n=o.getColor(rE);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${n}; }`)});var Khe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let MC=class H0{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=zt.as(yh.Quickaccess)}provide(e){const t=new Q;return t.add(e.onDidAccept(()=>{const[i]=e.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(i=>{const n=this.registry.getQuickAccessProvider(i.substr(H0.PREFIX.length));n&&n.prefix&&n.prefix!==H0.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders(),t}getQuickAccessProviders(){const e=[];for(const t of this.registry.getQuickAccessProviders().sort((i,n)=>i.prefix.localeCompare(n.prefix)))if(t.prefix!==H0.PREFIX)for(const i of t.helpEntries){const n=i.prefix||t.prefix,s=n||"\u2026";e.push({prefix:n,label:s,keybinding:i.commandId?this.keybindingService.lookupKeybinding(i.commandId):void 0,ariaLabel:p("helpPickAriaLabel","{0}, {1}",s,i.description),description:i.description})}return e}};MC.PREFIX="?";MC=Khe([yO(0,dl),yO(1,_i)],MC);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:MC,prefix:"",helpEntries:[{description:UD.helpQuickAccessActionLabel}]});class a8{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const s=n.add(new _n);return s.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{s.value=void 0,s.value=this.doProvide(e,t)})),n}doProvide(e,t){const i=new Q,n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const s={editor:n},r=u3(n);if(r){let a=Wn(n.saveViewState());i.add(r.onDidChangeCursorPosition(()=>{a=Wn(n.saveViewState())})),s.restoreViewState=()=>{a&&n===this.activeTextEditorControl&&n.restoreViewState(a)},i.add(Xa(t.onCancellationRequested)(()=>{var l;return(l=s.restoreViewState)===null||l===void 0?void 0:l.call(s)}))}i.add(Be(()=>this.clearDecorations(n))),i.add(this.provideWithTextEditor(s,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return h3(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(i=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Qt(x$),position:Zs.Full}}}],[r,a]=i.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:a}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(i=>{i.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class Mw extends a8{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=p("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=new Q;s.add(t.onDidAccept(l=>{const[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));const r=()=>{const l=this.parsePosition(n,t.value.trim().substr(Mw.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}const d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};r(),s.add(t.onDidChangeValue(()=>r()));const a=u3(n);return a&&a.getOptions().get(62).renderType===2&&(a.updateOptions({lineNumbers:"on"}),s.add(Be(()=>a.updateOptions({lineNumbers:"relative"})))),s}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(s=>parseInt(s,10)).filter(s=>!isNaN(s)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?p("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):p("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?p("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):p("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||typeof i!="number")return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return(i=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&i!==void 0?i:0}}Mw.PREFIX=":";var qhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ghe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Jm=class extends Mw{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};Jm=qhe([Ghe(0,ct)],Jm);class V_ extends ce{constructor(){super({id:V_.ID,label:qv.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(dl).quickAccess.show(Jm.PREFIX)}}V_.ID="editor.action.gotoLine";ie(V_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:Jm,prefix:Jm.PREFIX,helpEntries:[{description:qv.gotoLineActionLabel,commandId:V_.ID}]});const l8=[void 0,[]];function Fy(o,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?Zhe(o,n.values,t,i):c8(o,e,t,i)}function Zhe(o,e,t,i){let n=0;const s=[];for(const r of e){const[a,l]=c8(o,r,t,i);if(typeof a!="number")return l8;n+=a,s.push(...l)}return[n,Yhe(s)]}function c8(o,e,t,i){const n=mg(e.original,e.originalLowercase,t,o,o.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],E1(n)]:l8}Object.freeze({score:0});function Yhe(o){const e=o.sort((n,s)=>n.start-s.start),t=[];let i;for(const n of e)!i||!Qhe(i,n)?(i=n,t.push(n)):(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end));return t}function Qhe(o,e){return!(o.end=0,r=LO(o);let a;const l=o.split(d8);if(l.length>1)for(const c of l){const d=LO(c),{pathNormalized:h,normalized:u,normalizedLowercase:g}=DO(c);u&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:h,normalized:u,normalizedLowercase:g,expectContiguousMatch:d}))}return{original:o,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function DO(o){let e;Yi?e=o.replace(/\//g,Br):e=o.replace(/\\/g,Br);const t=uB(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function kO(o){return Array.isArray(o)?eI(o.map(e=>e.original).join(d8)):eI(o.original)}var Xhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Wf=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Co=class tI extends a8{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,p("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):H.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new Q;return this.provideLabelPick(i,p("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Wf(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,s))||n.isCancellationRequested||s.add(this.doProvideWithEditorSymbols(e,t,i,n))}),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Wf(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new RI,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(Be(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(e,t,i,n){var s;const r=e.editor,a=new Q;a.add(i.onDidAccept(u=>{const[g]=i.selectedItems;g&&g.range&&(this.gotoLocation(e,{range:g.range.selection,keyMods:i.keyMods,preserveFocus:u.inBackground}),u.inBackground||i.hide())})),a.add(i.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const l=this.getDocumentSymbols(t,n);let c;const d=u=>Wf(this,void 0,void 0,function*(){c==null||c.dispose(!0),i.busy=!1,c=new Qi(n),i.busy=!0;try{const g=eI(i.value.substr(tI.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,g,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(i.items=f,u&&g.original.length===0){const _=j0(f,b=>Boolean(b.type!=="separator"&&b.range&&L.containsPosition(b.range.decoration,u)));_&&(i.activeItems=[_])}}else g.original.length>0?this.provideLabelPick(i,p("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,p("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}});a.add(i.onDidChangeValue(()=>d(void 0))),d((s=r.getSelection())===null||s===void 0?void 0:s.getPosition());let h=2;return a.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;if(u&&u.range){if(h-- >0)return;r.revealRangeInCenter(u.range.selection,0),this.addDecorations(r,u.range.decoration)}})),a}doGetSymbolPicks(e,t,i,n){return Wf(this,void 0,void 0,function*(){const s=yield e;if(n.isCancellationRequested)return[];const r=t.original.indexOf(tI.SCOPE_PREFIX)===0,a=r?1:0;let l,c;t.values&&t.values.length>1?(l=kO(t.values[0]),c=kO(t.values.slice(1))):l=t;const d=[];for(let g=0;ga){let D=!1;if(l!==t&&([w,S]=Fy(b,Object.assign(Object.assign({},t),{values:void 0}),a,v),typeof w=="number"&&(D=!0)),typeof w!="number"&&([w,S]=Fy(b,l,a,v),typeof w!="number"))continue;if(!D&&c){if(C&&c.original.length>0&&([k,x]=Fy(C,c)),typeof k!="number")continue;typeof w=="number"&&(w+=k)}}const y=f.tags&&f.tags.indexOf(1)>=0;d.push({index:g,kind:f.kind,score:w,label:b,ariaLabel:_,description:C,highlights:y?void 0:{label:S,description:x},range:{selection:L.collapseToStart(f.selectionRange),decoration:f.range},strikethrough:y,buttons:(()=>{var D,I;const O=!((D=this.options)===null||D===void 0)&&D.openSideBySideDirection?(I=this.options)===null||I===void 0?void 0:I.openSideBySideDirection():void 0;if(!!O)return[{iconClass:O==="right"?m.splitHorizontal.classNames:m.splitVertical.classNames,tooltip:O==="right"?p("openToSide","Open to the Side"):p("openToBottom","Open to the Bottom")}]})()})}const h=d.sort((g,f)=>r?this.compareByKindAndScore(g,f):this.compareByScore(g,f));let u=[];if(r){let b=function(){f&&typeof g=="number"&&_>0&&(f.label=Vs(Wy[g]||By,_))},g,f,_=0;for(const v of h)g!==v.kind?(b(),g=v.kind,_=1,f={type:"separator"},u.push(f)):_++,u.push(v);b()}else h.length>0&&(u=[{label:p("symbols","symbols ({0})",d.length),type:"separator"},...h]);return u})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=Wy[e.kind]||By,n=Wy[t.kind]||By,s=i.localeCompare(n);return s===0?this.compareByScore(e,t):s}getDocumentSymbols(e,t){return Wf(this,void 0,void 0,function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};Co.PREFIX="@";Co.SCOPE_PREFIX=":";Co.PREFIX_BY_CATEGORY=`${Co.PREFIX}${Co.SCOPE_PREFIX}`;Co=Xhe([xO(0,de),xO(1,pw)],Co);const By=p("property","properties ({0})"),Wy={[5]:p("method","methods ({0})"),[11]:p("function","functions ({0})"),[8]:p("_constructor","constructors ({0})"),[12]:p("variable","variables ({0})"),[4]:p("class","classes ({0})"),[22]:p("struct","structs ({0})"),[23]:p("event","events ({0})"),[24]:p("operator","operators ({0})"),[10]:p("interface","interfaces ({0})"),[2]:p("namespace","namespaces ({0})"),[3]:p("package","packages ({0})"),[25]:p("typeParameter","type parameters ({0})"),[1]:p("modules","modules ({0})"),[6]:p("property","properties ({0})"),[9]:p("enum","enumerations ({0})"),[21]:p("enumMember","enumeration members ({0})"),[14]:p("string","strings ({0})"),[0]:p("file","files ({0})"),[17]:p("array","arrays ({0})"),[15]:p("number","numbers ({0})"),[16]:p("boolean","booleans ({0})"),[18]:p("object","objects ({0})"),[19]:p("key","keys ({0})"),[7]:p("field","fields ({0})"),[13]:p("constant","constants ({0})")};var Jhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Vy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class extends Co{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};iI=Jhe([Vy(0,ct),Vy(1,de),Vy(2,pw)],iI);class H_ extends ce{constructor(){super({id:H_.ID,label:bm.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:N.hasDocumentSymbolProvider,kbOpts:{kbExpr:N.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(dl).quickAccess.show(Co.PREFIX)}}H_.ID="editor.action.quickOutline";ie(H_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:iI,prefix:Co.PREFIX,helpEntries:[{description:bm.quickOutlineActionLabel,prefix:Co.PREFIX,commandId:H_.ID},{description:bm.quickOutlineByCategoryActionLabel,prefix:Co.PREFIX_BY_CATEGORY}]});function Hy(o,e){return e&&(o.stack||o.stacktrace)?p("stackTrace.format","{0}: {1}",EO(o),IO(o.stack)||IO(o.stacktrace)):EO(o)}function IO(o){return Array.isArray(o)?o.join(` +`):o}function EO(o){return typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function h8(o=null,e=!1){if(!o)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=i_(o),i=h8(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Un(o))return o;if(o.detail){const t=o.detail;if(t.error)return Hy(t.error,e);if(t.exception)return Hy(t.exception,e)}return o.stack?Hy(o,e):o.message?o.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var d0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Iu;(function(o){o[o.NO_ACTION=0]="NO_ACTION",o[o.CLOSE_PICKER=1]="CLOSE_PICKER",o[o.REFRESH_PICKER=2]="REFRESH_PICKER",o[o.REMOVE_ITEM=3]="REMOVE_ITEM"})(Iu||(Iu={}));function zy(o){const e=o;return Array.isArray(e.items)}function eue(o){const e=o;return!!e.picks&&e.additionalPicks instanceof Promise}class Rw extends H{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s;const r=n.add(new _n),a=()=>d0(this,void 0,void 0,function*(){const l=r.value=new Q;s==null||s.dispose(!0),e.busy=!1,s=new Qi(t);const c=s.token,d=e.value.substr(this.prefix.length).trim(),h=this._getPicks(d,l,c),u=(g,f)=>{var _;let b,v;if(zy(g)?(b=g.items,v=g.active):b=g,b.length===0){if(f)return!1;d.length>0&&((_=this.options)===null||_===void 0?void 0:_.noResultsPick)&&(b=[this.options.noResultsPick])}return e.items=b,v&&(e.activeItems=[v]),!0};if(h!==null)if(eue(h)){let g=!1,f=!1;yield Promise.all([(()=>d0(this,void 0,void 0,function*(){yield sc(Rw.FAST_PICKS_RACE_DELAY),!c.isCancellationRequested&&(f||(g=u(h.picks,!0)))}))(),(()=>d0(this,void 0,void 0,function*(){e.busy=!0;try{const _=yield h.additionalPicks;if(c.isCancellationRequested)return;let b,v;zy(h.picks)?(b=h.picks.items,v=h.picks.active):b=h.picks;let C,w;if(zy(_)?(C=_.items,w=_.active):C=_,C.length>0||!g){let S;if(!v&&!w){const k=e.activeItems[0];k&&b.indexOf(k)!==-1&&(S=k)}u({items:[...b,...C],active:v||w||S})}}finally{c.isCancellationRequested||(e.busy=!1),f=!0}}))()])}else if(!(h instanceof Promise))u(h);else{e.busy=!0;try{const g=yield h;if(c.isCancellationRequested)return;u(g)}finally{c.isCancellationRequested||(e.busy=!1)}}});return n.add(e.onDidChangeValue(()=>a())),a(),n.add(e.onDidAccept(l=>{const[c]=e.selectedItems;typeof(c==null?void 0:c.accept)=="function"&&(l.inBackground||e.hide(),c.accept(e.keyMods,l))})),n.add(e.onDidTriggerItemButton(({button:l,item:c})=>d0(this,void 0,void 0,function*(){var d,h;if(typeof c.trigger=="function"){const u=(h=(d=c.buttons)===null||d===void 0?void 0:d.indexOf(l))!==null&&h!==void 0?h:-1;if(u>=0){const g=c.trigger(u,e.keyMods),f=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(f){case Iu.NO_ACTION:break;case Iu.CLOSE_PICKER:e.hide();break;case Iu.REFRESH_PICKER:a();break;case Iu.REMOVE_ITEM:{const _=e.items.indexOf(c);if(_!==-1){const b=e.items.slice(),v=b.splice(_,1),C=e.activeItems.filter(S=>S!==v[0]),w=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=b,C&&(e.activeItems=C),e.keepScrollPosition=w}break}}}}}))),n}}Rw.FAST_PICKS_RACE_DELAY=200;var u8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nd=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},NO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let e_=class z0 extends Rw{constructor(e,t,i,n,s,r){super(z0.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(hh)),this.options=e}_getPicks(e,t,i){return NO(this,void 0,void 0,function*(){const n=yield this.getCommandPicks(t,i);if(i.isCancellationRequested)return[];const s=[];for(const c of n){const d=Wn(z0.WORD_FILTER(e,c.label)),h=c.commandAlias?Wn(z0.WORD_FILTER(e,c.commandAlias)):void 0;d||h?(c.highlights={label:d,detail:this.options.showAlias?h:void 0},s.push(c)):e===c.commandId&&s.push(c)}const r=new Map;for(const c of s){const d=r.get(c.label);d?(c.description=c.commandId,d.description=d.commandId):r.set(c.label,c)}s.sort((c,d)=>{const h=this.commandsHistory.peek(c.commandId),u=this.commandsHistory.peek(d.commandId);return h&&u?h>u?-1:1:h?-1:u?1:c.label.localeCompare(d.label)});const a=[];let l=!1;for(let c=0;cNO(this,void 0,void 0,function*(){this.commandsHistory.push(d.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"quick open"});try{yield this.commandService.executeCommand(d.commandId)}catch(g){ea(g)||this.dialogService.show(Bt.Error,p("canNotRun","Command '{0}' resulted in an error ({1})",d.label,h8(g)))}})}))}return a})}};e_.PREFIX=">";e_.WORD_FILTER=WE(x1,JG,T5);e_=u8([nd(1,Ae),nd(2,_i),nd(3,ci),nd(4,sr),nd(5,b_)],e_);let hh=class Ii extends H{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Ii.getConfiguredCommandHistoryLength(this.configurationService),Ii.cache&&Ii.cache.limit!==this.configuredCommandsHistoryLength&&(Ii.cache.limit=this.configuredCommandsHistoryLength,Ii.saveState(this.storageService))}load(){const e=this.storageService.get(Ii.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=Ii.cache=new Dc(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((s,r)=>s.value-r.value),n.forEach(s=>i.set(s.key,s.value))}Ii.counter=this.storageService.getNumber(Ii.PREF_KEY_COUNTER,0,Ii.counter)}push(e){!Ii.cache||(Ii.cache.set(e,Ii.counter++),Ii.saveState(this.storageService))}peek(e){var t;return(t=Ii.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Ii.cache)return;const t={usesLRU:!0,entries:[]};Ii.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(Ii.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(Ii.PREF_KEY_COUNTER,Ii.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const s=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof s=="number"?s:Ii.DEFAULT_COMMANDS_HISTORY_LENGTH}};hh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;hh.PREF_KEY_CACHE="commandPalette.mru.cache";hh.PREF_KEY_COUNTER="commandPalette.mru.counter";hh.counter=1;hh=u8([nd(0,Do),nd(1,ot)],hh);class tue extends e_{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:KE(i.label)||i.id});return t}}var iue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nue=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let t_=class extends tue{constructor(e,t,i,n,s,r){super({showAlias:!1},e,i,n,s,r),this.codeEditorService=t}get activeTextEditorControl(){return Wn(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return nue(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};t_=iue([Qh(0,Ae),Qh(1,ct),Qh(2,_i),Qh(3,ci),Qh(4,sr),Qh(5,b_)],t_);class z_ extends ce{constructor(){super({id:z_.ID,label:Gv.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(dl).quickAccess.show(t_.PREFIX)}}z_.ID="editor.action.quickCommand";ie(z_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:t_,prefix:t_.PREFIX,helpEntries:[{description:Gv.quickCommandHelp,commandId:z_.ID}]});var sue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let nI=class extends mc{constructor(e,t,i,n,s,r,a){super(!0,e,t,i,n,s,r,a)}};nI=sue([Xh(1,Ee),Xh(2,ct),Xh(3,di),Xh(4,Ae),Xh(5,Do),Xh(6,ot)],nI);tt(mc.ID,nI);class oue extends ce{constructor(){super({id:"editor.action.toggleHighContrast",label:$D.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(Es),n=i.getColorTheme();cn(n.type)?(i.setTheme(this._originalThemeName||(Xp(n.type)?Ku:Ra)),this._originalThemeName=null):(i.setTheme(Xp(n.type)?Sd:yd),this._originalThemeName=n.themeName)}}ie(oue);export{yte as C,Lte as E,Dte as K,Tte as M,xte as P,Ite as R,Ete as S,Rte as T,Mte as U,kte as a,Nte as b,Ate as c,Ote as e,Pte as l,D_ as m,T3 as t}; +//# sourceMappingURL=toggleHighContrast.db48a34e.js.map diff --git a/abstra_statics/dist/assets/tsMode.30dc47d8.js b/abstra_statics/dist/assets/tsMode.079c19d5.js similarity index 98% rename from abstra_statics/dist/assets/tsMode.30dc47d8.js rename to abstra_statics/dist/assets/tsMode.079c19d5.js index d600c9f42..2128f5af7 100644 --- a/abstra_statics/dist/assets/tsMode.30dc47d8.js +++ b/abstra_statics/dist/assets/tsMode.079c19d5.js @@ -1,4 +1,4 @@ -var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2dac3842-26c7-4de2-a097-3c21c3555fbb",e._sentryDebugIdIdentifier="sentry-dbid-2dac3842-26c7-4de2-a097-3c21c3555fbb")}catch{}})();/*!----------------------------------------------------------------------------- +var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="18312cb0-b37d-41cd-95c7-e460f74902e7",e._sentryDebugIdIdentifier="sentry-dbid-18312cb0-b37d-41cd-95c7-e460f74902e7")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -14,4 +14,4 @@ ${O(r)}`;return t}};function O(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.te `+n:"")}]}}},J=class extends w{async provideDocumentHighlights(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getOccurrencesAtPosition(s.toString(),a);if(!(!c||e.isDisposed()))return c.map(g=>({range:this._textSpanToRange(e,g.textSpan),kind:g.isWriteAccess?i.languages.DocumentHighlightKind.Write:i.languages.DocumentHighlightKind.Text}))}},Q=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getDefinitionAtPosition(s.toString(),a);if(!c||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(c.map(n=>i.Uri.parse(n.fileName))),e.isDisposed()))return;const g=[];for(let n of c){const p=this._libFiles.getOrCreateModel(n.fileName);p&&g.push({uri:p.uri,range:this._textSpanToRange(p,n.textSpan)})}return g}},q=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,r,s){const a=e.uri,u=e.getOffsetAt(t),c=await this._worker(a);if(e.isDisposed())return;const g=await c.getReferencesAtPosition(a.toString(),u);if(!g||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(g.map(p=>i.Uri.parse(p.fileName))),e.isDisposed()))return;const n=[];for(let p of g){const d=this._libFiles.getOrCreateModel(p.fileName);d&&n.push({uri:d.uri,range:this._textSpanToRange(d,p.textSpan)})}return n}},X=class extends w{async provideDocumentSymbols(e,t){const r=e.uri,s=await this._worker(r);if(e.isDisposed())return;const a=await s.getNavigationBarItems(r.toString());if(!a||e.isDisposed())return;const u=(g,n,p)=>{let d={name:n.text,detail:"",kind:m[n.kind]||i.languages.SymbolKind.Variable,range:this._textSpanToRange(e,n.spans[0]),selectionRange:this._textSpanToRange(e,n.spans[0]),tags:[]};if(p&&(d.containerName=p),n.childItems&&n.childItems.length>0)for(let f of n.childItems)u(g,f,d.name);g.push(d)};let c=[];return a.forEach(g=>u(c,g)),c}},l=class{};b(l,"unknown","");b(l,"keyword","keyword");b(l,"script","script");b(l,"module","module");b(l,"class","class");b(l,"interface","interface");b(l,"type","type");b(l,"enum","enum");b(l,"variable","var");b(l,"localVariable","local var");b(l,"function","function");b(l,"localFunction","local function");b(l,"memberFunction","method");b(l,"memberGetAccessor","getter");b(l,"memberSetAccessor","setter");b(l,"memberVariable","property");b(l,"constructorImplementation","constructor");b(l,"callSignature","call");b(l,"indexSignature","index");b(l,"constructSignature","construct");b(l,"parameter","parameter");b(l,"typeParameter","type parameter");b(l,"primitiveType","primitive type");b(l,"label","label");b(l,"alias","alias");b(l,"const","const");b(l,"let","let");b(l,"warning","warning");var m=Object.create(null);m[l.module]=i.languages.SymbolKind.Module;m[l.class]=i.languages.SymbolKind.Class;m[l.enum]=i.languages.SymbolKind.Enum;m[l.interface]=i.languages.SymbolKind.Interface;m[l.memberFunction]=i.languages.SymbolKind.Method;m[l.memberVariable]=i.languages.SymbolKind.Property;m[l.memberGetAccessor]=i.languages.SymbolKind.Property;m[l.memberSetAccessor]=i.languages.SymbolKind.Property;m[l.variable]=i.languages.SymbolKind.Variable;m[l.const]=i.languages.SymbolKind.Variable;m[l.localVariable]=i.languages.SymbolKind.Variable;m[l.variable]=i.languages.SymbolKind.Variable;m[l.function]=i.languages.SymbolKind.Function;m[l.localFunction]=i.languages.SymbolKind.Function;var S=class extends w{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:` `,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},Y=class extends S{async provideDocumentRangeFormattingEdits(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getFormattingEditsForRange(a.toString(),u,c,S._convertOptions(r));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},Z=class extends S{get autoFormatTriggerCharacters(){return[";","}",` `]}async provideOnTypeFormattingEdits(e,t,r,s,a){const u=e.uri,c=e.getOffsetAt(t),g=await this._worker(u);if(e.isDisposed())return;const n=await g.getFormattingEditsAfterKeystroke(u.toString(),c,r,S._convertOptions(s));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},ee=class extends S{async provideCodeActions(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=S._convertOptions(e.getOptions()),n=r.markers.filter(h=>h.code).map(h=>h.code).map(Number),p=await this._worker(a);if(e.isDisposed())return;const d=await p.getCodeFixesAtPosition(a.toString(),u,c,n,g);return!d||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:d.filter(h=>h.changes.filter(y=>y.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,r,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,r){const s=[];for(const u of r.changes)for(const c of u.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,c.span),text:c.newText}});return{title:r.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},te=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,r,s){const a=e.uri,u=a.toString(),c=e.getOffsetAt(t),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getRenameInfo(u,c,{allowRenameOfImportPath:!1});if(n.canRename===!1)return{edits:[],rejectReason:n.localizedErrorMessage};if(n.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const p=await g.findRenameLocations(u,c,!1,!1,!1);if(!p||e.isDisposed())return;const d=[];for(const f of p){const h=this._libFiles.getOrCreateModel(f.fileName);if(h)d.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,f.textSpan),text:r}});else throw new Error(`Unknown file ${f.fileName}.`)}return{edits:d}}},re=class extends w{async provideInlayHints(e,t,r){const s=e.uri,a=s.toString(),u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(s);return e.isDisposed()?null:{hints:(await g.provideInlayHints(a,u,c)).map(d=>({...d,label:d.text,position:e.getPositionAt(d.position),kind:this._convertHintKind(d.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return i.languages.InlayHintKind.Parameter;case"Type":return i.languages.InlayHintKind.Type;default:return i.languages.InlayHintKind.Type}}},A,L;function ae(e){L=N(e,"typescript")}function oe(e){A=N(e,"javascript")}function le(){return new Promise((e,t)=>{if(!A)return t("JavaScript not registered!");e(A)})}function ce(){return new Promise((e,t)=>{if(!L)return t("TypeScript not registered!");e(L)})}function N(e,t){const r=new U(t,e),s=(...u)=>r.getLanguageServiceWorker(...u),a=new $(s);return i.languages.registerCompletionItemProvider(t,new D(s)),i.languages.registerSignatureHelpProvider(t,new I(s)),i.languages.registerHoverProvider(t,new G(s)),i.languages.registerDocumentHighlightProvider(t,new J(s)),i.languages.registerDefinitionProvider(t,new Q(a,s)),i.languages.registerReferenceProvider(t,new q(a,s)),i.languages.registerDocumentSymbolProvider(t,new X(s)),i.languages.registerDocumentRangeFormattingEditProvider(t,new Y(s)),i.languages.registerOnTypeFormattingEditProvider(t,new Z(s)),i.languages.registerCodeActionProvider(t,new ee(s)),i.languages.registerRenameProvider(t,new te(a,s)),i.languages.registerInlayHintsProvider(t,new re(s)),new z(a,e,t,s),s}export{w as Adapter,ee as CodeActionAdaptor,Q as DefinitionAdapter,z as DiagnosticsAdapter,Y as FormatAdapter,S as FormatHelper,Z as FormatOnTypeAdapter,re as InlayHintsAdapter,l as Kind,$ as LibFiles,J as OccurrencesAdapter,X as OutlineAdapter,G as QuickInfoAdapter,q as ReferenceAdapter,te as RenameAdapter,I as SignatureHelpAdapter,D as SuggestAdapter,U as WorkerManager,F as flattenDiagnosticMessageText,le as getJavaScriptWorker,ce as getTypeScriptWorker,oe as setupJavaScript,ae as setupTypeScript}; -//# sourceMappingURL=tsMode.30dc47d8.js.map +//# sourceMappingURL=tsMode.079c19d5.js.map diff --git a/abstra_statics/dist/assets/typescript.902b12cd.js b/abstra_statics/dist/assets/typescript.e19112ef.js similarity index 91% rename from abstra_statics/dist/assets/typescript.902b12cd.js rename to abstra_statics/dist/assets/typescript.e19112ef.js index 225535be3..de559e444 100644 --- a/abstra_statics/dist/assets/typescript.902b12cd.js +++ b/abstra_statics/dist/assets/typescript.e19112ef.js @@ -1,7 +1,7 @@ -import{m as a}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6f3addca-a166-4bba-934f-c7a6ef1f3105",t._sentryDebugIdIdentifier="sentry-dbid-6f3addca-a166-4bba-934f-c7a6ef1f3105")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as c}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cb5f4cbf-854b-4179-be75-30afda955bfc",t._sentryDebugIdIdentifier="sentry-dbid-cb5f4cbf-854b-4179-be75-30afda955bfc")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!d.call(t,r)&&r!==n&&c(t,r,{get:()=>e[r],enumerable:!(i=p(e,r))||i.enumerable});return t},l=(t,e,n)=>(s(t,e,"default"),n&&s(n,e,"default")),o={};l(o,a);var f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{f as conf,u as language}; -//# sourceMappingURL=typescript.902b12cd.js.map + *-----------------------------------------------------------------------------*/var a=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!d.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(i=p(e,r))||i.enumerable});return t},l=(t,e,n)=>(s(t,e,"default"),n&&s(n,e,"default")),o={};l(o,c);var f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{f as conf,u as language}; +//# sourceMappingURL=typescript.e19112ef.js.map diff --git a/abstra_statics/dist/assets/url.5959ae47.js b/abstra_statics/dist/assets/url.5959ae47.js new file mode 100644 index 000000000..60c5e1758 --- /dev/null +++ b/abstra_statics/dist/assets/url.5959ae47.js @@ -0,0 +1,2 @@ +import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e26ccc37-fd3a-41c1-97f2-b24eb57ac3e1",e._sentryDebugIdIdentifier="sentry-dbid-e26ccc37-fd3a-41c1-97f2-b24eb57ac3e1")}catch{}})();const d=e=>{try{return new URL(e),!0}catch{return!1}},o=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([c,s])=>{t.searchParams.delete(c),n.set(c,s)}),`${t.origin}${t.pathname}?${n.toString()}`};export{d as i,o as m}; +//# sourceMappingURL=url.5959ae47.js.map diff --git a/abstra_statics/dist/assets/url.c1b32560.js b/abstra_statics/dist/assets/url.c1b32560.js deleted file mode 100644 index 28ed1f563..000000000 --- a/abstra_statics/dist/assets/url.c1b32560.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e9865191-e695-44b8-bd05-0468b56f2a93",e._sentryDebugIdIdentifier="sentry-dbid-e9865191-e695-44b8-bd05-0468b56f2a93")}catch{}})();const d=e=>{try{return new URL(e),!0}catch{return!1}},o=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([s,a])=>{t.searchParams.delete(s),n.set(s,a)}),`${t.origin}${t.pathname}?${n.toString()}`};export{d as i,o as m}; -//# sourceMappingURL=url.c1b32560.js.map diff --git a/abstra_statics/dist/assets/utils.4c5a1d76.js b/abstra_statics/dist/assets/utils.4c5a1d76.js new file mode 100644 index 000000000..62054166c --- /dev/null +++ b/abstra_statics/dist/assets/utils.4c5a1d76.js @@ -0,0 +1,4 @@ +import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7f1609c7-0337-4e31-b81a-d29042e90937",e._sentryDebugIdIdentifier="sentry-dbid-7f1609c7-0337-4e31-b81a-d29042e90937")}catch{}})();const a=e=>{let n=e.columns.join(",")+` +`;e.rows.forEach(t=>{n+=t.join(","),n+=` +`});const o=document.createElement("a");o.href="data:text/csv;charset=utf-8,"+encodeURIComponent(n),o.target="_blank",o.download=`${e.fileName}.csv`,o.click()};export{a as d}; +//# sourceMappingURL=utils.4c5a1d76.js.map diff --git a/abstra_statics/dist/assets/utils.b9d20cd5.js b/abstra_statics/dist/assets/utils.b9d20cd5.js deleted file mode 100644 index acb9db903..000000000 --- a/abstra_statics/dist/assets/utils.b9d20cd5.js +++ /dev/null @@ -1,4 +0,0 @@ -import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2d1dca22-a7b9-4f02-a588-838a94cd4349",e._sentryDebugIdIdentifier="sentry-dbid-2d1dca22-a7b9-4f02-a588-838a94cd4349")}catch{}})();const a=e=>{let n=e.columns.join(",")+` -`;e.rows.forEach(o=>{n+=o.join(","),n+=` -`});const d=document.createElement("a");d.href="data:text/csv;charset=utf-8,"+encodeURIComponent(n),d.target="_blank",d.download=`${e.fileName}.csv`,d.click()};export{a as d}; -//# sourceMappingURL=utils.b9d20cd5.js.map diff --git a/abstra_statics/dist/assets/uuid.06ef1e24.js b/abstra_statics/dist/assets/uuid.06ef1e24.js new file mode 100644 index 000000000..b95cf08eb --- /dev/null +++ b/abstra_statics/dist/assets/uuid.06ef1e24.js @@ -0,0 +1,2 @@ +import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x=new Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="d0e12697-6fae-418f-a5ce-13d94dea8772",e._sentryDebugIdIdentifier="sentry-dbid-d0e12697-6fae-418f-a5ce-13d94dea8772")}catch{}})();const t=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const x=Math.random()*16|0;return(e=="x"?x:x&3|8).toString(16)});export{t as u}; +//# sourceMappingURL=uuid.06ef1e24.js.map diff --git a/abstra_statics/dist/assets/uuid.27635aee.js b/abstra_statics/dist/assets/uuid.27635aee.js deleted file mode 100644 index af6c6c7f8..000000000 --- a/abstra_statics/dist/assets/uuid.27635aee.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./vue-router.4c13f3d4.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[e]="776b6a5d-19d5-4071-a0eb-3b719ec2fc57",x._sentryDebugIdIdentifier="sentry-dbid-776b6a5d-19d5-4071-a0eb-3b719ec2fc57")}catch{}})();const d=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const e=Math.random()*16|0;return(x=="x"?e:e&3|8).toString(16)});export{d as u}; -//# sourceMappingURL=uuid.27635aee.js.map diff --git a/abstra_statics/dist/assets/validations.f7853e39.js b/abstra_statics/dist/assets/validations.0afef3f1.js similarity index 72% rename from abstra_statics/dist/assets/validations.f7853e39.js rename to abstra_statics/dist/assets/validations.0afef3f1.js index c938ffc4d..3a8f72890 100644 --- a/abstra_statics/dist/assets/validations.f7853e39.js +++ b/abstra_statics/dist/assets/validations.0afef3f1.js @@ -1,2 +1,2 @@ -import{n as t,a as s}from"./string.eaeb96c3.js";import"./vue-router.4c13f3d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7aaf5b6a-c8fa-4c61-afd0-be2efe8fbd17",e._sentryDebugIdIdentifier="sentry-dbid-7aaf5b6a-c8fa-4c61-afd0-be2efe8fbd17")}catch{}})();const o=["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];function l(e){return e.replace(/\.py$/,"").trim().length===0?{valid:!1,reason:"File name cannot be empty"}:e.length>255?{valid:!1,reason:"File name cannot be longer than 255 characters"}:e.endsWith(".py")?{valid:!0}:{valid:!1,reason:"File name must end with .py"}}function m(e){if(!l(e).valid)throw new Error("Invalid filename");const a=e.slice(0,-3);return t(a,!0,!0,!0,!0)+".py"}function b(e){return t(e,!0,!0,!0,!0)+".py"}function d(e){return e.trim().length===0?{valid:!1,reason:"Variable name cannot be empty"}:/^[a-zA-Z_]/.test(e)?o.includes(e)?{valid:!1,reason:"Variable name cannot be a Python keyword"}:{valid:!0}:{valid:!1,reason:"Variable name must start with a letter or underscore"}}function p(e){const a=d(e);if(!a.valid)throw new Error(a.reason);return e.split(".").map(i=>t(i,!1,!0,!1)).join(".")}function f(e){return e.trim().length===0?{valid:!1,reason:"Path cannot be empty"}:{valid:!0}}function y(e){if(!f(e).valid)throw new Error("Invalid path");return e.split("/").filter(Boolean).map(r=>s(r)).join("/")}export{d as a,b,f as c,y as d,m as e,p as n,l as v}; -//# sourceMappingURL=validations.f7853e39.js.map +import{n as t,a as s}from"./string.e75a34fd.js";import"./vue-router.3fd92176.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="638db92c-5970-489e-ae94-ef80cc3a694a",e._sentryDebugIdIdentifier="sentry-dbid-638db92c-5970-489e-ae94-ef80cc3a694a")}catch{}})();const o=["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];function l(e){return e.replace(/\.py$/,"").trim().length===0?{valid:!1,reason:"File name cannot be empty"}:e.length>255?{valid:!1,reason:"File name cannot be longer than 255 characters"}:e.endsWith(".py")?{valid:!0}:{valid:!1,reason:"File name must end with .py"}}function m(e){if(!l(e).valid)throw new Error("Invalid filename");const a=e.slice(0,-3);return t(a,!0,!0,!0,!0)+".py"}function b(e){return t(e,!0,!0,!0,!0)+".py"}function d(e){return e.trim().length===0?{valid:!1,reason:"Variable name cannot be empty"}:/^[a-zA-Z_]/.test(e)?o.includes(e)?{valid:!1,reason:"Variable name cannot be a Python keyword"}:{valid:!0}:{valid:!1,reason:"Variable name must start with a letter or underscore"}}function p(e){const a=d(e);if(!a.valid)throw new Error(a.reason);return e.split(".").map(i=>t(i,!1,!0,!1)).join(".")}function u(e){return e.trim().length===0?{valid:!1,reason:"Path cannot be empty"}:{valid:!0}}function y(e){if(!u(e).valid)throw new Error("Invalid path");return e.split("/").filter(Boolean).map(r=>s(r)).join("/")}export{d as a,b,u as c,y as d,m as e,p as n,l as v}; +//# sourceMappingURL=validations.0afef3f1.js.map diff --git a/abstra_statics/dist/assets/vue-quill.esm-bundler.7a334f9f.js b/abstra_statics/dist/assets/vue-quill.esm-bundler.f1f436e4.js similarity index 99% rename from abstra_statics/dist/assets/vue-quill.esm-bundler.7a334f9f.js rename to abstra_statics/dist/assets/vue-quill.esm-bundler.f1f436e4.js index 66c457a7e..897b0a9c9 100644 --- a/abstra_statics/dist/assets/vue-quill.esm-bundler.7a334f9f.js +++ b/abstra_statics/dist/assets/vue-quill.esm-bundler.f1f436e4.js @@ -1,4 +1,4 @@ -import{eI as tr,eH as Tt,d as er,W as nr,aq as rr,e as Fn,g as Ln,p as ir,J as Un}from"./vue-router.4c13f3d4.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new Error().stack;U&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[U]="476290ca-8162-4348-981b-48b996318c4c",R._sentryDebugIdIdentifier="sentry-dbid-476290ca-8162-4348-981b-48b996318c4c")}catch{}})();var Gn={exports:{}};/*! +import{eI as tr,eH as Tt,d as er,W as nr,aq as rr,e as Fn,g as Ln,p as ir,J as Un}from"./vue-router.3fd92176.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new Error().stack;U&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[U]="4a7931de-71e8-4031-8722-f9e2b4faefc8",R._sentryDebugIdIdentifier="sentry-dbid-4a7931de-71e8-4031-8722-f9e2b4faefc8")}catch{}})();var Gn={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen @@ -52,4 +52,4 @@ import{eI as tr,eH as Tt,d as er,W as nr,aq as rr,e as Fn,g as Ln,p as ir,J as U */const $n={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},_r=er({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:R=>["delta","html","text"].includes(R)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:R=>["snow","bubble",""].includes(R)},toolbar:{type:[String,Array,Object],required:!1,validator:R=>typeof R=="string"&&R!==""?R.charAt(0)==="#"?!0:Object.keys($n).indexOf(R)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(R,U)=>{nr(()=>{E()}),rr(()=>{m=null});let m,p;const c=Fn(),E=()=>{var v;if(!!c.value){if(p=b(),R.modules)if(Array.isArray(R.modules))for(const O of R.modules)qn.register(`modules/${O.name}`,O.module);else qn.register(`modules/${R.modules.name}`,R.modules.module);m=new qn(c.value,p),f(R.content),m.on("text-change",o),m.on("selection-change",e),m.on("editor-change",s),R.theme!=="bubble"&&c.value.classList.remove("ql-bubble"),R.theme!=="snow"&&c.value.classList.remove("ql-snow"),(v=m.getModule("toolbar"))===null||v===void 0||v.container.addEventListener("mousedown",O=>{O.preventDefault()}),U.emit("ready",m)}},b=()=>{const v={};if(R.theme!==""&&(v.theme=R.theme),R.readOnly&&(v.readOnly=R.readOnly),R.placeholder&&(v.placeholder=R.placeholder),R.toolbar&&R.toolbar!==""&&(v.modules={toolbar:(()=>{if(typeof R.toolbar=="object")return R.toolbar;if(typeof R.toolbar=="string")return R.toolbar.charAt(0)==="#"?R.toolbar:$n[R.toolbar]})()}),R.modules){const O=(()=>{var k,L;const D={};if(Array.isArray(R.modules))for(const z of R.modules)D[z.name]=(k=z.options)!==null&&k!==void 0?k:{};else D[R.modules.name]=(L=R.modules.options)!==null&&L!==void 0?L:{};return D})();v.modules=Object.assign({},v.modules,O)}return Object.assign({},R.globalOptions,R.options,v)},_=v=>typeof v=="object"&&v?v.slice():v,y=v=>Object.values(v.ops).some(O=>!O.retain||Object.keys(O).length!==1);let g;const h=v=>{if(typeof g==typeof v){if(v===g)return!0;if(typeof v=="object"&&v&&typeof g=="object"&&g)return!y(g.diff(v))}return!1},o=(v,O,k)=>{g=_(i()),h(R.content)||U.emit("update:content",g),U.emit("textChange",{delta:v,oldContents:O,source:k})},t=Fn(),e=(v,O,k)=>{t.value=!!(m!=null&&m.hasFocus()),U.emit("selectionChange",{range:v,oldRange:O,source:k})};Ln(t,v=>{v?U.emit("focus",c):U.emit("blur",c)});const s=(...v)=>{v[0]==="text-change"&&U.emit("editorChange",{name:v[0],delta:v[1],oldContents:v[2],source:v[3]}),v[0]==="selection-change"&&U.emit("editorChange",{name:v[0],range:v[1],oldRange:v[2],source:v[3]})},l=()=>c.value,u=()=>{var v;return(v=m==null?void 0:m.getModule("toolbar"))===null||v===void 0?void 0:v.container},r=()=>{if(m)return m;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},i=(v,O)=>R.contentType==="html"?N():R.contentType==="text"?n(v,O):m==null?void 0:m.getContents(v,O),f=(v,O="api")=>{const k=v||(R.contentType==="delta"?new mr:"");R.contentType==="html"?w(k):R.contentType==="text"?d(k,O):m==null||m.setContents(k,O),g=_(k)},n=(v,O)=>{var k;return(k=m==null?void 0:m.getText(v,O))!==null&&k!==void 0?k:""},d=(v,O="api")=>{m==null||m.setText(v,O)},N=()=>{var v;return(v=m==null?void 0:m.root.innerHTML)!==null&&v!==void 0?v:""},w=v=>{m&&(m.root.innerHTML=v)},T=(v,O="api")=>{const k=m==null?void 0:m.clipboard.convert(v);k&&(m==null||m.setContents(k,O))},P=()=>{m==null||m.focus()},A=()=>{Un(()=>{var v;!U.slots.toolbar&&m&&((v=m.getModule("toolbar"))===null||v===void 0||v.container.remove()),E()})};return Ln(()=>R.content,v=>{if(!m||!v||h(v))return;const O=m.getSelection();O&&Un(()=>m==null?void 0:m.setSelection(O)),f(v)},{deep:!0}),Ln(()=>R.enable,v=>{m&&m.enable(v)}),{editor:c,getEditor:l,getToolbar:u,getQuill:r,getContents:i,setContents:f,getHTML:N,setHTML:w,pasteHTML:T,focus:P,getText:n,setText:d,reinit:A}},render(){var R,U;return[(U=(R=this.$slots).toolbar)===null||U===void 0?void 0:U.call(R),ir("div",{ref:"editor",...this.$attrs})]}});export{mr as Delta,qn as Quill,_r as QuillEditor}; -//# sourceMappingURL=vue-quill.esm-bundler.7a334f9f.js.map +//# sourceMappingURL=vue-quill.esm-bundler.f1f436e4.js.map diff --git a/abstra_statics/dist/assets/vue-router.4c13f3d4.js b/abstra_statics/dist/assets/vue-router.3fd92176.js similarity index 99% rename from abstra_statics/dist/assets/vue-router.4c13f3d4.js rename to abstra_statics/dist/assets/vue-router.3fd92176.js index eb565727a..1503ac09b 100644 --- a/abstra_statics/dist/assets/vue-router.4c13f3d4.js +++ b/abstra_statics/dist/assets/vue-router.3fd92176.js @@ -1,4 +1,4 @@ -var Gq=Object.defineProperty;var Yq=(e,t,n)=>t in e?Gq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yn=(e,t,n)=>(Yq(e,typeof t!="symbol"?t+"":t,n),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="42961169-de68-4f35-8e7e-cbc526642e18",e._sentryDebugIdIdentifier="sentry-dbid-42961169-de68-4f35-8e7e-cbc526642e18")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();const T4=Object.prototype.toString;function w4(e){switch(T4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Cu(e,Error)}}function Zp(e,t){return T4.call(e)===`[object ${t}]`}function gw(e){return Zp(e,"ErrorEvent")}function PN(e){return Zp(e,"DOMError")}function jq(e){return Zp(e,"DOMException")}function Eu(e){return Zp(e,"String")}function x4(e){return e===null||typeof e!="object"&&typeof e!="function"}function cp(e){return Zp(e,"Object")}function Kv(e){return typeof Event<"u"&&Cu(e,Event)}function Wq(e){return typeof Element<"u"&&Cu(e,Element)}function qq(e){return Zp(e,"RegExp")}function hw(e){return Boolean(e&&e.then&&typeof e.then=="function")}function Kq(e){return cp(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Zq(e){return typeof e=="number"&&e!==e}function Cu(e,t){try{return e instanceof t}catch{return!1}}function Fd(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function MN(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rQq(e,r,n))}function Xq(e,t,n=250,r,i,a,l){if(!a.exception||!a.exception.values||!l||!Cu(l.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=Jq(E1(e,t,i,l.originalException,r,a.exception.values,s,0),n))}function E1(e,t,n,r,i,a,l,s){if(a.length>=n+1)return a;let u=[...a];if(Cu(r[i],Error)){kN(l,s);const o=e(t,r[i]),c=u.length;$N(o,i,c,s),u=E1(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((o,c)=>{if(Cu(o,Error)){kN(l,s);const d=e(t,o),p=u.length;$N(d,`errors[${c}]`,p,s),u=E1(e,t,n,o,i,[d,...u],d,p)}}),u}function kN(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function $N(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Jq(e,t){return e.map(n=>(n.value&&(n.value=Fd(n.value,t)),n))}function Kh(e){return e&&e.Math==Math?e:void 0}const oo=typeof globalThis=="object"&&Kh(globalThis)||typeof window=="object"&&Kh(window)||typeof self=="object"&&Kh(self)||typeof global=="object"&&Kh(global)||function(){return this}()||{};function xg(){return oo}function _w(e,t,n){const r=n||oo,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const eK=xg(),tK=80;function C1(e,t={}){try{let n=e;const r=5,i=[];let a=0,l=0;const s=" > ",u=s.length;let o;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||tK;for(;n&&a++1&&l+i.length*u+o.length>=d));)i.push(o),l+=o.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function nK(e,t){const n=e,r=[];let i,a,l,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(o&&o.length)o.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Eu(i))for(a=i.split(/\s+/),u=0;u{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function LN(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?z0.forEach(n=>{t[n]=(...r)=>{e&&O4(()=>{oo.console[n](`${iK}[${n}]:`,...r)})}}):z0.forEach(n=>{t[n]=()=>{}}),t}let on;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?on=_w("logger",LN):on=LN();const aK=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oK(e){return e==="http"||e==="https"}function Qv(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:l,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${l}`}function sK(e){const t=aK.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}const[n,r,i="",a,l="",s]=t.slice(1);let u="",o=s;const c=o.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),o=c.pop()),o){const d=o.match(/^\d+/);d&&(o=d[0])}return R4({host:a,pass:i,path:u,projectId:o,port:l,protocol:n,publicKey:r})}function R4(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function lK(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(l=>e[l]?!1:(on.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:n.match(/^\d+$/)?oK(r)?t&&isNaN(parseInt(t,10))?(on.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(on.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(on.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function cK(e){const t=typeof e=="string"?sK(e):R4(e);if(!(!t||!lK(t)))return t}class Oo extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function bi(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{I4(i,r)}catch{}e[t]=i}function vw(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function I4(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,vw(e,"__sentry_original__",t)}function bw(e){return e.__sentry_original__}function uK(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function A4(e){if(w4(e))return{message:e.message,name:e.name,stack:e.stack,...BN(e)};if(Kv(e)){const t={type:e.type,target:FN(e.target),currentTarget:FN(e.currentTarget),...BN(e)};return typeof CustomEvent<"u"&&Cu(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function FN(e){try{return Wq(e)?C1(e):Object.prototype.toString.call(e)}catch{return""}}function BN(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function dK(e,t=40){const n=Object.keys(A4(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Fd(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Fd(i,t)}return""}function Xv(e){return T1(e,new Map)}function T1(e,t){if(cp(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=T1(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(T1(i,t))}),r}return e}const N4=50,UN=/\(error: (.*)\)/;function D4(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` +var Gq=Object.defineProperty;var Yq=(e,t,n)=>t in e?Gq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yn=(e,t,n)=>(Yq(e,typeof t!="symbol"?t+"":t,n),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cc9f77bc-e899-4e26-a1d4-c954312e9cbc",e._sentryDebugIdIdentifier="sentry-dbid-cc9f77bc-e899-4e26-a1d4-c954312e9cbc")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();const T4=Object.prototype.toString;function w4(e){switch(T4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Cu(e,Error)}}function Zp(e,t){return T4.call(e)===`[object ${t}]`}function gw(e){return Zp(e,"ErrorEvent")}function PN(e){return Zp(e,"DOMError")}function jq(e){return Zp(e,"DOMException")}function Eu(e){return Zp(e,"String")}function x4(e){return e===null||typeof e!="object"&&typeof e!="function"}function cp(e){return Zp(e,"Object")}function Kv(e){return typeof Event<"u"&&Cu(e,Event)}function Wq(e){return typeof Element<"u"&&Cu(e,Element)}function qq(e){return Zp(e,"RegExp")}function hw(e){return Boolean(e&&e.then&&typeof e.then=="function")}function Kq(e){return cp(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Zq(e){return typeof e=="number"&&e!==e}function Cu(e,t){try{return e instanceof t}catch{return!1}}function Fd(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function MN(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rQq(e,r,n))}function Xq(e,t,n=250,r,i,a,l){if(!a.exception||!a.exception.values||!l||!Cu(l.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=Jq(E1(e,t,i,l.originalException,r,a.exception.values,s,0),n))}function E1(e,t,n,r,i,a,l,s){if(a.length>=n+1)return a;let u=[...a];if(Cu(r[i],Error)){kN(l,s);const o=e(t,r[i]),c=u.length;$N(o,i,c,s),u=E1(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((o,c)=>{if(Cu(o,Error)){kN(l,s);const d=e(t,o),p=u.length;$N(d,`errors[${c}]`,p,s),u=E1(e,t,n,o,i,[d,...u],d,p)}}),u}function kN(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function $N(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Jq(e,t){return e.map(n=>(n.value&&(n.value=Fd(n.value,t)),n))}function Kh(e){return e&&e.Math==Math?e:void 0}const oo=typeof globalThis=="object"&&Kh(globalThis)||typeof window=="object"&&Kh(window)||typeof self=="object"&&Kh(self)||typeof global=="object"&&Kh(global)||function(){return this}()||{};function xg(){return oo}function _w(e,t,n){const r=n||oo,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const eK=xg(),tK=80;function C1(e,t={}){try{let n=e;const r=5,i=[];let a=0,l=0;const s=" > ",u=s.length;let o;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||tK;for(;n&&a++1&&l+i.length*u+o.length>=d));)i.push(o),l+=o.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function nK(e,t){const n=e,r=[];let i,a,l,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(o&&o.length)o.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Eu(i))for(a=i.split(/\s+/),u=0;u{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function LN(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?z0.forEach(n=>{t[n]=(...r)=>{e&&O4(()=>{oo.console[n](`${iK}[${n}]:`,...r)})}}):z0.forEach(n=>{t[n]=()=>{}}),t}let on;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?on=_w("logger",LN):on=LN();const aK=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oK(e){return e==="http"||e==="https"}function Qv(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:l,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${l}`}function sK(e){const t=aK.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}const[n,r,i="",a,l="",s]=t.slice(1);let u="",o=s;const c=o.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),o=c.pop()),o){const d=o.match(/^\d+/);d&&(o=d[0])}return R4({host:a,pass:i,path:u,projectId:o,port:l,protocol:n,publicKey:r})}function R4(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function lK(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(l=>e[l]?!1:(on.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:n.match(/^\d+$/)?oK(r)?t&&isNaN(parseInt(t,10))?(on.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(on.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(on.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function cK(e){const t=typeof e=="string"?sK(e):R4(e);if(!(!t||!lK(t)))return t}class Oo extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function bi(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{I4(i,r)}catch{}e[t]=i}function vw(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function I4(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,vw(e,"__sentry_original__",t)}function bw(e){return e.__sentry_original__}function uK(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function A4(e){if(w4(e))return{message:e.message,name:e.name,stack:e.stack,...BN(e)};if(Kv(e)){const t={type:e.type,target:FN(e.target),currentTarget:FN(e.currentTarget),...BN(e)};return typeof CustomEvent<"u"&&Cu(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function FN(e){try{return Wq(e)?C1(e):Object.prototype.toString.call(e)}catch{return""}}function BN(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function dK(e,t=40){const n=Object.keys(A4(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Fd(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Fd(i,t)}return""}function Xv(e){return T1(e,new Map)}function T1(e,t){if(cp(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=T1(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(T1(i,t))}),r}return e}const N4=50,UN=/\(error: (.*)\)/;function D4(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` `);for(let l=r;l1024)continue;const u=UN.test(s)?s.replace(UN,"$1"):s;if(!u.match(/\S*Error: /)){for(const o of t){const c=o(u);if(c){i.push(c);break}}if(i.length>=N4)break}}return fK(i)}}function pK(e){return Array.isArray(e)?D4(...e):e}function fK(e){if(!e.length)return[];const t=e.slice(0,N4),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const zS="";function mc(e){try{return!e||typeof e!="function"?zS:e.name||zS}catch{return zS}}const w1=xg();function P4(){if(!("fetch"in w1))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function x1(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function mK(){if(!P4())return!1;if(x1(w1.fetch))return!0;let e=!1;const t=w1.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=x1(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&on.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const Zh=xg();function gK(){const e=Zh.chrome,t=e&&e.app&&e.app.runtime,n="history"in Zh&&!!Zh.history.pushState&&!!Zh.history.replaceState;return!t&&n}const Sr=xg(),Vf="__sentry_xhr_v2__",em={},HN={};function hK(e){if(!HN[e])switch(HN[e]=!0,e){case"console":_K();break;case"dom":wK();break;case"xhr":yK();break;case"fetch":vK();break;case"history":SK();break;case"error":xK();break;case"unhandledrejection":OK();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&on.warn("unknown instrumentation type:",e);return}}function Zl(e,t){em[e]=em[e]||[],em[e].push(t),hK(e)}function Po(e,t){if(!(!e||!em[e]))for(const n of em[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&on.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${mc(n)} @@ -49,7 +49,7 @@ found in ${t.map((i,a)=>`${(a===0?"---> ":oie(" ",5+a*2))+(Array.isArray(i)?`${lm(i[0])}... (${i[1]} recursive calls)`:lm(i))}`).join(` `)}`}return` -(found in ${lm(e)})`},lie=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(a,l,s)=>{const u=lm(l,!1),o=l?sie(l):"",c={componentName:u,lifecycleHook:s,trace:o};if(t.attachProps&&l&&(l.$options&&l.$options.propsData?c.propsData=l.$options.propsData:l.$props&&(c.propsData=l.$props)),setTimeout(()=>{ri().withScope(d=>{d.setContext("vue",c),ri().captureException(a)})}),typeof n=="function"&&n.call(e,a,l,s),t.logErrors){const d=typeof console<"u",p=`Error in ${s}: "${a&&a.toString()}"`;r?r.call(null,p,l,o):d&&!i&&console.error(`[Vue warn]: ${p}${o}`)}}},iD="ui.vue",cie={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function gC(){return ri().getScope().getTransaction()}function uie(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const die=e=>{const t=(e.hooks||[]).concat(b8).filter((r,i,a)=>a.indexOf(r)===i),n={};for(const r of t){const i=cie[r];if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&yp.warn(`Unknown hook: ${r}`);continue}for(const a of i)n[a]=function(){const l=this.$root===this;if(l){const o=gC();o&&(this.$_sentryRootSpan=this.$_sentryRootSpan||o.startChild({description:"Application Render",op:`${iD}.render`}))}const s=lm(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;if(!(!l&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},a==i[0]){const o=this.$root&&this.$root.$_sentryRootSpan||gC();if(o){const c=this.$_sentrySpans[r];c&&!c.endTimestamp&&c.finish(),this.$_sentrySpans[r]=o.startChild({description:`Vue <${s}>`,op:`${iD}.${r}`})}}else{const o=this.$_sentrySpans[r];if(!o)return;o.finish(),uie(this,Kw(),e.timeout)}}}return n},pie=Lo,fie={Vue:pie.Vue,attachProps:!0,logErrors:!0,hooks:b8,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:G0}],version:G0}}};function mie(e={}){const t={...fie,...e};if(zQ(t),!t.Vue&&!t.app){console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).");return}t.app?f8(t.app).forEach(r=>aD(r,t)):t.Vue&&aD(t.Vue,t)}const aD=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`."),lie(e,t),nie(t)&&e.mixin(die({...t,...t.tracingOptions}))};function gie(e,t={}){return(n,r=!0,i=!0)=>{const a={"routing.instrumentation":"vue-router"};r&&Gn&&Gn.location&&n({name:Gn.location.pathname,op:"pageload",tags:a,metadata:{source:"url"}}),e.onError(l=>Y4(l)),e.beforeEach((l,s,u)=>{const o=s.name==null&&s.matched.length===0,c={params:l.params,query:l.query};let d=l.path,p="url";if(l.name&&t.routeLabel!=="path"?(d=l.name.toString(),p="custom"):l.matched[0]&&l.matched[0].path&&(d=l.matched[0].path,p="route"),r&&o){const f=gC();f&&(f.metadata.source!=="custom"&&f.setName(d,p),f.setData("params",c.params),f.setData("query",c.query))}i&&!o&&n({name:d,op:"navigation",tags:a,data:c,metadata:{source:p}}),u&&u()})}}var hie=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};hie.SENTRY_RELEASE={id:"748e6ebb6293b3e54ab2ab1474d587e29fdb47e1"};const cWe=(e,t)=>{mie({app:e,dsn:"https://92a7a6b6bf4d455dab113338d8518956@o1317386.ingest.sentry.io/6570769",replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new nv({routingInstrumentation:gie(t)}),new Um],enabled:!0,tracesSampleRate:1,release:"748e6ebb6293b3e54ab2ab1474d587e29fdb47e1"})};class uWe{constructor(t,n,r=localStorage){yn(this,"key");this.validator=t,this.sufix=n,this.storage=r,this.key=`abstra:${this.sufix}`}get(){const t=this.storage.getItem(this.key);if(t==null)return null;try{return this.validator.parse(JSON.parse(t))}catch{return null}}set(t){try{this.validator.parse(t),this.storage.setItem(this.key,JSON.stringify(t))}catch{}}remove(){this.storage.removeItem(this.key)}pop(){const t=this.get();return this.remove(),t}}function hC(e){this.message=e}hC.prototype=new Error,hC.prototype.name="InvalidCharacterError";var oD=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new hC("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,l="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?l+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return l};function _ie(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(oD(n).replace(/(.)/g,function(r,i){var a=i.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}(t)}catch{return oD(t)}}function rv(e){this.message=e}function dWe(e,t){if(typeof e!="string")throw new rv("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(_ie(e.split(".")[n]))}catch(r){throw new rv("Invalid token specified: "+r.message)}}rv.prototype=new Error,rv.prototype.name="InvalidTokenError";function _b(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const nr={},Wd=[],Fo=()=>{},vie=()=>!1,bie=/^on[^a-z]/,Pg=e=>bie.test(e),Zw=e=>e.startsWith("onUpdate:"),cr=Object.assign,Qw=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yie=Object.prototype.hasOwnProperty,Pn=(e,t)=>yie.call(e,t),vt=Array.isArray,qd=e=>Qp(e)==="[object Map]",Bu=e=>Qp(e)==="[object Set]",sD=e=>Qp(e)==="[object Date]",Sie=e=>Qp(e)==="[object RegExp]",Gt=e=>typeof e=="function",Tr=e=>typeof e=="string",zm=e=>typeof e=="symbol",rr=e=>e!==null&&typeof e=="object",Xw=e=>rr(e)&&Gt(e.then)&&Gt(e.catch),y8=Object.prototype.toString,Qp=e=>y8.call(e),Eie=e=>Qp(e).slice(8,-1),S8=e=>Qp(e)==="[object Object]",Jw=e=>Tr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cm=_b(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Cie=/-(\w)/g,aa=vb(e=>e.replace(Cie,(t,n)=>n?n.toUpperCase():"")),Tie=/\B([A-Z])/g,io=vb(e=>e.replace(Tie,"-$1").toLowerCase()),Mg=vb(e=>e.charAt(0).toUpperCase()+e.slice(1)),um=vb(e=>e?`on${Mg(e)}`:""),Sp=(e,t)=>!Object.is(e,t),Kd=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},av=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ov=e=>{const t=Tr(e)?Number(e):NaN;return isNaN(t)?e:t};let lD;const _C=()=>lD||(lD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),wie="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",xie=_b(wie);function Ni(e){if(vt(e)){const t={};for(let n=0;n{if(n){const r=n.split(Rie);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Vt(e){let t="";if(Tr(e))t=e;else if(vt(e))for(let n=0;ngc(n,t))}const Qt=e=>Tr(e)?e:e==null?"":vt(e)||rr(e)&&(e.toString===y8||!Gt(e.toString))?JSON.stringify(e,C8,2):String(e),C8=(e,t)=>t&&t.__v_isRef?C8(e,t.value):qd(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Bu(t)?{[`Set(${t.size})`]:[...t.values()]}:rr(t)&&!vt(t)&&!S8(t)?String(t):t;let Ea;class ex{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ea,!t&&Ea&&(this.index=(Ea.scopes||(Ea.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ea;try{return Ea=this,t()}finally{Ea=n}}}on(){Ea=this}off(){Ea=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},x8=e=>(e.w&hc)>0,O8=e=>(e.n&hc)>0,kie=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||c>=u)&&s.push(o)})}else switch(n!==void 0&&s.push(l.get(n)),t){case"add":vt(e)?Jw(n)&&s.push(l.get("length")):(s.push(l.get(fu)),qd(e)&&s.push(l.get(bC)));break;case"delete":vt(e)||(s.push(l.get(fu)),qd(e)&&s.push(l.get(bC)));break;case"set":qd(e)&&s.push(l.get(fu));break}if(s.length===1)s[0]&&yC(s[0]);else{const u=[];for(const o of s)o&&u.push(...o);yC(nx(u))}}function yC(e,t){const n=vt(e)?e:[...e];for(const r of n)r.computed&&uD(r);for(const r of n)r.computed||uD(r)}function uD(e,t){(e!==Ro||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Bie(e,t){var n;return(n=sv.get(e))==null?void 0:n.get(t)}const Uie=_b("__proto__,__v_isRef,__isVue"),A8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zm)),Hie=yb(),zie=yb(!1,!0),Vie=yb(!0),Gie=yb(!0,!0),dD=Yie();function Yie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ut(this);for(let a=0,l=this.length;a{e[t]=function(...n){Xp();const r=Ut(this)[t].apply(this,n);return Jp(),r}}),e}function jie(e){const t=Ut(this);return oa(t,"has",e),t.hasOwnProperty(e)}function yb(e=!1,t=!1){return function(r,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?L8:$8:t?k8:M8).get(r))return r;const l=vt(r);if(!e){if(l&&Pn(dD,i))return Reflect.get(dD,i,a);if(i==="hasOwnProperty")return jie}const s=Reflect.get(r,i,a);return(zm(i)?A8.has(i):Uie(i))||(e||oa(r,"get",i),t)?s:zr(s)?l&&Jw(i)?s:s.value:rr(s)?e?ix(s):un(s):s}}const Wie=N8(),qie=N8(!0);function N8(e=!1){return function(n,r,i,a){let l=n[r];if(Ou(l)&&zr(l)&&!zr(i))return!1;if(!e&&(!Vm(i)&&!Ou(i)&&(l=Ut(l),i=Ut(i)),!vt(n)&&zr(l)&&!zr(i)))return l.value=i,!0;const s=vt(n)&&Jw(r)?Number(r)e,Sb=e=>Reflect.getPrototypeOf(e);function w_(e,t,n=!1,r=!1){e=e.__v_raw;const i=Ut(e),a=Ut(t);n||(t!==a&&oa(i,"get",t),oa(i,"get",a));const{has:l}=Sb(i),s=r?rx:n?sx:Gm;if(l.call(i,t))return s(e.get(t));if(l.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function x_(e,t=!1){const n=this.__v_raw,r=Ut(n),i=Ut(e);return t||(e!==i&&oa(r,"has",e),oa(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function O_(e,t=!1){return e=e.__v_raw,!t&&oa(Ut(e),"iterate",fu),Reflect.get(e,"size",e)}function pD(e){e=Ut(e);const t=Ut(this);return Sb(t).has.call(t,e)||(t.add(e),ul(t,"add",e,e)),this}function fD(e,t){t=Ut(t);const n=Ut(this),{has:r,get:i}=Sb(n);let a=r.call(n,e);a||(e=Ut(e),a=r.call(n,e));const l=i.call(n,e);return n.set(e,t),a?Sp(t,l)&&ul(n,"set",e,t):ul(n,"add",e,t),this}function mD(e){const t=Ut(this),{has:n,get:r}=Sb(t);let i=n.call(t,e);i||(e=Ut(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&ul(t,"delete",e,void 0),a}function gD(){const e=Ut(this),t=e.size!==0,n=e.clear();return t&&ul(e,"clear",void 0,void 0),n}function R_(e,t){return function(r,i){const a=this,l=a.__v_raw,s=Ut(l),u=t?rx:e?sx:Gm;return!e&&oa(s,"iterate",fu),l.forEach((o,c)=>r.call(i,u(o),u(c),a))}}function I_(e,t,n){return function(...r){const i=this.__v_raw,a=Ut(i),l=qd(a),s=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,o=i[e](...r),c=n?rx:t?sx:Gm;return!t&&oa(a,"iterate",u?bC:fu),{next(){const{value:d,done:p}=o.next();return p?{value:d,done:p}:{value:s?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function Ll(e){return function(...t){return e==="delete"?!1:this}}function eae(){const e={get(a){return w_(this,a)},get size(){return O_(this)},has:x_,add:pD,set:fD,delete:mD,clear:gD,forEach:R_(!1,!1)},t={get(a){return w_(this,a,!1,!0)},get size(){return O_(this)},has:x_,add:pD,set:fD,delete:mD,clear:gD,forEach:R_(!1,!0)},n={get(a){return w_(this,a,!0)},get size(){return O_(this,!0)},has(a){return x_.call(this,a,!0)},add:Ll("add"),set:Ll("set"),delete:Ll("delete"),clear:Ll("clear"),forEach:R_(!0,!1)},r={get(a){return w_(this,a,!0,!0)},get size(){return O_(this,!0)},has(a){return x_.call(this,a,!0)},add:Ll("add"),set:Ll("set"),delete:Ll("delete"),clear:Ll("clear"),forEach:R_(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=I_(a,!1,!1),n[a]=I_(a,!0,!1),t[a]=I_(a,!1,!0),r[a]=I_(a,!0,!0)}),[e,n,t,r]}const[tae,nae,rae,iae]=eae();function Eb(e,t){const n=t?e?iae:rae:e?nae:tae;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Pn(n,i)&&i in r?n:r,i,a)}const aae={get:Eb(!1,!1)},oae={get:Eb(!1,!0)},sae={get:Eb(!0,!1)},lae={get:Eb(!0,!0)},M8=new WeakMap,k8=new WeakMap,$8=new WeakMap,L8=new WeakMap;function cae(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uae(e){return e.__v_skip||!Object.isExtensible(e)?0:cae(Eie(e))}function un(e){return Ou(e)?e:Cb(e,!1,D8,aae,M8)}function F8(e){return Cb(e,!1,Xie,oae,k8)}function ix(e){return Cb(e,!0,P8,sae,$8)}function dae(e){return Cb(e,!0,Jie,lae,L8)}function Cb(e,t,n,r,i){if(!rr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const l=uae(e);if(l===0)return e;const s=new Proxy(e,l===2?r:n);return i.set(e,s),s}function mu(e){return Ou(e)?mu(e.__v_raw):!!(e&&e.__v_isReactive)}function Ou(e){return!!(e&&e.__v_isReadonly)}function Vm(e){return!!(e&&e.__v_isShallow)}function ax(e){return mu(e)||Ou(e)}function Ut(e){const t=e&&e.__v_raw;return t?Ut(t):e}function ox(e){return iv(e,"__v_skip",!0),e}const Gm=e=>rr(e)?un(e):e,sx=e=>rr(e)?ix(e):e;function lx(e){lc&&Ro&&(e=Ut(e),I8(e.dep||(e.dep=nx())))}function Tb(e,t){e=Ut(e);const n=e.dep;n&&yC(n)}function zr(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){return B8(e,!1)}function Pe(e){return B8(e,!0)}function B8(e,t){return zr(e)?e:new pae(e,t)}class pae{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ut(t),this._value=n?t:Gm(t)}get value(){return lx(this),this._value}set value(t){const n=this.__v_isShallow||Vm(t)||Ou(t);t=n?t:Ut(t),Sp(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Gm(t),Tb(this))}}function fae(e){Tb(e)}function je(e){return zr(e)?e.value:e}function mae(e){return Gt(e)?e():je(e)}const gae={get:(e,t,n)=>je(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return zr(i)&&!zr(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function cx(e){return mu(e)?e:new Proxy(e,gae)}class hae{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>lx(this),()=>Tb(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function _ae(e){return new hae(e)}function Zd(e){const t=vt(e)?new Array(e.length):{};for(const n in e)t[n]=U8(e,n);return t}class vae{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Bie(Ut(this._object),this._key)}}class bae{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function xt(e,t,n){return zr(e)?e:Gt(e)?new bae(e):rr(e)&&arguments.length>1?U8(e,t,n):Oe(e)}function U8(e,t,n){const r=e[t];return zr(r)?r:new vae(e,t,n)}class yae{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new kg(t,()=>{this._dirty||(this._dirty=!0,Tb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Ut(this);return lx(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Sae(e,t,n=!1){let r,i;const a=Gt(e);return a?(r=e,i=Fo):(r=e.get,i=e.set),new yae(r,i,a||!i,n)}function Eae(e,...t){}function Cae(e,t){}function sl(e,t,n,r){let i;try{i=r?e(...r):e()}catch(a){Uu(a,t,n)}return i}function Aa(e,t,n,r){if(Gt(e)){const a=sl(e,t,n,r);return a&&Xw(a)&&a.catch(l=>{Uu(l,t,n)}),a}const i=[];for(let a=0;a>>1;jm(Ii[r])us&&Ii.splice(t,1)}function dx(e){vt(e)?Qd.push(...e):(!Zs||!Zs.includes(e,e.allowRecurse?Jc+1:Jc))&&Qd.push(e),z8()}function hD(e,t=Ym?us+1:0){for(;tjm(n)-jm(r)),Jc=0;Jce.id==null?1/0:e.id,Oae=(e,t)=>{const n=jm(e)-jm(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function V8(e){SC=!1,Ym=!0,Ii.sort(Oae);const t=Fo;try{for(us=0;usxd.emit(i,...a)),A_=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{G8(a,t)}),setTimeout(()=>{xd||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,A_=[])},3e3)):A_=[]}function Rae(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||nr;let i=n;const a=t.startsWith("update:"),l=a&&t.slice(7);if(l&&l in r){const c=`${l==="modelValue"?"model":l}Modifiers`,{number:d,trim:p}=r[c]||nr;p&&(i=n.map(f=>Tr(f)?f.trim():f)),d&&(i=n.map(av))}let s,u=r[s=um(t)]||r[s=um(aa(t))];!u&&a&&(u=r[s=um(io(t))]),u&&Aa(u,e,6,i);const o=r[s+"Once"];if(o){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Aa(o,e,6,i)}}function Y8(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let l={},s=!1;if(!Gt(e)){const u=o=>{const c=Y8(o,t,!0);c&&(s=!0,cr(l,c))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!a&&!s?(rr(e)&&r.set(e,null),null):(vt(a)?a.forEach(u=>l[u]=null):cr(l,a),rr(e)&&r.set(e,l),l)}function xb(e,t){return!e||!Pg(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pn(e,t[0].toLowerCase()+t.slice(1))||Pn(e,io(t))||Pn(e,t))}let ci=null,Ob=null;function Wm(e){const t=ci;return ci=e,Ob=e&&e.type.__scopeId||null,t}function j8(e){Ob=e}function W8(){Ob=null}const Iae=e=>pn;function pn(e,t=ci,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&RC(-1);const a=Wm(t);let l;try{l=e(...i)}finally{Wm(a),r._d&&RC(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function h0(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[l],slots:s,attrs:u,emit:o,render:c,renderCache:d,data:p,setupState:f,ctx:g,inheritAttrs:m}=e;let h,v;const b=Wm(e);try{if(n.shapeFlag&4){const S=i||r;h=Ta(c.call(S,S,d,a,f,p,g)),v=u}else{const S=t;h=Ta(S.length>1?S(a,{attrs:u,slots:s,emit:o}):S(a,null)),v=t.props?u:Nae(u)}}catch(S){fm.length=0,Uu(S,e,1),h=x(Si)}let y=h;if(v&&m!==!1){const S=Object.keys(v),{shapeFlag:C}=y;S.length&&C&7&&(l&&S.some(Zw)&&(v=Dae(v,l)),y=Ci(y,v))}return n.dirs&&(y=Ci(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),h=y,Wm(b),h}function Aae(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Pg(n))&&((t||(t={}))[n]=e[n]);return t},Dae=(e,t)=>{const n={};for(const r in e)(!Zw(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Pae(e,t,n){const{props:r,children:i,component:a}=e,{props:l,children:s,patchFlag:u}=t,o=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?_D(r,l,o):!!l;if(u&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense,Mae={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,l,s,u,o){e==null?$ae(t,n,r,i,a,l,s,u,o):Lae(e,t,n,r,i,l,s,u,o)},hydrate:Fae,create:fx,normalize:Bae},kae=Mae;function qm(e,t){const n=e.props&&e.props[t];Gt(n)&&n()}function $ae(e,t,n,r,i,a,l,s,u){const{p:o,o:{createElement:c}}=u,d=c("div"),p=e.suspense=fx(e,i,r,t,d,n,a,l,s,u);o(null,p.pendingBranch=e.ssContent,d,null,r,p,a,l),p.deps>0?(qm(e,"onPending"),qm(e,"onFallback"),o(null,e.ssFallback,t,n,r,null,a,l),Xd(p,e.ssFallback)):p.resolve(!1,!0)}function Lae(e,t,n,r,i,a,l,s,{p:u,um:o,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:h,isHydrating:v}=d;if(m)d.pendingBranch=p,Io(p,m)?(u(m,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0?d.resolve():h&&(u(g,f,n,r,i,null,a,l,s),Xd(d,f))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):o(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),h?(u(null,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0?d.resolve():(u(g,f,n,r,i,null,a,l,s),Xd(d,f))):g&&Io(p,g)?(u(g,p,n,r,i,d,a,l,s),d.resolve(!0)):(u(null,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0&&d.resolve()));else if(g&&Io(p,g))u(g,p,n,r,i,d,a,l,s),Xd(d,p);else if(qm(t,"onPending"),d.pendingBranch=p,d.pendingId++,u(null,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0)d.resolve();else{const{timeout:b,pendingId:y}=d;b>0?setTimeout(()=>{d.pendingId===y&&d.fallback(f)},b):b===0&&d.fallback(f)}}function fx(e,t,n,r,i,a,l,s,u,o,c=!1){const{p:d,m:p,um:f,n:g,o:{parentNode:m,remove:h}}=o;let v;const b=Uae(e);b&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?ov(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(C=!1,w=!1){const{vnode:T,activeBranch:O,pendingBranch:I,pendingId:N,effects:M,parentComponent:B,container:P}=S;if(S.isHydrating)S.isHydrating=!1;else if(!C){const F=O&&I.transition&&I.transition.mode==="out-in";F&&(O.transition.afterLeave=()=>{N===S.pendingId&&p(I,P,U,0)});let{anchor:U}=S;O&&(U=g(O),f(O,B,S,!0)),F||p(I,P,U,0)}Xd(S,I),S.pendingBranch=null,S.isInFallback=!1;let k=S.parent,D=!1;for(;k;){if(k.pendingBranch){k.effects.push(...M),D=!0;break}k=k.parent}D||dx(M),S.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),qm(T,"onResolve")},fallback(C){if(!S.pendingBranch)return;const{vnode:w,activeBranch:T,parentComponent:O,container:I,isSVG:N}=S;qm(w,"onFallback");const M=g(T),B=()=>{!S.isInFallback||(d(null,C,I,M,O,null,N,s,u),Xd(S,C))},P=C.transition&&C.transition.mode==="out-in";P&&(T.transition.afterLeave=B),S.isInFallback=!0,f(T,O,null,!0),P||B()},move(C,w,T){S.activeBranch&&p(S.activeBranch,C,w,T),S.container=C},next(){return S.activeBranch&&g(S.activeBranch)},registerDep(C,w){const T=!!S.pendingBranch;T&&S.deps++;const O=C.vnode.el;C.asyncDep.catch(I=>{Uu(I,C,0)}).then(I=>{if(C.isUnmounted||S.isUnmounted||S.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:N}=C;IC(C,I,!1),O&&(N.el=O);const M=!O&&C.subTree.el;w(C,N,m(O||C.subTree.el),O?null:g(C.subTree),S,l,u),M&&h(M),px(C,N.el),T&&--S.deps===0&&S.resolve()})},unmount(C,w){S.isUnmounted=!0,S.activeBranch&&f(S.activeBranch,n,C,w),S.pendingBranch&&f(S.pendingBranch,n,C,w)}};return S}function Fae(e,t,n,r,i,a,l,s,u){const o=t.suspense=fx(t,r,n,e.parentNode,document.createElement("div"),null,i,a,l,s,!0),c=u(e,o.pendingBranch=t.ssContent,n,o,a,l);return o.deps===0&&o.resolve(!1,!0),c}function Bae(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=vD(r?n.default:n),e.ssFallback=r?vD(n.fallback):x(Si)}function vD(e){let t;if(Gt(e)){const n=Iu&&e._c;n&&(e._d=!1,oe()),e=e(),n&&(e._d=!0,t=ia,S3())}return vt(e)&&(e=Aae(e)),e=Ta(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function K8(e,t){t&&t.pendingBranch?vt(e)?t.effects.push(...e):t.effects.push(e):dx(e)}function Xd(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,px(r,i))}function Uae(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Rt(e,t){return $g(e,null,t)}function Z8(e,t){return $g(e,null,{flush:"post"})}function Hae(e,t){return $g(e,null,{flush:"sync"})}const N_={};function ze(e,t,n){return $g(e,t,n)}function $g(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:l}=nr){var s;const u=tx()===((s=Kr)==null?void 0:s.scope)?Kr:null;let o,c=!1,d=!1;if(zr(e)?(o=()=>e.value,c=Vm(e)):mu(e)?(o=()=>e,r=!0):vt(e)?(d=!0,c=e.some(S=>mu(S)||Vm(S)),o=()=>e.map(S=>{if(zr(S))return S.value;if(mu(S))return ou(S);if(Gt(S))return sl(S,u,2)})):Gt(e)?t?o=()=>sl(e,u,2):o=()=>{if(!(u&&u.isUnmounted))return p&&p(),Aa(e,u,3,[f])}:o=Fo,t&&r){const S=o;o=()=>ou(S())}let p,f=S=>{p=b.onStop=()=>{sl(S,u,4)}},g;if(Cp)if(f=Fo,t?n&&Aa(t,u,3,[o(),d?[]:void 0,f]):o(),i==="sync"){const S=A3();g=S.__watcherHandles||(S.__watcherHandles=[])}else return Fo;let m=d?new Array(e.length).fill(N_):N_;const h=()=>{if(!!b.active)if(t){const S=b.run();(r||c||(d?S.some((C,w)=>Sp(C,m[w])):Sp(S,m)))&&(p&&p(),Aa(t,u,3,[S,m===N_?void 0:d&&m[0]===N_?[]:m,f]),m=S)}else b.run()};h.allowRecurse=!!t;let v;i==="sync"?v=h:i==="post"?v=()=>hi(h,u&&u.suspense):(h.pre=!0,u&&(h.id=u.uid),v=()=>wb(h));const b=new kg(o,v);t?n?h():m=b.run():i==="post"?hi(b.run.bind(b),u&&u.suspense):b.run();const y=()=>{b.stop(),u&&u.scope&&Qw(u.scope.effects,b)};return g&&g.push(y),y}function zae(e,t,n){const r=this.proxy,i=Tr(e)?e.includes(".")?Q8(r,e):()=>r[e]:e.bind(r,r);let a;Gt(t)?a=t:(a=t.handler,n=t);const l=Kr;_c(this);const s=$g(i,a.bind(r),n);return l?_c(l):cc(),s}function Q8(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{ou(n,t)});else if(S8(e))for(const n in e)ou(e[n],t);return e}function mr(e,t){const n=ci;if(n===null)return e;const r=Db(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const qa=[Function,Array],gx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qa,onEnter:qa,onAfterEnter:qa,onEnterCancelled:qa,onBeforeLeave:qa,onLeave:qa,onAfterLeave:qa,onLeaveCancelled:qa,onBeforeAppear:qa,onAppear:qa,onAfterAppear:qa,onAppearCancelled:qa},Vae={name:"BaseTransition",props:gx,setup(e,{slots:t}){const n=hr(),r=mx();let i;return()=>{const a=t.default&&Rb(t.default(),!0);if(!a||!a.length)return;let l=a[0];if(a.length>1){for(const m of a)if(m.type!==Si){l=m;break}}const s=Ut(e),{mode:u}=s;if(r.isLeaving)return rE(l);const o=bD(l);if(!o)return rE(l);const c=Ep(o,s,r,n);Ru(o,c);const d=n.subTree,p=d&&bD(d);let f=!1;const{getTransitionKey:g}=o.type;if(g){const m=g();i===void 0?i=m:m!==i&&(i=m,f=!0)}if(p&&p.type!==Si&&(!Io(o,p)||f)){const m=Ep(p,s,r,n);if(Ru(p,m),u==="out-in")return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},rE(l);u==="in-out"&&o.type!==Si&&(m.delayLeave=(h,v,b)=>{const y=J8(r,p);y[String(p.key)]=p,h._leaveCb=()=>{v(),h._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return l}}},X8=Vae;function J8(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ep(e,t,n,r){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:o,onEnterCancelled:c,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:h,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),S=J8(n,e),C=(O,I)=>{O&&Aa(O,r,9,I)},w=(O,I)=>{const N=I[1];C(O,I),vt(O)?O.every(M=>M.length<=1)&&N():O.length<=1&&N()},T={mode:a,persisted:l,beforeEnter(O){let I=s;if(!n.isMounted)if(i)I=m||s;else return;O._leaveCb&&O._leaveCb(!0);const N=S[y];N&&Io(e,N)&&N.el._leaveCb&&N.el._leaveCb(),C(I,[O])},enter(O){let I=u,N=o,M=c;if(!n.isMounted)if(i)I=h||u,N=v||o,M=b||c;else return;let B=!1;const P=O._enterCb=k=>{B||(B=!0,k?C(M,[O]):C(N,[O]),T.delayedLeave&&T.delayedLeave(),O._enterCb=void 0)};I?w(I,[O,P]):P()},leave(O,I){const N=String(e.key);if(O._enterCb&&O._enterCb(!0),n.isUnmounting)return I();C(d,[O]);let M=!1;const B=O._leaveCb=P=>{M||(M=!0,I(),P?C(g,[O]):C(f,[O]),O._leaveCb=void 0,S[N]===e&&delete S[N])};S[N]=e,p?w(p,[O,B]):B()},clone(O){return Ep(O,t,n,r)}};return T}function rE(e){if(Lg(e))return e=Ci(e),e.children=null,e}function bD(e){return Lg(e)?e.children?e.children[0]:void 0:e}function Ru(e,t){e.shapeFlag&6&&e.component?Ru(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Rb(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;acr({name:e.name},t,{setup:e}))():e}const gu=e=>!!e.type.__asyncLoader;function Gae(e){Gt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:l=!0,onError:s}=e;let u=null,o,c=0;const d=()=>(c++,u=null,p()),p=()=>{let f;return u||(f=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),s)return new Promise((m,h)=>{s(g,()=>m(d()),()=>h(g),c+1)});throw g}).then(g=>f!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),o=g,g)))};return Ce({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return o},setup(){const f=Kr;if(o)return()=>iE(o,f);const g=b=>{u=null,Uu(b,f,13,!r)};if(l&&f.suspense||Cp)return p().then(b=>()=>iE(b,f)).catch(b=>(g(b),()=>r?x(r,{error:b}):null));const m=Oe(!1),h=Oe(),v=Oe(!!i);return i&&setTimeout(()=>{v.value=!1},i),a!=null&&setTimeout(()=>{if(!m.value&&!h.value){const b=new Error(`Async component timed out after ${a}ms.`);g(b),h.value=b}},a),p().then(()=>{m.value=!0,f.parent&&Lg(f.parent.vnode)&&wb(f.parent.update)}).catch(b=>{g(b),h.value=b}),()=>{if(m.value&&o)return iE(o,f);if(h.value&&r)return x(r,{error:h.value});if(n&&!v.value)return x(n)}}})}function iE(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,l=x(e,r,i);return l.ref=n,l.ce=a,delete t.vnode.ce,l}const Lg=e=>e.type.__isKeepAlive,Yae={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=hr(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const i=new Map,a=new Set;let l=null;const s=n.suspense,{renderer:{p:u,m:o,um:c,o:{createElement:d}}}=r,p=d("div");r.activate=(b,y,S,C,w)=>{const T=b.component;o(b,y,S,0,s),u(T.vnode,b,y,S,T,s,C,b.slotScopeIds,w),hi(()=>{T.isDeactivated=!1,T.a&&Kd(T.a);const O=b.props&&b.props.onVnodeMounted;O&&ta(O,T.parent,b)},s)},r.deactivate=b=>{const y=b.component;o(b,p,null,1,s),hi(()=>{y.da&&Kd(y.da);const S=b.props&&b.props.onVnodeUnmounted;S&&ta(S,y.parent,b),y.isDeactivated=!0},s)};function f(b){aE(b),c(b,n,s,!0)}function g(b){i.forEach((y,S)=>{const C=NC(y.type);C&&(!b||!b(C))&&m(S)})}function m(b){const y=i.get(b);!l||!Io(y,l)?f(y):l&&aE(l),i.delete(b),a.delete(b)}ze(()=>[e.include,e.exclude],([b,y])=>{b&&g(S=>qf(b,S)),y&&g(S=>!qf(y,S))},{flush:"post",deep:!0});let h=null;const v=()=>{h!=null&&i.set(h,oE(n.subTree))};return _t(v),ca(v),Xt(()=>{i.forEach(b=>{const{subTree:y,suspense:S}=n,C=oE(y);if(b.type===C.type&&b.key===C.key){aE(C);const w=C.component.da;w&&hi(w,S);return}f(b)})}),()=>{if(h=null,!t.default)return null;const b=t.default(),y=b[0];if(b.length>1)return l=null,b;if(!Vr(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return l=null,y;let S=oE(y);const C=S.type,w=NC(gu(S)?S.type.__asyncResolved||{}:C),{include:T,exclude:O,max:I}=e;if(T&&(!w||!qf(T,w))||O&&w&&qf(O,w))return l=S,y;const N=S.key==null?C:S.key,M=i.get(N);return S.el&&(S=Ci(S),y.shapeFlag&128&&(y.ssContent=S)),h=N,M?(S.el=M.el,S.component=M.component,S.transition&&Ru(S,S.transition),S.shapeFlag|=512,a.delete(N),a.add(N)):(a.add(N),I&&a.size>parseInt(I,10)&&m(a.values().next().value)),S.shapeFlag|=256,l=S,q8(y.type)?y:S}}},jae=Yae;function qf(e,t){return vt(e)?e.some(n=>qf(n,t)):Tr(e)?e.split(",").includes(t):Sie(e)?e.test(t):!1}function Fg(e,t){e3(e,"a",t)}function hx(e,t){e3(e,"da",t)}function e3(e,t,n=Kr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ib(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Lg(i.parent.vnode)&&Wae(r,t,n,i),i=i.parent}}function Wae(e,t,n,r){const i=Ib(t,e,r,!0);ki(()=>{Qw(r[t],i)},n)}function aE(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function oE(e){return e.shapeFlag&128?e.ssContent:e}function Ib(e,t,n=Kr,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;Xp(),_c(n);const s=Aa(t,n,e,l);return cc(),Jp(),s});return r?i.unshift(a):i.push(a),a}}const bl=e=>(t,n=Kr)=>(!Cp||e==="sp")&&Ib(e,(...r)=>t(...r),n),Ab=bl("bm"),_t=bl("m"),Bg=bl("bu"),ca=bl("u"),Xt=bl("bum"),ki=bl("um"),t3=bl("sp"),n3=bl("rtg"),r3=bl("rtc");function i3(e,t=Kr){Ib("ec",e,t)}const _x="components",qae="directives";function Jd(e,t){return vx(_x,e,!0,t)||e}const a3=Symbol.for("v-ndc");function hu(e){return Tr(e)?vx(_x,e,!1)||e:e||a3}function ef(e){return vx(qae,e)}function vx(e,t,n=!0,r=!1){const i=ci||Kr;if(i){const a=i.type;if(e===_x){const s=NC(a,!1);if(s&&(s===t||s===aa(t)||s===Mg(aa(t))))return a}const l=yD(i[e]||a[e],t)||yD(i.appContext[e],t);return!l&&r?a:l}}function yD(e,t){return e&&(e[t]||e[aa(t)]||e[Mg(aa(t))])}function Di(e,t,n,r){let i;const a=n&&n[r];if(vt(e)||Tr(e)){i=new Array(e.length);for(let l=0,s=e.length;lt(l,s,void 0,a&&a[s]));else{const l=Object.keys(e);i=new Array(l.length);for(let s=0,u=l.length;s{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function Et(e,t,n={},r,i){if(ci.isCE||ci.parent&&gu(ci.parent)&&ci.parent.isCE)return t!=="default"&&(n.name=t),x("slot",n,r&&r());let a=e[t];a&&a._c&&(a._d=!1),oe();const l=a&&o3(a(n)),s=Rn(tt,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function o3(e){return e.some(t=>Vr(t)?!(t.type===Si||t.type===tt&&!o3(t.children)):!0)?e:null}function s3(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:um(r)]=e[r];return n}const EC=e=>e?w3(e)?Db(e)||e.proxy:EC(e.parent):null,dm=cr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>EC(e.parent),$root:e=>EC(e.root),$emit:e=>e.emit,$options:e=>yx(e),$forceUpdate:e=>e.f||(e.f=()=>wb(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>zae.bind(e)}),sE=(e,t)=>e!==nr&&!e.__isScriptSetup&&Pn(e,t),CC={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:l,type:s,appContext:u}=e;let o;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(sE(r,t))return l[t]=1,r[t];if(i!==nr&&Pn(i,t))return l[t]=2,i[t];if((o=e.propsOptions[0])&&Pn(o,t))return l[t]=3,a[t];if(n!==nr&&Pn(n,t))return l[t]=4,n[t];TC&&(l[t]=0)}}const c=dm[t];let d,p;if(c)return t==="$attrs"&&oa(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==nr&&Pn(n,t))return l[t]=4,n[t];if(p=u.config.globalProperties,Pn(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return sE(i,t)?(i[t]=n,!0):r!==nr&&Pn(r,t)?(r[t]=n,!0):Pn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},l){let s;return!!n[l]||e!==nr&&Pn(e,l)||sE(t,l)||(s=a[0])&&Pn(s,l)||Pn(r,l)||Pn(dm,l)||Pn(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Kae=cr({},CC,{get(e,t){if(t!==Symbol.unscopables)return CC.get(e,t,e)},has(e,t){return t[0]!=="_"&&!xie(t)}});function Zae(){return null}function Qae(){return null}function Xae(e){}function Jae(e){}function eoe(){return null}function toe(){}function noe(e,t){return null}function roe(){return c3().slots}function l3(){return c3().attrs}function ioe(e,t,n){const r=hr();if(n&&n.local){const i=Oe(e[t]);return ze(()=>e[t],a=>i.value=a),ze(i,a=>{a!==e[t]&&r.emit(`update:${t}`,a)}),i}else return{__v_isRef:!0,get value(){return e[t]},set value(i){r.emit(`update:${t}`,i)}}}function c3(){const e=hr();return e.setupContext||(e.setupContext=R3(e))}function Km(e){return vt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function aoe(e,t){const n=Km(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?vt(i)||Gt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function ooe(e,t){return!e||!t?e||t:vt(e)&&vt(t)?e.concat(t):cr({},Km(e),Km(t))}function soe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function loe(e){const t=hr();let n=e();return cc(),Xw(n)&&(n=n.catch(r=>{throw _c(t),r})),[n,()=>_c(t)]}let TC=!0;function coe(e){const t=yx(e),n=e.proxy,r=e.ctx;TC=!1,t.beforeCreate&&SD(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:l,watch:s,provide:u,inject:o,created:c,beforeMount:d,mounted:p,beforeUpdate:f,updated:g,activated:m,deactivated:h,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:S,render:C,renderTracked:w,renderTriggered:T,errorCaptured:O,serverPrefetch:I,expose:N,inheritAttrs:M,components:B,directives:P,filters:k}=t;if(o&&uoe(o,r,null),l)for(const U in l){const z=l[U];Gt(z)&&(r[U]=z.bind(n))}if(i){const U=i.call(n,n);rr(U)&&(e.data=un(U))}if(TC=!0,a)for(const U in a){const z=a[U],Y=Gt(z)?z.bind(n,n):Gt(z.get)?z.get.bind(n,n):Fo,G=!Gt(z)&&Gt(z.set)?z.set.bind(n):Fo,K=$({get:Y,set:G});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>K.value,set:X=>K.value=X})}if(s)for(const U in s)u3(s[U],r,n,U);if(u){const U=Gt(u)?u.call(n):u;Reflect.ownKeys(U).forEach(z=>{Dt(z,U[z])})}c&&SD(c,e,"c");function F(U,z){vt(z)?z.forEach(Y=>U(Y.bind(n))):z&&U(z.bind(n))}if(F(Ab,d),F(_t,p),F(Bg,f),F(ca,g),F(Fg,m),F(hx,h),F(i3,O),F(r3,w),F(n3,T),F(Xt,b),F(ki,S),F(t3,I),vt(N))if(N.length){const U=e.exposed||(e.exposed={});N.forEach(z=>{Object.defineProperty(U,z,{get:()=>n[z],set:Y=>n[z]=Y})})}else e.exposed||(e.exposed={});C&&e.render===Fo&&(e.render=C),M!=null&&(e.inheritAttrs=M),B&&(e.components=B),P&&(e.directives=P)}function uoe(e,t,n=Fo){vt(e)&&(e=wC(e));for(const r in e){const i=e[r];let a;rr(i)?"default"in i?a=He(i.from||r,i.default,!0):a=He(i.from||r):a=He(i),zr(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[r]=a}}function SD(e,t,n){Aa(vt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function u3(e,t,n,r){const i=r.includes(".")?Q8(n,r):()=>n[r];if(Tr(e)){const a=t[e];Gt(a)&&ze(i,a)}else if(Gt(e))ze(i,e.bind(n));else if(rr(e))if(vt(e))e.forEach(a=>u3(a,t,n,r));else{const a=Gt(e.handler)?e.handler.bind(n):t[e.handler];Gt(a)&&ze(i,a,e)}}function yx(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:l}}=e.appContext,s=a.get(t);let u;return s?u=s:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(o=>cv(u,o,l,!0)),cv(u,t,l)),rr(t)&&a.set(t,u),u}function cv(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&cv(e,a,n,!0),i&&i.forEach(l=>cv(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const s=doe[l]||n&&n[l];e[l]=s?s(e[l],t[l]):t[l]}return e}const doe={data:ED,props:CD,emits:CD,methods:Kf,computed:Kf,beforeCreate:Hi,created:Hi,beforeMount:Hi,mounted:Hi,beforeUpdate:Hi,updated:Hi,beforeDestroy:Hi,beforeUnmount:Hi,destroyed:Hi,unmounted:Hi,activated:Hi,deactivated:Hi,errorCaptured:Hi,serverPrefetch:Hi,components:Kf,directives:Kf,watch:foe,provide:ED,inject:poe};function ED(e,t){return t?e?function(){return cr(Gt(e)?e.call(this,this):e,Gt(t)?t.call(this,this):t)}:t:e}function poe(e,t){return Kf(wC(e),wC(t))}function wC(e){if(vt(e)){const t={};for(let n=0;n1)return n&&Gt(t)?t.call(r&&r.proxy):t}}function hoe(){return!!(Kr||ci||Zm)}function _oe(e,t,n,r=!1){const i={},a={};iv(a,Nb,1),e.propsDefaults=Object.create(null),p3(e,t,i,a);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:F8(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function voe(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:l}}=e,s=Ut(i),[u]=e.propsOptions;let o=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[p,f]=f3(d,t,!0);cr(l,p),f&&s.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!u)return rr(e)&&r.set(e,Wd),Wd;if(vt(a))for(let c=0;c-1,f[1]=m<0||g-1||Pn(f,"default"))&&s.push(d)}}}const o=[l,s];return rr(e)&&r.set(e,o),o}function TD(e){return e[0]!=="$"}function wD(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function xD(e,t){return wD(e)===wD(t)}function OD(e,t){return vt(t)?t.findIndex(n=>xD(n,e)):Gt(t)&&xD(t,e)?0:-1}const m3=e=>e[0]==="_"||e==="$stable",Sx=e=>vt(e)?e.map(Ta):[Ta(e)],boe=(e,t,n)=>{if(t._n)return t;const r=pn((...i)=>Sx(t(...i)),n);return r._c=!1,r},g3=(e,t,n)=>{const r=e._ctx;for(const i in e){if(m3(i))continue;const a=e[i];if(Gt(a))t[i]=boe(i,a,r);else if(a!=null){const l=Sx(a);t[i]=()=>l}}},h3=(e,t)=>{const n=Sx(t);e.slots.default=()=>n},yoe=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ut(t),iv(t,"_",n)):g3(t,e.slots={})}else e.slots={},t&&h3(e,t);iv(e.slots,Nb,1)},Soe=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,l=nr;if(r.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:(cr(i,t),!n&&s===1&&delete i._):(a=!t.$stable,g3(t,i)),l=t}else t&&(h3(e,t),l={default:1});if(a)for(const s in i)!m3(s)&&!(s in l)&&delete i[s]};function uv(e,t,n,r,i=!1){if(vt(e)){e.forEach((p,f)=>uv(p,t&&(vt(t)?t[f]:t),n,r,i));return}if(gu(r)&&!i)return;const a=r.shapeFlag&4?Db(r.component)||r.component.proxy:r.el,l=i?null:a,{i:s,r:u}=e,o=t&&t.r,c=s.refs===nr?s.refs={}:s.refs,d=s.setupState;if(o!=null&&o!==u&&(Tr(o)?(c[o]=null,Pn(d,o)&&(d[o]=null)):zr(o)&&(o.value=null)),Gt(u))sl(u,s,12,[l,c]);else{const p=Tr(u),f=zr(u);if(p||f){const g=()=>{if(e.f){const m=p?Pn(d,u)?d[u]:c[u]:u.value;i?vt(m)&&Qw(m,a):vt(m)?m.includes(a)||m.push(a):p?(c[u]=[a],Pn(d,u)&&(d[u]=c[u])):(u.value=[a],e.k&&(c[e.k]=u.value))}else p?(c[u]=l,Pn(d,u)&&(d[u]=l)):f&&(u.value=l,e.k&&(c[e.k]=l))};l?(g.id=-1,hi(g,n)):g()}}}let Fl=!1;const D_=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",P_=e=>e.nodeType===8;function Eoe(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:l,remove:s,insert:u,createComment:o}}=e,c=(v,b)=>{if(!b.hasChildNodes()){n(null,v,b),lv(),b._vnode=v;return}Fl=!1,d(b.firstChild,v,null,null,null),lv(),b._vnode=v,Fl&&console.error("Hydration completed but contains mismatches.")},d=(v,b,y,S,C,w=!1)=>{const T=P_(v)&&v.data==="[",O=()=>m(v,b,y,S,C,T),{type:I,ref:N,shapeFlag:M,patchFlag:B}=b;let P=v.nodeType;b.el=v,B===-2&&(w=!1,b.dynamicChildren=null);let k=null;switch(I){case Vo:P!==3?b.children===""?(u(b.el=i(""),l(v),v),k=v):k=O():(v.data!==b.children&&(Fl=!0,v.data=b.children),k=a(v));break;case Si:P!==8||T?k=O():k=a(v);break;case _u:if(T&&(v=a(v),P=v.nodeType),P===1||P===3){k=v;const D=!b.children.length;for(let F=0;F{w=w||!!b.dynamicChildren;const{type:T,props:O,patchFlag:I,shapeFlag:N,dirs:M}=b,B=T==="input"&&M||T==="option";if(B||I!==-1){if(M&&ls(b,null,y,"created"),O)if(B||!w||I&48)for(const k in O)(B&&k.endsWith("value")||Pg(k)&&!cm(k))&&r(v,k,null,O[k],!1,void 0,y);else O.onClick&&r(v,"onClick",null,O.onClick,!1,void 0,y);let P;if((P=O&&O.onVnodeBeforeMount)&&ta(P,y,b),M&&ls(b,null,y,"beforeMount"),((P=O&&O.onVnodeMounted)||M)&&K8(()=>{P&&ta(P,y,b),M&&ls(b,null,y,"mounted")},S),N&16&&!(O&&(O.innerHTML||O.textContent))){let k=f(v.firstChild,b,v,y,S,C,w);for(;k;){Fl=!0;const D=k;k=k.nextSibling,s(D)}}else N&8&&v.textContent!==b.children&&(Fl=!0,v.textContent=b.children)}return v.nextSibling},f=(v,b,y,S,C,w,T)=>{T=T||!!b.dynamicChildren;const O=b.children,I=O.length;for(let N=0;N{const{slotScopeIds:T}=b;T&&(C=C?C.concat(T):T);const O=l(v),I=f(a(v),b,O,y,S,C,w);return I&&P_(I)&&I.data==="]"?a(b.anchor=I):(Fl=!0,u(b.anchor=o("]"),O,I),I)},m=(v,b,y,S,C,w)=>{if(Fl=!0,b.el=null,w){const I=h(v);for(;;){const N=a(v);if(N&&N!==I)s(N);else break}}const T=a(v),O=l(v);return s(v),n(null,b,O,T,y,S,D_(O),C),T},h=v=>{let b=0;for(;v;)if(v=a(v),v&&P_(v)&&(v.data==="["&&b++,v.data==="]")){if(b===0)return a(v);b--}return v};return[c,d]}const hi=K8;function _3(e){return b3(e)}function v3(e){return b3(e,Eoe)}function b3(e,t){const n=_C();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:l,createText:s,createComment:u,setText:o,setElementText:c,parentNode:d,nextSibling:p,setScopeId:f=Fo,insertStaticContent:g}=e,m=(W,J,de,ve=null,he=null,Te=null,Ae=!1,Ne=null,we=!!J.dynamicChildren)=>{if(W===J)return;W&&!Io(W,J)&&(ve=ne(W),X(W,he,Te,!0),W=null),J.patchFlag===-2&&(we=!1,J.dynamicChildren=null);const{type:ge,ref:Me,shapeFlag:ke}=J;switch(ge){case Vo:h(W,J,de,ve);break;case Si:v(W,J,de,ve);break;case _u:W==null&&b(J,de,ve,Ae);break;case tt:B(W,J,de,ve,he,Te,Ae,Ne,we);break;default:ke&1?C(W,J,de,ve,he,Te,Ae,Ne,we):ke&6?P(W,J,de,ve,he,Te,Ae,Ne,we):(ke&64||ke&128)&&ge.process(W,J,de,ve,he,Te,Ae,Ne,we,ue)}Me!=null&&he&&uv(Me,W&&W.ref,Te,J||W,!J)},h=(W,J,de,ve)=>{if(W==null)r(J.el=s(J.children),de,ve);else{const he=J.el=W.el;J.children!==W.children&&o(he,J.children)}},v=(W,J,de,ve)=>{W==null?r(J.el=u(J.children||""),de,ve):J.el=W.el},b=(W,J,de,ve)=>{[W.el,W.anchor]=g(W.children,J,de,ve,W.el,W.anchor)},y=({el:W,anchor:J},de,ve)=>{let he;for(;W&&W!==J;)he=p(W),r(W,de,ve),W=he;r(J,de,ve)},S=({el:W,anchor:J})=>{let de;for(;W&&W!==J;)de=p(W),i(W),W=de;i(J)},C=(W,J,de,ve,he,Te,Ae,Ne,we)=>{Ae=Ae||J.type==="svg",W==null?w(J,de,ve,he,Te,Ae,Ne,we):I(W,J,he,Te,Ae,Ne,we)},w=(W,J,de,ve,he,Te,Ae,Ne)=>{let we,ge;const{type:Me,props:ke,shapeFlag:Ue,transition:xe,dirs:ye}=W;if(we=W.el=l(W.type,Te,ke&&ke.is,ke),Ue&8?c(we,W.children):Ue&16&&O(W.children,we,null,ve,he,Te&&Me!=="foreignObject",Ae,Ne),ye&&ls(W,null,ve,"created"),T(we,W,W.scopeId,Ae,ve),ke){for(const L in ke)L!=="value"&&!cm(L)&&a(we,L,null,ke[L],Te,W.children,ve,he,ee);"value"in ke&&a(we,"value",null,ke.value),(ge=ke.onVnodeBeforeMount)&&ta(ge,ve,W)}ye&&ls(W,null,ve,"beforeMount");const j=(!he||he&&!he.pendingBranch)&&xe&&!xe.persisted;j&&xe.beforeEnter(we),r(we,J,de),((ge=ke&&ke.onVnodeMounted)||j||ye)&&hi(()=>{ge&&ta(ge,ve,W),j&&xe.enter(we),ye&&ls(W,null,ve,"mounted")},he)},T=(W,J,de,ve,he)=>{if(de&&f(W,de),ve)for(let Te=0;Te{for(let ge=we;ge{const Ne=J.el=W.el;let{patchFlag:we,dynamicChildren:ge,dirs:Me}=J;we|=W.patchFlag&16;const ke=W.props||nr,Ue=J.props||nr;let xe;de&&zc(de,!1),(xe=Ue.onVnodeBeforeUpdate)&&ta(xe,de,J,W),Me&&ls(J,W,de,"beforeUpdate"),de&&zc(de,!0);const ye=he&&J.type!=="foreignObject";if(ge?N(W.dynamicChildren,ge,Ne,de,ve,ye,Te):Ae||z(W,J,Ne,null,de,ve,ye,Te,!1),we>0){if(we&16)M(Ne,J,ke,Ue,de,ve,he);else if(we&2&&ke.class!==Ue.class&&a(Ne,"class",null,Ue.class,he),we&4&&a(Ne,"style",ke.style,Ue.style,he),we&8){const j=J.dynamicProps;for(let L=0;L{xe&&ta(xe,de,J,W),Me&&ls(J,W,de,"updated")},ve)},N=(W,J,de,ve,he,Te,Ae)=>{for(let Ne=0;Ne{if(de!==ve){if(de!==nr)for(const Ne in de)!cm(Ne)&&!(Ne in ve)&&a(W,Ne,de[Ne],null,Ae,J.children,he,Te,ee);for(const Ne in ve){if(cm(Ne))continue;const we=ve[Ne],ge=de[Ne];we!==ge&&Ne!=="value"&&a(W,Ne,ge,we,Ae,J.children,he,Te,ee)}"value"in ve&&a(W,"value",de.value,ve.value)}},B=(W,J,de,ve,he,Te,Ae,Ne,we)=>{const ge=J.el=W?W.el:s(""),Me=J.anchor=W?W.anchor:s("");let{patchFlag:ke,dynamicChildren:Ue,slotScopeIds:xe}=J;xe&&(Ne=Ne?Ne.concat(xe):xe),W==null?(r(ge,de,ve),r(Me,de,ve),O(J.children,de,Me,he,Te,Ae,Ne,we)):ke>0&&ke&64&&Ue&&W.dynamicChildren?(N(W.dynamicChildren,Ue,de,he,Te,Ae,Ne),(J.key!=null||he&&J===he.subTree)&&Ex(W,J,!0)):z(W,J,de,Me,he,Te,Ae,Ne,we)},P=(W,J,de,ve,he,Te,Ae,Ne,we)=>{J.slotScopeIds=Ne,W==null?J.shapeFlag&512?he.ctx.activate(J,de,ve,Ae,we):k(J,de,ve,he,Te,Ae,we):D(W,J,we)},k=(W,J,de,ve,he,Te,Ae)=>{const Ne=W.component=T3(W,ve,he);if(Lg(W)&&(Ne.ctx.renderer=ue),x3(Ne),Ne.asyncDep){if(he&&he.registerDep(Ne,F),!W.el){const we=Ne.subTree=x(Si);v(null,we,J,de)}return}F(Ne,W,J,de,he,Te,Ae)},D=(W,J,de)=>{const ve=J.component=W.component;if(Pae(W,J,de))if(ve.asyncDep&&!ve.asyncResolved){U(ve,J,de);return}else ve.next=J,xae(ve.update),ve.update();else J.el=W.el,ve.vnode=J},F=(W,J,de,ve,he,Te,Ae)=>{const Ne=()=>{if(W.isMounted){let{next:Me,bu:ke,u:Ue,parent:xe,vnode:ye}=W,j=Me,L;zc(W,!1),Me?(Me.el=ye.el,U(W,Me,Ae)):Me=ye,ke&&Kd(ke),(L=Me.props&&Me.props.onVnodeBeforeUpdate)&&ta(L,xe,Me,ye),zc(W,!0);const H=h0(W),te=W.subTree;W.subTree=H,m(te,H,d(te.el),ne(te),W,he,Te),Me.el=H.el,j===null&&px(W,H.el),Ue&&hi(Ue,he),(L=Me.props&&Me.props.onVnodeUpdated)&&hi(()=>ta(L,xe,Me,ye),he)}else{let Me;const{el:ke,props:Ue}=J,{bm:xe,m:ye,parent:j}=W,L=gu(J);if(zc(W,!1),xe&&Kd(xe),!L&&(Me=Ue&&Ue.onVnodeBeforeMount)&&ta(Me,j,J),zc(W,!0),ke&&fe){const H=()=>{W.subTree=h0(W),fe(ke,W.subTree,W,he,null)};L?J.type.__asyncLoader().then(()=>!W.isUnmounted&&H()):H()}else{const H=W.subTree=h0(W);m(null,H,de,ve,W,he,Te),J.el=H.el}if(ye&&hi(ye,he),!L&&(Me=Ue&&Ue.onVnodeMounted)){const H=J;hi(()=>ta(Me,j,H),he)}(J.shapeFlag&256||j&&gu(j.vnode)&&j.vnode.shapeFlag&256)&&W.a&&hi(W.a,he),W.isMounted=!0,J=de=ve=null}},we=W.effect=new kg(Ne,()=>wb(ge),W.scope),ge=W.update=()=>we.run();ge.id=W.uid,zc(W,!0),ge()},U=(W,J,de)=>{J.component=W;const ve=W.vnode.props;W.vnode=J,W.next=null,voe(W,J.props,ve,de),Soe(W,J.children,de),Xp(),hD(),Jp()},z=(W,J,de,ve,he,Te,Ae,Ne,we=!1)=>{const ge=W&&W.children,Me=W?W.shapeFlag:0,ke=J.children,{patchFlag:Ue,shapeFlag:xe}=J;if(Ue>0){if(Ue&128){G(ge,ke,de,ve,he,Te,Ae,Ne,we);return}else if(Ue&256){Y(ge,ke,de,ve,he,Te,Ae,Ne,we);return}}xe&8?(Me&16&&ee(ge,he,Te),ke!==ge&&c(de,ke)):Me&16?xe&16?G(ge,ke,de,ve,he,Te,Ae,Ne,we):ee(ge,he,Te,!0):(Me&8&&c(de,""),xe&16&&O(ke,de,ve,he,Te,Ae,Ne,we))},Y=(W,J,de,ve,he,Te,Ae,Ne,we)=>{W=W||Wd,J=J||Wd;const ge=W.length,Me=J.length,ke=Math.min(ge,Me);let Ue;for(Ue=0;UeMe?ee(W,he,Te,!0,!1,ke):O(J,de,ve,he,Te,Ae,Ne,we,ke)},G=(W,J,de,ve,he,Te,Ae,Ne,we)=>{let ge=0;const Me=J.length;let ke=W.length-1,Ue=Me-1;for(;ge<=ke&&ge<=Ue;){const xe=W[ge],ye=J[ge]=we?Wl(J[ge]):Ta(J[ge]);if(Io(xe,ye))m(xe,ye,de,null,he,Te,Ae,Ne,we);else break;ge++}for(;ge<=ke&&ge<=Ue;){const xe=W[ke],ye=J[Ue]=we?Wl(J[Ue]):Ta(J[Ue]);if(Io(xe,ye))m(xe,ye,de,null,he,Te,Ae,Ne,we);else break;ke--,Ue--}if(ge>ke){if(ge<=Ue){const xe=Ue+1,ye=xeUe)for(;ge<=ke;)X(W[ge],he,Te,!0),ge++;else{const xe=ge,ye=ge,j=new Map;for(ge=ye;ge<=Ue;ge++){const Ze=J[ge]=we?Wl(J[ge]):Ta(J[ge]);Ze.key!=null&&j.set(Ze.key,ge)}let L,H=0;const te=Ue-ye+1;let re=!1,me=0;const Se=new Array(te);for(ge=0;ge=te){X(Ze,he,Te,!0);continue}let We;if(Ze.key!=null)We=j.get(Ze.key);else for(L=ye;L<=Ue;L++)if(Se[L-ye]===0&&Io(Ze,J[L])){We=L;break}We===void 0?X(Ze,he,Te,!0):(Se[We-ye]=ge+1,We>=me?me=We:re=!0,m(Ze,J[We],de,null,he,Te,Ae,Ne,we),H++)}const Ye=re?Coe(Se):Wd;for(L=Ye.length-1,ge=te-1;ge>=0;ge--){const Ze=ye+ge,We=J[Ze],Je=Ze+1{const{el:Te,type:Ae,transition:Ne,children:we,shapeFlag:ge}=W;if(ge&6){K(W.component.subTree,J,de,ve);return}if(ge&128){W.suspense.move(J,de,ve);return}if(ge&64){Ae.move(W,J,de,ue);return}if(Ae===tt){r(Te,J,de);for(let ke=0;keNe.enter(Te),he);else{const{leave:ke,delayLeave:Ue,afterLeave:xe}=Ne,ye=()=>r(Te,J,de),j=()=>{ke(Te,()=>{ye(),xe&&xe()})};Ue?Ue(Te,ye,j):j()}else r(Te,J,de)},X=(W,J,de,ve=!1,he=!1)=>{const{type:Te,props:Ae,ref:Ne,children:we,dynamicChildren:ge,shapeFlag:Me,patchFlag:ke,dirs:Ue}=W;if(Ne!=null&&uv(Ne,null,de,W,!0),Me&256){J.ctx.deactivate(W);return}const xe=Me&1&&Ue,ye=!gu(W);let j;if(ye&&(j=Ae&&Ae.onVnodeBeforeUnmount)&&ta(j,J,W),Me&6)q(W.component,de,ve);else{if(Me&128){W.suspense.unmount(de,ve);return}xe&&ls(W,null,J,"beforeUnmount"),Me&64?W.type.remove(W,J,de,he,ue,ve):ge&&(Te!==tt||ke>0&&ke&64)?ee(ge,J,de,!1,!0):(Te===tt&&ke&384||!he&&Me&16)&&ee(we,J,de),ve&&ie(W)}(ye&&(j=Ae&&Ae.onVnodeUnmounted)||xe)&&hi(()=>{j&&ta(j,J,W),xe&&ls(W,null,J,"unmounted")},de)},ie=W=>{const{type:J,el:de,anchor:ve,transition:he}=W;if(J===tt){se(de,ve);return}if(J===_u){S(W);return}const Te=()=>{i(de),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(W.shapeFlag&1&&he&&!he.persisted){const{leave:Ae,delayLeave:Ne}=he,we=()=>Ae(de,Te);Ne?Ne(W.el,Te,we):we()}else Te()},se=(W,J)=>{let de;for(;W!==J;)de=p(W),i(W),W=de;i(J)},q=(W,J,de)=>{const{bum:ve,scope:he,update:Te,subTree:Ae,um:Ne}=W;ve&&Kd(ve),he.stop(),Te&&(Te.active=!1,X(Ae,W,J,de)),Ne&&hi(Ne,J),hi(()=>{W.isUnmounted=!0},J),J&&J.pendingBranch&&!J.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===J.pendingId&&(J.deps--,J.deps===0&&J.resolve())},ee=(W,J,de,ve=!1,he=!1,Te=0)=>{for(let Ae=Te;AeW.shapeFlag&6?ne(W.component.subTree):W.shapeFlag&128?W.suspense.next():p(W.anchor||W.el),_e=(W,J,de)=>{W==null?J._vnode&&X(J._vnode,null,null,!0):m(J._vnode||null,W,J,null,null,null,de),hD(),lv(),J._vnode=W},ue={p:m,um:X,m:K,r:ie,mt:k,mc:O,pc:z,pbc:N,n:ne,o:e};let be,fe;return t&&([be,fe]=t(ue)),{render:_e,hydrate:be,createApp:goe(_e,be)}}function zc({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ex(e,t,n=!1){const r=e.children,i=t.children;if(vt(r)&&vt(i))for(let a=0;a>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,l=n[a-1];a-- >0;)n[a]=l,l=t[l];return n}const Toe=e=>e.__isTeleport,pm=e=>e&&(e.disabled||e.disabled===""),RD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,OC=(e,t)=>{const n=e&&e.to;return Tr(n)?t?t(n):null:n},woe={__isTeleport:!0,process(e,t,n,r,i,a,l,s,u,o){const{mc:c,pc:d,pbc:p,o:{insert:f,querySelector:g,createText:m,createComment:h}}=o,v=pm(t.props);let{shapeFlag:b,children:y,dynamicChildren:S}=t;if(e==null){const C=t.el=m(""),w=t.anchor=m("");f(C,n,r),f(w,n,r);const T=t.target=OC(t.props,g),O=t.targetAnchor=m("");T&&(f(O,T),l=l||RD(T));const I=(N,M)=>{b&16&&c(y,N,M,i,a,l,s,u)};v?I(n,w):T&&I(T,O)}else{t.el=e.el;const C=t.anchor=e.anchor,w=t.target=e.target,T=t.targetAnchor=e.targetAnchor,O=pm(e.props),I=O?n:w,N=O?C:T;if(l=l||RD(w),S?(p(e.dynamicChildren,S,I,i,a,l,s),Ex(e,t,!0)):u||d(e,t,I,N,i,a,l,s,!1),v)O||M_(t,n,C,o,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=OC(t.props,g);M&&M_(t,M,null,o,0)}else O&&M_(t,w,T,o,1)}y3(t)},remove(e,t,n,r,{um:i,o:{remove:a}},l){const{shapeFlag:s,children:u,anchor:o,targetAnchor:c,target:d,props:p}=e;if(d&&a(c),(l||!pm(p))&&(a(o),s&16))for(let f=0;f0?ia||Wd:null,S3(),Iu>0&&ia&&ia.push(e),e}function pe(e,t,n,r,i,a){return E3(Ee(e,t,n,r,i,a,!0))}function Rn(e,t,n,r,i){return E3(x(e,t,n,r,i,!0))}function Vr(e){return e?e.__v_isVNode===!0:!1}function Io(e,t){return e.type===t.type&&e.key===t.key}function Ooe(e){}const Nb="__vInternal",C3=({key:e})=>e!=null?e:null,_0=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Tr(e)||zr(e)||Gt(e)?{i:ci,r:e,k:t,f:!!n}:e:null);function Ee(e,t=null,n=null,r=0,i=null,a=e===tt?0:1,l=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&C3(t),ref:t&&_0(t),scopeId:Ob,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ci};return s?(Cx(u,n),a&128&&e.normalize(u)):n&&(u.shapeFlag|=Tr(n)?8:16),Iu>0&&!l&&ia&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&ia.push(u),u}const x=Roe;function Roe(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===a3)&&(e=Si),Vr(e)){const s=Ci(e,t,!0);return n&&Cx(s,n),Iu>0&&!a&&ia&&(s.shapeFlag&6?ia[ia.indexOf(e)]=s:ia.push(s)),s.patchFlag|=-2,s}if($oe(e)&&(e=e.__vccOpts),t){t=Ja(t);let{class:s,style:u}=t;s&&!Tr(s)&&(t.class=Vt(s)),rr(u)&&(ax(u)&&!vt(u)&&(u=cr({},u)),t.style=Ni(u))}const l=Tr(e)?1:q8(e)?128:Toe(e)?64:rr(e)?4:Gt(e)?2:0;return Ee(e,t,n,r,i,l,a,!0)}function Ja(e){return e?ax(e)||Nb in e?cr({},e):e:null}function Ci(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:l}=e,s=t?An(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&C3(s),ref:t&&t.ref?n&&i?vt(i)?i.concat(_0(t)):[i,_0(t)]:_0(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==tt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ci(e.ssContent),ssFallback:e.ssFallback&&Ci(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Zn(e=" ",t=0){return x(Vo,null,e,t)}function Ioe(e,t){const n=x(_u,null,e);return n.staticCount=t,n}function ft(e="",t=!1){return t?(oe(),Rn(Si,null,e)):x(Si,null,e)}function Ta(e){return e==null||typeof e=="boolean"?x(Si):vt(e)?x(tt,null,e.slice()):typeof e=="object"?Wl(e):x(Vo,null,String(e))}function Wl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ci(e)}function Cx(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(vt(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Cx(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Nb in t)?t._ctx=ci:i===3&&ci&&(ci.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Gt(t)?(t={default:t,_ctx:ci},n=32):(t=String(t),r&64?(n=16,t=[Zn(t)]):n=8);e.children=t,e.shapeFlag|=n}function An(...e){const t={};for(let n=0;nKr||ci;let Tx,fd,ID="__VUE_INSTANCE_SETTERS__";(fd=_C()[ID])||(fd=_C()[ID]=[]),fd.push(e=>Kr=e),Tx=e=>{fd.length>1?fd.forEach(t=>t(e)):fd[0](e)};const _c=e=>{Tx(e),e.scope.on()},cc=()=>{Kr&&Kr.scope.off(),Tx(null)};function w3(e){return e.vnode.shapeFlag&4}let Cp=!1;function x3(e,t=!1){Cp=t;const{props:n,children:r}=e.vnode,i=w3(e);_oe(e,n,i,t),yoe(e,r);const a=i?Doe(e,t):void 0;return Cp=!1,a}function Doe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ox(new Proxy(e.ctx,CC));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?R3(e):null;_c(e),Xp();const a=sl(r,e,0,[e.props,i]);if(Jp(),cc(),Xw(a)){if(a.then(cc,cc),t)return a.then(l=>{IC(e,l,t)}).catch(l=>{Uu(l,e,0)});e.asyncDep=a}else IC(e,a,t)}else O3(e,t)}function IC(e,t,n){Gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:rr(t)&&(e.setupState=cx(t)),O3(e,n)}let dv,AC;function Poe(e){dv=e,AC=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Kae))}}const Moe=()=>!dv;function O3(e,t,n){const r=e.type;if(!e.render){if(!t&&dv&&!r.render){const i=r.template||yx(e).template;if(i){const{isCustomElement:a,compilerOptions:l}=e.appContext.config,{delimiters:s,compilerOptions:u}=r,o=cr(cr({isCustomElement:a,delimiters:s},l),u);r.render=dv(i,o)}}e.render=r.render||Fo,AC&&AC(e)}_c(e),Xp(),coe(e),Jp(),cc()}function koe(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return oa(e,"get","$attrs"),t[n]}}))}function R3(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return koe(e)},slots:e.slots,emit:e.emit,expose:t}}function Db(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(cx(ox(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dm)return dm[n](e)},has(t,n){return n in t||n in dm}}))}function NC(e,t=!0){return Gt(e)?e.displayName||e.name:e.name||t&&e.__name}function $oe(e){return Gt(e)&&"__vccOpts"in e}const $=(e,t)=>Sae(e,t,Cp);function dl(e,t,n){const r=arguments.length;return r===2?rr(t)&&!vt(t)?Vr(t)?x(e,null,[t]):x(e,t):x(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vr(n)&&(n=[n]),x(e,t,n))}const I3=Symbol.for("v-scx"),A3=()=>He(I3);function Loe(){}function Foe(e,t,n,r){const i=n[r];if(i&&N3(i,e))return i;const a=t();return a.memo=e.slice(),n[r]=a}function N3(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&ia&&ia.push(e),!0}const D3="3.3.4",Boe={createComponentInstance:T3,setupComponent:x3,renderComponentRoot:h0,setCurrentRenderingInstance:Wm,isVNode:Vr,normalizeVNode:Ta},Uoe=Boe,Hoe=null,zoe=null,Voe="http://www.w3.org/2000/svg",eu=typeof document<"u"?document:null,AD=eu&&eu.createElement("template"),Goe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?eu.createElementNS(Voe,e):eu.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>eu.createTextNode(e),createComment:e=>eu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>eu.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const l=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{AD.innerHTML=r?`${e}`:e;const s=AD.content;if(r){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Yoe(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function joe(e,t,n){const r=e.style,i=Tr(n);if(n&&!i){if(t&&!Tr(t))for(const a in t)n[a]==null&&DC(r,a,"");for(const a in n)DC(r,a,n[a])}else{const a=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=a)}}const ND=/\s*!important$/;function DC(e,t,n){if(vt(n))n.forEach(r=>DC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Woe(e,t);ND.test(n)?e.setProperty(io(r),n.replace(ND,""),"important"):e[r]=n}}const DD=["Webkit","Moz","ms"],lE={};function Woe(e,t){const n=lE[t];if(n)return n;let r=aa(t);if(r!=="filter"&&r in e)return lE[t]=r;r=Mg(r);for(let i=0;icE||(Joe.then(()=>cE=0),cE=Date.now());function tse(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Aa(nse(r,n.value),t,5,[r])};return n.value=e,n.attached=ese(),n}function nse(e,t){if(vt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const kD=/^on[a-z]/,rse=(e,t,n,r,i=!1,a,l,s,u)=>{t==="class"?Yoe(e,r,i):t==="style"?joe(e,n,r):Pg(t)?Zw(t)||Qoe(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ise(e,t,r,i))?Koe(e,t,r,a,l,s,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),qoe(e,t,r,i))};function ise(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&kD.test(t)&&Gt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||kD.test(t)&&Tr(n)?!1:t in e}function P3(e,t){const n=Ce(e);class r extends Pb{constructor(a){super(n,a,t)}}return r.def=n,r}const ase=e=>P3(e,q3),ose=typeof HTMLElement<"u"?HTMLElement:class{};class Pb extends ose{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sn(()=>{this._connected||(pl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=(r,i=!1)=>{const{props:a,styles:l}=r;let s;if(a&&!vt(a))for(const u in a){const o=a[u];(o===Number||o&&o.type===Number)&&(u in this._props&&(this._props[u]=ov(this._props[u])),(s||(s=Object.create(null)))[aa(u)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=vt(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map(aa))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(t){let n=this.getAttribute(t);const r=aa(t);this._numberProps&&this._numberProps[r]&&(n=ov(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(io(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(io(t),n+""):n||this.removeAttribute(io(t))))}_update(){pl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=x(this._def,cr({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(a,l)=>{this.dispatchEvent(new CustomEvent(a,{detail:l}))};n.emit=(a,...l)=>{r(a,l),io(a)!==a&&r(io(a),l)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Pb){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function sse(e="$style"){{const t=hr();if(!t)return nr;const n=t.type.__cssModules;if(!n)return nr;const r=n[e];return r||nr}}function lse(e){const t=hr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>MC(a,i))},r=()=>{const i=e(t.proxy);PC(t.subTree,i),n(i)};Z8(r),_t(()=>{const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),ki(()=>i.disconnect())})}function PC(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{PC(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)MC(e.el,t);else if(e.type===tt)e.children.forEach(n=>PC(n,t));else if(e.type===_u){let{el:n,anchor:r}=e;for(;n&&(MC(n,t),n!==r);)n=n.nextSibling}}function MC(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Bl="transition",Af="animation",Ti=(e,{slots:t})=>dl(X8,k3(e),t);Ti.displayName="Transition";const M3={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cse=Ti.props=cr({},gx,M3),Vc=(e,t=[])=>{vt(e)?e.forEach(n=>n(...t)):e&&e(...t)},$D=e=>e?vt(e)?e.some(t=>t.length>1):e.length>1:!1;function k3(e){const t={};for(const B in e)B in M3||(t[B]=e[B]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:o=l,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=use(i),m=g&&g[0],h=g&&g[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:S,onLeaveCancelled:C,onBeforeAppear:w=v,onAppear:T=b,onAppearCancelled:O=y}=t,I=(B,P,k)=>{zl(B,P?c:s),zl(B,P?o:l),k&&k()},N=(B,P)=>{B._isLeaving=!1,zl(B,d),zl(B,f),zl(B,p),P&&P()},M=B=>(P,k)=>{const D=B?T:b,F=()=>I(P,B,k);Vc(D,[P,F]),LD(()=>{zl(P,B?u:a),Vs(P,B?c:s),$D(D)||FD(P,r,m,F)})};return cr(t,{onBeforeEnter(B){Vc(v,[B]),Vs(B,a),Vs(B,l)},onBeforeAppear(B){Vc(w,[B]),Vs(B,u),Vs(B,o)},onEnter:M(!1),onAppear:M(!0),onLeave(B,P){B._isLeaving=!0;const k=()=>N(B,P);Vs(B,d),L3(),Vs(B,p),LD(()=>{!B._isLeaving||(zl(B,d),Vs(B,f),$D(S)||FD(B,r,h,k))}),Vc(S,[B,k])},onEnterCancelled(B){I(B,!1),Vc(y,[B])},onAppearCancelled(B){I(B,!0),Vc(O,[B])},onLeaveCancelled(B){N(B),Vc(C,[B])}})}function use(e){if(e==null)return null;if(rr(e))return[uE(e.enter),uE(e.leave)];{const t=uE(e);return[t,t]}}function uE(e){return ov(e)}function Vs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function zl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function LD(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dse=0;function FD(e,t,n,r){const i=e._endId=++dse,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:l,timeout:s,propCount:u}=$3(e,t);if(!l)return r();const o=l+"end";let c=0;const d=()=>{e.removeEventListener(o,p),a()},p=f=>{f.target===e&&++c>=u&&d()};setTimeout(()=>{c(n[g]||"").split(", "),i=r(`${Bl}Delay`),a=r(`${Bl}Duration`),l=BD(i,a),s=r(`${Af}Delay`),u=r(`${Af}Duration`),o=BD(s,u);let c=null,d=0,p=0;t===Bl?l>0&&(c=Bl,d=l,p=a.length):t===Af?o>0&&(c=Af,d=o,p=u.length):(d=Math.max(l,o),c=d>0?l>o?Bl:Af:null,p=c?c===Bl?a.length:u.length:0);const f=c===Bl&&/\b(transform|all)(,|$)/.test(r(`${Bl}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:f}}function BD(e,t){for(;e.lengthUD(n)+UD(e[r])))}function UD(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function L3(){return document.body.offsetHeight}const F3=new WeakMap,B3=new WeakMap,U3={name:"TransitionGroup",props:cr({},cse,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=hr(),r=mx();let i,a;return ca(()=>{if(!i.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!hse(i[0].el,n.vnode.el,l))return;i.forEach(fse),i.forEach(mse);const s=i.filter(gse);L3(),s.forEach(u=>{const o=u.el,c=o.style;Vs(o,l),c.transform=c.webkitTransform=c.transitionDuration="";const d=o._moveCb=p=>{p&&p.target!==o||(!p||/transform$/.test(p.propertyName))&&(o.removeEventListener("transitionend",d),o._moveCb=null,zl(o,l))};o.addEventListener("transitionend",d)})}),()=>{const l=Ut(e),s=k3(l);let u=l.tag||tt;i=a,a=t.default?Rb(t.default()):[];for(let o=0;odelete e.mode;U3.props;const Hg=U3;function fse(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function mse(e){B3.set(e,e.el.getBoundingClientRect())}function gse(e){const t=F3.get(e),n=B3.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function hse(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=$3(r);return i.removeChild(r),a}const vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return vt(t)?n=>Kd(t,n):t};function _se(e){e.target.composing=!0}function HD(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Au={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=vc(i);const a=r||i.props&&i.props.type==="number";tl(e,t?"change":"input",l=>{if(l.target.composing)return;let s=e.value;n&&(s=s.trim()),a&&(s=av(s)),e._assign(s)}),n&&tl(e,"change",()=>{e.value=e.value.trim()}),t||(tl(e,"compositionstart",_se),tl(e,"compositionend",HD),tl(e,"change",HD))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e._assign=vc(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&av(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},wx={deep:!0,created(e,t,n){e._assign=vc(n),tl(e,"change",()=>{const r=e._modelValue,i=Tp(e),a=e.checked,l=e._assign;if(vt(r)){const s=bb(r,i),u=s!==-1;if(a&&!u)l(r.concat(i));else if(!a&&u){const o=[...r];o.splice(s,1),l(o)}}else if(Bu(r)){const s=new Set(r);a?s.add(i):s.delete(i),l(s)}else l(z3(e,a))})},mounted:zD,beforeUpdate(e,t,n){e._assign=vc(n),zD(e,t,n)}};function zD(e,{value:t,oldValue:n},r){e._modelValue=t,vt(t)?e.checked=bb(t,r.props.value)>-1:Bu(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=gc(t,z3(e,!0)))}const xx={created(e,{value:t},n){e.checked=gc(t,n.props.value),e._assign=vc(n),tl(e,"change",()=>{e._assign(Tp(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=vc(r),t!==n&&(e.checked=gc(t,r.props.value))}},H3={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Bu(t);tl(e,"change",()=>{const a=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?av(Tp(l)):Tp(l));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=vc(r)},mounted(e,{value:t}){VD(e,t)},beforeUpdate(e,t,n){e._assign=vc(n)},updated(e,{value:t}){VD(e,t)}};function VD(e,t){const n=e.multiple;if(!(n&&!vt(t)&&!Bu(t))){for(let r=0,i=e.options.length;r-1:a.selected=t.has(l);else if(gc(Tp(a),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Tp(e){return"_value"in e?e._value:e.value}function z3(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const V3={created(e,t,n){k_(e,t,n,null,"created")},mounted(e,t,n){k_(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){k_(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){k_(e,t,n,r,"updated")}};function G3(e,t){switch(e){case"SELECT":return H3;case"TEXTAREA":return Au;default:switch(t){case"checkbox":return wx;case"radio":return xx;default:return Au}}}function k_(e,t,n,r,i){const l=G3(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}function vse(){Au.getSSRProps=({value:e})=>({value:e}),xx.getSSRProps=({value:e},t)=>{if(t.props&&gc(t.props.value,e))return{checked:!0}},wx.getSSRProps=({value:e},t)=>{if(vt(e)){if(t.props&&bb(e,t.props.value)>-1)return{checked:!0}}else if(Bu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},V3.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=G3(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const bse=["ctrl","shift","alt","meta"],yse={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bse.some(n=>e[`${n}Key`]&&!t.includes(n))},Qm=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=io(n.key);if(t.some(i=>i===r||Sse[i]===r))return e(n)},Pa={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nf(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Nf(e,!0),r.enter(e)):r.leave(e,()=>{Nf(e,!1)}):Nf(e,t))},beforeUnmount(e,{value:t}){Nf(e,t)}};function Nf(e,t){e.style.display=t?e._vod:"none"}function Ese(){Pa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Y3=cr({patchProp:rse},Goe);let mm,GD=!1;function j3(){return mm||(mm=_3(Y3))}function W3(){return mm=GD?mm:v3(Y3),GD=!0,mm}const pl=(...e)=>{j3().render(...e)},q3=(...e)=>{W3().hydrate(...e)},K3=(...e)=>{const t=j3().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Z3(r);if(!i)return;const a=t._component;!Gt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const l=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t},Cse=(...e)=>{const t=W3().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Z3(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function Z3(e){return Tr(e)?document.querySelector(e):e}let YD=!1;const Tse=()=>{YD||(YD=!0,vse(),Ese())},wse=()=>{},xse=Object.freeze(Object.defineProperty({__proto__:null,compile:wse,EffectScope:ex,ReactiveEffect:kg,customRef:_ae,effect:Lie,effectScope:Mie,getCurrentScope:tx,isProxy:ax,isReactive:mu,isReadonly:Ou,isRef:zr,isShallow:Vm,markRaw:ox,onScopeDispose:w8,proxyRefs:cx,reactive:un,readonly:ix,ref:Oe,shallowReactive:F8,shallowReadonly:dae,shallowRef:Pe,stop:Fie,toRaw:Ut,toRef:xt,toRefs:Zd,toValue:mae,triggerRef:fae,unref:je,camelize:aa,capitalize:Mg,normalizeClass:Vt,normalizeProps:Xa,normalizeStyle:Ni,toDisplayString:Qt,toHandlerKey:um,BaseTransition:X8,BaseTransitionPropsValidators:gx,Comment:Si,Fragment:tt,KeepAlive:jae,Static:_u,Suspense:kae,Teleport:Ug,Text:Vo,assertNumber:Cae,callWithAsyncErrorHandling:Aa,callWithErrorHandling:sl,cloneVNode:Ci,compatUtils:zoe,computed:$,createBlock:Rn,createCommentVNode:ft,createElementBlock:pe,createElementVNode:Ee,createHydrationRenderer:v3,createPropsRestProxy:soe,createRenderer:_3,createSlots:bx,createStaticVNode:Ioe,createTextVNode:Zn,createVNode:x,defineAsyncComponent:Gae,defineComponent:Ce,defineEmits:Qae,defineExpose:Xae,defineModel:toe,defineOptions:Jae,defineProps:Zae,defineSlots:eoe,get devtools(){return xd},getCurrentInstance:hr,getTransitionRawChildren:Rb,guardReactiveProps:Ja,h:dl,handleError:Uu,hasInjectionContext:hoe,initCustomFormatter:Loe,inject:He,isMemoSame:N3,isRuntimeOnly:Moe,isVNode:Vr,mergeDefaults:aoe,mergeModels:ooe,mergeProps:An,nextTick:sn,onActivated:Fg,onBeforeMount:Ab,onBeforeUnmount:Xt,onBeforeUpdate:Bg,onDeactivated:hx,onErrorCaptured:i3,onMounted:_t,onRenderTracked:r3,onRenderTriggered:n3,onServerPrefetch:t3,onUnmounted:ki,onUpdated:ca,openBlock:oe,popScopeId:W8,provide:Dt,pushScopeId:j8,queuePostFlushCb:dx,registerRuntimeCompiler:Poe,renderList:Di,renderSlot:Et,resolveComponent:Jd,resolveDirective:ef,resolveDynamicComponent:hu,resolveFilter:Hoe,resolveTransitionHooks:Ep,setBlockTracking:RC,setDevtoolsHook:G8,setTransitionHooks:Ru,ssrContextKey:I3,ssrUtils:Uoe,toHandlers:s3,transformVNodeArgs:Ooe,useAttrs:l3,useModel:ioe,useSSRContext:A3,useSlots:roe,useTransitionState:mx,version:D3,warn:Eae,watch:ze,watchEffect:Rt,watchPostEffect:Z8,watchSyncEffect:Hae,withAsyncContext:loe,withCtx:pn,withDefaults:noe,withDirectives:mr,withMemo:Foe,withScopeId:Iae,Transition:Ti,TransitionGroup:Hg,VueElement:Pb,createApp:K3,createSSRApp:Cse,defineCustomElement:P3,defineSSRCustomElement:ase,hydrate:q3,initDirectivesForSSR:Tse,render:pl,useCssModule:sse,useCssVars:lse,vModelCheckbox:wx,vModelDynamic:V3,vModelRadio:xx,vModelSelect:H3,vModelText:Au,vShow:Pa,withKeys:Ox,withModifiers:Qm},Symbol.toStringTag,{value:"Module"}));var kn;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const l of i)a[l]=l;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),l={};for(const s of a)l[s]=i[s];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.push(l);return a},e.find=(i,a)=>{for(const l of i)if(a(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(kn||(kn={}));var kC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(kC||(kC={}));const mt=kn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xl=e=>{switch(typeof e){case"undefined":return mt.undefined;case"string":return mt.string;case"number":return isNaN(e)?mt.nan:mt.number;case"boolean":return mt.boolean;case"function":return mt.function;case"bigint":return mt.bigint;case"symbol":return mt.symbol;case"object":return Array.isArray(e)?mt.array:e===null?mt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?mt.promise:typeof Map<"u"&&e instanceof Map?mt.map:typeof Set<"u"&&e instanceof Set?mt.set:typeof Date<"u"&&e instanceof Date?mt.date:mt.object;default:return mt.unknown}},ot=kn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ose=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Bo extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const l of a.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let s=r,u=0;for(;un.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Bo.create=e=>new Bo(e);const Xm=(e,t)=>{let n;switch(e.code){case ot.invalid_type:e.received===mt.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ot.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,kn.jsonStringifyReplacer)}`;break;case ot.unrecognized_keys:n=`Unrecognized key(s) in object: ${kn.joinValues(e.keys,", ")}`;break;case ot.invalid_union:n="Invalid input";break;case ot.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${kn.joinValues(e.options)}`;break;case ot.invalid_enum_value:n=`Invalid enum value. Expected ${kn.joinValues(e.options)}, received '${e.received}'`;break;case ot.invalid_arguments:n="Invalid function arguments";break;case ot.invalid_return_type:n="Invalid function return type";break;case ot.invalid_date:n="Invalid date";break;case ot.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:kn.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ot.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ot.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ot.custom:n="Invalid input";break;case ot.invalid_intersection_types:n="Intersection results could not be merged";break;case ot.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ot.not_finite:n="Number must be finite";break;default:n=t.defaultError,kn.assertNever(e)}return{message:n}};let Q3=Xm;function Rse(e){Q3=e}function pv(){return Q3}const fv=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],l={...i,path:a};let s="";const u=r.filter(o=>!!o).slice().reverse();for(const o of u)s=o(l,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}},Ise=[];function ht(e,t){const n=fv({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,pv(),Xm].filter(r=>!!r)});e.common.issues.push(n)}class Pi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return rn;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return Pi.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:l}=i;if(a.status==="aborted"||l.status==="aborted")return rn;a.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(r[a.value]=l.value)}return{status:t.value,value:r}}}const rn=Object.freeze({status:"aborted"}),X3=e=>({status:"dirty",value:e}),ji=e=>({status:"valid",value:e}),$C=e=>e.status==="aborted",LC=e=>e.status==="dirty",Jm=e=>e.status==="valid",mv=e=>typeof Promise<"u"&&e instanceof Promise;var It;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(It||(It={}));class _s{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const jD=(e,t)=>{if(Jm(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Bo(e.common.issues);return this._error=n,this._error}}};function ln(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,s)=>l.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r!=null?r:s.defaultError}:{message:n!=null?n:s.defaultError},description:i}}class fn{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Xl(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Xl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pi,ctx:{common:t.parent.common,data:t.data,parsedType:Xl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(mv(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xl(t)},a=this._parseSync({data:t,path:i.path,parent:i});return jD(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xl(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(mv(i)?i:Promise.resolve(i));return jD(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const l=t(i),s=()=>a.addIssue({code:ot.custom,...r(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(u=>u?!0:(s(),!1)):l?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Go({schema:this,typeName:Lt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return ll.create(this,this._def)}nullable(){return Pu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Uo.create(this,this._def)}promise(){return xp.create(this,this._def)}or(t){return rg.create([this,t],this._def)}and(t){return ig.create(this,t,this._def)}transform(t){return new Go({...ln(this._def),schema:this,typeName:Lt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new cg({...ln(this._def),innerType:this,defaultValue:n,typeName:Lt.ZodDefault})}brand(){return new eF({typeName:Lt.ZodBranded,type:this,...ln(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new vv({...ln(this._def),innerType:this,catchValue:n,typeName:Lt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return zg.create(this,t)}readonly(){return yv.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ase=/^c[^\s-]{8,}$/i,Nse=/^[a-z][a-z0-9]*$/,Dse=/^[0-9A-HJKMNP-TV-Z]{26}$/,Pse=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Mse=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,kse="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dE;const $se=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Lse=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Fse=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Bse(e,t){return!!((t==="v4"||!t)&&$se.test(e)||(t==="v6"||!t)&&Lse.test(e))}class Do extends fn{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==mt.string){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.string,received:a.parsedType}),rn}const r=new Pi;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(i=this._getOrReturnCtx(t,i),ht(i,{code:ot.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const l=t.data.length>a.value,s=t.data.lengtht.test(i),{validation:n,code:ot.invalid_string,...It.errToObj(r)})}_addCheck(t){return new Do({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...It.errToObj(t)})}url(t){return this._addCheck({kind:"url",...It.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...It.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...It.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...It.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...It.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...It.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...It.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...It.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...It.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...It.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...It.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...It.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...It.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...It.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...It.errToObj(n)})}nonempty(t){return this.min(1,It.errToObj(t))}trim(){return new Do({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Do({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Do({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Do({checks:[],typeName:Lt.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ln(e)})};function Use(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),l=parseInt(t.toFixed(i).replace(".",""));return a%l/Math.pow(10,i)}class bc extends fn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==mt.number){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.number,received:a.parsedType}),rn}let r;const i=new Pi;for(const a of this._def.checks)a.kind==="int"?kn.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?Use(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.not_finite,message:a.message}),i.dirty()):kn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,It.toString(n))}gt(t,n){return this.setLimit("min",t,!1,It.toString(n))}lte(t,n){return this.setLimit("max",t,!0,It.toString(n))}lt(t,n){return this.setLimit("max",t,!1,It.toString(n))}setLimit(t,n,r,i){return new bc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:It.toString(i)}]})}_addCheck(t){return new bc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:It.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:It.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:It.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:It.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:It.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:It.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:It.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:It.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:It.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&kn.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew bc({checks:[],typeName:Lt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ln(e)});class yc extends fn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==mt.bigint){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.bigint,received:a.parsedType}),rn}let r;const i=new Pi;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):kn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,It.toString(n))}gt(t,n){return this.setLimit("min",t,!1,It.toString(n))}lte(t,n){return this.setLimit("max",t,!0,It.toString(n))}lt(t,n){return this.setLimit("max",t,!1,It.toString(n))}setLimit(t,n,r,i){return new yc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:It.toString(i)}]})}_addCheck(t){return new yc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:It.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:It.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:It.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:It.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:It.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new yc({checks:[],typeName:Lt.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ln(e)})};class eg extends fn{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==mt.boolean){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.boolean,received:r.parsedType}),rn}return ji(t.data)}}eg.create=e=>new eg({typeName:Lt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ln(e)});class Nu extends fn{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==mt.date){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.date,received:a.parsedType}),rn}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_date}),rn}const r=new Pi;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(i=this._getOrReturnCtx(t,i),ht(i,{code:ot.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):kn.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Nu({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:It.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:It.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Nu({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Lt.ZodDate,...ln(e)});class gv extends fn{_parse(t){if(this._getType(t)!==mt.symbol){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.symbol,received:r.parsedType}),rn}return ji(t.data)}}gv.create=e=>new gv({typeName:Lt.ZodSymbol,...ln(e)});class tg extends fn{_parse(t){if(this._getType(t)!==mt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.undefined,received:r.parsedType}),rn}return ji(t.data)}}tg.create=e=>new tg({typeName:Lt.ZodUndefined,...ln(e)});class ng extends fn{_parse(t){if(this._getType(t)!==mt.null){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.null,received:r.parsedType}),rn}return ji(t.data)}}ng.create=e=>new ng({typeName:Lt.ZodNull,...ln(e)});class wp extends fn{constructor(){super(...arguments),this._any=!0}_parse(t){return ji(t.data)}}wp.create=e=>new wp({typeName:Lt.ZodAny,...ln(e)});class vu extends fn{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ji(t.data)}}vu.create=e=>new vu({typeName:Lt.ZodUnknown,...ln(e)});class fl extends fn{_parse(t){const n=this._getOrReturnCtx(t);return ht(n,{code:ot.invalid_type,expected:mt.never,received:n.parsedType}),rn}}fl.create=e=>new fl({typeName:Lt.ZodNever,...ln(e)});class hv extends fn{_parse(t){if(this._getType(t)!==mt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.void,received:r.parsedType}),rn}return ji(t.data)}}hv.create=e=>new hv({typeName:Lt.ZodVoid,...ln(e)});class Uo extends fn{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==mt.array)return ht(n,{code:ot.invalid_type,expected:mt.array,received:n.parsedType}),rn;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,s=n.data.lengthi.maxLength.value&&(ht(n,{code:ot.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,s)=>i.type._parseAsync(new _s(n,l,n.path,s)))).then(l=>Pi.mergeArray(r,l));const a=[...n.data].map((l,s)=>i.type._parseSync(new _s(n,l,n.path,s)));return Pi.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Uo({...this._def,minLength:{value:t,message:It.toString(n)}})}max(t,n){return new Uo({...this._def,maxLength:{value:t,message:It.toString(n)}})}length(t,n){return new Uo({...this._def,exactLength:{value:t,message:It.toString(n)}})}nonempty(t){return this.min(1,t)}}Uo.create=(e,t)=>new Uo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Lt.ZodArray,...ln(t)});function Od(e){if(e instanceof Or){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ll.create(Od(r))}return new Or({...e._def,shape:()=>t})}else return e instanceof Uo?new Uo({...e._def,type:Od(e.element)}):e instanceof ll?ll.create(Od(e.unwrap())):e instanceof Pu?Pu.create(Od(e.unwrap())):e instanceof vs?vs.create(e.items.map(t=>Od(t))):e}class Or extends fn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=kn.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==mt.object){const o=this._getOrReturnCtx(t);return ht(o,{code:ot.invalid_type,expected:mt.object,received:o.parsedType}),rn}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:l}=this._getCached(),s=[];if(!(this._def.catchall instanceof fl&&this._def.unknownKeys==="strip"))for(const o in i.data)l.includes(o)||s.push(o);const u=[];for(const o of l){const c=a[o],d=i.data[o];u.push({key:{status:"valid",value:o},value:c._parse(new _s(i,d,i.path,o)),alwaysSet:o in i.data})}if(this._def.catchall instanceof fl){const o=this._def.unknownKeys;if(o==="passthrough")for(const c of s)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(o==="strict")s.length>0&&(ht(i,{code:ot.unrecognized_keys,keys:s}),r.dirty());else if(o!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const o=this._def.catchall;for(const c of s){const d=i.data[c];u.push({key:{status:"valid",value:c},value:o._parse(new _s(i,d,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const o=[];for(const c of u){const d=await c.key;o.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return o}).then(o=>Pi.mergeObjectSync(r,o)):Pi.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return It.errToObj,new Or({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,l,s;const u=(l=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=It.errToObj(t).message)!==null&&s!==void 0?s:u}:{message:u}}}:{}})}strip(){return new Or({...this._def,unknownKeys:"strip"})}passthrough(){return new Or({...this._def,unknownKeys:"passthrough"})}extend(t){return new Or({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Or({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Lt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Or({...this._def,catchall:t})}pick(t){const n={};return kn.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Or({...this._def,shape:()=>n})}omit(t){const n={};return kn.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Or({...this._def,shape:()=>n})}deepPartial(){return Od(this)}partial(t){const n={};return kn.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Or({...this._def,shape:()=>n})}required(t){const n={};return kn.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof ll;)a=a._def.innerType;n[r]=a}}),new Or({...this._def,shape:()=>n})}keyof(){return J3(kn.objectKeys(this.shape))}}Or.create=(e,t)=>new Or({shape:()=>e,unknownKeys:"strip",catchall:fl.create(),typeName:Lt.ZodObject,...ln(t)});Or.strictCreate=(e,t)=>new Or({shape:()=>e,unknownKeys:"strict",catchall:fl.create(),typeName:Lt.ZodObject,...ln(t)});Or.lazycreate=(e,t)=>new Or({shape:e,unknownKeys:"strip",catchall:fl.create(),typeName:Lt.ZodObject,...ln(t)});class rg extends fn{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const l=a.map(s=>new Bo(s.ctx.common.issues));return ht(n,{code:ot.invalid_union,unionErrors:l}),rn}if(n.common.async)return Promise.all(r.map(async a=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let a;const l=[];for(const u of r){const o={...n,common:{...n.common,issues:[]},parent:null},c=u._parseSync({data:n.data,path:n.path,parent:o});if(c.status==="valid")return c;c.status==="dirty"&&!a&&(a={result:c,ctx:o}),o.common.issues.length&&l.push(o.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=l.map(u=>new Bo(u));return ht(n,{code:ot.invalid_union,unionErrors:s}),rn}}get options(){return this._def.options}}rg.create=(e,t)=>new rg({options:e,typeName:Lt.ZodUnion,...ln(t)});const v0=e=>e instanceof og?v0(e.schema):e instanceof Go?v0(e.innerType()):e instanceof sg?[e.value]:e instanceof Sc?e.options:e instanceof lg?Object.keys(e.enum):e instanceof cg?v0(e._def.innerType):e instanceof tg?[void 0]:e instanceof ng?[null]:null;class Mb extends fn{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.object)return ht(n,{code:ot.invalid_type,expected:mt.object,received:n.parsedType}),rn;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(ht(n,{code:ot.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),rn)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const l=v0(a.shape[t]);if(!l)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of l){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Mb({typeName:Lt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ln(r)})}}function FC(e,t){const n=Xl(e),r=Xl(t);if(e===t)return{valid:!0,data:e};if(n===mt.object&&r===mt.object){const i=kn.objectKeys(t),a=kn.objectKeys(e).filter(s=>i.indexOf(s)!==-1),l={...e,...t};for(const s of a){const u=FC(e[s],t[s]);if(!u.valid)return{valid:!1};l[s]=u.data}return{valid:!0,data:l}}else if(n===mt.array&&r===mt.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a{if($C(a)||$C(l))return rn;const s=FC(a.value,l.value);return s.valid?((LC(a)||LC(l))&&n.dirty(),{status:n.value,value:s.data}):(ht(r,{code:ot.invalid_intersection_types}),rn)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,l])=>i(a,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ig.create=(e,t,n)=>new ig({left:e,right:t,typeName:Lt.ZodIntersection,...ln(n)});class vs extends fn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.array)return ht(r,{code:ot.invalid_type,expected:mt.array,received:r.parsedType}),rn;if(r.data.lengththis._def.items.length&&(ht(r,{code:ot.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((l,s)=>{const u=this._def.items[s]||this._def.rest;return u?u._parse(new _s(r,l,r.path,s)):null}).filter(l=>!!l);return r.common.async?Promise.all(a).then(l=>Pi.mergeArray(n,l)):Pi.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new vs({...this._def,rest:t})}}vs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vs({items:e,typeName:Lt.ZodTuple,rest:null,...ln(t)})};class ag extends fn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.object)return ht(r,{code:ot.invalid_type,expected:mt.object,received:r.parsedType}),rn;const i=[],a=this._def.keyType,l=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new _s(r,s,r.path,s)),value:l._parse(new _s(r,r.data[s],r.path,s))});return r.common.async?Pi.mergeObjectAsync(n,i):Pi.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof fn?new ag({keyType:t,valueType:n,typeName:Lt.ZodRecord,...ln(r)}):new ag({keyType:Do.create(),valueType:t,typeName:Lt.ZodRecord,...ln(n)})}}class _v extends fn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.map)return ht(r,{code:ot.invalid_type,expected:mt.map,received:r.parsedType}),rn;const i=this._def.keyType,a=this._def.valueType,l=[...r.data.entries()].map(([s,u],o)=>({key:i._parse(new _s(r,s,r.path,[o,"key"])),value:a._parse(new _s(r,u,r.path,[o,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const u of l){const o=await u.key,c=await u.value;if(o.status==="aborted"||c.status==="aborted")return rn;(o.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(o.value,c.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const u of l){const o=u.key,c=u.value;if(o.status==="aborted"||c.status==="aborted")return rn;(o.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(o.value,c.value)}return{status:n.value,value:s}}}}_v.create=(e,t,n)=>new _v({valueType:t,keyType:e,typeName:Lt.ZodMap,...ln(n)});class Du extends fn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.set)return ht(r,{code:ot.invalid_type,expected:mt.set,received:r.parsedType}),rn;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(ht(r,{code:ot.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function l(u){const o=new Set;for(const c of u){if(c.status==="aborted")return rn;c.status==="dirty"&&n.dirty(),o.add(c.value)}return{status:n.value,value:o}}const s=[...r.data.values()].map((u,o)=>a._parse(new _s(r,u,r.path,o)));return r.common.async?Promise.all(s).then(u=>l(u)):l(s)}min(t,n){return new Du({...this._def,minSize:{value:t,message:It.toString(n)}})}max(t,n){return new Du({...this._def,maxSize:{value:t,message:It.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Du.create=(e,t)=>new Du({valueType:e,minSize:null,maxSize:null,typeName:Lt.ZodSet,...ln(t)});class ep extends fn{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.function)return ht(n,{code:ot.invalid_type,expected:mt.function,received:n.parsedType}),rn;function r(s,u){return fv({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,pv(),Xm].filter(o=>!!o),issueData:{code:ot.invalid_arguments,argumentsError:u}})}function i(s,u){return fv({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,pv(),Xm].filter(o=>!!o),issueData:{code:ot.invalid_return_type,returnTypeError:u}})}const a={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof xp){const s=this;return ji(async function(...u){const o=new Bo([]),c=await s._def.args.parseAsync(u,a).catch(f=>{throw o.addIssue(r(u,f)),o}),d=await Reflect.apply(l,this,c);return await s._def.returns._def.type.parseAsync(d,a).catch(f=>{throw o.addIssue(i(d,f)),o})})}else{const s=this;return ji(function(...u){const o=s._def.args.safeParse(u,a);if(!o.success)throw new Bo([r(u,o.error)]);const c=Reflect.apply(l,this,o.data),d=s._def.returns.safeParse(c,a);if(!d.success)throw new Bo([i(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ep({...this._def,args:vs.create(t).rest(vu.create())})}returns(t){return new ep({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ep({args:t||vs.create([]).rest(vu.create()),returns:n||vu.create(),typeName:Lt.ZodFunction,...ln(r)})}}class og extends fn{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}og.create=(e,t)=>new og({getter:e,typeName:Lt.ZodLazy,...ln(t)});class sg extends fn{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ht(n,{received:n.data,code:ot.invalid_literal,expected:this._def.value}),rn}return{status:"valid",value:t.data}}get value(){return this._def.value}}sg.create=(e,t)=>new sg({value:e,typeName:Lt.ZodLiteral,...ln(t)});function J3(e,t){return new Sc({values:e,typeName:Lt.ZodEnum,...ln(t)})}class Sc extends fn{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ht(n,{expected:kn.joinValues(r),received:n.parsedType,code:ot.invalid_type}),rn}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return ht(n,{received:n.data,code:ot.invalid_enum_value,options:r}),rn}return ji(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Sc.create(t)}exclude(t){return Sc.create(this.options.filter(n=>!t.includes(n)))}}Sc.create=J3;class lg extends fn{_parse(t){const n=kn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==mt.string&&r.parsedType!==mt.number){const i=kn.objectValues(n);return ht(r,{expected:kn.joinValues(i),received:r.parsedType,code:ot.invalid_type}),rn}if(n.indexOf(t.data)===-1){const i=kn.objectValues(n);return ht(r,{received:r.data,code:ot.invalid_enum_value,options:i}),rn}return ji(t.data)}get enum(){return this._def.values}}lg.create=(e,t)=>new lg({values:e,typeName:Lt.ZodNativeEnum,...ln(t)});class xp extends fn{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.promise&&n.common.async===!1)return ht(n,{code:ot.invalid_type,expected:mt.promise,received:n.parsedType}),rn;const r=n.parsedType===mt.promise?n.data:Promise.resolve(n.data);return ji(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}xp.create=(e,t)=>new xp({type:e,typeName:Lt.ZodPromise,...ln(t)});class Go extends fn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Lt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:l=>{ht(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const l=i.transform(r.data,a);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(l).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:l,path:r.path,parent:r})}if(i.type==="refinement"){const l=s=>{const u=i.refinement(s,a);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?rn:(s.status==="dirty"&&n.dirty(),l(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?rn:(s.status==="dirty"&&n.dirty(),l(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Jm(l))return l;const s=i.transform(l.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Jm(l)?Promise.resolve(i.transform(l.value,a)).then(s=>({status:n.value,value:s})):l);kn.assertNever(i)}}Go.create=(e,t,n)=>new Go({schema:e,typeName:Lt.ZodEffects,effect:t,...ln(n)});Go.createWithPreprocess=(e,t,n)=>new Go({schema:t,effect:{type:"preprocess",transform:e},typeName:Lt.ZodEffects,...ln(n)});class ll extends fn{_parse(t){return this._getType(t)===mt.undefined?ji(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ll.create=(e,t)=>new ll({innerType:e,typeName:Lt.ZodOptional,...ln(t)});class Pu extends fn{_parse(t){return this._getType(t)===mt.null?ji(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pu.create=(e,t)=>new Pu({innerType:e,typeName:Lt.ZodNullable,...ln(t)});class cg extends fn{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===mt.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}cg.create=(e,t)=>new cg({innerType:e,typeName:Lt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ln(t)});class vv extends fn{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mv(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Bo(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}vv.create=(e,t)=>new vv({innerType:e,typeName:Lt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ln(t)});class bv extends fn{_parse(t){if(this._getType(t)!==mt.nan){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.nan,received:r.parsedType}),rn}return{status:"valid",value:t.data}}}bv.create=e=>new bv({typeName:Lt.ZodNaN,...ln(e)});const Hse=Symbol("zod_brand");class eF extends fn{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class zg extends fn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?rn:a.status==="dirty"?(n.dirty(),X3(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?rn:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new zg({in:t,out:n,typeName:Lt.ZodPipeline})}}class yv extends fn{_parse(t){const n=this._def.innerType._parse(t);return Jm(n)&&(n.value=Object.freeze(n.value)),n}}yv.create=(e,t)=>new yv({innerType:e,typeName:Lt.ZodReadonly,...ln(t)});const tF=(e,t={},n)=>e?wp.create().superRefine((r,i)=>{var a,l;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,u=(l=(a=s.fatal)!==null&&a!==void 0?a:n)!==null&&l!==void 0?l:!0,o=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...o,fatal:u})}}):wp.create(),zse={object:Or.lazycreate};var Lt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Lt||(Lt={}));const Vse=(e,t={message:`Input not instance of ${e.name}`})=>tF(n=>n instanceof e,t),nF=Do.create,rF=bc.create,Gse=bv.create,Yse=yc.create,iF=eg.create,jse=Nu.create,Wse=gv.create,qse=tg.create,Kse=ng.create,Zse=wp.create,Qse=vu.create,Xse=fl.create,Jse=hv.create,ele=Uo.create,tle=Or.create,nle=Or.strictCreate,rle=rg.create,ile=Mb.create,ale=ig.create,ole=vs.create,sle=ag.create,lle=_v.create,cle=Du.create,ule=ep.create,dle=og.create,ple=sg.create,fle=Sc.create,mle=lg.create,gle=xp.create,WD=Go.create,hle=ll.create,_le=Pu.create,vle=Go.createWithPreprocess,ble=zg.create,yle=()=>nF().optional(),Sle=()=>rF().optional(),Ele=()=>iF().optional(),Cle={string:e=>Do.create({...e,coerce:!0}),number:e=>bc.create({...e,coerce:!0}),boolean:e=>eg.create({...e,coerce:!0}),bigint:e=>yc.create({...e,coerce:!0}),date:e=>Nu.create({...e,coerce:!0})},Tle=rn;var pWe=Object.freeze({__proto__:null,defaultErrorMap:Xm,setErrorMap:Rse,getErrorMap:pv,makeIssue:fv,EMPTY_PATH:Ise,addIssueToContext:ht,ParseStatus:Pi,INVALID:rn,DIRTY:X3,OK:ji,isAborted:$C,isDirty:LC,isValid:Jm,isAsync:mv,get util(){return kn},get objectUtil(){return kC},ZodParsedType:mt,getParsedType:Xl,ZodType:fn,ZodString:Do,ZodNumber:bc,ZodBigInt:yc,ZodBoolean:eg,ZodDate:Nu,ZodSymbol:gv,ZodUndefined:tg,ZodNull:ng,ZodAny:wp,ZodUnknown:vu,ZodNever:fl,ZodVoid:hv,ZodArray:Uo,ZodObject:Or,ZodUnion:rg,ZodDiscriminatedUnion:Mb,ZodIntersection:ig,ZodTuple:vs,ZodRecord:ag,ZodMap:_v,ZodSet:Du,ZodFunction:ep,ZodLazy:og,ZodLiteral:sg,ZodEnum:Sc,ZodNativeEnum:lg,ZodPromise:xp,ZodEffects:Go,ZodTransformer:Go,ZodOptional:ll,ZodNullable:Pu,ZodDefault:cg,ZodCatch:vv,ZodNaN:bv,BRAND:Hse,ZodBranded:eF,ZodPipeline:zg,ZodReadonly:yv,custom:tF,Schema:fn,ZodSchema:fn,late:zse,get ZodFirstPartyTypeKind(){return Lt},coerce:Cle,any:Zse,array:ele,bigint:Yse,boolean:iF,date:jse,discriminatedUnion:ile,effect:WD,enum:fle,function:ule,instanceof:Vse,intersection:ale,lazy:dle,literal:ple,map:lle,nan:Gse,nativeEnum:mle,never:Xse,null:Kse,nullable:_le,number:rF,object:tle,oboolean:Ele,onumber:Sle,optional:hle,ostring:yle,pipeline:ble,preprocess:vle,promise:gle,record:sle,set:cle,strictObject:nle,string:nF,symbol:Wse,transformer:WD,tuple:ole,undefined:qse,union:rle,unknown:Qse,void:Jse,NEVER:Tle,ZodIssueCode:ot,quotelessJson:Ose,ZodError:Bo});const fWe=(e,t)=>{Object.keys(t).forEach(n=>{e.component(n,t[n])})},eo=class{static init(){eo.createContainer(),eo.addStylesheetToDocument()}static createContainer(){eo.toastContainer=document.createElement("div"),Object.assign(eo.toastContainer.style,wle),document.body.appendChild(eo.toastContainer)}static addStylesheetToDocument(){const t=document.createElement("style");t.innerHTML=xle,document.head.appendChild(t)}static info(t,n=1e4){eo.showMessage(t,n)}static error(t,n=1e4){eo.showMessage(t,n,{"background-color":"#ffaaaa","font-family":"monospace",color:"#000000"})}static showMessage(t,n,r={}){if(!eo.toastContainer)throw new Error("Toast not initialized");if(!t.trim())return;const i=eo.makeToastMessageElement(t);Object.assign(i.style,r),eo.toastContainer.appendChild(i),setTimeout(()=>i.remove(),n)}static makeToastMessageElement(t){const n=document.createElement("div");return n.innerHTML=t,n.classList.add("abstra-toast-message"),n.onclick=n.remove,n}};let pE=eo;yn(pE,"toastContainer",null);const wle={position:"fixed",bottom:"10px",right:"0",left:"0",display:"flex",flexDirection:"column",alignItems:"center"},xle=` +(found in ${lm(e)})`},lie=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(a,l,s)=>{const u=lm(l,!1),o=l?sie(l):"",c={componentName:u,lifecycleHook:s,trace:o};if(t.attachProps&&l&&(l.$options&&l.$options.propsData?c.propsData=l.$options.propsData:l.$props&&(c.propsData=l.$props)),setTimeout(()=>{ri().withScope(d=>{d.setContext("vue",c),ri().captureException(a)})}),typeof n=="function"&&n.call(e,a,l,s),t.logErrors){const d=typeof console<"u",p=`Error in ${s}: "${a&&a.toString()}"`;r?r.call(null,p,l,o):d&&!i&&console.error(`[Vue warn]: ${p}${o}`)}}},iD="ui.vue",cie={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function gC(){return ri().getScope().getTransaction()}function uie(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const die=e=>{const t=(e.hooks||[]).concat(b8).filter((r,i,a)=>a.indexOf(r)===i),n={};for(const r of t){const i=cie[r];if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&yp.warn(`Unknown hook: ${r}`);continue}for(const a of i)n[a]=function(){const l=this.$root===this;if(l){const o=gC();o&&(this.$_sentryRootSpan=this.$_sentryRootSpan||o.startChild({description:"Application Render",op:`${iD}.render`}))}const s=lm(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;if(!(!l&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},a==i[0]){const o=this.$root&&this.$root.$_sentryRootSpan||gC();if(o){const c=this.$_sentrySpans[r];c&&!c.endTimestamp&&c.finish(),this.$_sentrySpans[r]=o.startChild({description:`Vue <${s}>`,op:`${iD}.${r}`})}}else{const o=this.$_sentrySpans[r];if(!o)return;o.finish(),uie(this,Kw(),e.timeout)}}}return n},pie=Lo,fie={Vue:pie.Vue,attachProps:!0,logErrors:!0,hooks:b8,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:G0}],version:G0}}};function mie(e={}){const t={...fie,...e};if(zQ(t),!t.Vue&&!t.app){console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).");return}t.app?f8(t.app).forEach(r=>aD(r,t)):t.Vue&&aD(t.Vue,t)}const aD=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`."),lie(e,t),nie(t)&&e.mixin(die({...t,...t.tracingOptions}))};function gie(e,t={}){return(n,r=!0,i=!0)=>{const a={"routing.instrumentation":"vue-router"};r&&Gn&&Gn.location&&n({name:Gn.location.pathname,op:"pageload",tags:a,metadata:{source:"url"}}),e.onError(l=>Y4(l)),e.beforeEach((l,s,u)=>{const o=s.name==null&&s.matched.length===0,c={params:l.params,query:l.query};let d=l.path,p="url";if(l.name&&t.routeLabel!=="path"?(d=l.name.toString(),p="custom"):l.matched[0]&&l.matched[0].path&&(d=l.matched[0].path,p="route"),r&&o){const f=gC();f&&(f.metadata.source!=="custom"&&f.setName(d,p),f.setData("params",c.params),f.setData("query",c.query))}i&&!o&&n({name:d,op:"navigation",tags:a,data:c,metadata:{source:p}}),u&&u()})}}var hie=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};hie.SENTRY_RELEASE={id:"e20785eb45a1b14ffe51f8e09f2bd2adbd28c4c5"};const cWe=(e,t)=>{mie({app:e,dsn:"https://92a7a6b6bf4d455dab113338d8518956@o1317386.ingest.sentry.io/6570769",replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new nv({routingInstrumentation:gie(t)}),new Um],enabled:!0,tracesSampleRate:1,release:"e20785eb45a1b14ffe51f8e09f2bd2adbd28c4c5"})};class uWe{constructor(t,n,r=localStorage){yn(this,"key");this.validator=t,this.sufix=n,this.storage=r,this.key=`abstra:${this.sufix}`}get(){const t=this.storage.getItem(this.key);if(t==null)return null;try{return this.validator.parse(JSON.parse(t))}catch{return null}}set(t){try{this.validator.parse(t),this.storage.setItem(this.key,JSON.stringify(t))}catch{}}remove(){this.storage.removeItem(this.key)}pop(){const t=this.get();return this.remove(),t}}function hC(e){this.message=e}hC.prototype=new Error,hC.prototype.name="InvalidCharacterError";var oD=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new hC("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,l="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?l+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return l};function _ie(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(oD(n).replace(/(.)/g,function(r,i){var a=i.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}(t)}catch{return oD(t)}}function rv(e){this.message=e}function dWe(e,t){if(typeof e!="string")throw new rv("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(_ie(e.split(".")[n]))}catch(r){throw new rv("Invalid token specified: "+r.message)}}rv.prototype=new Error,rv.prototype.name="InvalidTokenError";function _b(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const nr={},Wd=[],Fo=()=>{},vie=()=>!1,bie=/^on[^a-z]/,Pg=e=>bie.test(e),Zw=e=>e.startsWith("onUpdate:"),cr=Object.assign,Qw=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yie=Object.prototype.hasOwnProperty,Pn=(e,t)=>yie.call(e,t),vt=Array.isArray,qd=e=>Qp(e)==="[object Map]",Bu=e=>Qp(e)==="[object Set]",sD=e=>Qp(e)==="[object Date]",Sie=e=>Qp(e)==="[object RegExp]",Gt=e=>typeof e=="function",Tr=e=>typeof e=="string",zm=e=>typeof e=="symbol",rr=e=>e!==null&&typeof e=="object",Xw=e=>rr(e)&&Gt(e.then)&&Gt(e.catch),y8=Object.prototype.toString,Qp=e=>y8.call(e),Eie=e=>Qp(e).slice(8,-1),S8=e=>Qp(e)==="[object Object]",Jw=e=>Tr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cm=_b(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Cie=/-(\w)/g,aa=vb(e=>e.replace(Cie,(t,n)=>n?n.toUpperCase():"")),Tie=/\B([A-Z])/g,io=vb(e=>e.replace(Tie,"-$1").toLowerCase()),Mg=vb(e=>e.charAt(0).toUpperCase()+e.slice(1)),um=vb(e=>e?`on${Mg(e)}`:""),Sp=(e,t)=>!Object.is(e,t),Kd=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},av=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ov=e=>{const t=Tr(e)?Number(e):NaN;return isNaN(t)?e:t};let lD;const _C=()=>lD||(lD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),wie="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",xie=_b(wie);function Ni(e){if(vt(e)){const t={};for(let n=0;n{if(n){const r=n.split(Rie);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Vt(e){let t="";if(Tr(e))t=e;else if(vt(e))for(let n=0;ngc(n,t))}const Qt=e=>Tr(e)?e:e==null?"":vt(e)||rr(e)&&(e.toString===y8||!Gt(e.toString))?JSON.stringify(e,C8,2):String(e),C8=(e,t)=>t&&t.__v_isRef?C8(e,t.value):qd(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Bu(t)?{[`Set(${t.size})`]:[...t.values()]}:rr(t)&&!vt(t)&&!S8(t)?String(t):t;let Ea;class ex{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ea,!t&&Ea&&(this.index=(Ea.scopes||(Ea.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ea;try{return Ea=this,t()}finally{Ea=n}}}on(){Ea=this}off(){Ea=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},x8=e=>(e.w&hc)>0,O8=e=>(e.n&hc)>0,kie=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||c>=u)&&s.push(o)})}else switch(n!==void 0&&s.push(l.get(n)),t){case"add":vt(e)?Jw(n)&&s.push(l.get("length")):(s.push(l.get(fu)),qd(e)&&s.push(l.get(bC)));break;case"delete":vt(e)||(s.push(l.get(fu)),qd(e)&&s.push(l.get(bC)));break;case"set":qd(e)&&s.push(l.get(fu));break}if(s.length===1)s[0]&&yC(s[0]);else{const u=[];for(const o of s)o&&u.push(...o);yC(nx(u))}}function yC(e,t){const n=vt(e)?e:[...e];for(const r of n)r.computed&&uD(r);for(const r of n)r.computed||uD(r)}function uD(e,t){(e!==Ro||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Bie(e,t){var n;return(n=sv.get(e))==null?void 0:n.get(t)}const Uie=_b("__proto__,__v_isRef,__isVue"),A8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zm)),Hie=yb(),zie=yb(!1,!0),Vie=yb(!0),Gie=yb(!0,!0),dD=Yie();function Yie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ut(this);for(let a=0,l=this.length;a{e[t]=function(...n){Xp();const r=Ut(this)[t].apply(this,n);return Jp(),r}}),e}function jie(e){const t=Ut(this);return oa(t,"has",e),t.hasOwnProperty(e)}function yb(e=!1,t=!1){return function(r,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?L8:$8:t?k8:M8).get(r))return r;const l=vt(r);if(!e){if(l&&Pn(dD,i))return Reflect.get(dD,i,a);if(i==="hasOwnProperty")return jie}const s=Reflect.get(r,i,a);return(zm(i)?A8.has(i):Uie(i))||(e||oa(r,"get",i),t)?s:zr(s)?l&&Jw(i)?s:s.value:rr(s)?e?ix(s):un(s):s}}const Wie=N8(),qie=N8(!0);function N8(e=!1){return function(n,r,i,a){let l=n[r];if(Ou(l)&&zr(l)&&!zr(i))return!1;if(!e&&(!Vm(i)&&!Ou(i)&&(l=Ut(l),i=Ut(i)),!vt(n)&&zr(l)&&!zr(i)))return l.value=i,!0;const s=vt(n)&&Jw(r)?Number(r)e,Sb=e=>Reflect.getPrototypeOf(e);function w_(e,t,n=!1,r=!1){e=e.__v_raw;const i=Ut(e),a=Ut(t);n||(t!==a&&oa(i,"get",t),oa(i,"get",a));const{has:l}=Sb(i),s=r?rx:n?sx:Gm;if(l.call(i,t))return s(e.get(t));if(l.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function x_(e,t=!1){const n=this.__v_raw,r=Ut(n),i=Ut(e);return t||(e!==i&&oa(r,"has",e),oa(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function O_(e,t=!1){return e=e.__v_raw,!t&&oa(Ut(e),"iterate",fu),Reflect.get(e,"size",e)}function pD(e){e=Ut(e);const t=Ut(this);return Sb(t).has.call(t,e)||(t.add(e),ul(t,"add",e,e)),this}function fD(e,t){t=Ut(t);const n=Ut(this),{has:r,get:i}=Sb(n);let a=r.call(n,e);a||(e=Ut(e),a=r.call(n,e));const l=i.call(n,e);return n.set(e,t),a?Sp(t,l)&&ul(n,"set",e,t):ul(n,"add",e,t),this}function mD(e){const t=Ut(this),{has:n,get:r}=Sb(t);let i=n.call(t,e);i||(e=Ut(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&ul(t,"delete",e,void 0),a}function gD(){const e=Ut(this),t=e.size!==0,n=e.clear();return t&&ul(e,"clear",void 0,void 0),n}function R_(e,t){return function(r,i){const a=this,l=a.__v_raw,s=Ut(l),u=t?rx:e?sx:Gm;return!e&&oa(s,"iterate",fu),l.forEach((o,c)=>r.call(i,u(o),u(c),a))}}function I_(e,t,n){return function(...r){const i=this.__v_raw,a=Ut(i),l=qd(a),s=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,o=i[e](...r),c=n?rx:t?sx:Gm;return!t&&oa(a,"iterate",u?bC:fu),{next(){const{value:d,done:p}=o.next();return p?{value:d,done:p}:{value:s?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function Ll(e){return function(...t){return e==="delete"?!1:this}}function eae(){const e={get(a){return w_(this,a)},get size(){return O_(this)},has:x_,add:pD,set:fD,delete:mD,clear:gD,forEach:R_(!1,!1)},t={get(a){return w_(this,a,!1,!0)},get size(){return O_(this)},has:x_,add:pD,set:fD,delete:mD,clear:gD,forEach:R_(!1,!0)},n={get(a){return w_(this,a,!0)},get size(){return O_(this,!0)},has(a){return x_.call(this,a,!0)},add:Ll("add"),set:Ll("set"),delete:Ll("delete"),clear:Ll("clear"),forEach:R_(!0,!1)},r={get(a){return w_(this,a,!0,!0)},get size(){return O_(this,!0)},has(a){return x_.call(this,a,!0)},add:Ll("add"),set:Ll("set"),delete:Ll("delete"),clear:Ll("clear"),forEach:R_(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=I_(a,!1,!1),n[a]=I_(a,!0,!1),t[a]=I_(a,!1,!0),r[a]=I_(a,!0,!0)}),[e,n,t,r]}const[tae,nae,rae,iae]=eae();function Eb(e,t){const n=t?e?iae:rae:e?nae:tae;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Pn(n,i)&&i in r?n:r,i,a)}const aae={get:Eb(!1,!1)},oae={get:Eb(!1,!0)},sae={get:Eb(!0,!1)},lae={get:Eb(!0,!0)},M8=new WeakMap,k8=new WeakMap,$8=new WeakMap,L8=new WeakMap;function cae(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uae(e){return e.__v_skip||!Object.isExtensible(e)?0:cae(Eie(e))}function un(e){return Ou(e)?e:Cb(e,!1,D8,aae,M8)}function F8(e){return Cb(e,!1,Xie,oae,k8)}function ix(e){return Cb(e,!0,P8,sae,$8)}function dae(e){return Cb(e,!0,Jie,lae,L8)}function Cb(e,t,n,r,i){if(!rr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const l=uae(e);if(l===0)return e;const s=new Proxy(e,l===2?r:n);return i.set(e,s),s}function mu(e){return Ou(e)?mu(e.__v_raw):!!(e&&e.__v_isReactive)}function Ou(e){return!!(e&&e.__v_isReadonly)}function Vm(e){return!!(e&&e.__v_isShallow)}function ax(e){return mu(e)||Ou(e)}function Ut(e){const t=e&&e.__v_raw;return t?Ut(t):e}function ox(e){return iv(e,"__v_skip",!0),e}const Gm=e=>rr(e)?un(e):e,sx=e=>rr(e)?ix(e):e;function lx(e){lc&&Ro&&(e=Ut(e),I8(e.dep||(e.dep=nx())))}function Tb(e,t){e=Ut(e);const n=e.dep;n&&yC(n)}function zr(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){return B8(e,!1)}function Pe(e){return B8(e,!0)}function B8(e,t){return zr(e)?e:new pae(e,t)}class pae{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ut(t),this._value=n?t:Gm(t)}get value(){return lx(this),this._value}set value(t){const n=this.__v_isShallow||Vm(t)||Ou(t);t=n?t:Ut(t),Sp(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Gm(t),Tb(this))}}function fae(e){Tb(e)}function je(e){return zr(e)?e.value:e}function mae(e){return Gt(e)?e():je(e)}const gae={get:(e,t,n)=>je(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return zr(i)&&!zr(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function cx(e){return mu(e)?e:new Proxy(e,gae)}class hae{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>lx(this),()=>Tb(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function _ae(e){return new hae(e)}function Zd(e){const t=vt(e)?new Array(e.length):{};for(const n in e)t[n]=U8(e,n);return t}class vae{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Bie(Ut(this._object),this._key)}}class bae{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function xt(e,t,n){return zr(e)?e:Gt(e)?new bae(e):rr(e)&&arguments.length>1?U8(e,t,n):Oe(e)}function U8(e,t,n){const r=e[t];return zr(r)?r:new vae(e,t,n)}class yae{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new kg(t,()=>{this._dirty||(this._dirty=!0,Tb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Ut(this);return lx(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Sae(e,t,n=!1){let r,i;const a=Gt(e);return a?(r=e,i=Fo):(r=e.get,i=e.set),new yae(r,i,a||!i,n)}function Eae(e,...t){}function Cae(e,t){}function sl(e,t,n,r){let i;try{i=r?e(...r):e()}catch(a){Uu(a,t,n)}return i}function Aa(e,t,n,r){if(Gt(e)){const a=sl(e,t,n,r);return a&&Xw(a)&&a.catch(l=>{Uu(l,t,n)}),a}const i=[];for(let a=0;a>>1;jm(Ii[r])us&&Ii.splice(t,1)}function dx(e){vt(e)?Qd.push(...e):(!Zs||!Zs.includes(e,e.allowRecurse?Jc+1:Jc))&&Qd.push(e),z8()}function hD(e,t=Ym?us+1:0){for(;tjm(n)-jm(r)),Jc=0;Jce.id==null?1/0:e.id,Oae=(e,t)=>{const n=jm(e)-jm(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function V8(e){SC=!1,Ym=!0,Ii.sort(Oae);const t=Fo;try{for(us=0;usxd.emit(i,...a)),A_=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{G8(a,t)}),setTimeout(()=>{xd||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,A_=[])},3e3)):A_=[]}function Rae(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||nr;let i=n;const a=t.startsWith("update:"),l=a&&t.slice(7);if(l&&l in r){const c=`${l==="modelValue"?"model":l}Modifiers`,{number:d,trim:p}=r[c]||nr;p&&(i=n.map(f=>Tr(f)?f.trim():f)),d&&(i=n.map(av))}let s,u=r[s=um(t)]||r[s=um(aa(t))];!u&&a&&(u=r[s=um(io(t))]),u&&Aa(u,e,6,i);const o=r[s+"Once"];if(o){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Aa(o,e,6,i)}}function Y8(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let l={},s=!1;if(!Gt(e)){const u=o=>{const c=Y8(o,t,!0);c&&(s=!0,cr(l,c))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!a&&!s?(rr(e)&&r.set(e,null),null):(vt(a)?a.forEach(u=>l[u]=null):cr(l,a),rr(e)&&r.set(e,l),l)}function xb(e,t){return!e||!Pg(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pn(e,t[0].toLowerCase()+t.slice(1))||Pn(e,io(t))||Pn(e,t))}let ci=null,Ob=null;function Wm(e){const t=ci;return ci=e,Ob=e&&e.type.__scopeId||null,t}function j8(e){Ob=e}function W8(){Ob=null}const Iae=e=>pn;function pn(e,t=ci,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&RC(-1);const a=Wm(t);let l;try{l=e(...i)}finally{Wm(a),r._d&&RC(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function h0(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[l],slots:s,attrs:u,emit:o,render:c,renderCache:d,data:p,setupState:f,ctx:g,inheritAttrs:m}=e;let h,v;const b=Wm(e);try{if(n.shapeFlag&4){const S=i||r;h=Ta(c.call(S,S,d,a,f,p,g)),v=u}else{const S=t;h=Ta(S.length>1?S(a,{attrs:u,slots:s,emit:o}):S(a,null)),v=t.props?u:Nae(u)}}catch(S){fm.length=0,Uu(S,e,1),h=x(Si)}let y=h;if(v&&m!==!1){const S=Object.keys(v),{shapeFlag:C}=y;S.length&&C&7&&(l&&S.some(Zw)&&(v=Dae(v,l)),y=Ci(y,v))}return n.dirs&&(y=Ci(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),h=y,Wm(b),h}function Aae(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Pg(n))&&((t||(t={}))[n]=e[n]);return t},Dae=(e,t)=>{const n={};for(const r in e)(!Zw(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Pae(e,t,n){const{props:r,children:i,component:a}=e,{props:l,children:s,patchFlag:u}=t,o=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?_D(r,l,o):!!l;if(u&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense,Mae={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,l,s,u,o){e==null?$ae(t,n,r,i,a,l,s,u,o):Lae(e,t,n,r,i,l,s,u,o)},hydrate:Fae,create:fx,normalize:Bae},kae=Mae;function qm(e,t){const n=e.props&&e.props[t];Gt(n)&&n()}function $ae(e,t,n,r,i,a,l,s,u){const{p:o,o:{createElement:c}}=u,d=c("div"),p=e.suspense=fx(e,i,r,t,d,n,a,l,s,u);o(null,p.pendingBranch=e.ssContent,d,null,r,p,a,l),p.deps>0?(qm(e,"onPending"),qm(e,"onFallback"),o(null,e.ssFallback,t,n,r,null,a,l),Xd(p,e.ssFallback)):p.resolve(!1,!0)}function Lae(e,t,n,r,i,a,l,s,{p:u,um:o,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:h,isHydrating:v}=d;if(m)d.pendingBranch=p,Io(p,m)?(u(m,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0?d.resolve():h&&(u(g,f,n,r,i,null,a,l,s),Xd(d,f))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):o(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),h?(u(null,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0?d.resolve():(u(g,f,n,r,i,null,a,l,s),Xd(d,f))):g&&Io(p,g)?(u(g,p,n,r,i,d,a,l,s),d.resolve(!0)):(u(null,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0&&d.resolve()));else if(g&&Io(p,g))u(g,p,n,r,i,d,a,l,s),Xd(d,p);else if(qm(t,"onPending"),d.pendingBranch=p,d.pendingId++,u(null,p,d.hiddenContainer,null,i,d,a,l,s),d.deps<=0)d.resolve();else{const{timeout:b,pendingId:y}=d;b>0?setTimeout(()=>{d.pendingId===y&&d.fallback(f)},b):b===0&&d.fallback(f)}}function fx(e,t,n,r,i,a,l,s,u,o,c=!1){const{p:d,m:p,um:f,n:g,o:{parentNode:m,remove:h}}=o;let v;const b=Uae(e);b&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?ov(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(C=!1,w=!1){const{vnode:T,activeBranch:O,pendingBranch:I,pendingId:N,effects:M,parentComponent:B,container:P}=S;if(S.isHydrating)S.isHydrating=!1;else if(!C){const F=O&&I.transition&&I.transition.mode==="out-in";F&&(O.transition.afterLeave=()=>{N===S.pendingId&&p(I,P,U,0)});let{anchor:U}=S;O&&(U=g(O),f(O,B,S,!0)),F||p(I,P,U,0)}Xd(S,I),S.pendingBranch=null,S.isInFallback=!1;let k=S.parent,D=!1;for(;k;){if(k.pendingBranch){k.effects.push(...M),D=!0;break}k=k.parent}D||dx(M),S.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),qm(T,"onResolve")},fallback(C){if(!S.pendingBranch)return;const{vnode:w,activeBranch:T,parentComponent:O,container:I,isSVG:N}=S;qm(w,"onFallback");const M=g(T),B=()=>{!S.isInFallback||(d(null,C,I,M,O,null,N,s,u),Xd(S,C))},P=C.transition&&C.transition.mode==="out-in";P&&(T.transition.afterLeave=B),S.isInFallback=!0,f(T,O,null,!0),P||B()},move(C,w,T){S.activeBranch&&p(S.activeBranch,C,w,T),S.container=C},next(){return S.activeBranch&&g(S.activeBranch)},registerDep(C,w){const T=!!S.pendingBranch;T&&S.deps++;const O=C.vnode.el;C.asyncDep.catch(I=>{Uu(I,C,0)}).then(I=>{if(C.isUnmounted||S.isUnmounted||S.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:N}=C;IC(C,I,!1),O&&(N.el=O);const M=!O&&C.subTree.el;w(C,N,m(O||C.subTree.el),O?null:g(C.subTree),S,l,u),M&&h(M),px(C,N.el),T&&--S.deps===0&&S.resolve()})},unmount(C,w){S.isUnmounted=!0,S.activeBranch&&f(S.activeBranch,n,C,w),S.pendingBranch&&f(S.pendingBranch,n,C,w)}};return S}function Fae(e,t,n,r,i,a,l,s,u){const o=t.suspense=fx(t,r,n,e.parentNode,document.createElement("div"),null,i,a,l,s,!0),c=u(e,o.pendingBranch=t.ssContent,n,o,a,l);return o.deps===0&&o.resolve(!1,!0),c}function Bae(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=vD(r?n.default:n),e.ssFallback=r?vD(n.fallback):x(Si)}function vD(e){let t;if(Gt(e)){const n=Iu&&e._c;n&&(e._d=!1,oe()),e=e(),n&&(e._d=!0,t=ia,S3())}return vt(e)&&(e=Aae(e)),e=Ta(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function K8(e,t){t&&t.pendingBranch?vt(e)?t.effects.push(...e):t.effects.push(e):dx(e)}function Xd(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,px(r,i))}function Uae(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Rt(e,t){return $g(e,null,t)}function Z8(e,t){return $g(e,null,{flush:"post"})}function Hae(e,t){return $g(e,null,{flush:"sync"})}const N_={};function ze(e,t,n){return $g(e,t,n)}function $g(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:l}=nr){var s;const u=tx()===((s=Kr)==null?void 0:s.scope)?Kr:null;let o,c=!1,d=!1;if(zr(e)?(o=()=>e.value,c=Vm(e)):mu(e)?(o=()=>e,r=!0):vt(e)?(d=!0,c=e.some(S=>mu(S)||Vm(S)),o=()=>e.map(S=>{if(zr(S))return S.value;if(mu(S))return ou(S);if(Gt(S))return sl(S,u,2)})):Gt(e)?t?o=()=>sl(e,u,2):o=()=>{if(!(u&&u.isUnmounted))return p&&p(),Aa(e,u,3,[f])}:o=Fo,t&&r){const S=o;o=()=>ou(S())}let p,f=S=>{p=b.onStop=()=>{sl(S,u,4)}},g;if(Cp)if(f=Fo,t?n&&Aa(t,u,3,[o(),d?[]:void 0,f]):o(),i==="sync"){const S=A3();g=S.__watcherHandles||(S.__watcherHandles=[])}else return Fo;let m=d?new Array(e.length).fill(N_):N_;const h=()=>{if(!!b.active)if(t){const S=b.run();(r||c||(d?S.some((C,w)=>Sp(C,m[w])):Sp(S,m)))&&(p&&p(),Aa(t,u,3,[S,m===N_?void 0:d&&m[0]===N_?[]:m,f]),m=S)}else b.run()};h.allowRecurse=!!t;let v;i==="sync"?v=h:i==="post"?v=()=>hi(h,u&&u.suspense):(h.pre=!0,u&&(h.id=u.uid),v=()=>wb(h));const b=new kg(o,v);t?n?h():m=b.run():i==="post"?hi(b.run.bind(b),u&&u.suspense):b.run();const y=()=>{b.stop(),u&&u.scope&&Qw(u.scope.effects,b)};return g&&g.push(y),y}function zae(e,t,n){const r=this.proxy,i=Tr(e)?e.includes(".")?Q8(r,e):()=>r[e]:e.bind(r,r);let a;Gt(t)?a=t:(a=t.handler,n=t);const l=Kr;_c(this);const s=$g(i,a.bind(r),n);return l?_c(l):cc(),s}function Q8(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{ou(n,t)});else if(S8(e))for(const n in e)ou(e[n],t);return e}function mr(e,t){const n=ci;if(n===null)return e;const r=Db(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const qa=[Function,Array],gx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qa,onEnter:qa,onAfterEnter:qa,onEnterCancelled:qa,onBeforeLeave:qa,onLeave:qa,onAfterLeave:qa,onLeaveCancelled:qa,onBeforeAppear:qa,onAppear:qa,onAfterAppear:qa,onAppearCancelled:qa},Vae={name:"BaseTransition",props:gx,setup(e,{slots:t}){const n=hr(),r=mx();let i;return()=>{const a=t.default&&Rb(t.default(),!0);if(!a||!a.length)return;let l=a[0];if(a.length>1){for(const m of a)if(m.type!==Si){l=m;break}}const s=Ut(e),{mode:u}=s;if(r.isLeaving)return rE(l);const o=bD(l);if(!o)return rE(l);const c=Ep(o,s,r,n);Ru(o,c);const d=n.subTree,p=d&&bD(d);let f=!1;const{getTransitionKey:g}=o.type;if(g){const m=g();i===void 0?i=m:m!==i&&(i=m,f=!0)}if(p&&p.type!==Si&&(!Io(o,p)||f)){const m=Ep(p,s,r,n);if(Ru(p,m),u==="out-in")return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},rE(l);u==="in-out"&&o.type!==Si&&(m.delayLeave=(h,v,b)=>{const y=J8(r,p);y[String(p.key)]=p,h._leaveCb=()=>{v(),h._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return l}}},X8=Vae;function J8(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ep(e,t,n,r){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:o,onEnterCancelled:c,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:h,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),S=J8(n,e),C=(O,I)=>{O&&Aa(O,r,9,I)},w=(O,I)=>{const N=I[1];C(O,I),vt(O)?O.every(M=>M.length<=1)&&N():O.length<=1&&N()},T={mode:a,persisted:l,beforeEnter(O){let I=s;if(!n.isMounted)if(i)I=m||s;else return;O._leaveCb&&O._leaveCb(!0);const N=S[y];N&&Io(e,N)&&N.el._leaveCb&&N.el._leaveCb(),C(I,[O])},enter(O){let I=u,N=o,M=c;if(!n.isMounted)if(i)I=h||u,N=v||o,M=b||c;else return;let B=!1;const P=O._enterCb=k=>{B||(B=!0,k?C(M,[O]):C(N,[O]),T.delayedLeave&&T.delayedLeave(),O._enterCb=void 0)};I?w(I,[O,P]):P()},leave(O,I){const N=String(e.key);if(O._enterCb&&O._enterCb(!0),n.isUnmounting)return I();C(d,[O]);let M=!1;const B=O._leaveCb=P=>{M||(M=!0,I(),P?C(g,[O]):C(f,[O]),O._leaveCb=void 0,S[N]===e&&delete S[N])};S[N]=e,p?w(p,[O,B]):B()},clone(O){return Ep(O,t,n,r)}};return T}function rE(e){if(Lg(e))return e=Ci(e),e.children=null,e}function bD(e){return Lg(e)?e.children?e.children[0]:void 0:e}function Ru(e,t){e.shapeFlag&6&&e.component?Ru(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Rb(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;acr({name:e.name},t,{setup:e}))():e}const gu=e=>!!e.type.__asyncLoader;function Gae(e){Gt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:l=!0,onError:s}=e;let u=null,o,c=0;const d=()=>(c++,u=null,p()),p=()=>{let f;return u||(f=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),s)return new Promise((m,h)=>{s(g,()=>m(d()),()=>h(g),c+1)});throw g}).then(g=>f!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),o=g,g)))};return Ce({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return o},setup(){const f=Kr;if(o)return()=>iE(o,f);const g=b=>{u=null,Uu(b,f,13,!r)};if(l&&f.suspense||Cp)return p().then(b=>()=>iE(b,f)).catch(b=>(g(b),()=>r?x(r,{error:b}):null));const m=Oe(!1),h=Oe(),v=Oe(!!i);return i&&setTimeout(()=>{v.value=!1},i),a!=null&&setTimeout(()=>{if(!m.value&&!h.value){const b=new Error(`Async component timed out after ${a}ms.`);g(b),h.value=b}},a),p().then(()=>{m.value=!0,f.parent&&Lg(f.parent.vnode)&&wb(f.parent.update)}).catch(b=>{g(b),h.value=b}),()=>{if(m.value&&o)return iE(o,f);if(h.value&&r)return x(r,{error:h.value});if(n&&!v.value)return x(n)}}})}function iE(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,l=x(e,r,i);return l.ref=n,l.ce=a,delete t.vnode.ce,l}const Lg=e=>e.type.__isKeepAlive,Yae={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=hr(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const i=new Map,a=new Set;let l=null;const s=n.suspense,{renderer:{p:u,m:o,um:c,o:{createElement:d}}}=r,p=d("div");r.activate=(b,y,S,C,w)=>{const T=b.component;o(b,y,S,0,s),u(T.vnode,b,y,S,T,s,C,b.slotScopeIds,w),hi(()=>{T.isDeactivated=!1,T.a&&Kd(T.a);const O=b.props&&b.props.onVnodeMounted;O&&ta(O,T.parent,b)},s)},r.deactivate=b=>{const y=b.component;o(b,p,null,1,s),hi(()=>{y.da&&Kd(y.da);const S=b.props&&b.props.onVnodeUnmounted;S&&ta(S,y.parent,b),y.isDeactivated=!0},s)};function f(b){aE(b),c(b,n,s,!0)}function g(b){i.forEach((y,S)=>{const C=NC(y.type);C&&(!b||!b(C))&&m(S)})}function m(b){const y=i.get(b);!l||!Io(y,l)?f(y):l&&aE(l),i.delete(b),a.delete(b)}ze(()=>[e.include,e.exclude],([b,y])=>{b&&g(S=>qf(b,S)),y&&g(S=>!qf(y,S))},{flush:"post",deep:!0});let h=null;const v=()=>{h!=null&&i.set(h,oE(n.subTree))};return _t(v),ca(v),Xt(()=>{i.forEach(b=>{const{subTree:y,suspense:S}=n,C=oE(y);if(b.type===C.type&&b.key===C.key){aE(C);const w=C.component.da;w&&hi(w,S);return}f(b)})}),()=>{if(h=null,!t.default)return null;const b=t.default(),y=b[0];if(b.length>1)return l=null,b;if(!Vr(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return l=null,y;let S=oE(y);const C=S.type,w=NC(gu(S)?S.type.__asyncResolved||{}:C),{include:T,exclude:O,max:I}=e;if(T&&(!w||!qf(T,w))||O&&w&&qf(O,w))return l=S,y;const N=S.key==null?C:S.key,M=i.get(N);return S.el&&(S=Ci(S),y.shapeFlag&128&&(y.ssContent=S)),h=N,M?(S.el=M.el,S.component=M.component,S.transition&&Ru(S,S.transition),S.shapeFlag|=512,a.delete(N),a.add(N)):(a.add(N),I&&a.size>parseInt(I,10)&&m(a.values().next().value)),S.shapeFlag|=256,l=S,q8(y.type)?y:S}}},jae=Yae;function qf(e,t){return vt(e)?e.some(n=>qf(n,t)):Tr(e)?e.split(",").includes(t):Sie(e)?e.test(t):!1}function Fg(e,t){e3(e,"a",t)}function hx(e,t){e3(e,"da",t)}function e3(e,t,n=Kr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ib(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Lg(i.parent.vnode)&&Wae(r,t,n,i),i=i.parent}}function Wae(e,t,n,r){const i=Ib(t,e,r,!0);ki(()=>{Qw(r[t],i)},n)}function aE(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function oE(e){return e.shapeFlag&128?e.ssContent:e}function Ib(e,t,n=Kr,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;Xp(),_c(n);const s=Aa(t,n,e,l);return cc(),Jp(),s});return r?i.unshift(a):i.push(a),a}}const bl=e=>(t,n=Kr)=>(!Cp||e==="sp")&&Ib(e,(...r)=>t(...r),n),Ab=bl("bm"),_t=bl("m"),Bg=bl("bu"),ca=bl("u"),Xt=bl("bum"),ki=bl("um"),t3=bl("sp"),n3=bl("rtg"),r3=bl("rtc");function i3(e,t=Kr){Ib("ec",e,t)}const _x="components",qae="directives";function Jd(e,t){return vx(_x,e,!0,t)||e}const a3=Symbol.for("v-ndc");function hu(e){return Tr(e)?vx(_x,e,!1)||e:e||a3}function ef(e){return vx(qae,e)}function vx(e,t,n=!0,r=!1){const i=ci||Kr;if(i){const a=i.type;if(e===_x){const s=NC(a,!1);if(s&&(s===t||s===aa(t)||s===Mg(aa(t))))return a}const l=yD(i[e]||a[e],t)||yD(i.appContext[e],t);return!l&&r?a:l}}function yD(e,t){return e&&(e[t]||e[aa(t)]||e[Mg(aa(t))])}function Di(e,t,n,r){let i;const a=n&&n[r];if(vt(e)||Tr(e)){i=new Array(e.length);for(let l=0,s=e.length;lt(l,s,void 0,a&&a[s]));else{const l=Object.keys(e);i=new Array(l.length);for(let s=0,u=l.length;s{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function Et(e,t,n={},r,i){if(ci.isCE||ci.parent&&gu(ci.parent)&&ci.parent.isCE)return t!=="default"&&(n.name=t),x("slot",n,r&&r());let a=e[t];a&&a._c&&(a._d=!1),oe();const l=a&&o3(a(n)),s=Rn(tt,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function o3(e){return e.some(t=>Vr(t)?!(t.type===Si||t.type===tt&&!o3(t.children)):!0)?e:null}function s3(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:um(r)]=e[r];return n}const EC=e=>e?w3(e)?Db(e)||e.proxy:EC(e.parent):null,dm=cr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>EC(e.parent),$root:e=>EC(e.root),$emit:e=>e.emit,$options:e=>yx(e),$forceUpdate:e=>e.f||(e.f=()=>wb(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>zae.bind(e)}),sE=(e,t)=>e!==nr&&!e.__isScriptSetup&&Pn(e,t),CC={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:l,type:s,appContext:u}=e;let o;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(sE(r,t))return l[t]=1,r[t];if(i!==nr&&Pn(i,t))return l[t]=2,i[t];if((o=e.propsOptions[0])&&Pn(o,t))return l[t]=3,a[t];if(n!==nr&&Pn(n,t))return l[t]=4,n[t];TC&&(l[t]=0)}}const c=dm[t];let d,p;if(c)return t==="$attrs"&&oa(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==nr&&Pn(n,t))return l[t]=4,n[t];if(p=u.config.globalProperties,Pn(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return sE(i,t)?(i[t]=n,!0):r!==nr&&Pn(r,t)?(r[t]=n,!0):Pn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},l){let s;return!!n[l]||e!==nr&&Pn(e,l)||sE(t,l)||(s=a[0])&&Pn(s,l)||Pn(r,l)||Pn(dm,l)||Pn(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Kae=cr({},CC,{get(e,t){if(t!==Symbol.unscopables)return CC.get(e,t,e)},has(e,t){return t[0]!=="_"&&!xie(t)}});function Zae(){return null}function Qae(){return null}function Xae(e){}function Jae(e){}function eoe(){return null}function toe(){}function noe(e,t){return null}function roe(){return c3().slots}function l3(){return c3().attrs}function ioe(e,t,n){const r=hr();if(n&&n.local){const i=Oe(e[t]);return ze(()=>e[t],a=>i.value=a),ze(i,a=>{a!==e[t]&&r.emit(`update:${t}`,a)}),i}else return{__v_isRef:!0,get value(){return e[t]},set value(i){r.emit(`update:${t}`,i)}}}function c3(){const e=hr();return e.setupContext||(e.setupContext=R3(e))}function Km(e){return vt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function aoe(e,t){const n=Km(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?vt(i)||Gt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function ooe(e,t){return!e||!t?e||t:vt(e)&&vt(t)?e.concat(t):cr({},Km(e),Km(t))}function soe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function loe(e){const t=hr();let n=e();return cc(),Xw(n)&&(n=n.catch(r=>{throw _c(t),r})),[n,()=>_c(t)]}let TC=!0;function coe(e){const t=yx(e),n=e.proxy,r=e.ctx;TC=!1,t.beforeCreate&&SD(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:l,watch:s,provide:u,inject:o,created:c,beforeMount:d,mounted:p,beforeUpdate:f,updated:g,activated:m,deactivated:h,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:S,render:C,renderTracked:w,renderTriggered:T,errorCaptured:O,serverPrefetch:I,expose:N,inheritAttrs:M,components:B,directives:P,filters:k}=t;if(o&&uoe(o,r,null),l)for(const U in l){const z=l[U];Gt(z)&&(r[U]=z.bind(n))}if(i){const U=i.call(n,n);rr(U)&&(e.data=un(U))}if(TC=!0,a)for(const U in a){const z=a[U],Y=Gt(z)?z.bind(n,n):Gt(z.get)?z.get.bind(n,n):Fo,G=!Gt(z)&&Gt(z.set)?z.set.bind(n):Fo,K=$({get:Y,set:G});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>K.value,set:X=>K.value=X})}if(s)for(const U in s)u3(s[U],r,n,U);if(u){const U=Gt(u)?u.call(n):u;Reflect.ownKeys(U).forEach(z=>{Dt(z,U[z])})}c&&SD(c,e,"c");function F(U,z){vt(z)?z.forEach(Y=>U(Y.bind(n))):z&&U(z.bind(n))}if(F(Ab,d),F(_t,p),F(Bg,f),F(ca,g),F(Fg,m),F(hx,h),F(i3,O),F(r3,w),F(n3,T),F(Xt,b),F(ki,S),F(t3,I),vt(N))if(N.length){const U=e.exposed||(e.exposed={});N.forEach(z=>{Object.defineProperty(U,z,{get:()=>n[z],set:Y=>n[z]=Y})})}else e.exposed||(e.exposed={});C&&e.render===Fo&&(e.render=C),M!=null&&(e.inheritAttrs=M),B&&(e.components=B),P&&(e.directives=P)}function uoe(e,t,n=Fo){vt(e)&&(e=wC(e));for(const r in e){const i=e[r];let a;rr(i)?"default"in i?a=He(i.from||r,i.default,!0):a=He(i.from||r):a=He(i),zr(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[r]=a}}function SD(e,t,n){Aa(vt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function u3(e,t,n,r){const i=r.includes(".")?Q8(n,r):()=>n[r];if(Tr(e)){const a=t[e];Gt(a)&&ze(i,a)}else if(Gt(e))ze(i,e.bind(n));else if(rr(e))if(vt(e))e.forEach(a=>u3(a,t,n,r));else{const a=Gt(e.handler)?e.handler.bind(n):t[e.handler];Gt(a)&&ze(i,a,e)}}function yx(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:l}}=e.appContext,s=a.get(t);let u;return s?u=s:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(o=>cv(u,o,l,!0)),cv(u,t,l)),rr(t)&&a.set(t,u),u}function cv(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&cv(e,a,n,!0),i&&i.forEach(l=>cv(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const s=doe[l]||n&&n[l];e[l]=s?s(e[l],t[l]):t[l]}return e}const doe={data:ED,props:CD,emits:CD,methods:Kf,computed:Kf,beforeCreate:Hi,created:Hi,beforeMount:Hi,mounted:Hi,beforeUpdate:Hi,updated:Hi,beforeDestroy:Hi,beforeUnmount:Hi,destroyed:Hi,unmounted:Hi,activated:Hi,deactivated:Hi,errorCaptured:Hi,serverPrefetch:Hi,components:Kf,directives:Kf,watch:foe,provide:ED,inject:poe};function ED(e,t){return t?e?function(){return cr(Gt(e)?e.call(this,this):e,Gt(t)?t.call(this,this):t)}:t:e}function poe(e,t){return Kf(wC(e),wC(t))}function wC(e){if(vt(e)){const t={};for(let n=0;n1)return n&&Gt(t)?t.call(r&&r.proxy):t}}function hoe(){return!!(Kr||ci||Zm)}function _oe(e,t,n,r=!1){const i={},a={};iv(a,Nb,1),e.propsDefaults=Object.create(null),p3(e,t,i,a);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:F8(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function voe(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:l}}=e,s=Ut(i),[u]=e.propsOptions;let o=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[p,f]=f3(d,t,!0);cr(l,p),f&&s.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!u)return rr(e)&&r.set(e,Wd),Wd;if(vt(a))for(let c=0;c-1,f[1]=m<0||g-1||Pn(f,"default"))&&s.push(d)}}}const o=[l,s];return rr(e)&&r.set(e,o),o}function TD(e){return e[0]!=="$"}function wD(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function xD(e,t){return wD(e)===wD(t)}function OD(e,t){return vt(t)?t.findIndex(n=>xD(n,e)):Gt(t)&&xD(t,e)?0:-1}const m3=e=>e[0]==="_"||e==="$stable",Sx=e=>vt(e)?e.map(Ta):[Ta(e)],boe=(e,t,n)=>{if(t._n)return t;const r=pn((...i)=>Sx(t(...i)),n);return r._c=!1,r},g3=(e,t,n)=>{const r=e._ctx;for(const i in e){if(m3(i))continue;const a=e[i];if(Gt(a))t[i]=boe(i,a,r);else if(a!=null){const l=Sx(a);t[i]=()=>l}}},h3=(e,t)=>{const n=Sx(t);e.slots.default=()=>n},yoe=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ut(t),iv(t,"_",n)):g3(t,e.slots={})}else e.slots={},t&&h3(e,t);iv(e.slots,Nb,1)},Soe=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,l=nr;if(r.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:(cr(i,t),!n&&s===1&&delete i._):(a=!t.$stable,g3(t,i)),l=t}else t&&(h3(e,t),l={default:1});if(a)for(const s in i)!m3(s)&&!(s in l)&&delete i[s]};function uv(e,t,n,r,i=!1){if(vt(e)){e.forEach((p,f)=>uv(p,t&&(vt(t)?t[f]:t),n,r,i));return}if(gu(r)&&!i)return;const a=r.shapeFlag&4?Db(r.component)||r.component.proxy:r.el,l=i?null:a,{i:s,r:u}=e,o=t&&t.r,c=s.refs===nr?s.refs={}:s.refs,d=s.setupState;if(o!=null&&o!==u&&(Tr(o)?(c[o]=null,Pn(d,o)&&(d[o]=null)):zr(o)&&(o.value=null)),Gt(u))sl(u,s,12,[l,c]);else{const p=Tr(u),f=zr(u);if(p||f){const g=()=>{if(e.f){const m=p?Pn(d,u)?d[u]:c[u]:u.value;i?vt(m)&&Qw(m,a):vt(m)?m.includes(a)||m.push(a):p?(c[u]=[a],Pn(d,u)&&(d[u]=c[u])):(u.value=[a],e.k&&(c[e.k]=u.value))}else p?(c[u]=l,Pn(d,u)&&(d[u]=l)):f&&(u.value=l,e.k&&(c[e.k]=l))};l?(g.id=-1,hi(g,n)):g()}}}let Fl=!1;const D_=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",P_=e=>e.nodeType===8;function Eoe(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:l,remove:s,insert:u,createComment:o}}=e,c=(v,b)=>{if(!b.hasChildNodes()){n(null,v,b),lv(),b._vnode=v;return}Fl=!1,d(b.firstChild,v,null,null,null),lv(),b._vnode=v,Fl&&console.error("Hydration completed but contains mismatches.")},d=(v,b,y,S,C,w=!1)=>{const T=P_(v)&&v.data==="[",O=()=>m(v,b,y,S,C,T),{type:I,ref:N,shapeFlag:M,patchFlag:B}=b;let P=v.nodeType;b.el=v,B===-2&&(w=!1,b.dynamicChildren=null);let k=null;switch(I){case Vo:P!==3?b.children===""?(u(b.el=i(""),l(v),v),k=v):k=O():(v.data!==b.children&&(Fl=!0,v.data=b.children),k=a(v));break;case Si:P!==8||T?k=O():k=a(v);break;case _u:if(T&&(v=a(v),P=v.nodeType),P===1||P===3){k=v;const D=!b.children.length;for(let F=0;F{w=w||!!b.dynamicChildren;const{type:T,props:O,patchFlag:I,shapeFlag:N,dirs:M}=b,B=T==="input"&&M||T==="option";if(B||I!==-1){if(M&&ls(b,null,y,"created"),O)if(B||!w||I&48)for(const k in O)(B&&k.endsWith("value")||Pg(k)&&!cm(k))&&r(v,k,null,O[k],!1,void 0,y);else O.onClick&&r(v,"onClick",null,O.onClick,!1,void 0,y);let P;if((P=O&&O.onVnodeBeforeMount)&&ta(P,y,b),M&&ls(b,null,y,"beforeMount"),((P=O&&O.onVnodeMounted)||M)&&K8(()=>{P&&ta(P,y,b),M&&ls(b,null,y,"mounted")},S),N&16&&!(O&&(O.innerHTML||O.textContent))){let k=f(v.firstChild,b,v,y,S,C,w);for(;k;){Fl=!0;const D=k;k=k.nextSibling,s(D)}}else N&8&&v.textContent!==b.children&&(Fl=!0,v.textContent=b.children)}return v.nextSibling},f=(v,b,y,S,C,w,T)=>{T=T||!!b.dynamicChildren;const O=b.children,I=O.length;for(let N=0;N{const{slotScopeIds:T}=b;T&&(C=C?C.concat(T):T);const O=l(v),I=f(a(v),b,O,y,S,C,w);return I&&P_(I)&&I.data==="]"?a(b.anchor=I):(Fl=!0,u(b.anchor=o("]"),O,I),I)},m=(v,b,y,S,C,w)=>{if(Fl=!0,b.el=null,w){const I=h(v);for(;;){const N=a(v);if(N&&N!==I)s(N);else break}}const T=a(v),O=l(v);return s(v),n(null,b,O,T,y,S,D_(O),C),T},h=v=>{let b=0;for(;v;)if(v=a(v),v&&P_(v)&&(v.data==="["&&b++,v.data==="]")){if(b===0)return a(v);b--}return v};return[c,d]}const hi=K8;function _3(e){return b3(e)}function v3(e){return b3(e,Eoe)}function b3(e,t){const n=_C();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:l,createText:s,createComment:u,setText:o,setElementText:c,parentNode:d,nextSibling:p,setScopeId:f=Fo,insertStaticContent:g}=e,m=(W,J,de,ve=null,he=null,Te=null,Ae=!1,Ne=null,we=!!J.dynamicChildren)=>{if(W===J)return;W&&!Io(W,J)&&(ve=ne(W),X(W,he,Te,!0),W=null),J.patchFlag===-2&&(we=!1,J.dynamicChildren=null);const{type:ge,ref:Me,shapeFlag:ke}=J;switch(ge){case Vo:h(W,J,de,ve);break;case Si:v(W,J,de,ve);break;case _u:W==null&&b(J,de,ve,Ae);break;case tt:B(W,J,de,ve,he,Te,Ae,Ne,we);break;default:ke&1?C(W,J,de,ve,he,Te,Ae,Ne,we):ke&6?P(W,J,de,ve,he,Te,Ae,Ne,we):(ke&64||ke&128)&&ge.process(W,J,de,ve,he,Te,Ae,Ne,we,ue)}Me!=null&&he&&uv(Me,W&&W.ref,Te,J||W,!J)},h=(W,J,de,ve)=>{if(W==null)r(J.el=s(J.children),de,ve);else{const he=J.el=W.el;J.children!==W.children&&o(he,J.children)}},v=(W,J,de,ve)=>{W==null?r(J.el=u(J.children||""),de,ve):J.el=W.el},b=(W,J,de,ve)=>{[W.el,W.anchor]=g(W.children,J,de,ve,W.el,W.anchor)},y=({el:W,anchor:J},de,ve)=>{let he;for(;W&&W!==J;)he=p(W),r(W,de,ve),W=he;r(J,de,ve)},S=({el:W,anchor:J})=>{let de;for(;W&&W!==J;)de=p(W),i(W),W=de;i(J)},C=(W,J,de,ve,he,Te,Ae,Ne,we)=>{Ae=Ae||J.type==="svg",W==null?w(J,de,ve,he,Te,Ae,Ne,we):I(W,J,he,Te,Ae,Ne,we)},w=(W,J,de,ve,he,Te,Ae,Ne)=>{let we,ge;const{type:Me,props:ke,shapeFlag:Ue,transition:xe,dirs:ye}=W;if(we=W.el=l(W.type,Te,ke&&ke.is,ke),Ue&8?c(we,W.children):Ue&16&&O(W.children,we,null,ve,he,Te&&Me!=="foreignObject",Ae,Ne),ye&&ls(W,null,ve,"created"),T(we,W,W.scopeId,Ae,ve),ke){for(const L in ke)L!=="value"&&!cm(L)&&a(we,L,null,ke[L],Te,W.children,ve,he,ee);"value"in ke&&a(we,"value",null,ke.value),(ge=ke.onVnodeBeforeMount)&&ta(ge,ve,W)}ye&&ls(W,null,ve,"beforeMount");const j=(!he||he&&!he.pendingBranch)&&xe&&!xe.persisted;j&&xe.beforeEnter(we),r(we,J,de),((ge=ke&&ke.onVnodeMounted)||j||ye)&&hi(()=>{ge&&ta(ge,ve,W),j&&xe.enter(we),ye&&ls(W,null,ve,"mounted")},he)},T=(W,J,de,ve,he)=>{if(de&&f(W,de),ve)for(let Te=0;Te{for(let ge=we;ge{const Ne=J.el=W.el;let{patchFlag:we,dynamicChildren:ge,dirs:Me}=J;we|=W.patchFlag&16;const ke=W.props||nr,Ue=J.props||nr;let xe;de&&zc(de,!1),(xe=Ue.onVnodeBeforeUpdate)&&ta(xe,de,J,W),Me&&ls(J,W,de,"beforeUpdate"),de&&zc(de,!0);const ye=he&&J.type!=="foreignObject";if(ge?N(W.dynamicChildren,ge,Ne,de,ve,ye,Te):Ae||z(W,J,Ne,null,de,ve,ye,Te,!1),we>0){if(we&16)M(Ne,J,ke,Ue,de,ve,he);else if(we&2&&ke.class!==Ue.class&&a(Ne,"class",null,Ue.class,he),we&4&&a(Ne,"style",ke.style,Ue.style,he),we&8){const j=J.dynamicProps;for(let L=0;L{xe&&ta(xe,de,J,W),Me&&ls(J,W,de,"updated")},ve)},N=(W,J,de,ve,he,Te,Ae)=>{for(let Ne=0;Ne{if(de!==ve){if(de!==nr)for(const Ne in de)!cm(Ne)&&!(Ne in ve)&&a(W,Ne,de[Ne],null,Ae,J.children,he,Te,ee);for(const Ne in ve){if(cm(Ne))continue;const we=ve[Ne],ge=de[Ne];we!==ge&&Ne!=="value"&&a(W,Ne,ge,we,Ae,J.children,he,Te,ee)}"value"in ve&&a(W,"value",de.value,ve.value)}},B=(W,J,de,ve,he,Te,Ae,Ne,we)=>{const ge=J.el=W?W.el:s(""),Me=J.anchor=W?W.anchor:s("");let{patchFlag:ke,dynamicChildren:Ue,slotScopeIds:xe}=J;xe&&(Ne=Ne?Ne.concat(xe):xe),W==null?(r(ge,de,ve),r(Me,de,ve),O(J.children,de,Me,he,Te,Ae,Ne,we)):ke>0&&ke&64&&Ue&&W.dynamicChildren?(N(W.dynamicChildren,Ue,de,he,Te,Ae,Ne),(J.key!=null||he&&J===he.subTree)&&Ex(W,J,!0)):z(W,J,de,Me,he,Te,Ae,Ne,we)},P=(W,J,de,ve,he,Te,Ae,Ne,we)=>{J.slotScopeIds=Ne,W==null?J.shapeFlag&512?he.ctx.activate(J,de,ve,Ae,we):k(J,de,ve,he,Te,Ae,we):D(W,J,we)},k=(W,J,de,ve,he,Te,Ae)=>{const Ne=W.component=T3(W,ve,he);if(Lg(W)&&(Ne.ctx.renderer=ue),x3(Ne),Ne.asyncDep){if(he&&he.registerDep(Ne,F),!W.el){const we=Ne.subTree=x(Si);v(null,we,J,de)}return}F(Ne,W,J,de,he,Te,Ae)},D=(W,J,de)=>{const ve=J.component=W.component;if(Pae(W,J,de))if(ve.asyncDep&&!ve.asyncResolved){U(ve,J,de);return}else ve.next=J,xae(ve.update),ve.update();else J.el=W.el,ve.vnode=J},F=(W,J,de,ve,he,Te,Ae)=>{const Ne=()=>{if(W.isMounted){let{next:Me,bu:ke,u:Ue,parent:xe,vnode:ye}=W,j=Me,L;zc(W,!1),Me?(Me.el=ye.el,U(W,Me,Ae)):Me=ye,ke&&Kd(ke),(L=Me.props&&Me.props.onVnodeBeforeUpdate)&&ta(L,xe,Me,ye),zc(W,!0);const H=h0(W),te=W.subTree;W.subTree=H,m(te,H,d(te.el),ne(te),W,he,Te),Me.el=H.el,j===null&&px(W,H.el),Ue&&hi(Ue,he),(L=Me.props&&Me.props.onVnodeUpdated)&&hi(()=>ta(L,xe,Me,ye),he)}else{let Me;const{el:ke,props:Ue}=J,{bm:xe,m:ye,parent:j}=W,L=gu(J);if(zc(W,!1),xe&&Kd(xe),!L&&(Me=Ue&&Ue.onVnodeBeforeMount)&&ta(Me,j,J),zc(W,!0),ke&&fe){const H=()=>{W.subTree=h0(W),fe(ke,W.subTree,W,he,null)};L?J.type.__asyncLoader().then(()=>!W.isUnmounted&&H()):H()}else{const H=W.subTree=h0(W);m(null,H,de,ve,W,he,Te),J.el=H.el}if(ye&&hi(ye,he),!L&&(Me=Ue&&Ue.onVnodeMounted)){const H=J;hi(()=>ta(Me,j,H),he)}(J.shapeFlag&256||j&&gu(j.vnode)&&j.vnode.shapeFlag&256)&&W.a&&hi(W.a,he),W.isMounted=!0,J=de=ve=null}},we=W.effect=new kg(Ne,()=>wb(ge),W.scope),ge=W.update=()=>we.run();ge.id=W.uid,zc(W,!0),ge()},U=(W,J,de)=>{J.component=W;const ve=W.vnode.props;W.vnode=J,W.next=null,voe(W,J.props,ve,de),Soe(W,J.children,de),Xp(),hD(),Jp()},z=(W,J,de,ve,he,Te,Ae,Ne,we=!1)=>{const ge=W&&W.children,Me=W?W.shapeFlag:0,ke=J.children,{patchFlag:Ue,shapeFlag:xe}=J;if(Ue>0){if(Ue&128){G(ge,ke,de,ve,he,Te,Ae,Ne,we);return}else if(Ue&256){Y(ge,ke,de,ve,he,Te,Ae,Ne,we);return}}xe&8?(Me&16&&ee(ge,he,Te),ke!==ge&&c(de,ke)):Me&16?xe&16?G(ge,ke,de,ve,he,Te,Ae,Ne,we):ee(ge,he,Te,!0):(Me&8&&c(de,""),xe&16&&O(ke,de,ve,he,Te,Ae,Ne,we))},Y=(W,J,de,ve,he,Te,Ae,Ne,we)=>{W=W||Wd,J=J||Wd;const ge=W.length,Me=J.length,ke=Math.min(ge,Me);let Ue;for(Ue=0;UeMe?ee(W,he,Te,!0,!1,ke):O(J,de,ve,he,Te,Ae,Ne,we,ke)},G=(W,J,de,ve,he,Te,Ae,Ne,we)=>{let ge=0;const Me=J.length;let ke=W.length-1,Ue=Me-1;for(;ge<=ke&&ge<=Ue;){const xe=W[ge],ye=J[ge]=we?Wl(J[ge]):Ta(J[ge]);if(Io(xe,ye))m(xe,ye,de,null,he,Te,Ae,Ne,we);else break;ge++}for(;ge<=ke&&ge<=Ue;){const xe=W[ke],ye=J[Ue]=we?Wl(J[Ue]):Ta(J[Ue]);if(Io(xe,ye))m(xe,ye,de,null,he,Te,Ae,Ne,we);else break;ke--,Ue--}if(ge>ke){if(ge<=Ue){const xe=Ue+1,ye=xeUe)for(;ge<=ke;)X(W[ge],he,Te,!0),ge++;else{const xe=ge,ye=ge,j=new Map;for(ge=ye;ge<=Ue;ge++){const Ze=J[ge]=we?Wl(J[ge]):Ta(J[ge]);Ze.key!=null&&j.set(Ze.key,ge)}let L,H=0;const te=Ue-ye+1;let re=!1,me=0;const Se=new Array(te);for(ge=0;ge=te){X(Ze,he,Te,!0);continue}let We;if(Ze.key!=null)We=j.get(Ze.key);else for(L=ye;L<=Ue;L++)if(Se[L-ye]===0&&Io(Ze,J[L])){We=L;break}We===void 0?X(Ze,he,Te,!0):(Se[We-ye]=ge+1,We>=me?me=We:re=!0,m(Ze,J[We],de,null,he,Te,Ae,Ne,we),H++)}const Ye=re?Coe(Se):Wd;for(L=Ye.length-1,ge=te-1;ge>=0;ge--){const Ze=ye+ge,We=J[Ze],Je=Ze+1{const{el:Te,type:Ae,transition:Ne,children:we,shapeFlag:ge}=W;if(ge&6){K(W.component.subTree,J,de,ve);return}if(ge&128){W.suspense.move(J,de,ve);return}if(ge&64){Ae.move(W,J,de,ue);return}if(Ae===tt){r(Te,J,de);for(let ke=0;keNe.enter(Te),he);else{const{leave:ke,delayLeave:Ue,afterLeave:xe}=Ne,ye=()=>r(Te,J,de),j=()=>{ke(Te,()=>{ye(),xe&&xe()})};Ue?Ue(Te,ye,j):j()}else r(Te,J,de)},X=(W,J,de,ve=!1,he=!1)=>{const{type:Te,props:Ae,ref:Ne,children:we,dynamicChildren:ge,shapeFlag:Me,patchFlag:ke,dirs:Ue}=W;if(Ne!=null&&uv(Ne,null,de,W,!0),Me&256){J.ctx.deactivate(W);return}const xe=Me&1&&Ue,ye=!gu(W);let j;if(ye&&(j=Ae&&Ae.onVnodeBeforeUnmount)&&ta(j,J,W),Me&6)q(W.component,de,ve);else{if(Me&128){W.suspense.unmount(de,ve);return}xe&&ls(W,null,J,"beforeUnmount"),Me&64?W.type.remove(W,J,de,he,ue,ve):ge&&(Te!==tt||ke>0&&ke&64)?ee(ge,J,de,!1,!0):(Te===tt&&ke&384||!he&&Me&16)&&ee(we,J,de),ve&&ie(W)}(ye&&(j=Ae&&Ae.onVnodeUnmounted)||xe)&&hi(()=>{j&&ta(j,J,W),xe&&ls(W,null,J,"unmounted")},de)},ie=W=>{const{type:J,el:de,anchor:ve,transition:he}=W;if(J===tt){se(de,ve);return}if(J===_u){S(W);return}const Te=()=>{i(de),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(W.shapeFlag&1&&he&&!he.persisted){const{leave:Ae,delayLeave:Ne}=he,we=()=>Ae(de,Te);Ne?Ne(W.el,Te,we):we()}else Te()},se=(W,J)=>{let de;for(;W!==J;)de=p(W),i(W),W=de;i(J)},q=(W,J,de)=>{const{bum:ve,scope:he,update:Te,subTree:Ae,um:Ne}=W;ve&&Kd(ve),he.stop(),Te&&(Te.active=!1,X(Ae,W,J,de)),Ne&&hi(Ne,J),hi(()=>{W.isUnmounted=!0},J),J&&J.pendingBranch&&!J.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===J.pendingId&&(J.deps--,J.deps===0&&J.resolve())},ee=(W,J,de,ve=!1,he=!1,Te=0)=>{for(let Ae=Te;AeW.shapeFlag&6?ne(W.component.subTree):W.shapeFlag&128?W.suspense.next():p(W.anchor||W.el),_e=(W,J,de)=>{W==null?J._vnode&&X(J._vnode,null,null,!0):m(J._vnode||null,W,J,null,null,null,de),hD(),lv(),J._vnode=W},ue={p:m,um:X,m:K,r:ie,mt:k,mc:O,pc:z,pbc:N,n:ne,o:e};let be,fe;return t&&([be,fe]=t(ue)),{render:_e,hydrate:be,createApp:goe(_e,be)}}function zc({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ex(e,t,n=!1){const r=e.children,i=t.children;if(vt(r)&&vt(i))for(let a=0;a>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,l=n[a-1];a-- >0;)n[a]=l,l=t[l];return n}const Toe=e=>e.__isTeleport,pm=e=>e&&(e.disabled||e.disabled===""),RD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,OC=(e,t)=>{const n=e&&e.to;return Tr(n)?t?t(n):null:n},woe={__isTeleport:!0,process(e,t,n,r,i,a,l,s,u,o){const{mc:c,pc:d,pbc:p,o:{insert:f,querySelector:g,createText:m,createComment:h}}=o,v=pm(t.props);let{shapeFlag:b,children:y,dynamicChildren:S}=t;if(e==null){const C=t.el=m(""),w=t.anchor=m("");f(C,n,r),f(w,n,r);const T=t.target=OC(t.props,g),O=t.targetAnchor=m("");T&&(f(O,T),l=l||RD(T));const I=(N,M)=>{b&16&&c(y,N,M,i,a,l,s,u)};v?I(n,w):T&&I(T,O)}else{t.el=e.el;const C=t.anchor=e.anchor,w=t.target=e.target,T=t.targetAnchor=e.targetAnchor,O=pm(e.props),I=O?n:w,N=O?C:T;if(l=l||RD(w),S?(p(e.dynamicChildren,S,I,i,a,l,s),Ex(e,t,!0)):u||d(e,t,I,N,i,a,l,s,!1),v)O||M_(t,n,C,o,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=OC(t.props,g);M&&M_(t,M,null,o,0)}else O&&M_(t,w,T,o,1)}y3(t)},remove(e,t,n,r,{um:i,o:{remove:a}},l){const{shapeFlag:s,children:u,anchor:o,targetAnchor:c,target:d,props:p}=e;if(d&&a(c),(l||!pm(p))&&(a(o),s&16))for(let f=0;f0?ia||Wd:null,S3(),Iu>0&&ia&&ia.push(e),e}function pe(e,t,n,r,i,a){return E3(Ee(e,t,n,r,i,a,!0))}function Rn(e,t,n,r,i){return E3(x(e,t,n,r,i,!0))}function Vr(e){return e?e.__v_isVNode===!0:!1}function Io(e,t){return e.type===t.type&&e.key===t.key}function Ooe(e){}const Nb="__vInternal",C3=({key:e})=>e!=null?e:null,_0=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Tr(e)||zr(e)||Gt(e)?{i:ci,r:e,k:t,f:!!n}:e:null);function Ee(e,t=null,n=null,r=0,i=null,a=e===tt?0:1,l=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&C3(t),ref:t&&_0(t),scopeId:Ob,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ci};return s?(Cx(u,n),a&128&&e.normalize(u)):n&&(u.shapeFlag|=Tr(n)?8:16),Iu>0&&!l&&ia&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&ia.push(u),u}const x=Roe;function Roe(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===a3)&&(e=Si),Vr(e)){const s=Ci(e,t,!0);return n&&Cx(s,n),Iu>0&&!a&&ia&&(s.shapeFlag&6?ia[ia.indexOf(e)]=s:ia.push(s)),s.patchFlag|=-2,s}if($oe(e)&&(e=e.__vccOpts),t){t=Ja(t);let{class:s,style:u}=t;s&&!Tr(s)&&(t.class=Vt(s)),rr(u)&&(ax(u)&&!vt(u)&&(u=cr({},u)),t.style=Ni(u))}const l=Tr(e)?1:q8(e)?128:Toe(e)?64:rr(e)?4:Gt(e)?2:0;return Ee(e,t,n,r,i,l,a,!0)}function Ja(e){return e?ax(e)||Nb in e?cr({},e):e:null}function Ci(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:l}=e,s=t?An(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&C3(s),ref:t&&t.ref?n&&i?vt(i)?i.concat(_0(t)):[i,_0(t)]:_0(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==tt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ci(e.ssContent),ssFallback:e.ssFallback&&Ci(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Zn(e=" ",t=0){return x(Vo,null,e,t)}function Ioe(e,t){const n=x(_u,null,e);return n.staticCount=t,n}function ft(e="",t=!1){return t?(oe(),Rn(Si,null,e)):x(Si,null,e)}function Ta(e){return e==null||typeof e=="boolean"?x(Si):vt(e)?x(tt,null,e.slice()):typeof e=="object"?Wl(e):x(Vo,null,String(e))}function Wl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ci(e)}function Cx(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(vt(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Cx(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Nb in t)?t._ctx=ci:i===3&&ci&&(ci.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Gt(t)?(t={default:t,_ctx:ci},n=32):(t=String(t),r&64?(n=16,t=[Zn(t)]):n=8);e.children=t,e.shapeFlag|=n}function An(...e){const t={};for(let n=0;nKr||ci;let Tx,fd,ID="__VUE_INSTANCE_SETTERS__";(fd=_C()[ID])||(fd=_C()[ID]=[]),fd.push(e=>Kr=e),Tx=e=>{fd.length>1?fd.forEach(t=>t(e)):fd[0](e)};const _c=e=>{Tx(e),e.scope.on()},cc=()=>{Kr&&Kr.scope.off(),Tx(null)};function w3(e){return e.vnode.shapeFlag&4}let Cp=!1;function x3(e,t=!1){Cp=t;const{props:n,children:r}=e.vnode,i=w3(e);_oe(e,n,i,t),yoe(e,r);const a=i?Doe(e,t):void 0;return Cp=!1,a}function Doe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ox(new Proxy(e.ctx,CC));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?R3(e):null;_c(e),Xp();const a=sl(r,e,0,[e.props,i]);if(Jp(),cc(),Xw(a)){if(a.then(cc,cc),t)return a.then(l=>{IC(e,l,t)}).catch(l=>{Uu(l,e,0)});e.asyncDep=a}else IC(e,a,t)}else O3(e,t)}function IC(e,t,n){Gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:rr(t)&&(e.setupState=cx(t)),O3(e,n)}let dv,AC;function Poe(e){dv=e,AC=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Kae))}}const Moe=()=>!dv;function O3(e,t,n){const r=e.type;if(!e.render){if(!t&&dv&&!r.render){const i=r.template||yx(e).template;if(i){const{isCustomElement:a,compilerOptions:l}=e.appContext.config,{delimiters:s,compilerOptions:u}=r,o=cr(cr({isCustomElement:a,delimiters:s},l),u);r.render=dv(i,o)}}e.render=r.render||Fo,AC&&AC(e)}_c(e),Xp(),coe(e),Jp(),cc()}function koe(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return oa(e,"get","$attrs"),t[n]}}))}function R3(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return koe(e)},slots:e.slots,emit:e.emit,expose:t}}function Db(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(cx(ox(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dm)return dm[n](e)},has(t,n){return n in t||n in dm}}))}function NC(e,t=!0){return Gt(e)?e.displayName||e.name:e.name||t&&e.__name}function $oe(e){return Gt(e)&&"__vccOpts"in e}const $=(e,t)=>Sae(e,t,Cp);function dl(e,t,n){const r=arguments.length;return r===2?rr(t)&&!vt(t)?Vr(t)?x(e,null,[t]):x(e,t):x(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vr(n)&&(n=[n]),x(e,t,n))}const I3=Symbol.for("v-scx"),A3=()=>He(I3);function Loe(){}function Foe(e,t,n,r){const i=n[r];if(i&&N3(i,e))return i;const a=t();return a.memo=e.slice(),n[r]=a}function N3(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&ia&&ia.push(e),!0}const D3="3.3.4",Boe={createComponentInstance:T3,setupComponent:x3,renderComponentRoot:h0,setCurrentRenderingInstance:Wm,isVNode:Vr,normalizeVNode:Ta},Uoe=Boe,Hoe=null,zoe=null,Voe="http://www.w3.org/2000/svg",eu=typeof document<"u"?document:null,AD=eu&&eu.createElement("template"),Goe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?eu.createElementNS(Voe,e):eu.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>eu.createTextNode(e),createComment:e=>eu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>eu.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const l=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{AD.innerHTML=r?`${e}`:e;const s=AD.content;if(r){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Yoe(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function joe(e,t,n){const r=e.style,i=Tr(n);if(n&&!i){if(t&&!Tr(t))for(const a in t)n[a]==null&&DC(r,a,"");for(const a in n)DC(r,a,n[a])}else{const a=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=a)}}const ND=/\s*!important$/;function DC(e,t,n){if(vt(n))n.forEach(r=>DC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Woe(e,t);ND.test(n)?e.setProperty(io(r),n.replace(ND,""),"important"):e[r]=n}}const DD=["Webkit","Moz","ms"],lE={};function Woe(e,t){const n=lE[t];if(n)return n;let r=aa(t);if(r!=="filter"&&r in e)return lE[t]=r;r=Mg(r);for(let i=0;icE||(Joe.then(()=>cE=0),cE=Date.now());function tse(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Aa(nse(r,n.value),t,5,[r])};return n.value=e,n.attached=ese(),n}function nse(e,t){if(vt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const kD=/^on[a-z]/,rse=(e,t,n,r,i=!1,a,l,s,u)=>{t==="class"?Yoe(e,r,i):t==="style"?joe(e,n,r):Pg(t)?Zw(t)||Qoe(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ise(e,t,r,i))?Koe(e,t,r,a,l,s,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),qoe(e,t,r,i))};function ise(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&kD.test(t)&&Gt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||kD.test(t)&&Tr(n)?!1:t in e}function P3(e,t){const n=Ce(e);class r extends Pb{constructor(a){super(n,a,t)}}return r.def=n,r}const ase=e=>P3(e,q3),ose=typeof HTMLElement<"u"?HTMLElement:class{};class Pb extends ose{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sn(()=>{this._connected||(pl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=(r,i=!1)=>{const{props:a,styles:l}=r;let s;if(a&&!vt(a))for(const u in a){const o=a[u];(o===Number||o&&o.type===Number)&&(u in this._props&&(this._props[u]=ov(this._props[u])),(s||(s=Object.create(null)))[aa(u)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=vt(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map(aa))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(t){let n=this.getAttribute(t);const r=aa(t);this._numberProps&&this._numberProps[r]&&(n=ov(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(io(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(io(t),n+""):n||this.removeAttribute(io(t))))}_update(){pl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=x(this._def,cr({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(a,l)=>{this.dispatchEvent(new CustomEvent(a,{detail:l}))};n.emit=(a,...l)=>{r(a,l),io(a)!==a&&r(io(a),l)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Pb){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function sse(e="$style"){{const t=hr();if(!t)return nr;const n=t.type.__cssModules;if(!n)return nr;const r=n[e];return r||nr}}function lse(e){const t=hr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>MC(a,i))},r=()=>{const i=e(t.proxy);PC(t.subTree,i),n(i)};Z8(r),_t(()=>{const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),ki(()=>i.disconnect())})}function PC(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{PC(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)MC(e.el,t);else if(e.type===tt)e.children.forEach(n=>PC(n,t));else if(e.type===_u){let{el:n,anchor:r}=e;for(;n&&(MC(n,t),n!==r);)n=n.nextSibling}}function MC(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Bl="transition",Af="animation",Ti=(e,{slots:t})=>dl(X8,k3(e),t);Ti.displayName="Transition";const M3={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cse=Ti.props=cr({},gx,M3),Vc=(e,t=[])=>{vt(e)?e.forEach(n=>n(...t)):e&&e(...t)},$D=e=>e?vt(e)?e.some(t=>t.length>1):e.length>1:!1;function k3(e){const t={};for(const B in e)B in M3||(t[B]=e[B]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:o=l,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=use(i),m=g&&g[0],h=g&&g[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:S,onLeaveCancelled:C,onBeforeAppear:w=v,onAppear:T=b,onAppearCancelled:O=y}=t,I=(B,P,k)=>{zl(B,P?c:s),zl(B,P?o:l),k&&k()},N=(B,P)=>{B._isLeaving=!1,zl(B,d),zl(B,f),zl(B,p),P&&P()},M=B=>(P,k)=>{const D=B?T:b,F=()=>I(P,B,k);Vc(D,[P,F]),LD(()=>{zl(P,B?u:a),Vs(P,B?c:s),$D(D)||FD(P,r,m,F)})};return cr(t,{onBeforeEnter(B){Vc(v,[B]),Vs(B,a),Vs(B,l)},onBeforeAppear(B){Vc(w,[B]),Vs(B,u),Vs(B,o)},onEnter:M(!1),onAppear:M(!0),onLeave(B,P){B._isLeaving=!0;const k=()=>N(B,P);Vs(B,d),L3(),Vs(B,p),LD(()=>{!B._isLeaving||(zl(B,d),Vs(B,f),$D(S)||FD(B,r,h,k))}),Vc(S,[B,k])},onEnterCancelled(B){I(B,!1),Vc(y,[B])},onAppearCancelled(B){I(B,!0),Vc(O,[B])},onLeaveCancelled(B){N(B),Vc(C,[B])}})}function use(e){if(e==null)return null;if(rr(e))return[uE(e.enter),uE(e.leave)];{const t=uE(e);return[t,t]}}function uE(e){return ov(e)}function Vs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function zl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function LD(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dse=0;function FD(e,t,n,r){const i=e._endId=++dse,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:l,timeout:s,propCount:u}=$3(e,t);if(!l)return r();const o=l+"end";let c=0;const d=()=>{e.removeEventListener(o,p),a()},p=f=>{f.target===e&&++c>=u&&d()};setTimeout(()=>{c(n[g]||"").split(", "),i=r(`${Bl}Delay`),a=r(`${Bl}Duration`),l=BD(i,a),s=r(`${Af}Delay`),u=r(`${Af}Duration`),o=BD(s,u);let c=null,d=0,p=0;t===Bl?l>0&&(c=Bl,d=l,p=a.length):t===Af?o>0&&(c=Af,d=o,p=u.length):(d=Math.max(l,o),c=d>0?l>o?Bl:Af:null,p=c?c===Bl?a.length:u.length:0);const f=c===Bl&&/\b(transform|all)(,|$)/.test(r(`${Bl}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:f}}function BD(e,t){for(;e.lengthUD(n)+UD(e[r])))}function UD(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function L3(){return document.body.offsetHeight}const F3=new WeakMap,B3=new WeakMap,U3={name:"TransitionGroup",props:cr({},cse,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=hr(),r=mx();let i,a;return ca(()=>{if(!i.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!hse(i[0].el,n.vnode.el,l))return;i.forEach(fse),i.forEach(mse);const s=i.filter(gse);L3(),s.forEach(u=>{const o=u.el,c=o.style;Vs(o,l),c.transform=c.webkitTransform=c.transitionDuration="";const d=o._moveCb=p=>{p&&p.target!==o||(!p||/transform$/.test(p.propertyName))&&(o.removeEventListener("transitionend",d),o._moveCb=null,zl(o,l))};o.addEventListener("transitionend",d)})}),()=>{const l=Ut(e),s=k3(l);let u=l.tag||tt;i=a,a=t.default?Rb(t.default()):[];for(let o=0;odelete e.mode;U3.props;const Hg=U3;function fse(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function mse(e){B3.set(e,e.el.getBoundingClientRect())}function gse(e){const t=F3.get(e),n=B3.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function hse(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=$3(r);return i.removeChild(r),a}const vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return vt(t)?n=>Kd(t,n):t};function _se(e){e.target.composing=!0}function HD(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Au={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=vc(i);const a=r||i.props&&i.props.type==="number";tl(e,t?"change":"input",l=>{if(l.target.composing)return;let s=e.value;n&&(s=s.trim()),a&&(s=av(s)),e._assign(s)}),n&&tl(e,"change",()=>{e.value=e.value.trim()}),t||(tl(e,"compositionstart",_se),tl(e,"compositionend",HD),tl(e,"change",HD))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e._assign=vc(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&av(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},wx={deep:!0,created(e,t,n){e._assign=vc(n),tl(e,"change",()=>{const r=e._modelValue,i=Tp(e),a=e.checked,l=e._assign;if(vt(r)){const s=bb(r,i),u=s!==-1;if(a&&!u)l(r.concat(i));else if(!a&&u){const o=[...r];o.splice(s,1),l(o)}}else if(Bu(r)){const s=new Set(r);a?s.add(i):s.delete(i),l(s)}else l(z3(e,a))})},mounted:zD,beforeUpdate(e,t,n){e._assign=vc(n),zD(e,t,n)}};function zD(e,{value:t,oldValue:n},r){e._modelValue=t,vt(t)?e.checked=bb(t,r.props.value)>-1:Bu(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=gc(t,z3(e,!0)))}const xx={created(e,{value:t},n){e.checked=gc(t,n.props.value),e._assign=vc(n),tl(e,"change",()=>{e._assign(Tp(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=vc(r),t!==n&&(e.checked=gc(t,r.props.value))}},H3={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Bu(t);tl(e,"change",()=>{const a=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?av(Tp(l)):Tp(l));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=vc(r)},mounted(e,{value:t}){VD(e,t)},beforeUpdate(e,t,n){e._assign=vc(n)},updated(e,{value:t}){VD(e,t)}};function VD(e,t){const n=e.multiple;if(!(n&&!vt(t)&&!Bu(t))){for(let r=0,i=e.options.length;r-1:a.selected=t.has(l);else if(gc(Tp(a),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Tp(e){return"_value"in e?e._value:e.value}function z3(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const V3={created(e,t,n){k_(e,t,n,null,"created")},mounted(e,t,n){k_(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){k_(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){k_(e,t,n,r,"updated")}};function G3(e,t){switch(e){case"SELECT":return H3;case"TEXTAREA":return Au;default:switch(t){case"checkbox":return wx;case"radio":return xx;default:return Au}}}function k_(e,t,n,r,i){const l=G3(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}function vse(){Au.getSSRProps=({value:e})=>({value:e}),xx.getSSRProps=({value:e},t)=>{if(t.props&&gc(t.props.value,e))return{checked:!0}},wx.getSSRProps=({value:e},t)=>{if(vt(e)){if(t.props&&bb(e,t.props.value)>-1)return{checked:!0}}else if(Bu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},V3.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=G3(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const bse=["ctrl","shift","alt","meta"],yse={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bse.some(n=>e[`${n}Key`]&&!t.includes(n))},Qm=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=io(n.key);if(t.some(i=>i===r||Sse[i]===r))return e(n)},Pa={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nf(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Nf(e,!0),r.enter(e)):r.leave(e,()=>{Nf(e,!1)}):Nf(e,t))},beforeUnmount(e,{value:t}){Nf(e,t)}};function Nf(e,t){e.style.display=t?e._vod:"none"}function Ese(){Pa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Y3=cr({patchProp:rse},Goe);let mm,GD=!1;function j3(){return mm||(mm=_3(Y3))}function W3(){return mm=GD?mm:v3(Y3),GD=!0,mm}const pl=(...e)=>{j3().render(...e)},q3=(...e)=>{W3().hydrate(...e)},K3=(...e)=>{const t=j3().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Z3(r);if(!i)return;const a=t._component;!Gt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const l=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t},Cse=(...e)=>{const t=W3().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Z3(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function Z3(e){return Tr(e)?document.querySelector(e):e}let YD=!1;const Tse=()=>{YD||(YD=!0,vse(),Ese())},wse=()=>{},xse=Object.freeze(Object.defineProperty({__proto__:null,compile:wse,EffectScope:ex,ReactiveEffect:kg,customRef:_ae,effect:Lie,effectScope:Mie,getCurrentScope:tx,isProxy:ax,isReactive:mu,isReadonly:Ou,isRef:zr,isShallow:Vm,markRaw:ox,onScopeDispose:w8,proxyRefs:cx,reactive:un,readonly:ix,ref:Oe,shallowReactive:F8,shallowReadonly:dae,shallowRef:Pe,stop:Fie,toRaw:Ut,toRef:xt,toRefs:Zd,toValue:mae,triggerRef:fae,unref:je,camelize:aa,capitalize:Mg,normalizeClass:Vt,normalizeProps:Xa,normalizeStyle:Ni,toDisplayString:Qt,toHandlerKey:um,BaseTransition:X8,BaseTransitionPropsValidators:gx,Comment:Si,Fragment:tt,KeepAlive:jae,Static:_u,Suspense:kae,Teleport:Ug,Text:Vo,assertNumber:Cae,callWithAsyncErrorHandling:Aa,callWithErrorHandling:sl,cloneVNode:Ci,compatUtils:zoe,computed:$,createBlock:Rn,createCommentVNode:ft,createElementBlock:pe,createElementVNode:Ee,createHydrationRenderer:v3,createPropsRestProxy:soe,createRenderer:_3,createSlots:bx,createStaticVNode:Ioe,createTextVNode:Zn,createVNode:x,defineAsyncComponent:Gae,defineComponent:Ce,defineEmits:Qae,defineExpose:Xae,defineModel:toe,defineOptions:Jae,defineProps:Zae,defineSlots:eoe,get devtools(){return xd},getCurrentInstance:hr,getTransitionRawChildren:Rb,guardReactiveProps:Ja,h:dl,handleError:Uu,hasInjectionContext:hoe,initCustomFormatter:Loe,inject:He,isMemoSame:N3,isRuntimeOnly:Moe,isVNode:Vr,mergeDefaults:aoe,mergeModels:ooe,mergeProps:An,nextTick:sn,onActivated:Fg,onBeforeMount:Ab,onBeforeUnmount:Xt,onBeforeUpdate:Bg,onDeactivated:hx,onErrorCaptured:i3,onMounted:_t,onRenderTracked:r3,onRenderTriggered:n3,onServerPrefetch:t3,onUnmounted:ki,onUpdated:ca,openBlock:oe,popScopeId:W8,provide:Dt,pushScopeId:j8,queuePostFlushCb:dx,registerRuntimeCompiler:Poe,renderList:Di,renderSlot:Et,resolveComponent:Jd,resolveDirective:ef,resolveDynamicComponent:hu,resolveFilter:Hoe,resolveTransitionHooks:Ep,setBlockTracking:RC,setDevtoolsHook:G8,setTransitionHooks:Ru,ssrContextKey:I3,ssrUtils:Uoe,toHandlers:s3,transformVNodeArgs:Ooe,useAttrs:l3,useModel:ioe,useSSRContext:A3,useSlots:roe,useTransitionState:mx,version:D3,warn:Eae,watch:ze,watchEffect:Rt,watchPostEffect:Z8,watchSyncEffect:Hae,withAsyncContext:loe,withCtx:pn,withDefaults:noe,withDirectives:mr,withMemo:Foe,withScopeId:Iae,Transition:Ti,TransitionGroup:Hg,VueElement:Pb,createApp:K3,createSSRApp:Cse,defineCustomElement:P3,defineSSRCustomElement:ase,hydrate:q3,initDirectivesForSSR:Tse,render:pl,useCssModule:sse,useCssVars:lse,vModelCheckbox:wx,vModelDynamic:V3,vModelRadio:xx,vModelSelect:H3,vModelText:Au,vShow:Pa,withKeys:Ox,withModifiers:Qm},Symbol.toStringTag,{value:"Module"}));var kn;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const l of i)a[l]=l;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),l={};for(const s of a)l[s]=i[s];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.push(l);return a},e.find=(i,a)=>{for(const l of i)if(a(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(kn||(kn={}));var kC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(kC||(kC={}));const mt=kn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xl=e=>{switch(typeof e){case"undefined":return mt.undefined;case"string":return mt.string;case"number":return isNaN(e)?mt.nan:mt.number;case"boolean":return mt.boolean;case"function":return mt.function;case"bigint":return mt.bigint;case"symbol":return mt.symbol;case"object":return Array.isArray(e)?mt.array:e===null?mt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?mt.promise:typeof Map<"u"&&e instanceof Map?mt.map:typeof Set<"u"&&e instanceof Set?mt.set:typeof Date<"u"&&e instanceof Date?mt.date:mt.object;default:return mt.unknown}},ot=kn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ose=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Bo extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const l of a.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let s=r,u=0;for(;un.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Bo.create=e=>new Bo(e);const Xm=(e,t)=>{let n;switch(e.code){case ot.invalid_type:e.received===mt.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ot.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,kn.jsonStringifyReplacer)}`;break;case ot.unrecognized_keys:n=`Unrecognized key(s) in object: ${kn.joinValues(e.keys,", ")}`;break;case ot.invalid_union:n="Invalid input";break;case ot.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${kn.joinValues(e.options)}`;break;case ot.invalid_enum_value:n=`Invalid enum value. Expected ${kn.joinValues(e.options)}, received '${e.received}'`;break;case ot.invalid_arguments:n="Invalid function arguments";break;case ot.invalid_return_type:n="Invalid function return type";break;case ot.invalid_date:n="Invalid date";break;case ot.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:kn.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ot.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ot.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ot.custom:n="Invalid input";break;case ot.invalid_intersection_types:n="Intersection results could not be merged";break;case ot.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ot.not_finite:n="Number must be finite";break;default:n=t.defaultError,kn.assertNever(e)}return{message:n}};let Q3=Xm;function Rse(e){Q3=e}function pv(){return Q3}const fv=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],l={...i,path:a};let s="";const u=r.filter(o=>!!o).slice().reverse();for(const o of u)s=o(l,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}},Ise=[];function ht(e,t){const n=fv({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,pv(),Xm].filter(r=>!!r)});e.common.issues.push(n)}class Pi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return rn;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return Pi.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:l}=i;if(a.status==="aborted"||l.status==="aborted")return rn;a.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(r[a.value]=l.value)}return{status:t.value,value:r}}}const rn=Object.freeze({status:"aborted"}),X3=e=>({status:"dirty",value:e}),ji=e=>({status:"valid",value:e}),$C=e=>e.status==="aborted",LC=e=>e.status==="dirty",Jm=e=>e.status==="valid",mv=e=>typeof Promise<"u"&&e instanceof Promise;var It;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(It||(It={}));class _s{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const jD=(e,t)=>{if(Jm(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Bo(e.common.issues);return this._error=n,this._error}}};function ln(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,s)=>l.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r!=null?r:s.defaultError}:{message:n!=null?n:s.defaultError},description:i}}class fn{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Xl(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Xl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pi,ctx:{common:t.parent.common,data:t.data,parsedType:Xl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(mv(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xl(t)},a=this._parseSync({data:t,path:i.path,parent:i});return jD(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xl(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(mv(i)?i:Promise.resolve(i));return jD(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const l=t(i),s=()=>a.addIssue({code:ot.custom,...r(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(u=>u?!0:(s(),!1)):l?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Go({schema:this,typeName:Lt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return ll.create(this,this._def)}nullable(){return Pu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Uo.create(this,this._def)}promise(){return xp.create(this,this._def)}or(t){return rg.create([this,t],this._def)}and(t){return ig.create(this,t,this._def)}transform(t){return new Go({...ln(this._def),schema:this,typeName:Lt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new cg({...ln(this._def),innerType:this,defaultValue:n,typeName:Lt.ZodDefault})}brand(){return new eF({typeName:Lt.ZodBranded,type:this,...ln(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new vv({...ln(this._def),innerType:this,catchValue:n,typeName:Lt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return zg.create(this,t)}readonly(){return yv.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ase=/^c[^\s-]{8,}$/i,Nse=/^[a-z][a-z0-9]*$/,Dse=/^[0-9A-HJKMNP-TV-Z]{26}$/,Pse=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Mse=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,kse="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dE;const $se=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Lse=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Fse=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Bse(e,t){return!!((t==="v4"||!t)&&$se.test(e)||(t==="v6"||!t)&&Lse.test(e))}class Do extends fn{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==mt.string){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.string,received:a.parsedType}),rn}const r=new Pi;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(i=this._getOrReturnCtx(t,i),ht(i,{code:ot.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const l=t.data.length>a.value,s=t.data.lengtht.test(i),{validation:n,code:ot.invalid_string,...It.errToObj(r)})}_addCheck(t){return new Do({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...It.errToObj(t)})}url(t){return this._addCheck({kind:"url",...It.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...It.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...It.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...It.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...It.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...It.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...It.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...It.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...It.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...It.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...It.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...It.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...It.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...It.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...It.errToObj(n)})}nonempty(t){return this.min(1,It.errToObj(t))}trim(){return new Do({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Do({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Do({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Do({checks:[],typeName:Lt.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ln(e)})};function Use(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),l=parseInt(t.toFixed(i).replace(".",""));return a%l/Math.pow(10,i)}class bc extends fn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==mt.number){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.number,received:a.parsedType}),rn}let r;const i=new Pi;for(const a of this._def.checks)a.kind==="int"?kn.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?Use(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.not_finite,message:a.message}),i.dirty()):kn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,It.toString(n))}gt(t,n){return this.setLimit("min",t,!1,It.toString(n))}lte(t,n){return this.setLimit("max",t,!0,It.toString(n))}lt(t,n){return this.setLimit("max",t,!1,It.toString(n))}setLimit(t,n,r,i){return new bc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:It.toString(i)}]})}_addCheck(t){return new bc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:It.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:It.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:It.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:It.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:It.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:It.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:It.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:It.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:It.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&kn.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew bc({checks:[],typeName:Lt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ln(e)});class yc extends fn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==mt.bigint){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.bigint,received:a.parsedType}),rn}let r;const i=new Pi;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:ot.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):kn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,It.toString(n))}gt(t,n){return this.setLimit("min",t,!1,It.toString(n))}lte(t,n){return this.setLimit("max",t,!0,It.toString(n))}lt(t,n){return this.setLimit("max",t,!1,It.toString(n))}setLimit(t,n,r,i){return new yc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:It.toString(i)}]})}_addCheck(t){return new yc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:It.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:It.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:It.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:It.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:It.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new yc({checks:[],typeName:Lt.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ln(e)})};class eg extends fn{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==mt.boolean){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.boolean,received:r.parsedType}),rn}return ji(t.data)}}eg.create=e=>new eg({typeName:Lt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ln(e)});class Nu extends fn{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==mt.date){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_type,expected:mt.date,received:a.parsedType}),rn}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ht(a,{code:ot.invalid_date}),rn}const r=new Pi;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(i=this._getOrReturnCtx(t,i),ht(i,{code:ot.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):kn.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Nu({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:It.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:It.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Nu({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Lt.ZodDate,...ln(e)});class gv extends fn{_parse(t){if(this._getType(t)!==mt.symbol){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.symbol,received:r.parsedType}),rn}return ji(t.data)}}gv.create=e=>new gv({typeName:Lt.ZodSymbol,...ln(e)});class tg extends fn{_parse(t){if(this._getType(t)!==mt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.undefined,received:r.parsedType}),rn}return ji(t.data)}}tg.create=e=>new tg({typeName:Lt.ZodUndefined,...ln(e)});class ng extends fn{_parse(t){if(this._getType(t)!==mt.null){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.null,received:r.parsedType}),rn}return ji(t.data)}}ng.create=e=>new ng({typeName:Lt.ZodNull,...ln(e)});class wp extends fn{constructor(){super(...arguments),this._any=!0}_parse(t){return ji(t.data)}}wp.create=e=>new wp({typeName:Lt.ZodAny,...ln(e)});class vu extends fn{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ji(t.data)}}vu.create=e=>new vu({typeName:Lt.ZodUnknown,...ln(e)});class fl extends fn{_parse(t){const n=this._getOrReturnCtx(t);return ht(n,{code:ot.invalid_type,expected:mt.never,received:n.parsedType}),rn}}fl.create=e=>new fl({typeName:Lt.ZodNever,...ln(e)});class hv extends fn{_parse(t){if(this._getType(t)!==mt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.void,received:r.parsedType}),rn}return ji(t.data)}}hv.create=e=>new hv({typeName:Lt.ZodVoid,...ln(e)});class Uo extends fn{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==mt.array)return ht(n,{code:ot.invalid_type,expected:mt.array,received:n.parsedType}),rn;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,s=n.data.lengthi.maxLength.value&&(ht(n,{code:ot.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,s)=>i.type._parseAsync(new _s(n,l,n.path,s)))).then(l=>Pi.mergeArray(r,l));const a=[...n.data].map((l,s)=>i.type._parseSync(new _s(n,l,n.path,s)));return Pi.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Uo({...this._def,minLength:{value:t,message:It.toString(n)}})}max(t,n){return new Uo({...this._def,maxLength:{value:t,message:It.toString(n)}})}length(t,n){return new Uo({...this._def,exactLength:{value:t,message:It.toString(n)}})}nonempty(t){return this.min(1,t)}}Uo.create=(e,t)=>new Uo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Lt.ZodArray,...ln(t)});function Od(e){if(e instanceof Or){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ll.create(Od(r))}return new Or({...e._def,shape:()=>t})}else return e instanceof Uo?new Uo({...e._def,type:Od(e.element)}):e instanceof ll?ll.create(Od(e.unwrap())):e instanceof Pu?Pu.create(Od(e.unwrap())):e instanceof vs?vs.create(e.items.map(t=>Od(t))):e}class Or extends fn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=kn.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==mt.object){const o=this._getOrReturnCtx(t);return ht(o,{code:ot.invalid_type,expected:mt.object,received:o.parsedType}),rn}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:l}=this._getCached(),s=[];if(!(this._def.catchall instanceof fl&&this._def.unknownKeys==="strip"))for(const o in i.data)l.includes(o)||s.push(o);const u=[];for(const o of l){const c=a[o],d=i.data[o];u.push({key:{status:"valid",value:o},value:c._parse(new _s(i,d,i.path,o)),alwaysSet:o in i.data})}if(this._def.catchall instanceof fl){const o=this._def.unknownKeys;if(o==="passthrough")for(const c of s)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(o==="strict")s.length>0&&(ht(i,{code:ot.unrecognized_keys,keys:s}),r.dirty());else if(o!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const o=this._def.catchall;for(const c of s){const d=i.data[c];u.push({key:{status:"valid",value:c},value:o._parse(new _s(i,d,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const o=[];for(const c of u){const d=await c.key;o.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return o}).then(o=>Pi.mergeObjectSync(r,o)):Pi.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return It.errToObj,new Or({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,l,s;const u=(l=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=It.errToObj(t).message)!==null&&s!==void 0?s:u}:{message:u}}}:{}})}strip(){return new Or({...this._def,unknownKeys:"strip"})}passthrough(){return new Or({...this._def,unknownKeys:"passthrough"})}extend(t){return new Or({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Or({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Lt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Or({...this._def,catchall:t})}pick(t){const n={};return kn.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Or({...this._def,shape:()=>n})}omit(t){const n={};return kn.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Or({...this._def,shape:()=>n})}deepPartial(){return Od(this)}partial(t){const n={};return kn.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Or({...this._def,shape:()=>n})}required(t){const n={};return kn.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof ll;)a=a._def.innerType;n[r]=a}}),new Or({...this._def,shape:()=>n})}keyof(){return J3(kn.objectKeys(this.shape))}}Or.create=(e,t)=>new Or({shape:()=>e,unknownKeys:"strip",catchall:fl.create(),typeName:Lt.ZodObject,...ln(t)});Or.strictCreate=(e,t)=>new Or({shape:()=>e,unknownKeys:"strict",catchall:fl.create(),typeName:Lt.ZodObject,...ln(t)});Or.lazycreate=(e,t)=>new Or({shape:e,unknownKeys:"strip",catchall:fl.create(),typeName:Lt.ZodObject,...ln(t)});class rg extends fn{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const l=a.map(s=>new Bo(s.ctx.common.issues));return ht(n,{code:ot.invalid_union,unionErrors:l}),rn}if(n.common.async)return Promise.all(r.map(async a=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let a;const l=[];for(const u of r){const o={...n,common:{...n.common,issues:[]},parent:null},c=u._parseSync({data:n.data,path:n.path,parent:o});if(c.status==="valid")return c;c.status==="dirty"&&!a&&(a={result:c,ctx:o}),o.common.issues.length&&l.push(o.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=l.map(u=>new Bo(u));return ht(n,{code:ot.invalid_union,unionErrors:s}),rn}}get options(){return this._def.options}}rg.create=(e,t)=>new rg({options:e,typeName:Lt.ZodUnion,...ln(t)});const v0=e=>e instanceof og?v0(e.schema):e instanceof Go?v0(e.innerType()):e instanceof sg?[e.value]:e instanceof Sc?e.options:e instanceof lg?Object.keys(e.enum):e instanceof cg?v0(e._def.innerType):e instanceof tg?[void 0]:e instanceof ng?[null]:null;class Mb extends fn{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.object)return ht(n,{code:ot.invalid_type,expected:mt.object,received:n.parsedType}),rn;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(ht(n,{code:ot.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),rn)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const l=v0(a.shape[t]);if(!l)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of l){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Mb({typeName:Lt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ln(r)})}}function FC(e,t){const n=Xl(e),r=Xl(t);if(e===t)return{valid:!0,data:e};if(n===mt.object&&r===mt.object){const i=kn.objectKeys(t),a=kn.objectKeys(e).filter(s=>i.indexOf(s)!==-1),l={...e,...t};for(const s of a){const u=FC(e[s],t[s]);if(!u.valid)return{valid:!1};l[s]=u.data}return{valid:!0,data:l}}else if(n===mt.array&&r===mt.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a{if($C(a)||$C(l))return rn;const s=FC(a.value,l.value);return s.valid?((LC(a)||LC(l))&&n.dirty(),{status:n.value,value:s.data}):(ht(r,{code:ot.invalid_intersection_types}),rn)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,l])=>i(a,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ig.create=(e,t,n)=>new ig({left:e,right:t,typeName:Lt.ZodIntersection,...ln(n)});class vs extends fn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.array)return ht(r,{code:ot.invalid_type,expected:mt.array,received:r.parsedType}),rn;if(r.data.lengththis._def.items.length&&(ht(r,{code:ot.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((l,s)=>{const u=this._def.items[s]||this._def.rest;return u?u._parse(new _s(r,l,r.path,s)):null}).filter(l=>!!l);return r.common.async?Promise.all(a).then(l=>Pi.mergeArray(n,l)):Pi.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new vs({...this._def,rest:t})}}vs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vs({items:e,typeName:Lt.ZodTuple,rest:null,...ln(t)})};class ag extends fn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.object)return ht(r,{code:ot.invalid_type,expected:mt.object,received:r.parsedType}),rn;const i=[],a=this._def.keyType,l=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new _s(r,s,r.path,s)),value:l._parse(new _s(r,r.data[s],r.path,s))});return r.common.async?Pi.mergeObjectAsync(n,i):Pi.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof fn?new ag({keyType:t,valueType:n,typeName:Lt.ZodRecord,...ln(r)}):new ag({keyType:Do.create(),valueType:t,typeName:Lt.ZodRecord,...ln(n)})}}class _v extends fn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.map)return ht(r,{code:ot.invalid_type,expected:mt.map,received:r.parsedType}),rn;const i=this._def.keyType,a=this._def.valueType,l=[...r.data.entries()].map(([s,u],o)=>({key:i._parse(new _s(r,s,r.path,[o,"key"])),value:a._parse(new _s(r,u,r.path,[o,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const u of l){const o=await u.key,c=await u.value;if(o.status==="aborted"||c.status==="aborted")return rn;(o.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(o.value,c.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const u of l){const o=u.key,c=u.value;if(o.status==="aborted"||c.status==="aborted")return rn;(o.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(o.value,c.value)}return{status:n.value,value:s}}}}_v.create=(e,t,n)=>new _v({valueType:t,keyType:e,typeName:Lt.ZodMap,...ln(n)});class Du extends fn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.set)return ht(r,{code:ot.invalid_type,expected:mt.set,received:r.parsedType}),rn;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(ht(r,{code:ot.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function l(u){const o=new Set;for(const c of u){if(c.status==="aborted")return rn;c.status==="dirty"&&n.dirty(),o.add(c.value)}return{status:n.value,value:o}}const s=[...r.data.values()].map((u,o)=>a._parse(new _s(r,u,r.path,o)));return r.common.async?Promise.all(s).then(u=>l(u)):l(s)}min(t,n){return new Du({...this._def,minSize:{value:t,message:It.toString(n)}})}max(t,n){return new Du({...this._def,maxSize:{value:t,message:It.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Du.create=(e,t)=>new Du({valueType:e,minSize:null,maxSize:null,typeName:Lt.ZodSet,...ln(t)});class ep extends fn{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.function)return ht(n,{code:ot.invalid_type,expected:mt.function,received:n.parsedType}),rn;function r(s,u){return fv({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,pv(),Xm].filter(o=>!!o),issueData:{code:ot.invalid_arguments,argumentsError:u}})}function i(s,u){return fv({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,pv(),Xm].filter(o=>!!o),issueData:{code:ot.invalid_return_type,returnTypeError:u}})}const a={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof xp){const s=this;return ji(async function(...u){const o=new Bo([]),c=await s._def.args.parseAsync(u,a).catch(f=>{throw o.addIssue(r(u,f)),o}),d=await Reflect.apply(l,this,c);return await s._def.returns._def.type.parseAsync(d,a).catch(f=>{throw o.addIssue(i(d,f)),o})})}else{const s=this;return ji(function(...u){const o=s._def.args.safeParse(u,a);if(!o.success)throw new Bo([r(u,o.error)]);const c=Reflect.apply(l,this,o.data),d=s._def.returns.safeParse(c,a);if(!d.success)throw new Bo([i(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ep({...this._def,args:vs.create(t).rest(vu.create())})}returns(t){return new ep({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ep({args:t||vs.create([]).rest(vu.create()),returns:n||vu.create(),typeName:Lt.ZodFunction,...ln(r)})}}class og extends fn{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}og.create=(e,t)=>new og({getter:e,typeName:Lt.ZodLazy,...ln(t)});class sg extends fn{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ht(n,{received:n.data,code:ot.invalid_literal,expected:this._def.value}),rn}return{status:"valid",value:t.data}}get value(){return this._def.value}}sg.create=(e,t)=>new sg({value:e,typeName:Lt.ZodLiteral,...ln(t)});function J3(e,t){return new Sc({values:e,typeName:Lt.ZodEnum,...ln(t)})}class Sc extends fn{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ht(n,{expected:kn.joinValues(r),received:n.parsedType,code:ot.invalid_type}),rn}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return ht(n,{received:n.data,code:ot.invalid_enum_value,options:r}),rn}return ji(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Sc.create(t)}exclude(t){return Sc.create(this.options.filter(n=>!t.includes(n)))}}Sc.create=J3;class lg extends fn{_parse(t){const n=kn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==mt.string&&r.parsedType!==mt.number){const i=kn.objectValues(n);return ht(r,{expected:kn.joinValues(i),received:r.parsedType,code:ot.invalid_type}),rn}if(n.indexOf(t.data)===-1){const i=kn.objectValues(n);return ht(r,{received:r.data,code:ot.invalid_enum_value,options:i}),rn}return ji(t.data)}get enum(){return this._def.values}}lg.create=(e,t)=>new lg({values:e,typeName:Lt.ZodNativeEnum,...ln(t)});class xp extends fn{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.promise&&n.common.async===!1)return ht(n,{code:ot.invalid_type,expected:mt.promise,received:n.parsedType}),rn;const r=n.parsedType===mt.promise?n.data:Promise.resolve(n.data);return ji(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}xp.create=(e,t)=>new xp({type:e,typeName:Lt.ZodPromise,...ln(t)});class Go extends fn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Lt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:l=>{ht(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const l=i.transform(r.data,a);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(l).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:l,path:r.path,parent:r})}if(i.type==="refinement"){const l=s=>{const u=i.refinement(s,a);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?rn:(s.status==="dirty"&&n.dirty(),l(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?rn:(s.status==="dirty"&&n.dirty(),l(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Jm(l))return l;const s=i.transform(l.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Jm(l)?Promise.resolve(i.transform(l.value,a)).then(s=>({status:n.value,value:s})):l);kn.assertNever(i)}}Go.create=(e,t,n)=>new Go({schema:e,typeName:Lt.ZodEffects,effect:t,...ln(n)});Go.createWithPreprocess=(e,t,n)=>new Go({schema:t,effect:{type:"preprocess",transform:e},typeName:Lt.ZodEffects,...ln(n)});class ll extends fn{_parse(t){return this._getType(t)===mt.undefined?ji(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ll.create=(e,t)=>new ll({innerType:e,typeName:Lt.ZodOptional,...ln(t)});class Pu extends fn{_parse(t){return this._getType(t)===mt.null?ji(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pu.create=(e,t)=>new Pu({innerType:e,typeName:Lt.ZodNullable,...ln(t)});class cg extends fn{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===mt.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}cg.create=(e,t)=>new cg({innerType:e,typeName:Lt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ln(t)});class vv extends fn{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mv(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Bo(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}vv.create=(e,t)=>new vv({innerType:e,typeName:Lt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ln(t)});class bv extends fn{_parse(t){if(this._getType(t)!==mt.nan){const r=this._getOrReturnCtx(t);return ht(r,{code:ot.invalid_type,expected:mt.nan,received:r.parsedType}),rn}return{status:"valid",value:t.data}}}bv.create=e=>new bv({typeName:Lt.ZodNaN,...ln(e)});const Hse=Symbol("zod_brand");class eF extends fn{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class zg extends fn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?rn:a.status==="dirty"?(n.dirty(),X3(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?rn:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new zg({in:t,out:n,typeName:Lt.ZodPipeline})}}class yv extends fn{_parse(t){const n=this._def.innerType._parse(t);return Jm(n)&&(n.value=Object.freeze(n.value)),n}}yv.create=(e,t)=>new yv({innerType:e,typeName:Lt.ZodReadonly,...ln(t)});const tF=(e,t={},n)=>e?wp.create().superRefine((r,i)=>{var a,l;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,u=(l=(a=s.fatal)!==null&&a!==void 0?a:n)!==null&&l!==void 0?l:!0,o=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...o,fatal:u})}}):wp.create(),zse={object:Or.lazycreate};var Lt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Lt||(Lt={}));const Vse=(e,t={message:`Input not instance of ${e.name}`})=>tF(n=>n instanceof e,t),nF=Do.create,rF=bc.create,Gse=bv.create,Yse=yc.create,iF=eg.create,jse=Nu.create,Wse=gv.create,qse=tg.create,Kse=ng.create,Zse=wp.create,Qse=vu.create,Xse=fl.create,Jse=hv.create,ele=Uo.create,tle=Or.create,nle=Or.strictCreate,rle=rg.create,ile=Mb.create,ale=ig.create,ole=vs.create,sle=ag.create,lle=_v.create,cle=Du.create,ule=ep.create,dle=og.create,ple=sg.create,fle=Sc.create,mle=lg.create,gle=xp.create,WD=Go.create,hle=ll.create,_le=Pu.create,vle=Go.createWithPreprocess,ble=zg.create,yle=()=>nF().optional(),Sle=()=>rF().optional(),Ele=()=>iF().optional(),Cle={string:e=>Do.create({...e,coerce:!0}),number:e=>bc.create({...e,coerce:!0}),boolean:e=>eg.create({...e,coerce:!0}),bigint:e=>yc.create({...e,coerce:!0}),date:e=>Nu.create({...e,coerce:!0})},Tle=rn;var pWe=Object.freeze({__proto__:null,defaultErrorMap:Xm,setErrorMap:Rse,getErrorMap:pv,makeIssue:fv,EMPTY_PATH:Ise,addIssueToContext:ht,ParseStatus:Pi,INVALID:rn,DIRTY:X3,OK:ji,isAborted:$C,isDirty:LC,isValid:Jm,isAsync:mv,get util(){return kn},get objectUtil(){return kC},ZodParsedType:mt,getParsedType:Xl,ZodType:fn,ZodString:Do,ZodNumber:bc,ZodBigInt:yc,ZodBoolean:eg,ZodDate:Nu,ZodSymbol:gv,ZodUndefined:tg,ZodNull:ng,ZodAny:wp,ZodUnknown:vu,ZodNever:fl,ZodVoid:hv,ZodArray:Uo,ZodObject:Or,ZodUnion:rg,ZodDiscriminatedUnion:Mb,ZodIntersection:ig,ZodTuple:vs,ZodRecord:ag,ZodMap:_v,ZodSet:Du,ZodFunction:ep,ZodLazy:og,ZodLiteral:sg,ZodEnum:Sc,ZodNativeEnum:lg,ZodPromise:xp,ZodEffects:Go,ZodTransformer:Go,ZodOptional:ll,ZodNullable:Pu,ZodDefault:cg,ZodCatch:vv,ZodNaN:bv,BRAND:Hse,ZodBranded:eF,ZodPipeline:zg,ZodReadonly:yv,custom:tF,Schema:fn,ZodSchema:fn,late:zse,get ZodFirstPartyTypeKind(){return Lt},coerce:Cle,any:Zse,array:ele,bigint:Yse,boolean:iF,date:jse,discriminatedUnion:ile,effect:WD,enum:fle,function:ule,instanceof:Vse,intersection:ale,lazy:dle,literal:ple,map:lle,nan:Gse,nativeEnum:mle,never:Xse,null:Kse,nullable:_le,number:rF,object:tle,oboolean:Ele,onumber:Sle,optional:hle,ostring:yle,pipeline:ble,preprocess:vle,promise:gle,record:sle,set:cle,strictObject:nle,string:nF,symbol:Wse,transformer:WD,tuple:ole,undefined:qse,union:rle,unknown:Qse,void:Jse,NEVER:Tle,ZodIssueCode:ot,quotelessJson:Ose,ZodError:Bo});const fWe=(e,t)=>{Object.keys(t).forEach(n=>{e.component(n,t[n])})},eo=class{static init(){eo.createContainer(),eo.addStylesheetToDocument()}static createContainer(){eo.toastContainer=document.createElement("div"),Object.assign(eo.toastContainer.style,wle),document.body.appendChild(eo.toastContainer)}static addStylesheetToDocument(){const t=document.createElement("style");t.innerHTML=xle,document.head.appendChild(t)}static info(t,n=1e4){eo.showMessage(t,n)}static error(t,n=1e4){eo.showMessage(t,n,{"background-color":"#ffaaaa","font-family":"monospace",color:"#000000"})}static showMessage(t,n,r={}){if(!eo.toastContainer)throw new Error("Toast not initialized");if(!t.trim())return;const i=eo.makeToastMessageElement(t);Object.assign(i.style,r),eo.toastContainer.appendChild(i),setTimeout(()=>i.remove(),n)}static makeToastMessageElement(t){const n=document.createElement("div");return n.innerHTML=t,n.classList.add("abstra-toast-message"),n.onclick=n.remove,n}};let pE=eo;yn(pE,"toastContainer",null);const wle={position:"fixed",bottom:"10px",right:"0",left:"0",display:"flex",flexDirection:"column",alignItems:"center"},xle=` .abstra-toast-message { padding: 15px; margin-top: 5px; @@ -556,7 +556,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{color:e.colorTextDisabled}}}}}},bke=vke,yke=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:i,lineHeight:a}=e,l=`${t}-list-item`,s=`${l}-actions`,u=`${l}-action`,o=Math.round(i*a);return{[`${t}-wrapper`]:{[`${t}-list`]:R(R({},Mu()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*i,marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:R(R({},gl),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{[u]:{opacity:0},[`${u}${n}-btn-sm`]:{height:o,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${u}:focus, &.picture ${u} - `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:i+e.paddingXS,fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${u}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ske=yke,AL=new Yt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),NL=new Yt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Eke=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:AL},[`${n}-leave`]:{animationName:NL}}},AL,NL]},Cke=Eke,Tke=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[l]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:R(R({},gl),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:i,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{["svg path[fill='#e6f7ff']"]:{fill:e.colorErrorBg},["svg path[fill='#1890ff']"]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:i}}}}}},wke=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:R(R({},Mu()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Sn(i).setAlpha(.65).toRgbString(),"&:hover":{color:i}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},xke=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Oke=xke,Rke=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:R(R({},Nn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Ike=Mn("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightLG:a}=e,l=Math.round(n*r),s=jt(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+i,uploadPicCardSize:a*2.55});return[Rke(s),bke(s),Tke(s),wke(s),Ske(s),Cke(s),Oke(s),uy(s)]});var Ake=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function s(c){try{o(r.next(c))}catch(d){l(d)}}function u(c){try{o(r.throw(c))}catch(d){l(d)}}function o(c){c.done?a(c.value):i(c.value).then(s,u)}o((r=r.apply(e,t||[])).next())})},Nke=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var M;return(M=u.value)!==null&&M!==void 0?M:d.value}),[f,g]=Zr(e.defaultFileList||[],{value:xt(e,"fileList"),postState:M=>{const B=Date.now();return(M!=null?M:[]).map((P,k)=>(!P.uid&&!Object.isFrozen(P)&&(P.uid=`__AUTO__${B}_${k}__`),P))}}),m=Oe("drop"),h=Oe(null);_t(()=>{Mr(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Mr(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Mr(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const v=(M,B,P)=>{var k,D;let F=[...B];e.maxCount===1?F=F.slice(-1):e.maxCount&&(F=F.slice(0,e.maxCount)),g(F);const U={file:M,fileList:F};P&&(U.event=P),(k=e["onUpdate:fileList"])===null||k===void 0||k.call(e,U.fileList),(D=e.onChange)===null||D===void 0||D.call(e,U),a.onFieldChange()},b=(M,B)=>Ake(this,void 0,void 0,function*(){const{beforeUpload:P,transformFile:k}=e;let D=M;if(P){const F=yield P(M,B);if(F===!1)return!1;if(delete M[Jf],F===Jf)return Object.defineProperty(M,Jf,{value:!0,configurable:!0}),!1;typeof F=="object"&&F&&(D=F)}return k&&(D=yield k(D)),D}),y=M=>{const B=M.filter(D=>!D.file[Jf]);if(!B.length)return;const P=B.map(D=>c0(D.file));let k=[...f.value];P.forEach(D=>{k=u0(D,k)}),P.forEach((D,F)=>{let U=D;if(B[F].parsedFile)D.status="uploading";else{const{originFileObj:z}=D;let Y;try{Y=new File([z],z.name,{type:z.type})}catch{Y=new Blob([z],{type:z.type}),Y.name=z.name,Y.lastModifiedDate=new Date,Y.lastModified=new Date().getTime()}Y.uid=D.uid,U=Y}v(U,k)})},S=(M,B,P)=>{try{typeof M=="string"&&(M=JSON.parse(M))}catch{}if(!f1(B,f.value))return;const k=c0(B);k.status="done",k.percent=100,k.response=M,k.xhr=P;const D=u0(k,f.value);v(k,D)},C=(M,B)=>{if(!f1(B,f.value))return;const P=c0(B);P.status="uploading",P.percent=M.percent;const k=u0(P,f.value);v(P,k,M)},w=(M,B,P)=>{if(!f1(P,f.value))return;const k=c0(P);k.error=M,k.response=B,k.status="error";const D=u0(k,f.value);v(k,D)},T=M=>{let B;const P=e.onRemove||e.remove;Promise.resolve(typeof P=="function"?P(M):P).then(k=>{var D,F;if(k===!1)return;const U=oke(M,f.value);U&&(B=R(R({},M),{status:"removed"}),(D=f.value)===null||D===void 0||D.forEach(z=>{const Y=B.uid!==void 0?"uid":"name";z[Y]===B[Y]&&!Object.isFrozen(z)&&(z.status="removed")}),(F=h.value)===null||F===void 0||F.abort(B),v(B,U))})},O=M=>{var B;m.value=M.type,M.type==="drop"&&((B=e.onDrop)===null||B===void 0||B.call(e,M))};i({onBatchStart:y,onSuccess:S,onProgress:C,onError:w,fileList:f,upload:h});const[I]=Ko("Upload",uo.Upload,$(()=>e.locale)),N=(M,B)=>{const{removeIcon:P,previewIcon:k,downloadIcon:D,previewFile:F,onPreview:U,onDownload:z,isImageUrl:Y,progress:G,itemRender:K,iconRender:X,showUploadList:ie}=e,{showDownloadIcon:se,showPreviewIcon:q,showRemoveIcon:ee}=typeof ie=="boolean"?{}:ie;return ie?x(_ke,{prefixCls:l.value,listType:e.listType,items:f.value,previewFile:F,onPreview:U,onDownload:z,onRemove:T,showRemoveIcon:!p.value&&ee,showPreviewIcon:q,showDownloadIcon:se,removeIcon:P,previewIcon:k,downloadIcon:D,iconRender:X,locale:I.value,isImageUrl:Y,progress:G,itemRender:K,appendActionVisible:B,appendAction:M},R({},n)):M==null?void 0:M()};return()=>{var M,B,P;const{listType:k,type:D}=e,{class:F,style:U}=r,z=Nke(r,["class","style"]),Y=R(R(R({onBatchStart:y,onError:w,onProgress:C,onSuccess:S},z),e),{id:(M=e.id)!==null&&M!==void 0?M:a.id.value,prefixCls:l.value,beforeUpload:b,onChange:void 0,disabled:p.value});delete Y.remove,(!n.default||p.value)&&delete Y.id;const G={[`${l.value}-rtl`]:s.value==="rtl"};if(D==="drag"){const se=Fe(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:f.value.some(q=>q.status==="uploading"),[`${l.value}-drag-hover`]:m.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"},r.class,c.value);return o(x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,F,c.value)}),[x("div",{class:se,onDrop:O,onDragover:O,onDragleave:O,style:r.style},[x(wL,Z(Z({},Y),{},{ref:h,class:`${l.value}-btn`}),Z({default:()=>[x("div",{class:`${l.value}-drag-container`},[(B=n.default)===null||B===void 0?void 0:B.call(n)])]},n))]),N()]))}const K=Fe(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${k}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"}),X=ni((P=n.default)===null||P===void 0?void 0:P.call(n)),ie=se=>x("div",{class:K,style:se},[x(wL,Z(Z({},Y),{},{ref:h}),n)]);return o(k==="picture-card"?x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,G,r.class,c.value)}),[N(ie,!!(X&&X.length))]):x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,r.class,c.value)}),[ie(X&&X.length?void 0:{display:"none"}),N()]))}}});var DL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{height:i}=e,a=DL(e,["height"]),{style:l}=r,s=DL(r,["style"]),u=R(R(R({},a),s),{type:"drag",style:R(R({},l),{height:typeof i=="number"?`${i}px`:i})});return x(F0,u,n)}}}),Dke=B0,Cz=R(F0,{Dragger:B0,LIST_IGNORE:Jf,install(e){return e.component(F0.name,F0),e.component(B0.name,B0),e}});var Pke={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:n}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:t}}]}},name:"close-circle",theme:"twotone"};const Mke=Pke;var kke={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:n}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:t}}]}},name:"edit",theme:"twotone"};const $ke=kke;var Lke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const Fke=Lke;var Bke={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const Uke=Bke,Tz=["wrap","nowrap","wrap-reverse"],wz=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],xz=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Hke=(e,t)=>{const n={};return Tz.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},zke=(e,t)=>{const n={};return xz.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Vke=(e,t)=>{const n={};return wz.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function Gke(e,t){return Fe(R(R(R({},Hke(e,t)),zke(e,t)),Vke(e,t)))}const Yke=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},jke=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Wke=e=>{const{componentCls:t}=e,n={};return Tz.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},qke=e=>{const{componentCls:t}=e,n={};return xz.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},Kke=e=>{const{componentCls:t}=e,n={};return wz.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},Zke=Mn("Flex",e=>{const t=jt(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[Yke(t),jke(t),Wke(t),qke(t),Kke(t)]});function PL(e){return["small","middle","large"].includes(e)}const Qke=()=>({prefixCls:Bt(),vertical:nt(),wrap:Bt(),justify:Bt(),align:Bt(),flex:nn([Number,String]),gap:nn([Number,String]),component:br()});var Xke=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var c;return[l.value,u.value,Gke(l.value,e),{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-gap-${e.gap}`]:PL(e.gap),[`${l.value}-vertical`]:(c=e.vertical)!==null&&c!==void 0?c:i==null?void 0:i.value.vertical}]});return()=>{var c;const{flex:d,gap:p,component:f="div"}=e,g=Xke(e,["flex","gap","component"]),m={};return d&&(m.flex=d),p&&!PL(p)&&(m.gap=`${p}px`),s(x(f,Z({class:[r.class,o.value],style:[r.style,m]},Dn(g,["justify","wrap","align","vertical"])),{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}))}}}),e$e=go(Jke),t$e=["width","height","fill","transform"],n$e={key:0},r$e=Ee("path",{d:"M204.41,51.63a108,108,0,1,0,0,152.74A107.38,107.38,0,0,0,204.41,51.63Zm-17,17A83.85,83.85,0,0,1,196.26,79L169,111.09l-23.3-65.21A83.52,83.52,0,0,1,187.43,68.6Zm-118.85,0a83.44,83.44,0,0,1,51.11-24.2l14.16,39.65L65.71,71.61C66.64,70.59,67.59,69.59,68.58,68.6ZM48,153.7a84.48,84.48,0,0,1,3.4-60.3L92.84,101Zm20.55,33.7A83.94,83.94,0,0,1,59.74,177L87,144.91l23.3,65.21A83.53,83.53,0,0,1,68.58,187.4Zm36.36-63.61,15.18-17.85,23.06,4.21,7.88,22.06-15.17,17.85-23.06-4.21Zm82.49,63.61a83.49,83.49,0,0,1-51.11,24.2L122.15,172l68.14,12.44C189.36,185.41,188.41,186.41,187.43,187.4ZM163.16,155,208,102.3a84.43,84.43,0,0,1-3.41,60.3Z"},null,-1),i$e=[r$e],a$e={key:1},o$e=Ee("path",{d:"M195.88,60.12a96,96,0,1,0,0,135.76A96,96,0,0,0,195.88,60.12Zm-55.34,103h0l-36.68-6.69h0L91.32,121.3l24.14-28.41h0l36.68,6.69,12.54,35.12Z",opacity:"0.2"},null,-1),s$e=Ee("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),l$e=[o$e,s$e],c$e={key:2},u$e=Ee("path",{d:"M232,128A104,104,0,0,0,54.46,54.46,104,104,0,0,0,128,232h.09A104,104,0,0,0,232,128ZM49.18,88.92l51.21,9.35L46.65,161.53A88.39,88.39,0,0,1,49.18,88.92Zm160.17,5.54a88.41,88.41,0,0,1-2.53,72.62l-51.21-9.35Zm-8.08-15.2L167.55,119,139.63,40.78a87.38,87.38,0,0,1,50.6,25A88.74,88.74,0,0,1,201.27,79.26ZM122.43,40.19l17.51,49L58.3,74.32a89.28,89.28,0,0,1,7.47-8.55A87.37,87.37,0,0,1,122.43,40.19ZM54.73,176.74,88.45,137l27.92,78.18a88,88,0,0,1-61.64-38.48Zm78.84,39.06-17.51-49L139.14,171h0l58.52,10.69a87.5,87.5,0,0,1-64.13,34.12Z"},null,-1),d$e=[u$e],p$e={key:3},f$e=Ee("path",{d:"M200.12,55.88A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.88Zm-102,66.67,19.65-23.14,29.86,5.46,10.21,28.58-19.65,23.14-29.86-5.46ZM209.93,90.69a90.24,90.24,0,0,1-2,78.63l-56.14-10.24Zm-6.16-11.28-36.94,43.48L136.66,38.42a89.31,89.31,0,0,1,55,25.94A91.33,91.33,0,0,1,203.77,79.41Zm-139.41-15A89.37,89.37,0,0,1,123.81,38.1L143,91.82,54.75,75.71A91.2,91.2,0,0,1,64.36,64.36ZM48,86.68l56.14,10.24L46.07,165.31a90.24,90.24,0,0,1,2-78.63Zm4.21,89.91,36.94-43.48,30.17,84.47a89.31,89.31,0,0,1-55-25.94A91.33,91.33,0,0,1,52.23,176.59Zm139.41,15a89.32,89.32,0,0,1-59.45,26.26L113,164.18l88.24,16.11A91.2,91.2,0,0,1,191.64,191.64Z"},null,-1),m$e=[f$e],g$e={key:4},h$e=Ee("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),_$e=[h$e],v$e={key:5},b$e=Ee("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm10.37,114.27-61-11.14L210.4,87a92.26,92.26,0,0,1-1.32,84.52ZM95.87,122.13,117,97.24l32.14,5.86,11,30.77L139,158.76l-32.14-5.86ZM206.24,79.58l-40.13,47.25L133.75,36.2a92.09,92.09,0,0,1,72.49,43.38ZM63,63a91.31,91.31,0,0,1,62.26-26.88L146,94.41,51.32,77.11A92.94,92.94,0,0,1,63,63Zm-16,21.49,61,11.14L45.6,169a92.26,92.26,0,0,1,1.32-84.52Zm2.84,92,40.13-47.25,32.36,90.63a92.09,92.09,0,0,1-72.49-43.38Zm143.29,16.63a91.31,91.31,0,0,1-62.26,26.88L110,161.59l94.72,17.3A92.94,92.94,0,0,1,193.05,193.05Z"},null,-1),y$e=[b$e],S$e={name:"PhAperture"},E$e=Ce({...S$e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",n$e,i$e)):l.value==="duotone"?(oe(),pe("g",a$e,l$e)):l.value==="fill"?(oe(),pe("g",c$e,d$e)):l.value==="light"?(oe(),pe("g",p$e,m$e)):l.value==="regular"?(oe(),pe("g",g$e,_$e)):l.value==="thin"?(oe(),pe("g",v$e,y$e)):ft("",!0)],16,t$e))}}),C$e=["width","height","fill","transform"],T$e={key:0},w$e=Ee("path",{d:"M47.51,112.49a12,12,0,0,1,17-17L116,147V32a12,12,0,0,1,24,0V147l51.51-51.52a12,12,0,0,1,17,17l-72,72a12,12,0,0,1-17,0ZM216,204H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),x$e=[w$e],O$e={key:1},R$e=Ee("path",{d:"M200,112l-72,72L56,112Z",opacity:"0.2"},null,-1),I$e=Ee("path",{d:"M122.34,189.66a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,200,104H136V32a8,8,0,0,0-16,0v72H56a8,8,0,0,0-5.66,13.66ZM180.69,120,128,172.69,75.31,120ZM224,216a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,216Z"},null,-1),A$e=[R$e,I$e],N$e={key:2},D$e=Ee("path",{d:"M50.34,117.66A8,8,0,0,1,56,104h64V32a8,8,0,0,1,16,0v72h64a8,8,0,0,1,5.66,13.66l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),P$e=[D$e],M$e={key:3},k$e=Ee("path",{d:"M51.76,116.24a6,6,0,0,1,8.48-8.48L122,169.51V32a6,6,0,0,1,12,0V169.51l61.76-61.75a6,6,0,0,1,8.48,8.48l-72,72a6,6,0,0,1-8.48,0ZM216,210H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),$$e=[k$e],L$e={key:4},F$e=Ee("path",{d:"M50.34,117.66a8,8,0,0,1,11.32-11.32L120,164.69V32a8,8,0,0,1,16,0V164.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),B$e=[F$e],U$e={key:5},H$e=Ee("path",{d:"M53.17,114.83a4,4,0,0,1,5.66-5.66L124,174.34V32a4,4,0,0,1,8,0V174.34l65.17-65.17a4,4,0,1,1,5.66,5.66l-72,72a4,4,0,0,1-5.66,0ZM216,212H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),z$e=[H$e],V$e={name:"PhArrowLineDown"},G$e=Ce({...V$e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",T$e,x$e)):l.value==="duotone"?(oe(),pe("g",O$e,A$e)):l.value==="fill"?(oe(),pe("g",N$e,P$e)):l.value==="light"?(oe(),pe("g",M$e,$$e)):l.value==="regular"?(oe(),pe("g",L$e,B$e)):l.value==="thin"?(oe(),pe("g",U$e,z$e)):ft("",!0)],16,C$e))}}),Y$e=["width","height","fill","transform"],j$e={key:0},W$e=Ee("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"},null,-1),q$e=[W$e],K$e={key:1},Z$e=Ee("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"},null,-1),Q$e=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),X$e=[Z$e,Q$e],J$e={key:2},eLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"},null,-1),tLe=[eLe],nLe={key:3},rLe=Ee("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"},null,-1),iLe=[rLe],aLe={key:4},oLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),sLe=[oLe],lLe={key:5},cLe=Ee("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"},null,-1),uLe=[cLe],dLe={name:"PhCamera"},pLe=Ce({...dLe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",j$e,q$e)):l.value==="duotone"?(oe(),pe("g",K$e,X$e)):l.value==="fill"?(oe(),pe("g",J$e,tLe)):l.value==="light"?(oe(),pe("g",nLe,iLe)):l.value==="regular"?(oe(),pe("g",aLe,sLe)):l.value==="thin"?(oe(),pe("g",lLe,uLe)):ft("",!0)],16,Y$e))}}),fLe=["width","height","fill","transform"],mLe={key:0},gLe=Ee("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4Zm-32-92v20a12,12,0,0,1-12,12H148a12,12,0,0,1-7.76-21.14,28.07,28.07,0,0,0-29,2.73A12,12,0,0,1,96.79,94.4a52.28,52.28,0,0,1,61.14-.91A12,12,0,0,1,180,100Zm-18.41,52.8a12,12,0,0,1-2.38,16.8,51.71,51.71,0,0,1-31.13,10.34,52.3,52.3,0,0,1-30-9.44A12,12,0,0,1,76,164V144a12,12,0,0,1,12-12h20a12,12,0,0,1,7.76,21.14,28.07,28.07,0,0,0,29-2.73A12,12,0,0,1,161.59,152.8Z"},null,-1),hLe=[gLe],_Le={key:1},vLe=Ee("path",{d:"M224,80V192a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64H80L96,40h64l16,24h32A16,16,0,0,1,224,80Z",opacity:"0.2"},null,-1),bLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),yLe=[vLe,bLe],SLe={key:2},ELe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56ZM156.81,166.4A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61,8,8,0,0,1,9.62,12.79ZM176,120a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Z"},null,-1),CLe=[ELe],TLe={key:3},wLe=Ee("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM174,96v24a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h10l-2-2.09a34.12,34.12,0,0,0-44.38-3.12,6,6,0,1,1-7.22-9.59,46.2,46.2,0,0,1,60.14,4.27.47.47,0,0,0,.1.1L162,105V96a6,6,0,0,1,12,0Zm-17.2,60.4a6,6,0,0,1-1.19,8.4,46.18,46.18,0,0,1-60.14-4.27l-.1-.1L94,159v9a6,6,0,0,1-12,0V144a6,6,0,0,1,6-6h24a6,6,0,0,1,0,12H102l2,2.09a34.12,34.12,0,0,0,44.38,3.12A6,6,0,0,1,156.8,156.4Z"},null,-1),xLe=[wLe],OLe={key:4},RLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),ILe=[RLe],ALe={key:5},NLe=Ee("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM172,96v24a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h14.66l-5.27-5.52a36.12,36.12,0,0,0-47-3.29,4,4,0,1,1-4.8-6.39,44.17,44.17,0,0,1,57.51,4.09L164,110V96a4,4,0,0,1,8,0Zm-16.8,61.6a4,4,0,0,1-.8,5.6,44.15,44.15,0,0,1-57.51-4.09L92,154v14a4,4,0,0,1-8,0V144a4,4,0,0,1,4-4h24a4,4,0,0,1,0,8H97.34l5.27,5.52a36.12,36.12,0,0,0,47,3.29A4,4,0,0,1,155.2,157.6Z"},null,-1),DLe=[NLe],PLe={name:"PhCameraRotate"},MLe=Ce({...PLe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",mLe,hLe)):l.value==="duotone"?(oe(),pe("g",_Le,yLe)):l.value==="fill"?(oe(),pe("g",SLe,CLe)):l.value==="light"?(oe(),pe("g",TLe,xLe)):l.value==="regular"?(oe(),pe("g",OLe,ILe)):l.value==="thin"?(oe(),pe("g",ALe,DLe)):ft("",!0)],16,fLe))}}),kLe=["width","height","fill","transform"],$Le={key:0},LLe=Ee("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"},null,-1),FLe=[LLe],BLe={key:1},ULe=Ee("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"},null,-1),HLe=Ee("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),zLe=[ULe,HLe],VLe={key:2},GLe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),YLe=[GLe],jLe={key:3},WLe=Ee("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"},null,-1),qLe=[WLe],KLe={key:4},ZLe=Ee("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1),QLe=[ZLe],XLe={key:5},JLe=Ee("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"},null,-1),e4e=[JLe],t4e={name:"PhCheck"},n4e=Ce({...t4e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",$Le,FLe)):l.value==="duotone"?(oe(),pe("g",BLe,zLe)):l.value==="fill"?(oe(),pe("g",VLe,YLe)):l.value==="light"?(oe(),pe("g",jLe,qLe)):l.value==="regular"?(oe(),pe("g",KLe,QLe)):l.value==="thin"?(oe(),pe("g",XLe,e4e)):ft("",!0)],16,kLe))}}),r4e=["width","height","fill","transform"],i4e={key:0},a4e=Ee("path",{d:"M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z"},null,-1),o4e=[a4e],s4e={key:1},l4e=Ee("path",{d:"M240,128l-48,40H64L16,128,64,88H192Z",opacity:"0.2"},null,-1),c4e=Ee("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),u4e=[l4e,c4e],d4e={key:2},p4e=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z"},null,-1),f4e=[p4e],m4e={key:3},g4e=Ee("path",{d:"M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z"},null,-1),h4e=[g4e],_4e={key:4},v4e=Ee("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),b4e=[v4e],y4e={key:5},S4e=Ee("path",{d:"M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z"},null,-1),E4e=[S4e],C4e={name:"PhCode"},T4e=Ce({...C4e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",i4e,o4e)):l.value==="duotone"?(oe(),pe("g",s4e,u4e)):l.value==="fill"?(oe(),pe("g",d4e,f4e)):l.value==="light"?(oe(),pe("g",m4e,h4e)):l.value==="regular"?(oe(),pe("g",_4e,b4e)):l.value==="thin"?(oe(),pe("g",y4e,E4e)):ft("",!0)],16,r4e))}}),w4e=["width","height","fill","transform"],x4e={key:0},O4e=Ee("path",{d:"M76,92A16,16,0,1,1,60,76,16,16,0,0,1,76,92Zm52-16a16,16,0,1,0,16,16A16,16,0,0,0,128,76Zm68,32a16,16,0,1,0-16-16A16,16,0,0,0,196,108ZM60,148a16,16,0,1,0,16,16A16,16,0,0,0,60,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,128,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,196,148Z"},null,-1),R4e=[O4e],I4e={key:1},A4e=Ee("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"},null,-1),N4e=Ee("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),D4e=[A4e,N4e],P4e={key:2},M4e=Ee("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM68,168a12,12,0,1,1,12-12A12,12,0,0,1,68,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,68,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,128,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,128,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,188,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,188,112Z"},null,-1),k4e=[M4e],$4e={key:3},L4e=Ee("path",{d:"M70,92A10,10,0,1,1,60,82,10,10,0,0,1,70,92Zm58-10a10,10,0,1,0,10,10A10,10,0,0,0,128,82Zm68,20a10,10,0,1,0-10-10A10,10,0,0,0,196,102ZM60,154a10,10,0,1,0,10,10A10,10,0,0,0,60,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,128,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,196,154Z"},null,-1),F4e=[L4e],B4e={key:4},U4e=Ee("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),H4e=[U4e],z4e={key:5},V4e=Ee("path",{d:"M68,92a8,8,0,1,1-8-8A8,8,0,0,1,68,92Zm60-8a8,8,0,1,0,8,8A8,8,0,0,0,128,84Zm68,16a8,8,0,1,0-8-8A8,8,0,0,0,196,100ZM60,156a8,8,0,1,0,8,8A8,8,0,0,0,60,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,128,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,196,156Z"},null,-1),G4e=[V4e],Y4e={name:"PhDotsSix"},j4e=Ce({...Y4e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",x4e,R4e)):l.value==="duotone"?(oe(),pe("g",I4e,D4e)):l.value==="fill"?(oe(),pe("g",P4e,k4e)):l.value==="light"?(oe(),pe("g",$4e,F4e)):l.value==="regular"?(oe(),pe("g",B4e,H4e)):l.value==="thin"?(oe(),pe("g",z4e,G4e)):ft("",!0)],16,w4e))}}),W4e=["width","height","fill","transform"],q4e={key:0},K4e=Ee("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"},null,-1),Z4e=[K4e],Q4e={key:1},X4e=Ee("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"},null,-1),J4e=Ee("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),e6e=[X4e,J4e],t6e={key:2},n6e=Ee("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),r6e=[n6e],i6e={key:3},a6e=Ee("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"},null,-1),o6e=[a6e],s6e={key:4},l6e=Ee("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),c6e=[l6e],u6e={key:5},d6e=Ee("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"},null,-1),p6e=[d6e],f6e={name:"PhDownload"},m6e=Ce({...f6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",q4e,Z4e)):l.value==="duotone"?(oe(),pe("g",Q4e,e6e)):l.value==="fill"?(oe(),pe("g",t6e,r6e)):l.value==="light"?(oe(),pe("g",i6e,o6e)):l.value==="regular"?(oe(),pe("g",s6e,c6e)):l.value==="thin"?(oe(),pe("g",u6e,p6e)):ft("",!0)],16,W4e))}}),g6e=["width","height","fill","transform"],h6e={key:0},_6e=Ee("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM183,80H160V57ZM116,212V192h8a12,12,0,0,0,0-24h-8V152h8a12,12,0,0,0,0-24h-8V116a12,12,0,0,0-24,0v12H84a12,12,0,0,0,0,24h8v16H84a12,12,0,0,0,0,24h8v20H60V44h76V92a12,12,0,0,0,12,12h48V212Z"},null,-1),v6e=[_6e],b6e={key:1},y6e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),S6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),E6e=[y6e,S6e],C6e={key:2},T6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H92a4,4,0,0,0,4-4V208H88.27A8.17,8.17,0,0,1,80,200.53,8,8,0,0,1,88,192h8V176H88.27A8.17,8.17,0,0,1,80,168.53,8,8,0,0,1,88,160h8V144H88.27A8.17,8.17,0,0,1,80,136.53,8,8,0,0,1,88,128h8v-7.73a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v8h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v20a4,4,0,0,0,4,4h84a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"},null,-1),w6e=[T6e],x6e={key:3},O6e=Ee("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H110V198h10a6,6,0,0,0,0-12H110V166h10a6,6,0,0,0,0-12H110V134h10a6,6,0,0,0,0-12H110V112a6,6,0,0,0-12,0v10H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"},null,-1),R6e=[O6e],I6e={key:4},A6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),N6e=[A6e],D6e={key:5},P6e=Ee("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H108V196h12a4,4,0,0,0,0-8H108V164h12a4,4,0,0,0,0-8H108V132h12a4,4,0,0,0,0-8H108V112a4,4,0,0,0-8,0v12H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"},null,-1),M6e=[P6e],k6e={name:"PhFileArchive"},$6e=Ce({...k6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",h6e,v6e)):l.value==="duotone"?(oe(),pe("g",b6e,E6e)):l.value==="fill"?(oe(),pe("g",C6e,w6e)):l.value==="light"?(oe(),pe("g",x6e,R6e)):l.value==="regular"?(oe(),pe("g",I6e,N6e)):l.value==="thin"?(oe(),pe("g",D6e,M6e)):ft("",!0)],16,g6e))}}),L6e=["width","height","fill","transform"],F6e={key:0},B6e=Ee("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160Zm-52,67a56,56,0,0,0-50.65,32.09A40,40,0,0,0,60,236h48a56,56,0,0,0,0-112Zm0,88H60a16,16,0,0,1-6.54-30.6,12,12,0,0,0,22.67-4.32,32.78,32.78,0,0,1,.92-5.3c.12-.36.22-.72.31-1.09A32,32,0,1,1,108,212Z"},null,-1),U6e=[B6e],H6e={key:1},z6e=Ee("path",{d:"M208,88H152V32ZM108,136a44,44,0,0,0-42.34,32v0H60a28,28,0,0,0,0,56h48a44,44,0,0,0,0-88Z",opacity:"0.2"},null,-1),V6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),G6e=[z6e,V6e],Y6e={key:2},j6e=Ee("path",{d:"M160,181a52.06,52.06,0,0,1-52,51H60.72C40.87,232,24,215.77,24,195.92a36,36,0,0,1,19.28-31.79,4,4,0,0,1,5.77,4.33,63.53,63.53,0,0,0-1,11.15A8.22,8.22,0,0,0,55.55,188,8,8,0,0,0,64,180a47.55,47.55,0,0,1,4.37-20h0A48,48,0,0,1,160,181Zm56-93V216a16,16,0,0,1-16,16H176a8,8,0,0,1,0-16h24V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"},null,-1),W6e=[j6e],q6e={key:3},K6e=Ee("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM108,130a50,50,0,0,0-46.66,32H60a34,34,0,0,0,0,68h48a50,50,0,0,0,0-100Zm0,88H60a22,22,0,0,1-1.65-43.94c-.06.47-.1.93-.15,1.4a6,6,0,1,0,12,1.08A38.57,38.57,0,0,1,71.3,170a5.71,5.71,0,0,0,.24-.86A38,38,0,1,1,108,218Z"},null,-1),Z6e=[K6e],Q6e={key:4},X6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),J6e=[X6e],e8e={key:5},t8e=Ee("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM108,132a47.72,47.72,0,0,0-45.3,32H60a32,32,0,0,0,0,64h48a48,48,0,0,0,0-96Zm0,88H60a24,24,0,0,1,0-48h.66c-.2,1.2-.35,2.41-.46,3.64a4,4,0,0,0,8,.72,41.2,41.2,0,0,1,1.23-6.92,4.68,4.68,0,0,0,.21-.73A40,40,0,1,1,108,220Z"},null,-1),n8e=[t8e],r8e={name:"PhFileCloud"},i8e=Ce({...r8e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",F6e,U6e)):l.value==="duotone"?(oe(),pe("g",H6e,G6e)):l.value==="fill"?(oe(),pe("g",Y6e,W6e)):l.value==="light"?(oe(),pe("g",q6e,Z6e)):l.value==="regular"?(oe(),pe("g",Q6e,J6e)):l.value==="thin"?(oe(),pe("g",e8e,n8e)):ft("",!0)],16,L6e))}}),a8e=["width","height","fill","transform"],o8e={key:0},s8e=Ee("path",{d:"M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"},null,-1),l8e=[s8e],c8e={key:1},u8e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),d8e=Ee("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),p8e=[u8e,d8e],f8e={key:2},m8e=Ee("path",{d:"M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z"},null,-1),g8e=[m8e],h8e={key:3},_8e=Ee("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"},null,-1),v8e=[_8e],b8e={key:4},y8e=Ee("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),S8e=[y8e],E8e={key:5},C8e=Ee("path",{d:"M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z"},null,-1),T8e=[C8e],w8e={name:"PhFileDoc"},x8e=Ce({...w8e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",o8e,l8e)):l.value==="duotone"?(oe(),pe("g",c8e,p8e)):l.value==="fill"?(oe(),pe("g",f8e,g8e)):l.value==="light"?(oe(),pe("g",h8e,v8e)):l.value==="regular"?(oe(),pe("g",b8e,S8e)):l.value==="thin"?(oe(),pe("g",E8e,T8e)):ft("",!0)],16,a8e))}}),O8e=["width","height","fill","transform"],R8e={key:0},I8e=Ee("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"},null,-1),A8e=[I8e],N8e={key:1},D8e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),P8e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),M8e=[D8e,P8e],k8e={key:2},$8e=Ee("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"},null,-1),L8e=[$8e],F8e={key:3},B8e=Ee("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),U8e=[B8e],H8e={key:4},z8e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),V8e=[z8e],G8e={key:5},Y8e=Ee("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),j8e=[Y8e],W8e={name:"PhFilePdf"},q8e=Ce({...W8e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",R8e,A8e)):l.value==="duotone"?(oe(),pe("g",N8e,M8e)):l.value==="fill"?(oe(),pe("g",k8e,L8e)):l.value==="light"?(oe(),pe("g",F8e,U8e)):l.value==="regular"?(oe(),pe("g",H8e,V8e)):l.value==="thin"?(oe(),pe("g",G8e,j8e)):ft("",!0)],16,O8e))}}),K8e=["width","height","fill","transform"],Z8e={key:0},Q8e=Ee("path",{d:"M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z"},null,-1),X8e=[Q8e],J8e={key:1},e3e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),t3e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),n3e=[e3e,t3e],r3e={key:2},i3e=Ee("path",{d:"M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"},null,-1),a3e=[i3e],o3e={key:3},s3e=Ee("path",{d:"M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),l3e=[s3e],c3e={key:4},u3e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),d3e=[u3e],p3e={key:5},f3e=Ee("path",{d:"M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),m3e=[f3e],g3e={name:"PhFilePpt"},h3e=Ce({...g3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",Z8e,X8e)):l.value==="duotone"?(oe(),pe("g",J8e,n3e)):l.value==="fill"?(oe(),pe("g",r3e,a3e)):l.value==="light"?(oe(),pe("g",o3e,l3e)):l.value==="regular"?(oe(),pe("g",c3e,d3e)):l.value==="thin"?(oe(),pe("g",p3e,m3e)):ft("",!0)],16,K8e))}}),_3e=["width","height","fill","transform"],v3e={key:0},b3e=Ee("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"},null,-1),y3e=[b3e],S3e={key:1},E3e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),C3e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),T3e=[E3e,C3e],w3e={key:2},x3e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"},null,-1),O3e=[x3e],R3e={key:3},I3e=Ee("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"},null,-1),A3e=[I3e],N3e={key:4},D3e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),P3e=[D3e],M3e={key:5},k3e=Ee("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"},null,-1),$3e=[k3e],L3e={name:"PhFileText"},F3e=Ce({...L3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",v3e,y3e)):l.value==="duotone"?(oe(),pe("g",S3e,T3e)):l.value==="fill"?(oe(),pe("g",w3e,O3e)):l.value==="light"?(oe(),pe("g",R3e,A3e)):l.value==="regular"?(oe(),pe("g",N3e,P3e)):l.value==="thin"?(oe(),pe("g",M3e,$3e)):ft("",!0)],16,_3e))}}),B3e=["width","height","fill","transform"],U3e={key:0},H3e=Ee("path",{d:"M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"},null,-1),z3e=[H3e],V3e={key:1},G3e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),Y3e=Ee("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),j3e=[G3e,Y3e],W3e={key:2},q3e=Ee("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z"},null,-1),K3e=[q3e],Z3e={key:3},Q3e=Ee("path",{d:"M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z"},null,-1),X3e=[Q3e],J3e={key:4},eFe=Ee("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),tFe=[eFe],nFe={key:5},rFe=Ee("path",{d:"M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z"},null,-1),iFe=[rFe],aFe={name:"PhFileXls"},oFe=Ce({...aFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",U3e,z3e)):l.value==="duotone"?(oe(),pe("g",V3e,j3e)):l.value==="fill"?(oe(),pe("g",W3e,K3e)):l.value==="light"?(oe(),pe("g",Z3e,X3e)):l.value==="regular"?(oe(),pe("g",J3e,tFe)):l.value==="thin"?(oe(),pe("g",nFe,iFe)):ft("",!0)],16,B3e))}}),sFe=["width","height","fill","transform"],lFe={key:0},cFe=Ee("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"},null,-1),uFe=[cFe],dFe={key:1},pFe=Ee("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),fFe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),mFe=[pFe,fFe],gFe={key:2},hFe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"},null,-1),_Fe=[hFe],vFe={key:3},bFe=Ee("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"},null,-1),yFe=[bFe],SFe={key:4},EFe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),CFe=[EFe],TFe={key:5},wFe=Ee("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"},null,-1),xFe=[wFe],OFe={name:"PhImage"},RFe=Ce({...OFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",lFe,uFe)):l.value==="duotone"?(oe(),pe("g",dFe,mFe)):l.value==="fill"?(oe(),pe("g",gFe,_Fe)):l.value==="light"?(oe(),pe("g",vFe,yFe)):l.value==="regular"?(oe(),pe("g",SFe,CFe)):l.value==="thin"?(oe(),pe("g",TFe,xFe)):ft("",!0)],16,sFe))}}),IFe=["width","height","fill","transform"],AFe={key:0},NFe=Ee("path",{d:"M160,88a16,16,0,1,1,16,16A16,16,0,0,1,160,88Zm76-32V160a20,20,0,0,1-20,20H204v20a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V88A20,20,0,0,1,40,68H60V56A20,20,0,0,1,80,36H216A20,20,0,0,1,236,56ZM180,180H80a20,20,0,0,1-20-20V92H44V196H180Zm-21.66-24L124,121.66,89.66,156ZM212,60H84v67.72l25.86-25.86a20,20,0,0,1,28.28,0L192.28,156H212Z"},null,-1),DFe=[NFe],PFe={key:1},MFe=Ee("path",{d:"M224,56v82.06l-23.72-23.72a8,8,0,0,0-11.31,0L163.31,140,113.66,90.34a8,8,0,0,0-11.32,0L64,128.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),kFe=Ee("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),$Fe=[MFe,kFe],LFe={key:2},FFe=Ee("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM172,72a12,12,0,1,1-12,12A12,12,0,0,1,172,72Zm12,128H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V120.69l30.34-30.35a8,8,0,0,1,11.32,0L163.31,140,189,114.34a8,8,0,0,1,11.31,0L216,130.07V168Z"},null,-1),BFe=[FFe],UFe={key:3},HFe=Ee("path",{d:"M216,42H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V182h18a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM70,56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v67.57L204.53,110.1a14,14,0,0,0-19.8,0l-21.42,21.41L117.9,86.1a14,14,0,0,0-19.8,0L70,114.2ZM186,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H58v82a14,14,0,0,0,14,14H186Zm30-30H72a2,2,0,0,1-2-2V131.17l36.58-36.58a2,2,0,0,1,2.83,0l49.66,49.66a6,6,0,0,0,8.49,0l25.65-25.66a2,2,0,0,1,2.83,0l22,22V168A2,2,0,0,1,216,170ZM162,84a10,10,0,1,1,10,10A10,10,0,0,1,162,84Z"},null,-1),zFe=[HFe],VFe={key:4},GFe=Ee("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),YFe=[GFe],jFe={key:5},WFe=Ee("path",{d:"M216,44H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180h20a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM68,56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v72.4l-16.89-16.89a12,12,0,0,0-17,0l-22.83,22.83L116.49,87.51a12,12,0,0,0-17,0L68,119ZM188,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H60v84a12,12,0,0,0,12,12H188Zm28-28H72a4,4,0,0,1-4-4V130.34l37.17-37.17a4,4,0,0,1,5.66,0l49.66,49.66a4,4,0,0,0,5.65,0l25.66-25.66a4,4,0,0,1,5.66,0L220,139.71V168A4,4,0,0,1,216,172ZM164,84a8,8,0,1,1,8,8A8,8,0,0,1,164,84Z"},null,-1),qFe=[WFe],KFe={name:"PhImages"},ZFe=Ce({...KFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",AFe,DFe)):l.value==="duotone"?(oe(),pe("g",PFe,$Fe)):l.value==="fill"?(oe(),pe("g",LFe,BFe)):l.value==="light"?(oe(),pe("g",UFe,zFe)):l.value==="regular"?(oe(),pe("g",VFe,YFe)):l.value==="thin"?(oe(),pe("g",jFe,qFe)):ft("",!0)],16,IFe))}}),QFe=["width","height","fill","transform"],XFe={key:0},JFe=Ee("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"},null,-1),eBe=[JFe],tBe={key:1},nBe=Ee("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),rBe=Ee("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"},null,-1),iBe=[nBe,rBe],aBe={key:2},oBe=Ee("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"},null,-1),sBe=[oBe],lBe={key:3},cBe=Ee("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),uBe=[cBe],dBe={key:4},pBe=Ee("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"},null,-1),fBe=[pBe],mBe={key:5},gBe=Ee("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),hBe=[gBe],_Be={name:"PhInfo"},vBe=Ce({..._Be,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",XFe,eBe)):l.value==="duotone"?(oe(),pe("g",tBe,iBe)):l.value==="fill"?(oe(),pe("g",aBe,sBe)):l.value==="light"?(oe(),pe("g",lBe,uBe)):l.value==="regular"?(oe(),pe("g",dBe,fBe)):l.value==="thin"?(oe(),pe("g",mBe,hBe)):ft("",!0)],16,QFe))}}),bBe=["width","height","fill","transform"],yBe={key:0},SBe=Ee("path",{d:"M168,120a12,12,0,0,1-5.12,9.83l-40,28A12,12,0,0,1,104,148V92a12,12,0,0,1,18.88-9.83l40,28A12,12,0,0,1,168,120Zm68-56V176a28,28,0,0,1-28,28H48a28,28,0,0,1-28-28V64A28,28,0,0,1,48,36H208A28,28,0,0,1,236,64Zm-24,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V176a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4ZM160,216H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Z"},null,-1),EBe=[SBe],CBe={key:1},TBe=Ee("path",{d:"M208,48H48A16,16,0,0,0,32,64V176a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48ZM112,152V88l48,32Z",opacity:"0.2"},null,-1),wBe=Ee("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),xBe=[TBe,wBe],OBe={key:2},RBe=Ee("path",{d:"M168,224a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224ZM232,64V176a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V64A24,24,0,0,1,48,40H208A24,24,0,0,1,232,64Zm-68,56a8,8,0,0,0-3.41-6.55l-40-28A8,8,0,0,0,108,92v56a8,8,0,0,0,12.59,6.55l40-28A8,8,0,0,0,164,120Z"},null,-1),IBe=[RBe],ABe={key:3},NBe=Ee("path",{d:"M163.33,115l-48-32A6,6,0,0,0,106,88v64a6,6,0,0,0,9.33,5l48-32a6,6,0,0,0,0-10ZM118,140.79V99.21L149.18,120ZM208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V64A10,10,0,0,1,48,54H208a10,10,0,0,1,10,10Zm-52,48a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,224Z"},null,-1),DBe=[NBe],PBe={key:4},MBe=Ee("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),kBe=[MBe],$Be={key:5},LBe=Ee("path",{d:"M162.22,116.67l-48-32A4,4,0,0,0,108,88v64a4,4,0,0,0,2.11,3.53,4,4,0,0,0,4.11-.2l48-32a4,4,0,0,0,0-6.66ZM116,144.53V95.47L152.79,120ZM208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V64A12,12,0,0,1,48,52H208a12,12,0,0,1,12,12Zm-56,48a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,224Z"},null,-1),FBe=[LBe],BBe={name:"PhMonitorPlay"},UBe=Ce({...BBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",yBe,EBe)):l.value==="duotone"?(oe(),pe("g",CBe,xBe)):l.value==="fill"?(oe(),pe("g",OBe,IBe)):l.value==="light"?(oe(),pe("g",ABe,DBe)):l.value==="regular"?(oe(),pe("g",PBe,kBe)):l.value==="thin"?(oe(),pe("g",$Be,FBe)):ft("",!0)],16,bBe))}}),HBe=["width","height","fill","transform"],zBe={key:0},VBe=Ee("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"},null,-1),GBe=[VBe],YBe={key:1},jBe=Ee("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"},null,-1),WBe=Ee("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),qBe=[jBe,WBe],KBe={key:2},ZBe=Ee("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"},null,-1),QBe=[ZBe],XBe={key:3},JBe=Ee("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"},null,-1),e9e=[JBe],t9e={key:4},n9e=Ee("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),r9e=[n9e],i9e={key:5},a9e=Ee("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"},null,-1),o9e=[a9e],s9e={name:"PhPause"},l9e=Ce({...s9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",zBe,GBe)):l.value==="duotone"?(oe(),pe("g",YBe,qBe)):l.value==="fill"?(oe(),pe("g",KBe,QBe)):l.value==="light"?(oe(),pe("g",XBe,e9e)):l.value==="regular"?(oe(),pe("g",t9e,r9e)):l.value==="thin"?(oe(),pe("g",i9e,o9e)):ft("",!0)],16,HBe))}}),c9e=["width","height","fill","transform"],u9e={key:0},d9e=Ee("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"},null,-1),p9e=[d9e],f9e={key:1},m9e=Ee("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"},null,-1),g9e=Ee("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),h9e=[m9e,g9e],_9e={key:2},v9e=Ee("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"},null,-1),b9e=[v9e],y9e={key:3},S9e=Ee("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"},null,-1),E9e=[S9e],C9e={key:4},T9e=Ee("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),w9e=[T9e],x9e={key:5},O9e=Ee("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"},null,-1),R9e=[O9e],I9e={name:"PhPlay"},A9e=Ce({...I9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",u9e,p9e)):l.value==="duotone"?(oe(),pe("g",f9e,h9e)):l.value==="fill"?(oe(),pe("g",_9e,b9e)):l.value==="light"?(oe(),pe("g",y9e,E9e)):l.value==="regular"?(oe(),pe("g",C9e,w9e)):l.value==="thin"?(oe(),pe("g",x9e,R9e)):ft("",!0)],16,c9e))}}),N9e=["width","height","fill","transform"],D9e={key:0},P9e=Ee("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"},null,-1),M9e=[P9e],k9e={key:1},$9e=Ee("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"},null,-1),L9e=Ee("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),F9e=[$9e,L9e],B9e={key:2},U9e=Ee("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"},null,-1),H9e=[U9e],z9e={key:3},V9e=Ee("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"},null,-1),G9e=[V9e],Y9e={key:4},j9e=Ee("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),W9e=[j9e],q9e={key:5},K9e=Ee("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"},null,-1),Z9e=[K9e],Q9e={name:"PhTrash"},X9e=Ce({...Q9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",D9e,M9e)):l.value==="duotone"?(oe(),pe("g",k9e,F9e)):l.value==="fill"?(oe(),pe("g",B9e,H9e)):l.value==="light"?(oe(),pe("g",z9e,G9e)):l.value==="regular"?(oe(),pe("g",Y9e,W9e)):l.value==="thin"?(oe(),pe("g",q9e,Z9e)):ft("",!0)],16,N9e))}}),J9e=["width","height","fill","transform"],e5e={key:0},t5e=Ee("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"},null,-1),n5e=[t5e],r5e={key:1},i5e=Ee("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),a5e=Ee("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),o5e=[i5e,a5e],s5e={key:2},l5e=Ee("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"},null,-1),c5e=[l5e],u5e={key:3},d5e=Ee("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"},null,-1),p5e=[d5e],f5e={key:4},m5e=Ee("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),g5e=[m5e],h5e={key:5},_5e=Ee("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"},null,-1),v5e=[_5e],b5e={name:"PhUploadSimple"},y5e=Ce({...b5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",e5e,n5e)):l.value==="duotone"?(oe(),pe("g",r5e,o5e)):l.value==="fill"?(oe(),pe("g",s5e,c5e)):l.value==="light"?(oe(),pe("g",u5e,p5e)):l.value==="regular"?(oe(),pe("g",f5e,g5e)):l.value==="thin"?(oe(),pe("g",h5e,v5e)):ft("",!0)],16,J9e))}}),S5e=["width","height","fill","transform"],E5e={key:0},C5e=Ee("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"},null,-1),T5e=[C5e],w5e={key:1},x5e=Ee("path",{d:"M208,96v64H48V96Z",opacity:"0.2"},null,-1),O5e=Ee("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),R5e=[x5e,O5e],I5e={key:2},A5e=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"},null,-1),N5e=[A5e],D5e={key:3},P5e=Ee("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"},null,-1),M5e=[P5e],k5e={key:4},$5e=Ee("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),L5e=[$5e],F5e={key:5},B5e=Ee("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"},null,-1),U5e=[B5e],H5e={name:"PhWaveform"},z5e=Ce({...H5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",E5e,T5e)):l.value==="duotone"?(oe(),pe("g",w5e,R5e)):l.value==="fill"?(oe(),pe("g",I5e,N5e)):l.value==="light"?(oe(),pe("g",D5e,M5e)):l.value==="regular"?(oe(),pe("g",k5e,L5e)):l.value==="thin"?(oe(),pe("g",F5e,U5e)):ft("",!0)],16,S5e))}}),V5e=["width","height","fill","transform"],G5e={key:0},Y5e=Ee("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"},null,-1),j5e=[Y5e],W5e={key:1},q5e=Ee("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),K5e=Ee("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),Z5e=[q5e,K5e],Q5e={key:2},X5e=Ee("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),J5e=[X5e],eUe={key:3},tUe=Ee("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"},null,-1),nUe=[tUe],rUe={key:4},iUe=Ee("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),aUe=[iUe],oUe={key:5},sUe=Ee("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"},null,-1),lUe=[sUe],cUe={name:"PhX"},uUe=Ce({...cUe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",G5e,j5e)):l.value==="duotone"?(oe(),pe("g",W5e,Z5e)):l.value==="fill"?(oe(),pe("g",Q5e,J5e)):l.value==="light"?(oe(),pe("g",eUe,nUe)):l.value==="regular"?(oe(),pe("g",rUe,aUe)):l.value==="thin"?(oe(),pe("g",oUe,lUe)):ft("",!0)],16,V5e))}}),dUe={key:0,class:"label"},pUe={key:0},fUe=Ce({__name:"Label",props:{label:{},required:{type:Boolean},hint:{}},setup(e){return(t,n)=>t.label?(oe(),pe("h3",dUe,[Zn(Qt(t.label)+" ",1),t.required?(oe(),pe("span",pUe," * ")):ft("",!0),t.hint?(oe(),Rn(je(zo),{key:1,class:"hint",title:t.hint},{default:pn(()=>[x(je(vBe),{size:"16px",height:"100%"})]),_:1},8,["title"])):ft("",!0)])):ft("",!0)}});const Hn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Ln=Hn(fUe,[["__scopeId","data-v-16be3530"]]),mUe={class:"appointment-input"},gUe={style:{position:"relative","min-width":"200px","min-height":"200px",height:"100%","overflow-y":"auto"}},hUe={style:{display:"flex","flex-direction":"column",position:"absolute",top:"0",bottom:"0",left:"0",right:"0",gap:"4px"}},_Ue=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e;function r(m){return tr(m.begin)}function i(){return n.userProps.value?r(n.userProps.slots[n.userProps.value]):r(n.userProps.slots.sort((m,h)=>new Date(m.begin).getTime()-new Date(h.begin).getTime())[0])}const a=i(),l=Oe(a),s=$(()=>{const m=l.value;return n.userProps.slots.reduce((h,v,b)=>new Date(v.begin).getDate()===m.date()&&new Date(v.begin).getMonth()===m.month()&&new Date(v.begin).getFullYear()===m.year()?[...h,{slot:v,idx:b}]:h,[])}),u=$(()=>{const{min:m,max:h}=n.userProps.slots.reduce((v,b)=>{const y=tr(b.start).startOf("day"),S=tr(b.end).startOf("day");return(!v.min||y.isBefore(v.min))&&(v.min=y),(!v.max||S.isAfter(v.max))&&(v.max=S),v},{min:null,max:null});return[m,h.add(1,"day")]});function o(m){const h=m.month(),v=m.year(),b=n.userProps.slots.find(y=>{const S=tr(y.begin);return S.month()===h&&S.year()===v});return tr((b==null?void 0:b.begin)||m)}const c=Oe(!1);function d(m){if(c.value){c.value=!1;return}l.value=m}function p(m){c.value=!0;const h=tr(m);l.value=o(h)}function f(m){t("update:value",m)}function g(m){return!n.userProps.slots.some(h=>m.isSame(tr(h.begin),"day"))}return(m,h)=>(oe(),pe(tt,null,[x(Ln,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ee("div",mUe,[x(je(ITe),{value:l.value,"disabled-date":g,fullscreen:!1,"valid-range":u.value,"default-value":je(a),onSelect:d,onPanelChange:p},null,8,["value","valid-range","default-value"]),s.value.length>0?(oe(),Rn(je(e$e),{key:0,vertical:"",gap:"small"},{default:pn(()=>[x(je(sI),{level:4},{default:pn(()=>[Zn("Available slots")]),_:1}),Ee("div",gUe,[Ee("div",hUe,[(oe(!0),pe(tt,null,Di(s.value,({slot:v,idx:b})=>(oe(),Rn(je(fr),{key:b,type:b===m.userProps.value?"primary":"default",onClick:y=>f(b)},{default:pn(()=>[Zn(Qt(je(tr)(v.begin).format("hh:mm A"))+" - "+Qt(je(tr)(v.end).format("hh:mm A")),1)]),_:2},1032,["type","onClick"]))),128))])])]),_:1})):(oe(),Rn(je(ec),{key:1,description:"No slots available"}))])],64))}});const vUe=Hn(_Ue,[["__scopeId","data-v-6d1cdd29"]]),bUe={class:"container"},yUe=Ce({__name:"FileIcon",props:{ctrl:{},file:{},size:{}},setup(e){return(t,n)=>(oe(),pe("div",bUe,[(oe(),Rn(hu(t.ctrl.iconPreview(t.file)),{size:t.size},null,8,["size"]))]))}});const Oz=Hn(yUe,[["__scopeId","data-v-27e5e807"]]),SUe="modulepreload",EUe=function(e){return"/"+e},ML={},Py=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=EUe(a),a in ML)return;ML[a]=!0;const l=a.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===a&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const o=document.createElement("link");if(o.rel=l?"stylesheet":SUe,l||(o.as="script",o.crossOrigin=""),o.href=a,document.head.appendChild(o),l)return new Promise((c,d)=>{o.addEventListener("load",c),o.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())},CUe={key:0},TUe=Ee("p",null,"Unsupported file type",-1),wUe=[TUe],xUe=["src"],OUe={key:2,style:{width:"100%",height:"auto"},controls:"",preload:"metadata"},RUe=["src","type"],IUe={key:3,style:{width:"100%"},controls:"",preload:"metadata"},AUe=["src","type"],NUe=["src","type"],DUe={key:5},Rz=Ce({__name:"Preview",props:{ctrl:{}},setup(e){const t=e,n=Oe({hasPreview:!1,filename:"",src:"",previewType:"",file:t.ctrl.state.value.file}),r=Oe();ze(t.ctrl.state,async()=>{const a=t.ctrl.state.value.file;if(n.value.file=a,n.value.hasPreview=t.ctrl.hasPreview(a),n.value.filename=t.ctrl.fileName(a),n.value.src=t.ctrl.fileSrc(a),n.value.previewType=t.ctrl.typeof(a.type),n.value.previewType==="Code"||n.value.previewType==="Text"){const l=await t.ctrl.fetchTextContent(a);i(r.value,l)}});const i=async(a,l,s)=>{(await Py(()=>import("./editor.main.36d84e90.js"),["assets/editor.main.36d84e90.js","assets/toggleHighContrast.017fb466.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(a,{language:s,value:l,minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!1,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}})};return(a,l)=>a.ctrl.state.value.open?(oe(),Rn(je(Na),{key:0,open:!0,title:n.value.filename,onCancel:a.ctrl.close,style:{"max-width":"80dvw","min-width":"40dvw",height:"auto"}},{footer:pn(()=>[]),default:pn(()=>[n.value.hasPreview?n.value.previewType==="Image"?(oe(),pe("img",{key:1,style:{width:"100%"},src:n.value.src},null,8,xUe)):n.value.previewType==="Video"?(oe(),pe("video",OUe,[Ee("source",{src:n.value.src,type:n.value.file.type},null,8,RUe)])):n.value.previewType==="Audio"?(oe(),pe("audio",IUe,[Ee("source",{src:n.value.src,type:n.value.file.type},null,8,AUe)])):n.value.previewType==="PDF"?(oe(),pe("embed",{key:4,style:{width:"100%","min-height":"60dvh"},src:n.value.src,type:n.value.file.type},null,8,NUe)):n.value.previewType==="Text"||n.value.previewType==="Code"?(oe(),pe("div",DUe,[Ee("div",{ref_key:"editor",ref:r,style:{width:"100%","min-height":"40dvh"}},null,512)])):ft("",!0):(oe(),pe("div",CUe,wUe))]),_:1},8,["title","onCancel"])):ft("",!0)}}),PUe=["Text","Image","Code","PDF","Video","Audio"];function MUe(e){return PUe.includes(e)}const kUe={Text:F3e,Image:RFe,Code:T4e,PDF:q8e,Video:UBe,Audio:z5e,Archive:$6e,Document:x8e,Presentation:h3e,Spreadsheet:oFe,Unknown:i8e};class Iz{constructor(){yn(this,"state");yn(this,"open",t=>{this.state.value={open:!0,file:t}});yn(this,"close",()=>{this.state.value.open=!1});yn(this,"hasPreview",t=>{const n=this.typeof(t.type);if(!MUe(n))return!1;switch(n){case"Text":case"Image":case"Code":return!0;case"PDF":return window.navigator.pdfViewerEnabled;case"Video":return document.createElement("video").canPlayType(t.type||"")!=="";case"Audio":return document.createElement("audio").canPlayType(t.type||"")!==""}});yn(this,"fileName",t=>(t==null?void 0:t.name)||"");yn(this,"fileSrc",t=>"/_files/"+(t==null?void 0:t.response[0]));yn(this,"fileThumbnail",t=>this.hasPreview(t)?this.fileSrc(t):"");yn(this,"typeof",t=>{if(!t)return"Unknown";if(t==="application/pdf")return"PDF";switch(t.split("/")[0]){case"audio":return"Audio";case"video":return"Video";case"image":return"Image"}if(t.includes("spreadsheet")||t.includes("excel")||t.includes(".sheet"))return"Spreadsheet";if(t.includes(".document"))return"Document";if(t.includes(".presentation"))return"Presentation";switch(t){case"text/plain":case"text/markdown":case"text/csv":return"Text";case"application/zip":case"application/vnd.rar":case"application/x-7z-compressed":case"application/x-tar":case"application/gzip":return"Archive";case"text/html":case"text/css":case"text/x-python-script":case"application/javascript":case"application/typescript":case"application/json":case"application/xml":case"application/x-yaml":case"application/toml":return"Code"}return"Unknown"});yn(this,"handlePreview",t=>{this.hasPreview(t)&&this.open(t)});yn(this,"fetchTextContent",async t=>{const n=this.fileSrc(t);return await(await window.fetch(n)).text()});yn(this,"iconPreview",t=>{const n=this.typeof(t.type);return kUe[n]});this.state=Oe({open:!1,file:{uid:"",name:"",status:"done",response:[],url:"",type:"",size:0}})}}const $Ue=[{key:"en",value:"English"},{key:"pt",value:"Portuguese"},{key:"es",value:"Spanish"},{key:"de",value:"German"},{key:"fr",value:"French"},{key:"hi",value:"Hindi"}],d0={i18n_camera_input_take_photo:()=>({en:"Take photo",pt:"Tirar foto",es:"Tomar foto",de:"Foto aufnehmen",fr:"Prendre une photo",hi:"\u092B\u094B\u091F\u094B \u0932\u0947\u0902"}),i18n_camera_input_try_again:()=>({en:"Try again",pt:"Tentar novamente",es:"Intentar de nuevo",de:"Erneut versuchen",fr:"R\xE9essayer",hi:"\u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902"}),i18n_upload_area_click_or_drop_files:()=>({en:"Click or drag file here to upload",pt:"Clique ou arraste o arquivo aqui para fazer upload",es:"Haz clic o arrastra el archivo aqu\xED para subirlo",de:"Klicken oder ziehen Sie die Datei hierher, um sie hochzuladen",fr:"Cliquez ou faites glisser le fichier ici pour le t\xE9l\xE9charger",hi:"\u0905\u092A\u0932\u094B\u0921 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092F\u0939\u093E\u0901 \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902 \u092F\u093E \u092B\u093C\u093E\u0907\u0932 \u0916\u0940\u0902\u091A\u0947\u0902"}),i18n_upload_area_drop_here:()=>({en:"Drop files",pt:"Solte os arquivos",es:"Suelta los archivos",de:"Dateien ablegen",fr:"D\xE9poser les fichiers",hi:"\u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u0921\u094D\u0930\u0949\u092A \u0915\u0930\u0947\u0902"}),i18n_upload_area_rejected_file_extension:e=>({en:`Invalid file extension. Expected formats: ${e.formats}`,pt:`Extens\xE3o de arquivo inv\xE1lida. Formatos aceitos: ${e.formats}`,es:`Extensi\xF3n de archivo inv\xE1lida. Formatos aceptados: ${e.formats}`,de:`Ung\xFCltige Dateierweiterung. Akzeptierte Formate: ${e.formats}`,fr:`Extension de fichier invalide. Formats accept\xE9s: ${e.formats}`,hi:`\u0905\u092E\u093E\u0928\u094D\u092F \u092B\u093C\u093E\u0907\u0932 \u090F\u0915\u094D\u0938\u091F\u0947\u0902\u0936\u0928\u0964 \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092B\u093C\u0949\u0930\u094D\u092E\u0947\u091F\u094D\u0938: ${e.formats}`}),i18n_upload_max_size_excided:e=>({en:`File ${e.fileName} exceeds size limit of ${e.maxSize}MB`,pt:`Arquivo ${e.fileName} excede o limite de tamanho de ${e.maxSize}MB`,es:`El archivo ${e.fileName} excede el l\xEDmite de tama\xF1o de ${e.maxSize}MB`,de:`Die Datei ${e.fileName} \xFCberschreitet das Gr\xF6\xDFenlimit von ${e.maxSize}MB`,fr:`Le fichier ${e.fileName} d\xE9passe la limite de taille de ${e.maxSize}MB`,hi:`\u092B\u093C\u093E\u0907\u0932 ${e.fileName} ${e.maxSize}MB \u0915\u0940 \u0938\u0940\u092E\u093E \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\u0948`}),i18n_upload_failed:e=>({en:`File upload failed for ${e.fileName}`,pt:`Falha ao enviar arquivo ${e.fileName}`,es:`Error al subir archivo ${e.fileName}`,de:`Datei-Upload fehlgeschlagen f\xFCr ${e.fileName}`,fr:`\xC9chec du t\xE9l\xE9chargement du fichier ${e.fileName}`,hi:`${e.fileName} \u0915\u0947 \u0932\u093F\u090F \u092B\u093C\u093E\u0907\u0932 \u0905\u092A\u0932\u094B\u0921 \u0935\u093F\u092B\u0932 \u0930\u0939\u093E`}),i18n_login_with_this_project:()=>({en:"Use this project",pt:"Usar este projeto",es:"Usar este proyecto",de:"Dieses Projekt verwenden",fr:"Utiliser ce projet",hi:"\u0907\u0938 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_watermark_text:()=>({en:"Coded in Python with",pt:"Escrito em Python com",es:"Escrito en Python con",de:"In Python mit",fr:"Cod\xE9 en Python avec",hi:"\u092A\u093E\u092F\u0925\u0928 \u092E\u0947\u0902 \u0932\u093F\u0916\u093E \u0917\u092F\u093E"}),i18n_error_invalid_email:()=>({en:"This email is invalid.",pt:"Este email \xE9 inv\xE1lido.",es:"Este email es inv\xE1lido.",de:"Diese E-Mail ist ung\xFCltig.",fr:"Cet email est invalide.",hi:"\u092F\u0939 \u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_required_field:()=>({en:"This field is required.",pt:"Este campo \xE9 obrigat\xF3rio.",es:"Este campo es obligatorio.",de:"Dieses Feld ist erforderlich.",fr:"Ce champ est obligatoire.",hi:"\u092F\u0939 \u092B\u093C\u0940\u0932\u094D\u0921 \u0906\u0935\u0936\u094D\u092F\u0915 \u0939\u0948\u0964"}),i18n_error_invalid_cnpj:()=>({en:"This CNPJ is invalid.",pt:"Este CNPJ \xE9 inv\xE1lido.",es:"Este CNPJ es inv\xE1lido.",de:"Diese CNPJ ist ung\xFCltig.",fr:"Ce CNPJ est invalide.",hi:"\u092F\u0939 CNPJ \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_cpf:()=>({en:"This CPF is invalid.",pt:"Este CPF \xE9 inv\xE1lido.",es:"Este CPF es inv\xE1lido.",de:"Diese CPF ist ung\xFCltig.",fr:"Ce CPF est invalide.",hi:"\u092F\u0939 CPF \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_phone_number:()=>({en:"This phone number is invalid.",pt:"Este n\xFAmero de telefone \xE9 inv\xE1lido.",es:"Este n\xFAmero de tel\xE9fono es inv\xE1lido.",de:"Diese Telefonnummer ist ung\xFCltig.",fr:"Ce num\xE9ro de t\xE9l\xE9phone est invalide.",hi:"\u092F\u0939 \u092B\u093C\u094B\u0928 \u0928\u0902\u092C\u0930 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_country_code:()=>({en:"This country code is invalid.",pt:"Este c\xF3digo de pa\xEDs \xE9 inv\xE1lido.",es:"Este c\xF3digo de pa\xEDs es inv\xE1lido.",de:"Dieser L\xE4ndercode ist ung\xFCltig.",fr:"Ce code de pays est invalide.",hi:"\u092F\u0939 \u0926\u0947\u0936 \u0915\u094B\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_min_list:e=>({en:`The minimum number of items is ${e.min}.`,pt:`O n\xFAmero m\xEDnimo de itens \xE9 ${e.min}.`,es:`El n\xFAmero m\xEDnimo de \xEDtems es ${e.min}.`,de:`Die Mindestanzahl an Elementen betr\xE4gt ${e.min}.`,fr:`Le nombre minimum d'\xE9l\xE9ments est ${e.min}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.min} \u0939\u0948\u0964`}),i18n_error_max_list:e=>({en:`The maximum number of items is ${e.max}.`,pt:`O n\xFAmero m\xE1ximo de itens \xE9 ${e.max}.`,es:`El n\xFAmero m\xE1ximo de \xEDtems es ${e.max}.`,de:`Die maximale Anzahl an Elementen betr\xE4gt ${e.max}.`,fr:`Le nombre maximum d'\xE9l\xE9ments est ${e.max}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0905\u0927\u093F\u0915\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.max} \u0939\u0948\u0964`}),i18n_error_invalid_list_item:()=>({en:"Some fields are invalid.",pt:"Alguns campos s\xE3o inv\xE1lidos.",es:"Algunos campos son inv\xE1lidos.",de:"Einige Felder sind ung\xFCltig.",fr:"Certains champs sont invalides.",hi:"\u0915\u0941\u091B \u092B\u093C\u0940\u0932\u094D\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0902\u0964"}),i18n_error_min_number:e=>({en:`The minimum value is ${e.min}.`,pt:`O valor m\xEDnimo \xE9 ${e.min}.`,es:`El valor m\xEDnimo es ${e.min}.`,de:`Der Mindestwert betr\xE4gt ${e.min}.`,fr:`La valeur minimale est ${e.min}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u092E\u0942\u0932\u094D\u092F ${e.min} \u0939\u0948\u0964`}),i18n_error_max_number:e=>({en:`The maximum value is ${e.max}.`,pt:`O valor m\xE1ximo \xE9 ${e.max}.`,es:`El valor m\xE1ximo es ${e.max}.`,de:`Der maximale Wert betr\xE4gt ${e.max}.`,fr:`La valeur maximale est ${e.max}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u092E\u0942$\u0932\u094D\u092F ${e.max} \u0939\u0948\u0964`}),i18n_error_max_amount:e=>({en:`The maximum amount is ${e.max} ${e.currency}.`,pt:`O valor m\xE1ximo \xE9 ${e.max} ${e.currency}.`,es:`El valor m\xE1ximo es ${e.max} ${e.currency}.`,de:`Der maximale Betrag betr\xE4gt ${e.max} ${e.currency}.`,fr:`Le montant maximum est ${e.max} ${e.currency}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u0930\u093E\u0936\u093F ${e.max} ${e.currency} \u0939\u0948\u0964`}),i18n_error_min_amount:e=>({en:`The minimum amount is ${e.min} ${e.currency}.`,pt:`O valor m\xEDnimo \xE9 ${e.min} ${e.currency}.`,es:`El valor m\xEDnimo es ${e.min} ${e.currency}.`,de:`Der minimale Betrag betr\xE4gt ${e.min} ${e.currency}.`,fr:`Le montant minimum est ${e.min} ${e.currency}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0930\u093E\u0936\u093F ${e.min} ${e.currency} \u0939\u0948\u0964`}),i18n_generic_validation_error:()=>({en:"There are errors in the form.",pt:"Existem erros no formul\xE1rio.",es:"Hay errores en el formulario.",de:"Es gibt Fehler im Formular.",fr:"Il y a des erreurs dans le formulaire.",hi:"\u092B\u0949\u0930\u094D\u092E \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F\u092F\u093E\u0902 \u0939\u0948\u0902\u0964"}),i18n_back_action:()=>({en:"Back",pt:"Voltar",es:"Volver",de:"Zur\xFCck",fr:"Retour",hi:"\u0935\u093E\u092A\u0938"}),i18n_start_action:()=>({en:"Start",pt:"Iniciar",es:"Comenzar",de:"Starten",fr:"D\xE9marrer",hi:"\u0936\u0941\u0930\u0942"}),i18n_restart_action:()=>({en:"Restart",pt:"Reiniciar",es:"Reiniciar",de:"Neustarten",fr:"Red\xE9marrer",hi:"\u092A\u0941\u0928\u0903 \u0906\u0930\u0902\u092D \u0915\u0930\u0947\u0902"}),i18n_next_action:()=>({en:"Next",pt:"Pr\xF3ximo",es:"Siguiente",de:"N\xE4chster",fr:"Suivant",hi:"\u0905\u0917\u0932\u093E"}),i18n_end_message:()=>({en:"Thank you",pt:"Obrigado",es:"Gracias",de:"Danke",fr:"Merci",hi:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926"}),i18n_error_message:()=>({en:"Oops... something went wrong.",pt:"Oops... algo deu errado.",es:"Oops... algo sali\xF3 mal.",de:"Oops... etwas ist schief gelaufen.",fr:"Oops... quelque chose s'est mal pass\xE9.",hi:"\u0909\u0939... \u0915\u0941\u091B \u0917\u0932\u0924 \u0939\u094B \u0917\u092F\u093E\u0964"}),i18n_lock_failed_running:()=>({en:"This form is already being filled",pt:"Este formul\xE1rio j\xE1 est\xE1 sendo preenchido",es:"Este formulario ya est\xE1 siendo completado",de:"Dieses Formular wird bereits ausgef\xFCllt",fr:"Ce formulaire est d\xE9j\xE0 en cours de remplissage",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930 \u0930\u0939\u093E \u0939\u0948"}),i18n_lock_failed_not_running:()=>({en:"This form was already filled",pt:"Este formul\xE1rio j\xE1 foi preenchido",es:"Este formulario ya fue completado",de:"Dieses Formular wurde bereits ausgef\xFCllt",fr:"Ce formulaire a d\xE9j\xE0 \xE9t\xE9 rempli",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930\u093E \u0917\u092F\u093E \u0925\u093E"}),i18n_auth_validate_your_email:()=>({en:"Validate your email",pt:"Valide seu email",es:"Valida tu email",de:"\xDCberpr\xFCfen Sie Ihre E-Mail",fr:"Validez votre email",hi:"\u0905\u092A\u0928\u093E \u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_info_description:()=>({en:"Please enter your work email and continue to receive a verification code.",pt:"Por favor, insira seu email de trabalho e continue para receber um c\xF3digo de verifica\xE7\xE3o.",es:"Por favor, introduce tu email de trabajo y contin\xFAa para recibir un c\xF3digo de verificaci\xF3n.",de:"Bitte geben Sie Ihre Arbeits-E-Mail-Adresse ein und fahren Sie fort, um einen Best\xE4tigungscode zu erhalten.",fr:"Veuillez entrer votre email de travail et continuer pour recevoir un code de v\xE9rification.",hi:"\u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u093E \u0915\u093E\u092E \u0915\u093E \u0908\u092E\u0947\u0932 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902 \u0914\u0930 \u090F\u0915 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902\u0964"}),i18n_auth_validate_your_email_login:()=>({en:"Login to Abstra",pt:"Entrar na Abstra",es:"Iniciar sesi\xF3n en Abstra",de:"Anmelden bei Abstra",fr:"Se connecter \xE0 Abstra",hi:"Abstra \u092E\u0947\u0902 \u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902"}),i18n_create_or_choose_project:()=>({en:"Select or create a new project",pt:"Selecione ou crie um novo projeto",es:"Selecciona o crea un nuevo proyecto",de:"W\xE4hlen oder erstellen Sie ein neues Projekt",fr:"S\xE9lectionnez ou cr\xE9ez un nouveau projet",hi:"\u090F\u0915 \u0928\u092F\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902 \u092F\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_organization:()=>({en:"Organization",pt:"Organiza\xE7\xE3o",es:"Organizaci\xF3n",de:"Organisation",fr:"Organisation",hi:"\u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_choose_organization:()=>({en:"Choose an organization",pt:"Escolha uma organiza\xE7\xE3o",es:"Elige una organizaci\xF3n",de:"W\xE4hlen Sie eine Organisation",fr:"Choisissez une organisation",hi:"\u090F\u0915 \u0938\u0902\u0917\u0920\u0928 \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_new_organization:()=>({en:"New organization",pt:"Nova organiza\xE7\xE3o",es:"Nueva organizaci\xF3n",de:"Neue Organisation",fr:"Nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_existing_organizations:()=>({en:"Existing organizations",pt:"Organiza\xE7\xF5es existentes",es:"Organizaciones existentes",de:"Bestehende Organisationen",fr:"Organisations existantes",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_organization_name:()=>({en:"Organization name",pt:"Nome da organiza\xE7\xE3o",es:"Nombre de la organizaci\xF3n",de:"Organisationsname",fr:"Nom de l'organisation",hi:"\u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_organization_name:()=>({en:"Choose a name for your new organization",pt:"Escolha um nome para a sua nova organiza\xE7\xE3o",es:"Elige un nombre para tu nueva organizaci\xF3n",de:"W\xE4hlen Sie einen Namen f\xFCr Ihre neue Organisation",fr:"Choisissez un nom pour votre nouvelle organisation",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project:()=>({en:"Project",pt:"Projeto",es:"Proyecto",de:"Projekt",fr:"Projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_choose_project:()=>({en:"Choose a project",pt:"Escolha um projeto",es:"Elige un proyecto",de:"W\xE4hlen Sie ein Projekt",fr:"Choisissez un projet",hi:"\u090F\u0915 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project_name:()=>({en:"Project name",pt:"Nome do projeto",es:"Nombre del proyecto",de:"Projektname",fr:"Nom du projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_project_name:()=>({en:"Choose a name for your new project",pt:"Escolha um nome para o seu novo projeto",es:"Elige un nombre para tu nuevo proyecto",de:"W\xE4hlen Sie einen Namen f\xFCr Ihr neues Projekt",fr:"Choisissez un nom pour votre nouveau projet",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_create_new_organization:()=>({en:"Create new organization",pt:"Criar nova organiza\xE7\xE3o",es:"Crear nueva organizaci\xF3n",de:"Neue Organisation erstellen",fr:"Cr\xE9er une nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928 \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_new_project:()=>({en:"New project",pt:"Novo projeto",es:"Nuevo proyecto",de:"Neues Projekt",fr:"Nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_existing_projects:()=>({en:"Existing projects",pt:"Projetos existentes",es:"Proyectos existentes",de:"Bestehende Projekte",fr:"Projets existants",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_create_new_project:()=>({en:"Create new project",pt:"Criar novo projeto",es:"Crear nuevo proyecto",de:"Neues Projekt erstellen",fr:"Cr\xE9er un nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_api_key_info:()=>({en:"Use this API key to access your cloud resources.",pt:"Use esta chave de API para acessar seus recursos na nuvem.",es:"Utiliza esta clave de API para acceder a tus recursos en la nube.",de:"Verwenden Sie diesen API-Schl\xFCssel, um auf Ihre Cloud-Ressourcen zuzugreifen.",fr:"Utilisez cette cl\xE9 API pour acc\xE9der \xE0 vos ressources cloud.",hi:"\u0905\u092A\u0928\u0947 \u0915\u094D\u0932\u093E\u0909\u0921 \u0938\u0902\u0938\u093E\u0927\u0928\u094B\u0902 \u0924\u0915 \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0907\u0938 API \u0915\u0941\u0902\u091C\u0940 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902\u0964"}),i18n_get_api_key_api_key_warning:()=>({en:"This is a secret key. Do not share it with anyone and make sure to store it in a safe place.",pt:"Esta \xE9 uma chave secreta. N\xE3o a compartilhe com ningu\xE9m e certifique-se de armazen\xE1-la em um local seguro.",es:"Esta es una clave secreta. No la compartas con nadie y aseg\xFArate de guardarla en un lugar seguro.",de:"Dies ist ein geheimer Schl\xFCssel. Teilen Sie es nicht mit anderen und stellen Sie sicher, dass Sie es an einem sicheren Ort aufbewahren.",fr:"C'est une cl\xE9 secr\xE8te. Ne le partagez avec personne et assurez-vous de le stocker dans un endroit s\xFBr.",hi:"\u092F\u0939 \u090F\u0915 \u0917\u0941\u092A\u094D\u0924 \u0915\u0941\u0902\u091C\u0940 \u0939\u0948\u0964 \u0907\u0938\u0947 \u0915\u093F\u0938\u0940 \u0915\u0947 \u0938\u093E\u0925 \u0938\u093E\u091D\u093E \u0928 \u0915\u0930\u0947\u0902 \u0914\u0930 \u0938\u0941\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u0930\u0947\u0902 \u0915\u093F \u0906\u092A \u0907\u0938\u0947 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0938\u094D\u0925\u093E\u0928 \u092A\u0930 \u0938\u094D\u091F\u094B\u0930 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_invalid_email:()=>({en:"Invalid email, please try again.",pt:"Email inv\xE1lido, tente novamente.",es:"Email inv\xE1lido, int\xE9ntalo de nuevo.",de:"E-Mail ung\xFCltig, bitte versuchen Sie es erneut.",fr:"Email invalide, veuillez r\xE9essayer.",hi:"\u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_send_code:()=>({en:"Send verification code",pt:"Enviar c\xF3digo de verifica\xE7\xE3o",es:"Enviar c\xF3digo de verificaci\xF3n",de:"Best\xE4tigungscode senden",fr:"Envoyer le code de v\xE9rification",hi:"\u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_label:e=>({en:`Check ${e.email}'s inbox and enter your verification code below`,pt:`Verifique a caixa de entrada de ${e.email} e insira o c\xF3digo de verifica\xE7\xE3o abaixo`,es:`Revisa la bandeja de entrada de ${e.email} y escribe el c\xF3digo de verificaci\xF3n abajo`,de:`\xDCberpr\xFCfen Sie den Posteingang von ${e.email} und geben Sie den Best\xE4tigungscode unten ein`,fr:`V\xE9rifiez la bo\xEEte de r\xE9ception de ${e.email} et entrez le code de v\xE9rification ci-dessous`,hi:`\u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 ${e.email} \u0915\u0940 \u0907\u0928\u092C\u0949\u0915\u094D\u0938 \u0914\u0930 \u0928\u0940\u091A\u0947 \u0905\u092A\u0928\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902`}),i18n_auth_token_development_warning:()=>({en:"You\u2019re in development mode, any token will work",pt:"Voc\xEA est\xE1 em modo de desenvolvimento, qualquer token funcionar\xE1",es:"Est\xE1s en modo de desarrollo, cualquier token funcionar\xE1",de:"Sie sind im Entwicklungsmodus, jeder Token funktioniert",fr:"Vous \xEAtes en mode d\xE9veloppement, n\u2019importe quel token fonctionnera",hi:"\u0906\u092A \u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0939\u0948\u0902, \u0915\u094B\u0908 \u092D\u0940 \u091F\u094B\u0915\u0928 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E"}),i18n_auth_token_expired:()=>({en:"Token has expired, please retry sending it.",pt:"Token expirou, tente reenviar.",es:"Token ha expirado, int\xE9ntalo reenvi\xE1ndolo.",de:"Token ist abgelaufen, bitte versuchen Sie es erneut zu senden.",fr:"Token est expir\xE9, essayez de le renvoyer.",hi:"\u091F\u094B\u0915\u0928 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924, \u0907\u0938\u0947 \u092B\u093F\u0930 \u0938\u0947 \u092D\u0947\u091C\u0928\u0947 \u0915\u093E \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_token_invalid:()=>({en:"Invalid token, please try again or go back and change you email address.",pt:"Token inv\xE1lido, tente novamente ou volte e altere o seu endere\xE7o de email.",es:"Token inv\xE1lido, por favor intenta de nuevo o vuelve y cambia tu direcci\xF3n de correo electr\xF3nico.",de:"Token ung\xFCltig, bitte versuchen Sie es erneut oder gehen Sie zur\xFCck und \xE4ndern Sie Ihre E-Mail Adresse.",fr:"Token invalide, veuillez r\xE9essayer ou revenir en arri\xE8re et changez votre adresse e-mail.",hi:"\u091F\u094B\u0915\u0928 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0935\u093E\u092A\u0938 \u091C\u093E\u090F\u0902 \u0914\u0930 \u0906\u092A\u0915\u093E \u0908\u092E\u0947\u0932 \u092A\u0924\u093E \u092C\u0926\u0932\u0947\u0902\u0964"}),i18n_auth_token_verify_email:()=>({en:"Verify email",pt:"Verificar email",es:"Verificar email",de:"E-Mail verifizieren",fr:"V\xE9rifier email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_edit_email:()=>({en:"Use another email",pt:"Usar outro email",es:"Usar otro email",de:"Eine andere E-Mail-Adresse verwenden",fr:"Utiliser un autre email",hi:"\u0926\u0942\u0938\u0930\u093E \u0908\u092E\u0947\u0932 \u092A\u094D\u0930\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_auth_token_resend_email:()=>({en:"Send new code",pt:"Enviar novo c\xF3digo",es:"Enviar nuevo c\xF3digo",de:"Neuen Code senden",fr:"Envoyer un nouveau code",hi:"\u0928\u092F\u093E \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_footer_alternative_email:()=>({en:"If you haven't received the verification code, please check your spam folder",pt:"Se voc\xEA n\xE3o recebeu o c\xF3digo de verifica\xE7\xE3o, verifique sua caixa de spam",es:"Si no has recibido el c\xF3digo de verificaci\xF3n, por favor revisa tu carpeta de spam",de:"Wenn Sie den Best\xE4tigungscode nicht erhalten haben, \xFCberpr\xFCfen Sie bitte Ihren Spam-Ordner",fr:"Si vous n'avez pas re\xE7u le code de v\xE9rification, veuillez v\xE9rifier votre dossier de spam",hi:"\u092F\u0926\u093F \u0906\u092A\u0928\u0947 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u0947 \u0938\u094D\u092A\u0948\u092E \u092B\u093C\u094B\u0932\u094D\u0921\u0930 \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902"}),i18n_local_auth_info_description:()=>({en:"You\u2019re in development mode, any email will work",pt:"Voc\xEA est\xE1 em modo de desenvolvimento, qualquer email funcionar\xE1",es:"Est\xE1s en modo de desarrollo, cualquier email funcionar\xE1",de:"Sie sind im Entwicklungsmodus, jede E-Mail-Adresse funktioniert",fr:"Vous \xEAtes en mode d\xE9veloppement, n\u2019importe quel email fonctionnera",hi:"\u0906\u092A \u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0939\u0948\u0902, \u0915\u094B\u0908 \u092D\u0940 \u0908\u092E\u0947\u0932 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E"}),i18n_local_auth_info_authenticate:()=>({en:"Validate email",pt:"Validar email",es:"Validar email",de:"E-Mail best\xE4tigen",fr:"Valider email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_error_invalid_date:()=>({en:"Invalid date",pt:"Data inv\xE1lida",es:"Fecha no v\xE1lida",de:"Ung\xFCltiges Datum",fr:"Date invalide",hi:"\u0905\u0935\u0948\u0927 \u0924\u093F\u0925\u093F"}),i18n_camera_permission_denied:()=>({en:"Camera access denied",pt:"Acesso \xE0 c\xE2mera negado",es:"Acceso a la c\xE1mara denegado",de:"Kamerazugriff verweigert",fr:"Acc\xE8s \xE0 la cam\xE9ra refus\xE9",hi:"\u0915\u0948\u092E\u0930\u093E \u090F\u0915\u094D\u0938\u0947\u0938 \u0928\u093E\u0907\u091F\u0947\u0921"}),i18n_no_camera_found:()=>({en:"No camera found",pt:"Nenhuma c\xE2mera encontrada",es:"No se encontr\xF3 ninguna c\xE1mara",de:"Keine Kamera gefunden",fr:"Aucune cam\xE9ra trouv\xE9e",hi:"\u0915\u094B\u0908 \u0915\u0948\u092E\u0930\u093E \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_camera_already_in_use:()=>({en:"Camera is already in use",pt:"C\xE2mera j\xE1 est\xE1 em uso",es:"La c\xE1mara ya est\xE1 en uso",de:"Kamera wird bereits verwendet",fr:"La cam\xE9ra est d\xE9j\xE0 utilis\xE9e",hi:"\u0915\u0948\u092E\u0930\u093E \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u0909\u092A\u092F\u094B\u0917 \u092E\u0947\u0902 \u0939\u0948"}),i18n_permission_error:()=>({en:"An error occurred while accessing the camera",pt:"Ocorreu um erro ao acessar a c\xE2mera",es:"Se produjo un error al acceder a la c\xE1mara",de:"Beim Zugriff auf die Kamera ist ein Fehler aufgetreten",fr:"Une erreur s'est produite lors de l'acc\xE8s \xE0 la cam\xE9ra",hi:"\u0915\u0948\u092E\u0930\u093E \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0924\u0947 \u0938\u092E\u092F \u090F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F \u0906\u0908"}),i18n_access_denied:()=>({en:"Access denied",pt:"Acesso negado",es:"Acceso denegado",de:"Zugriff verweigert",fr:"Acc\xE8s refus\xE9",hi:"\u092A\u0939\u0941\u0902\u091A \u0928\u093F\u0937\u0947\u0927\u093F\u0924"}),i18n_access_denied_message:()=>({en:"You do not have the necessary permissions to access this page. Please contact the administrator to request access.",pt:"Voc\xEA n\xE3o tem as permiss\xF5es necess\xE1rias para acessar esta p\xE1gina. Entre em contato com o administrador para solicitar acesso.",es:"No tienes los permisos necesarios para acceder a esta p\xE1gina. Ponte en contacto con el administrador para solicitar acceso.",de:"Sie haben nicht die erforderlichen Berechtigungen, um auf diese Seite zuzugreifen. Bitte kontaktieren Sie den Administrator, um Zugriff anzufordern.",fr:"Vous n'avez pas les autorisations n\xE9cessaires pour acc\xE9der \xE0 cette page. Veuillez contacter l'administrateur pour demander l'acc\xE8s.",hi:"\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u0907\u0938 \u092A\u0947\u091C \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0906\u0935\u0936\u094D\u092F\u0915 \u0905\u0928\u0941\u092E\u0924\u093F\u092F\u093E\u0901 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0936\u093E\u0938\u0915 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_internal_error:()=>({en:"Internal error",pt:"Erro interno",es:"Error interno",de:"Interner Fehler",fr:"Erreur interne",hi:"\u0906\u0902\u0924\u0930\u093F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F"}),i18n_internal_error_message:()=>({en:"An unknown error ocurred. Please try again or contact support.",pt:"Ocorreu um erro desconhecido. Tente novamente ou entre em contato com o suporte.",es:"Se ha producido un error desconocido. Int\xE9ntalo de nuevo o ponte en contacto con el soporte.",de:"Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut oder kontaktieren Sie den Support.",fr:"Une erreur inconnue s\u2019est produite. Veuillez r\xE9essayer ou contacter le support.",hi:"\u090F\u0915 \u0905\u091C\u094D\u091E\u093E\u0924 \u0924\u094D\u0930\u0941\u091F\u093F \u0939\u0941\u0908\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0938\u092E\u0930\u094D\u0925\u0928 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_page_not_found:()=>({en:"Page not found",pt:"P\xE1gina n\xE3o encontrada",es:"P\xE1gina no encontrada",de:"Seite nicht gefunden",fr:"Page non trouv\xE9e",hi:"\u092A\u0943\u0937\u094D\u0920 \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_page_not_found_message:()=>({en:"The page you are looking for does not exist. Please check the URL and try again.",pt:"A p\xE1gina que voc\xEA est\xE1 procurando n\xE3o existe. Verifique a URL e tente novamente.",es:"La p\xE1gina que buscas no existe. Por favor, verifica la URL e int\xE9ntalo de nuevo.",de:"Die von Ihnen gesuchte Seite existiert nicht. Bitte \xFCberpr\xFCfen Sie die URL und versuchen Sie es erneut.",fr:"La page que vous recherchez n\u2019existe pas. Veuillez v\xE9rifier l\u2019URL et r\xE9essayer.",hi:"\u0906\u092A \u091C\u093F\u0938 \u092A\u0943\u0937\u094D\u0920 \u0915\u0940 \u0916\u094B\u091C \u0915\u0930 \u0930\u0939\u0947 \u0939\u0948\u0902, \u0935\u0939 \u092E\u094C\u091C\u0942\u0926 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E URL \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 \u0914\u0930 \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"})},LUe="en";class FUe{getBrowserLocale(){return navigator.language.split(/[-_]/)[0]}getSupportedLocale(t){return $Ue.includes(t)?t:LUe}translate(t,n=null,...r){if(!(t in d0))throw new Error(`Missing translation for key ${t} in locale ${n}`);if(n==null){const i=this.getBrowserLocale(),a=Oa.getSupportedLocale(i);return d0[t](...r)[a]}return d0[t](...r)[n]}translateIfFound(t,n,...r){return t in d0?this.translate(t,n,...r):t}}const Oa=new FUe,m1={txt:"text/plain",md:"text/markdown",csv:"text/csv",html:"text/html",css:"text/css",py:"text/x-python-script",png:"image/png",jpg:"image/jpg",mp3:"audio/mp3",wav:"audio/wav",flac:"audio/flac",aac:"audio/aac",ogg:"audio/ogg",wma:"audio/x-ms-wma",avi:"video/avi",mp4:"video/mp4",mkv:"video/x-matroska",mov:"video/quicktime",webm:"video/webm",flv:"video/x-flv",wmv:"video/x-ms-wmv",m4v:"video/x-m4v",zip:"application/zip",rar:"application/vnd.rar","7z":"application/x-7z-compressed",tar:"application/x-tar",gzip:"application/gzip",js:"application/javascript",ts:"application/typescript",json:"application/json",xml:"application/xml",yaml:"application/x-yaml",toml:"application/toml",pdf:"application/pdf",xls:"application/vnd.ms-excel",doc:"application/msword",ppt:"application/vnd.ms-powerpoint",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",unknown:"application/octet-stream"},kL=e=>e in m1?m1[e]:m1.unknown;class Az{constructor(t,n,r,i,a,l,s){yn(this,"initialFileList",()=>this.value.map(t=>{const n=new File([],t);return{uid:t,name:t.split("/").pop()||t,status:"done",response:[t.replace("/_files/","")],url:t,type:kL(t.split(".").pop()),size:n.size}}));yn(this,"emitValue",t=>{this.value=t,this.emit("update:value",t)});yn(this,"emitErrors",t=>{this.emit("update:errors",t)});yn(this,"handleReject",()=>{var n;const t=((n=this.acceptedFormats)==null?void 0:n.join(", "))||"*";this.emitErrors([Oa.translate("i18n_upload_area_rejected_file_extension",this.locale,{formats:t})])});yn(this,"customData",t=>({filename:t.name}));yn(this,"beforeUpload",t=>this.maxFileSize&&t.size&&t.size/1024/1024>this.maxFileSize?(this.emitErrors([Oa.translate("i18n_upload_max_size_excided",this.locale,{fileName:t.name,maxSize:this.maxFileSize})]),Cz.LIST_IGNORE):!0);yn(this,"handleChange",t=>{t.file.status==="done"&&(t.file.thumbUrl=this.thumbnail(t.file));const r=t.fileList.filter(i=>i.status==="done").map(i=>"/_files/"+i.response[0])||[];this.emitValue(r),t.file.status==="error"&&this.emitErrors([Oa.translate("i18n_upload_failed",this.locale,{fileName:t.file.name})])});this.emit=t,this.value=n,this.thumbnail=r,this.locale=i,this.acceptedFormats=a,this.maxFileSize=l,this.multiple=s}get accept(){var t,n;return((t=this.acceptedFormats)==null?void 0:t.length)===0?"*":(n=this.acceptedFormats)==null?void 0:n.map(r=>kL(r)).join(",")}get action(){return"/_files/"}get method(){return"PUT"}get headers(){return{cache:"no-cache",mode:"cors"}}get progress(){return{strokeWidth:5,showInfo:!0,format:t=>`${(t==null?void 0:t.toFixed(0))||0}%`}}get maxCount(){return this.multiple?void 0:1}}const Nz=Ce({__name:"CardList",props:{value:{},errors:{},locale:{},acceptedFormats:{},maxFileSize:{},multiple:{type:Boolean},disabled:{type:Boolean},capture:{type:Boolean}},emits:["update:value","update:errors"],setup(e,{expose:t,emit:n}){const r=e,i=Oe(null),a=new Iz,l=new Az(n,r.value,a.fileThumbnail,r.locale,r.acceptedFormats,r.maxFileSize,r.multiple),s=Oe(l.initialFileList()),u=$(()=>r.multiple||s.value.length===0);return t({uploadRef:i}),(o,c)=>(oe(),pe(tt,null,[x(je(Cz),{ref_key:"uploadRef",ref:i,capture:o.capture,fileList:s.value,"onUpdate:fileList":c[0]||(c[0]=d=>s.value=d),accept:je(l).accept,action:je(l).action,method:je(l).method,"max-count":je(l).maxCount,headers:je(l).headers,data:je(l).customData,progress:je(l).progress,"before-upload":je(l).beforeUpload,onChange:je(l).handleChange,onReject:je(l).handleReject,onPreview:je(a).handlePreview,multiple:o.multiple,disabled:o.disabled,"show-upload-list":!0,"list-type":"picture-card"},{iconRender:pn(({file:d})=>[x(Oz,{file:d,ctrl:je(a),size:20},null,8,["file","ctrl"])]),default:pn(()=>[u.value?Et(o.$slots,"ui",{key:0}):ft("",!0)]),_:3},8,["capture","fileList","accept","action","method","max-count","headers","data","progress","before-upload","onChange","onReject","onPreview","multiple","disabled"]),x(Rz,{ctrl:je(a)},null,8,["ctrl"])],64))}});var Dz={},My={};My.byteLength=HUe;My.toByteArray=VUe;My.fromByteArray=jUe;var ds=[],no=[],BUe=typeof Uint8Array<"u"?Uint8Array:Array,g1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Sd=0,UUe=g1.length;Sd0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function HUe(e){var t=Pz(e),n=t[0],r=t[1];return(n+r)*3/4-r}function zUe(e,t,n){return(t+n)*3/4-n}function VUe(e){var t,n=Pz(e),r=n[0],i=n[1],a=new BUe(zUe(e,r,i)),l=0,s=i>0?r-4:r,u;for(u=0;u>16&255,a[l++]=t>>8&255,a[l++]=t&255;return i===2&&(t=no[e.charCodeAt(u)]<<2|no[e.charCodeAt(u+1)]>>4,a[l++]=t&255),i===1&&(t=no[e.charCodeAt(u)]<<10|no[e.charCodeAt(u+1)]<<4|no[e.charCodeAt(u+2)]>>2,a[l++]=t>>8&255,a[l++]=t&255),a}function GUe(e){return ds[e>>18&63]+ds[e>>12&63]+ds[e>>6&63]+ds[e&63]}function YUe(e,t,n){for(var r,i=[],a=t;as?s:l+a));return r===1?(t=e[n-1],i.push(ds[t>>2]+ds[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(ds[t>>10]+ds[t>>4&63]+ds[t<<2&63]+"=")),i.join("")}var pI={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */pI.read=function(e,t,n,r,i){var a,l,s=i*8-r-1,u=(1<>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=a*256+e[t+d],d+=p,c-=8);for(l=a&(1<<-c)-1,a>>=-c,c+=r;c>0;l=l*256+e[t+d],d+=p,c-=8);if(a===0)a=1-o;else{if(a===u)return l?NaN:(f?-1:1)*(1/0);l=l+Math.pow(2,r),a=a-o}return(f?-1:1)*l*Math.pow(2,a-r)};pI.write=function(e,t,n,r,i,a){var l,s,u,o=a*8-i-1,c=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,g=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-l))<1&&(l--,u*=2),l+d>=1?t+=p/u:t+=p*Math.pow(2,1-d),t*u>=2&&(l++,u/=2),l+d>=c?(s=0,l=c):l+d>=1?(s=(t*u-1)*Math.pow(2,i),l=l+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[n+f]=s&255,f+=g,s/=256,i-=8);for(l=l<0;e[n+f]=l&255,f+=g,l/=256,o-=8);e[n+f-g]|=m*128};/*! + `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:i+e.paddingXS,fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${u}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ske=yke,AL=new Yt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),NL=new Yt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Eke=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:AL},[`${n}-leave`]:{animationName:NL}}},AL,NL]},Cke=Eke,Tke=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[l]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:R(R({},gl),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:i,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{["svg path[fill='#e6f7ff']"]:{fill:e.colorErrorBg},["svg path[fill='#1890ff']"]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:i}}}}}},wke=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:R(R({},Mu()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Sn(i).setAlpha(.65).toRgbString(),"&:hover":{color:i}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},xke=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Oke=xke,Rke=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:R(R({},Nn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Ike=Mn("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightLG:a}=e,l=Math.round(n*r),s=jt(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+i,uploadPicCardSize:a*2.55});return[Rke(s),bke(s),Tke(s),wke(s),Ske(s),Cke(s),Oke(s),uy(s)]});var Ake=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function s(c){try{o(r.next(c))}catch(d){l(d)}}function u(c){try{o(r.throw(c))}catch(d){l(d)}}function o(c){c.done?a(c.value):i(c.value).then(s,u)}o((r=r.apply(e,t||[])).next())})},Nke=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var M;return(M=u.value)!==null&&M!==void 0?M:d.value}),[f,g]=Zr(e.defaultFileList||[],{value:xt(e,"fileList"),postState:M=>{const B=Date.now();return(M!=null?M:[]).map((P,k)=>(!P.uid&&!Object.isFrozen(P)&&(P.uid=`__AUTO__${B}_${k}__`),P))}}),m=Oe("drop"),h=Oe(null);_t(()=>{Mr(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Mr(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Mr(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const v=(M,B,P)=>{var k,D;let F=[...B];e.maxCount===1?F=F.slice(-1):e.maxCount&&(F=F.slice(0,e.maxCount)),g(F);const U={file:M,fileList:F};P&&(U.event=P),(k=e["onUpdate:fileList"])===null||k===void 0||k.call(e,U.fileList),(D=e.onChange)===null||D===void 0||D.call(e,U),a.onFieldChange()},b=(M,B)=>Ake(this,void 0,void 0,function*(){const{beforeUpload:P,transformFile:k}=e;let D=M;if(P){const F=yield P(M,B);if(F===!1)return!1;if(delete M[Jf],F===Jf)return Object.defineProperty(M,Jf,{value:!0,configurable:!0}),!1;typeof F=="object"&&F&&(D=F)}return k&&(D=yield k(D)),D}),y=M=>{const B=M.filter(D=>!D.file[Jf]);if(!B.length)return;const P=B.map(D=>c0(D.file));let k=[...f.value];P.forEach(D=>{k=u0(D,k)}),P.forEach((D,F)=>{let U=D;if(B[F].parsedFile)D.status="uploading";else{const{originFileObj:z}=D;let Y;try{Y=new File([z],z.name,{type:z.type})}catch{Y=new Blob([z],{type:z.type}),Y.name=z.name,Y.lastModifiedDate=new Date,Y.lastModified=new Date().getTime()}Y.uid=D.uid,U=Y}v(U,k)})},S=(M,B,P)=>{try{typeof M=="string"&&(M=JSON.parse(M))}catch{}if(!f1(B,f.value))return;const k=c0(B);k.status="done",k.percent=100,k.response=M,k.xhr=P;const D=u0(k,f.value);v(k,D)},C=(M,B)=>{if(!f1(B,f.value))return;const P=c0(B);P.status="uploading",P.percent=M.percent;const k=u0(P,f.value);v(P,k,M)},w=(M,B,P)=>{if(!f1(P,f.value))return;const k=c0(P);k.error=M,k.response=B,k.status="error";const D=u0(k,f.value);v(k,D)},T=M=>{let B;const P=e.onRemove||e.remove;Promise.resolve(typeof P=="function"?P(M):P).then(k=>{var D,F;if(k===!1)return;const U=oke(M,f.value);U&&(B=R(R({},M),{status:"removed"}),(D=f.value)===null||D===void 0||D.forEach(z=>{const Y=B.uid!==void 0?"uid":"name";z[Y]===B[Y]&&!Object.isFrozen(z)&&(z.status="removed")}),(F=h.value)===null||F===void 0||F.abort(B),v(B,U))})},O=M=>{var B;m.value=M.type,M.type==="drop"&&((B=e.onDrop)===null||B===void 0||B.call(e,M))};i({onBatchStart:y,onSuccess:S,onProgress:C,onError:w,fileList:f,upload:h});const[I]=Ko("Upload",uo.Upload,$(()=>e.locale)),N=(M,B)=>{const{removeIcon:P,previewIcon:k,downloadIcon:D,previewFile:F,onPreview:U,onDownload:z,isImageUrl:Y,progress:G,itemRender:K,iconRender:X,showUploadList:ie}=e,{showDownloadIcon:se,showPreviewIcon:q,showRemoveIcon:ee}=typeof ie=="boolean"?{}:ie;return ie?x(_ke,{prefixCls:l.value,listType:e.listType,items:f.value,previewFile:F,onPreview:U,onDownload:z,onRemove:T,showRemoveIcon:!p.value&&ee,showPreviewIcon:q,showDownloadIcon:se,removeIcon:P,previewIcon:k,downloadIcon:D,iconRender:X,locale:I.value,isImageUrl:Y,progress:G,itemRender:K,appendActionVisible:B,appendAction:M},R({},n)):M==null?void 0:M()};return()=>{var M,B,P;const{listType:k,type:D}=e,{class:F,style:U}=r,z=Nke(r,["class","style"]),Y=R(R(R({onBatchStart:y,onError:w,onProgress:C,onSuccess:S},z),e),{id:(M=e.id)!==null&&M!==void 0?M:a.id.value,prefixCls:l.value,beforeUpload:b,onChange:void 0,disabled:p.value});delete Y.remove,(!n.default||p.value)&&delete Y.id;const G={[`${l.value}-rtl`]:s.value==="rtl"};if(D==="drag"){const se=Fe(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:f.value.some(q=>q.status==="uploading"),[`${l.value}-drag-hover`]:m.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"},r.class,c.value);return o(x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,F,c.value)}),[x("div",{class:se,onDrop:O,onDragover:O,onDragleave:O,style:r.style},[x(wL,Z(Z({},Y),{},{ref:h,class:`${l.value}-btn`}),Z({default:()=>[x("div",{class:`${l.value}-drag-container`},[(B=n.default)===null||B===void 0?void 0:B.call(n)])]},n))]),N()]))}const K=Fe(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${k}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"}),X=ni((P=n.default)===null||P===void 0?void 0:P.call(n)),ie=se=>x("div",{class:K,style:se},[x(wL,Z(Z({},Y),{},{ref:h}),n)]);return o(k==="picture-card"?x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,G,r.class,c.value)}),[N(ie,!!(X&&X.length))]):x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,r.class,c.value)}),[ie(X&&X.length?void 0:{display:"none"}),N()]))}}});var DL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{height:i}=e,a=DL(e,["height"]),{style:l}=r,s=DL(r,["style"]),u=R(R(R({},a),s),{type:"drag",style:R(R({},l),{height:typeof i=="number"?`${i}px`:i})});return x(F0,u,n)}}}),Dke=B0,Cz=R(F0,{Dragger:B0,LIST_IGNORE:Jf,install(e){return e.component(F0.name,F0),e.component(B0.name,B0),e}});var Pke={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:n}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:t}}]}},name:"close-circle",theme:"twotone"};const Mke=Pke;var kke={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:n}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:t}}]}},name:"edit",theme:"twotone"};const $ke=kke;var Lke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const Fke=Lke;var Bke={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const Uke=Bke,Tz=["wrap","nowrap","wrap-reverse"],wz=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],xz=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Hke=(e,t)=>{const n={};return Tz.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},zke=(e,t)=>{const n={};return xz.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Vke=(e,t)=>{const n={};return wz.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function Gke(e,t){return Fe(R(R(R({},Hke(e,t)),zke(e,t)),Vke(e,t)))}const Yke=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},jke=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Wke=e=>{const{componentCls:t}=e,n={};return Tz.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},qke=e=>{const{componentCls:t}=e,n={};return xz.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},Kke=e=>{const{componentCls:t}=e,n={};return wz.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},Zke=Mn("Flex",e=>{const t=jt(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[Yke(t),jke(t),Wke(t),qke(t),Kke(t)]});function PL(e){return["small","middle","large"].includes(e)}const Qke=()=>({prefixCls:Bt(),vertical:nt(),wrap:Bt(),justify:Bt(),align:Bt(),flex:nn([Number,String]),gap:nn([Number,String]),component:br()});var Xke=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var c;return[l.value,u.value,Gke(l.value,e),{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-gap-${e.gap}`]:PL(e.gap),[`${l.value}-vertical`]:(c=e.vertical)!==null&&c!==void 0?c:i==null?void 0:i.value.vertical}]});return()=>{var c;const{flex:d,gap:p,component:f="div"}=e,g=Xke(e,["flex","gap","component"]),m={};return d&&(m.flex=d),p&&!PL(p)&&(m.gap=`${p}px`),s(x(f,Z({class:[r.class,o.value],style:[r.style,m]},Dn(g,["justify","wrap","align","vertical"])),{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}))}}}),e$e=go(Jke),t$e=["width","height","fill","transform"],n$e={key:0},r$e=Ee("path",{d:"M204.41,51.63a108,108,0,1,0,0,152.74A107.38,107.38,0,0,0,204.41,51.63Zm-17,17A83.85,83.85,0,0,1,196.26,79L169,111.09l-23.3-65.21A83.52,83.52,0,0,1,187.43,68.6Zm-118.85,0a83.44,83.44,0,0,1,51.11-24.2l14.16,39.65L65.71,71.61C66.64,70.59,67.59,69.59,68.58,68.6ZM48,153.7a84.48,84.48,0,0,1,3.4-60.3L92.84,101Zm20.55,33.7A83.94,83.94,0,0,1,59.74,177L87,144.91l23.3,65.21A83.53,83.53,0,0,1,68.58,187.4Zm36.36-63.61,15.18-17.85,23.06,4.21,7.88,22.06-15.17,17.85-23.06-4.21Zm82.49,63.61a83.49,83.49,0,0,1-51.11,24.2L122.15,172l68.14,12.44C189.36,185.41,188.41,186.41,187.43,187.4ZM163.16,155,208,102.3a84.43,84.43,0,0,1-3.41,60.3Z"},null,-1),i$e=[r$e],a$e={key:1},o$e=Ee("path",{d:"M195.88,60.12a96,96,0,1,0,0,135.76A96,96,0,0,0,195.88,60.12Zm-55.34,103h0l-36.68-6.69h0L91.32,121.3l24.14-28.41h0l36.68,6.69,12.54,35.12Z",opacity:"0.2"},null,-1),s$e=Ee("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),l$e=[o$e,s$e],c$e={key:2},u$e=Ee("path",{d:"M232,128A104,104,0,0,0,54.46,54.46,104,104,0,0,0,128,232h.09A104,104,0,0,0,232,128ZM49.18,88.92l51.21,9.35L46.65,161.53A88.39,88.39,0,0,1,49.18,88.92Zm160.17,5.54a88.41,88.41,0,0,1-2.53,72.62l-51.21-9.35Zm-8.08-15.2L167.55,119,139.63,40.78a87.38,87.38,0,0,1,50.6,25A88.74,88.74,0,0,1,201.27,79.26ZM122.43,40.19l17.51,49L58.3,74.32a89.28,89.28,0,0,1,7.47-8.55A87.37,87.37,0,0,1,122.43,40.19ZM54.73,176.74,88.45,137l27.92,78.18a88,88,0,0,1-61.64-38.48Zm78.84,39.06-17.51-49L139.14,171h0l58.52,10.69a87.5,87.5,0,0,1-64.13,34.12Z"},null,-1),d$e=[u$e],p$e={key:3},f$e=Ee("path",{d:"M200.12,55.88A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.88Zm-102,66.67,19.65-23.14,29.86,5.46,10.21,28.58-19.65,23.14-29.86-5.46ZM209.93,90.69a90.24,90.24,0,0,1-2,78.63l-56.14-10.24Zm-6.16-11.28-36.94,43.48L136.66,38.42a89.31,89.31,0,0,1,55,25.94A91.33,91.33,0,0,1,203.77,79.41Zm-139.41-15A89.37,89.37,0,0,1,123.81,38.1L143,91.82,54.75,75.71A91.2,91.2,0,0,1,64.36,64.36ZM48,86.68l56.14,10.24L46.07,165.31a90.24,90.24,0,0,1,2-78.63Zm4.21,89.91,36.94-43.48,30.17,84.47a89.31,89.31,0,0,1-55-25.94A91.33,91.33,0,0,1,52.23,176.59Zm139.41,15a89.32,89.32,0,0,1-59.45,26.26L113,164.18l88.24,16.11A91.2,91.2,0,0,1,191.64,191.64Z"},null,-1),m$e=[f$e],g$e={key:4},h$e=Ee("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),_$e=[h$e],v$e={key:5},b$e=Ee("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm10.37,114.27-61-11.14L210.4,87a92.26,92.26,0,0,1-1.32,84.52ZM95.87,122.13,117,97.24l32.14,5.86,11,30.77L139,158.76l-32.14-5.86ZM206.24,79.58l-40.13,47.25L133.75,36.2a92.09,92.09,0,0,1,72.49,43.38ZM63,63a91.31,91.31,0,0,1,62.26-26.88L146,94.41,51.32,77.11A92.94,92.94,0,0,1,63,63Zm-16,21.49,61,11.14L45.6,169a92.26,92.26,0,0,1,1.32-84.52Zm2.84,92,40.13-47.25,32.36,90.63a92.09,92.09,0,0,1-72.49-43.38Zm143.29,16.63a91.31,91.31,0,0,1-62.26,26.88L110,161.59l94.72,17.3A92.94,92.94,0,0,1,193.05,193.05Z"},null,-1),y$e=[b$e],S$e={name:"PhAperture"},E$e=Ce({...S$e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",n$e,i$e)):l.value==="duotone"?(oe(),pe("g",a$e,l$e)):l.value==="fill"?(oe(),pe("g",c$e,d$e)):l.value==="light"?(oe(),pe("g",p$e,m$e)):l.value==="regular"?(oe(),pe("g",g$e,_$e)):l.value==="thin"?(oe(),pe("g",v$e,y$e)):ft("",!0)],16,t$e))}}),C$e=["width","height","fill","transform"],T$e={key:0},w$e=Ee("path",{d:"M47.51,112.49a12,12,0,0,1,17-17L116,147V32a12,12,0,0,1,24,0V147l51.51-51.52a12,12,0,0,1,17,17l-72,72a12,12,0,0,1-17,0ZM216,204H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),x$e=[w$e],O$e={key:1},R$e=Ee("path",{d:"M200,112l-72,72L56,112Z",opacity:"0.2"},null,-1),I$e=Ee("path",{d:"M122.34,189.66a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,200,104H136V32a8,8,0,0,0-16,0v72H56a8,8,0,0,0-5.66,13.66ZM180.69,120,128,172.69,75.31,120ZM224,216a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,216Z"},null,-1),A$e=[R$e,I$e],N$e={key:2},D$e=Ee("path",{d:"M50.34,117.66A8,8,0,0,1,56,104h64V32a8,8,0,0,1,16,0v72h64a8,8,0,0,1,5.66,13.66l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),P$e=[D$e],M$e={key:3},k$e=Ee("path",{d:"M51.76,116.24a6,6,0,0,1,8.48-8.48L122,169.51V32a6,6,0,0,1,12,0V169.51l61.76-61.75a6,6,0,0,1,8.48,8.48l-72,72a6,6,0,0,1-8.48,0ZM216,210H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),$$e=[k$e],L$e={key:4},F$e=Ee("path",{d:"M50.34,117.66a8,8,0,0,1,11.32-11.32L120,164.69V32a8,8,0,0,1,16,0V164.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),B$e=[F$e],U$e={key:5},H$e=Ee("path",{d:"M53.17,114.83a4,4,0,0,1,5.66-5.66L124,174.34V32a4,4,0,0,1,8,0V174.34l65.17-65.17a4,4,0,1,1,5.66,5.66l-72,72a4,4,0,0,1-5.66,0ZM216,212H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),z$e=[H$e],V$e={name:"PhArrowLineDown"},G$e=Ce({...V$e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",T$e,x$e)):l.value==="duotone"?(oe(),pe("g",O$e,A$e)):l.value==="fill"?(oe(),pe("g",N$e,P$e)):l.value==="light"?(oe(),pe("g",M$e,$$e)):l.value==="regular"?(oe(),pe("g",L$e,B$e)):l.value==="thin"?(oe(),pe("g",U$e,z$e)):ft("",!0)],16,C$e))}}),Y$e=["width","height","fill","transform"],j$e={key:0},W$e=Ee("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"},null,-1),q$e=[W$e],K$e={key:1},Z$e=Ee("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"},null,-1),Q$e=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),X$e=[Z$e,Q$e],J$e={key:2},eLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"},null,-1),tLe=[eLe],nLe={key:3},rLe=Ee("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"},null,-1),iLe=[rLe],aLe={key:4},oLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),sLe=[oLe],lLe={key:5},cLe=Ee("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"},null,-1),uLe=[cLe],dLe={name:"PhCamera"},pLe=Ce({...dLe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",j$e,q$e)):l.value==="duotone"?(oe(),pe("g",K$e,X$e)):l.value==="fill"?(oe(),pe("g",J$e,tLe)):l.value==="light"?(oe(),pe("g",nLe,iLe)):l.value==="regular"?(oe(),pe("g",aLe,sLe)):l.value==="thin"?(oe(),pe("g",lLe,uLe)):ft("",!0)],16,Y$e))}}),fLe=["width","height","fill","transform"],mLe={key:0},gLe=Ee("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4Zm-32-92v20a12,12,0,0,1-12,12H148a12,12,0,0,1-7.76-21.14,28.07,28.07,0,0,0-29,2.73A12,12,0,0,1,96.79,94.4a52.28,52.28,0,0,1,61.14-.91A12,12,0,0,1,180,100Zm-18.41,52.8a12,12,0,0,1-2.38,16.8,51.71,51.71,0,0,1-31.13,10.34,52.3,52.3,0,0,1-30-9.44A12,12,0,0,1,76,164V144a12,12,0,0,1,12-12h20a12,12,0,0,1,7.76,21.14,28.07,28.07,0,0,0,29-2.73A12,12,0,0,1,161.59,152.8Z"},null,-1),hLe=[gLe],_Le={key:1},vLe=Ee("path",{d:"M224,80V192a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64H80L96,40h64l16,24h32A16,16,0,0,1,224,80Z",opacity:"0.2"},null,-1),bLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),yLe=[vLe,bLe],SLe={key:2},ELe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56ZM156.81,166.4A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61,8,8,0,0,1,9.62,12.79ZM176,120a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Z"},null,-1),CLe=[ELe],TLe={key:3},wLe=Ee("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM174,96v24a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h10l-2-2.09a34.12,34.12,0,0,0-44.38-3.12,6,6,0,1,1-7.22-9.59,46.2,46.2,0,0,1,60.14,4.27.47.47,0,0,0,.1.1L162,105V96a6,6,0,0,1,12,0Zm-17.2,60.4a6,6,0,0,1-1.19,8.4,46.18,46.18,0,0,1-60.14-4.27l-.1-.1L94,159v9a6,6,0,0,1-12,0V144a6,6,0,0,1,6-6h24a6,6,0,0,1,0,12H102l2,2.09a34.12,34.12,0,0,0,44.38,3.12A6,6,0,0,1,156.8,156.4Z"},null,-1),xLe=[wLe],OLe={key:4},RLe=Ee("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),ILe=[RLe],ALe={key:5},NLe=Ee("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM172,96v24a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h14.66l-5.27-5.52a36.12,36.12,0,0,0-47-3.29,4,4,0,1,1-4.8-6.39,44.17,44.17,0,0,1,57.51,4.09L164,110V96a4,4,0,0,1,8,0Zm-16.8,61.6a4,4,0,0,1-.8,5.6,44.15,44.15,0,0,1-57.51-4.09L92,154v14a4,4,0,0,1-8,0V144a4,4,0,0,1,4-4h24a4,4,0,0,1,0,8H97.34l5.27,5.52a36.12,36.12,0,0,0,47,3.29A4,4,0,0,1,155.2,157.6Z"},null,-1),DLe=[NLe],PLe={name:"PhCameraRotate"},MLe=Ce({...PLe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",mLe,hLe)):l.value==="duotone"?(oe(),pe("g",_Le,yLe)):l.value==="fill"?(oe(),pe("g",SLe,CLe)):l.value==="light"?(oe(),pe("g",TLe,xLe)):l.value==="regular"?(oe(),pe("g",OLe,ILe)):l.value==="thin"?(oe(),pe("g",ALe,DLe)):ft("",!0)],16,fLe))}}),kLe=["width","height","fill","transform"],$Le={key:0},LLe=Ee("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"},null,-1),FLe=[LLe],BLe={key:1},ULe=Ee("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"},null,-1),HLe=Ee("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),zLe=[ULe,HLe],VLe={key:2},GLe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),YLe=[GLe],jLe={key:3},WLe=Ee("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"},null,-1),qLe=[WLe],KLe={key:4},ZLe=Ee("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1),QLe=[ZLe],XLe={key:5},JLe=Ee("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"},null,-1),e4e=[JLe],t4e={name:"PhCheck"},n4e=Ce({...t4e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",$Le,FLe)):l.value==="duotone"?(oe(),pe("g",BLe,zLe)):l.value==="fill"?(oe(),pe("g",VLe,YLe)):l.value==="light"?(oe(),pe("g",jLe,qLe)):l.value==="regular"?(oe(),pe("g",KLe,QLe)):l.value==="thin"?(oe(),pe("g",XLe,e4e)):ft("",!0)],16,kLe))}}),r4e=["width","height","fill","transform"],i4e={key:0},a4e=Ee("path",{d:"M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z"},null,-1),o4e=[a4e],s4e={key:1},l4e=Ee("path",{d:"M240,128l-48,40H64L16,128,64,88H192Z",opacity:"0.2"},null,-1),c4e=Ee("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),u4e=[l4e,c4e],d4e={key:2},p4e=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z"},null,-1),f4e=[p4e],m4e={key:3},g4e=Ee("path",{d:"M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z"},null,-1),h4e=[g4e],_4e={key:4},v4e=Ee("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),b4e=[v4e],y4e={key:5},S4e=Ee("path",{d:"M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z"},null,-1),E4e=[S4e],C4e={name:"PhCode"},T4e=Ce({...C4e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",i4e,o4e)):l.value==="duotone"?(oe(),pe("g",s4e,u4e)):l.value==="fill"?(oe(),pe("g",d4e,f4e)):l.value==="light"?(oe(),pe("g",m4e,h4e)):l.value==="regular"?(oe(),pe("g",_4e,b4e)):l.value==="thin"?(oe(),pe("g",y4e,E4e)):ft("",!0)],16,r4e))}}),w4e=["width","height","fill","transform"],x4e={key:0},O4e=Ee("path",{d:"M76,92A16,16,0,1,1,60,76,16,16,0,0,1,76,92Zm52-16a16,16,0,1,0,16,16A16,16,0,0,0,128,76Zm68,32a16,16,0,1,0-16-16A16,16,0,0,0,196,108ZM60,148a16,16,0,1,0,16,16A16,16,0,0,0,60,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,128,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,196,148Z"},null,-1),R4e=[O4e],I4e={key:1},A4e=Ee("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"},null,-1),N4e=Ee("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),D4e=[A4e,N4e],P4e={key:2},M4e=Ee("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM68,168a12,12,0,1,1,12-12A12,12,0,0,1,68,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,68,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,128,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,128,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,188,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,188,112Z"},null,-1),k4e=[M4e],$4e={key:3},L4e=Ee("path",{d:"M70,92A10,10,0,1,1,60,82,10,10,0,0,1,70,92Zm58-10a10,10,0,1,0,10,10A10,10,0,0,0,128,82Zm68,20a10,10,0,1,0-10-10A10,10,0,0,0,196,102ZM60,154a10,10,0,1,0,10,10A10,10,0,0,0,60,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,128,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,196,154Z"},null,-1),F4e=[L4e],B4e={key:4},U4e=Ee("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),H4e=[U4e],z4e={key:5},V4e=Ee("path",{d:"M68,92a8,8,0,1,1-8-8A8,8,0,0,1,68,92Zm60-8a8,8,0,1,0,8,8A8,8,0,0,0,128,84Zm68,16a8,8,0,1,0-8-8A8,8,0,0,0,196,100ZM60,156a8,8,0,1,0,8,8A8,8,0,0,0,60,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,128,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,196,156Z"},null,-1),G4e=[V4e],Y4e={name:"PhDotsSix"},j4e=Ce({...Y4e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",x4e,R4e)):l.value==="duotone"?(oe(),pe("g",I4e,D4e)):l.value==="fill"?(oe(),pe("g",P4e,k4e)):l.value==="light"?(oe(),pe("g",$4e,F4e)):l.value==="regular"?(oe(),pe("g",B4e,H4e)):l.value==="thin"?(oe(),pe("g",z4e,G4e)):ft("",!0)],16,w4e))}}),W4e=["width","height","fill","transform"],q4e={key:0},K4e=Ee("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"},null,-1),Z4e=[K4e],Q4e={key:1},X4e=Ee("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"},null,-1),J4e=Ee("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),e6e=[X4e,J4e],t6e={key:2},n6e=Ee("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),r6e=[n6e],i6e={key:3},a6e=Ee("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"},null,-1),o6e=[a6e],s6e={key:4},l6e=Ee("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),c6e=[l6e],u6e={key:5},d6e=Ee("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"},null,-1),p6e=[d6e],f6e={name:"PhDownload"},m6e=Ce({...f6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",q4e,Z4e)):l.value==="duotone"?(oe(),pe("g",Q4e,e6e)):l.value==="fill"?(oe(),pe("g",t6e,r6e)):l.value==="light"?(oe(),pe("g",i6e,o6e)):l.value==="regular"?(oe(),pe("g",s6e,c6e)):l.value==="thin"?(oe(),pe("g",u6e,p6e)):ft("",!0)],16,W4e))}}),g6e=["width","height","fill","transform"],h6e={key:0},_6e=Ee("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM183,80H160V57ZM116,212V192h8a12,12,0,0,0,0-24h-8V152h8a12,12,0,0,0,0-24h-8V116a12,12,0,0,0-24,0v12H84a12,12,0,0,0,0,24h8v16H84a12,12,0,0,0,0,24h8v20H60V44h76V92a12,12,0,0,0,12,12h48V212Z"},null,-1),v6e=[_6e],b6e={key:1},y6e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),S6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),E6e=[y6e,S6e],C6e={key:2},T6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H92a4,4,0,0,0,4-4V208H88.27A8.17,8.17,0,0,1,80,200.53,8,8,0,0,1,88,192h8V176H88.27A8.17,8.17,0,0,1,80,168.53,8,8,0,0,1,88,160h8V144H88.27A8.17,8.17,0,0,1,80,136.53,8,8,0,0,1,88,128h8v-7.73a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v8h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v20a4,4,0,0,0,4,4h84a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"},null,-1),w6e=[T6e],x6e={key:3},O6e=Ee("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H110V198h10a6,6,0,0,0,0-12H110V166h10a6,6,0,0,0,0-12H110V134h10a6,6,0,0,0,0-12H110V112a6,6,0,0,0-12,0v10H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"},null,-1),R6e=[O6e],I6e={key:4},A6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),N6e=[A6e],D6e={key:5},P6e=Ee("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H108V196h12a4,4,0,0,0,0-8H108V164h12a4,4,0,0,0,0-8H108V132h12a4,4,0,0,0,0-8H108V112a4,4,0,0,0-8,0v12H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"},null,-1),M6e=[P6e],k6e={name:"PhFileArchive"},$6e=Ce({...k6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",h6e,v6e)):l.value==="duotone"?(oe(),pe("g",b6e,E6e)):l.value==="fill"?(oe(),pe("g",C6e,w6e)):l.value==="light"?(oe(),pe("g",x6e,R6e)):l.value==="regular"?(oe(),pe("g",I6e,N6e)):l.value==="thin"?(oe(),pe("g",D6e,M6e)):ft("",!0)],16,g6e))}}),L6e=["width","height","fill","transform"],F6e={key:0},B6e=Ee("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160Zm-52,67a56,56,0,0,0-50.65,32.09A40,40,0,0,0,60,236h48a56,56,0,0,0,0-112Zm0,88H60a16,16,0,0,1-6.54-30.6,12,12,0,0,0,22.67-4.32,32.78,32.78,0,0,1,.92-5.3c.12-.36.22-.72.31-1.09A32,32,0,1,1,108,212Z"},null,-1),U6e=[B6e],H6e={key:1},z6e=Ee("path",{d:"M208,88H152V32ZM108,136a44,44,0,0,0-42.34,32v0H60a28,28,0,0,0,0,56h48a44,44,0,0,0,0-88Z",opacity:"0.2"},null,-1),V6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),G6e=[z6e,V6e],Y6e={key:2},j6e=Ee("path",{d:"M160,181a52.06,52.06,0,0,1-52,51H60.72C40.87,232,24,215.77,24,195.92a36,36,0,0,1,19.28-31.79,4,4,0,0,1,5.77,4.33,63.53,63.53,0,0,0-1,11.15A8.22,8.22,0,0,0,55.55,188,8,8,0,0,0,64,180a47.55,47.55,0,0,1,4.37-20h0A48,48,0,0,1,160,181Zm56-93V216a16,16,0,0,1-16,16H176a8,8,0,0,1,0-16h24V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"},null,-1),W6e=[j6e],q6e={key:3},K6e=Ee("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM108,130a50,50,0,0,0-46.66,32H60a34,34,0,0,0,0,68h48a50,50,0,0,0,0-100Zm0,88H60a22,22,0,0,1-1.65-43.94c-.06.47-.1.93-.15,1.4a6,6,0,1,0,12,1.08A38.57,38.57,0,0,1,71.3,170a5.71,5.71,0,0,0,.24-.86A38,38,0,1,1,108,218Z"},null,-1),Z6e=[K6e],Q6e={key:4},X6e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),J6e=[X6e],e8e={key:5},t8e=Ee("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM108,132a47.72,47.72,0,0,0-45.3,32H60a32,32,0,0,0,0,64h48a48,48,0,0,0,0-96Zm0,88H60a24,24,0,0,1,0-48h.66c-.2,1.2-.35,2.41-.46,3.64a4,4,0,0,0,8,.72,41.2,41.2,0,0,1,1.23-6.92,4.68,4.68,0,0,0,.21-.73A40,40,0,1,1,108,220Z"},null,-1),n8e=[t8e],r8e={name:"PhFileCloud"},i8e=Ce({...r8e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",F6e,U6e)):l.value==="duotone"?(oe(),pe("g",H6e,G6e)):l.value==="fill"?(oe(),pe("g",Y6e,W6e)):l.value==="light"?(oe(),pe("g",q6e,Z6e)):l.value==="regular"?(oe(),pe("g",Q6e,J6e)):l.value==="thin"?(oe(),pe("g",e8e,n8e)):ft("",!0)],16,L6e))}}),a8e=["width","height","fill","transform"],o8e={key:0},s8e=Ee("path",{d:"M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"},null,-1),l8e=[s8e],c8e={key:1},u8e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),d8e=Ee("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),p8e=[u8e,d8e],f8e={key:2},m8e=Ee("path",{d:"M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z"},null,-1),g8e=[m8e],h8e={key:3},_8e=Ee("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"},null,-1),v8e=[_8e],b8e={key:4},y8e=Ee("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),S8e=[y8e],E8e={key:5},C8e=Ee("path",{d:"M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z"},null,-1),T8e=[C8e],w8e={name:"PhFileDoc"},x8e=Ce({...w8e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",o8e,l8e)):l.value==="duotone"?(oe(),pe("g",c8e,p8e)):l.value==="fill"?(oe(),pe("g",f8e,g8e)):l.value==="light"?(oe(),pe("g",h8e,v8e)):l.value==="regular"?(oe(),pe("g",b8e,S8e)):l.value==="thin"?(oe(),pe("g",E8e,T8e)):ft("",!0)],16,a8e))}}),O8e=["width","height","fill","transform"],R8e={key:0},I8e=Ee("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"},null,-1),A8e=[I8e],N8e={key:1},D8e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),P8e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),M8e=[D8e,P8e],k8e={key:2},$8e=Ee("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"},null,-1),L8e=[$8e],F8e={key:3},B8e=Ee("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),U8e=[B8e],H8e={key:4},z8e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),V8e=[z8e],G8e={key:5},Y8e=Ee("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),j8e=[Y8e],W8e={name:"PhFilePdf"},q8e=Ce({...W8e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",R8e,A8e)):l.value==="duotone"?(oe(),pe("g",N8e,M8e)):l.value==="fill"?(oe(),pe("g",k8e,L8e)):l.value==="light"?(oe(),pe("g",F8e,U8e)):l.value==="regular"?(oe(),pe("g",H8e,V8e)):l.value==="thin"?(oe(),pe("g",G8e,j8e)):ft("",!0)],16,O8e))}}),K8e=["width","height","fill","transform"],Z8e={key:0},Q8e=Ee("path",{d:"M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z"},null,-1),X8e=[Q8e],J8e={key:1},e3e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),t3e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),n3e=[e3e,t3e],r3e={key:2},i3e=Ee("path",{d:"M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"},null,-1),a3e=[i3e],o3e={key:3},s3e=Ee("path",{d:"M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),l3e=[s3e],c3e={key:4},u3e=Ee("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),d3e=[u3e],p3e={key:5},f3e=Ee("path",{d:"M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),m3e=[f3e],g3e={name:"PhFilePpt"},h3e=Ce({...g3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",Z8e,X8e)):l.value==="duotone"?(oe(),pe("g",J8e,n3e)):l.value==="fill"?(oe(),pe("g",r3e,a3e)):l.value==="light"?(oe(),pe("g",o3e,l3e)):l.value==="regular"?(oe(),pe("g",c3e,d3e)):l.value==="thin"?(oe(),pe("g",p3e,m3e)):ft("",!0)],16,K8e))}}),_3e=["width","height","fill","transform"],v3e={key:0},b3e=Ee("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"},null,-1),y3e=[b3e],S3e={key:1},E3e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),C3e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),T3e=[E3e,C3e],w3e={key:2},x3e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"},null,-1),O3e=[x3e],R3e={key:3},I3e=Ee("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"},null,-1),A3e=[I3e],N3e={key:4},D3e=Ee("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),P3e=[D3e],M3e={key:5},k3e=Ee("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"},null,-1),$3e=[k3e],L3e={name:"PhFileText"},F3e=Ce({...L3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",v3e,y3e)):l.value==="duotone"?(oe(),pe("g",S3e,T3e)):l.value==="fill"?(oe(),pe("g",w3e,O3e)):l.value==="light"?(oe(),pe("g",R3e,A3e)):l.value==="regular"?(oe(),pe("g",N3e,P3e)):l.value==="thin"?(oe(),pe("g",M3e,$3e)):ft("",!0)],16,_3e))}}),B3e=["width","height","fill","transform"],U3e={key:0},H3e=Ee("path",{d:"M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"},null,-1),z3e=[H3e],V3e={key:1},G3e=Ee("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),Y3e=Ee("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),j3e=[G3e,Y3e],W3e={key:2},q3e=Ee("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z"},null,-1),K3e=[q3e],Z3e={key:3},Q3e=Ee("path",{d:"M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z"},null,-1),X3e=[Q3e],J3e={key:4},eFe=Ee("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),tFe=[eFe],nFe={key:5},rFe=Ee("path",{d:"M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z"},null,-1),iFe=[rFe],aFe={name:"PhFileXls"},oFe=Ce({...aFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",U3e,z3e)):l.value==="duotone"?(oe(),pe("g",V3e,j3e)):l.value==="fill"?(oe(),pe("g",W3e,K3e)):l.value==="light"?(oe(),pe("g",Z3e,X3e)):l.value==="regular"?(oe(),pe("g",J3e,tFe)):l.value==="thin"?(oe(),pe("g",nFe,iFe)):ft("",!0)],16,B3e))}}),sFe=["width","height","fill","transform"],lFe={key:0},cFe=Ee("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"},null,-1),uFe=[cFe],dFe={key:1},pFe=Ee("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),fFe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),mFe=[pFe,fFe],gFe={key:2},hFe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"},null,-1),_Fe=[hFe],vFe={key:3},bFe=Ee("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"},null,-1),yFe=[bFe],SFe={key:4},EFe=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),CFe=[EFe],TFe={key:5},wFe=Ee("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"},null,-1),xFe=[wFe],OFe={name:"PhImage"},RFe=Ce({...OFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",lFe,uFe)):l.value==="duotone"?(oe(),pe("g",dFe,mFe)):l.value==="fill"?(oe(),pe("g",gFe,_Fe)):l.value==="light"?(oe(),pe("g",vFe,yFe)):l.value==="regular"?(oe(),pe("g",SFe,CFe)):l.value==="thin"?(oe(),pe("g",TFe,xFe)):ft("",!0)],16,sFe))}}),IFe=["width","height","fill","transform"],AFe={key:0},NFe=Ee("path",{d:"M160,88a16,16,0,1,1,16,16A16,16,0,0,1,160,88Zm76-32V160a20,20,0,0,1-20,20H204v20a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V88A20,20,0,0,1,40,68H60V56A20,20,0,0,1,80,36H216A20,20,0,0,1,236,56ZM180,180H80a20,20,0,0,1-20-20V92H44V196H180Zm-21.66-24L124,121.66,89.66,156ZM212,60H84v67.72l25.86-25.86a20,20,0,0,1,28.28,0L192.28,156H212Z"},null,-1),DFe=[NFe],PFe={key:1},MFe=Ee("path",{d:"M224,56v82.06l-23.72-23.72a8,8,0,0,0-11.31,0L163.31,140,113.66,90.34a8,8,0,0,0-11.32,0L64,128.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),kFe=Ee("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),$Fe=[MFe,kFe],LFe={key:2},FFe=Ee("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM172,72a12,12,0,1,1-12,12A12,12,0,0,1,172,72Zm12,128H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V120.69l30.34-30.35a8,8,0,0,1,11.32,0L163.31,140,189,114.34a8,8,0,0,1,11.31,0L216,130.07V168Z"},null,-1),BFe=[FFe],UFe={key:3},HFe=Ee("path",{d:"M216,42H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V182h18a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM70,56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v67.57L204.53,110.1a14,14,0,0,0-19.8,0l-21.42,21.41L117.9,86.1a14,14,0,0,0-19.8,0L70,114.2ZM186,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H58v82a14,14,0,0,0,14,14H186Zm30-30H72a2,2,0,0,1-2-2V131.17l36.58-36.58a2,2,0,0,1,2.83,0l49.66,49.66a6,6,0,0,0,8.49,0l25.65-25.66a2,2,0,0,1,2.83,0l22,22V168A2,2,0,0,1,216,170ZM162,84a10,10,0,1,1,10,10A10,10,0,0,1,162,84Z"},null,-1),zFe=[HFe],VFe={key:4},GFe=Ee("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),YFe=[GFe],jFe={key:5},WFe=Ee("path",{d:"M216,44H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180h20a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM68,56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v72.4l-16.89-16.89a12,12,0,0,0-17,0l-22.83,22.83L116.49,87.51a12,12,0,0,0-17,0L68,119ZM188,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H60v84a12,12,0,0,0,12,12H188Zm28-28H72a4,4,0,0,1-4-4V130.34l37.17-37.17a4,4,0,0,1,5.66,0l49.66,49.66a4,4,0,0,0,5.65,0l25.66-25.66a4,4,0,0,1,5.66,0L220,139.71V168A4,4,0,0,1,216,172ZM164,84a8,8,0,1,1,8,8A8,8,0,0,1,164,84Z"},null,-1),qFe=[WFe],KFe={name:"PhImages"},ZFe=Ce({...KFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",AFe,DFe)):l.value==="duotone"?(oe(),pe("g",PFe,$Fe)):l.value==="fill"?(oe(),pe("g",LFe,BFe)):l.value==="light"?(oe(),pe("g",UFe,zFe)):l.value==="regular"?(oe(),pe("g",VFe,YFe)):l.value==="thin"?(oe(),pe("g",jFe,qFe)):ft("",!0)],16,IFe))}}),QFe=["width","height","fill","transform"],XFe={key:0},JFe=Ee("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"},null,-1),eBe=[JFe],tBe={key:1},nBe=Ee("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),rBe=Ee("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"},null,-1),iBe=[nBe,rBe],aBe={key:2},oBe=Ee("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"},null,-1),sBe=[oBe],lBe={key:3},cBe=Ee("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),uBe=[cBe],dBe={key:4},pBe=Ee("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"},null,-1),fBe=[pBe],mBe={key:5},gBe=Ee("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),hBe=[gBe],_Be={name:"PhInfo"},vBe=Ce({..._Be,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",XFe,eBe)):l.value==="duotone"?(oe(),pe("g",tBe,iBe)):l.value==="fill"?(oe(),pe("g",aBe,sBe)):l.value==="light"?(oe(),pe("g",lBe,uBe)):l.value==="regular"?(oe(),pe("g",dBe,fBe)):l.value==="thin"?(oe(),pe("g",mBe,hBe)):ft("",!0)],16,QFe))}}),bBe=["width","height","fill","transform"],yBe={key:0},SBe=Ee("path",{d:"M168,120a12,12,0,0,1-5.12,9.83l-40,28A12,12,0,0,1,104,148V92a12,12,0,0,1,18.88-9.83l40,28A12,12,0,0,1,168,120Zm68-56V176a28,28,0,0,1-28,28H48a28,28,0,0,1-28-28V64A28,28,0,0,1,48,36H208A28,28,0,0,1,236,64Zm-24,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V176a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4ZM160,216H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Z"},null,-1),EBe=[SBe],CBe={key:1},TBe=Ee("path",{d:"M208,48H48A16,16,0,0,0,32,64V176a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48ZM112,152V88l48,32Z",opacity:"0.2"},null,-1),wBe=Ee("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),xBe=[TBe,wBe],OBe={key:2},RBe=Ee("path",{d:"M168,224a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224ZM232,64V176a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V64A24,24,0,0,1,48,40H208A24,24,0,0,1,232,64Zm-68,56a8,8,0,0,0-3.41-6.55l-40-28A8,8,0,0,0,108,92v56a8,8,0,0,0,12.59,6.55l40-28A8,8,0,0,0,164,120Z"},null,-1),IBe=[RBe],ABe={key:3},NBe=Ee("path",{d:"M163.33,115l-48-32A6,6,0,0,0,106,88v64a6,6,0,0,0,9.33,5l48-32a6,6,0,0,0,0-10ZM118,140.79V99.21L149.18,120ZM208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V64A10,10,0,0,1,48,54H208a10,10,0,0,1,10,10Zm-52,48a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,224Z"},null,-1),DBe=[NBe],PBe={key:4},MBe=Ee("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),kBe=[MBe],$Be={key:5},LBe=Ee("path",{d:"M162.22,116.67l-48-32A4,4,0,0,0,108,88v64a4,4,0,0,0,2.11,3.53,4,4,0,0,0,4.11-.2l48-32a4,4,0,0,0,0-6.66ZM116,144.53V95.47L152.79,120ZM208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V64A12,12,0,0,1,48,52H208a12,12,0,0,1,12,12Zm-56,48a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,224Z"},null,-1),FBe=[LBe],BBe={name:"PhMonitorPlay"},UBe=Ce({...BBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",yBe,EBe)):l.value==="duotone"?(oe(),pe("g",CBe,xBe)):l.value==="fill"?(oe(),pe("g",OBe,IBe)):l.value==="light"?(oe(),pe("g",ABe,DBe)):l.value==="regular"?(oe(),pe("g",PBe,kBe)):l.value==="thin"?(oe(),pe("g",$Be,FBe)):ft("",!0)],16,bBe))}}),HBe=["width","height","fill","transform"],zBe={key:0},VBe=Ee("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"},null,-1),GBe=[VBe],YBe={key:1},jBe=Ee("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"},null,-1),WBe=Ee("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),qBe=[jBe,WBe],KBe={key:2},ZBe=Ee("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"},null,-1),QBe=[ZBe],XBe={key:3},JBe=Ee("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"},null,-1),e9e=[JBe],t9e={key:4},n9e=Ee("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),r9e=[n9e],i9e={key:5},a9e=Ee("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"},null,-1),o9e=[a9e],s9e={name:"PhPause"},l9e=Ce({...s9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",zBe,GBe)):l.value==="duotone"?(oe(),pe("g",YBe,qBe)):l.value==="fill"?(oe(),pe("g",KBe,QBe)):l.value==="light"?(oe(),pe("g",XBe,e9e)):l.value==="regular"?(oe(),pe("g",t9e,r9e)):l.value==="thin"?(oe(),pe("g",i9e,o9e)):ft("",!0)],16,HBe))}}),c9e=["width","height","fill","transform"],u9e={key:0},d9e=Ee("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"},null,-1),p9e=[d9e],f9e={key:1},m9e=Ee("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"},null,-1),g9e=Ee("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),h9e=[m9e,g9e],_9e={key:2},v9e=Ee("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"},null,-1),b9e=[v9e],y9e={key:3},S9e=Ee("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"},null,-1),E9e=[S9e],C9e={key:4},T9e=Ee("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),w9e=[T9e],x9e={key:5},O9e=Ee("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"},null,-1),R9e=[O9e],I9e={name:"PhPlay"},A9e=Ce({...I9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",u9e,p9e)):l.value==="duotone"?(oe(),pe("g",f9e,h9e)):l.value==="fill"?(oe(),pe("g",_9e,b9e)):l.value==="light"?(oe(),pe("g",y9e,E9e)):l.value==="regular"?(oe(),pe("g",C9e,w9e)):l.value==="thin"?(oe(),pe("g",x9e,R9e)):ft("",!0)],16,c9e))}}),N9e=["width","height","fill","transform"],D9e={key:0},P9e=Ee("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"},null,-1),M9e=[P9e],k9e={key:1},$9e=Ee("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"},null,-1),L9e=Ee("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),F9e=[$9e,L9e],B9e={key:2},U9e=Ee("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"},null,-1),H9e=[U9e],z9e={key:3},V9e=Ee("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"},null,-1),G9e=[V9e],Y9e={key:4},j9e=Ee("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),W9e=[j9e],q9e={key:5},K9e=Ee("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"},null,-1),Z9e=[K9e],Q9e={name:"PhTrash"},X9e=Ce({...Q9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",D9e,M9e)):l.value==="duotone"?(oe(),pe("g",k9e,F9e)):l.value==="fill"?(oe(),pe("g",B9e,H9e)):l.value==="light"?(oe(),pe("g",z9e,G9e)):l.value==="regular"?(oe(),pe("g",Y9e,W9e)):l.value==="thin"?(oe(),pe("g",q9e,Z9e)):ft("",!0)],16,N9e))}}),J9e=["width","height","fill","transform"],e5e={key:0},t5e=Ee("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"},null,-1),n5e=[t5e],r5e={key:1},i5e=Ee("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),a5e=Ee("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),o5e=[i5e,a5e],s5e={key:2},l5e=Ee("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"},null,-1),c5e=[l5e],u5e={key:3},d5e=Ee("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"},null,-1),p5e=[d5e],f5e={key:4},m5e=Ee("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),g5e=[m5e],h5e={key:5},_5e=Ee("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"},null,-1),v5e=[_5e],b5e={name:"PhUploadSimple"},y5e=Ce({...b5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",e5e,n5e)):l.value==="duotone"?(oe(),pe("g",r5e,o5e)):l.value==="fill"?(oe(),pe("g",s5e,c5e)):l.value==="light"?(oe(),pe("g",u5e,p5e)):l.value==="regular"?(oe(),pe("g",f5e,g5e)):l.value==="thin"?(oe(),pe("g",h5e,v5e)):ft("",!0)],16,J9e))}}),S5e=["width","height","fill","transform"],E5e={key:0},C5e=Ee("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"},null,-1),T5e=[C5e],w5e={key:1},x5e=Ee("path",{d:"M208,96v64H48V96Z",opacity:"0.2"},null,-1),O5e=Ee("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),R5e=[x5e,O5e],I5e={key:2},A5e=Ee("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"},null,-1),N5e=[A5e],D5e={key:3},P5e=Ee("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"},null,-1),M5e=[P5e],k5e={key:4},$5e=Ee("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),L5e=[$5e],F5e={key:5},B5e=Ee("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"},null,-1),U5e=[B5e],H5e={name:"PhWaveform"},z5e=Ce({...H5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",E5e,T5e)):l.value==="duotone"?(oe(),pe("g",w5e,R5e)):l.value==="fill"?(oe(),pe("g",I5e,N5e)):l.value==="light"?(oe(),pe("g",D5e,M5e)):l.value==="regular"?(oe(),pe("g",k5e,L5e)):l.value==="thin"?(oe(),pe("g",F5e,U5e)):ft("",!0)],16,S5e))}}),V5e=["width","height","fill","transform"],G5e={key:0},Y5e=Ee("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"},null,-1),j5e=[Y5e],W5e={key:1},q5e=Ee("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),K5e=Ee("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),Z5e=[q5e,K5e],Q5e={key:2},X5e=Ee("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),J5e=[X5e],eUe={key:3},tUe=Ee("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"},null,-1),nUe=[tUe],rUe={key:4},iUe=Ee("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),aUe=[iUe],oUe={key:5},sUe=Ee("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"},null,-1),lUe=[sUe],cUe={name:"PhX"},uUe=Ce({...cUe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),a=He("mirrored",!1),l=$(()=>{var c;return(c=t.weight)!=null?c:n}),s=$(()=>{var c;return(c=t.size)!=null?c:r}),u=$(()=>{var c;return(c=t.color)!=null?c:i}),o=$(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(c,d)=>(oe(),pe("svg",An({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:o.value},c.$attrs),[Et(c.$slots,"default"),l.value==="bold"?(oe(),pe("g",G5e,j5e)):l.value==="duotone"?(oe(),pe("g",W5e,Z5e)):l.value==="fill"?(oe(),pe("g",Q5e,J5e)):l.value==="light"?(oe(),pe("g",eUe,nUe)):l.value==="regular"?(oe(),pe("g",rUe,aUe)):l.value==="thin"?(oe(),pe("g",oUe,lUe)):ft("",!0)],16,V5e))}}),dUe={key:0,class:"label"},pUe={key:0},fUe=Ce({__name:"Label",props:{label:{},required:{type:Boolean},hint:{}},setup(e){return(t,n)=>t.label?(oe(),pe("h3",dUe,[Zn(Qt(t.label)+" ",1),t.required?(oe(),pe("span",pUe," * ")):ft("",!0),t.hint?(oe(),Rn(je(zo),{key:1,class:"hint",title:t.hint},{default:pn(()=>[x(je(vBe),{size:"16px",height:"100%"})]),_:1},8,["title"])):ft("",!0)])):ft("",!0)}});const Hn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Ln=Hn(fUe,[["__scopeId","data-v-16be3530"]]),mUe={class:"appointment-input"},gUe={style:{position:"relative","min-width":"200px","min-height":"200px",height:"100%","overflow-y":"auto"}},hUe={style:{display:"flex","flex-direction":"column",position:"absolute",top:"0",bottom:"0",left:"0",right:"0",gap:"4px"}},_Ue=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e;function r(m){return tr(m.begin)}function i(){return n.userProps.value?r(n.userProps.slots[n.userProps.value]):r(n.userProps.slots.sort((m,h)=>new Date(m.begin).getTime()-new Date(h.begin).getTime())[0])}const a=i(),l=Oe(a),s=$(()=>{const m=l.value;return n.userProps.slots.reduce((h,v,b)=>new Date(v.begin).getDate()===m.date()&&new Date(v.begin).getMonth()===m.month()&&new Date(v.begin).getFullYear()===m.year()?[...h,{slot:v,idx:b}]:h,[])}),u=$(()=>{const{min:m,max:h}=n.userProps.slots.reduce((v,b)=>{const y=tr(b.start).startOf("day"),S=tr(b.end).startOf("day");return(!v.min||y.isBefore(v.min))&&(v.min=y),(!v.max||S.isAfter(v.max))&&(v.max=S),v},{min:null,max:null});return[m,h.add(1,"day")]});function o(m){const h=m.month(),v=m.year(),b=n.userProps.slots.find(y=>{const S=tr(y.begin);return S.month()===h&&S.year()===v});return tr((b==null?void 0:b.begin)||m)}const c=Oe(!1);function d(m){if(c.value){c.value=!1;return}l.value=m}function p(m){c.value=!0;const h=tr(m);l.value=o(h)}function f(m){t("update:value",m)}function g(m){return!n.userProps.slots.some(h=>m.isSame(tr(h.begin),"day"))}return(m,h)=>(oe(),pe(tt,null,[x(Ln,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ee("div",mUe,[x(je(ITe),{value:l.value,"disabled-date":g,fullscreen:!1,"valid-range":u.value,"default-value":je(a),onSelect:d,onPanelChange:p},null,8,["value","valid-range","default-value"]),s.value.length>0?(oe(),Rn(je(e$e),{key:0,vertical:"",gap:"small"},{default:pn(()=>[x(je(sI),{level:4},{default:pn(()=>[Zn("Available slots")]),_:1}),Ee("div",gUe,[Ee("div",hUe,[(oe(!0),pe(tt,null,Di(s.value,({slot:v,idx:b})=>(oe(),Rn(je(fr),{key:b,type:b===m.userProps.value?"primary":"default",onClick:y=>f(b)},{default:pn(()=>[Zn(Qt(je(tr)(v.begin).format("hh:mm A"))+" - "+Qt(je(tr)(v.end).format("hh:mm A")),1)]),_:2},1032,["type","onClick"]))),128))])])]),_:1})):(oe(),Rn(je(ec),{key:1,description:"No slots available"}))])],64))}});const vUe=Hn(_Ue,[["__scopeId","data-v-6d1cdd29"]]),bUe={class:"container"},yUe=Ce({__name:"FileIcon",props:{ctrl:{},file:{},size:{}},setup(e){return(t,n)=>(oe(),pe("div",bUe,[(oe(),Rn(hu(t.ctrl.iconPreview(t.file)),{size:t.size},null,8,["size"]))]))}});const Oz=Hn(yUe,[["__scopeId","data-v-27e5e807"]]),SUe="modulepreload",EUe=function(e){return"/"+e},ML={},Py=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=EUe(a),a in ML)return;ML[a]=!0;const l=a.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===a&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const o=document.createElement("link");if(o.rel=l?"stylesheet":SUe,l||(o.as="script",o.crossOrigin=""),o.href=a,document.head.appendChild(o),l)return new Promise((c,d)=>{o.addEventListener("load",c),o.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())},CUe={key:0},TUe=Ee("p",null,"Unsupported file type",-1),wUe=[TUe],xUe=["src"],OUe={key:2,style:{width:"100%",height:"auto"},controls:"",preload:"metadata"},RUe=["src","type"],IUe={key:3,style:{width:"100%"},controls:"",preload:"metadata"},AUe=["src","type"],NUe=["src","type"],DUe={key:5},Rz=Ce({__name:"Preview",props:{ctrl:{}},setup(e){const t=e,n=Oe({hasPreview:!1,filename:"",src:"",previewType:"",file:t.ctrl.state.value.file}),r=Oe();ze(t.ctrl.state,async()=>{const a=t.ctrl.state.value.file;if(n.value.file=a,n.value.hasPreview=t.ctrl.hasPreview(a),n.value.filename=t.ctrl.fileName(a),n.value.src=t.ctrl.fileSrc(a),n.value.previewType=t.ctrl.typeof(a.type),n.value.previewType==="Code"||n.value.previewType==="Text"){const l=await t.ctrl.fetchTextContent(a);i(r.value,l)}});const i=async(a,l,s)=>{(await Py(()=>import("./editor.main.aa5ba997.js"),["assets/editor.main.aa5ba997.js","assets/toggleHighContrast.db48a34e.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(a,{language:s,value:l,minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!1,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}})};return(a,l)=>a.ctrl.state.value.open?(oe(),Rn(je(Na),{key:0,open:!0,title:n.value.filename,onCancel:a.ctrl.close,style:{"max-width":"80dvw","min-width":"40dvw",height:"auto"}},{footer:pn(()=>[]),default:pn(()=>[n.value.hasPreview?n.value.previewType==="Image"?(oe(),pe("img",{key:1,style:{width:"100%"},src:n.value.src},null,8,xUe)):n.value.previewType==="Video"?(oe(),pe("video",OUe,[Ee("source",{src:n.value.src,type:n.value.file.type},null,8,RUe)])):n.value.previewType==="Audio"?(oe(),pe("audio",IUe,[Ee("source",{src:n.value.src,type:n.value.file.type},null,8,AUe)])):n.value.previewType==="PDF"?(oe(),pe("embed",{key:4,style:{width:"100%","min-height":"60dvh"},src:n.value.src,type:n.value.file.type},null,8,NUe)):n.value.previewType==="Text"||n.value.previewType==="Code"?(oe(),pe("div",DUe,[Ee("div",{ref_key:"editor",ref:r,style:{width:"100%","min-height":"40dvh"}},null,512)])):ft("",!0):(oe(),pe("div",CUe,wUe))]),_:1},8,["title","onCancel"])):ft("",!0)}}),PUe=["Text","Image","Code","PDF","Video","Audio"];function MUe(e){return PUe.includes(e)}const kUe={Text:F3e,Image:RFe,Code:T4e,PDF:q8e,Video:UBe,Audio:z5e,Archive:$6e,Document:x8e,Presentation:h3e,Spreadsheet:oFe,Unknown:i8e};class Iz{constructor(){yn(this,"state");yn(this,"open",t=>{this.state.value={open:!0,file:t}});yn(this,"close",()=>{this.state.value.open=!1});yn(this,"hasPreview",t=>{const n=this.typeof(t.type);if(!MUe(n))return!1;switch(n){case"Text":case"Image":case"Code":return!0;case"PDF":return window.navigator.pdfViewerEnabled;case"Video":return document.createElement("video").canPlayType(t.type||"")!=="";case"Audio":return document.createElement("audio").canPlayType(t.type||"")!==""}});yn(this,"fileName",t=>(t==null?void 0:t.name)||"");yn(this,"fileSrc",t=>"/_files/"+(t==null?void 0:t.response[0]));yn(this,"fileThumbnail",t=>this.hasPreview(t)?this.fileSrc(t):"");yn(this,"typeof",t=>{if(!t)return"Unknown";if(t==="application/pdf")return"PDF";switch(t.split("/")[0]){case"audio":return"Audio";case"video":return"Video";case"image":return"Image"}if(t.includes("spreadsheet")||t.includes("excel")||t.includes(".sheet"))return"Spreadsheet";if(t.includes(".document"))return"Document";if(t.includes(".presentation"))return"Presentation";switch(t){case"text/plain":case"text/markdown":case"text/csv":return"Text";case"application/zip":case"application/vnd.rar":case"application/x-7z-compressed":case"application/x-tar":case"application/gzip":return"Archive";case"text/html":case"text/css":case"text/x-python-script":case"application/javascript":case"application/typescript":case"application/json":case"application/xml":case"application/x-yaml":case"application/toml":return"Code"}return"Unknown"});yn(this,"handlePreview",t=>{this.hasPreview(t)&&this.open(t)});yn(this,"fetchTextContent",async t=>{const n=this.fileSrc(t);return await(await window.fetch(n)).text()});yn(this,"iconPreview",t=>{const n=this.typeof(t.type);return kUe[n]});this.state=Oe({open:!1,file:{uid:"",name:"",status:"done",response:[],url:"",type:"",size:0}})}}const $Ue=[{key:"en",value:"English"},{key:"pt",value:"Portuguese"},{key:"es",value:"Spanish"},{key:"de",value:"German"},{key:"fr",value:"French"},{key:"hi",value:"Hindi"}],d0={i18n_camera_input_take_photo:()=>({en:"Take photo",pt:"Tirar foto",es:"Tomar foto",de:"Foto aufnehmen",fr:"Prendre une photo",hi:"\u092B\u094B\u091F\u094B \u0932\u0947\u0902"}),i18n_camera_input_try_again:()=>({en:"Try again",pt:"Tentar novamente",es:"Intentar de nuevo",de:"Erneut versuchen",fr:"R\xE9essayer",hi:"\u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902"}),i18n_upload_area_click_or_drop_files:()=>({en:"Click or drag file here to upload",pt:"Clique ou arraste o arquivo aqui para fazer upload",es:"Haz clic o arrastra el archivo aqu\xED para subirlo",de:"Klicken oder ziehen Sie die Datei hierher, um sie hochzuladen",fr:"Cliquez ou faites glisser le fichier ici pour le t\xE9l\xE9charger",hi:"\u0905\u092A\u0932\u094B\u0921 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092F\u0939\u093E\u0901 \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902 \u092F\u093E \u092B\u093C\u093E\u0907\u0932 \u0916\u0940\u0902\u091A\u0947\u0902"}),i18n_upload_area_drop_here:()=>({en:"Drop files",pt:"Solte os arquivos",es:"Suelta los archivos",de:"Dateien ablegen",fr:"D\xE9poser les fichiers",hi:"\u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u0921\u094D\u0930\u0949\u092A \u0915\u0930\u0947\u0902"}),i18n_upload_area_rejected_file_extension:e=>({en:`Invalid file extension. Expected formats: ${e.formats}`,pt:`Extens\xE3o de arquivo inv\xE1lida. Formatos aceitos: ${e.formats}`,es:`Extensi\xF3n de archivo inv\xE1lida. Formatos aceptados: ${e.formats}`,de:`Ung\xFCltige Dateierweiterung. Akzeptierte Formate: ${e.formats}`,fr:`Extension de fichier invalide. Formats accept\xE9s: ${e.formats}`,hi:`\u0905\u092E\u093E\u0928\u094D\u092F \u092B\u093C\u093E\u0907\u0932 \u090F\u0915\u094D\u0938\u091F\u0947\u0902\u0936\u0928\u0964 \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092B\u093C\u0949\u0930\u094D\u092E\u0947\u091F\u094D\u0938: ${e.formats}`}),i18n_upload_max_size_excided:e=>({en:`File ${e.fileName} exceeds size limit of ${e.maxSize}MB`,pt:`Arquivo ${e.fileName} excede o limite de tamanho de ${e.maxSize}MB`,es:`El archivo ${e.fileName} excede el l\xEDmite de tama\xF1o de ${e.maxSize}MB`,de:`Die Datei ${e.fileName} \xFCberschreitet das Gr\xF6\xDFenlimit von ${e.maxSize}MB`,fr:`Le fichier ${e.fileName} d\xE9passe la limite de taille de ${e.maxSize}MB`,hi:`\u092B\u093C\u093E\u0907\u0932 ${e.fileName} ${e.maxSize}MB \u0915\u0940 \u0938\u0940\u092E\u093E \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\u0948`}),i18n_upload_failed:e=>({en:`File upload failed for ${e.fileName}`,pt:`Falha ao enviar arquivo ${e.fileName}`,es:`Error al subir archivo ${e.fileName}`,de:`Datei-Upload fehlgeschlagen f\xFCr ${e.fileName}`,fr:`\xC9chec du t\xE9l\xE9chargement du fichier ${e.fileName}`,hi:`${e.fileName} \u0915\u0947 \u0932\u093F\u090F \u092B\u093C\u093E\u0907\u0932 \u0905\u092A\u0932\u094B\u0921 \u0935\u093F\u092B\u0932 \u0930\u0939\u093E`}),i18n_login_with_this_project:()=>({en:"Use this project",pt:"Usar este projeto",es:"Usar este proyecto",de:"Dieses Projekt verwenden",fr:"Utiliser ce projet",hi:"\u0907\u0938 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_watermark_text:()=>({en:"Coded in Python with",pt:"Escrito em Python com",es:"Escrito en Python con",de:"In Python mit",fr:"Cod\xE9 en Python avec",hi:"\u092A\u093E\u092F\u0925\u0928 \u092E\u0947\u0902 \u0932\u093F\u0916\u093E \u0917\u092F\u093E"}),i18n_error_invalid_email:()=>({en:"This email is invalid.",pt:"Este email \xE9 inv\xE1lido.",es:"Este email es inv\xE1lido.",de:"Diese E-Mail ist ung\xFCltig.",fr:"Cet email est invalide.",hi:"\u092F\u0939 \u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_required_field:()=>({en:"This field is required.",pt:"Este campo \xE9 obrigat\xF3rio.",es:"Este campo es obligatorio.",de:"Dieses Feld ist erforderlich.",fr:"Ce champ est obligatoire.",hi:"\u092F\u0939 \u092B\u093C\u0940\u0932\u094D\u0921 \u0906\u0935\u0936\u094D\u092F\u0915 \u0939\u0948\u0964"}),i18n_error_invalid_cnpj:()=>({en:"This CNPJ is invalid.",pt:"Este CNPJ \xE9 inv\xE1lido.",es:"Este CNPJ es inv\xE1lido.",de:"Diese CNPJ ist ung\xFCltig.",fr:"Ce CNPJ est invalide.",hi:"\u092F\u0939 CNPJ \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_cpf:()=>({en:"This CPF is invalid.",pt:"Este CPF \xE9 inv\xE1lido.",es:"Este CPF es inv\xE1lido.",de:"Diese CPF ist ung\xFCltig.",fr:"Ce CPF est invalide.",hi:"\u092F\u0939 CPF \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_phone_number:()=>({en:"This phone number is invalid.",pt:"Este n\xFAmero de telefone \xE9 inv\xE1lido.",es:"Este n\xFAmero de tel\xE9fono es inv\xE1lido.",de:"Diese Telefonnummer ist ung\xFCltig.",fr:"Ce num\xE9ro de t\xE9l\xE9phone est invalide.",hi:"\u092F\u0939 \u092B\u093C\u094B\u0928 \u0928\u0902\u092C\u0930 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_country_code:()=>({en:"This country code is invalid.",pt:"Este c\xF3digo de pa\xEDs \xE9 inv\xE1lido.",es:"Este c\xF3digo de pa\xEDs es inv\xE1lido.",de:"Dieser L\xE4ndercode ist ung\xFCltig.",fr:"Ce code de pays est invalide.",hi:"\u092F\u0939 \u0926\u0947\u0936 \u0915\u094B\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_min_list:e=>({en:`The minimum number of items is ${e.min}.`,pt:`O n\xFAmero m\xEDnimo de itens \xE9 ${e.min}.`,es:`El n\xFAmero m\xEDnimo de \xEDtems es ${e.min}.`,de:`Die Mindestanzahl an Elementen betr\xE4gt ${e.min}.`,fr:`Le nombre minimum d'\xE9l\xE9ments est ${e.min}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.min} \u0939\u0948\u0964`}),i18n_error_max_list:e=>({en:`The maximum number of items is ${e.max}.`,pt:`O n\xFAmero m\xE1ximo de itens \xE9 ${e.max}.`,es:`El n\xFAmero m\xE1ximo de \xEDtems es ${e.max}.`,de:`Die maximale Anzahl an Elementen betr\xE4gt ${e.max}.`,fr:`Le nombre maximum d'\xE9l\xE9ments est ${e.max}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0905\u0927\u093F\u0915\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.max} \u0939\u0948\u0964`}),i18n_error_invalid_list_item:()=>({en:"Some fields are invalid.",pt:"Alguns campos s\xE3o inv\xE1lidos.",es:"Algunos campos son inv\xE1lidos.",de:"Einige Felder sind ung\xFCltig.",fr:"Certains champs sont invalides.",hi:"\u0915\u0941\u091B \u092B\u093C\u0940\u0932\u094D\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0902\u0964"}),i18n_error_min_number:e=>({en:`The minimum value is ${e.min}.`,pt:`O valor m\xEDnimo \xE9 ${e.min}.`,es:`El valor m\xEDnimo es ${e.min}.`,de:`Der Mindestwert betr\xE4gt ${e.min}.`,fr:`La valeur minimale est ${e.min}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u092E\u0942\u0932\u094D\u092F ${e.min} \u0939\u0948\u0964`}),i18n_error_max_number:e=>({en:`The maximum value is ${e.max}.`,pt:`O valor m\xE1ximo \xE9 ${e.max}.`,es:`El valor m\xE1ximo es ${e.max}.`,de:`Der maximale Wert betr\xE4gt ${e.max}.`,fr:`La valeur maximale est ${e.max}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u092E\u0942$\u0932\u094D\u092F ${e.max} \u0939\u0948\u0964`}),i18n_error_max_amount:e=>({en:`The maximum amount is ${e.max} ${e.currency}.`,pt:`O valor m\xE1ximo \xE9 ${e.max} ${e.currency}.`,es:`El valor m\xE1ximo es ${e.max} ${e.currency}.`,de:`Der maximale Betrag betr\xE4gt ${e.max} ${e.currency}.`,fr:`Le montant maximum est ${e.max} ${e.currency}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u0930\u093E\u0936\u093F ${e.max} ${e.currency} \u0939\u0948\u0964`}),i18n_error_min_amount:e=>({en:`The minimum amount is ${e.min} ${e.currency}.`,pt:`O valor m\xEDnimo \xE9 ${e.min} ${e.currency}.`,es:`El valor m\xEDnimo es ${e.min} ${e.currency}.`,de:`Der minimale Betrag betr\xE4gt ${e.min} ${e.currency}.`,fr:`Le montant minimum est ${e.min} ${e.currency}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0930\u093E\u0936\u093F ${e.min} ${e.currency} \u0939\u0948\u0964`}),i18n_generic_validation_error:()=>({en:"There are errors in the form.",pt:"Existem erros no formul\xE1rio.",es:"Hay errores en el formulario.",de:"Es gibt Fehler im Formular.",fr:"Il y a des erreurs dans le formulaire.",hi:"\u092B\u0949\u0930\u094D\u092E \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F\u092F\u093E\u0902 \u0939\u0948\u0902\u0964"}),i18n_back_action:()=>({en:"Back",pt:"Voltar",es:"Volver",de:"Zur\xFCck",fr:"Retour",hi:"\u0935\u093E\u092A\u0938"}),i18n_start_action:()=>({en:"Start",pt:"Iniciar",es:"Comenzar",de:"Starten",fr:"D\xE9marrer",hi:"\u0936\u0941\u0930\u0942"}),i18n_restart_action:()=>({en:"Restart",pt:"Reiniciar",es:"Reiniciar",de:"Neustarten",fr:"Red\xE9marrer",hi:"\u092A\u0941\u0928\u0903 \u0906\u0930\u0902\u092D \u0915\u0930\u0947\u0902"}),i18n_next_action:()=>({en:"Next",pt:"Pr\xF3ximo",es:"Siguiente",de:"N\xE4chster",fr:"Suivant",hi:"\u0905\u0917\u0932\u093E"}),i18n_end_message:()=>({en:"Thank you",pt:"Obrigado",es:"Gracias",de:"Danke",fr:"Merci",hi:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926"}),i18n_error_message:()=>({en:"Oops... something went wrong.",pt:"Oops... algo deu errado.",es:"Oops... algo sali\xF3 mal.",de:"Oops... etwas ist schief gelaufen.",fr:"Oops... quelque chose s'est mal pass\xE9.",hi:"\u0909\u0939... \u0915\u0941\u091B \u0917\u0932\u0924 \u0939\u094B \u0917\u092F\u093E\u0964"}),i18n_lock_failed_running:()=>({en:"This form is already being filled",pt:"Este formul\xE1rio j\xE1 est\xE1 sendo preenchido",es:"Este formulario ya est\xE1 siendo completado",de:"Dieses Formular wird bereits ausgef\xFCllt",fr:"Ce formulaire est d\xE9j\xE0 en cours de remplissage",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930 \u0930\u0939\u093E \u0939\u0948"}),i18n_lock_failed_not_running:()=>({en:"This form was already filled",pt:"Este formul\xE1rio j\xE1 foi preenchido",es:"Este formulario ya fue completado",de:"Dieses Formular wurde bereits ausgef\xFCllt",fr:"Ce formulaire a d\xE9j\xE0 \xE9t\xE9 rempli",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930\u093E \u0917\u092F\u093E \u0925\u093E"}),i18n_auth_validate_your_email:()=>({en:"Validate your email",pt:"Valide seu email",es:"Valida tu email",de:"\xDCberpr\xFCfen Sie Ihre E-Mail",fr:"Validez votre email",hi:"\u0905\u092A\u0928\u093E \u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_info_description:()=>({en:"Please enter your work email and continue to receive a verification code.",pt:"Por favor, insira seu email de trabalho e continue para receber um c\xF3digo de verifica\xE7\xE3o.",es:"Por favor, introduce tu email de trabajo y contin\xFAa para recibir un c\xF3digo de verificaci\xF3n.",de:"Bitte geben Sie Ihre Arbeits-E-Mail-Adresse ein und fahren Sie fort, um einen Best\xE4tigungscode zu erhalten.",fr:"Veuillez entrer votre email de travail et continuer pour recevoir un code de v\xE9rification.",hi:"\u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u093E \u0915\u093E\u092E \u0915\u093E \u0908\u092E\u0947\u0932 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902 \u0914\u0930 \u090F\u0915 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902\u0964"}),i18n_auth_validate_your_email_login:()=>({en:"Login to Abstra",pt:"Entrar na Abstra",es:"Iniciar sesi\xF3n en Abstra",de:"Anmelden bei Abstra",fr:"Se connecter \xE0 Abstra",hi:"Abstra \u092E\u0947\u0902 \u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902"}),i18n_create_or_choose_project:()=>({en:"Select or create a new project",pt:"Selecione ou crie um novo projeto",es:"Selecciona o crea un nuevo proyecto",de:"W\xE4hlen oder erstellen Sie ein neues Projekt",fr:"S\xE9lectionnez ou cr\xE9ez un nouveau projet",hi:"\u090F\u0915 \u0928\u092F\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902 \u092F\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_organization:()=>({en:"Organization",pt:"Organiza\xE7\xE3o",es:"Organizaci\xF3n",de:"Organisation",fr:"Organisation",hi:"\u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_choose_organization:()=>({en:"Choose an organization",pt:"Escolha uma organiza\xE7\xE3o",es:"Elige una organizaci\xF3n",de:"W\xE4hlen Sie eine Organisation",fr:"Choisissez une organisation",hi:"\u090F\u0915 \u0938\u0902\u0917\u0920\u0928 \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_new_organization:()=>({en:"New organization",pt:"Nova organiza\xE7\xE3o",es:"Nueva organizaci\xF3n",de:"Neue Organisation",fr:"Nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_existing_organizations:()=>({en:"Existing organizations",pt:"Organiza\xE7\xF5es existentes",es:"Organizaciones existentes",de:"Bestehende Organisationen",fr:"Organisations existantes",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_organization_name:()=>({en:"Organization name",pt:"Nome da organiza\xE7\xE3o",es:"Nombre de la organizaci\xF3n",de:"Organisationsname",fr:"Nom de l'organisation",hi:"\u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_organization_name:()=>({en:"Choose a name for your new organization",pt:"Escolha um nome para a sua nova organiza\xE7\xE3o",es:"Elige un nombre para tu nueva organizaci\xF3n",de:"W\xE4hlen Sie einen Namen f\xFCr Ihre neue Organisation",fr:"Choisissez un nom pour votre nouvelle organisation",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project:()=>({en:"Project",pt:"Projeto",es:"Proyecto",de:"Projekt",fr:"Projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_choose_project:()=>({en:"Choose a project",pt:"Escolha um projeto",es:"Elige un proyecto",de:"W\xE4hlen Sie ein Projekt",fr:"Choisissez un projet",hi:"\u090F\u0915 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project_name:()=>({en:"Project name",pt:"Nome do projeto",es:"Nombre del proyecto",de:"Projektname",fr:"Nom du projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_project_name:()=>({en:"Choose a name for your new project",pt:"Escolha um nome para o seu novo projeto",es:"Elige un nombre para tu nuevo proyecto",de:"W\xE4hlen Sie einen Namen f\xFCr Ihr neues Projekt",fr:"Choisissez un nom pour votre nouveau projet",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_create_new_organization:()=>({en:"Create new organization",pt:"Criar nova organiza\xE7\xE3o",es:"Crear nueva organizaci\xF3n",de:"Neue Organisation erstellen",fr:"Cr\xE9er une nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928 \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_new_project:()=>({en:"New project",pt:"Novo projeto",es:"Nuevo proyecto",de:"Neues Projekt",fr:"Nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_existing_projects:()=>({en:"Existing projects",pt:"Projetos existentes",es:"Proyectos existentes",de:"Bestehende Projekte",fr:"Projets existants",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_create_new_project:()=>({en:"Create new project",pt:"Criar novo projeto",es:"Crear nuevo proyecto",de:"Neues Projekt erstellen",fr:"Cr\xE9er un nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_api_key_info:()=>({en:"Use this API key to access your cloud resources.",pt:"Use esta chave de API para acessar seus recursos na nuvem.",es:"Utiliza esta clave de API para acceder a tus recursos en la nube.",de:"Verwenden Sie diesen API-Schl\xFCssel, um auf Ihre Cloud-Ressourcen zuzugreifen.",fr:"Utilisez cette cl\xE9 API pour acc\xE9der \xE0 vos ressources cloud.",hi:"\u0905\u092A\u0928\u0947 \u0915\u094D\u0932\u093E\u0909\u0921 \u0938\u0902\u0938\u093E\u0927\u0928\u094B\u0902 \u0924\u0915 \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0907\u0938 API \u0915\u0941\u0902\u091C\u0940 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902\u0964"}),i18n_get_api_key_api_key_warning:()=>({en:"This is a secret key. Do not share it with anyone and make sure to store it in a safe place.",pt:"Esta \xE9 uma chave secreta. N\xE3o a compartilhe com ningu\xE9m e certifique-se de armazen\xE1-la em um local seguro.",es:"Esta es una clave secreta. No la compartas con nadie y aseg\xFArate de guardarla en un lugar seguro.",de:"Dies ist ein geheimer Schl\xFCssel. Teilen Sie es nicht mit anderen und stellen Sie sicher, dass Sie es an einem sicheren Ort aufbewahren.",fr:"C'est une cl\xE9 secr\xE8te. Ne le partagez avec personne et assurez-vous de le stocker dans un endroit s\xFBr.",hi:"\u092F\u0939 \u090F\u0915 \u0917\u0941\u092A\u094D\u0924 \u0915\u0941\u0902\u091C\u0940 \u0939\u0948\u0964 \u0907\u0938\u0947 \u0915\u093F\u0938\u0940 \u0915\u0947 \u0938\u093E\u0925 \u0938\u093E\u091D\u093E \u0928 \u0915\u0930\u0947\u0902 \u0914\u0930 \u0938\u0941\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u0930\u0947\u0902 \u0915\u093F \u0906\u092A \u0907\u0938\u0947 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0938\u094D\u0925\u093E\u0928 \u092A\u0930 \u0938\u094D\u091F\u094B\u0930 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_invalid_email:()=>({en:"Invalid email, please try again.",pt:"Email inv\xE1lido, tente novamente.",es:"Email inv\xE1lido, int\xE9ntalo de nuevo.",de:"E-Mail ung\xFCltig, bitte versuchen Sie es erneut.",fr:"Email invalide, veuillez r\xE9essayer.",hi:"\u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_send_code:()=>({en:"Send verification code",pt:"Enviar c\xF3digo de verifica\xE7\xE3o",es:"Enviar c\xF3digo de verificaci\xF3n",de:"Best\xE4tigungscode senden",fr:"Envoyer le code de v\xE9rification",hi:"\u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_label:e=>({en:`Check ${e.email}'s inbox and enter your verification code below`,pt:`Verifique a caixa de entrada de ${e.email} e insira o c\xF3digo de verifica\xE7\xE3o abaixo`,es:`Revisa la bandeja de entrada de ${e.email} y escribe el c\xF3digo de verificaci\xF3n abajo`,de:`\xDCberpr\xFCfen Sie den Posteingang von ${e.email} und geben Sie den Best\xE4tigungscode unten ein`,fr:`V\xE9rifiez la bo\xEEte de r\xE9ception de ${e.email} et entrez le code de v\xE9rification ci-dessous`,hi:`\u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 ${e.email} \u0915\u0940 \u0907\u0928\u092C\u0949\u0915\u094D\u0938 \u0914\u0930 \u0928\u0940\u091A\u0947 \u0905\u092A\u0928\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902`}),i18n_auth_token_development_warning:()=>({en:"You\u2019re in development mode, any token will work",pt:"Voc\xEA est\xE1 em modo de desenvolvimento, qualquer token funcionar\xE1",es:"Est\xE1s en modo de desarrollo, cualquier token funcionar\xE1",de:"Sie sind im Entwicklungsmodus, jeder Token funktioniert",fr:"Vous \xEAtes en mode d\xE9veloppement, n\u2019importe quel token fonctionnera",hi:"\u0906\u092A \u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0939\u0948\u0902, \u0915\u094B\u0908 \u092D\u0940 \u091F\u094B\u0915\u0928 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E"}),i18n_auth_token_expired:()=>({en:"Token has expired, please retry sending it.",pt:"Token expirou, tente reenviar.",es:"Token ha expirado, int\xE9ntalo reenvi\xE1ndolo.",de:"Token ist abgelaufen, bitte versuchen Sie es erneut zu senden.",fr:"Token est expir\xE9, essayez de le renvoyer.",hi:"\u091F\u094B\u0915\u0928 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924, \u0907\u0938\u0947 \u092B\u093F\u0930 \u0938\u0947 \u092D\u0947\u091C\u0928\u0947 \u0915\u093E \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_token_invalid:()=>({en:"Invalid token, please try again or go back and change you email address.",pt:"Token inv\xE1lido, tente novamente ou volte e altere o seu endere\xE7o de email.",es:"Token inv\xE1lido, por favor intenta de nuevo o vuelve y cambia tu direcci\xF3n de correo electr\xF3nico.",de:"Token ung\xFCltig, bitte versuchen Sie es erneut oder gehen Sie zur\xFCck und \xE4ndern Sie Ihre E-Mail Adresse.",fr:"Token invalide, veuillez r\xE9essayer ou revenir en arri\xE8re et changez votre adresse e-mail.",hi:"\u091F\u094B\u0915\u0928 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0935\u093E\u092A\u0938 \u091C\u093E\u090F\u0902 \u0914\u0930 \u0906\u092A\u0915\u093E \u0908\u092E\u0947\u0932 \u092A\u0924\u093E \u092C\u0926\u0932\u0947\u0902\u0964"}),i18n_auth_token_verify_email:()=>({en:"Verify email",pt:"Verificar email",es:"Verificar email",de:"E-Mail verifizieren",fr:"V\xE9rifier email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_edit_email:()=>({en:"Use another email",pt:"Usar outro email",es:"Usar otro email",de:"Eine andere E-Mail-Adresse verwenden",fr:"Utiliser un autre email",hi:"\u0926\u0942\u0938\u0930\u093E \u0908\u092E\u0947\u0932 \u092A\u094D\u0930\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_auth_token_resend_email:()=>({en:"Send new code",pt:"Enviar novo c\xF3digo",es:"Enviar nuevo c\xF3digo",de:"Neuen Code senden",fr:"Envoyer un nouveau code",hi:"\u0928\u092F\u093E \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_footer_alternative_email:()=>({en:"If you haven't received the verification code, please check your spam folder",pt:"Se voc\xEA n\xE3o recebeu o c\xF3digo de verifica\xE7\xE3o, verifique sua caixa de spam",es:"Si no has recibido el c\xF3digo de verificaci\xF3n, por favor revisa tu carpeta de spam",de:"Wenn Sie den Best\xE4tigungscode nicht erhalten haben, \xFCberpr\xFCfen Sie bitte Ihren Spam-Ordner",fr:"Si vous n'avez pas re\xE7u le code de v\xE9rification, veuillez v\xE9rifier votre dossier de spam",hi:"\u092F\u0926\u093F \u0906\u092A\u0928\u0947 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u0947 \u0938\u094D\u092A\u0948\u092E \u092B\u093C\u094B\u0932\u094D\u0921\u0930 \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902"}),i18n_local_auth_info_description:()=>({en:"You\u2019re in development mode, any email will work",pt:"Voc\xEA est\xE1 em modo de desenvolvimento, qualquer email funcionar\xE1",es:"Est\xE1s en modo de desarrollo, cualquier email funcionar\xE1",de:"Sie sind im Entwicklungsmodus, jede E-Mail-Adresse funktioniert",fr:"Vous \xEAtes en mode d\xE9veloppement, n\u2019importe quel email fonctionnera",hi:"\u0906\u092A \u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0939\u0948\u0902, \u0915\u094B\u0908 \u092D\u0940 \u0908\u092E\u0947\u0932 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E"}),i18n_local_auth_info_authenticate:()=>({en:"Validate email",pt:"Validar email",es:"Validar email",de:"E-Mail best\xE4tigen",fr:"Valider email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_error_invalid_date:()=>({en:"Invalid date",pt:"Data inv\xE1lida",es:"Fecha no v\xE1lida",de:"Ung\xFCltiges Datum",fr:"Date invalide",hi:"\u0905\u0935\u0948\u0927 \u0924\u093F\u0925\u093F"}),i18n_camera_permission_denied:()=>({en:"Camera access denied",pt:"Acesso \xE0 c\xE2mera negado",es:"Acceso a la c\xE1mara denegado",de:"Kamerazugriff verweigert",fr:"Acc\xE8s \xE0 la cam\xE9ra refus\xE9",hi:"\u0915\u0948\u092E\u0930\u093E \u090F\u0915\u094D\u0938\u0947\u0938 \u0928\u093E\u0907\u091F\u0947\u0921"}),i18n_no_camera_found:()=>({en:"No camera found",pt:"Nenhuma c\xE2mera encontrada",es:"No se encontr\xF3 ninguna c\xE1mara",de:"Keine Kamera gefunden",fr:"Aucune cam\xE9ra trouv\xE9e",hi:"\u0915\u094B\u0908 \u0915\u0948\u092E\u0930\u093E \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_camera_already_in_use:()=>({en:"Camera is already in use",pt:"C\xE2mera j\xE1 est\xE1 em uso",es:"La c\xE1mara ya est\xE1 en uso",de:"Kamera wird bereits verwendet",fr:"La cam\xE9ra est d\xE9j\xE0 utilis\xE9e",hi:"\u0915\u0948\u092E\u0930\u093E \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u0909\u092A\u092F\u094B\u0917 \u092E\u0947\u0902 \u0939\u0948"}),i18n_permission_error:()=>({en:"An error occurred while accessing the camera",pt:"Ocorreu um erro ao acessar a c\xE2mera",es:"Se produjo un error al acceder a la c\xE1mara",de:"Beim Zugriff auf die Kamera ist ein Fehler aufgetreten",fr:"Une erreur s'est produite lors de l'acc\xE8s \xE0 la cam\xE9ra",hi:"\u0915\u0948\u092E\u0930\u093E \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0924\u0947 \u0938\u092E\u092F \u090F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F \u0906\u0908"}),i18n_access_denied:()=>({en:"Access denied",pt:"Acesso negado",es:"Acceso denegado",de:"Zugriff verweigert",fr:"Acc\xE8s refus\xE9",hi:"\u092A\u0939\u0941\u0902\u091A \u0928\u093F\u0937\u0947\u0927\u093F\u0924"}),i18n_access_denied_message:()=>({en:"You do not have the necessary permissions to access this page. Please contact the administrator to request access.",pt:"Voc\xEA n\xE3o tem as permiss\xF5es necess\xE1rias para acessar esta p\xE1gina. Entre em contato com o administrador para solicitar acesso.",es:"No tienes los permisos necesarios para acceder a esta p\xE1gina. Ponte en contacto con el administrador para solicitar acceso.",de:"Sie haben nicht die erforderlichen Berechtigungen, um auf diese Seite zuzugreifen. Bitte kontaktieren Sie den Administrator, um Zugriff anzufordern.",fr:"Vous n'avez pas les autorisations n\xE9cessaires pour acc\xE9der \xE0 cette page. Veuillez contacter l'administrateur pour demander l'acc\xE8s.",hi:"\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u0907\u0938 \u092A\u0947\u091C \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0906\u0935\u0936\u094D\u092F\u0915 \u0905\u0928\u0941\u092E\u0924\u093F\u092F\u093E\u0901 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0936\u093E\u0938\u0915 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_internal_error:()=>({en:"Internal error",pt:"Erro interno",es:"Error interno",de:"Interner Fehler",fr:"Erreur interne",hi:"\u0906\u0902\u0924\u0930\u093F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F"}),i18n_internal_error_message:()=>({en:"An unknown error ocurred. Please try again or contact support.",pt:"Ocorreu um erro desconhecido. Tente novamente ou entre em contato com o suporte.",es:"Se ha producido un error desconocido. Int\xE9ntalo de nuevo o ponte en contacto con el soporte.",de:"Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut oder kontaktieren Sie den Support.",fr:"Une erreur inconnue s\u2019est produite. Veuillez r\xE9essayer ou contacter le support.",hi:"\u090F\u0915 \u0905\u091C\u094D\u091E\u093E\u0924 \u0924\u094D\u0930\u0941\u091F\u093F \u0939\u0941\u0908\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0938\u092E\u0930\u094D\u0925\u0928 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_page_not_found:()=>({en:"Page not found",pt:"P\xE1gina n\xE3o encontrada",es:"P\xE1gina no encontrada",de:"Seite nicht gefunden",fr:"Page non trouv\xE9e",hi:"\u092A\u0943\u0937\u094D\u0920 \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_page_not_found_message:()=>({en:"The page you are looking for does not exist. Please check the URL and try again.",pt:"A p\xE1gina que voc\xEA est\xE1 procurando n\xE3o existe. Verifique a URL e tente novamente.",es:"La p\xE1gina que buscas no existe. Por favor, verifica la URL e int\xE9ntalo de nuevo.",de:"Die von Ihnen gesuchte Seite existiert nicht. Bitte \xFCberpr\xFCfen Sie die URL und versuchen Sie es erneut.",fr:"La page que vous recherchez n\u2019existe pas. Veuillez v\xE9rifier l\u2019URL et r\xE9essayer.",hi:"\u0906\u092A \u091C\u093F\u0938 \u092A\u0943\u0937\u094D\u0920 \u0915\u0940 \u0916\u094B\u091C \u0915\u0930 \u0930\u0939\u0947 \u0939\u0948\u0902, \u0935\u0939 \u092E\u094C\u091C\u0942\u0926 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E URL \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 \u0914\u0930 \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"})},LUe="en";class FUe{getBrowserLocale(){return navigator.language.split(/[-_]/)[0]}getSupportedLocale(t){return $Ue.includes(t)?t:LUe}translate(t,n=null,...r){if(!(t in d0))throw new Error(`Missing translation for key ${t} in locale ${n}`);if(n==null){const i=this.getBrowserLocale(),a=Oa.getSupportedLocale(i);return d0[t](...r)[a]}return d0[t](...r)[n]}translateIfFound(t,n,...r){return t in d0?this.translate(t,n,...r):t}}const Oa=new FUe,m1={txt:"text/plain",md:"text/markdown",csv:"text/csv",html:"text/html",css:"text/css",py:"text/x-python-script",png:"image/png",jpg:"image/jpg",mp3:"audio/mp3",wav:"audio/wav",flac:"audio/flac",aac:"audio/aac",ogg:"audio/ogg",wma:"audio/x-ms-wma",avi:"video/avi",mp4:"video/mp4",mkv:"video/x-matroska",mov:"video/quicktime",webm:"video/webm",flv:"video/x-flv",wmv:"video/x-ms-wmv",m4v:"video/x-m4v",zip:"application/zip",rar:"application/vnd.rar","7z":"application/x-7z-compressed",tar:"application/x-tar",gzip:"application/gzip",js:"application/javascript",ts:"application/typescript",json:"application/json",xml:"application/xml",yaml:"application/x-yaml",toml:"application/toml",pdf:"application/pdf",xls:"application/vnd.ms-excel",doc:"application/msword",ppt:"application/vnd.ms-powerpoint",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",unknown:"application/octet-stream"},kL=e=>e in m1?m1[e]:m1.unknown;class Az{constructor(t,n,r,i,a,l,s){yn(this,"initialFileList",()=>this.value.map(t=>{const n=new File([],t);return{uid:t,name:t.split("/").pop()||t,status:"done",response:[t.replace("/_files/","")],url:t,type:kL(t.split(".").pop()),size:n.size}}));yn(this,"emitValue",t=>{this.value=t,this.emit("update:value",t)});yn(this,"emitErrors",t=>{this.emit("update:errors",t)});yn(this,"handleReject",()=>{var n;const t=((n=this.acceptedFormats)==null?void 0:n.join(", "))||"*";this.emitErrors([Oa.translate("i18n_upload_area_rejected_file_extension",this.locale,{formats:t})])});yn(this,"customData",t=>({filename:t.name}));yn(this,"beforeUpload",t=>this.maxFileSize&&t.size&&t.size/1024/1024>this.maxFileSize?(this.emitErrors([Oa.translate("i18n_upload_max_size_excided",this.locale,{fileName:t.name,maxSize:this.maxFileSize})]),Cz.LIST_IGNORE):!0);yn(this,"handleChange",t=>{t.file.status==="done"&&(t.file.thumbUrl=this.thumbnail(t.file));const r=t.fileList.filter(i=>i.status==="done").map(i=>"/_files/"+i.response[0])||[];this.emitValue(r),t.file.status==="error"&&this.emitErrors([Oa.translate("i18n_upload_failed",this.locale,{fileName:t.file.name})])});this.emit=t,this.value=n,this.thumbnail=r,this.locale=i,this.acceptedFormats=a,this.maxFileSize=l,this.multiple=s}get accept(){var t,n;return((t=this.acceptedFormats)==null?void 0:t.length)===0?"*":(n=this.acceptedFormats)==null?void 0:n.map(r=>kL(r)).join(",")}get action(){return"/_files/"}get method(){return"PUT"}get headers(){return{cache:"no-cache",mode:"cors"}}get progress(){return{strokeWidth:5,showInfo:!0,format:t=>`${(t==null?void 0:t.toFixed(0))||0}%`}}get maxCount(){return this.multiple?void 0:1}}const Nz=Ce({__name:"CardList",props:{value:{},errors:{},locale:{},acceptedFormats:{},maxFileSize:{},multiple:{type:Boolean},disabled:{type:Boolean},capture:{type:Boolean}},emits:["update:value","update:errors"],setup(e,{expose:t,emit:n}){const r=e,i=Oe(null),a=new Iz,l=new Az(n,r.value,a.fileThumbnail,r.locale,r.acceptedFormats,r.maxFileSize,r.multiple),s=Oe(l.initialFileList()),u=$(()=>r.multiple||s.value.length===0);return t({uploadRef:i}),(o,c)=>(oe(),pe(tt,null,[x(je(Cz),{ref_key:"uploadRef",ref:i,capture:o.capture,fileList:s.value,"onUpdate:fileList":c[0]||(c[0]=d=>s.value=d),accept:je(l).accept,action:je(l).action,method:je(l).method,"max-count":je(l).maxCount,headers:je(l).headers,data:je(l).customData,progress:je(l).progress,"before-upload":je(l).beforeUpload,onChange:je(l).handleChange,onReject:je(l).handleReject,onPreview:je(a).handlePreview,multiple:o.multiple,disabled:o.disabled,"show-upload-list":!0,"list-type":"picture-card"},{iconRender:pn(({file:d})=>[x(Oz,{file:d,ctrl:je(a),size:20},null,8,["file","ctrl"])]),default:pn(()=>[u.value?Et(o.$slots,"ui",{key:0}):ft("",!0)]),_:3},8,["capture","fileList","accept","action","method","max-count","headers","data","progress","before-upload","onChange","onReject","onPreview","multiple","disabled"]),x(Rz,{ctrl:je(a)},null,8,["ctrl"])],64))}});var Dz={},My={};My.byteLength=HUe;My.toByteArray=VUe;My.fromByteArray=jUe;var ds=[],no=[],BUe=typeof Uint8Array<"u"?Uint8Array:Array,g1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Sd=0,UUe=g1.length;Sd0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function HUe(e){var t=Pz(e),n=t[0],r=t[1];return(n+r)*3/4-r}function zUe(e,t,n){return(t+n)*3/4-n}function VUe(e){var t,n=Pz(e),r=n[0],i=n[1],a=new BUe(zUe(e,r,i)),l=0,s=i>0?r-4:r,u;for(u=0;u>16&255,a[l++]=t>>8&255,a[l++]=t&255;return i===2&&(t=no[e.charCodeAt(u)]<<2|no[e.charCodeAt(u+1)]>>4,a[l++]=t&255),i===1&&(t=no[e.charCodeAt(u)]<<10|no[e.charCodeAt(u+1)]<<4|no[e.charCodeAt(u+2)]>>2,a[l++]=t>>8&255,a[l++]=t&255),a}function GUe(e){return ds[e>>18&63]+ds[e>>12&63]+ds[e>>6&63]+ds[e&63]}function YUe(e,t,n){for(var r,i=[],a=t;as?s:l+a));return r===1?(t=e[n-1],i.push(ds[t>>2]+ds[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(ds[t>>10]+ds[t>>4&63]+ds[t<<2&63]+"=")),i.join("")}var pI={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */pI.read=function(e,t,n,r,i){var a,l,s=i*8-r-1,u=(1<>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=a*256+e[t+d],d+=p,c-=8);for(l=a&(1<<-c)-1,a>>=-c,c+=r;c>0;l=l*256+e[t+d],d+=p,c-=8);if(a===0)a=1-o;else{if(a===u)return l?NaN:(f?-1:1)*(1/0);l=l+Math.pow(2,r),a=a-o}return(f?-1:1)*l*Math.pow(2,a-r)};pI.write=function(e,t,n,r,i,a){var l,s,u,o=a*8-i-1,c=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,g=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-l))<1&&(l--,u*=2),l+d>=1?t+=p/u:t+=p*Math.pow(2,1-d),t*u>=2&&(l++,u/=2),l+d>=c?(s=0,l=c):l+d>=1?(s=(t*u-1)*Math.pow(2,i),l=l+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[n+f]=s&255,f+=g,s/=256,i-=8);for(l=l<0;e[n+f]=l&255,f+=g,l/=256,o-=8);e[n+f-g]|=m*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -587,7 +587,7 @@ __p += '`),xn&&(et+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+et+`return __p -}`;var dn=AN(function(){return Un(ce,St+"return "+et).apply(n,Re)});if(dn.source=et,NS(dn))throw dn;return dn}function QW(_){return Vn(_).toLowerCase()}function XW(_){return Vn(_).toUpperCase()}function JW(_,E,A){if(_=Vn(_),_&&(A||E===n))return BI(_);if(!_||!(E=ga(E)))return _;var V=yo(_),Q=yo(E),ce=UI(V,Q),Re=HI(V,Q)+1;return kl(V,ce,Re).join("")}function eq(_,E,A){if(_=Vn(_),_&&(A||E===n))return _.slice(0,VI(_)+1);if(!_||!(E=ga(E)))return _;var V=yo(_),Q=HI(V,yo(E))+1;return kl(V,0,Q).join("")}function tq(_,E,A){if(_=Vn(_),_&&(A||E===n))return _.replace(le,"");if(!_||!(E=ga(E)))return _;var V=yo(_),Q=UI(V,yo(E));return kl(V,Q).join("")}function nq(_,E){var A=N,V=M;if(xr(E)){var Q="separator"in E?E.separator:Q;A="length"in E?cn(E.length):A,V="omission"in E?ga(E.omission):V}_=Vn(_);var ce=_.length;if(Ju(_)){var Re=yo(_);ce=Re.length}if(A>=ce)return _;var De=A-ed(V);if(De<1)return V;var Be=Re?kl(Re,0,De).join(""):_.slice(0,De);if(Q===n)return Be+V;if(Re&&(De+=Be.length-De),DS(Q)){if(_.slice(De).search(Q)){var Qe,Xe=Be;for(Q.global||(Q=qy(Q.source,Vn(gn.exec(Q))+"g")),Q.lastIndex=0;Qe=Q.exec(Xe);)var et=Qe.index;Be=Be.slice(0,et===n?De:et)}}else if(_.indexOf(ga(Q),De)!=De){var dt=Be.lastIndexOf(Q);dt>-1&&(Be=Be.slice(0,dt))}return Be+V}function rq(_){return _=Vn(_),_&&Fn.test(_)?_.replace(pt,DV):_}var iq=sd(function(_,E,A){return _+(A?" ":"")+E.toUpperCase()}),kS=NA("toUpperCase");function IN(_,E,A){return _=Vn(_),E=A?n:E,E===n?OV(_)?kV(_):vV(_):_.match(E)||[]}var AN=mn(function(_,E){try{return fa(_,n,E)}catch(A){return NS(A)?A:new en(A)}}),aq=Ms(function(_,E){return Ha(E,function(A){A=ts(A),Ds(_,A,IS(_[A],_))}),_});function oq(_){var E=_==null?0:_.length,A=Nt();return _=E?vr(_,function(V){if(typeof V[1]!="function")throw new za(l);return[A(V[0]),V[1]]}):[],mn(function(V){for(var Q=-1;++Qz)return[];var A=K,V=xi(_,K);E=Nt(E),_-=K;for(var Q=Yy(V,E);++A<_;)E(A);return Q}function Oq(_){return an(_)?vr(_,ts):ha(_)?[_]:Ki(QA(Vn(_)))}function Rq(_){var E=++BV;return Vn(_)+E}var Iq=kh(function(_,E){return _+E},0),Aq=_S("ceil"),Nq=kh(function(_,E){return _/E},1),Dq=_S("floor");function Pq(_){return _&&_.length?Rh(_,Xi,nS):n}function Mq(_,E){return _&&_.length?Rh(_,Nt(E,2),nS):n}function kq(_){return LI(_,Xi)}function $q(_,E){return LI(_,Nt(E,2))}function Lq(_){return _&&_.length?Rh(_,Xi,oS):n}function Fq(_,E){return _&&_.length?Rh(_,Nt(E,2),oS):n}var Bq=kh(function(_,E){return _*E},1),Uq=_S("round"),Hq=kh(function(_,E){return _-E},0);function zq(_){return _&&_.length?Gy(_,Xi):0}function Vq(_,E){return _&&_.length?Gy(_,Nt(E,2)):0}return ae.after=dj,ae.ary=lN,ae.assign=Xj,ae.assignIn=EN,ae.assignInWith=qh,ae.assignWith=Jj,ae.at=eW,ae.before=cN,ae.bind=IS,ae.bindAll=aq,ae.bindKey=uN,ae.castArray=Cj,ae.chain=aN,ae.chunk=D7,ae.compact=P7,ae.concat=M7,ae.cond=oq,ae.conforms=sq,ae.constant=$S,ae.countBy=zY,ae.create=tW,ae.curry=dN,ae.curryRight=pN,ae.debounce=fN,ae.defaults=nW,ae.defaultsDeep=rW,ae.defer=pj,ae.delay=fj,ae.difference=k7,ae.differenceBy=$7,ae.differenceWith=L7,ae.drop=F7,ae.dropRight=B7,ae.dropRightWhile=U7,ae.dropWhile=H7,ae.fill=z7,ae.filter=GY,ae.flatMap=WY,ae.flatMapDeep=qY,ae.flatMapDepth=KY,ae.flatten=tN,ae.flattenDeep=V7,ae.flattenDepth=G7,ae.flip=mj,ae.flow=cq,ae.flowRight=uq,ae.fromPairs=Y7,ae.functions=uW,ae.functionsIn=dW,ae.groupBy=ZY,ae.initial=W7,ae.intersection=q7,ae.intersectionBy=K7,ae.intersectionWith=Z7,ae.invert=fW,ae.invertBy=mW,ae.invokeMap=XY,ae.iteratee=LS,ae.keyBy=JY,ae.keys=oi,ae.keysIn=Qi,ae.map=zh,ae.mapKeys=hW,ae.mapValues=_W,ae.matches=dq,ae.matchesProperty=pq,ae.memoize=Gh,ae.merge=vW,ae.mergeWith=CN,ae.method=fq,ae.methodOf=mq,ae.mixin=FS,ae.negate=Yh,ae.nthArg=hq,ae.omit=bW,ae.omitBy=yW,ae.once=gj,ae.orderBy=ej,ae.over=_q,ae.overArgs=hj,ae.overEvery=vq,ae.overSome=bq,ae.partial=AS,ae.partialRight=mN,ae.partition=tj,ae.pick=SW,ae.pickBy=TN,ae.property=NN,ae.propertyOf=yq,ae.pull=eY,ae.pullAll=rN,ae.pullAllBy=tY,ae.pullAllWith=nY,ae.pullAt=rY,ae.range=Sq,ae.rangeRight=Eq,ae.rearg=_j,ae.reject=ij,ae.remove=iY,ae.rest=vj,ae.reverse=OS,ae.sampleSize=oj,ae.set=CW,ae.setWith=TW,ae.shuffle=sj,ae.slice=aY,ae.sortBy=uj,ae.sortedUniq=pY,ae.sortedUniqBy=fY,ae.split=WW,ae.spread=bj,ae.tail=mY,ae.take=gY,ae.takeRight=hY,ae.takeRightWhile=_Y,ae.takeWhile=vY,ae.tap=PY,ae.throttle=yj,ae.thru=Hh,ae.toArray=bN,ae.toPairs=wN,ae.toPairsIn=xN,ae.toPath=Oq,ae.toPlainObject=SN,ae.transform=wW,ae.unary=Sj,ae.union=bY,ae.unionBy=yY,ae.unionWith=SY,ae.uniq=EY,ae.uniqBy=CY,ae.uniqWith=TY,ae.unset=xW,ae.unzip=RS,ae.unzipWith=iN,ae.update=OW,ae.updateWith=RW,ae.values=ud,ae.valuesIn=IW,ae.without=wY,ae.words=IN,ae.wrap=Ej,ae.xor=xY,ae.xorBy=OY,ae.xorWith=RY,ae.zip=IY,ae.zipObject=AY,ae.zipObjectDeep=NY,ae.zipWith=DY,ae.entries=wN,ae.entriesIn=xN,ae.extend=EN,ae.extendWith=qh,FS(ae,ae),ae.add=Iq,ae.attempt=AN,ae.camelCase=PW,ae.capitalize=ON,ae.ceil=Aq,ae.clamp=AW,ae.clone=Tj,ae.cloneDeep=xj,ae.cloneDeepWith=Oj,ae.cloneWith=wj,ae.conformsTo=Rj,ae.deburr=RN,ae.defaultTo=lq,ae.divide=Nq,ae.endsWith=MW,ae.eq=Eo,ae.escape=kW,ae.escapeRegExp=$W,ae.every=VY,ae.find=YY,ae.findIndex=JA,ae.findKey=iW,ae.findLast=jY,ae.findLastIndex=eN,ae.findLastKey=aW,ae.floor=Dq,ae.forEach=oN,ae.forEachRight=sN,ae.forIn=oW,ae.forInRight=sW,ae.forOwn=lW,ae.forOwnRight=cW,ae.get=PS,ae.gt=Ij,ae.gte=Aj,ae.has=pW,ae.hasIn=MS,ae.head=nN,ae.identity=Xi,ae.includes=QY,ae.indexOf=j7,ae.inRange=NW,ae.invoke=gW,ae.isArguments=Hc,ae.isArray=an,ae.isArrayBuffer=Nj,ae.isArrayLike=Zi,ae.isArrayLikeObject=Ur,ae.isBoolean=Dj,ae.isBuffer=$l,ae.isDate=Pj,ae.isElement=Mj,ae.isEmpty=kj,ae.isEqual=$j,ae.isEqualWith=Lj,ae.isError=NS,ae.isFinite=Fj,ae.isFunction=$s,ae.isInteger=gN,ae.isLength=jh,ae.isMap=hN,ae.isMatch=Bj,ae.isMatchWith=Uj,ae.isNaN=Hj,ae.isNative=zj,ae.isNil=Gj,ae.isNull=Vj,ae.isNumber=_N,ae.isObject=xr,ae.isObjectLike=Nr,ae.isPlainObject=Rf,ae.isRegExp=DS,ae.isSafeInteger=Yj,ae.isSet=vN,ae.isString=Wh,ae.isSymbol=ha,ae.isTypedArray=cd,ae.isUndefined=jj,ae.isWeakMap=Wj,ae.isWeakSet=qj,ae.join=Q7,ae.kebabCase=LW,ae.last=ja,ae.lastIndexOf=X7,ae.lowerCase=FW,ae.lowerFirst=BW,ae.lt=Kj,ae.lte=Zj,ae.max=Pq,ae.maxBy=Mq,ae.mean=kq,ae.meanBy=$q,ae.min=Lq,ae.minBy=Fq,ae.stubArray=US,ae.stubFalse=HS,ae.stubObject=Cq,ae.stubString=Tq,ae.stubTrue=wq,ae.multiply=Bq,ae.nth=J7,ae.noConflict=gq,ae.noop=BS,ae.now=Vh,ae.pad=UW,ae.padEnd=HW,ae.padStart=zW,ae.parseInt=VW,ae.random=DW,ae.reduce=nj,ae.reduceRight=rj,ae.repeat=GW,ae.replace=YW,ae.result=EW,ae.round=Uq,ae.runInContext=$e,ae.sample=aj,ae.size=lj,ae.snakeCase=jW,ae.some=cj,ae.sortedIndex=oY,ae.sortedIndexBy=sY,ae.sortedIndexOf=lY,ae.sortedLastIndex=cY,ae.sortedLastIndexBy=uY,ae.sortedLastIndexOf=dY,ae.startCase=qW,ae.startsWith=KW,ae.subtract=Hq,ae.sum=zq,ae.sumBy=Vq,ae.template=ZW,ae.times=xq,ae.toFinite=Ls,ae.toInteger=cn,ae.toLength=yN,ae.toLower=QW,ae.toNumber=Wa,ae.toSafeInteger=Qj,ae.toString=Vn,ae.toUpper=XW,ae.trim=JW,ae.trimEnd=eq,ae.trimStart=tq,ae.truncate=nq,ae.unescape=rq,ae.uniqueId=Rq,ae.upperCase=iq,ae.upperFirst=kS,ae.each=oN,ae.eachRight=sN,ae.first=nN,FS(ae,function(){var _={};return Jo(ae,function(E,A){Wn.call(ae.prototype,A)||(_[A]=E)}),_}(),{chain:!1}),ae.VERSION=r,Ha(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){ae[_].placeholder=ae}),Ha(["drop","take"],function(_,E){En.prototype[_]=function(A){A=A===n?1:Jr(cn(A),0);var V=this.__filtered__&&!E?new En(this):this.clone();return V.__filtered__?V.__takeCount__=xi(A,V.__takeCount__):V.__views__.push({size:xi(A,K),type:_+(V.__dir__<0?"Right":"")}),V},En.prototype[_+"Right"]=function(A){return this.reverse()[_](A).reverse()}}),Ha(["filter","map","takeWhile"],function(_,E){var A=E+1,V=A==k||A==F;En.prototype[_]=function(Q){var ce=this.clone();return ce.__iteratees__.push({iteratee:Nt(Q,3),type:A}),ce.__filtered__=ce.__filtered__||V,ce}}),Ha(["head","last"],function(_,E){var A="take"+(E?"Right":"");En.prototype[_]=function(){return this[A](1).value()[0]}}),Ha(["initial","tail"],function(_,E){var A="drop"+(E?"":"Right");En.prototype[_]=function(){return this.__filtered__?new En(this):this[A](1)}}),En.prototype.compact=function(){return this.filter(Xi)},En.prototype.find=function(_){return this.filter(_).head()},En.prototype.findLast=function(_){return this.reverse().find(_)},En.prototype.invokeMap=mn(function(_,E){return typeof _=="function"?new En(this):this.map(function(A){return Ef(A,_,E)})}),En.prototype.reject=function(_){return this.filter(Yh(Nt(_)))},En.prototype.slice=function(_,E){_=cn(_);var A=this;return A.__filtered__&&(_>0||E<0)?new En(A):(_<0?A=A.takeRight(-_):_&&(A=A.drop(_)),E!==n&&(E=cn(E),A=E<0?A.dropRight(-E):A.take(E-_)),A)},En.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},En.prototype.toArray=function(){return this.take(K)},Jo(En.prototype,function(_,E){var A=/^(?:filter|find|map|reject)|While$/.test(E),V=/^(?:head|last)$/.test(E),Q=ae[V?"take"+(E=="last"?"Right":""):E],ce=V||/^find/.test(E);!Q||(ae.prototype[E]=function(){var Re=this.__wrapped__,De=V?[1]:arguments,Be=Re instanceof En,Qe=De[0],Xe=Be||an(Re),et=function(bn){var xn=Q.apply(ae,Il([bn],De));return V&&dt?xn[0]:xn};Xe&&A&&typeof Qe=="function"&&Qe.length!=1&&(Be=Xe=!1);var dt=this.__chain__,St=!!this.__actions__.length,Mt=ce&&!dt,dn=Be&&!St;if(!ce&&Xe){Re=dn?Re:new En(this);var kt=_.apply(Re,De);return kt.__actions__.push({func:Hh,args:[et],thisArg:n}),new Va(kt,dt)}return Mt&&dn?_.apply(this,De):(kt=this.thru(et),Mt?V?kt.value()[0]:kt.value():kt)})}),Ha(["pop","push","shift","sort","splice","unshift"],function(_){var E=fh[_],A=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",V=/^(?:pop|shift)$/.test(_);ae.prototype[_]=function(){var Q=arguments;if(V&&!this.__chain__){var ce=this.value();return E.apply(an(ce)?ce:[],Q)}return this[A](function(Re){return E.apply(an(Re)?Re:[],Q)})}}),Jo(En.prototype,function(_,E){var A=ae[E];if(A){var V=A.name+"";Wn.call(id,V)||(id[V]=[]),id[V].push({name:E,func:A})}}),id[Mh(n,v).name]=[{name:"wrapper",func:n}],En.prototype.clone=rG,En.prototype.reverse=iG,En.prototype.value=aG,ae.prototype.at=MY,ae.prototype.chain=kY,ae.prototype.commit=$Y,ae.prototype.next=LY,ae.prototype.plant=BY,ae.prototype.reverse=UY,ae.prototype.toJSON=ae.prototype.valueOf=ae.prototype.value=HY,ae.prototype.first=ae.prototype.head,gf&&(ae.prototype[gf]=FY),ae},td=$V();Pc?((Pc.exports=td)._=td,Ly._=td):pi._=td}).call(ra)})(Da,Da.exports);const OWe=Da.exports,JUe={class:"search"},eHe=["active","onClick"],tHe={key:0,class:"image-container"},nHe=["src"],rHe={class:"text-container"},iHe={key:0,class:"extra"},aHe={key:0,class:"left"},oHe={key:1,class:"right"},sHe={key:1,class:"card-title"},lHe={key:2,class:"card-subtitle"},cHe={key:3,class:"card-description"},uHe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors","card-click"],setup(e,{emit:t}){const n=e;function r(f,g){return Da.exports.isEqual(Da.exports.omit(f,["image"]),Da.exports.omit(g,["image"]))}const i=$(()=>{var f;return(f=n.userProps.options)!=null?f:[]}),a=$(()=>{var f;return(f=n.userProps.searchable)!=null?f:!1}),l=Oe(""),s=Oe(n.value);function u(f){return l.value?f.filter(g=>{var m,h,v;return((m=g.title)==null?void 0:m.toLowerCase().includes(l.value.toLowerCase()))||((h=g.subtitle)==null?void 0:h.toLowerCase().includes(l.value.toLowerCase()))||((v=g.description)==null?void 0:v.toLowerCase().includes(l.value.toLowerCase()))}):f}function o(f){return s.value.some(g=>r(g,f))}function c(f){o(f)?s.value=s.value.filter(m=>!r(m,f)):s.value=[...s.value,f]}function d(f){o(f)?s.value=[]:s.value=[f]}function p(f){n.userProps.disabled||(t("card-click",f),n.userProps.multiple?c(f):d(f),t("update:value",s.value))}return ze(()=>n.value,()=>{s.value=n.value}),(f,g)=>{var m;return oe(),pe("div",{class:"cards-input",style:Ni({"--grid-columns":(m=f.userProps.columns)!=null?m:2})},[x(Ln,{label:f.userProps.label,required:!!f.userProps.required,hint:f.userProps.hint},null,8,["label","required","hint"]),Ee("div",JUe,[a.value?mr((oe(),pe("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=h=>l.value=h),type:"text",class:"input",placeholder:"Search..."},null,512)),[[Au,l.value]]):ft("",!0)]),Ee("div",{class:Vt(["cards",f.userProps.layout||"list"])},[(oe(!0),pe(tt,null,Di(u(i.value),h=>(oe(),pe("div",{key:h.title,class:Vt(["card","clickable",f.userProps.layout||"list",{disabled:f.userProps.disabled}]),active:o(h),onClick:v=>p(h)},[h.image?(oe(),pe("div",tHe,[Ee("img",{class:"card-image",src:h.image},null,8,nHe)])):ft("",!0),Ee("main",rHe,[h.topLeftExtra||h.topRightExtra?(oe(),pe("div",iHe,[h.topLeftExtra?(oe(),pe("p",aHe,Qt(h.topLeftExtra),1)):ft("",!0),h.topRightExtra?(oe(),pe("p",oHe,Qt(h.topRightExtra),1)):ft("",!0)])):ft("",!0),h.title?(oe(),pe("h1",sHe,Qt(h.title),1)):ft("",!0),h.subtitle?(oe(),pe("h2",lHe,Qt(h.subtitle),1)):ft("",!0),h.description?(oe(),pe("p",cHe,Qt(h.description),1)):ft("",!0)])],10,eHe))),128))],2)],4)}}});const dHe=Hn(uHe,[["__scopeId","data-v-c4887666"]]),pHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=()=>{r.value=!r.value,t("update:value",r.value)};return ze(()=>n.value,()=>r.value=n.value),(a,l)=>{const s=Jd("Markdown");return oe(),Rn(je(gs),{disabled:a.userProps.disabled,checked:r.value,onClick:i},{default:pn(()=>[x(s,{source:a.userProps.label,html:""},null,8,["source"])]),_:1},8,["disabled","checked"])}}}),fHe={class:"checklist-input"},mHe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=a=>{t("update:errors",[]),t("update:value",a)};return ze(()=>n.value,()=>r.value=n.value),(a,l)=>(oe(),pe("div",fHe,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),x(je(Cg),{value:r.value,"onUpdate:value":l[0]||(l[0]=s=>r.value=s),disabled:a.userProps.disabled,options:a.userProps.options,onChange:l[1]||(l[1]=s=>i(s))},null,8,["value","disabled","options"])]))}});const gHe=Hn(mHe,[["__scopeId","data-v-0f1257be"]]),hHe={0:/\d/,a:/[a-zA-Z]/,"*":/./};function Ra(e,t){var l;if(e.length===0||t.length===0)return"";const n=_He(e,t),r=n[0],i=hHe[r];if(!i)return r+Ra(n.slice(1),t.startsWith(r)?t.slice(1):t);const a=t.match(i);return a?a[0]+Ra(n.slice(1),t.slice(((l=a.index)!=null?l:0)+1)):""}function Wp(e,t){return e.includes("|")?Mz(e).some(r=>r.length==t.length):t.length===e.length}function _He(e,t){if(!e.includes("|"))return e;const n=Mz(e);for(const r of n)if(t.replace(/\D/g,"").length<=r.replace(/\D/g,"").length)return r;return n[0]}function Mz(e){return e.split("|").sort((n,r)=>n.length-r.length)}const vHe=["disabled","placeholder"],Ff="00.000.000/0000-00",bHe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=u=>{if(!u||!(typeof u=="string")||u.length>18)return!1;const c=/^\d{14}$/.test(u),d=/^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/.test(u);if(!(c||d))return!1;const p=u.toString().match(/\d/g),f=Array.isArray(p)?p.map(Number):[];if(f.length!==14||[...new Set(f)].length===1)return!1;const m=y=>{const S=f.slice(0,y);let C=y-7,w=0;for(let O=y;O>=1;O--){const I=S[y-O];w+=I*C--,C<2&&(C=9)}const T=11-w%11;return T>9?0:T},h=f.slice(12);return m(12)!==h[0]?!1:m(13)===h[1]},i=Oe(),a=()=>{var o;const u=[];n.value!==""&&(!Wp(Ff,n.value)||!r(n.value))&&u.push((o=n.userProps.invalidMessage)!=null?o:""),t("update:errors",u)},l=u=>{const o=Ra(Ff,u);i.value.value=o,t("update:value",o)},s=u=>{const o=u.target;Wp(Ff,o.value)&&r(o.value)&&u.preventDefault()};return _t(()=>{!i.value||(i.value.value=Ra(Ff,n.value))}),ze(()=>n.value,()=>{!i.value||(i.value.value=Ra(Ff,n.value))}),(u,o)=>(oe(),pe(tt,null,[x(Ln,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ee("input",{ref_key:"input",ref:i,class:Vt(["input",u.errors.length&&"error",u.userProps.disabled&&"disabled"]),disabled:u.userProps.disabled,placeholder:u.userProps.placeholder,onInput:o[0]||(o[0]=c=>l(c.target.value)),onKeypress:o[1]||(o[1]=c=>s(c)),onChange:a,onBlur:a},null,42,vHe)],64))}}),yHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Oe(),i=async(a,l,s)=>{const o=(await Py(()=>import("./editor.main.36d84e90.js"),["assets/editor.main.36d84e90.js","assets/toggleHighContrast.017fb466.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(a,{language:s,value:l,minimap:{enabled:!1},readOnly:n.userProps.disabled,contextmenu:!0,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}});o.onDidChangeModelContent(()=>{t("update:value",String(o.getValue()))})};return _t(()=>{var a;i(r.value,(a=n.value)!=null?a:"",n.userProps.language)}),(a,l)=>(oe(),pe(tt,null,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ee("div",{ref_key:"editor",ref:r,class:"input code-editor",style:{height:"500px"}},null,512)],64))}});const SHe=Hn(yHe,[["__scopeId","data-v-d10ec25a"]]),EHe={class:"cpf-input"},CHe=["disabled","placeholder"],Ed="000.000.000-00",THe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=o=>{const c=o.split(".").join("").split("-").join("");let d,p;if(d=0,c=="00000000000")return!1;for(let f=1;f<=9;f++)d=d+parseInt(c.substring(f-1,f))*(11-f);if(p=d*10%11,(p==10||p==11)&&(p=0),p!=parseInt(c.substring(9,10)))return!1;d=0;for(let f=1;f<=10;f++)d=d+parseInt(c.substring(f-1,f))*(12-f);return p=d*10%11,(p==10||p==11)&&(p=0),p==parseInt(c.substring(10,11))},i=o=>o?Wp(Ed,o)&&r(o):!0,a=o=>{const c=Ra(Ed,o);!u.value||(u.value.value=c,t("update:value",o))},l=o=>{const c=o.target;Wp(Ed,c.value)&&r(c.value)&&o.preventDefault()},s=()=>{var c;const o=[];i(Ra(Ed,n.value))||o.push((c=n.userProps.invalidMessage)!=null?c:""),t("update:errors",o)},u=Oe();return _t(()=>{!u.value||(u.value.value=Ra(Ed,n.value))}),ze(()=>n.value,()=>{!u.value||(u.value.value=Ra(Ed,n.value))}),(o,c)=>(oe(),pe("div",EHe,[x(Ln,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ee("input",{ref_key:"input",ref:u,class:Vt(["input",n.errors.length&&"error",o.userProps.disabled&&"disabled"]),disabled:o.userProps.disabled,placeholder:o.userProps.placeholder,onInput:c[0]||(c[0]=d=>a(d.target.value)),onKeypress:c[1]||(c[1]=d=>l(d)),onChange:s,onBlur:s},null,42,CHe)]))}}),wHe={class:"currency-input"},xHe={class:"input-wrapper"},OHe=["disabled","placeholder"],RHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Oe(),i=Oe(!1),a=d=>d.replace(/[^0-9]/g,""),l=d=>{const p=d.target.value,f=a(p),g=u(f),m=s(g);r.value.value=m,g!==n.value&&t("update:value",g)},s=d=>d===null?"":new Intl.NumberFormat(navigator.language,{style:"decimal",minimumFractionDigits:2}).format(d);function u(d){return d?parseInt(d)/100:null}const o=$(()=>Intl.NumberFormat("en-US",{maximumFractionDigits:0,currency:n.userProps.currency,style:"currency",currencyDisplay:"symbol"}).format(0).replace("0","")),c=$(()=>o.value.length*30+"px");return _t(()=>{r.value.value=s(n.value)}),ze(()=>n.value,()=>{r.value.value=s(n.value)}),(d,p)=>(oe(),pe("div",wHe,[x(Ln,{label:d.userProps.label,required:!!d.userProps.required,hint:d.userProps.hint},null,8,["label","required","hint"]),Ee("div",xHe,[Ee("div",{class:Vt(["symbol",{focused:i.value}])},Qt(o.value),3),Ee("input",{ref_key:"input",ref:r,style:Ni({paddingLeft:c.value}),class:Vt(["input",d.errors.length&&"error",d.userProps.disabled&&"disabled"]),disabled:d.userProps.disabled,placeholder:d.userProps.placeholder,onInput:l},null,46,OHe)])]))}});const IHe=Hn(RHe,[["__scopeId","data-v-a20018d1"]]),AHe={class:"custom-input",style:{height:"100%",width:"100%"}},NHe=["id","src"],DHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors","custom-event"],setup(e,{emit:t}){const n=e,r={width:"100%",height:n.userProps.height?`${n.userProps.height}px`:"100%",border:"none"},i=Oe(),a=Math.random().toString(36).slice(2),l=Oe(""),s=c=>typeof c=="object"&&c!==null&&"type"in c&&"id"in c&&c.id===a,u=c=>{!s(c.data)||(c.data.type==="change"?t("update:value",c.data.payload):t(c.data.type,c.data.payload))};_t(()=>{window.addEventListener("message",u),o()}),Xt(()=>{window.removeEventListener("message",u)}),ze(()=>n.value,(c,d)=>{Da.exports.isEqual(c,d)||o()}),ze(()=>n.userProps.value,(c,d)=>{Da.exports.isEqual(c,d)||o()}),ze(()=>`${n.userProps.htmlHead}${n.userProps.htmlBody}${n.userProps.css}${n.userProps.js}`,()=>o());const o=()=>{var h,v;const c="script",d=(v=(h=n.value)!=null?h:n.userProps.value)!=null?v:"",{htmlHead:p,htmlBody:f,css:g,js:m}=n.userProps;l.value=window.btoa(` +}`;var dn=AN(function(){return Un(ce,St+"return "+et).apply(n,Re)});if(dn.source=et,NS(dn))throw dn;return dn}function QW(_){return Vn(_).toLowerCase()}function XW(_){return Vn(_).toUpperCase()}function JW(_,E,A){if(_=Vn(_),_&&(A||E===n))return BI(_);if(!_||!(E=ga(E)))return _;var V=yo(_),Q=yo(E),ce=UI(V,Q),Re=HI(V,Q)+1;return kl(V,ce,Re).join("")}function eq(_,E,A){if(_=Vn(_),_&&(A||E===n))return _.slice(0,VI(_)+1);if(!_||!(E=ga(E)))return _;var V=yo(_),Q=HI(V,yo(E))+1;return kl(V,0,Q).join("")}function tq(_,E,A){if(_=Vn(_),_&&(A||E===n))return _.replace(le,"");if(!_||!(E=ga(E)))return _;var V=yo(_),Q=UI(V,yo(E));return kl(V,Q).join("")}function nq(_,E){var A=N,V=M;if(xr(E)){var Q="separator"in E?E.separator:Q;A="length"in E?cn(E.length):A,V="omission"in E?ga(E.omission):V}_=Vn(_);var ce=_.length;if(Ju(_)){var Re=yo(_);ce=Re.length}if(A>=ce)return _;var De=A-ed(V);if(De<1)return V;var Be=Re?kl(Re,0,De).join(""):_.slice(0,De);if(Q===n)return Be+V;if(Re&&(De+=Be.length-De),DS(Q)){if(_.slice(De).search(Q)){var Qe,Xe=Be;for(Q.global||(Q=qy(Q.source,Vn(gn.exec(Q))+"g")),Q.lastIndex=0;Qe=Q.exec(Xe);)var et=Qe.index;Be=Be.slice(0,et===n?De:et)}}else if(_.indexOf(ga(Q),De)!=De){var dt=Be.lastIndexOf(Q);dt>-1&&(Be=Be.slice(0,dt))}return Be+V}function rq(_){return _=Vn(_),_&&Fn.test(_)?_.replace(pt,DV):_}var iq=sd(function(_,E,A){return _+(A?" ":"")+E.toUpperCase()}),kS=NA("toUpperCase");function IN(_,E,A){return _=Vn(_),E=A?n:E,E===n?OV(_)?kV(_):vV(_):_.match(E)||[]}var AN=mn(function(_,E){try{return fa(_,n,E)}catch(A){return NS(A)?A:new en(A)}}),aq=Ms(function(_,E){return Ha(E,function(A){A=ts(A),Ds(_,A,IS(_[A],_))}),_});function oq(_){var E=_==null?0:_.length,A=Nt();return _=E?vr(_,function(V){if(typeof V[1]!="function")throw new za(l);return[A(V[0]),V[1]]}):[],mn(function(V){for(var Q=-1;++Qz)return[];var A=K,V=xi(_,K);E=Nt(E),_-=K;for(var Q=Yy(V,E);++A<_;)E(A);return Q}function Oq(_){return an(_)?vr(_,ts):ha(_)?[_]:Ki(QA(Vn(_)))}function Rq(_){var E=++BV;return Vn(_)+E}var Iq=kh(function(_,E){return _+E},0),Aq=_S("ceil"),Nq=kh(function(_,E){return _/E},1),Dq=_S("floor");function Pq(_){return _&&_.length?Rh(_,Xi,nS):n}function Mq(_,E){return _&&_.length?Rh(_,Nt(E,2),nS):n}function kq(_){return LI(_,Xi)}function $q(_,E){return LI(_,Nt(E,2))}function Lq(_){return _&&_.length?Rh(_,Xi,oS):n}function Fq(_,E){return _&&_.length?Rh(_,Nt(E,2),oS):n}var Bq=kh(function(_,E){return _*E},1),Uq=_S("round"),Hq=kh(function(_,E){return _-E},0);function zq(_){return _&&_.length?Gy(_,Xi):0}function Vq(_,E){return _&&_.length?Gy(_,Nt(E,2)):0}return ae.after=dj,ae.ary=lN,ae.assign=Xj,ae.assignIn=EN,ae.assignInWith=qh,ae.assignWith=Jj,ae.at=eW,ae.before=cN,ae.bind=IS,ae.bindAll=aq,ae.bindKey=uN,ae.castArray=Cj,ae.chain=aN,ae.chunk=D7,ae.compact=P7,ae.concat=M7,ae.cond=oq,ae.conforms=sq,ae.constant=$S,ae.countBy=zY,ae.create=tW,ae.curry=dN,ae.curryRight=pN,ae.debounce=fN,ae.defaults=nW,ae.defaultsDeep=rW,ae.defer=pj,ae.delay=fj,ae.difference=k7,ae.differenceBy=$7,ae.differenceWith=L7,ae.drop=F7,ae.dropRight=B7,ae.dropRightWhile=U7,ae.dropWhile=H7,ae.fill=z7,ae.filter=GY,ae.flatMap=WY,ae.flatMapDeep=qY,ae.flatMapDepth=KY,ae.flatten=tN,ae.flattenDeep=V7,ae.flattenDepth=G7,ae.flip=mj,ae.flow=cq,ae.flowRight=uq,ae.fromPairs=Y7,ae.functions=uW,ae.functionsIn=dW,ae.groupBy=ZY,ae.initial=W7,ae.intersection=q7,ae.intersectionBy=K7,ae.intersectionWith=Z7,ae.invert=fW,ae.invertBy=mW,ae.invokeMap=XY,ae.iteratee=LS,ae.keyBy=JY,ae.keys=oi,ae.keysIn=Qi,ae.map=zh,ae.mapKeys=hW,ae.mapValues=_W,ae.matches=dq,ae.matchesProperty=pq,ae.memoize=Gh,ae.merge=vW,ae.mergeWith=CN,ae.method=fq,ae.methodOf=mq,ae.mixin=FS,ae.negate=Yh,ae.nthArg=hq,ae.omit=bW,ae.omitBy=yW,ae.once=gj,ae.orderBy=ej,ae.over=_q,ae.overArgs=hj,ae.overEvery=vq,ae.overSome=bq,ae.partial=AS,ae.partialRight=mN,ae.partition=tj,ae.pick=SW,ae.pickBy=TN,ae.property=NN,ae.propertyOf=yq,ae.pull=eY,ae.pullAll=rN,ae.pullAllBy=tY,ae.pullAllWith=nY,ae.pullAt=rY,ae.range=Sq,ae.rangeRight=Eq,ae.rearg=_j,ae.reject=ij,ae.remove=iY,ae.rest=vj,ae.reverse=OS,ae.sampleSize=oj,ae.set=CW,ae.setWith=TW,ae.shuffle=sj,ae.slice=aY,ae.sortBy=uj,ae.sortedUniq=pY,ae.sortedUniqBy=fY,ae.split=WW,ae.spread=bj,ae.tail=mY,ae.take=gY,ae.takeRight=hY,ae.takeRightWhile=_Y,ae.takeWhile=vY,ae.tap=PY,ae.throttle=yj,ae.thru=Hh,ae.toArray=bN,ae.toPairs=wN,ae.toPairsIn=xN,ae.toPath=Oq,ae.toPlainObject=SN,ae.transform=wW,ae.unary=Sj,ae.union=bY,ae.unionBy=yY,ae.unionWith=SY,ae.uniq=EY,ae.uniqBy=CY,ae.uniqWith=TY,ae.unset=xW,ae.unzip=RS,ae.unzipWith=iN,ae.update=OW,ae.updateWith=RW,ae.values=ud,ae.valuesIn=IW,ae.without=wY,ae.words=IN,ae.wrap=Ej,ae.xor=xY,ae.xorBy=OY,ae.xorWith=RY,ae.zip=IY,ae.zipObject=AY,ae.zipObjectDeep=NY,ae.zipWith=DY,ae.entries=wN,ae.entriesIn=xN,ae.extend=EN,ae.extendWith=qh,FS(ae,ae),ae.add=Iq,ae.attempt=AN,ae.camelCase=PW,ae.capitalize=ON,ae.ceil=Aq,ae.clamp=AW,ae.clone=Tj,ae.cloneDeep=xj,ae.cloneDeepWith=Oj,ae.cloneWith=wj,ae.conformsTo=Rj,ae.deburr=RN,ae.defaultTo=lq,ae.divide=Nq,ae.endsWith=MW,ae.eq=Eo,ae.escape=kW,ae.escapeRegExp=$W,ae.every=VY,ae.find=YY,ae.findIndex=JA,ae.findKey=iW,ae.findLast=jY,ae.findLastIndex=eN,ae.findLastKey=aW,ae.floor=Dq,ae.forEach=oN,ae.forEachRight=sN,ae.forIn=oW,ae.forInRight=sW,ae.forOwn=lW,ae.forOwnRight=cW,ae.get=PS,ae.gt=Ij,ae.gte=Aj,ae.has=pW,ae.hasIn=MS,ae.head=nN,ae.identity=Xi,ae.includes=QY,ae.indexOf=j7,ae.inRange=NW,ae.invoke=gW,ae.isArguments=Hc,ae.isArray=an,ae.isArrayBuffer=Nj,ae.isArrayLike=Zi,ae.isArrayLikeObject=Ur,ae.isBoolean=Dj,ae.isBuffer=$l,ae.isDate=Pj,ae.isElement=Mj,ae.isEmpty=kj,ae.isEqual=$j,ae.isEqualWith=Lj,ae.isError=NS,ae.isFinite=Fj,ae.isFunction=$s,ae.isInteger=gN,ae.isLength=jh,ae.isMap=hN,ae.isMatch=Bj,ae.isMatchWith=Uj,ae.isNaN=Hj,ae.isNative=zj,ae.isNil=Gj,ae.isNull=Vj,ae.isNumber=_N,ae.isObject=xr,ae.isObjectLike=Nr,ae.isPlainObject=Rf,ae.isRegExp=DS,ae.isSafeInteger=Yj,ae.isSet=vN,ae.isString=Wh,ae.isSymbol=ha,ae.isTypedArray=cd,ae.isUndefined=jj,ae.isWeakMap=Wj,ae.isWeakSet=qj,ae.join=Q7,ae.kebabCase=LW,ae.last=ja,ae.lastIndexOf=X7,ae.lowerCase=FW,ae.lowerFirst=BW,ae.lt=Kj,ae.lte=Zj,ae.max=Pq,ae.maxBy=Mq,ae.mean=kq,ae.meanBy=$q,ae.min=Lq,ae.minBy=Fq,ae.stubArray=US,ae.stubFalse=HS,ae.stubObject=Cq,ae.stubString=Tq,ae.stubTrue=wq,ae.multiply=Bq,ae.nth=J7,ae.noConflict=gq,ae.noop=BS,ae.now=Vh,ae.pad=UW,ae.padEnd=HW,ae.padStart=zW,ae.parseInt=VW,ae.random=DW,ae.reduce=nj,ae.reduceRight=rj,ae.repeat=GW,ae.replace=YW,ae.result=EW,ae.round=Uq,ae.runInContext=$e,ae.sample=aj,ae.size=lj,ae.snakeCase=jW,ae.some=cj,ae.sortedIndex=oY,ae.sortedIndexBy=sY,ae.sortedIndexOf=lY,ae.sortedLastIndex=cY,ae.sortedLastIndexBy=uY,ae.sortedLastIndexOf=dY,ae.startCase=qW,ae.startsWith=KW,ae.subtract=Hq,ae.sum=zq,ae.sumBy=Vq,ae.template=ZW,ae.times=xq,ae.toFinite=Ls,ae.toInteger=cn,ae.toLength=yN,ae.toLower=QW,ae.toNumber=Wa,ae.toSafeInteger=Qj,ae.toString=Vn,ae.toUpper=XW,ae.trim=JW,ae.trimEnd=eq,ae.trimStart=tq,ae.truncate=nq,ae.unescape=rq,ae.uniqueId=Rq,ae.upperCase=iq,ae.upperFirst=kS,ae.each=oN,ae.eachRight=sN,ae.first=nN,FS(ae,function(){var _={};return Jo(ae,function(E,A){Wn.call(ae.prototype,A)||(_[A]=E)}),_}(),{chain:!1}),ae.VERSION=r,Ha(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){ae[_].placeholder=ae}),Ha(["drop","take"],function(_,E){En.prototype[_]=function(A){A=A===n?1:Jr(cn(A),0);var V=this.__filtered__&&!E?new En(this):this.clone();return V.__filtered__?V.__takeCount__=xi(A,V.__takeCount__):V.__views__.push({size:xi(A,K),type:_+(V.__dir__<0?"Right":"")}),V},En.prototype[_+"Right"]=function(A){return this.reverse()[_](A).reverse()}}),Ha(["filter","map","takeWhile"],function(_,E){var A=E+1,V=A==k||A==F;En.prototype[_]=function(Q){var ce=this.clone();return ce.__iteratees__.push({iteratee:Nt(Q,3),type:A}),ce.__filtered__=ce.__filtered__||V,ce}}),Ha(["head","last"],function(_,E){var A="take"+(E?"Right":"");En.prototype[_]=function(){return this[A](1).value()[0]}}),Ha(["initial","tail"],function(_,E){var A="drop"+(E?"":"Right");En.prototype[_]=function(){return this.__filtered__?new En(this):this[A](1)}}),En.prototype.compact=function(){return this.filter(Xi)},En.prototype.find=function(_){return this.filter(_).head()},En.prototype.findLast=function(_){return this.reverse().find(_)},En.prototype.invokeMap=mn(function(_,E){return typeof _=="function"?new En(this):this.map(function(A){return Ef(A,_,E)})}),En.prototype.reject=function(_){return this.filter(Yh(Nt(_)))},En.prototype.slice=function(_,E){_=cn(_);var A=this;return A.__filtered__&&(_>0||E<0)?new En(A):(_<0?A=A.takeRight(-_):_&&(A=A.drop(_)),E!==n&&(E=cn(E),A=E<0?A.dropRight(-E):A.take(E-_)),A)},En.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},En.prototype.toArray=function(){return this.take(K)},Jo(En.prototype,function(_,E){var A=/^(?:filter|find|map|reject)|While$/.test(E),V=/^(?:head|last)$/.test(E),Q=ae[V?"take"+(E=="last"?"Right":""):E],ce=V||/^find/.test(E);!Q||(ae.prototype[E]=function(){var Re=this.__wrapped__,De=V?[1]:arguments,Be=Re instanceof En,Qe=De[0],Xe=Be||an(Re),et=function(bn){var xn=Q.apply(ae,Il([bn],De));return V&&dt?xn[0]:xn};Xe&&A&&typeof Qe=="function"&&Qe.length!=1&&(Be=Xe=!1);var dt=this.__chain__,St=!!this.__actions__.length,Mt=ce&&!dt,dn=Be&&!St;if(!ce&&Xe){Re=dn?Re:new En(this);var kt=_.apply(Re,De);return kt.__actions__.push({func:Hh,args:[et],thisArg:n}),new Va(kt,dt)}return Mt&&dn?_.apply(this,De):(kt=this.thru(et),Mt?V?kt.value()[0]:kt.value():kt)})}),Ha(["pop","push","shift","sort","splice","unshift"],function(_){var E=fh[_],A=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",V=/^(?:pop|shift)$/.test(_);ae.prototype[_]=function(){var Q=arguments;if(V&&!this.__chain__){var ce=this.value();return E.apply(an(ce)?ce:[],Q)}return this[A](function(Re){return E.apply(an(Re)?Re:[],Q)})}}),Jo(En.prototype,function(_,E){var A=ae[E];if(A){var V=A.name+"";Wn.call(id,V)||(id[V]=[]),id[V].push({name:E,func:A})}}),id[Mh(n,v).name]=[{name:"wrapper",func:n}],En.prototype.clone=rG,En.prototype.reverse=iG,En.prototype.value=aG,ae.prototype.at=MY,ae.prototype.chain=kY,ae.prototype.commit=$Y,ae.prototype.next=LY,ae.prototype.plant=BY,ae.prototype.reverse=UY,ae.prototype.toJSON=ae.prototype.valueOf=ae.prototype.value=HY,ae.prototype.first=ae.prototype.head,gf&&(ae.prototype[gf]=FY),ae},td=$V();Pc?((Pc.exports=td)._=td,Ly._=td):pi._=td}).call(ra)})(Da,Da.exports);const OWe=Da.exports,JUe={class:"search"},eHe=["active","onClick"],tHe={key:0,class:"image-container"},nHe=["src"],rHe={class:"text-container"},iHe={key:0,class:"extra"},aHe={key:0,class:"left"},oHe={key:1,class:"right"},sHe={key:1,class:"card-title"},lHe={key:2,class:"card-subtitle"},cHe={key:3,class:"card-description"},uHe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors","card-click"],setup(e,{emit:t}){const n=e;function r(f,g){return Da.exports.isEqual(Da.exports.omit(f,["image"]),Da.exports.omit(g,["image"]))}const i=$(()=>{var f;return(f=n.userProps.options)!=null?f:[]}),a=$(()=>{var f;return(f=n.userProps.searchable)!=null?f:!1}),l=Oe(""),s=Oe(n.value);function u(f){return l.value?f.filter(g=>{var m,h,v;return((m=g.title)==null?void 0:m.toLowerCase().includes(l.value.toLowerCase()))||((h=g.subtitle)==null?void 0:h.toLowerCase().includes(l.value.toLowerCase()))||((v=g.description)==null?void 0:v.toLowerCase().includes(l.value.toLowerCase()))}):f}function o(f){return s.value.some(g=>r(g,f))}function c(f){o(f)?s.value=s.value.filter(m=>!r(m,f)):s.value=[...s.value,f]}function d(f){o(f)?s.value=[]:s.value=[f]}function p(f){n.userProps.disabled||(t("card-click",f),n.userProps.multiple?c(f):d(f),t("update:value",s.value))}return ze(()=>n.value,()=>{s.value=n.value}),(f,g)=>{var m;return oe(),pe("div",{class:"cards-input",style:Ni({"--grid-columns":(m=f.userProps.columns)!=null?m:2})},[x(Ln,{label:f.userProps.label,required:!!f.userProps.required,hint:f.userProps.hint},null,8,["label","required","hint"]),Ee("div",JUe,[a.value?mr((oe(),pe("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=h=>l.value=h),type:"text",class:"input",placeholder:"Search..."},null,512)),[[Au,l.value]]):ft("",!0)]),Ee("div",{class:Vt(["cards",f.userProps.layout||"list"])},[(oe(!0),pe(tt,null,Di(u(i.value),h=>(oe(),pe("div",{key:h.title,class:Vt(["card","clickable",f.userProps.layout||"list",{disabled:f.userProps.disabled}]),active:o(h),onClick:v=>p(h)},[h.image?(oe(),pe("div",tHe,[Ee("img",{class:"card-image",src:h.image},null,8,nHe)])):ft("",!0),Ee("main",rHe,[h.topLeftExtra||h.topRightExtra?(oe(),pe("div",iHe,[h.topLeftExtra?(oe(),pe("p",aHe,Qt(h.topLeftExtra),1)):ft("",!0),h.topRightExtra?(oe(),pe("p",oHe,Qt(h.topRightExtra),1)):ft("",!0)])):ft("",!0),h.title?(oe(),pe("h1",sHe,Qt(h.title),1)):ft("",!0),h.subtitle?(oe(),pe("h2",lHe,Qt(h.subtitle),1)):ft("",!0),h.description?(oe(),pe("p",cHe,Qt(h.description),1)):ft("",!0)])],10,eHe))),128))],2)],4)}}});const dHe=Hn(uHe,[["__scopeId","data-v-c4887666"]]),pHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=()=>{r.value=!r.value,t("update:value",r.value)};return ze(()=>n.value,()=>r.value=n.value),(a,l)=>{const s=Jd("Markdown");return oe(),Rn(je(gs),{disabled:a.userProps.disabled,checked:r.value,onClick:i},{default:pn(()=>[x(s,{source:a.userProps.label,html:""},null,8,["source"])]),_:1},8,["disabled","checked"])}}}),fHe={class:"checklist-input"},mHe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=a=>{t("update:errors",[]),t("update:value",a)};return ze(()=>n.value,()=>r.value=n.value),(a,l)=>(oe(),pe("div",fHe,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),x(je(Cg),{value:r.value,"onUpdate:value":l[0]||(l[0]=s=>r.value=s),disabled:a.userProps.disabled,options:a.userProps.options,onChange:l[1]||(l[1]=s=>i(s))},null,8,["value","disabled","options"])]))}});const gHe=Hn(mHe,[["__scopeId","data-v-0f1257be"]]),hHe={0:/\d/,a:/[a-zA-Z]/,"*":/./};function Ra(e,t){var l;if(e.length===0||t.length===0)return"";const n=_He(e,t),r=n[0],i=hHe[r];if(!i)return r+Ra(n.slice(1),t.startsWith(r)?t.slice(1):t);const a=t.match(i);return a?a[0]+Ra(n.slice(1),t.slice(((l=a.index)!=null?l:0)+1)):""}function Wp(e,t){return e.includes("|")?Mz(e).some(r=>r.length==t.length):t.length===e.length}function _He(e,t){if(!e.includes("|"))return e;const n=Mz(e);for(const r of n)if(t.replace(/\D/g,"").length<=r.replace(/\D/g,"").length)return r;return n[0]}function Mz(e){return e.split("|").sort((n,r)=>n.length-r.length)}const vHe=["disabled","placeholder"],Ff="00.000.000/0000-00",bHe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=u=>{if(!u||!(typeof u=="string")||u.length>18)return!1;const c=/^\d{14}$/.test(u),d=/^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/.test(u);if(!(c||d))return!1;const p=u.toString().match(/\d/g),f=Array.isArray(p)?p.map(Number):[];if(f.length!==14||[...new Set(f)].length===1)return!1;const m=y=>{const S=f.slice(0,y);let C=y-7,w=0;for(let O=y;O>=1;O--){const I=S[y-O];w+=I*C--,C<2&&(C=9)}const T=11-w%11;return T>9?0:T},h=f.slice(12);return m(12)!==h[0]?!1:m(13)===h[1]},i=Oe(),a=()=>{var o;const u=[];n.value!==""&&(!Wp(Ff,n.value)||!r(n.value))&&u.push((o=n.userProps.invalidMessage)!=null?o:""),t("update:errors",u)},l=u=>{const o=Ra(Ff,u);i.value.value=o,t("update:value",o)},s=u=>{const o=u.target;Wp(Ff,o.value)&&r(o.value)&&u.preventDefault()};return _t(()=>{!i.value||(i.value.value=Ra(Ff,n.value))}),ze(()=>n.value,()=>{!i.value||(i.value.value=Ra(Ff,n.value))}),(u,o)=>(oe(),pe(tt,null,[x(Ln,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ee("input",{ref_key:"input",ref:i,class:Vt(["input",u.errors.length&&"error",u.userProps.disabled&&"disabled"]),disabled:u.userProps.disabled,placeholder:u.userProps.placeholder,onInput:o[0]||(o[0]=c=>l(c.target.value)),onKeypress:o[1]||(o[1]=c=>s(c)),onChange:a,onBlur:a},null,42,vHe)],64))}}),yHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Oe(),i=async(a,l,s)=>{const o=(await Py(()=>import("./editor.main.aa5ba997.js"),["assets/editor.main.aa5ba997.js","assets/toggleHighContrast.db48a34e.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(a,{language:s,value:l,minimap:{enabled:!1},readOnly:n.userProps.disabled,contextmenu:!0,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}});o.onDidChangeModelContent(()=>{t("update:value",String(o.getValue()))})};return _t(()=>{var a;i(r.value,(a=n.value)!=null?a:"",n.userProps.language)}),(a,l)=>(oe(),pe(tt,null,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ee("div",{ref_key:"editor",ref:r,class:"input code-editor",style:{height:"500px"}},null,512)],64))}});const SHe=Hn(yHe,[["__scopeId","data-v-d10ec25a"]]),EHe={class:"cpf-input"},CHe=["disabled","placeholder"],Ed="000.000.000-00",THe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=o=>{const c=o.split(".").join("").split("-").join("");let d,p;if(d=0,c=="00000000000")return!1;for(let f=1;f<=9;f++)d=d+parseInt(c.substring(f-1,f))*(11-f);if(p=d*10%11,(p==10||p==11)&&(p=0),p!=parseInt(c.substring(9,10)))return!1;d=0;for(let f=1;f<=10;f++)d=d+parseInt(c.substring(f-1,f))*(12-f);return p=d*10%11,(p==10||p==11)&&(p=0),p==parseInt(c.substring(10,11))},i=o=>o?Wp(Ed,o)&&r(o):!0,a=o=>{const c=Ra(Ed,o);!u.value||(u.value.value=c,t("update:value",o))},l=o=>{const c=o.target;Wp(Ed,c.value)&&r(c.value)&&o.preventDefault()},s=()=>{var c;const o=[];i(Ra(Ed,n.value))||o.push((c=n.userProps.invalidMessage)!=null?c:""),t("update:errors",o)},u=Oe();return _t(()=>{!u.value||(u.value.value=Ra(Ed,n.value))}),ze(()=>n.value,()=>{!u.value||(u.value.value=Ra(Ed,n.value))}),(o,c)=>(oe(),pe("div",EHe,[x(Ln,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ee("input",{ref_key:"input",ref:u,class:Vt(["input",n.errors.length&&"error",o.userProps.disabled&&"disabled"]),disabled:o.userProps.disabled,placeholder:o.userProps.placeholder,onInput:c[0]||(c[0]=d=>a(d.target.value)),onKeypress:c[1]||(c[1]=d=>l(d)),onChange:s,onBlur:s},null,42,CHe)]))}}),wHe={class:"currency-input"},xHe={class:"input-wrapper"},OHe=["disabled","placeholder"],RHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Oe(),i=Oe(!1),a=d=>d.replace(/[^0-9]/g,""),l=d=>{const p=d.target.value,f=a(p),g=u(f),m=s(g);r.value.value=m,g!==n.value&&t("update:value",g)},s=d=>d===null?"":new Intl.NumberFormat(navigator.language,{style:"decimal",minimumFractionDigits:2}).format(d);function u(d){return d?parseInt(d)/100:null}const o=$(()=>Intl.NumberFormat("en-US",{maximumFractionDigits:0,currency:n.userProps.currency,style:"currency",currencyDisplay:"symbol"}).format(0).replace("0","")),c=$(()=>o.value.length*30+"px");return _t(()=>{r.value.value=s(n.value)}),ze(()=>n.value,()=>{r.value.value=s(n.value)}),(d,p)=>(oe(),pe("div",wHe,[x(Ln,{label:d.userProps.label,required:!!d.userProps.required,hint:d.userProps.hint},null,8,["label","required","hint"]),Ee("div",xHe,[Ee("div",{class:Vt(["symbol",{focused:i.value}])},Qt(o.value),3),Ee("input",{ref_key:"input",ref:r,style:Ni({paddingLeft:c.value}),class:Vt(["input",d.errors.length&&"error",d.userProps.disabled&&"disabled"]),disabled:d.userProps.disabled,placeholder:d.userProps.placeholder,onInput:l},null,46,OHe)])]))}});const IHe=Hn(RHe,[["__scopeId","data-v-a20018d1"]]),AHe={class:"custom-input",style:{height:"100%",width:"100%"}},NHe=["id","src"],DHe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors","custom-event"],setup(e,{emit:t}){const n=e,r={width:"100%",height:n.userProps.height?`${n.userProps.height}px`:"100%",border:"none"},i=Oe(),a=Math.random().toString(36).slice(2),l=Oe(""),s=c=>typeof c=="object"&&c!==null&&"type"in c&&"id"in c&&c.id===a,u=c=>{!s(c.data)||(c.data.type==="change"?t("update:value",c.data.payload):t(c.data.type,c.data.payload))};_t(()=>{window.addEventListener("message",u),o()}),Xt(()=>{window.removeEventListener("message",u)}),ze(()=>n.value,(c,d)=>{Da.exports.isEqual(c,d)||o()}),ze(()=>n.userProps.value,(c,d)=>{Da.exports.isEqual(c,d)||o()}),ze(()=>`${n.userProps.htmlHead}${n.userProps.htmlBody}${n.userProps.css}${n.userProps.js}`,()=>o());const o=()=>{var h,v;const c="script",d=(v=(h=n.value)!=null?h:n.userProps.value)!=null?v:"",{htmlHead:p,htmlBody:f,css:g,js:m}=n.userProps;l.value=window.btoa(` @@ -807,7 +807,7 @@ function print() { __p += __j.call(arguments, '') } `,zL=!1,Oze=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xze;sn(function(){zL||(typeof window<"u"&&window.document&&window.document.documentElement&&Tze(t,{prepend:!0}),zL=!0)})},Rze=["icon","primaryColor","secondaryColor"];function Ize(e,t){if(e==null)return{};var n=Aze(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Aze(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function U0(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Wze(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}Gz("#1890ff");var ff=function(t,n){var r,i=YL({},t,n.attrs),a=i.class,l=i.icon,s=i.spin,u=i.rotate,o=i.tabindex,c=i.twoToneColor,d=i.onClick,p=jze(i,Uze),f=(r={anticon:!0},dw(r,"anticon-".concat(l.name),Boolean(l.name)),dw(r,a,a),r),g=s===""||!!s||l.name==="loading"?"anticon-spin":"",m=o;m===void 0&&d&&(m=-1,p.tabindex=m);var h=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,v=Vz(c),b=Hze(v,2),y=b[0],S=b[1];return x("span",YL({role:"img","aria-label":l.name},p,{onClick:d,class:f}),[x(gI,{class:g,icon:l,primaryColor:y,secondaryColor:S,style:h},null)])};ff.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};ff.displayName="AntdIcon";ff.inheritAttrs=!1;ff.getTwoToneColor=Bze;ff.setTwoToneColor=Gz;const Ku=ff;function jL(e){for(var t=1;t{l.value=!0},u=()=>{l.value=!1},o=()=>{l.value=!1};return(c,d)=>(oe(),pe(tt,null,[x(je(Dke),{fileList:a.value,"onUpdate:fileList":d[0]||(d[0]=p=>a.value=p),accept:je(i).accept,action:je(i).action,method:je(i).method,"max-count":je(i).maxCount,headers:je(i).headers,data:je(i).customData,progress:je(i).progress,"before-upload":je(i).beforeUpload,multiple:c.multiple,disabled:c.disabled,"show-upload-list":!0,"list-type":"picture-card","is-image-url":()=>!1,onChange:je(i).handleChange,onReject:je(i).handleReject,onDragenter:s,onDragleave:u,onDrop:o,onPreview:je(r).handlePreview},{iconRender:pn(({file:p})=>[x(Oz,{file:p,ctrl:je(r),size:30},null,8,["file","ctrl"])]),previewIcon:pn(({file:p})=>[p.thumbUrl?(oe(),Rn(je(tVe),{key:0})):(oe(),Rn(je(Jze),{key:1}))]),default:pn(()=>[l.value?(oe(),pe("div",sVe,[Ee("p",lVe,[x(je(G$e),{class:"icon"})]),Ee("p",null,Qt(je(Oa).translate("i18n_upload_area_drop_here",c.locale)),1)])):(oe(),pe("div",cVe,[Ee("p",uVe,[x(je(y5e),{class:"icon"})]),Ee("p",null,Qt(je(Oa).translate("i18n_upload_area_click_or_drop_files",c.locale)),1)]))]),_:1},8,["fileList","accept","action","method","max-count","headers","data","progress","before-upload","multiple","disabled","onChange","onReject","onPreview"]),x(Rz,{ctrl:je(r)},null,8,["ctrl"])],64))}});const Yz=Hn(dVe,[["__scopeId","data-v-bf565d00"]]),pVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=r=>{t("update:value",r)};return(r,i)=>(oe(),pe(tt,null,[x(Ln,{label:r.userProps.label,required:!!r.userProps.required,hint:r.userProps.hint},null,8,["label","required","hint"]),x(Yz,{value:r.value,errors:r.errors,"accepted-formats":r.userProps.acceptedFormats||["*"],multiple:r.userProps.multiple,"max-file-size":r.userProps.maxFileSize,disabled:r.userProps.disabled,locale:r.locale,"onUpdate:value":n,"onUpdate:errors":i[0]||(i[0]=a=>r.$emit("update:errors",a))},null,8,["value","errors","accepted-formats","multiple","max-file-size","disabled","locale"])],64))}}),fVe={class:"icon-container"},mVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){return(n,r)=>(oe(),pe(tt,null,[x(Ln,{label:n.userProps.label,required:!!n.userProps.required,hint:n.userProps.hint},null,8,["label","required","hint"]),x(Nz,{capture:void 0,"accepted-formats":["image/*"],disabled:n.userProps.disabled,errors:n.errors,"list-type":"picture-card",multiple:n.userProps.multiple,value:n.value,locale:n.locale,"onUpdate:errors":r[0]||(r[0]=i=>t("update:errors",i)),"onUpdate:value":r[1]||(r[1]=i=>t("update:value",i))},{ui:pn(()=>[Ee("div",fVe,[x(je(ZFe))])]),_:1},8,["disabled","errors","multiple","value","locale"])],64))}});const gVe=Hn(mVe,[["__scopeId","data-v-f647e01c"]]),hVe={class:"list-input"},_Ve={class:"item-header"},vVe={key:0,class:"span-error"},bVe=Ce({__name:"component",props:{userProps:{},value:{},errors:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Oe([]),i=Oe(null),a=(b,y,S)=>{};function l(b){if(Da.exports.isEqual(b,n.userProps.schemas))return;const y=S=>S==null?void 0:S.reduce((C,w)=>({...C,[w.key]:w.value}),{});t("update:value",b.map(y))}function s(b){i.value=b}function u(b){if(i.value===null)return;const y=r.value[i.value];y.style.top=`${b.pageY}px`,y.style.left=`${b.pageX}px`,y.style.transform="translate(-50%, -50%)",y.style.position="fixed"}const o=b=>{if(i.value===null)return;const y=b.pageY,S=[];let C=0,w=0;n.userProps.schemas.forEach((T,O)=>{if(O===i.value){w=1;return}const I=r.value[O].getBoundingClientRect().top;if(y>I){S[O-w]=T;return}C||(S[O+C-w]=T,C=1),S[O+C-w]=T}),C||S.push(n.userProps.schemas[i.value]),l(S),i.value=null,r.value.forEach(T=>{T.style.position="static",T.style.transform="translate(0, 0)"})};_t(()=>{document.addEventListener("mouseup",o),document.addEventListener("mousemove",u)});const c=()=>{l([...n.userProps.schemas,null])};function d(b,y,S){var T;const C=Da.exports.cloneDeep(n.userProps.schemas),w=(T=C[b])==null?void 0:T.find(O=>O.key===y);w.value=S,l(C)}const p=Oe([]);function f(b,y){var w,T,O,I;const S=(w=n.userProps.schemas[b])==null?void 0:w.find(N=>N.key===y);return[...(T=S==null?void 0:S.errors)!=null?T:[],...(I=(O=p.value[b])==null?void 0:O[y])!=null?I:[]].map(N=>Oa.translateIfFound(N,n.locale))}function g(b,y,S){p.value[b]||(p.value[b]={}),p.value[b][y]=S,v()}function m(b){const y=Da.exports.cloneDeep(n.userProps.schemas);y.splice(b,1),l(y)}function h(b,y){var C;const S=(C=n.userProps.schemas[b])==null?void 0:C.find(w=>w.key===y);if(!S)throw new Error(`Could not find widget value for ${y} index ${b}`);return S.value}function v(){if(p.value.some(b=>Object.values(b).some(y=>y.length))){t("update:errors",["There are errors in the list"]);return}t("update:errors",[])}return(b,y)=>(oe(),pe("div",hVe,[(oe(!0),pe(tt,null,Di(b.userProps.schemas,(S,C)=>(oe(),pe("div",{key:C,ref_for:!0,ref:"listItems",class:Vt(["list-item","card",{dragging:i.value===C}])},[Ee("div",_Ve,[x(je(j4e),{class:"drag-handler",onMousedown:w=>s(C)},null,8,["onMousedown"]),!n.userProps.min||b.value.length>n.userProps.min?(oe(),Rn(je(X9e),{key:0,class:"close-button",onClick:w=>m(C)},null,8,["onClick"])):ft("",!0)]),(oe(!0),pe(tt,null,Di(S,(w,T)=>{var O;return oe(),pe("div",{key:(O=w.key)!=null?O:T,class:"widget list-widget"},[(oe(),Rn(hu(w.type),{ref_for:!0,ref:I=>a(I,C,w.key),value:h(C,w.key),errors:f(C,w.key),"user-props":w,"onUpdate:value":I=>d(C,w.key,I),"onUpdate:errors":I=>g(C,w.key,I)},null,40,["value","errors","user-props","onUpdate:value","onUpdate:errors"])),"key"in w&&f(C,w.key).length?(oe(),pe("span",vVe,Qt(f(C,w.key).join(` -`)),1)):ft("",!0)])}),128))],2))),128)),!n.userProps.max||b.value.length{t("update:errors",[]),t("update:value",[s])},l=s=>{t("update:errors",[]),t("update:value",s)};return ze(()=>n.value,()=>{r.value=n.value[0],i.value=n.value}),(s,u)=>(oe(),pe("div",SVe,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),s.userProps.multiple?(oe(),Rn(je(Cg),{key:1,value:i.value,"onUpdate:value":u[2]||(u[2]=o=>i.value=o),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[3]||(u[3]=o=>l(o))},null,8,["value","disabled","options"])):(oe(),Rn(je(pR),{key:0,value:r.value,"onUpdate:value":u[0]||(u[0]=o=>r.value=o),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[1]||(u[1]=o=>a(o.target.value))},null,8,["value","disabled","options"]))]))}});const CVe=Hn(EVe,[["__scopeId","data-v-8ef177a2"]]),TVe={class:"options"},wVe=["active","onClick"],xVe={class:"nps-hints"},OVe={class:"nps-hint"},RVe={class:"nps-hint"},IVe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=$(()=>{var u;return(u=n.userProps.max)!=null?u:10}),a=$(()=>{var u;return(u=n.userProps.min)!=null?u:0}),l=$(()=>Array(1+i.value-a.value).fill(null).map((u,o)=>o+a.value)),s=u=>{n.userProps.disabled||(r.value=u,t("update:value",r.value))};return ze(()=>n.value,()=>{r.value=n.value}),(u,o)=>(oe(),pe(tt,null,[x(Ln,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ee("div",TVe,[(oe(!0),pe(tt,null,Di(l.value,c=>(oe(),pe("button",{key:c,active:r.value!==c,class:Vt(["option","button",{disabled:u.userProps.disabled}]),onClick:d=>s(c)},Qt(c),11,wVe))),128))]),Ee("div",xVe,[Ee("div",OVe,Qt(u.userProps.minHint),1),Ee("div",RVe,Qt(u.userProps.maxHint),1)])],64))}});const AVe=Hn(IVe,[["__scopeId","data-v-3fd6eefc"]]),NVe={class:"number-input"},DVe=["disabled","placeholder"],PVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var i,a;const n=e,r=Oe((a=(i=n.value)==null?void 0:i.toString())!=null?a:"");return ze(r,l=>{if(l===""){t("update:value",null);return}const s=Number(l);t("update:value",s)}),ze(()=>n.value,l=>{r.value=(l==null?void 0:l.toString())||""}),(l,s)=>(oe(),pe("div",NVe,[x(Ln,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),mr(Ee("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),class:Vt(["input",l.errors.length&&"error",l.userProps.disabled&&"disabled"]),disabled:l.userProps.disabled,type:"number",placeholder:l.userProps.placeholder},null,10,DVe),[[Au,r.value]])]))}});const MVe=Hn(PVe,[["__scopeId","data-v-90c6530c"]]),kVe={class:"number-slider-input"},$Ve=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>{const s=String(l),u=i(Number(l));s!=a.value.value&&(a.value.value=s),u!=n.value&&t("update:value",u)},i=l=>l&&(n.userProps.min&&ln.userProps.max?n.userProps.max:l),a=Oe();return(l,s)=>(oe(),pe("div",kVe,[x(Ln,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(je(ANe),{ref_key:"input",ref:a,class:Vt([l.errors.length&&"error","slider"]),disabled:l.userProps.disabled,type:"range",min:l.userProps.min||0,max:l.userProps.max||100,step:l.userProps.step||1,onChange:s[0]||(s[0]=u=>r(u))},null,8,["class","disabled","min","max","step"])]))}});const LVe=Hn($Ve,[["__scopeId","data-v-3fcc105e"]]),FVe={style:{padding:"8px"}},BVe=["onclick"],UVe={key:1,class:"buttons"},HVe={key:0},zVe=Ce({__name:"ATable",props:{data:{},columns:{},enableSearch:{type:Boolean},editable:{type:Boolean},mainColor:{},actions:{},rowsPerPage:{},selectedIndexes:{},selectable:{},selectionDisabled:{type:Boolean}},emits:["rowEdit","actionClick","rowClick","update:selectedIndexes"],setup(e,{emit:t}){const n=e,r=$(()=>{var b;return(b=n.mainColor)!=null?b:"#D14056"}),i=un({searchText:"",searchedColumn:""}),a=Oe(),l=$(()=>n.data.map((y,S)=>({...y,key:S}))),s=$(()=>{const b=n.columns.map((y,S)=>({title:y.title,dataIndex:y.key,key:y.key,customFilterDropdown:!0,sorter:{compare:(C,w)=>typeof C[y.key]=="number"&&typeof w[y.key]=="number"?C[y.key]-w[y.key]:typeof C[y.key]=="string"&&typeof w[y.key]=="string"?C[y.key].localeCompare(w[y.key]):1,multiple:S},onFilter:(C,w)=>w[y.key].toString().toLowerCase().includes(C.toString().toLowerCase()),onFilterDropdownOpenChange:C=>{C&&sn().then(()=>{a.value.focus()})}}));if(n.editable||n.actions){const y=n.editable?80:0,S=n.actions?40:0;b.push({title:"",dataIndex:"buttons",width:y+S,fixed:"right",align:"center"})}return b}),u=(b,y,S)=>{y(),i.searchText=b[0],i.searchedColumn=S},o=b=>{b({confirm:!0}),i.searchText=""},c=un({}),d=b=>{t("rowClick",{row:b})},p=(b,y)=>{t("actionClick",{action:b,row:y})},f=b=>{c[b.index]={...b}},g=b=>{const y=n.data.filter(S=>S.index===b.index);t("rowEdit",{oldRow:y[0],newRow:c[b.index]}),delete c[b.index]},m=b=>{delete c[b.index]},h=Oe([]),v=$(()=>n.selectable?{type:{multiple:"checkbox",single:"radio"}[n.selectable],selectedRowKeys:n.selectedIndexes,onChange:(y,S)=>{h.value=y.map(C=>Number(C)),t("update:selectedIndexes",y.map(C=>Number(C)))},getCheckboxProps:y=>({disabled:n.selectionDisabled,name:y[n.columns[0].key]})}:void 0);return(b,y)=>(oe(),Rn(je(LPe),{"data-source":l.value,columns:s.value,pagination:{position:["bottomCenter"],defaultPageSize:n.rowsPerPage,showSizeChanger:!n.rowsPerPage},"row-selection":v.value,scroll:{x:n.columns.length*200}},bx({bodyCell:pn(({column:S,text:C,record:w})=>[n.columns.map(T=>T.key).includes(S.dataIndex)?(oe(),pe("div",{key:0,onclick:()=>d(w)},[c[w.index]?(oe(),Rn(je(Wr),{key:0,value:c[w.index][S.dataIndex],"onUpdate:value":T=>c[w.index][S.dataIndex]=T,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):(oe(),pe(tt,{key:1},[Zn(Qt(C),1)],64))],8,BVe)):S.dataIndex==="buttons"?(oe(),pe("div",UVe,[c[w.index]?(oe(),Rn(je(fr),{key:0,type:"text",onClick:T=>g(w)},{default:pn(()=>[x(je(aVe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),c[w.index]?(oe(),Rn(je(LAe),{key:1,title:"Sure to cancel?",onConfirm:T=>m(w)},{default:pn(()=>[x(je(fr),{type:"text"},{default:pn(()=>[x(je(Kze),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:1})]),_:2},1032,["onConfirm"])):ft("",!0),n.editable&&!c[w.index]?(oe(),Rn(je(fr),{key:2,type:"text",onClick:T=>f(w)},{default:pn(()=>[x(je(Qze),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),n.actions&&!c[w.index]?(oe(),Rn(je(pc),{key:3,trigger:"click"},{overlay:pn(()=>[x(je(lo),null,{default:pn(()=>[(oe(!0),pe(tt,null,Di(n.actions,T=>(oe(),Rn(je(zp),{key:T,type:"text",onClick:O=>p(T,w)},{default:pn(()=>[Zn(Qt(T),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),default:pn(()=>[x(je(fr),{type:"text"},{default:pn(()=>[x(je(rVe),{style:Ni({color:r.value})},null,8,["style"])]),_:1})]),_:2},1024)):ft("",!0)])):(oe(),pe(tt,{key:2},[i.searchText&&i.searchedColumn===S.dataIndex?(oe(),pe("span",HVe,[(oe(!0),pe(tt,null,Di(C.toString().split(new RegExp(`(?<=${i.searchText})|(?=${i.searchText})`,"i")),(T,O)=>(oe(),pe(tt,null,[T.toLowerCase()===i.searchText.toLowerCase()?(oe(),pe("mark",{key:O,class:"highlight"},Qt(T),1)):(oe(),pe(tt,{key:1},[Zn(Qt(T),1)],64))],64))),256))])):ft("",!0)],64))]),default:pn(()=>[n.enableSearch?(oe(),Rn(je(JL),{key:0,"two-tone-color":r.value},null,8,["two-tone-color"])):ft("",!0)]),_:2},[n.enableSearch?{name:"customFilterDropdown",fn:pn(({setSelectedKeys:S,selectedKeys:C,confirm:w,clearFilters:T,column:O})=>[Ee("div",FVe,[x(je(Wr),{ref_key:"searchInput",ref:a,placeholder:`Search ${O.dataIndex}`,value:C[0],style:{width:"188px","margin-bottom":"8px",display:"block"},onChange:I=>S(I.target.value?[I.target.value]:[]),onPressEnter:I=>u(C,w,O.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),x(je(fr),{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:I=>u(C,w,O.dataIndex)},{icon:pn(()=>[x(je(JL))]),default:pn(()=>[Zn(" Search ")]),_:2},1032,["onClick"]),x(je(fr),{size:"small",style:{width:"90px"},onClick:I=>o(T)},{default:pn(()=>[Zn(" Reset ")]),_:2},1032,["onClick"])])]),key:"0"}:void 0]),1032,["data-source","columns","pagination","row-selection","scroll"]))}});const jz=Hn(zVe,[["__scopeId","data-v-1575cdcb"]]),VVe=["height","width"],GVe=10,YVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe([]),i=$(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(s=>s.name!="index")).map(s=>({...s,title:s.name.toString(),key:s.name.toString()}))),a=s=>{Da.exports.isEqual(s,n.value)||t("update:value",s)},l=$(()=>{var s;return(s=n.userProps.pageSize)!=null?s:GVe});return ze(()=>r.value,()=>{a(r.value.map(s=>n.userProps.table.data[s]))}),_t(()=>{r.value=[...n.value]}),(s,u)=>(oe(),pe("div",{height:s.containerHeight,width:s.containerWidth},[x(Ln,{label:s.userProps.label,required:!1,hint:s.userProps.hint},null,8,["label","hint"]),x(jz,{data:s.userProps.table.data,"onUpdate:data":u[0]||(u[0]=o=>s.userProps.table.data=o),"selected-indexes":r.value,"onUpdate:selectedIndexes":u[1]||(u[1]=o=>r.value=o),"enable-search":"",columns:i.value,"rows-per-page":l.value,selectable:s.userProps.multiple?"multiple":"single","selection-disabled":s.userProps.disabled},null,8,["data","selected-indexes","columns","rows-per-page","selectable","selection-disabled"])],8,VVe))}}),jVe={class:"password-input"},WVe=["pattern","required","disabled","placeholder"],qVe=["required","placeholder"],KVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=$(()=>n.userProps.pattern?n.userProps.pattern:[()=>{const f=n.userProps.lowercaseRequired;let g="";return f&&(g+="(?=.*[a-z])"),g},()=>{const f=n.userProps.uppercaseRequired;let g="";return f&&(g+="(?=.*[A-Z])"),g},()=>{const f=n.userProps.digitRequired;let g="";return f&&(g+="(?=.*\\d)"),g},()=>{const f=n.userProps.specialRequired;let g="";return f&&(g+="(?=.*[!?@#$\\-%^&+=])"),g},()=>{var v,b,y;const f=(v=n.userProps.minLength)!=null?v:null,g=(b=n.userProps.maxLength)!=null?b:null,m=(y=n.userProps.size)!=null?y:null;let h="";return m?h+=`(.{${m},${m}})`:f&&g?h+=`(.{${f},${g}})`:f?h+=`(.{${f},})`:g&&(h+=`(.{,${g}})`),h}].reduce((f,g)=>f+g(),"")||null),i=()=>{const s=n.value,f=[()=>n.userProps.digitRequired&&!/[0-9]/.test(s)?"Your password must have at least one digit between 0 and 9":null,()=>{const g=/[a-z]/g;return n.userProps.lowercaseRequired&&!g.test(s)?"Your password must have at least one lowercase letter":null},()=>{var b,y,S;const g=(b=n.userProps.minLength)!=null?b:null,m=(y=n.userProps.maxLength)!=null?y:null,h=(S=n.userProps.size)!=null?S:null,v=s.length;return h&&v!==h?`Your password must have ${h} characters`:g&&m&&(vm)?`Your password must have between ${g} and ${m} characters`:g&&vm?`Your password must have at most ${m} characters`:null},()=>n.userProps.specialRequired&&!/[!?@#$\-%^&+=]/g.test(s)?"Your password must have at least one special character":null,()=>{const g=/[A-Z]/g;return n.userProps.uppercaseRequired&&!g.test(s)?"Your password must have at leat one uppercase letter":null}].reduce((g,m)=>{const h=m();return h&&g.push(h),g},[]);t("update:errors",f)},a=s=>{t("update:value",s)},l=Oe();return ze(()=>n.value,()=>{!l.value||(l.value.value=n.value)}),(s,u)=>(oe(),pe("div",jVe,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),pe("input",{key:0,ref_key:"input",ref:l,type:"password",pattern:r.value,required:!!s.userProps.required,class:Vt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onInput:u[0]||(u[0]=o=>a(o.target.value)),onBlur:i},null,42,WVe)):(oe(),pe("input",{key:1,ref_key:"input",ref:l,type:"password",required:!!s.userProps.required,class:Vt(["input",s.errors.length&&"error"]),placeholder:s.userProps.placeholder,onInput:u[1]||(u[1]=o=>a(o.target.value)),onBlur:i},null,42,qVe))]))}}),ZVe=[{code:"93",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"355",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"213",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"376",placeholder:"000-000",mask:"000-000"},{code:"244",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"1",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"54",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"374",placeholder:"00-000-000",mask:"00-000-000"},{code:"297",placeholder:"000-0000",mask:"000-0000"},{code:"61",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"43",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"994",placeholder:"00-000-00-00",mask:"00-000-00-00"},{code:"973",placeholder:"0000-0000",mask:"0000-0000"},{code:"880",placeholder:"1000-000000",mask:"1000-000000"},{code:"375",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"32",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"501",placeholder:"000-0000",mask:"000-0000"},{code:"229",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"975",placeholder:"17-000-000",mask:"17-000-000|0-000-000"},{code:"591",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"387",placeholder:"00-0000",mask:"00-0000|00-00000"},{code:"267",placeholder:"00-000-000",mask:"00-000-000"},{code:"55",placeholder:"(00)0000-0000",mask:"(00)0000-0000|(00)00000-0000"},{code:"673",placeholder:"000-0000",mask:"000-0000"},{code:"359",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"226",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"257",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"855",placeholder:"00-000-000",mask:"00-000-000"},{code:"237",placeholder:"0000-0000",mask:"0000-0000"},{code:"238",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"236",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"235",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"56",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"86",placeholder:"(000)0000-000",mask:"(000)0000-000|(000)0000-0000|00-00000-00000"},{code:"57",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"269",placeholder:"00-00000",mask:"00-00000"},{code:"242",placeholder:"00-00000",mask:"00-00000"},{code:"506",placeholder:"0000-0000",mask:"0000-0000"},{code:"385",placeholder:"00-000-000",mask:"00-000-000"},{code:"53",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"357",placeholder:"00-000-000",mask:"00-000-000"},{code:"420",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"243",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"45",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"253",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"593",placeholder:"0-000-0000",mask:"0-000-0000|00-000-0000"},{code:"20",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"503",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"240",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"291",placeholder:"0-000-000",mask:"0-000-000"},{code:"372",placeholder:"000-0000",mask:"000-0000|0000-0000"},{code:"268",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"251",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"679",placeholder:"00-00000",mask:"00-00000"},{code:"358",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"33",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"241",placeholder:"0-00-00-00",mask:"0-00-00-00"},{code:"220",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"995",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"49",placeholder:"000-000",mask:"000-000|(000)00-00|(000)00-000|(000)00-0000|(000)000-0000|(0000)000-0000"},{code:"233",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"30",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"502",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"224",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"245",placeholder:"0-000000",mask:"0-000000"},{code:"592",placeholder:"000-0000",mask:"000-0000"},{code:"509",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"504",placeholder:"0000-0000",mask:"0000-0000"},{code:"852",placeholder:"0000-0000",mask:"0000-0000"},{code:"36",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"354",placeholder:"000-0000",mask:"000-0000"},{code:"91",placeholder:"(0000)000-000",mask:"(0000)000-000"},{code:"62",placeholder:"00-000-00",mask:"00-000-00|00-000-000|00-000-0000|(800)000-000|(800)000-00-000"},{code:"98",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"924",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"353",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"972",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"39",placeholder:"(000)0000-000",mask:"(000)0000-000"},{code:"225",placeholder:"00-000-000",mask:"00-000-000"},{code:"81",placeholder:"(000)000-000",mask:"(000)000-000|00-0000-0000"},{code:"962",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"77",placeholder:"(600)000-00-00",mask:"(600)000-00-00|(700)000-00-00"},{code:"254",placeholder:"000-000000",mask:"000-000000"},{code:"850",placeholder:"000-000",mask:"000-000|0000-0000|00-000-000|000-0000-000|191-000-0000|0000-0000000000000"},{code:"82",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"965",placeholder:"0000-0000",mask:"0000-0000"},{code:"996",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"856",placeholder:"00-000-000",mask:"00-000-000|(2000)000-000"},{code:"371",placeholder:"00-000-000",mask:"00-000-000"},{code:"961",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"266",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"231",placeholder:"00-000-000",mask:"00-000-000"},{code:"218",placeholder:"00-000-000",mask:"00-000-000|21-000-0000"},{code:"423",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"370",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"352",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"261",placeholder:"00-00-00000",mask:"00-00-00000"},{code:"265",placeholder:"1-000-000",mask:"1-000-000|0-0000-0000"},{code:"60",placeholder:"0-000-000",mask:"0-000-000|00-000-000|(000)000-000|00-000-0000"},{code:"960",placeholder:"000-0000",mask:"000-0000"},{code:"223",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"356",placeholder:"0000-0000",mask:"0000-0000"},{code:"596",placeholder:"(000)00-00-00",mask:"(000)00-00-00"},{code:"222",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"230",placeholder:"000-0000",mask:"000-0000"},{code:"52",placeholder:"00-00-0000",mask:"00-00-0000|(000)000-0000"},{code:"691",placeholder:"000-0000",mask:"000-0000"},{code:"373",placeholder:"0000-0000",mask:"0000-0000"},{code:"377",placeholder:"00-000-000",mask:"00-000-000|(000)000-000"},{code:"976",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"382",placeholder:"00-000-000",mask:"00-000-000"},{code:"212",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"258",placeholder:"00-000-000",mask:"00-000-000"},{code:"95",placeholder:"000-000",mask:"000-000|0-000-000|00-000-000"},{code:"674",placeholder:"000-0000",mask:"000-0000"},{code:"977",placeholder:"00-000-000",mask:"00-000-000"},{code:"31",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"24",placeholder:"0-000-000",mask:"0-000-000|(000)000-000|(000)000-0000"},{code:"505",placeholder:"0000-0000",mask:"0000-0000"},{code:"227",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"234",placeholder:"00-000-00",mask:"00-000-00|00-000-000|(000)000-0000"},{code:"389",placeholder:"00-000-000",mask:"00-000-000"},{code:"47",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"968",placeholder:"00-000-000",mask:"00-000-000"},{code:"92",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"680",placeholder:"000-0000",mask:"000-0000"},{code:"970",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"507",placeholder:"000-0000",mask:"000-0000"},{code:"675",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"595",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"51",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"63",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"48",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"351",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"974",placeholder:"0000-0000",mask:"0000-0000"},{code:"40",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"7",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"250",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"685",placeholder:"00-0000",mask:"00-0000"},{code:"378",placeholder:"0000-000000",mask:"0000-000000"},{code:"239",placeholder:"00-00000",mask:"00-00000"},{code:"966",placeholder:"0-000-0000",mask:"0-000-0000|50-0000-0000"},{code:"221",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"381",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"248",placeholder:"0-000-000",mask:"0-000-000"},{code:"232",placeholder:"00-000000",mask:"00-000000"},{code:"65",placeholder:"0000-0000",mask:"0000-0000"},{code:"421",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"386",placeholder:"00-000-000",mask:"00-000-000"},{code:"677",placeholder:"00000",mask:"00000|000-0000"},{code:"252",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"27",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"211",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"34",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"94",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"249",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"597",placeholder:"000-000",mask:"000-000|000-0000"},{code:"46",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"41",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"963",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"992",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"255",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"66",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"670",placeholder:"000-0000",mask:"000-0000|770-00000|780-00000"},{code:"228",placeholder:"00-000-000",mask:"00-000-000"},{code:"676",placeholder:"00000",mask:"00000"},{code:"216",placeholder:"00-000-000",mask:"00-000-000"},{code:"90",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"993",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"256",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"380",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"971",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"44",placeholder:"00-0000-0000",mask:"00-0000-0000"},{code:"598",placeholder:"0-000-00-00",mask:"0-000-00-00"},{code:"998",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"678",placeholder:"00000",mask:"00000|00-00000"},{code:"58",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"84",placeholder:"00-0000-000",mask:"00-0000-000|(000)0000-000"},{code:"967",placeholder:"0-000-000",mask:"0-000-000|00-000-000|000-000-000"},{code:"260",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"263",placeholder:"",mask:""}],QVe={class:"phone-input"},XVe={class:"flex"},JVe=["value","disabled"],eGe=["value","disabled","placeholder"],tGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=$(()=>{var m;return n.userProps.placeholder||((m=s(a.value))==null?void 0:m.placeholder)||""}),i=Oe(u(n.value.nationalNumber,n.value.countryCode)),a=Oe(o(n.value.countryCode));function l(m){return m.replace(/\D/g,"")}function s(m){var h;return(h=ZVe.find(v=>v.code===l(m)))!=null?h:null}function u(m,h){var b;const v=(b=s(h))==null?void 0:b.mask;return v?Ra(v,m):""}function o(m){return Ra("+000",m)}function c(){t("update:value",{countryCode:l(a.value),nationalNumber:i.value})}const d=m=>{const h=m.target.value;a.value=o(h)},p=m=>{const h=m.target.value;a.value=o(h)},f=m=>{const h=m.target.value;i.value=u(h,a.value),c()},g=()=>{var b;if(!n.userProps.required&&!i.value&&!a.value){t("update:errors",[]);return}const m=[],h=(b=s(a.value))==null?void 0:b.mask;if(!h){t("update:errors",["i18n_error_invalid_country_code"]);return}Wp(h,i.value)||m.push(n.userProps.invalidMessage),t("update:errors",m)};return Rt(()=>{i.value=u(n.value.nationalNumber,n.value.countryCode),a.value=o(n.value.countryCode)}),(m,h)=>(oe(),pe("div",QVe,[x(Ln,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ee("div",XVe,[Ee("input",{value:a.value,class:Vt(["select",["input",m.errors.length&&"error"]]),maxlength:"4",placeholder:"+1",disabled:m.userProps.disabled,onInput:p,onChange:d,onBlur:g},null,42,JVe),Ee("input",{value:i.value,class:Vt(["input",m.errors.length&&"error"]),disabled:m.userProps.disabled||!s(a.value),placeholder:r.value,onBlur:g,onInput:f,onChange:g},null,42,eGe)])]))}});const nGe=Hn(tGe,[["__scopeId","data-v-9372fb2a"]]),rGe={class:"rating-input"},iGe={ref:"input",class:"rating-icons"},aGe=["onClick"],oGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=s=>{var u;return s<((u=i.value)!=null?u:0)},i=Oe(n.value),a=$(()=>{var s,u;return Array((s=n.userProps.max)!=null?s:5).fill((u=n.userProps.char)!=null?u:"\u2B50")}),l=s=>{n.userProps.disabled||(i.value=s,t("update:value",i.value))};return ze(()=>n.value,()=>{i.value=n.value}),(s,u)=>(oe(),pe("div",rGe,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ee("div",iGe,[(oe(!0),pe(tt,null,Di(a.value,(o,c)=>(oe(),pe("div",{key:c,class:Vt(["rating-icon",{active:r(c),disabled:s.userProps.disabled}]),tabindex:"0",onClick:d=>l(c+1)},Qt(o),11,aGe))),128))],512)]))}});const sGe=Hn(oGe,[["__scopeId","data-v-1108054a"]]);const lGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(null);window.document&&Py(()=>import("./vue-quill.esm-bundler.7a334f9f.js"),[]).then(s=>{r.value=s.QuillEditor});const i=()=>{var u,o;const s=(o=(u=a.value)==null?void 0:u.getHTML())!=null?o:"";t("update:value",s)},a=Oe(),l=()=>{var s;n.value&&((s=a.value)==null||s.setHTML(n.value))};return ze(()=>n.value,()=>{var u;(((u=a.value)==null?void 0:u.getHTML())||"")!==n.value&&l()}),(s,u)=>(oe(),pe(tt,null,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),Rn(hu(r.value),{key:0,ref_key:"input",ref:a,style:{height:"100%"},class:Vt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onReady:l,"onUpdate:content":u[0]||(u[0]=o=>i())},null,40,["class","disabled","placeholder"])):ft("",!0)],64))}});const cGe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",uGe={class:"tag-input"},dGe={class:"tags"},pGe={class:"remove-icon",viewBox:"0 0 24 24"},fGe=["d"],mGe=["disabled","placeholder"],gGe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var u;const n=e,r=cGe,i=Oe((u=n.value)!=null?u:[]),a=o=>{n.userProps.disabled||!o||i.value.some(c=>c===o)||(i.value=[...i.value,o],t("update:value",i.value),s.value.value="")},l=o=>{n.userProps.disabled||(i.value=i.value.filter((c,d)=>d!==o),t("update:value",i.value))},s=Oe();return ze(()=>n.value,()=>{var o;i.value=(o=n.value)!=null?o:[]}),(o,c)=>(oe(),pe(tt,null,[x(Ln,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ee("div",uGe,[Ee("div",dGe,[(oe(!0),pe(tt,null,Di(i.value,(d,p)=>(oe(),pe("div",{key:d,class:"tag"},[Zn(Qt(d)+" ",1),x(je(fr),{class:"remove-tag",type:"text",onClick:f=>l(p)},{default:pn(()=>[(oe(),pe("svg",pGe,[Ee("path",{d:je(r)},null,8,fGe)]))]),_:2},1032,["onClick"])]))),128))]),Ee("input",{ref_key:"input",ref:s,class:Vt(["input",{disabled:o.userProps.disabled}]),disabled:o.userProps.disabled,type:"text",placeholder:o.userProps.placeholder,onChange:c[0]||(c[0]=d=>a(d.target.value)),onKeyup:c[1]||(c[1]=Ox(d=>a(d.target.value),["enter"]))},null,42,mGe)])],64))}});const hGe=Hn(gGe,[["__scopeId","data-v-c12d89f6"]]),_Ge={class:"text-input"},vGe=["disabled","placeholder"],bGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(),i=s=>{const u=n.userProps.mask?Ra(n.userProps.mask,s):s;r.value.value=u,t("update:value",u)},a=s=>{const u=s.target;n.userProps.mask&&Wp(n.userProps.mask,u.value)&&s.preventDefault()};_t(()=>{l()}),ze(()=>n.value,()=>{l()});function l(){n.value&&r.value&&(n.userProps.mask?r.value.value=Ra(n.userProps.mask,n.value):r.value.value=n.value)}return(s,u)=>(oe(),pe("div",_Ge,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ee("input",{ref_key:"input",ref:r,class:Vt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onKeypress:u[0]||(u[0]=o=>a(o)),onInput:u[1]||(u[1]=o=>i(o.target.value))},null,42,vGe)]))}}),yGe=["disabled","placeholder"],SGe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=a=>{i.value.value=a,t("update:value",a)},i=Oe();return _t(()=>{i.value.value=n.value||""}),ze(()=>n.value,()=>{i.value.value=n.value||""}),(a,l)=>(oe(),pe(tt,null,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ee("textarea",{ref_key:"input",ref:i,style:{height:"100%"},class:Vt(["input",a.errors.length&&"error",a.userProps.disabled&&"disabled"]),disabled:a.userProps.disabled,placeholder:a.userProps.placeholder,onInput:l[0]||(l[0]=s=>r(s.target.value))},null,42,yGe)],64))}});const EGe={class:"time-input"},CGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>l?`${l.hour.toString().padStart(2,"0")}:${l.minute.toString().padStart(2,"0")}`:void 0,i=Oe(r(n.value)),a=(l,s)=>{const[u,o]=s.split(":"),c={hour:parseInt(u),minute:parseInt(o)};t("update:value",c)};return ze(()=>n.value,l=>{i.value=r(l)}),(l,s)=>(oe(),pe("div",EGe,[x(Ln,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(je(VPe),{value:i.value,"onUpdate:value":s[0]||(s[0]=u=>i.value=u),type:"time",class:"input",format:"HH:mm","value-format":"HH:mm",disabled:l.userProps.disabled,onChange:a},null,8,["value","disabled"])]))}});const TGe=Hn(CGe,[["__scopeId","data-v-31786bbd"]]),wGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=()=>{n.userProps.disabled||(r.value=!r.value,t("update:value",r.value))};return ze(()=>n.value,()=>{r.value=n.value}),(a,l)=>(oe(),pe(tt,null,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),x(je(UNe),{checked:r.value,style:{"align-self":"flex-start"},onChange:i},null,8,["checked"])],64))}}),xGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){return(n,r)=>(oe(),pe(tt,null,[x(Ln,{label:n.userProps.label,required:!!n.userProps.required,hint:n.userProps.hint},null,8,["label","required","hint"]),x(Yz,{"accepted-formats":["video/*"],disabled:n.userProps.disabled,errors:n.errors,"list-type":"picture-card",multiple:n.userProps.multiple,value:n.value,locale:n.locale,"onUpdate:errors":r[0]||(r[0]=i=>t("update:errors",i)),"onUpdate:value":r[1]||(r[1]=i=>t("update:value",i))},null,8,["disabled","errors","multiple","value","locale"])],64))}}),RWe={"appointment-input":vUe,"camera-input":XUe,"cards-input":dHe,"checkbox-input":pHe,"checklist-input":gHe,"cnpj-input":bHe,"code-input":SHe,"cpf-input":THe,"currency-input":IHe,"custom-input":DHe,"date-input":$He,"dropdown-input":vze,"email-input":Sze,"file-input":pVe,"image-input":gVe,"list-input":yVe,"multiple-choice-input":CVe,"nps-input":AVe,"number-input":MVe,"number-slider-input":LVe,"pandas-row-selection-input":YVe,"password-input":KVe,"phone-input":nGe,"rating-input":sGe,"rich-text-input":lGe,"tag-input":hGe,"text-input":bGe,"textarea-input":SGe,"time-input":TGe,"toggle-input":wGe,"video-input":xGe},OGe=e=>(j8("data-v-1e783ab3"),e=e(),W8(),e),RGe={class:"file-output"},IGe=["href"],AGe=OGe(()=>Ee("iframe",{src:"about:blank",name:"iframe_a",class:"target-frame"},null,-1)),NGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r;return oe(),pe("div",RGe,[Ee("a",{href:t.userProps.fileUrl,class:"download-button button",target:"iframe_a",download:""},[x(je(m6e)),Zn(" "+Qt((r=t.userProps.downloadText)!=null?r:"Download"),1)],8,IGe),AGe])}}});const DGe=Hn(NGe,[["__scopeId","data-v-1e783ab3"]]),PGe=["innerHTML"],MGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),pe("div",{innerHTML:t.userProps.html},null,8,PGe))}}),kGe=["src","width","height"],$Ge=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r,i;return oe(),pe("iframe",{class:"iframe",src:t.userProps.url,width:(r=t.userProps.width)!=null?r:void 0,height:(i=t.userProps.height)!=null?i:void 0},null,8,kGe)}}});const LGe=Hn($Ge,[["__scopeId","data-v-75daa443"]]),FGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),pe(tt,null,[x(Ln,{label:t.userProps.label,required:!1},null,8,["label"]),x(je(MIe),{src:t.userProps.imageUrl,alt:t.userProps.subtitle},null,8,["src","alt"])],64))}}),BGe=Ce({__name:"component",props:{userProps:{}},setup(e){const t=Oe(null);return _t(async()=>{await Promise.all([$L("https://polyfill.io/v3/polyfill.min.js?features=es6"),$L("https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js")]),window.MathJax.typesetPromise([t.value])}),(n,r)=>(oe(),pe("div",{ref_key:"latex",ref:t,class:"latex"},Qt(n.userProps.text),513))}});const UGe=Hn(BGe,[["__scopeId","data-v-9c539437"]]),HGe=["href","target"],zGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),pe("a",{class:"link",href:t.userProps.linkUrl,target:t.userProps.sameTab?"":"_blank"},Qt(t.userProps.linkText),9,HGe))}}),VGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{const r=Jd("Markdown");return oe(),Rn(r,{class:"markdown-output",source:t.userProps.text,html:""},null,8,["source"])}}});const GGe=Hn(VGe,[["__scopeId","data-v-f5ecf31f"]]),YGe=["height","width"],jGe=10,WGe=Ce({__name:"component",props:{userProps:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["row-click","action-click","row-edit"],setup(e,{emit:t}){const n=e,r=Oe(null),i=({action:o,row:c})=>{t("action-click",{action:o,userProps:c})};function a({row:o}){t("row-click",{userProps:o.userProps,index:o.index})}function l({oldRow:o,newRow:c}){const d=WUe(o,c);t("row-edit",{old:o,new:d,index:o.index})}ze(n.userProps.table.data,()=>{});const s=$(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(o=>o.name!="index")).map(o=>({...o,title:o.name.toString(),key:o.name.toString()}))),u=$(()=>{var o;return(o=n.userProps.pageSize)!=null?o:jGe});return(o,c)=>{var d;return oe(),pe("div",{height:o.containerHeight,width:o.containerWidth},[x(Ln,{ref_key:"label",ref:r,label:n.userProps.label,required:!1},null,8,["label"]),x(jz,{data:o.userProps.table.data,columns:s.value,"rows-per-page":u.value,"enable-search":"",actions:(d=n.userProps.actions)!=null&&d.length?n.userProps.actions:void 0,onActionClick:i,onRowClick:a,onRowEdit:l},null,8,["data","columns","rows-per-page","actions"])],8,YGe)}}}),qGe=Ce({__name:"component",props:{userProps:{}},setup(e){const t=e,n=Oe(null);_t(async()=>{r()});const r=async()=>{if(!n.value)return;(await Py(()=>import("./plotly.min.da1521bf.js").then(a=>a.p),[])).newPlot(n.value,t.userProps.figure.data,t.userProps.figure.layout)};return ze(()=>t.userProps.figure,r,{deep:!0}),(i,a)=>(oe(),pe(tt,null,[x(Ln,{label:i.userProps.label,required:!1},null,8,["label"]),Ee("div",{ref_key:"root",ref:n,class:"chart"},null,512)],64))}});const KGe=Hn(qGe,[["__scopeId","data-v-0c65d6dd"]]),ZGe={class:"progress-output"},QGe={class:"progress-container"},XGe={class:"progress-text label"},JGe=Ce({__name:"component",props:{userProps:{}},setup(e){const t=e,n=$(()=>{const{current:r,total:i}=t.userProps;return{width:`calc(${Math.min(100*r/i,100).toFixed(2)}% - 6px)`}});return(r,i)=>(oe(),pe("div",ZGe,[Ee("div",QGe,[Ee("div",{class:"progress-content",style:Ni(n.value)},null,4)]),Ee("div",XGe,Qt(r.userProps.text),1)]))}});const e7e=Hn(JGe,[["__scopeId","data-v-6fc80314"]]),t7e=Ce({__name:"component",props:{userProps:{}},setup(e){const t=e;function n(i){switch(i){case"small":return"12px";case"medium":return"16px";case"large":return"24px";default:return"16px"}}const r=$(()=>({fontSize:n(t.userProps.size)}));return(i,a)=>(oe(),pe("div",{class:"text",style:Ni(r.value)},Qt(i.userProps.text),5))}}),n7e={class:"start-widget"},r7e={class:"title"},i7e={key:0,class:"start-message"},a7e=Ce({__name:"component",props:{form:{}},setup(e){return(t,n)=>(oe(),pe("div",n7e,[Ee("div",r7e,Qt(t.form.welcomeTitle||t.form.title),1),t.form.startMessage?(oe(),pe("div",i7e,Qt(t.form.startMessage),1)):ft("",!0)]))}});const o7e=Hn(a7e,[["__scopeId","data-v-93314670"]]),s7e={class:"text"},l7e=Ce({__name:"component",props:{endMessage:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),pe("div",s7e,Qt((r=t.endMessage)!=null?r:je(Oa).translate("i18n_end_message",t.locale)),1)}}});const c7e=Hn(l7e,[["__scopeId","data-v-a30dba0a"]]),u7e={class:"text"},d7e={key:0,class:"session-id"},p7e=Ce({__name:"component",props:{errorMessage:{},executionId:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),pe("div",u7e,[Zn(Qt((r=t.errorMessage)!=null?r:je(Oa).translate("i18n_error_message",t.locale))+" ",1),t.executionId?(oe(),pe("div",d7e,"Run ID: "+Qt(t.executionId),1)):ft("",!0)])}}});const f7e=Hn(p7e,[["__scopeId","data-v-a406885c"]]),IWe={start:o7e,end:c7e,error:f7e},AWe={"file-output":DGe,"html-output":MGe,"iframe-output":LGe,"image-output":FGe,"latex-output":UGe,"link-output":zGe,"markdown-output":GGe,"pandas-output":WGe,"plotly-output":KGe,"progress-output":e7e,"text-output":t7e},Ri={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},e4={ripple:!1,inputStyle:"outlined",locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[Ri.STARTS_WITH,Ri.CONTAINS,Ri.NOT_CONTAINS,Ri.ENDS_WITH,Ri.EQUALS,Ri.NOT_EQUALS],numeric:[Ri.EQUALS,Ri.NOT_EQUALS,Ri.LESS_THAN,Ri.LESS_THAN_OR_EQUAL_TO,Ri.GREATER_THAN,Ri.GREATER_THAN_OR_EQUAL_TO],date:[Ri.DATE_IS,Ri.DATE_IS_NOT,Ri.DATE_BEFORE,Ri.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100}},m7e=Symbol();var NWe={install:(e,t)=>{let n=t?{...e4,...t}:{...e4};const r={config:un(n)};e.config.globalProperties.$primevue=r,e.provide(m7e,r)}},g7e={name:"Message",emits:["close"],props:{severity:{type:String,default:"info"},closable:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},life:{type:Number,default:3e3},icon:{type:String,default:null},closeIcon:{type:String,default:"pi pi-times"},closeButtonProps:{type:null,default:null}},timeout:null,data(){return{visible:!0}},mounted(){this.sticky||this.x()},methods:{close(e){this.visible=!1,this.$emit("close",e)},x(){setTimeout(()=>{this.visible=!1},this.life)}},computed:{containerClass(){return"p-message p-component p-message-"+this.severity},iconClass(){return["p-message-icon pi",this.icon?this.icon:{"pi-info-circle":this.severity==="info","pi-check":this.severity==="success","pi-exclamation-triangle":this.severity==="warn","pi-times-circle":this.severity==="error"}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:mI}};const h7e={class:"p-message-wrapper"},_7e={class:"p-message-text"},v7e=["aria-label"];function b7e(e,t,n,r,i,a){const l=ef("ripple");return oe(),Rn(Ti,{name:"p-message",appear:""},{default:pn(()=>[mr(Ee("div",{class:Vt(a.containerClass),role:"alert","aria-live":"assertive","aria-atomic":"true"},[Ee("div",h7e,[Ee("span",{class:Vt(a.iconClass)},null,2),Ee("div",_7e,[Et(e.$slots,"default")]),n.closable?mr((oe(),pe("button",An({key:0,class:"p-message-close p-link","aria-label":a.closeAriaLabel,type:"button",onClick:t[0]||(t[0]=s=>a.close(s))},n.closeButtonProps),[Ee("i",{class:Vt(["p-message-close-icon",n.closeIcon])},null,2)],16,v7e)),[[l]]):ft("",!0)])],2),[[Pa,i.visible]])]),_:3})}function y7e(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var S7e=` +`)),1)):ft("",!0)])}),128))],2))),128)),!n.userProps.max||b.value.length{t("update:errors",[]),t("update:value",[s])},l=s=>{t("update:errors",[]),t("update:value",s)};return ze(()=>n.value,()=>{r.value=n.value[0],i.value=n.value}),(s,u)=>(oe(),pe("div",SVe,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),s.userProps.multiple?(oe(),Rn(je(Cg),{key:1,value:i.value,"onUpdate:value":u[2]||(u[2]=o=>i.value=o),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[3]||(u[3]=o=>l(o))},null,8,["value","disabled","options"])):(oe(),Rn(je(pR),{key:0,value:r.value,"onUpdate:value":u[0]||(u[0]=o=>r.value=o),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[1]||(u[1]=o=>a(o.target.value))},null,8,["value","disabled","options"]))]))}});const CVe=Hn(EVe,[["__scopeId","data-v-8ef177a2"]]),TVe={class:"options"},wVe=["active","onClick"],xVe={class:"nps-hints"},OVe={class:"nps-hint"},RVe={class:"nps-hint"},IVe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=$(()=>{var u;return(u=n.userProps.max)!=null?u:10}),a=$(()=>{var u;return(u=n.userProps.min)!=null?u:0}),l=$(()=>Array(1+i.value-a.value).fill(null).map((u,o)=>o+a.value)),s=u=>{n.userProps.disabled||(r.value=u,t("update:value",r.value))};return ze(()=>n.value,()=>{r.value=n.value}),(u,o)=>(oe(),pe(tt,null,[x(Ln,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ee("div",TVe,[(oe(!0),pe(tt,null,Di(l.value,c=>(oe(),pe("button",{key:c,active:r.value!==c,class:Vt(["option","button",{disabled:u.userProps.disabled}]),onClick:d=>s(c)},Qt(c),11,wVe))),128))]),Ee("div",xVe,[Ee("div",OVe,Qt(u.userProps.minHint),1),Ee("div",RVe,Qt(u.userProps.maxHint),1)])],64))}});const AVe=Hn(IVe,[["__scopeId","data-v-3fd6eefc"]]),NVe={class:"number-input"},DVe=["disabled","placeholder"],PVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var i,a;const n=e,r=Oe((a=(i=n.value)==null?void 0:i.toString())!=null?a:"");return ze(r,l=>{if(l===""){t("update:value",null);return}const s=Number(l);t("update:value",s)}),ze(()=>n.value,l=>{r.value=(l==null?void 0:l.toString())||""}),(l,s)=>(oe(),pe("div",NVe,[x(Ln,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),mr(Ee("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),class:Vt(["input",l.errors.length&&"error",l.userProps.disabled&&"disabled"]),disabled:l.userProps.disabled,type:"number",placeholder:l.userProps.placeholder},null,10,DVe),[[Au,r.value]])]))}});const MVe=Hn(PVe,[["__scopeId","data-v-90c6530c"]]),kVe={class:"number-slider-input"},$Ve=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>{const s=String(l),u=i(Number(l));s!=a.value.value&&(a.value.value=s),u!=n.value&&t("update:value",u)},i=l=>l&&(n.userProps.min&&ln.userProps.max?n.userProps.max:l),a=Oe();return(l,s)=>(oe(),pe("div",kVe,[x(Ln,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(je(ANe),{ref_key:"input",ref:a,class:Vt([l.errors.length&&"error","slider"]),disabled:l.userProps.disabled,type:"range",min:l.userProps.min||0,max:l.userProps.max||100,step:l.userProps.step||1,onChange:s[0]||(s[0]=u=>r(u))},null,8,["class","disabled","min","max","step"])]))}});const LVe=Hn($Ve,[["__scopeId","data-v-3fcc105e"]]),FVe={style:{padding:"8px"}},BVe=["onclick"],UVe={key:1,class:"buttons"},HVe={key:0},zVe=Ce({__name:"ATable",props:{data:{},columns:{},enableSearch:{type:Boolean},editable:{type:Boolean},mainColor:{},actions:{},rowsPerPage:{},selectedIndexes:{},selectable:{},selectionDisabled:{type:Boolean}},emits:["rowEdit","actionClick","rowClick","update:selectedIndexes"],setup(e,{emit:t}){const n=e,r=$(()=>{var b;return(b=n.mainColor)!=null?b:"#D14056"}),i=un({searchText:"",searchedColumn:""}),a=Oe(),l=$(()=>n.data.map((y,S)=>({...y,key:S}))),s=$(()=>{const b=n.columns.map((y,S)=>({title:y.title,dataIndex:y.key,key:y.key,customFilterDropdown:!0,sorter:{compare:(C,w)=>typeof C[y.key]=="number"&&typeof w[y.key]=="number"?C[y.key]-w[y.key]:typeof C[y.key]=="string"&&typeof w[y.key]=="string"?C[y.key].localeCompare(w[y.key]):1,multiple:S},onFilter:(C,w)=>w[y.key].toString().toLowerCase().includes(C.toString().toLowerCase()),onFilterDropdownOpenChange:C=>{C&&sn().then(()=>{a.value.focus()})}}));if(n.editable||n.actions){const y=n.editable?80:0,S=n.actions?40:0;b.push({title:"",dataIndex:"buttons",width:y+S,fixed:"right",align:"center"})}return b}),u=(b,y,S)=>{y(),i.searchText=b[0],i.searchedColumn=S},o=b=>{b({confirm:!0}),i.searchText=""},c=un({}),d=b=>{t("rowClick",{row:b})},p=(b,y)=>{t("actionClick",{action:b,row:y})},f=b=>{c[b.index]={...b}},g=b=>{const y=n.data.filter(S=>S.index===b.index);t("rowEdit",{oldRow:y[0],newRow:c[b.index]}),delete c[b.index]},m=b=>{delete c[b.index]},h=Oe([]),v=$(()=>n.selectable?{type:{multiple:"checkbox",single:"radio"}[n.selectable],selectedRowKeys:n.selectedIndexes,onChange:(y,S)=>{h.value=y.map(C=>Number(C)),t("update:selectedIndexes",y.map(C=>Number(C)))},getCheckboxProps:y=>({disabled:n.selectionDisabled,name:y[n.columns[0].key]})}:void 0);return(b,y)=>(oe(),Rn(je(LPe),{"data-source":l.value,columns:s.value,pagination:{position:["bottomCenter"],defaultPageSize:n.rowsPerPage,showSizeChanger:!n.rowsPerPage},"row-selection":v.value,scroll:{x:n.columns.length*200}},bx({bodyCell:pn(({column:S,text:C,record:w})=>[n.columns.map(T=>T.key).includes(S.dataIndex)?(oe(),pe("div",{key:0,onclick:()=>d(w)},[c[w.index]?(oe(),Rn(je(Wr),{key:0,value:c[w.index][S.dataIndex],"onUpdate:value":T=>c[w.index][S.dataIndex]=T,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):(oe(),pe(tt,{key:1},[Zn(Qt(C),1)],64))],8,BVe)):S.dataIndex==="buttons"?(oe(),pe("div",UVe,[c[w.index]?(oe(),Rn(je(fr),{key:0,type:"text",onClick:T=>g(w)},{default:pn(()=>[x(je(aVe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),c[w.index]?(oe(),Rn(je(LAe),{key:1,title:"Sure to cancel?",onConfirm:T=>m(w)},{default:pn(()=>[x(je(fr),{type:"text"},{default:pn(()=>[x(je(Kze),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:1})]),_:2},1032,["onConfirm"])):ft("",!0),n.editable&&!c[w.index]?(oe(),Rn(je(fr),{key:2,type:"text",onClick:T=>f(w)},{default:pn(()=>[x(je(Qze),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),n.actions&&!c[w.index]?(oe(),Rn(je(pc),{key:3,trigger:"click"},{overlay:pn(()=>[x(je(lo),null,{default:pn(()=>[(oe(!0),pe(tt,null,Di(n.actions,T=>(oe(),Rn(je(zp),{key:T,type:"text",onClick:O=>p(T,w)},{default:pn(()=>[Zn(Qt(T),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),default:pn(()=>[x(je(fr),{type:"text"},{default:pn(()=>[x(je(rVe),{style:Ni({color:r.value})},null,8,["style"])]),_:1})]),_:2},1024)):ft("",!0)])):(oe(),pe(tt,{key:2},[i.searchText&&i.searchedColumn===S.dataIndex?(oe(),pe("span",HVe,[(oe(!0),pe(tt,null,Di(C.toString().split(new RegExp(`(?<=${i.searchText})|(?=${i.searchText})`,"i")),(T,O)=>(oe(),pe(tt,null,[T.toLowerCase()===i.searchText.toLowerCase()?(oe(),pe("mark",{key:O,class:"highlight"},Qt(T),1)):(oe(),pe(tt,{key:1},[Zn(Qt(T),1)],64))],64))),256))])):ft("",!0)],64))]),default:pn(()=>[n.enableSearch?(oe(),Rn(je(JL),{key:0,"two-tone-color":r.value},null,8,["two-tone-color"])):ft("",!0)]),_:2},[n.enableSearch?{name:"customFilterDropdown",fn:pn(({setSelectedKeys:S,selectedKeys:C,confirm:w,clearFilters:T,column:O})=>[Ee("div",FVe,[x(je(Wr),{ref_key:"searchInput",ref:a,placeholder:`Search ${O.dataIndex}`,value:C[0],style:{width:"188px","margin-bottom":"8px",display:"block"},onChange:I=>S(I.target.value?[I.target.value]:[]),onPressEnter:I=>u(C,w,O.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),x(je(fr),{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:I=>u(C,w,O.dataIndex)},{icon:pn(()=>[x(je(JL))]),default:pn(()=>[Zn(" Search ")]),_:2},1032,["onClick"]),x(je(fr),{size:"small",style:{width:"90px"},onClick:I=>o(T)},{default:pn(()=>[Zn(" Reset ")]),_:2},1032,["onClick"])])]),key:"0"}:void 0]),1032,["data-source","columns","pagination","row-selection","scroll"]))}});const jz=Hn(zVe,[["__scopeId","data-v-1575cdcb"]]),VVe=["height","width"],GVe=10,YVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe([]),i=$(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(s=>s.name!="index")).map(s=>({...s,title:s.name.toString(),key:s.name.toString()}))),a=s=>{Da.exports.isEqual(s,n.value)||t("update:value",s)},l=$(()=>{var s;return(s=n.userProps.pageSize)!=null?s:GVe});return ze(()=>r.value,()=>{a(r.value.map(s=>n.userProps.table.data[s]))}),_t(()=>{r.value=[...n.value]}),(s,u)=>(oe(),pe("div",{height:s.containerHeight,width:s.containerWidth},[x(Ln,{label:s.userProps.label,required:!1,hint:s.userProps.hint},null,8,["label","hint"]),x(jz,{data:s.userProps.table.data,"onUpdate:data":u[0]||(u[0]=o=>s.userProps.table.data=o),"selected-indexes":r.value,"onUpdate:selectedIndexes":u[1]||(u[1]=o=>r.value=o),"enable-search":"",columns:i.value,"rows-per-page":l.value,selectable:s.userProps.multiple?"multiple":"single","selection-disabled":s.userProps.disabled},null,8,["data","selected-indexes","columns","rows-per-page","selectable","selection-disabled"])],8,VVe))}}),jVe={class:"password-input"},WVe=["pattern","required","disabled","placeholder"],qVe=["required","placeholder"],KVe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=$(()=>n.userProps.pattern?n.userProps.pattern:[()=>{const f=n.userProps.lowercaseRequired;let g="";return f&&(g+="(?=.*[a-z])"),g},()=>{const f=n.userProps.uppercaseRequired;let g="";return f&&(g+="(?=.*[A-Z])"),g},()=>{const f=n.userProps.digitRequired;let g="";return f&&(g+="(?=.*\\d)"),g},()=>{const f=n.userProps.specialRequired;let g="";return f&&(g+="(?=.*[!?@#$\\-%^&+=])"),g},()=>{var v,b,y;const f=(v=n.userProps.minLength)!=null?v:null,g=(b=n.userProps.maxLength)!=null?b:null,m=(y=n.userProps.size)!=null?y:null;let h="";return m?h+=`(.{${m},${m}})`:f&&g?h+=`(.{${f},${g}})`:f?h+=`(.{${f},})`:g&&(h+=`(.{,${g}})`),h}].reduce((f,g)=>f+g(),"")||null),i=()=>{const s=n.value,f=[()=>n.userProps.digitRequired&&!/[0-9]/.test(s)?"Your password must have at least one digit between 0 and 9":null,()=>{const g=/[a-z]/g;return n.userProps.lowercaseRequired&&!g.test(s)?"Your password must have at least one lowercase letter":null},()=>{var b,y,S;const g=(b=n.userProps.minLength)!=null?b:null,m=(y=n.userProps.maxLength)!=null?y:null,h=(S=n.userProps.size)!=null?S:null,v=s.length;return h&&v!==h?`Your password must have ${h} characters`:g&&m&&(vm)?`Your password must have between ${g} and ${m} characters`:g&&vm?`Your password must have at most ${m} characters`:null},()=>n.userProps.specialRequired&&!/[!?@#$\-%^&+=]/g.test(s)?"Your password must have at least one special character":null,()=>{const g=/[A-Z]/g;return n.userProps.uppercaseRequired&&!g.test(s)?"Your password must have at leat one uppercase letter":null}].reduce((g,m)=>{const h=m();return h&&g.push(h),g},[]);t("update:errors",f)},a=s=>{t("update:value",s)},l=Oe();return ze(()=>n.value,()=>{!l.value||(l.value.value=n.value)}),(s,u)=>(oe(),pe("div",jVe,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),pe("input",{key:0,ref_key:"input",ref:l,type:"password",pattern:r.value,required:!!s.userProps.required,class:Vt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onInput:u[0]||(u[0]=o=>a(o.target.value)),onBlur:i},null,42,WVe)):(oe(),pe("input",{key:1,ref_key:"input",ref:l,type:"password",required:!!s.userProps.required,class:Vt(["input",s.errors.length&&"error"]),placeholder:s.userProps.placeholder,onInput:u[1]||(u[1]=o=>a(o.target.value)),onBlur:i},null,42,qVe))]))}}),ZVe=[{code:"93",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"355",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"213",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"376",placeholder:"000-000",mask:"000-000"},{code:"244",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"1",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"54",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"374",placeholder:"00-000-000",mask:"00-000-000"},{code:"297",placeholder:"000-0000",mask:"000-0000"},{code:"61",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"43",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"994",placeholder:"00-000-00-00",mask:"00-000-00-00"},{code:"973",placeholder:"0000-0000",mask:"0000-0000"},{code:"880",placeholder:"1000-000000",mask:"1000-000000"},{code:"375",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"32",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"501",placeholder:"000-0000",mask:"000-0000"},{code:"229",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"975",placeholder:"17-000-000",mask:"17-000-000|0-000-000"},{code:"591",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"387",placeholder:"00-0000",mask:"00-0000|00-00000"},{code:"267",placeholder:"00-000-000",mask:"00-000-000"},{code:"55",placeholder:"(00)0000-0000",mask:"(00)0000-0000|(00)00000-0000"},{code:"673",placeholder:"000-0000",mask:"000-0000"},{code:"359",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"226",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"257",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"855",placeholder:"00-000-000",mask:"00-000-000"},{code:"237",placeholder:"0000-0000",mask:"0000-0000"},{code:"238",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"236",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"235",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"56",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"86",placeholder:"(000)0000-000",mask:"(000)0000-000|(000)0000-0000|00-00000-00000"},{code:"57",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"269",placeholder:"00-00000",mask:"00-00000"},{code:"242",placeholder:"00-00000",mask:"00-00000"},{code:"506",placeholder:"0000-0000",mask:"0000-0000"},{code:"385",placeholder:"00-000-000",mask:"00-000-000"},{code:"53",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"357",placeholder:"00-000-000",mask:"00-000-000"},{code:"420",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"243",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"45",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"253",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"593",placeholder:"0-000-0000",mask:"0-000-0000|00-000-0000"},{code:"20",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"503",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"240",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"291",placeholder:"0-000-000",mask:"0-000-000"},{code:"372",placeholder:"000-0000",mask:"000-0000|0000-0000"},{code:"268",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"251",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"679",placeholder:"00-00000",mask:"00-00000"},{code:"358",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"33",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"241",placeholder:"0-00-00-00",mask:"0-00-00-00"},{code:"220",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"995",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"49",placeholder:"000-000",mask:"000-000|(000)00-00|(000)00-000|(000)00-0000|(000)000-0000|(0000)000-0000"},{code:"233",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"30",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"502",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"224",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"245",placeholder:"0-000000",mask:"0-000000"},{code:"592",placeholder:"000-0000",mask:"000-0000"},{code:"509",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"504",placeholder:"0000-0000",mask:"0000-0000"},{code:"852",placeholder:"0000-0000",mask:"0000-0000"},{code:"36",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"354",placeholder:"000-0000",mask:"000-0000"},{code:"91",placeholder:"(0000)000-000",mask:"(0000)000-000"},{code:"62",placeholder:"00-000-00",mask:"00-000-00|00-000-000|00-000-0000|(800)000-000|(800)000-00-000"},{code:"98",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"924",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"353",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"972",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"39",placeholder:"(000)0000-000",mask:"(000)0000-000"},{code:"225",placeholder:"00-000-000",mask:"00-000-000"},{code:"81",placeholder:"(000)000-000",mask:"(000)000-000|00-0000-0000"},{code:"962",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"77",placeholder:"(600)000-00-00",mask:"(600)000-00-00|(700)000-00-00"},{code:"254",placeholder:"000-000000",mask:"000-000000"},{code:"850",placeholder:"000-000",mask:"000-000|0000-0000|00-000-000|000-0000-000|191-000-0000|0000-0000000000000"},{code:"82",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"965",placeholder:"0000-0000",mask:"0000-0000"},{code:"996",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"856",placeholder:"00-000-000",mask:"00-000-000|(2000)000-000"},{code:"371",placeholder:"00-000-000",mask:"00-000-000"},{code:"961",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"266",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"231",placeholder:"00-000-000",mask:"00-000-000"},{code:"218",placeholder:"00-000-000",mask:"00-000-000|21-000-0000"},{code:"423",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"370",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"352",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"261",placeholder:"00-00-00000",mask:"00-00-00000"},{code:"265",placeholder:"1-000-000",mask:"1-000-000|0-0000-0000"},{code:"60",placeholder:"0-000-000",mask:"0-000-000|00-000-000|(000)000-000|00-000-0000"},{code:"960",placeholder:"000-0000",mask:"000-0000"},{code:"223",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"356",placeholder:"0000-0000",mask:"0000-0000"},{code:"596",placeholder:"(000)00-00-00",mask:"(000)00-00-00"},{code:"222",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"230",placeholder:"000-0000",mask:"000-0000"},{code:"52",placeholder:"00-00-0000",mask:"00-00-0000|(000)000-0000"},{code:"691",placeholder:"000-0000",mask:"000-0000"},{code:"373",placeholder:"0000-0000",mask:"0000-0000"},{code:"377",placeholder:"00-000-000",mask:"00-000-000|(000)000-000"},{code:"976",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"382",placeholder:"00-000-000",mask:"00-000-000"},{code:"212",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"258",placeholder:"00-000-000",mask:"00-000-000"},{code:"95",placeholder:"000-000",mask:"000-000|0-000-000|00-000-000"},{code:"674",placeholder:"000-0000",mask:"000-0000"},{code:"977",placeholder:"00-000-000",mask:"00-000-000"},{code:"31",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"24",placeholder:"0-000-000",mask:"0-000-000|(000)000-000|(000)000-0000"},{code:"505",placeholder:"0000-0000",mask:"0000-0000"},{code:"227",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"234",placeholder:"00-000-00",mask:"00-000-00|00-000-000|(000)000-0000"},{code:"389",placeholder:"00-000-000",mask:"00-000-000"},{code:"47",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"968",placeholder:"00-000-000",mask:"00-000-000"},{code:"92",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"680",placeholder:"000-0000",mask:"000-0000"},{code:"970",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"507",placeholder:"000-0000",mask:"000-0000"},{code:"675",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"595",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"51",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"63",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"48",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"351",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"974",placeholder:"0000-0000",mask:"0000-0000"},{code:"40",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"7",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"250",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"685",placeholder:"00-0000",mask:"00-0000"},{code:"378",placeholder:"0000-000000",mask:"0000-000000"},{code:"239",placeholder:"00-00000",mask:"00-00000"},{code:"966",placeholder:"0-000-0000",mask:"0-000-0000|50-0000-0000"},{code:"221",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"381",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"248",placeholder:"0-000-000",mask:"0-000-000"},{code:"232",placeholder:"00-000000",mask:"00-000000"},{code:"65",placeholder:"0000-0000",mask:"0000-0000"},{code:"421",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"386",placeholder:"00-000-000",mask:"00-000-000"},{code:"677",placeholder:"00000",mask:"00000|000-0000"},{code:"252",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"27",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"211",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"34",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"94",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"249",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"597",placeholder:"000-000",mask:"000-000|000-0000"},{code:"46",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"41",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"963",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"992",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"255",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"66",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"670",placeholder:"000-0000",mask:"000-0000|770-00000|780-00000"},{code:"228",placeholder:"00-000-000",mask:"00-000-000"},{code:"676",placeholder:"00000",mask:"00000"},{code:"216",placeholder:"00-000-000",mask:"00-000-000"},{code:"90",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"993",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"256",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"380",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"971",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"44",placeholder:"00-0000-0000",mask:"00-0000-0000"},{code:"598",placeholder:"0-000-00-00",mask:"0-000-00-00"},{code:"998",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"678",placeholder:"00000",mask:"00000|00-00000"},{code:"58",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"84",placeholder:"00-0000-000",mask:"00-0000-000|(000)0000-000"},{code:"967",placeholder:"0-000-000",mask:"0-000-000|00-000-000|000-000-000"},{code:"260",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"263",placeholder:"",mask:""}],QVe={class:"phone-input"},XVe={class:"flex"},JVe=["value","disabled"],eGe=["value","disabled","placeholder"],tGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=$(()=>{var m;return n.userProps.placeholder||((m=s(a.value))==null?void 0:m.placeholder)||""}),i=Oe(u(n.value.nationalNumber,n.value.countryCode)),a=Oe(o(n.value.countryCode));function l(m){return m.replace(/\D/g,"")}function s(m){var h;return(h=ZVe.find(v=>v.code===l(m)))!=null?h:null}function u(m,h){var b;const v=(b=s(h))==null?void 0:b.mask;return v?Ra(v,m):""}function o(m){return Ra("+000",m)}function c(){t("update:value",{countryCode:l(a.value),nationalNumber:i.value})}const d=m=>{const h=m.target.value;a.value=o(h)},p=m=>{const h=m.target.value;a.value=o(h)},f=m=>{const h=m.target.value;i.value=u(h,a.value),c()},g=()=>{var b;if(!n.userProps.required&&!i.value&&!a.value){t("update:errors",[]);return}const m=[],h=(b=s(a.value))==null?void 0:b.mask;if(!h){t("update:errors",["i18n_error_invalid_country_code"]);return}Wp(h,i.value)||m.push(n.userProps.invalidMessage),t("update:errors",m)};return Rt(()=>{i.value=u(n.value.nationalNumber,n.value.countryCode),a.value=o(n.value.countryCode)}),(m,h)=>(oe(),pe("div",QVe,[x(Ln,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ee("div",XVe,[Ee("input",{value:a.value,class:Vt(["select",["input",m.errors.length&&"error"]]),maxlength:"4",placeholder:"+1",disabled:m.userProps.disabled,onInput:p,onChange:d,onBlur:g},null,42,JVe),Ee("input",{value:i.value,class:Vt(["input",m.errors.length&&"error"]),disabled:m.userProps.disabled||!s(a.value),placeholder:r.value,onBlur:g,onInput:f,onChange:g},null,42,eGe)])]))}});const nGe=Hn(tGe,[["__scopeId","data-v-9372fb2a"]]),rGe={class:"rating-input"},iGe={ref:"input",class:"rating-icons"},aGe=["onClick"],oGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=s=>{var u;return s<((u=i.value)!=null?u:0)},i=Oe(n.value),a=$(()=>{var s,u;return Array((s=n.userProps.max)!=null?s:5).fill((u=n.userProps.char)!=null?u:"\u2B50")}),l=s=>{n.userProps.disabled||(i.value=s,t("update:value",i.value))};return ze(()=>n.value,()=>{i.value=n.value}),(s,u)=>(oe(),pe("div",rGe,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ee("div",iGe,[(oe(!0),pe(tt,null,Di(a.value,(o,c)=>(oe(),pe("div",{key:c,class:Vt(["rating-icon",{active:r(c),disabled:s.userProps.disabled}]),tabindex:"0",onClick:d=>l(c+1)},Qt(o),11,aGe))),128))],512)]))}});const sGe=Hn(oGe,[["__scopeId","data-v-1108054a"]]);const lGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(null);window.document&&Py(()=>import("./vue-quill.esm-bundler.f1f436e4.js"),[]).then(s=>{r.value=s.QuillEditor});const i=()=>{var u,o;const s=(o=(u=a.value)==null?void 0:u.getHTML())!=null?o:"";t("update:value",s)},a=Oe(),l=()=>{var s;n.value&&((s=a.value)==null||s.setHTML(n.value))};return ze(()=>n.value,()=>{var u;(((u=a.value)==null?void 0:u.getHTML())||"")!==n.value&&l()}),(s,u)=>(oe(),pe(tt,null,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),Rn(hu(r.value),{key:0,ref_key:"input",ref:a,style:{height:"100%"},class:Vt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onReady:l,"onUpdate:content":u[0]||(u[0]=o=>i())},null,40,["class","disabled","placeholder"])):ft("",!0)],64))}});const cGe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",uGe={class:"tag-input"},dGe={class:"tags"},pGe={class:"remove-icon",viewBox:"0 0 24 24"},fGe=["d"],mGe=["disabled","placeholder"],gGe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var u;const n=e,r=cGe,i=Oe((u=n.value)!=null?u:[]),a=o=>{n.userProps.disabled||!o||i.value.some(c=>c===o)||(i.value=[...i.value,o],t("update:value",i.value),s.value.value="")},l=o=>{n.userProps.disabled||(i.value=i.value.filter((c,d)=>d!==o),t("update:value",i.value))},s=Oe();return ze(()=>n.value,()=>{var o;i.value=(o=n.value)!=null?o:[]}),(o,c)=>(oe(),pe(tt,null,[x(Ln,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ee("div",uGe,[Ee("div",dGe,[(oe(!0),pe(tt,null,Di(i.value,(d,p)=>(oe(),pe("div",{key:d,class:"tag"},[Zn(Qt(d)+" ",1),x(je(fr),{class:"remove-tag",type:"text",onClick:f=>l(p)},{default:pn(()=>[(oe(),pe("svg",pGe,[Ee("path",{d:je(r)},null,8,fGe)]))]),_:2},1032,["onClick"])]))),128))]),Ee("input",{ref_key:"input",ref:s,class:Vt(["input",{disabled:o.userProps.disabled}]),disabled:o.userProps.disabled,type:"text",placeholder:o.userProps.placeholder,onChange:c[0]||(c[0]=d=>a(d.target.value)),onKeyup:c[1]||(c[1]=Ox(d=>a(d.target.value),["enter"]))},null,42,mGe)])],64))}});const hGe=Hn(gGe,[["__scopeId","data-v-c12d89f6"]]),_Ge={class:"text-input"},vGe=["disabled","placeholder"],bGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(),i=s=>{const u=n.userProps.mask?Ra(n.userProps.mask,s):s;r.value.value=u,t("update:value",u)},a=s=>{const u=s.target;n.userProps.mask&&Wp(n.userProps.mask,u.value)&&s.preventDefault()};_t(()=>{l()}),ze(()=>n.value,()=>{l()});function l(){n.value&&r.value&&(n.userProps.mask?r.value.value=Ra(n.userProps.mask,n.value):r.value.value=n.value)}return(s,u)=>(oe(),pe("div",_Ge,[x(Ln,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ee("input",{ref_key:"input",ref:r,class:Vt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onKeypress:u[0]||(u[0]=o=>a(o)),onInput:u[1]||(u[1]=o=>i(o.target.value))},null,42,vGe)]))}}),yGe=["disabled","placeholder"],SGe=Ce({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=a=>{i.value.value=a,t("update:value",a)},i=Oe();return _t(()=>{i.value.value=n.value||""}),ze(()=>n.value,()=>{i.value.value=n.value||""}),(a,l)=>(oe(),pe(tt,null,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ee("textarea",{ref_key:"input",ref:i,style:{height:"100%"},class:Vt(["input",a.errors.length&&"error",a.userProps.disabled&&"disabled"]),disabled:a.userProps.disabled,placeholder:a.userProps.placeholder,onInput:l[0]||(l[0]=s=>r(s.target.value))},null,42,yGe)],64))}});const EGe={class:"time-input"},CGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>l?`${l.hour.toString().padStart(2,"0")}:${l.minute.toString().padStart(2,"0")}`:void 0,i=Oe(r(n.value)),a=(l,s)=>{const[u,o]=s.split(":"),c={hour:parseInt(u),minute:parseInt(o)};t("update:value",c)};return ze(()=>n.value,l=>{i.value=r(l)}),(l,s)=>(oe(),pe("div",EGe,[x(Ln,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(je(VPe),{value:i.value,"onUpdate:value":s[0]||(s[0]=u=>i.value=u),type:"time",class:"input",format:"HH:mm","value-format":"HH:mm",disabled:l.userProps.disabled,onChange:a},null,8,["value","disabled"])]))}});const TGe=Hn(CGe,[["__scopeId","data-v-31786bbd"]]),wGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Oe(n.value),i=()=>{n.userProps.disabled||(r.value=!r.value,t("update:value",r.value))};return ze(()=>n.value,()=>{r.value=n.value}),(a,l)=>(oe(),pe(tt,null,[x(Ln,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),x(je(UNe),{checked:r.value,style:{"align-self":"flex-start"},onChange:i},null,8,["checked"])],64))}}),xGe=Ce({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){return(n,r)=>(oe(),pe(tt,null,[x(Ln,{label:n.userProps.label,required:!!n.userProps.required,hint:n.userProps.hint},null,8,["label","required","hint"]),x(Yz,{"accepted-formats":["video/*"],disabled:n.userProps.disabled,errors:n.errors,"list-type":"picture-card",multiple:n.userProps.multiple,value:n.value,locale:n.locale,"onUpdate:errors":r[0]||(r[0]=i=>t("update:errors",i)),"onUpdate:value":r[1]||(r[1]=i=>t("update:value",i))},null,8,["disabled","errors","multiple","value","locale"])],64))}}),RWe={"appointment-input":vUe,"camera-input":XUe,"cards-input":dHe,"checkbox-input":pHe,"checklist-input":gHe,"cnpj-input":bHe,"code-input":SHe,"cpf-input":THe,"currency-input":IHe,"custom-input":DHe,"date-input":$He,"dropdown-input":vze,"email-input":Sze,"file-input":pVe,"image-input":gVe,"list-input":yVe,"multiple-choice-input":CVe,"nps-input":AVe,"number-input":MVe,"number-slider-input":LVe,"pandas-row-selection-input":YVe,"password-input":KVe,"phone-input":nGe,"rating-input":sGe,"rich-text-input":lGe,"tag-input":hGe,"text-input":bGe,"textarea-input":SGe,"time-input":TGe,"toggle-input":wGe,"video-input":xGe},OGe=e=>(j8("data-v-1e783ab3"),e=e(),W8(),e),RGe={class:"file-output"},IGe=["href"],AGe=OGe(()=>Ee("iframe",{src:"about:blank",name:"iframe_a",class:"target-frame"},null,-1)),NGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r;return oe(),pe("div",RGe,[Ee("a",{href:t.userProps.fileUrl,class:"download-button button",target:"iframe_a",download:""},[x(je(m6e)),Zn(" "+Qt((r=t.userProps.downloadText)!=null?r:"Download"),1)],8,IGe),AGe])}}});const DGe=Hn(NGe,[["__scopeId","data-v-1e783ab3"]]),PGe=["innerHTML"],MGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),pe("div",{innerHTML:t.userProps.html},null,8,PGe))}}),kGe=["src","width","height"],$Ge=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r,i;return oe(),pe("iframe",{class:"iframe",src:t.userProps.url,width:(r=t.userProps.width)!=null?r:void 0,height:(i=t.userProps.height)!=null?i:void 0},null,8,kGe)}}});const LGe=Hn($Ge,[["__scopeId","data-v-75daa443"]]),FGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),pe(tt,null,[x(Ln,{label:t.userProps.label,required:!1},null,8,["label"]),x(je(MIe),{src:t.userProps.imageUrl,alt:t.userProps.subtitle},null,8,["src","alt"])],64))}}),BGe=Ce({__name:"component",props:{userProps:{}},setup(e){const t=Oe(null);return _t(async()=>{await Promise.all([$L("https://polyfill.io/v3/polyfill.min.js?features=es6"),$L("https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js")]),window.MathJax.typesetPromise([t.value])}),(n,r)=>(oe(),pe("div",{ref_key:"latex",ref:t,class:"latex"},Qt(n.userProps.text),513))}});const UGe=Hn(BGe,[["__scopeId","data-v-9c539437"]]),HGe=["href","target"],zGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),pe("a",{class:"link",href:t.userProps.linkUrl,target:t.userProps.sameTab?"":"_blank"},Qt(t.userProps.linkText),9,HGe))}}),VGe=Ce({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{const r=Jd("Markdown");return oe(),Rn(r,{class:"markdown-output",source:t.userProps.text,html:""},null,8,["source"])}}});const GGe=Hn(VGe,[["__scopeId","data-v-f5ecf31f"]]),YGe=["height","width"],jGe=10,WGe=Ce({__name:"component",props:{userProps:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["row-click","action-click","row-edit"],setup(e,{emit:t}){const n=e,r=Oe(null),i=({action:o,row:c})=>{t("action-click",{action:o,userProps:c})};function a({row:o}){t("row-click",{userProps:o.userProps,index:o.index})}function l({oldRow:o,newRow:c}){const d=WUe(o,c);t("row-edit",{old:o,new:d,index:o.index})}ze(n.userProps.table.data,()=>{});const s=$(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(o=>o.name!="index")).map(o=>({...o,title:o.name.toString(),key:o.name.toString()}))),u=$(()=>{var o;return(o=n.userProps.pageSize)!=null?o:jGe});return(o,c)=>{var d;return oe(),pe("div",{height:o.containerHeight,width:o.containerWidth},[x(Ln,{ref_key:"label",ref:r,label:n.userProps.label,required:!1},null,8,["label"]),x(jz,{data:o.userProps.table.data,columns:s.value,"rows-per-page":u.value,"enable-search":"",actions:(d=n.userProps.actions)!=null&&d.length?n.userProps.actions:void 0,onActionClick:i,onRowClick:a,onRowEdit:l},null,8,["data","columns","rows-per-page","actions"])],8,YGe)}}}),qGe=Ce({__name:"component",props:{userProps:{}},setup(e){const t=e,n=Oe(null);_t(async()=>{r()});const r=async()=>{if(!n.value)return;(await Py(()=>import("./plotly.min.c288951c.js").then(a=>a.p),[])).newPlot(n.value,t.userProps.figure.data,t.userProps.figure.layout)};return ze(()=>t.userProps.figure,r,{deep:!0}),(i,a)=>(oe(),pe(tt,null,[x(Ln,{label:i.userProps.label,required:!1},null,8,["label"]),Ee("div",{ref_key:"root",ref:n,class:"chart"},null,512)],64))}});const KGe=Hn(qGe,[["__scopeId","data-v-0c65d6dd"]]),ZGe={class:"progress-output"},QGe={class:"progress-container"},XGe={class:"progress-text label"},JGe=Ce({__name:"component",props:{userProps:{}},setup(e){const t=e,n=$(()=>{const{current:r,total:i}=t.userProps;return{width:`calc(${Math.min(100*r/i,100).toFixed(2)}% - 6px)`}});return(r,i)=>(oe(),pe("div",ZGe,[Ee("div",QGe,[Ee("div",{class:"progress-content",style:Ni(n.value)},null,4)]),Ee("div",XGe,Qt(r.userProps.text),1)]))}});const e7e=Hn(JGe,[["__scopeId","data-v-6fc80314"]]),t7e=Ce({__name:"component",props:{userProps:{}},setup(e){const t=e;function n(i){switch(i){case"small":return"12px";case"medium":return"16px";case"large":return"24px";default:return"16px"}}const r=$(()=>({fontSize:n(t.userProps.size)}));return(i,a)=>(oe(),pe("div",{class:"text",style:Ni(r.value)},Qt(i.userProps.text),5))}}),n7e={class:"start-widget"},r7e={class:"title"},i7e={key:0,class:"start-message"},a7e=Ce({__name:"component",props:{form:{}},setup(e){return(t,n)=>(oe(),pe("div",n7e,[Ee("div",r7e,Qt(t.form.welcomeTitle||t.form.title),1),t.form.startMessage?(oe(),pe("div",i7e,Qt(t.form.startMessage),1)):ft("",!0)]))}});const o7e=Hn(a7e,[["__scopeId","data-v-93314670"]]),s7e={class:"text"},l7e=Ce({__name:"component",props:{endMessage:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),pe("div",s7e,Qt((r=t.endMessage)!=null?r:je(Oa).translate("i18n_end_message",t.locale)),1)}}});const c7e=Hn(l7e,[["__scopeId","data-v-a30dba0a"]]),u7e={class:"text"},d7e={key:0,class:"session-id"},p7e=Ce({__name:"component",props:{errorMessage:{},executionId:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),pe("div",u7e,[Zn(Qt((r=t.errorMessage)!=null?r:je(Oa).translate("i18n_error_message",t.locale))+" ",1),t.executionId?(oe(),pe("div",d7e,"Run ID: "+Qt(t.executionId),1)):ft("",!0)])}}});const f7e=Hn(p7e,[["__scopeId","data-v-a406885c"]]),IWe={start:o7e,end:c7e,error:f7e},AWe={"file-output":DGe,"html-output":MGe,"iframe-output":LGe,"image-output":FGe,"latex-output":UGe,"link-output":zGe,"markdown-output":GGe,"pandas-output":WGe,"plotly-output":KGe,"progress-output":e7e,"text-output":t7e},Ri={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},e4={ripple:!1,inputStyle:"outlined",locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[Ri.STARTS_WITH,Ri.CONTAINS,Ri.NOT_CONTAINS,Ri.ENDS_WITH,Ri.EQUALS,Ri.NOT_EQUALS],numeric:[Ri.EQUALS,Ri.NOT_EQUALS,Ri.LESS_THAN,Ri.LESS_THAN_OR_EQUAL_TO,Ri.GREATER_THAN,Ri.GREATER_THAN_OR_EQUAL_TO],date:[Ri.DATE_IS,Ri.DATE_IS_NOT,Ri.DATE_BEFORE,Ri.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100}},m7e=Symbol();var NWe={install:(e,t)=>{let n=t?{...e4,...t}:{...e4};const r={config:un(n)};e.config.globalProperties.$primevue=r,e.provide(m7e,r)}},g7e={name:"Message",emits:["close"],props:{severity:{type:String,default:"info"},closable:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},life:{type:Number,default:3e3},icon:{type:String,default:null},closeIcon:{type:String,default:"pi pi-times"},closeButtonProps:{type:null,default:null}},timeout:null,data(){return{visible:!0}},mounted(){this.sticky||this.x()},methods:{close(e){this.visible=!1,this.$emit("close",e)},x(){setTimeout(()=>{this.visible=!1},this.life)}},computed:{containerClass(){return"p-message p-component p-message-"+this.severity},iconClass(){return["p-message-icon pi",this.icon?this.icon:{"pi-info-circle":this.severity==="info","pi-check":this.severity==="success","pi-exclamation-triangle":this.severity==="warn","pi-times-circle":this.severity==="error"}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:mI}};const h7e={class:"p-message-wrapper"},_7e={class:"p-message-text"},v7e=["aria-label"];function b7e(e,t,n,r,i,a){const l=ef("ripple");return oe(),Rn(Ti,{name:"p-message",appear:""},{default:pn(()=>[mr(Ee("div",{class:Vt(a.containerClass),role:"alert","aria-live":"assertive","aria-atomic":"true"},[Ee("div",h7e,[Ee("span",{class:Vt(a.iconClass)},null,2),Ee("div",_7e,[Et(e.$slots,"default")]),n.closable?mr((oe(),pe("button",An({key:0,class:"p-message-close p-link","aria-label":a.closeAriaLabel,type:"button",onClick:t[0]||(t[0]=s=>a.close(s))},n.closeButtonProps),[Ee("i",{class:Vt(["p-message-close-icon",n.closeIcon])},null,2)],16,v7e)),[[l]]):ft("",!0)])],2),[[Pa,i.visible]])]),_:3})}function y7e(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var S7e=` .p-message-wrapper { display: flex; align-items: center; @@ -882,4 +882,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),or=it,vn=Tt),Jt===void * (c) 2022 Eduardo San Martin Morote * @license MIT */const Nd=typeof window<"u";function sje(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Kn=Object.assign;function b1(e,t){const n={};for(const r in t){const i=t[r];n[r]=qo(i)?i.map(e):e(i)}return n}const Im=()=>{},qo=Array.isArray,lje=/\/$/,cje=e=>e.replace(lje,"");function y1(e,t,n="/"){let r,i={},a="",l="";const s=t.indexOf("#");let u=t.indexOf("?");return s=0&&(u=-1),u>-1&&(r=t.slice(0,u),a=t.slice(u+1,s>-1?s:t.length),i=e(a)),s>-1&&(r=r||t.slice(0,s),l=t.slice(s,t.length)),r=fje(r!=null?r:t,n),{fullPath:r+(a&&"?")+a+l,path:r,query:i,hash:l}}function uje(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function l4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dje(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&qp(t.matched[r],n.matched[i])&&Kz(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Kz(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!pje(e[n],t[n]))return!1;return!0}function pje(e,t){return qo(e)?c4(e,t):qo(t)?c4(t,e):e===t}function c4(e,t){return qo(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function fje(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let i=n.length-1,a,l;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var wg;(function(e){e.pop="pop",e.push="push"})(wg||(wg={}));var Am;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Am||(Am={}));function mje(e){if(!e)if(Nd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cje(e)}const gje=/^[^#]+#/;function hje(e,t){return e.replace(gje,"#")+t}function _je(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ky=()=>({left:window.pageXOffset,top:window.pageYOffset});function vje(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=_je(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function u4(e,t){return(history.state?history.state.position-t:-1)+e}const pw=new Map;function bje(e,t){pw.set(e,t)}function yje(e){const t=pw.get(e);return pw.delete(e),t}let Sje=()=>location.protocol+"//"+location.host;function Zz(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,u=i.slice(s);return u[0]!=="/"&&(u="/"+u),l4(u,"")}return l4(n,e)+r+i}function Eje(e,t,n,r){let i=[],a=[],l=null;const s=({state:p})=>{const f=Zz(e,location),g=n.value,m=t.value;let h=0;if(p){if(n.value=f,t.value=p,l&&l===g){l=null;return}h=m?p.position-m.position:0}else r(f);i.forEach(v=>{v(n.value,g,{delta:h,type:wg.pop,direction:h?h>0?Am.forward:Am.back:Am.unknown})})};function u(){l=n.value}function o(p){i.push(p);const f=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return a.push(f),f}function c(){const{history:p}=window;!p.state||p.replaceState(Kn({},p.state,{scroll:ky()}),"")}function d(){for(const p of a)p();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:u,listen:o,destroy:d}}function d4(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?ky():null}}function Cje(e){const{history:t,location:n}=window,r={value:Zz(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(u,o,c){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+u:Sje()+e+u;try{t[c?"replaceState":"pushState"](o,"",p),i.value=o}catch(f){console.error(f),n[c?"replace":"assign"](p)}}function l(u,o){const c=Kn({},t.state,d4(i.value.back,u,i.value.forward,!0),o,{position:i.value.position});a(u,c,!0),r.value=u}function s(u,o){const c=Kn({},i.value,t.state,{forward:u,scroll:ky()});a(c.current,c,!0);const d=Kn({},d4(r.value,u,null),{position:c.position+1},o);a(u,d,!1),r.value=u}return{location:r,state:i,push:s,replace:l}}function $We(e){e=mje(e);const t=Cje(e),n=Eje(e,t.state,t.location,t.replace);function r(a,l=!0){l||n.pauseListeners(),history.go(a)}const i=Kn({location:"",base:e,go:r,createHref:hje.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Tje(e){return typeof e=="string"||e&&typeof e=="object"}function Qz(e){return typeof e=="string"||typeof e=="symbol"}const Hl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Xz=Symbol("");var p4;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(p4||(p4={}));function Kp(e,t){return Kn(new Error,{type:e,[Xz]:!0},t)}function zs(e,t){return e instanceof Error&&Xz in e&&(t==null||!!(e.type&t))}const f4="[^/]+?",wje={sensitive:!1,strict:!1,start:!0,end:!0},xje=/[.+*?^${}()[\]/\\]/g;function Oje(e,t){const n=Kn({},wje,t),r=[];let i=n.start?"^":"";const a=[];for(const o of e){const c=o.length?[]:[90];n.strict&&!o.length&&(i+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ije(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Aje={type:0,value:""},Nje=/[a-zA-Z0-9_]/;function Dje(e){if(!e)return[[]];if(e==="/")return[[Aje]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${o}": ${f}`)}let n=0,r=n;const i=[];let a;function l(){a&&i.push(a),a=[]}let s=0,u,o="",c="";function d(){!o||(n===0?a.push({type:0,value:o}):n===1||n===2||n===3?(a.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${o}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:o,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),o="")}function p(){o+=u}for(;s{l(b)}:Im}function l(c){if(Qz(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(l),c.alias.forEach(l))}}function s(){return n}function u(c){let d=0;for(;d=0&&(c.record.path!==n[d].record.path||!Jz(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!h4(c)&&r.set(c.record.name,c)}function o(c,d){let p,f={},g,m;if("name"in c&&c.name){if(p=r.get(c.name),!p)throw Kp(1,{location:c});m=p.record.name,f=Kn(g4(d.params,p.keys.filter(b=>!b.optional).map(b=>b.name)),c.params&&g4(c.params,p.keys.map(b=>b.name))),g=p.stringify(f)}else if("path"in c)g=c.path,p=n.find(b=>b.re.test(g)),p&&(f=p.parse(g),m=p.record.name);else{if(p=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!p)throw Kp(1,{location:c,currentLocation:d});m=p.record.name,f=Kn({},d.params,c.params),g=p.stringify(f)}const h=[];let v=p;for(;v;)h.unshift(v.record),v=v.parent;return{name:m,path:g,params:f,matched:h,meta:Lje(h)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:o,removeRoute:l,getRoutes:s,getRecordMatcher:i}}function g4(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function kje(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:$je(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function $je(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function h4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Lje(e){return e.reduce((t,n)=>Kn(t,n.meta),{})}function _4(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Jz(e,t){return t.children.some(n=>n===e||Jz(e,n))}const eV=/#/g,Fje=/&/g,Bje=/\//g,Uje=/=/g,Hje=/\?/g,tV=/\+/g,zje=/%5B/g,Vje=/%5D/g,nV=/%5E/g,Gje=/%60/g,rV=/%7B/g,Yje=/%7C/g,iV=/%7D/g,jje=/%20/g;function TI(e){return encodeURI(""+e).replace(Yje,"|").replace(zje,"[").replace(Vje,"]")}function Wje(e){return TI(e).replace(rV,"{").replace(iV,"}").replace(nV,"^")}function fw(e){return TI(e).replace(tV,"%2B").replace(jje,"+").replace(eV,"%23").replace(Fje,"%26").replace(Gje,"`").replace(rV,"{").replace(iV,"}").replace(nV,"^")}function qje(e){return fw(e).replace(Uje,"%3D")}function Kje(e){return TI(e).replace(eV,"%23").replace(Hje,"%3F")}function Zje(e){return e==null?"":Kje(e).replace(Bje,"%2F")}function qv(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Qje(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&fw(a)):[r&&fw(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function Xje(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=qo(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const aV=Symbol(""),b4=Symbol(""),$y=Symbol(""),wI=Symbol(""),mw=Symbol("");function zf(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Jje(e,t,n){const r=()=>{e[t].delete(n)};ki(r),hx(r),Fg(()=>{e[t].add(n)}),e[t].add(n)}function LWe(e){const t=He(aV,{}).value;!t||Jje(t,"leaveGuards",e)}function Kl(e,t,n,r,i){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,s)=>{const u=d=>{d===!1?s(Kp(4,{from:n,to:t})):d instanceof Error?s(d):Tje(d)?s(Kp(2,{from:t,to:d})):(a&&r.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),l())},o=e.call(r&&r.instances[i],t,n,u);let c=Promise.resolve(o);e.length<3&&(c=c.then(u)),c.catch(d=>s(d))})}function S1(e,t,n,r){const i=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(eWe(s)){const o=(s.__vccOpts||s)[t];o&&i.push(Kl(o,n,r,a,l))}else{let u=s();i.push(()=>u.then(o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${a.path}"`));const c=sje(o)?o.default:o;a.components[l]=c;const p=(c.__vccOpts||c)[t];return p&&Kl(p,n,r,a,l)()}))}}return i}function eWe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function y4(e){const t=He($y),n=He(wI),r=$(()=>t.resolve(je(e.to))),i=$(()=>{const{matched:u}=r.value,{length:o}=u,c=u[o-1],d=n.matched;if(!c||!d.length)return-1;const p=d.findIndex(qp.bind(null,c));if(p>-1)return p;const f=S4(u[o-2]);return o>1&&S4(c)===f&&d[d.length-1].path!==f?d.findIndex(qp.bind(null,u[o-2])):p}),a=$(()=>i.value>-1&&iWe(n.params,r.value.params)),l=$(()=>i.value>-1&&i.value===n.matched.length-1&&Kz(n.params,r.value.params));function s(u={}){return rWe(u)?t[je(e.replace)?"replace":"push"](je(e.to)).catch(Im):Promise.resolve()}return{route:r,href:$(()=>r.value.href),isActive:a,isExactActive:l,navigate:s}}const tWe=Ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:y4,setup(e,{slots:t}){const n=un(y4(e)),{options:r}=He($y),i=$(()=>({[E4(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[E4(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:dl("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),nWe=tWe;function rWe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function iWe(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!qo(i)||i.length!==r.length||r.some((a,l)=>a!==i[l]))return!1}return!0}function S4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const E4=(e,t,n)=>e!=null?e:t!=null?t:n,aWe=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=He(mw),i=$(()=>e.route||r.value),a=He(b4,0),l=$(()=>{let o=je(a);const{matched:c}=i.value;let d;for(;(d=c[o])&&!d.components;)o++;return o}),s=$(()=>i.value.matched[l.value]);Dt(b4,$(()=>l.value+1)),Dt(aV,s),Dt(mw,i);const u=Oe();return ze(()=>[u.value,s.value,e.name],([o,c,d],[p,f,g])=>{c&&(c.instances[d]=o,f&&f!==c&&o&&o===p&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),o&&c&&(!f||!qp(c,f)||!p)&&(c.enterCallbacks[d]||[]).forEach(m=>m(o))},{flush:"post"}),()=>{const o=i.value,c=e.name,d=s.value,p=d&&d.components[c];if(!p)return C4(n.default,{Component:p,route:o});const f=d.props[c],g=f?f===!0?o.params:typeof f=="function"?f(o):f:null,h=dl(p,Kn({},g,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[c]=null)},ref:u}));return C4(n.default,{Component:h,route:o})||h}}});function C4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const oWe=aWe;function FWe(e){const t=Mje(e.routes,e),n=e.parseQuery||Qje,r=e.stringifyQuery||v4,i=e.history,a=zf(),l=zf(),s=zf(),u=Pe(Hl);let o=Hl;Nd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=b1.bind(null,q=>""+q),d=b1.bind(null,Zje),p=b1.bind(null,qv);function f(q,ee){let ne,_e;return Qz(q)?(ne=t.getRecordMatcher(q),_e=ee):_e=q,t.addRoute(_e,ne)}function g(q){const ee=t.getRecordMatcher(q);ee&&t.removeRoute(ee)}function m(){return t.getRoutes().map(q=>q.record)}function h(q){return!!t.getRecordMatcher(q)}function v(q,ee){if(ee=Kn({},ee||u.value),typeof q=="string"){const W=y1(n,q,ee.path),J=t.resolve({path:W.path},ee),de=i.createHref(W.fullPath);return Kn(W,J,{params:p(J.params),hash:qv(W.hash),redirectedFrom:void 0,href:de})}let ne;if("path"in q)ne=Kn({},q,{path:y1(n,q.path,ee.path).path});else{const W=Kn({},q.params);for(const J in W)W[J]==null&&delete W[J];ne=Kn({},q,{params:d(q.params)}),ee.params=d(ee.params)}const _e=t.resolve(ne,ee),ue=q.hash||"";_e.params=c(p(_e.params));const be=uje(r,Kn({},q,{hash:Wje(ue),path:_e.path})),fe=i.createHref(be);return Kn({fullPath:be,hash:ue,query:r===v4?Xje(q.query):q.query||{}},_e,{redirectedFrom:void 0,href:fe})}function b(q){return typeof q=="string"?y1(n,q,u.value.path):Kn({},q)}function y(q,ee){if(o!==q)return Kp(8,{from:ee,to:q})}function S(q){return T(q)}function C(q){return S(Kn(b(q),{replace:!0}))}function w(q){const ee=q.matched[q.matched.length-1];if(ee&&ee.redirect){const{redirect:ne}=ee;let _e=typeof ne=="function"?ne(q):ne;return typeof _e=="string"&&(_e=_e.includes("?")||_e.includes("#")?_e=b(_e):{path:_e},_e.params={}),Kn({query:q.query,hash:q.hash,params:"path"in _e?{}:q.params},_e)}}function T(q,ee){const ne=o=v(q),_e=u.value,ue=q.state,be=q.force,fe=q.replace===!0,W=w(ne);if(W)return T(Kn(b(W),{state:typeof W=="object"?Kn({},ue,W.state):ue,force:be,replace:fe}),ee||ne);const J=ne;J.redirectedFrom=ee;let de;return!be&&dje(r,_e,ne)&&(de=Kp(16,{to:J,from:_e}),G(_e,_e,!0,!1)),(de?Promise.resolve(de):I(J,_e)).catch(ve=>zs(ve)?zs(ve,2)?ve:Y(ve):U(ve,J,_e)).then(ve=>{if(ve){if(zs(ve,2))return T(Kn({replace:fe},b(ve.to),{state:typeof ve.to=="object"?Kn({},ue,ve.to.state):ue,force:be}),ee||J)}else ve=M(J,_e,!0,fe,ue);return N(J,_e,ve),ve})}function O(q,ee){const ne=y(q,ee);return ne?Promise.reject(ne):Promise.resolve()}function I(q,ee){let ne;const[_e,ue,be]=sWe(q,ee);ne=S1(_e.reverse(),"beforeRouteLeave",q,ee);for(const W of _e)W.leaveGuards.forEach(J=>{ne.push(Kl(J,q,ee))});const fe=O.bind(null,q,ee);return ne.push(fe),Td(ne).then(()=>{ne=[];for(const W of a.list())ne.push(Kl(W,q,ee));return ne.push(fe),Td(ne)}).then(()=>{ne=S1(ue,"beforeRouteUpdate",q,ee);for(const W of ue)W.updateGuards.forEach(J=>{ne.push(Kl(J,q,ee))});return ne.push(fe),Td(ne)}).then(()=>{ne=[];for(const W of q.matched)if(W.beforeEnter&&!ee.matched.includes(W))if(qo(W.beforeEnter))for(const J of W.beforeEnter)ne.push(Kl(J,q,ee));else ne.push(Kl(W.beforeEnter,q,ee));return ne.push(fe),Td(ne)}).then(()=>(q.matched.forEach(W=>W.enterCallbacks={}),ne=S1(be,"beforeRouteEnter",q,ee),ne.push(fe),Td(ne))).then(()=>{ne=[];for(const W of l.list())ne.push(Kl(W,q,ee));return ne.push(fe),Td(ne)}).catch(W=>zs(W,8)?W:Promise.reject(W))}function N(q,ee,ne){for(const _e of s.list())_e(q,ee,ne)}function M(q,ee,ne,_e,ue){const be=y(q,ee);if(be)return be;const fe=ee===Hl,W=Nd?history.state:{};ne&&(_e||fe?i.replace(q.fullPath,Kn({scroll:fe&&W&&W.scroll},ue)):i.push(q.fullPath,ue)),u.value=q,G(q,ee,ne,fe),Y()}let B;function P(){B||(B=i.listen((q,ee,ne)=>{if(!se.listening)return;const _e=v(q),ue=w(_e);if(ue){T(Kn(ue,{replace:!0}),_e).catch(Im);return}o=_e;const be=u.value;Nd&&bje(u4(be.fullPath,ne.delta),ky()),I(_e,be).catch(fe=>zs(fe,12)?fe:zs(fe,2)?(T(fe.to,_e).then(W=>{zs(W,20)&&!ne.delta&&ne.type===wg.pop&&i.go(-1,!1)}).catch(Im),Promise.reject()):(ne.delta&&i.go(-ne.delta,!1),U(fe,_e,be))).then(fe=>{fe=fe||M(_e,be,!1),fe&&(ne.delta&&!zs(fe,8)?i.go(-ne.delta,!1):ne.type===wg.pop&&zs(fe,20)&&i.go(-1,!1)),N(_e,be,fe)}).catch(Im)}))}let k=zf(),D=zf(),F;function U(q,ee,ne){Y(q);const _e=D.list();return _e.length?_e.forEach(ue=>ue(q,ee,ne)):console.error(q),Promise.reject(q)}function z(){return F&&u.value!==Hl?Promise.resolve():new Promise((q,ee)=>{k.add([q,ee])})}function Y(q){return F||(F=!q,P(),k.list().forEach(([ee,ne])=>q?ne(q):ee()),k.reset()),q}function G(q,ee,ne,_e){const{scrollBehavior:ue}=e;if(!Nd||!ue)return Promise.resolve();const be=!ne&&yje(u4(q.fullPath,0))||(_e||!ne)&&history.state&&history.state.scroll||null;return sn().then(()=>ue(q,ee,be)).then(fe=>fe&&vje(fe)).catch(fe=>U(fe,q,ee))}const K=q=>i.go(q);let X;const ie=new Set,se={currentRoute:u,listening:!0,addRoute:f,removeRoute:g,hasRoute:h,getRoutes:m,resolve:v,options:e,push:S,replace:C,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:a.add,beforeResolve:l.add,afterEach:s.add,onError:D.add,isReady:z,install(q){const ee=this;q.component("RouterLink",nWe),q.component("RouterView",oWe),q.config.globalProperties.$router=ee,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>je(u)}),Nd&&!X&&u.value===Hl&&(X=!0,S(i.location).catch(ue=>{}));const ne={};for(const ue in Hl)ne[ue]=$(()=>u.value[ue]);q.provide($y,ee),q.provide(wI,un(ne)),q.provide(mw,u);const _e=q.unmount;ie.add(q),q.unmount=function(){ie.delete(q),ie.size<1&&(o=Hl,B&&B(),B=null,u.value=Hl,X=!1,F=!1),_e()}}};return se}function Td(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function sWe(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let l=0;lqp(o,s))?r.push(s):n.push(s));const u=e.matched[l];u&&(t.matched.find(o=>qp(o,u))||i.push(u))}return[n,r,i]}function BWe(){return He($y)}function UWe(){return He(wI)}export{Hn as $,XU as A,He as B,DWe as C,un as D,zr as E,mu as F,Ut as G,tx as H,w8 as I,sn as J,Zd as K,uWe as L,PWe as M,pWe as N,dWe as O,NWe as P,Pe as Q,ft as R,R as S,pE as T,uo as U,Dt as V,_t as W,pe as X,Ni as Y,Et as Z,Py as _,Ee as a,xc as a$,Sn as a0,Ec as a1,qF as a2,fde as a3,ide as a4,nde as a5,pde as a6,QF as a7,nf as a8,Ot as a9,Hp as aA,NO as aB,ni as aC,UP as aD,gr as aE,Zn as aF,Wg as aG,uF as aH,k9 as aI,fF as aJ,Rt as aK,Bt as aL,nt as aM,qe as aN,H9 as aO,Wt as aP,ii as aQ,tt as aR,F9 as aS,Yt as aT,ay as aU,zo as aV,Zr as aW,of as aX,Ti as aY,mr as aZ,Pa as a_,yr as aa,vi as ab,Mn as ac,jt as ad,go as ae,ca as af,ki as ag,At as ah,Fe as ai,Dn as aj,Z as ak,Hu as al,hr as am,gl as an,Nn as ao,Qn as ap,Xt as aq,br as ar,wt as as,Yn as at,Ie as au,Mde as av,kde as aw,Dde as ax,Pr as ay,Mi as az,x as b,r_e as b$,ao as b0,sa as b1,Fg as b2,hx as b3,The as b4,Dce as b5,nn as b6,rt as b7,rh as b8,dy as b9,xt as bA,Kg as bB,E1e as bC,uce as bD,bWe as bE,NTe as bF,tpe as bG,dNe as bH,hO as bI,yO as bJ,Wr as bK,A$ as bL,HPe as bM,gs as bN,Dx as bO,hAe as bP,pc as bQ,dF as bR,fr as bS,Ip as bT,Che as bU,oO as bV,n9 as bW,dDe as bX,Vg as bY,_R as bZ,op as b_,_y as ba,Gp as bb,mTe as bc,gTe as bd,fTe as be,vy as bf,tU as bg,Hb as bh,Wi as bi,la as bj,Xg as bk,Yo as bl,dc as bm,g9 as bn,GM as bo,IM as bp,cf as bq,wWe as br,O1e as bs,ml as bt,Sg as bu,AT as bv,zp as bw,Om as bx,lo as by,qg as bz,Rn as c,lw as c$,pU as c0,SWe as c1,Hx as c2,Ihe as c3,QB as c4,MDe as c5,xU as c6,Mr as c7,kSe as c8,s0e as c9,hRe as cA,LRe as cB,vRe as cC,pH as cD,MIe as cE,PIe as cF,dOe as cG,Hv as cH,Uv as cI,Vp as cJ,Na as cK,OOe as cL,LAe as cM,REe as cN,na as cO,xT as cP,pR as cQ,TWe as cR,CWe as cS,ANe as cT,EWe as cU,UNe as cV,LPe as cW,i1 as cX,a1 as cY,o1 as cZ,sw as c_,ODe as ca,$ge as cb,jCe as cc,YCe as cd,Y5 as ce,zCe as cf,hk as cg,_k as ch,Ko as ci,li as cj,VB as ck,ope as cl,Y9 as cm,W9 as cn,V9 as co,nOe as cp,SOe as cq,RAe as cr,hT as cs,ITe as ct,Cg as cu,Fv as cv,ec as cw,nu as cx,Oxe as cy,pT as cz,Ce as d,$B as d$,qDe as d0,n1 as d1,t1 as d2,YOe as d3,VT as d4,VPe as d5,l1 as d6,Ca as d7,_z as d8,vz as d9,Wo as dA,mo as dB,uRe as dC,x5 as dD,gWe as dE,dce as dF,U9 as dG,Ab as dH,K_ as dI,_We as dJ,gF as dK,wo as dL,Mu as dM,vWe as dN,Vr as dO,x9 as dP,p0e as dQ,ewe as dR,KF as dS,G9 as dT,uy as dU,mT as dV,mWe as dW,py as dX,_l as dY,ry as dZ,Qg as d_,bz as da,sI as db,Cz as dc,Dke as dd,Uxe as de,e$e as df,$ue as dg,yWe as dh,TU as di,dwe as dj,Y4 as dk,Yu as dl,Jg as dm,ho as dn,ju as dp,BSe as dq,WSe as dr,QSe as ds,VSe as dt,Ap as du,Mp as dv,Ci as dw,Bx as dx,SAe as dy,hWe as dz,Oe as e,tr as e$,E9 as e0,xO as e1,Ybe as e2,dve as e3,t5 as e4,DEe as e5,ZD as e6,Cc as e7,roe as e8,Qm as e9,n4e as eA,uUe as eB,Ja as eC,LWe as eD,HSe as eE,J1e as eF,oYe as eG,ra as eH,X1e as eI,kWe as eJ,Jze as eK,JL as eL,q_e as eM,Es as eN,oje as eO,BPe as eP,Au as eQ,$Ue as eR,A9e as eS,pl as eT,Ox as eU,Oa as eV,o7e as eW,c7e as eX,f7e as eY,Oce as eZ,Ioe as e_,Vt as ea,An as eb,Qt as ec,UWe as ed,Di as ee,hu as ef,T4e as eg,Ku as eh,YSe as ei,bx as ej,lse as ek,j8 as el,W8 as em,KSe as en,Da as eo,p_e as ep,BWe as eq,X9e as er,soe as es,l3 as et,_ae as eu,mae as ev,Ug as ew,N3 as ex,ix as ey,Xa as ez,$ as f,nWe as f0,vBe as f1,JSe as f2,r0e as f3,LSe as f4,dke as f5,ze as g,FWe as h,$We as i,MWe as j,K3 as k,OWe as l,cWe as m,fWe as n,oe as o,dl as p,RWe as q,Jd as r,g7e as s,AWe as t,je as u,IWe as v,pn as w,Mie as x,ox as y,hoe as z}; -//# sourceMappingURL=vue-router.4c13f3d4.js.map +//# sourceMappingURL=vue-router.3fd92176.js.map diff --git a/abstra_statics/dist/assets/workspaceStore.ae240ce8.js b/abstra_statics/dist/assets/workspaceStore.411ef1fe.js similarity index 93% rename from abstra_statics/dist/assets/workspaceStore.ae240ce8.js rename to abstra_statics/dist/assets/workspaceStore.411ef1fe.js index 9d2ba23f4..4bcfac0e9 100644 --- a/abstra_statics/dist/assets/workspaceStore.ae240ce8.js +++ b/abstra_statics/dist/assets/workspaceStore.411ef1fe.js @@ -1,6 +1,6 @@ -var Xe=Object.defineProperty;var Ze=(e,t,s)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var D=(e,t,s)=>(Ze(e,typeof t!="symbol"?t+"":t,s),s);import{x as Ie,e as te,y as xe,z as et,B as tt,g as Ce,D as st,E as Y,F as Ue,G as rt,H as it,I as nt,J as ot,K as at,f as ae,L as ct,N as lt,O as ut,h as ht,i as dt,_ as j,j as gt}from"./vue-router.4c13f3d4.js";import{i as _t}from"./url.c1b32560.js";import{i as pt}from"./colorHelpers.c5724389.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe597751-afad-4a2d-a495-0679d9abfc66",e._sentryDebugIdIdentifier="sentry-dbid-fe597751-afad-4a2d-a495-0679d9abfc66")}catch{}})();var ft=!1;/*! +var Xe=Object.defineProperty;var Ze=(e,t,s)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var D=(e,t,s)=>(Ze(e,typeof t!="symbol"?t+"":t,s),s);import{x as Ie,e as te,y as xe,z as et,B as tt,g as Ce,D as st,E as Y,F as Ue,G as rt,H as it,I as nt,J as ot,K as at,f as ae,L as ct,N as lt,O as ut,h as ht,i as dt,_ as j,j as gt}from"./vue-router.3fd92176.js";import{i as _t}from"./url.5959ae47.js";import{i as pt}from"./colorHelpers.f04087b3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="53157ce6-5608-48e2-80ad-d86aad61776d",e._sentryDebugIdIdentifier="sentry-dbid-53157ce6-5608-48e2-80ad-d86aad61776d")}catch{}})();var ft=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Pe;const se=e=>Pe=e,Oe=Symbol();function ce(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var V;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(V||(V={}));function _s(){const e=Ie(!0),t=e.run(()=>te({}));let s=[],r=[];const i=xe({install(n){se(i),i._a=n,n.provide(Oe,i),n.config.globalProperties.$pinia=i,r.forEach(o=>s.push(o)),r=[]},use(n){return!this._a&&!ft?r.push(n):s.push(n),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return i}const Ae=()=>{};function me(e,t,s,r=Ae){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!s&&it()&&nt(i),i}function W(e,...t){e.slice().forEach(s=>{s(...t)})}const wt=e=>e();function le(e,t){e instanceof Map&&t instanceof Map&&t.forEach((s,r)=>e.set(r,s)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const r=t[s],i=e[s];ce(i)&&ce(r)&&e.hasOwnProperty(s)&&!Y(r)&&!Ue(r)?e[s]=le(i,r):e[s]=r}return e}const mt=Symbol();function St(e){return!ce(e)||!e.hasOwnProperty(mt)}const{assign:N}=Object;function vt(e){return!!(Y(e)&&e.effect)}function yt(e,t,s,r){const{state:i,actions:n,getters:o}=t,a=s.state.value[e];let c;function l(){a||(s.state.value[e]=i?i():{});const u=at(s.state.value[e]);return N(u,n,Object.keys(o||{}).reduce((h,p)=>(h[p]=xe(ae(()=>{se(s);const f=s._s.get(e);return o[p].call(f,f)})),h),{}))}return c=je(e,l,t,s,r,!0),c}function je(e,t,s={},r,i,n){let o;const a=N({actions:{}},s),c={deep:!0};let l,u,h=[],p=[],f;const v=r.state.value[e];!n&&!v&&(r.state.value[e]={}),te({});let y;function b(g){let _;l=u=!1,typeof g=="function"?(g(r.state.value[e]),_={type:V.patchFunction,storeId:e,events:f}):(le(r.state.value[e],g),_={type:V.patchObject,payload:g,storeId:e,events:f});const E=y=Symbol();ot().then(()=>{y===E&&(l=!0)}),u=!0,W(h,_,r.state.value[e])}const U=n?function(){const{state:_}=s,E=_?_():{};this.$patch(O=>{N(O,E)})}:Ae;function P(){o.stop(),h=[],p=[],r._s.delete(e)}function k(g,_){return function(){se(r);const E=Array.from(arguments),O=[],M=[];function re(T){O.push(T)}function ie(T){M.push(T)}W(p,{args:E,name:g,store:w,after:re,onError:ie});let H;try{H=_.apply(this&&this.$id===e?this:w,E)}catch(T){throw W(M,T),T}return H instanceof Promise?H.then(T=>(W(O,T),T)).catch(T=>(W(M,T),Promise.reject(T))):(W(O,H),H)}}const m={_p:r,$id:e,$onAction:me.bind(null,p),$patch:b,$reset:U,$subscribe(g,_={}){const E=me(h,g,_.detached,()=>O()),O=o.run(()=>Ce(()=>r.state.value[e],M=>{(_.flush==="sync"?u:l)&&g({storeId:e,type:V.direct,events:f},M)},N({},c,_)));return E},$dispose:P},w=st(m);r._s.set(e,w);const S=(r._a&&r._a.runWithContext||wt)(()=>r._e.run(()=>(o=Ie()).run(t)));for(const g in S){const _=S[g];if(Y(_)&&!vt(_)||Ue(_))n||(v&&St(_)&&(Y(_)?_.value=v[g]:le(_,v[g])),r.state.value[e][g]=_);else if(typeof _=="function"){const E=k(g,_);S[g]=E,a.actions[g]=_}}return N(w,S),N(rt(w),S),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:g=>{b(_=>{N(_,g)})}}),r._p.forEach(g=>{N(w,o.run(()=>g({store:w,app:r._a,pinia:r,options:a})))}),v&&n&&s.hydrate&&s.hydrate(w.$state,v),l=!0,u=!0,w}function Ne(e,t,s){let r,i;const n=typeof t=="function";typeof e=="string"?(r=e,i=n?s:t):(i=e,r=e.id);function o(a,c){const l=et();return a=a||(l?tt(Oe,null):null),a&&se(a),a=Pe,a._s.has(r)||(n?je(r,t,i,a):yt(r,i,a)),a._s.get(r)}return o.$id=r,o}const $=Ne("user",()=>{const e=new ct(lt.string(),"auth:jwt"),t=te(null),s=ae(()=>t.value?{Authorization:`Bearer ${t.value.rawJwt}`}:{}),r=ae(()=>t.value?["default",`base64url.bearer.authorization.${t.value.rawJwt}`]:[]),i=u=>{e.set(u),n()},n=()=>{const u=e.get();if(!!u)try{const h=ut(u);h.exp&&h.exp>Date.now()/1e3&&(t.value={rawJwt:u,claims:h})}catch{console.warn("Invalid JWT")}},o=()=>{t.value=null,e.remove()},a=async()=>(await fetch("/_user/my-roles",{headers:s.value})).json(),c=async()=>(await fetch("/_user/sign-up",{method:"POST",headers:s.value})).status===200,l=async u=>(await fetch(`/_access-control/allow${u}`,{headers:s.value})).json();return n(),{loadSavedToken:n,saveJWT:i,user:t,logout:o,getRoles:a,authHeaders:s,wsAuthHeaders:r,signUp:c,allow:l}}),bt=e=>{const t=$();Ce(()=>t.user,(s,r)=>{!s&&r&&e()})};class J extends Error{}J.prototype.name="InvalidTokenError";function kt(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,s)=>{let r=s.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Et(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return kt(t)}catch{return atob(t)}}function Tt(e,t){if(typeof e!="string")throw new J("Invalid token specified: must be a string");t||(t={});const s=t.header===!0?0:1,r=e.split(".")[s];if(typeof r!="string")throw new J(`Invalid token specified: missing part #${s+1}`);let i;try{i=Et(r)}catch(n){throw new J(`Invalid token specified: invalid base64 for part #${s+1} (${n.message})`)}try{return JSON.parse(i)}catch(n){throw new J(`Invalid token specified: invalid json for part #${s+1} (${n.message})`)}}var Rt={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},x,C,X=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(X||{});(e=>{function t(){x=3,C=Rt}e.reset=t;function s(i){if(!(0<=i&&i<=4))throw new Error("Invalid log level");x=i}e.setLevel=s;function r(i){C=i}e.setLogger=r})(X||(X={}));var d=class I{constructor(t){this._name=t}debug(...t){x>=4&&C.debug(I._format(this._name,this._method),...t)}info(...t){x>=3&&C.info(I._format(this._name,this._method),...t)}warn(...t){x>=2&&C.warn(I._format(this._name,this._method),...t)}error(...t){x>=1&&C.error(I._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const r=new I(`${t}.${s}`);return r.debug("begin"),r}static _format(t,s){const r=`[${t}]`;return s?`${r} ${s}:`:r}static debug(t,...s){x>=4&&C.debug(I._format(t),...s)}static info(t,...s){x>=3&&C.info(I._format(t),...s)}static warn(t,...s){x>=2&&C.warn(I._format(t),...s)}static error(t,...s){x>=1&&C.error(I._format(t),...s)}};X.reset();var It="10000000-1000-4000-8000-100000000000",Se=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),F=class K{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return It.replace(/[018]/g,s=>(+s^K._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return K.generateUUIDv4()+K.generateUUIDv4()+K.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const r=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",r);return Se(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw d.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const i=new TextEncoder().encode([t,s].join(":"));return Se(i)}},q=class{constructor(e){this._name=e,this._logger=new d(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},ue=class{static decode(e){try{return Tt(e)}catch(t){throw d.error("JwtUtils.decode",t),t}}},ve=class{static center({...e}){var t,s,r;return e.width==null&&(e.width=(t=[800,720,600,480].find(i=>i<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((r=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},A=class G extends q{constructor(){super(...arguments),this._logger=new d(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-G.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=G.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const r=G.getEpochTime()+t;if(this.expiration===r&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=r;const i=Math.min(t,5);this._timerHandle=setInterval(this._callback,i*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},he=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const r=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(r.slice(1))}},de=";",L=class extends Error{constructor(e,t){var s,r,i;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw d.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(r=e.error_uri)!=null?r:null,this.state=e.userState,this.session_state=(i=e.session_state)!=null?i:null,this.url_state=e.url_state}},fe=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},xt=class{constructor(e){this._logger=new d("AccessTokenEvents"),this._expiringTimer=new A("Access token expiring"),this._expiredTimer=new A("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let i=s-this._expiringNotificationTimeInSeconds;i<=0&&(i=1),t.debug("registering expiring timer, raising in",i,"seconds"),this._expiringTimer.init(i)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const r=s+1;t.debug("registering expired timer, raising in",r,"seconds"),this._expiredTimer.init(r)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},Ct=class{constructor(e,t,s,r,i){this._callback=e,this._client_id=t,this._intervalInSeconds=r,this._stopOnError=i,this._logger=new d("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=o=>{o.origin===this._frame_origin&&o.source===this._frame.contentWindow&&(o.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):o.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(o.data+" message from check session op iframe"))};const n=new URL(s);this._frame_origin=n.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=n.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},qe=class{constructor(){this._logger=new d("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},we=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new d("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...r}=t;if(!s)return await fetch(e,r);const i=new AbortController,n=setTimeout(()=>i.abort(),s*1e3);try{return await fetch(e,{...t,signal:i.signal})}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new fe("Network timed out"):o}finally{clearTimeout(n)}}async getJson(e,{token:t,credentials:s}={}){const r=this._logger.create("getJson"),i={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),i.Authorization="Bearer "+t),this.appendExtraHeaders(i);let n;try{r.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:i,credentials:s})}catch(c){throw r.error("Network Error"),c}r.debug("HTTP response received, status",n.status);const o=n.headers.get("Content-Type");if(o&&!this._contentTypes.find(c=>o.startsWith(c))&&r.throw(new Error(`Invalid response Content-Type: ${o!=null?o:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(o==null?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let a;try{a=await n.json()}catch(c){throw r.error("Error parsing JSON response",c),n.ok?c:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw r.error("Error from server:",a),a.error?new L(a):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(a)}`);return a}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:r,initCredentials:i}){const n=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};s!==void 0&&(o.Authorization="Basic "+s),this.appendExtraHeaders(o);let a;try{n.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:r,credentials:i})}catch(h){throw n.error("Network error"),h}n.debug("HTTP response received, status",a.status);const c=a.headers.get("Content-Type");if(c&&!this._contentTypes.find(h=>c.startsWith(h)))throw new Error(`Invalid response Content-Type: ${c!=null?c:"undefined"}, from URL: ${e}`);const l=await a.text();let u={};if(l)try{u=JSON.parse(l)}catch(h){throw n.error("Error parsing JSON response",h),a.ok?h:new Error(`${a.statusText} (${a.status})`)}if(!a.ok)throw n.error("Error from server:",u),u.error?new L(u,t):new Error(`${a.statusText} (${a.status}): ${JSON.stringify(u)}`);return u}appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),r=["authorization","accept","content-type"];s.length!==0&&s.forEach(i=>{if(r.includes(i.toLocaleLowerCase())){t.warn("Protected header could not be overridden",i,r);return}const n=typeof this._extraHeaders[i]=="function"?this._extraHeaders[i]():this._extraHeaders[i];n&&n!==""&&(e[i]=n)})}},Ut=class{constructor(e){this._settings=e,this._logger=new d("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new we(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),r=await this.getMetadata();if(s.debug("resolved"),r[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return r[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t);if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},Me=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new d("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s{const r=this._logger.create("_getClaimsFromJwt");try{const i=ue.decode(s);return r.debug("JWT decoding successful"),i}catch(i){throw r.error("Error parsing JWT response"),i}},this._jsonService=new we(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const r=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",r),r}},He=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new d("TokenClient"),this._jsonService=new we(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:r=this._settings.client_secret,...i}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),i.code||n.throw(new Error("A code is required"));const o=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[u,h]of Object.entries(i))h!=null&&o.set(u,h);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(s,r);break;case"client_secret_post":o.append("client_id",s),r&&o.append("client_secret",r);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:r=this._settings.scope,...i}){const n=this._logger.create("exchangeCredentials");t||n.throw(new Error("A client_id is required"));const o=new URLSearchParams({grant_type:e,scope:r});for(const[u,h]of Object.entries(i))h!=null&&o.set(u,h);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:r,...i}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),i.refresh_token||n.throw(new Error("A refresh_token is required"));const o=new URLSearchParams({grant_type:e});for(const[u,h]of Object.entries(i))Array.isArray(h)?h.forEach(p=>o.append(u,p)):h!=null&&o.set(u,h);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,timeoutInSeconds:r,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const r=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const i=new URLSearchParams;for(const[n,o]of Object.entries(e))o!=null&&i.set(n,o);i.set("client_id",this._settings.client_id),this._settings.client_secret&&i.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(r,{body:i}),s.debug("got response")}},qt=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new d("ResponseValidator"),this._userInfoService=new Nt(this._settings,this._metadataService),this._tokenClient=new He(this._settings,this._metadataService)}async validateSigninResponse(e,t){const s=this._logger.create("validateSigninResponse");this._processSigninState(e,t),s.debug("state processed"),await this._processCode(e,t),s.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),s.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse");e.isOpenId&&!!e.id_token&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,r;const i=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(r=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&!!e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),i.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const n=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,n),i.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new L(e)}_processSigninState(e,t){var s;const r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(new Error("State does not match")),t.client_id||r.throw(new Error("No client_id on state")),t.authority||r.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(new Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new L(e);t.code_verifier&&!e.code&&r.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const r=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){r.debug("not loading user info");return}r.debug("loading user info");const i=await this._userInfoService.getClaims(e.access_token);r.debug("user info claims received from user info endpoint"),s&&i.sub!==e.profile.sub&&r.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(i)),r.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){const s=this._logger.create("_processCode");if(e.code){s.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,r)}else s.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const r=this._logger.create("_validateIdTokenAttributes");r.debug("decoding ID Token JWT");const i=ue.decode((s=e.id_token)!=null?s:"");if(i.sub||r.throw(new Error("ID Token is missing a subject claim")),t){const n=ue.decode(t);i.sub!==n.sub&&r.throw(new Error("sub in id_token does not match current sub")),i.auth_time&&i.auth_time!==n.auth_time&&r.throw(new Error("auth_time in id_token does not match original auth_time")),i.azp&&i.azp!==n.azp&&r.throw(new Error("azp in id_token does not match original azp")),!i.azp&&n.azp&&r.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=i}},Z=class _e{constructor(t){this.id=t.id||F.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=A.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new d("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return d.createStatic("State","fromStorageString"),Promise.resolve(new _e(JSON.parse(t)))}static async clearStaleState(t,s){const r=d.createStatic("State","clearStaleState"),i=A.getEpochTime()-s,n=await t.getAllKeys();r.debug("got keys",n);for(let o=0;om.searchParams.append("resource",S));for(const[R,S]of Object.entries({response_mode:c,...P,...y}))S!=null&&m.searchParams.append(R,S.toString());return new We({url:m.href,state:k})}};De._logger=new d("SigninRequest");var Mt=De,Ht="openid",ne=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(de);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(de))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+A.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(Ht))||!!this.id_token}},Lt=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:r,extraQueryParams:i,request_type:n,client_id:o}){if(this._logger=new d("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);s&&a.searchParams.append("id_token_hint",s),o&&a.searchParams.append("client_id",o),r&&(a.searchParams.append("post_logout_redirect_uri",r),t&&(this.state=new Z({data:t,request_type:n}),a.searchParams.append("state",this.state.id)));for(const[c,l]of Object.entries({...i}))l!=null&&a.searchParams.append(c,l.toString());this.url=a.href}},Dt=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},Wt=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Ft=["sub","iss","aud","exp","iat"],$t=class{constructor(e){this._settings=e,this._logger=new d("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=Wt;for(const r of s)Ft.includes(r)||delete t[r]}return t}mergeClaims(e,t){const s={...e};for(const[r,i]of Object.entries(t))if(s[r]!==i)if(Array.isArray(s[r])||Array.isArray(i))if(this._settings.mergeClaimsStrategy.array=="replace")s[r]=i;else{const n=Array.isArray(s[r])?s[r]:[s[r]];for(const o of Array.isArray(i)?i:[i])n.includes(o)||n.push(o);s[r]=n}else typeof s[r]=="object"&&typeof i=="object"?s[r]=this.mergeClaims(s[r],i):s[r]=i;return s}},Jt=class{constructor(e,t){this._logger=new d("OidcClient"),this.settings=e instanceof ge?e:new ge(e),this.metadataService=t!=null?t:new Ut(this.settings),this._claimsService=new $t(this.settings),this._validator=new qt(this.settings,this.metadataService,this._claimsService),this._tokenClient=new He(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:r,id_token_hint:i,login_hint:n,skipUserInfo:o,nonce:a,url_state:c,response_type:l=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:h=this.settings.redirect_uri,prompt:p=this.settings.prompt,display:f=this.settings.display,max_age:v=this.settings.max_age,ui_locales:y=this.settings.ui_locales,acr_values:b=this.settings.acr_values,resource:U=this.settings.resource,response_mode:P=this.settings.response_mode,extraQueryParams:k=this.settings.extraQueryParams,extraTokenParams:m=this.settings.extraTokenParams}){const w=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const R=await this.metadataService.getAuthorizationEndpoint();w.debug("Received authorization endpoint",R);const S=await Mt.create({url:R,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:h,response_type:l,scope:u,state_data:e,url_state:c,prompt:p,display:f,max_age:v,ui_locales:y,id_token_hint:i,login_hint:n,acr_values:b,resource:U,request:t,request_uri:s,extraQueryParams:k,extraTokenParams:m,request_type:r,response_mode:P,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:a,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();const g=S.state;return await this.settings.stateStore.set(g.id,g.toStorageString()),S}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),r=new ne(he.readParams(e,this.settings.response_mode));if(!r.state)throw s.throw(new Error("No state in response")),null;const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Le.fromStorageString(i),response:r}}async processSigninResponse(e){const t=this._logger.create("processSigninResponse"),{state:s,response:r}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(r,s),r}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:r={}}){const i=await this._tokenClient.exchangeCredentials({username:e,password:t,...r}),n=new ne(new URLSearchParams);return Object.assign(n,i),await this._validator.validateCredentialsResponse(n,s),n}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:r,extraTokenParams:i}){var n;const o=this._logger.create("useRefreshToken");let a;if(this.settings.refreshTokenAllowedScope===void 0)a=e.scope;else{const u=this.settings.refreshTokenAllowedScope.split(" ");a=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(p=>u.includes(p)).join(" ")}const c=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:s,timeoutInSeconds:r,...i}),l=new ne(new URLSearchParams);return Object.assign(l,c),o.debug("validating response",l),await this._validator.validateRefreshResponse(l,{...e,scope:a}),l}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:r,post_logout_redirect_uri:i=this.settings.post_logout_redirect_uri,extraQueryParams:n=this.settings.extraQueryParams}={}){const o=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw o.throw(new Error("No end session endpoint")),null;o.debug("Received end session endpoint",a),!s&&i&&!t&&(s=this.settings.client_id);const c=new Lt({url:a,id_token_hint:t,client_id:s,post_logout_redirect_uri:i,state_data:e,extraQueryParams:n,request_type:r});await this.clearStaleState();const l=c.state;return l&&(o.debug("Signout request has state to persist"),await this.settings.stateStore.set(l.id,l.toStorageString())),c}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),r=new Dt(he.readParams(e,this.settings.response_mode));if(!r.state){if(s.debug("No state in response"),r.error)throw s.warn("Response was error:",r.error),new L(r);return{state:void 0,response:r}}const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Z.fromStorageString(i),response:r}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:r}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(r,s)):t.debug("No state from storage; skipping response validation"),r}clearStaleState(){return this._logger.create("clearStaleState"),Z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Kt=class{constructor(e){this._userManager=e,this._logger=new d("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const r=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,r.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,r.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const i=await this._userManager.metadataService.getCheckSessionIframe();if(i){r.debug("initializing check session iframe");const n=this._userManager.settings.client_id,o=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,c=new Ct(this._callback,n,i,o,a);await c.load(),this._checkSessionIFrame=c,c.start(s)}else r.warn("no check session iframe found in the metadata")}catch(i){r.error("Error from getCheckSessionIframe:",i instanceof Error?i.message:i)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const r=await this._userManager.querySessionStatus();if(r){const i={session_state:r.session_state,profile:r.sub?{sub:r.sub}:null};this._start(i)}}catch(r){t.error("error from querySessionStatus",r instanceof Error?r.message:r)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let r=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(r=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),r?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},oe=class Fe{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+A.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new d("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return d.createStatic("User","fromStorageString"),new Fe(JSON.parse(t))}},ye="oidc-client",$e=class{constructor(){this._abort=new q("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:r}=await new Promise((i,n)=>{const o=a=>{var c;const l=a.data,u=(c=e.scriptOrigin)!=null?c:window.location.origin;if(!(a.origin!==u||(l==null?void 0:l.source)!==ye)){try{const h=he.readParams(l.url,e.response_mode).get("state");if(h||t.warn("no state found in response url"),a.source!==this._window&&h!==e.state)return}catch{this._dispose(),n(new Error("Invalid response from window"))}i(l)}};window.addEventListener("message",o,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",o,!1)),this._disposeHandlers.add(this._abort.addHandler(a=>{this._dispose(),n(a)}))});return t.debug("got response from window"),this._dispose(),r||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,r=window.location.origin){e.postMessage({source:ye,url:t,keepOpen:s},r)}},Je={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Ke="_blank",zt=60,Vt=2,ze=10,Bt=class extends ge{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:r=Je,popupWindowTarget:i=Ke,redirectMethod:n="assign",redirectTarget:o="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,silent_redirect_uri:l=e.redirect_uri,silentRequestTimeoutInSeconds:u=ze,automaticSilentRenew:h=!0,validateSubOnSilentRenew:p=!0,includeIdTokenInSilentRenew:f=!1,monitorSession:v=!1,monitorAnonymousSession:y=!1,checkSessionIntervalInSeconds:b=Vt,query_status_response_type:U="code",stopCheckSessionOnError:P=!0,revokeTokenTypes:k=["access_token","refresh_token"],revokeTokensOnSignout:m=!1,includeIdTokenInSilentSignout:w=!1,accessTokenExpiringNotificationTimeInSeconds:R=zt,userStore:S}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=r,this.popupWindowTarget=i,this.redirectMethod=n,this.redirectTarget=o,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=c,this.silent_redirect_uri=l,this.silentRequestTimeoutInSeconds=u,this.automaticSilentRenew=h,this.validateSubOnSilentRenew=p,this.includeIdTokenInSilentRenew=f,this.monitorSession=v,this.monitorAnonymousSession=y,this.checkSessionIntervalInSeconds=b,this.stopCheckSessionOnError=P,this.query_status_response_type=U,this.revokeTokenTypes=k,this.revokeTokensOnSignout=m,this.includeIdTokenInSilentSignout=w,this.accessTokenExpiringNotificationTimeInSeconds=R,S)this.userStore=S;else{const g=typeof window<"u"?window.sessionStorage:new qe;this.userStore=new Me({store:g})}}},be=class Ve extends $e{constructor({silentRequestTimeoutInSeconds:t=ze}){super(),this._logger=new d("IFrameWindow"),this._timeoutInSeconds=t,this._frame=Ve.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new fe("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var r;const i=s.target;(r=i.parentNode)==null||r.removeChild(i),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},Gt=class{constructor(e){this._settings=e,this._logger=new d("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new be({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),be.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Qt=500,Yt=1e3,ke=class extends $e{constructor({popupWindowTarget:e=Ke,popupWindowFeatures:t={}}){super(),this._logger=new d("PopupWindow");const s=ve.center({...Je,...t});this._window=window.open(void 0,e,ve.serialize(s)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*Yt)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},Qt);return this._disposeHandlers.add(()=>clearInterval(s)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},Xt=class{constructor(e){this._settings=e,this._logger=new d("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new ke({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),ke.notifyOpener(e,t)}},Zt=class{constructor(e){this._settings=e,this._logger=new d("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let r=window.self;t==="top"&&(r=(s=window.top)!=null?s:window.self);const i=r.location[e].bind(r.location);let n;return{navigate:async o=>{this._logger.create("navigate");const a=new Promise((c,l)=>{n=l});return i(o.url),await a},close:()=>{this._logger.create("close"),n==null||n(new Error("Redirect aborted")),r.stop()}}}async callback(){}},es=class extends xt{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new d("UserManagerEvents"),this._userLoaded=new q("User loaded"),this._userUnloaded=new q("User unloaded"),this._silentRenewError=new q("Silent renew error"),this._userSignedIn=new q("User signed in"),this._userSignedOut=new q("User signed out"),this._userSessionChanged=new q("User session changed")}async load(e,t=!0){super.load(e),t&&await this._userLoaded.raise(e)}async unload(){super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},ts=class{constructor(e){this._userManager=e,this._logger=new d("SilentRenewService"),this._isStarted=!1,this._retryTimer=new A("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof fe){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},ss=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},rs=class{constructor(e,t,s,r){this._logger=new d("UserManager"),this.settings=new Bt(e),this._client=new Jt(e),this._redirectNavigator=t!=null?t:new Zt(this.settings),this._popupNavigator=s!=null?s:new Xt(this.settings),this._iframeNavigator=r!=null?r:new Gt(this.settings),this._events=new es(this.settings),this._silentRenewService=new ts(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Kt(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){const e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),await this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");const{redirectMethod:t,...s}=e,r=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...s},r)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const r=this._logger.create("signinResourceOwnerCredential"),i=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});r.debug("got signin response");const n=await this._buildUser(i);return n.profile&&n.profile.sub?r.info("success, signed in subject",n.profile.sub):r.info("no subject"),n}async signinPopup(e={}){const t=this._logger.create("signinPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_redirect_uri;n||t.throw(new Error("No popup_redirect_uri configured"));const o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r}),a=await this._signin({request_type:"si:p",redirect_uri:n,display:"popup",...i},o);return a&&(a.profile&&a.profile.sub?t.info("success, signed in subject",a.profile.sub):t.info("no subject")),a}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t;const s=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...i}=e;let n=await this._loadUser();if(n!=null&&n.refresh_token){s.debug("using refresh token");const l=new ss(n);return await this._useRefreshToken({state:l,redirect_uri:i.redirect_uri,resource:i.resource,extraTokenParams:i.extraTokenParams,timeoutInSeconds:r})}const o=this.settings.silent_redirect_uri;o||s.throw(new Error("No silent_redirect_uri configured"));let a;n&&this.settings.validateSubOnSilentRenew&&(s.debug("subject prior to silent renew:",n.profile.sub),a=n.profile.sub);const c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return n=await this._signin({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,...i},c,a),n&&((t=n.profile)!=null&&t.sub?s.info("success, signed in subject",n.profile.sub):s.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({...e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),s=new oe({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(!!s)switch(s.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...r}=e,i=this.settings.silent_redirect_uri;i||t.throw(new Error("No silent_redirect_uri configured"));const n=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),a=await this._signinStart({request_type:"si:s",redirect_uri:i,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...r},o);try{const c=await this._client.processSigninResponse(a.url);return t.debug("got signin response"),c.session_state&&c.profile.sub?(t.info("success for subject",c.profile.sub),{session_state:c.session_state,sub:c.profile.sub}):(t.info("success, user not authenticated"),null)}catch(c){if(this.settings.monitorAnonymousSession&&c instanceof L)switch(c.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:c.session_state}}throw c}}async _signin(e,t,s){const r=await this._signinStart(e,t);return await this._signinEnd(r.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const r=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:r.url,state:r.state.id,response_mode:r.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),r=await this._client.processSigninResponse(e);return s.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),r=new oe(e);if(t){if(t!==r.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",r.profile.sub),new L({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(r),s.debug("user stored"),await this._events.load(r),r}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...r},i),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_post_logout_redirect_uri,o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...i},o),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const r=this._logger.create("_signoutStart");try{const i=await this._loadUser();r.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(i);const n=e.id_token_hint||i&&i.id_token;n&&(r.debug("setting id_token_hint in signout request"),e.id_token_hint=n),await this.removeUser(),r.debug("user removed, creating signout request");const o=await this._client.createSignoutRequest(e);return r.debug("got signout request"),await t.navigate({url:o.url,state:(s=o.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,o=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});await this._signout({request_type:"so:s",post_logout_redirect_uri:o,id_token_hint:n,...i},a),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const r=t.filter(i=>typeof e[i]=="string");if(!r.length){s.debug("no need to revoke due to no token(s)");return}for(const i of r)await this._client.revokeToken(e[i],i),s.info(`${i} revoked successfully`),i!=="access_token"&&(e[i]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),oe.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}};class ps{async authenticate(t){try{const s=await fetch("/_auth/authenticate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t})});if(!s.ok)throw new Error(await s.text());return null}catch(s){return s.message}}async verify(t,s){const r=await fetch("/_auth/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,token:s})});if(!r.ok){if(r.status==410)throw new Error("expired");return null}const i=await r.json(),n=$();return n.saveJWT(i.jwt),n.user}}const B=class{constructor(){D(this,"oidcUserManager");D(this,"userStore");if(!B.isConfigured())throw new Error("OIDCUserProvider is not configured");const t={authority:B.authority,client_id:B.clientID,redirect_uri:window.location.origin+"/oidc-login-callback"};this.oidcUserManager=new rs(t),this.userStore=$(),bt(()=>this.logout())}static init(t,s){this.clientID=t,this.authority=s}static isConfigured(){return!!this.clientID&&!!this.authority}async login(){const t=await this.oidcUserManager.signinPopup({scope:"openid profile email"}),s=await fetch("/_auth/oidc-verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({access_token:t.access_token})});if(!s.ok)return null;const r=await s.json();return this.userStore.saveJWT(r.jwt),this.userStore.user}async loginCallback(){await this.oidcUserManager.signinPopupCallback()}async logout(){await this.oidcUserManager.signoutPopup({post_logout_redirect_uri:window.location.origin+"/oidc-logout-callback"})}async logoutCallback(){await this.oidcUserManager.signoutPopupCallback()}};let z=B;D(z,"clientID",null),D(z,"authority",null);async function fs(){const e=await fetch("/_settings");if(!e.ok)throw new Error(await e.text());const t=await e.json();Q.init(t)}const ee=class{constructor(t){this.config=t}static init(t){z.init(t.oidc_client_id,t.oidc_authority),ee.instance=new ee(t)}get showWatermark(){return this.config.show_watermark}get isStagingRelease(){return{}.VITE_ABSTRA_RELEASE==="staging"}get isLocal(){return location.origin.match(/http:\/\/localhost:\d+/)}};let Q=ee;D(Q,"instance",null);const is=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>j(()=>import("./OidcLoginCallback.f3d06c0a.js"),["assets/OidcLoginCallback.f3d06c0a.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>j(()=>import("./OidcLogoutCallback.475974f9.js"),["assets/OidcLogoutCallback.475974f9.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>j(()=>import("./Login.fe553e92.js"),["assets/Login.fe553e92.js","assets/Login.vue_vue_type_script_setup_true_lang.8e55196d.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/CircularLoading.b40e14c8.js","assets/CircularLoading.e156a2b0.css","assets/index.e5bdb21b.js","assets/PhArrowClockwise.vue.5c4db05c.js","assets/Login.d43fdc58.css","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/Login.9bbb0d8a.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>j(()=>import("./Main.5448238a.js"),["assets/Main.5448238a.js","assets/PlayerNavbar.78adf027.js","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/PhSignOut.vue.e09114f0.js","assets/index.b16edfcc.js","assets/Avatar.6f67d038.js","assets/PlayerNavbar.b72557ee.css","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/Main.8e1556b3.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>j(()=>import("./Home.47154a4d.js"),["assets/Home.47154a4d.js","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/Watermark.31f43e38.js","assets/Watermark.4e66f4f8.css","assets/PhArrowSquareOut.vue.340970aa.js","assets/index.bb32f6bd.js","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/Home.ad6586e4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"threads",name:"playerThreads",component:()=>j(()=>import("./Threads.455cb692.js"),["assets/Threads.455cb692.js","assets/api.a5810267.js","assets/fetch.492045fb.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/WorkflowView.11202833.js","assets/polling.ce5b4e64.js","assets/asyncComputed.d0f14ed3.js","assets/PhQuestion.vue.500e5a18.js","assets/ant-design.57cbe6fb.js","assets/index.ec6b7808.js","assets/index.3f22f3b8.js","assets/index.03e5f55c.js","assets/CollapsePanel.d6e0f903.js","assets/index.c2ef572b.js","assets/index.c9c8d27c.js","assets/isNumeric.75337b1e.js","assets/PhArrowCounterClockwise.vue.548df89b.js","assets/Workflow.602b68d4.js","assets/PhArrowClockwise.vue.5c4db05c.js","assets/validations.f7853e39.js","assets/string.eaeb96c3.js","assets/uuid.27635aee.js","assets/index.52fae423.js","assets/workspaces.1ee4ae8d.js","assets/record.34d5b504.js","assets/colorHelpers.c5724389.js","assets/index.40c3f00c.js","assets/Badge.49622b8e.js","assets/Workflow.6fe906b3.css","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/LoadingOutlined.6c0b95d8.js","assets/DeleteOutlined.a943fe4d.js","assets/PhDownloadSimple.vue.285a519c.js","assets/utils.b9d20cd5.js","assets/LoadingContainer.01cf1024.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.78019367.css","assets/url.c1b32560.js","assets/Threads.eebabf19.css"]),meta:{title:"Threads"}},{path:"error/:status",name:"error",component:()=>j(()=>import("./Error.e3013f1e.js"),["assets/Error.e3013f1e.js","assets/Logo.1a35ae4d.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/Logo.21e86751.css","assets/Card.b3c66431.js","assets/TabPane.9889f7a8.js","assets/url.c1b32560.js","assets/colorHelpers.c5724389.js","assets/Error.3f9fecb3.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>j(()=>import("./Form.980b0323.js"),["assets/Form.980b0323.js","assets/api.a5810267.js","assets/fetch.492045fb.js","assets/vue-router.4c13f3d4.js","assets/vue-router.49774e2d.css","assets/metadata.d6f3a171.js","assets/PhBug.vue.e9805eb3.js","assets/PhCheckCircle.vue.aa5f3146.js","assets/PhKanban.vue.b5dcf2c4.js","assets/PhWebhooksLogo.vue.1b61227c.js","assets/FormRunner.2728cecd.js","assets/url.c1b32560.js","assets/Login.vue_vue_type_script_setup_true_lang.8e55196d.js","assets/CircularLoading.b40e14c8.js","assets/CircularLoading.e156a2b0.css","assets/index.e5bdb21b.js","assets/PhArrowClockwise.vue.5c4db05c.js","assets/Login.d43fdc58.css","assets/Steps.2273c005.js","assets/Steps.d681065f.css","assets/Watermark.31f43e38.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.30bf18bf.css","assets/asyncComputed.d0f14ed3.js","assets/uuid.27635aee.js","assets/colorHelpers.c5724389.js","assets/Form.a6aac401.css"]),meta:{hideLogin:!0}}]}],Ee=ht({history:dt("/"),routes:is,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),ns=e=>async(t,s)=>{if(gt(t,s),t.meta.allowUnauthenticated)return;const n=await $().allow(t.path),{redirect:o,...a}=t.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...a,redirect:o||t.path},params:t.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};Ee.beforeEach(ns(Ee));function Te(e,t,s){return _t(t)?t:s==="player"?`/_assets/${e}`:`/_editor/api/assets/${t}`}const Be="#414a58",Ge="#FFFFFF",os="#000000",Qe="DM Sans",as="Untitled Project",Ye={value:"en",label:"English"};function cs(e){var t,s,r,i,n,o,a,c,l,u,h,p,f,v,y,b;return{id:e.id,path:e.path,theme:(t=e.workspace.theme)!=null?t:Ge,brandName:(s=e.workspace.brand_name)!=null?s:null,title:e.title,isInitial:e.is_initial,isLocal:(r=e.is_local)!=null?r:!1,startMessage:(i=e.start_message)!=null?i:null,endMessage:(n=e.end_message)!=null?n:null,errorMessage:(o=e.error_message)!=null?o:null,timeoutMessage:(a=e.timeout_message)!=null?a:null,startButtonText:(c=e.start_button_text)!=null?c:null,restartButtonText:(l=e.restart_button_text)!=null?l:null,logoUrl:e.workspace.logo_url,mainColor:(u=e.workspace.main_color)!=null?u:Be,fontFamily:(h=e.workspace.font_family)!=null?h:Qe,autoStart:(p=e.auto_start)!=null?p:!1,allowRestart:e.allow_restart,welcomeTitle:(f=e.welcome_title)!=null?f:null,runtimeType:"form",language:(v=e.workspace.language)!=null?v:Ye.value,sidebar:(b=(y=e.workspace)==null?void 0:y.sidebar)!=null?b:[]}}function Re(e){var s;const t=(s=e.theme)!=null?s:Ge;return{name:e.name||as,fontColor:e.font_color||os,sidebar:e.sidebar||[],brandName:e.brand_name||"",fontFamily:e.font_family||Qe,logoUrl:e.logo_url?Te("logo",e.logo_url,"player"):null,mainColor:e.main_color||Be,theme:pt(t)?t:Te("background",t,"player"),language:e.language||Ye.value}}async function ws(e){const t=$(),s=await fetch(`/_pages/${e}`,{headers:t.authHeaders});if(s.status===404)return null;if(!s.ok)throw new Error(await s.text());const{form:r}=await s.json();return r?cs(r):null}async function ls(){const e=$(),t=await fetch("/_workspace",{headers:e.authHeaders});if(t.status!=200)return Re({});const s=await t.json();return Re(s)}const ms=Ne("workspace",()=>{const e=te({workspace:null,loading:!1});return{state:e,actions:{async fetch(){e.value.loading=!0,e.value.workspace=await ls(),e.value.loading=!1}}}});export{ps as A,Be as D,z as O,Q as S,Ee as a,$ as b,_s as c,Ne as d,Qe as e,Ye as f,ns as g,Ge as h,bt as i,ws as j,Te as m,is as r,fs as s,ms as u}; -//# sourceMappingURL=workspaceStore.ae240ce8.js.map + */let Pe;const se=e=>Pe=e,Oe=Symbol();function ce(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var V;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(V||(V={}));function _s(){const e=Ie(!0),t=e.run(()=>te({}));let s=[],r=[];const i=xe({install(n){se(i),i._a=n,n.provide(Oe,i),n.config.globalProperties.$pinia=i,r.forEach(o=>s.push(o)),r=[]},use(n){return!this._a&&!ft?r.push(n):s.push(n),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return i}const Ae=()=>{};function me(e,t,s,r=Ae){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!s&&it()&&nt(i),i}function W(e,...t){e.slice().forEach(s=>{s(...t)})}const wt=e=>e();function le(e,t){e instanceof Map&&t instanceof Map&&t.forEach((s,r)=>e.set(r,s)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const r=t[s],i=e[s];ce(i)&&ce(r)&&e.hasOwnProperty(s)&&!Y(r)&&!Ue(r)?e[s]=le(i,r):e[s]=r}return e}const mt=Symbol();function St(e){return!ce(e)||!e.hasOwnProperty(mt)}const{assign:N}=Object;function vt(e){return!!(Y(e)&&e.effect)}function yt(e,t,s,r){const{state:i,actions:n,getters:o}=t,a=s.state.value[e];let c;function l(){a||(s.state.value[e]=i?i():{});const u=at(s.state.value[e]);return N(u,n,Object.keys(o||{}).reduce((h,p)=>(h[p]=xe(ae(()=>{se(s);const f=s._s.get(e);return o[p].call(f,f)})),h),{}))}return c=je(e,l,t,s,r,!0),c}function je(e,t,s={},r,i,n){let o;const a=N({actions:{}},s),c={deep:!0};let l,u,h=[],p=[],f;const v=r.state.value[e];!n&&!v&&(r.state.value[e]={}),te({});let y;function b(g){let _;l=u=!1,typeof g=="function"?(g(r.state.value[e]),_={type:V.patchFunction,storeId:e,events:f}):(le(r.state.value[e],g),_={type:V.patchObject,payload:g,storeId:e,events:f});const E=y=Symbol();ot().then(()=>{y===E&&(l=!0)}),u=!0,W(h,_,r.state.value[e])}const U=n?function(){const{state:_}=s,E=_?_():{};this.$patch(O=>{N(O,E)})}:Ae;function P(){o.stop(),h=[],p=[],r._s.delete(e)}function k(g,_){return function(){se(r);const E=Array.from(arguments),O=[],M=[];function re(T){O.push(T)}function ie(T){M.push(T)}W(p,{args:E,name:g,store:w,after:re,onError:ie});let H;try{H=_.apply(this&&this.$id===e?this:w,E)}catch(T){throw W(M,T),T}return H instanceof Promise?H.then(T=>(W(O,T),T)).catch(T=>(W(M,T),Promise.reject(T))):(W(O,H),H)}}const m={_p:r,$id:e,$onAction:me.bind(null,p),$patch:b,$reset:U,$subscribe(g,_={}){const E=me(h,g,_.detached,()=>O()),O=o.run(()=>Ce(()=>r.state.value[e],M=>{(_.flush==="sync"?u:l)&&g({storeId:e,type:V.direct,events:f},M)},N({},c,_)));return E},$dispose:P},w=st(m);r._s.set(e,w);const S=(r._a&&r._a.runWithContext||wt)(()=>r._e.run(()=>(o=Ie()).run(t)));for(const g in S){const _=S[g];if(Y(_)&&!vt(_)||Ue(_))n||(v&&St(_)&&(Y(_)?_.value=v[g]:le(_,v[g])),r.state.value[e][g]=_);else if(typeof _=="function"){const E=k(g,_);S[g]=E,a.actions[g]=_}}return N(w,S),N(rt(w),S),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:g=>{b(_=>{N(_,g)})}}),r._p.forEach(g=>{N(w,o.run(()=>g({store:w,app:r._a,pinia:r,options:a})))}),v&&n&&s.hydrate&&s.hydrate(w.$state,v),l=!0,u=!0,w}function Ne(e,t,s){let r,i;const n=typeof t=="function";typeof e=="string"?(r=e,i=n?s:t):(i=e,r=e.id);function o(a,c){const l=et();return a=a||(l?tt(Oe,null):null),a&&se(a),a=Pe,a._s.has(r)||(n?je(r,t,i,a):yt(r,i,a)),a._s.get(r)}return o.$id=r,o}const $=Ne("user",()=>{const e=new ct(lt.string(),"auth:jwt"),t=te(null),s=ae(()=>t.value?{Authorization:`Bearer ${t.value.rawJwt}`}:{}),r=ae(()=>t.value?["default",`base64url.bearer.authorization.${t.value.rawJwt}`]:[]),i=u=>{e.set(u),n()},n=()=>{const u=e.get();if(!!u)try{const h=ut(u);h.exp&&h.exp>Date.now()/1e3&&(t.value={rawJwt:u,claims:h})}catch{console.warn("Invalid JWT")}},o=()=>{t.value=null,e.remove()},a=async()=>(await fetch("/_user/my-roles",{headers:s.value})).json(),c=async()=>(await fetch("/_user/sign-up",{method:"POST",headers:s.value})).status===200,l=async u=>(await fetch(`/_access-control/allow${u}`,{headers:s.value})).json();return n(),{loadSavedToken:n,saveJWT:i,user:t,logout:o,getRoles:a,authHeaders:s,wsAuthHeaders:r,signUp:c,allow:l}}),bt=e=>{const t=$();Ce(()=>t.user,(s,r)=>{!s&&r&&e()})};class J extends Error{}J.prototype.name="InvalidTokenError";function kt(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,s)=>{let r=s.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Et(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return kt(t)}catch{return atob(t)}}function Tt(e,t){if(typeof e!="string")throw new J("Invalid token specified: must be a string");t||(t={});const s=t.header===!0?0:1,r=e.split(".")[s];if(typeof r!="string")throw new J(`Invalid token specified: missing part #${s+1}`);let i;try{i=Et(r)}catch(n){throw new J(`Invalid token specified: invalid base64 for part #${s+1} (${n.message})`)}try{return JSON.parse(i)}catch(n){throw new J(`Invalid token specified: invalid json for part #${s+1} (${n.message})`)}}var Rt={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},x,C,X=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(X||{});(e=>{function t(){x=3,C=Rt}e.reset=t;function s(i){if(!(0<=i&&i<=4))throw new Error("Invalid log level");x=i}e.setLevel=s;function r(i){C=i}e.setLogger=r})(X||(X={}));var d=class I{constructor(t){this._name=t}debug(...t){x>=4&&C.debug(I._format(this._name,this._method),...t)}info(...t){x>=3&&C.info(I._format(this._name,this._method),...t)}warn(...t){x>=2&&C.warn(I._format(this._name,this._method),...t)}error(...t){x>=1&&C.error(I._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const r=new I(`${t}.${s}`);return r.debug("begin"),r}static _format(t,s){const r=`[${t}]`;return s?`${r} ${s}:`:r}static debug(t,...s){x>=4&&C.debug(I._format(t),...s)}static info(t,...s){x>=3&&C.info(I._format(t),...s)}static warn(t,...s){x>=2&&C.warn(I._format(t),...s)}static error(t,...s){x>=1&&C.error(I._format(t),...s)}};X.reset();var It="10000000-1000-4000-8000-100000000000",Se=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),F=class K{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return It.replace(/[018]/g,s=>(+s^K._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return K.generateUUIDv4()+K.generateUUIDv4()+K.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const r=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",r);return Se(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw d.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const i=new TextEncoder().encode([t,s].join(":"));return Se(i)}},q=class{constructor(e){this._name=e,this._logger=new d(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},ue=class{static decode(e){try{return Tt(e)}catch(t){throw d.error("JwtUtils.decode",t),t}}},ve=class{static center({...e}){var t,s,r;return e.width==null&&(e.width=(t=[800,720,600,480].find(i=>i<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((r=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},A=class G extends q{constructor(){super(...arguments),this._logger=new d(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-G.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=G.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const r=G.getEpochTime()+t;if(this.expiration===r&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=r;const i=Math.min(t,5);this._timerHandle=setInterval(this._callback,i*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},he=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const r=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(r.slice(1))}},de=";",L=class extends Error{constructor(e,t){var s,r,i;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw d.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(r=e.error_uri)!=null?r:null,this.state=e.userState,this.session_state=(i=e.session_state)!=null?i:null,this.url_state=e.url_state}},fe=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},xt=class{constructor(e){this._logger=new d("AccessTokenEvents"),this._expiringTimer=new A("Access token expiring"),this._expiredTimer=new A("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let i=s-this._expiringNotificationTimeInSeconds;i<=0&&(i=1),t.debug("registering expiring timer, raising in",i,"seconds"),this._expiringTimer.init(i)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const r=s+1;t.debug("registering expired timer, raising in",r,"seconds"),this._expiredTimer.init(r)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},Ct=class{constructor(e,t,s,r,i){this._callback=e,this._client_id=t,this._intervalInSeconds=r,this._stopOnError=i,this._logger=new d("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=o=>{o.origin===this._frame_origin&&o.source===this._frame.contentWindow&&(o.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):o.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(o.data+" message from check session op iframe"))};const n=new URL(s);this._frame_origin=n.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=n.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},qe=class{constructor(){this._logger=new d("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},we=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new d("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...r}=t;if(!s)return await fetch(e,r);const i=new AbortController,n=setTimeout(()=>i.abort(),s*1e3);try{return await fetch(e,{...t,signal:i.signal})}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new fe("Network timed out"):o}finally{clearTimeout(n)}}async getJson(e,{token:t,credentials:s}={}){const r=this._logger.create("getJson"),i={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),i.Authorization="Bearer "+t),this.appendExtraHeaders(i);let n;try{r.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:i,credentials:s})}catch(c){throw r.error("Network Error"),c}r.debug("HTTP response received, status",n.status);const o=n.headers.get("Content-Type");if(o&&!this._contentTypes.find(c=>o.startsWith(c))&&r.throw(new Error(`Invalid response Content-Type: ${o!=null?o:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(o==null?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let a;try{a=await n.json()}catch(c){throw r.error("Error parsing JSON response",c),n.ok?c:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw r.error("Error from server:",a),a.error?new L(a):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(a)}`);return a}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:r,initCredentials:i}){const n=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};s!==void 0&&(o.Authorization="Basic "+s),this.appendExtraHeaders(o);let a;try{n.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:r,credentials:i})}catch(h){throw n.error("Network error"),h}n.debug("HTTP response received, status",a.status);const c=a.headers.get("Content-Type");if(c&&!this._contentTypes.find(h=>c.startsWith(h)))throw new Error(`Invalid response Content-Type: ${c!=null?c:"undefined"}, from URL: ${e}`);const l=await a.text();let u={};if(l)try{u=JSON.parse(l)}catch(h){throw n.error("Error parsing JSON response",h),a.ok?h:new Error(`${a.statusText} (${a.status})`)}if(!a.ok)throw n.error("Error from server:",u),u.error?new L(u,t):new Error(`${a.statusText} (${a.status}): ${JSON.stringify(u)}`);return u}appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),r=["authorization","accept","content-type"];s.length!==0&&s.forEach(i=>{if(r.includes(i.toLocaleLowerCase())){t.warn("Protected header could not be overridden",i,r);return}const n=typeof this._extraHeaders[i]=="function"?this._extraHeaders[i]():this._extraHeaders[i];n&&n!==""&&(e[i]=n)})}},Ut=class{constructor(e){this._settings=e,this._logger=new d("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new we(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),r=await this.getMetadata();if(s.debug("resolved"),r[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return r[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t);if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},Me=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new d("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s{const r=this._logger.create("_getClaimsFromJwt");try{const i=ue.decode(s);return r.debug("JWT decoding successful"),i}catch(i){throw r.error("Error parsing JWT response"),i}},this._jsonService=new we(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const r=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",r),r}},He=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new d("TokenClient"),this._jsonService=new we(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:r=this._settings.client_secret,...i}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),i.code||n.throw(new Error("A code is required"));const o=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[u,h]of Object.entries(i))h!=null&&o.set(u,h);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(s,r);break;case"client_secret_post":o.append("client_id",s),r&&o.append("client_secret",r);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:r=this._settings.scope,...i}){const n=this._logger.create("exchangeCredentials");t||n.throw(new Error("A client_id is required"));const o=new URLSearchParams({grant_type:e,scope:r});for(const[u,h]of Object.entries(i))h!=null&&o.set(u,h);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:r,...i}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),i.refresh_token||n.throw(new Error("A refresh_token is required"));const o=new URLSearchParams({grant_type:e});for(const[u,h]of Object.entries(i))Array.isArray(h)?h.forEach(p=>o.append(u,p)):h!=null&&o.set(u,h);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,timeoutInSeconds:r,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const r=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const i=new URLSearchParams;for(const[n,o]of Object.entries(e))o!=null&&i.set(n,o);i.set("client_id",this._settings.client_id),this._settings.client_secret&&i.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(r,{body:i}),s.debug("got response")}},qt=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new d("ResponseValidator"),this._userInfoService=new Nt(this._settings,this._metadataService),this._tokenClient=new He(this._settings,this._metadataService)}async validateSigninResponse(e,t){const s=this._logger.create("validateSigninResponse");this._processSigninState(e,t),s.debug("state processed"),await this._processCode(e,t),s.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),s.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse");e.isOpenId&&!!e.id_token&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,r;const i=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(r=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&!!e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),i.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const n=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,n),i.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new L(e)}_processSigninState(e,t){var s;const r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(new Error("State does not match")),t.client_id||r.throw(new Error("No client_id on state")),t.authority||r.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(new Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new L(e);t.code_verifier&&!e.code&&r.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const r=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){r.debug("not loading user info");return}r.debug("loading user info");const i=await this._userInfoService.getClaims(e.access_token);r.debug("user info claims received from user info endpoint"),s&&i.sub!==e.profile.sub&&r.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(i)),r.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){const s=this._logger.create("_processCode");if(e.code){s.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,r)}else s.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const r=this._logger.create("_validateIdTokenAttributes");r.debug("decoding ID Token JWT");const i=ue.decode((s=e.id_token)!=null?s:"");if(i.sub||r.throw(new Error("ID Token is missing a subject claim")),t){const n=ue.decode(t);i.sub!==n.sub&&r.throw(new Error("sub in id_token does not match current sub")),i.auth_time&&i.auth_time!==n.auth_time&&r.throw(new Error("auth_time in id_token does not match original auth_time")),i.azp&&i.azp!==n.azp&&r.throw(new Error("azp in id_token does not match original azp")),!i.azp&&n.azp&&r.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=i}},Z=class _e{constructor(t){this.id=t.id||F.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=A.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new d("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return d.createStatic("State","fromStorageString"),Promise.resolve(new _e(JSON.parse(t)))}static async clearStaleState(t,s){const r=d.createStatic("State","clearStaleState"),i=A.getEpochTime()-s,n=await t.getAllKeys();r.debug("got keys",n);for(let o=0;om.searchParams.append("resource",S));for(const[R,S]of Object.entries({response_mode:c,...P,...y}))S!=null&&m.searchParams.append(R,S.toString());return new We({url:m.href,state:k})}};De._logger=new d("SigninRequest");var Mt=De,Ht="openid",ne=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(de);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(de))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+A.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(Ht))||!!this.id_token}},Lt=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:r,extraQueryParams:i,request_type:n,client_id:o}){if(this._logger=new d("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);s&&a.searchParams.append("id_token_hint",s),o&&a.searchParams.append("client_id",o),r&&(a.searchParams.append("post_logout_redirect_uri",r),t&&(this.state=new Z({data:t,request_type:n}),a.searchParams.append("state",this.state.id)));for(const[c,l]of Object.entries({...i}))l!=null&&a.searchParams.append(c,l.toString());this.url=a.href}},Dt=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},Wt=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Ft=["sub","iss","aud","exp","iat"],$t=class{constructor(e){this._settings=e,this._logger=new d("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=Wt;for(const r of s)Ft.includes(r)||delete t[r]}return t}mergeClaims(e,t){const s={...e};for(const[r,i]of Object.entries(t))if(s[r]!==i)if(Array.isArray(s[r])||Array.isArray(i))if(this._settings.mergeClaimsStrategy.array=="replace")s[r]=i;else{const n=Array.isArray(s[r])?s[r]:[s[r]];for(const o of Array.isArray(i)?i:[i])n.includes(o)||n.push(o);s[r]=n}else typeof s[r]=="object"&&typeof i=="object"?s[r]=this.mergeClaims(s[r],i):s[r]=i;return s}},Jt=class{constructor(e,t){this._logger=new d("OidcClient"),this.settings=e instanceof ge?e:new ge(e),this.metadataService=t!=null?t:new Ut(this.settings),this._claimsService=new $t(this.settings),this._validator=new qt(this.settings,this.metadataService,this._claimsService),this._tokenClient=new He(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:r,id_token_hint:i,login_hint:n,skipUserInfo:o,nonce:a,url_state:c,response_type:l=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:h=this.settings.redirect_uri,prompt:p=this.settings.prompt,display:f=this.settings.display,max_age:v=this.settings.max_age,ui_locales:y=this.settings.ui_locales,acr_values:b=this.settings.acr_values,resource:U=this.settings.resource,response_mode:P=this.settings.response_mode,extraQueryParams:k=this.settings.extraQueryParams,extraTokenParams:m=this.settings.extraTokenParams}){const w=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const R=await this.metadataService.getAuthorizationEndpoint();w.debug("Received authorization endpoint",R);const S=await Mt.create({url:R,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:h,response_type:l,scope:u,state_data:e,url_state:c,prompt:p,display:f,max_age:v,ui_locales:y,id_token_hint:i,login_hint:n,acr_values:b,resource:U,request:t,request_uri:s,extraQueryParams:k,extraTokenParams:m,request_type:r,response_mode:P,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:a,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();const g=S.state;return await this.settings.stateStore.set(g.id,g.toStorageString()),S}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),r=new ne(he.readParams(e,this.settings.response_mode));if(!r.state)throw s.throw(new Error("No state in response")),null;const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Le.fromStorageString(i),response:r}}async processSigninResponse(e){const t=this._logger.create("processSigninResponse"),{state:s,response:r}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(r,s),r}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:r={}}){const i=await this._tokenClient.exchangeCredentials({username:e,password:t,...r}),n=new ne(new URLSearchParams);return Object.assign(n,i),await this._validator.validateCredentialsResponse(n,s),n}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:r,extraTokenParams:i}){var n;const o=this._logger.create("useRefreshToken");let a;if(this.settings.refreshTokenAllowedScope===void 0)a=e.scope;else{const u=this.settings.refreshTokenAllowedScope.split(" ");a=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(p=>u.includes(p)).join(" ")}const c=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:s,timeoutInSeconds:r,...i}),l=new ne(new URLSearchParams);return Object.assign(l,c),o.debug("validating response",l),await this._validator.validateRefreshResponse(l,{...e,scope:a}),l}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:r,post_logout_redirect_uri:i=this.settings.post_logout_redirect_uri,extraQueryParams:n=this.settings.extraQueryParams}={}){const o=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw o.throw(new Error("No end session endpoint")),null;o.debug("Received end session endpoint",a),!s&&i&&!t&&(s=this.settings.client_id);const c=new Lt({url:a,id_token_hint:t,client_id:s,post_logout_redirect_uri:i,state_data:e,extraQueryParams:n,request_type:r});await this.clearStaleState();const l=c.state;return l&&(o.debug("Signout request has state to persist"),await this.settings.stateStore.set(l.id,l.toStorageString())),c}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),r=new Dt(he.readParams(e,this.settings.response_mode));if(!r.state){if(s.debug("No state in response"),r.error)throw s.warn("Response was error:",r.error),new L(r);return{state:void 0,response:r}}const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Z.fromStorageString(i),response:r}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:r}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(r,s)):t.debug("No state from storage; skipping response validation"),r}clearStaleState(){return this._logger.create("clearStaleState"),Z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Kt=class{constructor(e){this._userManager=e,this._logger=new d("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const r=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,r.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,r.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const i=await this._userManager.metadataService.getCheckSessionIframe();if(i){r.debug("initializing check session iframe");const n=this._userManager.settings.client_id,o=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,c=new Ct(this._callback,n,i,o,a);await c.load(),this._checkSessionIFrame=c,c.start(s)}else r.warn("no check session iframe found in the metadata")}catch(i){r.error("Error from getCheckSessionIframe:",i instanceof Error?i.message:i)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const r=await this._userManager.querySessionStatus();if(r){const i={session_state:r.session_state,profile:r.sub?{sub:r.sub}:null};this._start(i)}}catch(r){t.error("error from querySessionStatus",r instanceof Error?r.message:r)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let r=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(r=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),r?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},oe=class Fe{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+A.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new d("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return d.createStatic("User","fromStorageString"),new Fe(JSON.parse(t))}},ye="oidc-client",$e=class{constructor(){this._abort=new q("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:r}=await new Promise((i,n)=>{const o=a=>{var c;const l=a.data,u=(c=e.scriptOrigin)!=null?c:window.location.origin;if(!(a.origin!==u||(l==null?void 0:l.source)!==ye)){try{const h=he.readParams(l.url,e.response_mode).get("state");if(h||t.warn("no state found in response url"),a.source!==this._window&&h!==e.state)return}catch{this._dispose(),n(new Error("Invalid response from window"))}i(l)}};window.addEventListener("message",o,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",o,!1)),this._disposeHandlers.add(this._abort.addHandler(a=>{this._dispose(),n(a)}))});return t.debug("got response from window"),this._dispose(),r||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,r=window.location.origin){e.postMessage({source:ye,url:t,keepOpen:s},r)}},Je={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Ke="_blank",zt=60,Vt=2,ze=10,Bt=class extends ge{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:r=Je,popupWindowTarget:i=Ke,redirectMethod:n="assign",redirectTarget:o="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,silent_redirect_uri:l=e.redirect_uri,silentRequestTimeoutInSeconds:u=ze,automaticSilentRenew:h=!0,validateSubOnSilentRenew:p=!0,includeIdTokenInSilentRenew:f=!1,monitorSession:v=!1,monitorAnonymousSession:y=!1,checkSessionIntervalInSeconds:b=Vt,query_status_response_type:U="code",stopCheckSessionOnError:P=!0,revokeTokenTypes:k=["access_token","refresh_token"],revokeTokensOnSignout:m=!1,includeIdTokenInSilentSignout:w=!1,accessTokenExpiringNotificationTimeInSeconds:R=zt,userStore:S}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=r,this.popupWindowTarget=i,this.redirectMethod=n,this.redirectTarget=o,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=c,this.silent_redirect_uri=l,this.silentRequestTimeoutInSeconds=u,this.automaticSilentRenew=h,this.validateSubOnSilentRenew=p,this.includeIdTokenInSilentRenew=f,this.monitorSession=v,this.monitorAnonymousSession=y,this.checkSessionIntervalInSeconds=b,this.stopCheckSessionOnError=P,this.query_status_response_type=U,this.revokeTokenTypes=k,this.revokeTokensOnSignout=m,this.includeIdTokenInSilentSignout=w,this.accessTokenExpiringNotificationTimeInSeconds=R,S)this.userStore=S;else{const g=typeof window<"u"?window.sessionStorage:new qe;this.userStore=new Me({store:g})}}},be=class Ve extends $e{constructor({silentRequestTimeoutInSeconds:t=ze}){super(),this._logger=new d("IFrameWindow"),this._timeoutInSeconds=t,this._frame=Ve.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new fe("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var r;const i=s.target;(r=i.parentNode)==null||r.removeChild(i),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},Gt=class{constructor(e){this._settings=e,this._logger=new d("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new be({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),be.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Qt=500,Yt=1e3,ke=class extends $e{constructor({popupWindowTarget:e=Ke,popupWindowFeatures:t={}}){super(),this._logger=new d("PopupWindow");const s=ve.center({...Je,...t});this._window=window.open(void 0,e,ve.serialize(s)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*Yt)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},Qt);return this._disposeHandlers.add(()=>clearInterval(s)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},Xt=class{constructor(e){this._settings=e,this._logger=new d("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new ke({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),ke.notifyOpener(e,t)}},Zt=class{constructor(e){this._settings=e,this._logger=new d("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let r=window.self;t==="top"&&(r=(s=window.top)!=null?s:window.self);const i=r.location[e].bind(r.location);let n;return{navigate:async o=>{this._logger.create("navigate");const a=new Promise((c,l)=>{n=l});return i(o.url),await a},close:()=>{this._logger.create("close"),n==null||n(new Error("Redirect aborted")),r.stop()}}}async callback(){}},es=class extends xt{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new d("UserManagerEvents"),this._userLoaded=new q("User loaded"),this._userUnloaded=new q("User unloaded"),this._silentRenewError=new q("Silent renew error"),this._userSignedIn=new q("User signed in"),this._userSignedOut=new q("User signed out"),this._userSessionChanged=new q("User session changed")}async load(e,t=!0){super.load(e),t&&await this._userLoaded.raise(e)}async unload(){super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},ts=class{constructor(e){this._userManager=e,this._logger=new d("SilentRenewService"),this._isStarted=!1,this._retryTimer=new A("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof fe){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},ss=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},rs=class{constructor(e,t,s,r){this._logger=new d("UserManager"),this.settings=new Bt(e),this._client=new Jt(e),this._redirectNavigator=t!=null?t:new Zt(this.settings),this._popupNavigator=s!=null?s:new Xt(this.settings),this._iframeNavigator=r!=null?r:new Gt(this.settings),this._events=new es(this.settings),this._silentRenewService=new ts(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Kt(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){const e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),await this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");const{redirectMethod:t,...s}=e,r=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...s},r)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const r=this._logger.create("signinResourceOwnerCredential"),i=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});r.debug("got signin response");const n=await this._buildUser(i);return n.profile&&n.profile.sub?r.info("success, signed in subject",n.profile.sub):r.info("no subject"),n}async signinPopup(e={}){const t=this._logger.create("signinPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_redirect_uri;n||t.throw(new Error("No popup_redirect_uri configured"));const o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r}),a=await this._signin({request_type:"si:p",redirect_uri:n,display:"popup",...i},o);return a&&(a.profile&&a.profile.sub?t.info("success, signed in subject",a.profile.sub):t.info("no subject")),a}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t;const s=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...i}=e;let n=await this._loadUser();if(n!=null&&n.refresh_token){s.debug("using refresh token");const l=new ss(n);return await this._useRefreshToken({state:l,redirect_uri:i.redirect_uri,resource:i.resource,extraTokenParams:i.extraTokenParams,timeoutInSeconds:r})}const o=this.settings.silent_redirect_uri;o||s.throw(new Error("No silent_redirect_uri configured"));let a;n&&this.settings.validateSubOnSilentRenew&&(s.debug("subject prior to silent renew:",n.profile.sub),a=n.profile.sub);const c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return n=await this._signin({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,...i},c,a),n&&((t=n.profile)!=null&&t.sub?s.info("success, signed in subject",n.profile.sub):s.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({...e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),s=new oe({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(!!s)switch(s.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...r}=e,i=this.settings.silent_redirect_uri;i||t.throw(new Error("No silent_redirect_uri configured"));const n=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),a=await this._signinStart({request_type:"si:s",redirect_uri:i,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...r},o);try{const c=await this._client.processSigninResponse(a.url);return t.debug("got signin response"),c.session_state&&c.profile.sub?(t.info("success for subject",c.profile.sub),{session_state:c.session_state,sub:c.profile.sub}):(t.info("success, user not authenticated"),null)}catch(c){if(this.settings.monitorAnonymousSession&&c instanceof L)switch(c.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:c.session_state}}throw c}}async _signin(e,t,s){const r=await this._signinStart(e,t);return await this._signinEnd(r.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const r=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:r.url,state:r.state.id,response_mode:r.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),r=await this._client.processSigninResponse(e);return s.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),r=new oe(e);if(t){if(t!==r.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",r.profile.sub),new L({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(r),s.debug("user stored"),await this._events.load(r),r}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...r},i),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_post_logout_redirect_uri,o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...i},o),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const r=this._logger.create("_signoutStart");try{const i=await this._loadUser();r.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(i);const n=e.id_token_hint||i&&i.id_token;n&&(r.debug("setting id_token_hint in signout request"),e.id_token_hint=n),await this.removeUser(),r.debug("user removed, creating signout request");const o=await this._client.createSignoutRequest(e);return r.debug("got signout request"),await t.navigate({url:o.url,state:(s=o.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,o=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});await this._signout({request_type:"so:s",post_logout_redirect_uri:o,id_token_hint:n,...i},a),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const r=t.filter(i=>typeof e[i]=="string");if(!r.length){s.debug("no need to revoke due to no token(s)");return}for(const i of r)await this._client.revokeToken(e[i],i),s.info(`${i} revoked successfully`),i!=="access_token"&&(e[i]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),oe.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}};class ps{async authenticate(t){try{const s=await fetch("/_auth/authenticate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t})});if(!s.ok)throw new Error(await s.text());return null}catch(s){return s.message}}async verify(t,s){const r=await fetch("/_auth/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,token:s})});if(!r.ok){if(r.status==410)throw new Error("expired");return null}const i=await r.json(),n=$();return n.saveJWT(i.jwt),n.user}}const B=class{constructor(){D(this,"oidcUserManager");D(this,"userStore");if(!B.isConfigured())throw new Error("OIDCUserProvider is not configured");const t={authority:B.authority,client_id:B.clientID,redirect_uri:window.location.origin+"/oidc-login-callback"};this.oidcUserManager=new rs(t),this.userStore=$(),bt(()=>this.logout())}static init(t,s){this.clientID=t,this.authority=s}static isConfigured(){return!!this.clientID&&!!this.authority}async login(){const t=await this.oidcUserManager.signinPopup({scope:"openid profile email"}),s=await fetch("/_auth/oidc-verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({access_token:t.access_token})});if(!s.ok)return null;const r=await s.json();return this.userStore.saveJWT(r.jwt),this.userStore.user}async loginCallback(){await this.oidcUserManager.signinPopupCallback()}async logout(){await this.oidcUserManager.signoutPopup({post_logout_redirect_uri:window.location.origin+"/oidc-logout-callback"})}async logoutCallback(){await this.oidcUserManager.signoutPopupCallback()}};let z=B;D(z,"clientID",null),D(z,"authority",null);async function fs(){const e=await fetch("/_settings");if(!e.ok)throw new Error(await e.text());const t=await e.json();Q.init(t)}const ee=class{constructor(t){this.config=t}static init(t){z.init(t.oidc_client_id,t.oidc_authority),ee.instance=new ee(t)}get showWatermark(){return this.config.show_watermark}get isStagingRelease(){return{}.VITE_ABSTRA_RELEASE==="staging"}get isLocal(){return location.origin.match(/http:\/\/localhost:\d+/)}};let Q=ee;D(Q,"instance",null);const is=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>j(()=>import("./OidcLoginCallback.7806a966.js"),["assets/OidcLoginCallback.7806a966.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>j(()=>import("./OidcLogoutCallback.9b8e8cb8.js"),["assets/OidcLogoutCallback.9b8e8cb8.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>j(()=>import("./Login.b8c7860c.js"),["assets/Login.b8c7860c.js","assets/Login.vue_vue_type_script_setup_true_lang.8de09e2d.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/CircularLoading.b920c29a.js","assets/CircularLoading.e156a2b0.css","assets/index.4fbbd10e.js","assets/PhArrowClockwise.vue.2725755a.js","assets/Login.d43fdc58.css","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/Login.9bbb0d8a.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>j(()=>import("./Main.24927fff.js"),["assets/Main.24927fff.js","assets/PlayerNavbar.56197f01.js","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/PhSignOut.vue.154299d7.js","assets/index.66903cf4.js","assets/Avatar.2107fa31.js","assets/PlayerNavbar.b72557ee.css","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/Main.8e1556b3.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>j(()=>import("./Home.3f5e4a25.js"),["assets/Home.3f5e4a25.js","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/Watermark.43182479.js","assets/Watermark.4e66f4f8.css","assets/PhArrowSquareOut.vue.188b81dc.js","assets/index.8321252a.js","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/Home.ad6586e4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"threads",name:"playerThreads",component:()=>j(()=>import("./Threads.265da970.js"),["assets/Threads.265da970.js","assets/api.854a5e4c.js","assets/fetch.8c5b12c2.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/WorkflowView.3fb1431f.js","assets/polling.4e30c061.js","assets/asyncComputed.295e9e03.js","assets/PhQuestion.vue.129febdc.js","assets/ant-design.38477595.js","assets/index.063f7c9e.js","assets/index.61e7dffa.js","assets/index.82d1f1ac.js","assets/CollapsePanel.87687b29.js","assets/index.c6ce1c1c.js","assets/index.9c5136e0.js","assets/isNumeric.75337b1e.js","assets/PhArrowCounterClockwise.vue.8fbc5885.js","assets/Workflow.c11e942b.js","assets/PhArrowClockwise.vue.2725755a.js","assets/validations.0afef3f1.js","assets/string.e75a34fd.js","assets/uuid.06ef1e24.js","assets/index.bd967757.js","assets/workspaces.b456ec6a.js","assets/record.cbb43e89.js","assets/colorHelpers.f04087b3.js","assets/index.f6dcc8cb.js","assets/Badge.bcc65740.js","assets/Workflow.6fe906b3.css","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/LoadingOutlined.dad6ee6e.js","assets/DeleteOutlined.a95bba08.js","assets/PhDownloadSimple.vue.33128e79.js","assets/utils.4c5a1d76.js","assets/LoadingContainer.cc61e2fd.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.78019367.css","assets/url.5959ae47.js","assets/Threads.eebabf19.css"]),meta:{title:"Threads"}},{path:"error/:status",name:"error",component:()=>j(()=>import("./Error.dc6fbe06.js"),["assets/Error.dc6fbe06.js","assets/Logo.6e947620.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/Logo.21e86751.css","assets/Card.0ce127d8.js","assets/TabPane.d0ca7ad5.js","assets/url.5959ae47.js","assets/colorHelpers.f04087b3.js","assets/Error.3f9fecb3.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>j(()=>import("./Form.20bbf0bc.js"),["assets/Form.20bbf0bc.js","assets/api.854a5e4c.js","assets/fetch.8c5b12c2.js","assets/vue-router.3fd92176.js","assets/vue-router.49774e2d.css","assets/metadata.789df59c.js","assets/PhBug.vue.00bc4255.js","assets/PhCheckCircle.vue.d8163a77.js","assets/PhKanban.vue.b52985f0.js","assets/PhWebhooksLogo.vue.73a10b16.js","assets/FormRunner.7499affa.js","assets/url.5959ae47.js","assets/Login.vue_vue_type_script_setup_true_lang.8de09e2d.js","assets/CircularLoading.b920c29a.js","assets/CircularLoading.e156a2b0.css","assets/index.4fbbd10e.js","assets/PhArrowClockwise.vue.2725755a.js","assets/Login.d43fdc58.css","assets/Steps.767c106d.js","assets/Steps.d681065f.css","assets/Watermark.43182479.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.30bf18bf.css","assets/asyncComputed.295e9e03.js","assets/uuid.06ef1e24.js","assets/colorHelpers.f04087b3.js","assets/Form.a6aac401.css"]),meta:{hideLogin:!0}}]}],Ee=ht({history:dt("/"),routes:is,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),ns=e=>async(t,s)=>{if(gt(t,s),t.meta.allowUnauthenticated)return;const n=await $().allow(t.path),{redirect:o,...a}=t.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...a,redirect:o||t.path},params:t.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};Ee.beforeEach(ns(Ee));function Te(e,t,s){return _t(t)?t:s==="player"?`/_assets/${e}`:`/_editor/api/assets/${t}`}const Be="#414a58",Ge="#FFFFFF",os="#000000",Qe="DM Sans",as="Untitled Project",Ye={value:"en",label:"English"};function cs(e){var t,s,r,i,n,o,a,c,l,u,h,p,f,v,y,b;return{id:e.id,path:e.path,theme:(t=e.workspace.theme)!=null?t:Ge,brandName:(s=e.workspace.brand_name)!=null?s:null,title:e.title,isInitial:e.is_initial,isLocal:(r=e.is_local)!=null?r:!1,startMessage:(i=e.start_message)!=null?i:null,endMessage:(n=e.end_message)!=null?n:null,errorMessage:(o=e.error_message)!=null?o:null,timeoutMessage:(a=e.timeout_message)!=null?a:null,startButtonText:(c=e.start_button_text)!=null?c:null,restartButtonText:(l=e.restart_button_text)!=null?l:null,logoUrl:e.workspace.logo_url,mainColor:(u=e.workspace.main_color)!=null?u:Be,fontFamily:(h=e.workspace.font_family)!=null?h:Qe,autoStart:(p=e.auto_start)!=null?p:!1,allowRestart:e.allow_restart,welcomeTitle:(f=e.welcome_title)!=null?f:null,runtimeType:"form",language:(v=e.workspace.language)!=null?v:Ye.value,sidebar:(b=(y=e.workspace)==null?void 0:y.sidebar)!=null?b:[]}}function Re(e){var s;const t=(s=e.theme)!=null?s:Ge;return{name:e.name||as,fontColor:e.font_color||os,sidebar:e.sidebar||[],brandName:e.brand_name||"",fontFamily:e.font_family||Qe,logoUrl:e.logo_url?Te("logo",e.logo_url,"player"):null,mainColor:e.main_color||Be,theme:pt(t)?t:Te("background",t,"player"),language:e.language||Ye.value}}async function ws(e){const t=$(),s=await fetch(`/_pages/${e}`,{headers:t.authHeaders});if(s.status===404)return null;if(!s.ok)throw new Error(await s.text());const{form:r}=await s.json();return r?cs(r):null}async function ls(){const e=$(),t=await fetch("/_workspace",{headers:e.authHeaders});if(t.status!=200)return Re({});const s=await t.json();return Re(s)}const ms=Ne("workspace",()=>{const e=te({workspace:null,loading:!1});return{state:e,actions:{async fetch(){e.value.loading=!0,e.value.workspace=await ls(),e.value.loading=!1}}}});export{ps as A,Be as D,z as O,Q as S,Ee as a,$ as b,_s as c,Ne as d,Qe as e,Ye as f,ns as g,Ge as h,bt as i,ws as j,Te as m,is as r,fs as s,ms as u}; +//# sourceMappingURL=workspaceStore.411ef1fe.js.map diff --git a/abstra_statics/dist/assets/workspaces.1ee4ae8d.js b/abstra_statics/dist/assets/workspaces.b456ec6a.js similarity index 90% rename from abstra_statics/dist/assets/workspaces.1ee4ae8d.js rename to abstra_statics/dist/assets/workspaces.b456ec6a.js index 8c211b38d..015c0ab4b 100644 --- a/abstra_statics/dist/assets/workspaces.1ee4ae8d.js +++ b/abstra_statics/dist/assets/workspaces.b456ec6a.js @@ -1,2 +1,2 @@ -var l=Object.defineProperty;var h=(r,e,t)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var s=(r,e,t)=>(h(r,typeof e!="symbol"?e+"":e,t),t);import{D as p,e as f,f as y,h as i,m as c}from"./workspaceStore.ae240ce8.js";import{A as g}from"./record.34d5b504.js";import{i as u}from"./colorHelpers.c5724389.js";import"./vue-router.4c13f3d4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="2df0a330-814a-4d02-8ca7-c61d6d757337",r._sentryDebugIdIdentifier="sentry-dbid-2df0a330-814a-4d02-8ca7-c61d6d757337")}catch{}})();class m{async get(){return await(await fetch("/_editor/api/workspace",{method:"GET",headers:{"Content-Type":"application/json"}})).json()}async update(e,t){return await(await fetch("/_editor/api/workspace",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async create(e){throw new Error("Not implemented")}async openFile(e){await fetch("/_editor/api/workspace/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})}async initFile(e,t){await fetch("/_editor/api/workspace/init-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,type:t})})}async checkFile(e){const t=await fetch(`/_editor/api/workspace/check-file?path=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to check file");return await t.json()}async readFile(e){const t=await fetch(`/_editor/api/workspace/read-file?file=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});return t.status===404?null:await t.text()}async readTestData(){return await(await fetch("/_editor/api/workspace/read-test-data",{method:"GET",headers:{"Content-Type":"application/json"}})).text()}async writeTestData(e){if(!(await fetch("/_editor/api/workspace/write-test-data",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({test_data:e})})).ok)throw new Error("Failed to write test data");return{success:!0}}async deploy(){if(!(await fetch("/_editor/api/workspace/deploy",{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to deploy")}}const a=new m,o=class{constructor(e){s(this,"record");this.record=g.create(a,e)}static async get(){const e=await a.get();return new o(e)}static from(e){return new o(e)}get brandName(){var e;return(e=this.record.get("brand_name"))!=null?e:""}set brandName(e){this.record.set("brand_name",e)}get fontColor(){var e;return(e=this.record.get("font_color"))!=null?e:"#000000"}set fontColor(e){this.record.set("font_color",e)}get logoUrl(){var e;return(e=this.record.get("logo_url"))!=null?e:""}set logoUrl(e){this.record.set("logo_url",e)}get faviconUrl(){var e;return(e=this.record.get("favicon_url"))!=null?e:""}set faviconUrl(e){this.record.set("favicon_url",e)}get mainColor(){var e;return(e=this.record.get("main_color"))!=null?e:p}set mainColor(e){this.record.set("main_color",e)}get fontFamily(){var e;return(e=this.record.get("font_family"))!=null?e:f}set fontFamily(e){this.record.set("font_family",e)}get language(){var e;return(e=this.record.get("language"))!=null?e:y.value}set language(e){this.record.set("language",e)}get theme(){var e;return(e=this.record.get("theme"))!=null?e:i}set theme(e){this.record.set("theme",e)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}static async openFile(e){await a.openFile(e)}static async initFile(e,t){await a.initFile(e,t)}static async checkFile(e){return a.checkFile(e)}async readFile(e){return a.readFile(e)}static async readTestData(){return a.readTestData()}static async writeTestData(e){return a.writeTestData(e)}static async deploy(){return a.deploy()}get sidebar(){var e;return(e=this.record.get("sidebar"))!=null?e:[]}set sidebar(e){this.record.set("sidebar",e)}makeRunnerData(){var e;return{sidebar:this.sidebar,name:this.brandName,fontColor:this.fontColor,brandName:this.brandName,fontFamily:this.fontFamily,logoUrl:this.logoUrl?c("logo",this.logoUrl,"editor"):null,mainColor:this.mainColor,theme:u(this.theme)?this.theme:(e=c("background",this.theme,"editor"))!=null?e:i,language:this.language}}};let n=o;s(n,"instance");export{n as W}; -//# sourceMappingURL=workspaces.1ee4ae8d.js.map +var l=Object.defineProperty;var h=(r,e,t)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var s=(r,e,t)=>(h(r,typeof e!="symbol"?e+"":e,t),t);import{D as p,e as f,f as y,h as i,m as c}from"./workspaceStore.411ef1fe.js";import{A as g}from"./record.cbb43e89.js";import{i as u}from"./colorHelpers.f04087b3.js";import"./vue-router.3fd92176.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="58204559-666c-48c6-93ed-043d733ac9bc",r._sentryDebugIdIdentifier="sentry-dbid-58204559-666c-48c6-93ed-043d733ac9bc")}catch{}})();class m{async get(){return await(await fetch("/_editor/api/workspace",{method:"GET",headers:{"Content-Type":"application/json"}})).json()}async update(e,t){return await(await fetch("/_editor/api/workspace",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async create(e){throw new Error("Not implemented")}async openFile(e){await fetch("/_editor/api/workspace/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})}async initFile(e,t){await fetch("/_editor/api/workspace/init-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,type:t})})}async checkFile(e){const t=await fetch(`/_editor/api/workspace/check-file?path=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to check file");return await t.json()}async readFile(e){const t=await fetch(`/_editor/api/workspace/read-file?file=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});return t.status===404?null:await t.text()}async readTestData(){return await(await fetch("/_editor/api/workspace/read-test-data",{method:"GET",headers:{"Content-Type":"application/json"}})).text()}async writeTestData(e){if(!(await fetch("/_editor/api/workspace/write-test-data",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({test_data:e})})).ok)throw new Error("Failed to write test data");return{success:!0}}async deploy(){if(!(await fetch("/_editor/api/workspace/deploy",{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to deploy")}}const a=new m,o=class{constructor(e){s(this,"record");this.record=g.create(a,e)}static async get(){const e=await a.get();return new o(e)}static from(e){return new o(e)}get brandName(){var e;return(e=this.record.get("brand_name"))!=null?e:""}set brandName(e){this.record.set("brand_name",e)}get fontColor(){var e;return(e=this.record.get("font_color"))!=null?e:"#000000"}set fontColor(e){this.record.set("font_color",e)}get logoUrl(){var e;return(e=this.record.get("logo_url"))!=null?e:""}set logoUrl(e){this.record.set("logo_url",e)}get faviconUrl(){var e;return(e=this.record.get("favicon_url"))!=null?e:""}set faviconUrl(e){this.record.set("favicon_url",e)}get mainColor(){var e;return(e=this.record.get("main_color"))!=null?e:p}set mainColor(e){this.record.set("main_color",e)}get fontFamily(){var e;return(e=this.record.get("font_family"))!=null?e:f}set fontFamily(e){this.record.set("font_family",e)}get language(){var e;return(e=this.record.get("language"))!=null?e:y.value}set language(e){this.record.set("language",e)}get theme(){var e;return(e=this.record.get("theme"))!=null?e:i}set theme(e){this.record.set("theme",e)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}static async openFile(e){await a.openFile(e)}static async initFile(e,t){await a.initFile(e,t)}static async checkFile(e){return a.checkFile(e)}async readFile(e){return a.readFile(e)}static async readTestData(){return a.readTestData()}static async writeTestData(e){return a.writeTestData(e)}static async deploy(){return a.deploy()}get sidebar(){var e;return(e=this.record.get("sidebar"))!=null?e:[]}set sidebar(e){this.record.set("sidebar",e)}makeRunnerData(){var e;return{sidebar:this.sidebar,name:this.brandName,fontColor:this.fontColor,brandName:this.brandName,fontFamily:this.fontFamily,logoUrl:this.logoUrl?c("logo",this.logoUrl,"editor"):null,mainColor:this.mainColor,theme:u(this.theme)?this.theme:(e=c("background",this.theme,"editor"))!=null?e:i,language:this.language}}};let n=o;s(n,"instance");export{n as W}; +//# sourceMappingURL=workspaces.b456ec6a.js.map diff --git a/abstra_statics/dist/assets/xml.f90a8222.js b/abstra_statics/dist/assets/xml.fec6f77b.js similarity index 84% rename from abstra_statics/dist/assets/xml.f90a8222.js rename to abstra_statics/dist/assets/xml.fec6f77b.js index f1b7c4a3b..bdbfaa99f 100644 --- a/abstra_statics/dist/assets/xml.f90a8222.js +++ b/abstra_statics/dist/assets/xml.fec6f77b.js @@ -1,7 +1,7 @@ -import{m as d}from"./toggleHighContrast.017fb466.js";import"./vue-router.4c13f3d4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="93a67a92-99bd-4fe9-b452-0204370e66de",t._sentryDebugIdIdentifier="sentry-dbid-93a67a92-99bd-4fe9-b452-0204370e66de")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as d}from"./toggleHighContrast.db48a34e.js";import"./vue-router.3fd92176.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cffadd03-e715-4fc3-967e-b8440ce1a15c",t._sentryDebugIdIdentifier="sentry-dbid-cffadd03-e715-4fc3-967e-b8440ce1a15c")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,r=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of m(e))!s.call(t,a)&&a!==n&&l(t,a,{get:()=>e[a],enumerable:!(i=c(e,a))||i.enumerable});return t},p=(t,e,n)=>(r(t,e,"default"),n&&r(n,e,"default")),o={};p(o,d);var g={comments:{blockComment:[""]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/